@foodpilot/foods 0.1.39 → 0.1.40

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.
@@ -3,7 +3,7 @@ export type SsqCardProps = {
3
3
  heading: {
4
4
  title: string;
5
5
  description: string;
6
- contentUrl: string;
6
+ contentUrl?: string;
7
7
  properties?: {
8
8
  "@id": string;
9
9
  title: string;
package/dist/main.js CHANGED
@@ -28334,7 +28334,7 @@ const SB = (e) => /* @__PURE__ */ p.jsx(Ke, { sx: { minWidth: 205 }, children: /
28334
28334
  marginRight: "0.5rem"
28335
28335
  },
28336
28336
  children: [
28337
- /* @__PURE__ */ p.jsx("img", { src: e.heading.contentUrl, width: "30", alt: "icon-ssq" }),
28337
+ e.heading.contentUrl && /* @__PURE__ */ p.jsx("img", { src: e.heading.contentUrl, width: "30", alt: "icon-ssq" }),
28338
28338
  /* @__PURE__ */ p.jsx("div", { style: { minHeight: "100px", marginTop: "0.5rem" }, children: /* @__PURE__ */ p.jsx(Ze, { variant: "subtitle2", component: "div", style: { fontWeight: "bold" }, children: e.heading.title }) }),
28339
28339
  /* @__PURE__ */ p.jsx(Ze, { variant: "caption", component: "div", children: e.progress.label }),
28340
28340
  /* @__PURE__ */ p.jsx(Ke, { children: /* @__PURE__ */ p.jsx(tj, { value: e.progress.value }) })
package/dist/main.umd.cjs CHANGED
@@ -374,7 +374,7 @@ const theme2 = createTheme({ palette: {
374
374
  ${e.palette.mode==="light"?to(ze(e.palette.divider,1),.88):eo(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",[`&.${ik.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})),oh=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,ak),m=C.useContext(Zg),b=C.useContext(vs),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=lk(S);let x=null;return d&&(x=d==="asc"?"ascending":"descending"),p.jsx(ck,y({as:v,ref:o,className:be(T.root,i),"aria-sort":x,scope:w,ownerState:S},g))});process.env.NODE_ENV!=="production"&&(oh.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=oh;function uk(e){return $e("MuiTableFooter",e)}Oe("MuiTableFooter",["root"]);const dk=["className","component"],pk=e=>{const{classes:t}=e;return Ee({root:["root"]},uk,t)},fk=K("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),mk={variant:"footer"},rh="tfoot",sh=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableFooter"}),{className:s,component:i=rh}=r,a=de(r,dk),l=y({},r,{component:i}),c=pk(l);return p.jsx(vs.Provider,{value:mk,children:p.jsx(fk,y({as:i,className:be(c.root,s),ref:o,role:i===rh?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(sh.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 gk=sh;function hk(e){return $e("MuiTableHead",e)}Oe("MuiTableHead",["root"]);const bk=["className","component"],vk=e=>{const{classes:t}=e;return Ee({root:["root"]},hk,t)},yk=K("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),xk={variant:"head"},ih="thead",ah=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableHead"}),{className:s,component:i=ih}=r,a=de(r,bk),l=y({},r,{component:i}),c=vk(l);return p.jsx(vs.Provider,{value:xk,children:p.jsx(yk,y({as:i,className:be(c.root,s),ref:o,role:i===ih?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(ah.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 Ck=ah,wk=lt(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Sk=lt(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Tk(e){return $e("MuiTableRow",e)}const lh=Oe("MuiTableRow",["root","selected","hover","head","footer"]),Pk=["className","component","hover","selected"],Rk=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"]},Tk,t)},Ok=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,[`&.${lh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lh.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)}}})),ch="tr",uh=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTableRow"}),{className:s,component:i=ch,hover:a=!1,selected:l=!1}=r,c=de(r,Pk),u=C.useContext(vs),d=y({},r,{component:i,hover:a,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Rk(d);return p.jsx(Ok,y({as:i,ref:o,className:be(f.root,s),role:i===ch?null:"row",ownerState:d},c))});process.env.NODE_ENV!=="production"&&(uh.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=uh,Ek=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 $k(e){return $e("MuiTableSortLabel",e)}const ic=Oe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Mk=["active","children","className","direction","hideSortIcon","IconComponent"],kk=e=>{const{classes:t,direction:o,active:r}=e,s={root:["root",r&&"active"],icon:["icon",`iconDirection${pe(o)}`]};return Ee(s,$k,t)},Ik=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,[`& .${ic.icon}`]:{opacity:.5}},[`&.${ic.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${ic.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),Dk=K("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${pe(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)"})),dh=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=Ek}=r,d=de(r,Mk),f=y({},r,{active:s,direction:l,hideSortIcon:c,IconComponent:u}),g=kk(f);return p.jsxs(Ik,y({className:be(g.root,a),component:"span",disableRipple:!0,ownerState:f,ref:o},d,{children:[i,c&&!s?null:p.jsx(Dk,{as:u,className:be(g.icon),ownerState:f})]}))});process.env.NODE_ENV!=="production"&&(dh.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 jk=dh;function _k(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Fk(e,t,o,r={},s=()=>{}){const{ease:i=_k,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 Nk=["onChange"],Ak={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ph(e){const{onChange:t}=e,o=de(e,Nk),r=C.useRef(),s=C.useRef(null),i=()=>{r.current=s.current.offsetHeight-s.current.clientHeight};return Vt(()=>{const a=Wo(()=>{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:Ak,ref:s},o))}process.env.NODE_ENV!=="production"&&(ph.propTypes={onChange:n.func.isRequired});function Vk(e){return $e("MuiTabScrollButton",e)}const Lk=Oe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zk=["className","slots","slotProps","direction","orientation","disabled"],Bk=e=>{const{classes:t,orientation:o,disabled:r}=e;return Ee({root:["root",o,r&&"disabled"]},Vk,t)},Hk=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,[`&.${Lk.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),fh=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,zk),g=Et().direction==="rtl",m=y({isRtl:g},i),b=Bk(m),h=(r=l.StartScrollButtonIcon)!=null?r:wk,v=(s=l.EndScrollButtonIcon)!=null?s:Sk,w=nt({elementType:h,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),P=nt({elementType:v,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return p.jsx(Hk,y({component:"div",className:be(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"&&(fh.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 Wk=fh;function Uk(e){return $e("MuiTabs",e)}const ea=Oe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),qk=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],mh=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gh=(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}}},Gk=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"]},Uk,c)},Yk=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"}}})),Kk=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"})),Xk=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"})),Zk=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})),Qk=K(ph)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),hh={};let bh=!1;const vh=C.forwardRef(function(t,o){const r=Te({props:t,name:"MuiTabs"}),s=Et(),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=Wk,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,qk),j=k==="scrollable",M=v==="vertical",I=M?"scrollTop":"scrollLeft",_=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:!j,hideScrollbar:j&&!D,scrollableX:j&&!M,scrollableY:j&&M,centered:u&&!j,scrollButtonsHideMobile:!m}),B=Gk(N),oe=nt({elementType:T.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:N}),ae=nt({elementType:T.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:N});process.env.NODE_ENV!=="production"&&u&&j&&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(hh),[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 ve;if(ne){const Ge=ne.getBoundingClientRect();ve={clientWidth:ne.clientWidth,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,scrollLeftNormalized:p0(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(`
375
375
  `))),Le=Ye?Ye.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!bh&&Le&&Le.width===0&&Le.height===0&&ve.clientWidth!==0&&(ve=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(`
376
376
  `)),bh=!0)}}return{tabsMeta:ve,tabMeta:Le}},Q=Ae(()=>{const{tabsMeta:ne,tabMeta:ve}=Pe();let Le=0,Ge;if(M)Ge="top",ve&&ne&&(Le=ve.top-ne.top+ne.scrollTop);else if(Ge=i?"right":"left",ve&&ne){const it=i?ne.scrollLeftNormalized+ne.clientWidth-ne.scrollWidth:ne.scrollLeft;Le=(i?-1:1)*(ve[Ge]-ne[Ge]+it)}const Ye={[Ge]:Le,[V]:ve?ve[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:ve=!0}={})=>{ve?Fk(I,Ne.current,ne,{duration:s.transitions.duration.standard}):Ne.current[I]=ne},fe=ne=>{let ve=Ne.current[I];M?ve+=ne:(ve+=ne*(i?-1:1),ve*=i&&Sd()==="reverse"?-1:1),re(ve)},Me=()=>{const ne=Ne.current[q];let ve=0;const Le=Array.from(le.current.children);for(let Ge=0;Ge<Le.length;Ge+=1){const Ye=Le[Ge];if(ve+Ye[q]>ne){Ge===0&&(ve=ne);break}ve+=Ye[q]}return ve},Ie=()=>{fe(-1*Me())},me=()=>{fe(Me())},ge=C.useCallback(ne=>{ce({overflow:null,scrollbarWidth:ne})},[]),Ce=()=>{const ne={};ne.scrollbarSizeListener=j?p.jsx(Qk,{onChange:ge,className:be(B.scrollableX,B.hideScrollbar)}):null;const Le=j&&(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:be(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:me,disabled:!Z},O,{className:be(B.scrollButtons,O.className)})):null,ne},we=Ae(ne=>{const{tabsMeta:ve,tabMeta:Le}=Pe();if(!(!Le||!ve)){if(Le[_]<ve[_]){const Ge=ve[I]+(Le[_]-ve[_]);re(Ge,{animation:ne})}else if(Le[U]>ve[U]){const Ge=ve[I]+(Le[U]-ve[U]);re(Ge,{animation:ne})}}}),ye=Ae(()=>{j&&P!==!1&&ee(!L)});C.useEffect(()=>{const ne=Wo(()=>{Ne.current&&Q()});let ve;const Le=it=>{it.forEach(at=>{at.removedNodes.forEach(Mt=>{var vt;(vt=ve)==null||vt.unobserve(Mt)}),at.addedNodes.forEach(Mt=>{var vt;(vt=ve)==null||vt.observe(Mt)})}),ne(),ye()},Ge=Vn(Ne.current);Ge.addEventListener("resize",ne);let Ye;return typeof ResizeObserver<"u"&&(ve=new ResizeObserver(ne),Array.from(le.current.children).forEach(it=>{ve.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=ve)==null||at.disconnect()}},[Q,ye]),C.useEffect(()=>{const ne=Array.from(le.current.children),ve=ne.length;if(typeof IntersectionObserver<"u"&&ve>0&&j&&P!==!1){const Le=ne[0],Ge=ne[ve-1],Ye={root:Ne.current,threshold:.99},it=ot=>{te(!ot[0].isIntersecting)},at=new IntersectionObserver(it,Ye);at.observe(Le);const Mt=ot=>{ie(!ot[0].isIntersecting)},vt=new IntersectionObserver(Mt,Ye);return vt.observe(Ge),()=>{at.disconnect(),vt.disconnect()}}},[j,P,L,d==null?void 0:d.length]),C.useEffect(()=>{A(!0)},[]),C.useEffect(()=>{Q()}),C.useEffect(()=>{we(hh!==H)},[we,H]),C.useImperativeHandle(c,()=>({updateIndicator:Q,updateScrollButtons:ye}),[Q,ye]);const _e=p.jsx(Zk,y({},R,{className:be(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"&&Dr.isFragment(ne)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
377
- `));const ve=ne.props.value===void 0?Ve:ne.props.value;ue.set(ve,Ve);const Le=ve===E;return Ve+=1,C.cloneElement(ne,y({fullWidth:k==="fullWidth",indicator:Le&&!W&&_e,selected:Le,selectionFollowsFocus:S,onChange:h,textColor:$,value:ve},Ve===1&&E===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Fe=ne=>{const ve=le.current,Le=_t(ve).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(ve,Le,gh);break;case it:ne.preventDefault(),ta(ve,Le,mh);break;case"Home":ne.preventDefault(),ta(ve,null,mh);break;case"End":ne.preventDefault(),ta(ve,null,gh);break}},ke=Ce();return p.jsxs(Yk,y({className:be(B.root,f),ownerState:N,ref:o,as:g},F,{children:[ke.scrollButtonStart,ke.scrollbarSizeListener,p.jsxs(Kk,{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(Xk,{"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&&_e]}),ke.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(vh.propTypes={action:It,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 Jk=vh;function eI(e){return $e("MuiTextField",e)}Oe("MuiTextField",["root"]);const tI=["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"],nI={standard:Lm,filled:Em,outlined:Cg},oI=e=>{const{classes:t}=e;return Ee({root:["root"]},eI,t)},rI=K(kO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yh=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:j=!1,rows:M,select:I=!1,SelectProps:_,type:U,value:q,variant:V="outlined"}=r,N=de(r,tI),B=y({},r,{autoFocus:i,color:c,disabled:d,error:f,fullWidth:m,multiline:O,required:j,select:I,variant:V}),oe=oI(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&&((!_||!_.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=nI[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(rI,y({className:be(oe.root,l),disabled:d,error:f,fullWidth:m,ref:o,required:j,color:c,variant:V,ownerState:B},N,{children:[T!=null&&T!==""&&p.jsx(Um,y({htmlFor:W,id:H},v,{children:T})),I?p.jsx(Ag,y({"aria-describedby":A,id:W,labelId:H,value:q,input:J},_,{children:a})):J,b&&p.jsx(Nm,y({id:A},g,{children:b}))]}))});process.env.NODE_ENV!=="production"&&(yh.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:It,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=yh;function sI(e){return $e("MuiToggleButton",e)}const xh=Oe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),iI=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],aI=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${pe(i)}`,a]};return Ee(l,sI,t)},lI=K(un,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${pe(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%"},{[`&.${xh.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"}},[`&.${xh.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)})}),Ch=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,iI),v=y({},r,{color:a,disabled:l,disableFocusRipple:c,fullWidth:u,size:m}),w=aI(v),P=S=>{f&&(f(S,b),S.defaultPrevented)||d&&d(S,b)};return p.jsx(lI,y({className:be(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"&&(Ch.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 cI=Ch,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"},uI={primary:{light:"#63b8ff",main:"#000",dark:"#005db0",contrastText:"#fff"},secondary:{main:"#91B927",light:"#82e9de",dark:"#00867d",contrastText:"#000"}},dI={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"}},pI={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]}}},fI={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"}}}},wh=gl({palette:uI,typography:dI,custom:pI,components:fI}),mI=Qs(nw)(()=>({".Mui-disabled":{background:qe[500]},":before":{height:"0px"},border:`1px solid ${qe[500]}`,boxShadow:"0px 2px 8px 0px #2A2B270A"})),gI=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(mI,{expanded:a,disableGutters:!0,children:[p.jsx(ww,{sx:{minHeight:"80px"},expandIcon:p.jsx(Ew,{}),"aria-controls":"panel1a-content",onClick:()=>r(i),children:s.title}),p.jsx(Ow,{sx:{borderTop:`1px solid ${qe[500]}`},children:s.content})]},`accordion-prod-ing-${i}`)})})},hI=lt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),bI=lt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),vI=lt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Sh=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"),yI=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"),xI=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"),CI=lt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),wI=lt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),SI=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"),TI=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 PI(){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 Th={};function ac(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];typeof t[0]=="string"&&Th[t[0]]||(typeof t[0]=="string"&&(Th[t[0]]=new Date),PI(...t))}const Ph=(e,t)=>()=>{if(e.isInitialized)t();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}};function Rh(e,t,o){e.loadNamespaces(t,Ph(e,o))}function Oh(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,Ph(e,r))}function RI(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 OI(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(ac("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}}):RI(e,t,o)}const EI=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$I={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},MI=e=>$I[e];let kI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(EI,MI)};function II(){return kI}let DI;function jI(){return DI}const _I=he.createContext();class FI{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const NI=(e,t)=>{const o=he.useRef();return he.useEffect(()=>{o.current=t?o.current:e},[e,t]),o.current};function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=t,{i18n:r,defaultNS:s}=he.useContext(_I)||{},i=o||r||jI();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new FI),!i){ac("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&&ac("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...II(),...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=>OI(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=NI(b),v=he.useRef(!0);he.useEffect(()=>{const{bindI18n:S,bindI18nStore:T}=a;v.current=!0,!d&&!l&&(t.lng?Oh(i,t.lng,u,()=>{v.current&&m(f)}):Rh(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?Oh(i,t.lng,u,()=>S()):Rh(i,u,()=>S())})}function AI(e){const t=Et(),{t:o}=na(),[r,s]=he.useState(!1);return p.jsxs(Ke,{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(Nt,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%",padding:"30px 24px"},children:[p.jsxs(Nt,{direction:"row",useFlexGap:!0,gap:"12px",alignItems:"center",children:[e.headerIcon,p.jsx(Ze,{variant:"h3",children:e.headerText})]}),p.jsxs(Nt,{direction:"row",useFlexGap:!0,gap:"24px",alignItems:"center",children:[e.controls,!e.controls&&p.jsx(Wt,{disabled:!0,variant:"white-filled",startIcon:p.jsx(yI,{}),sx:{marginRight:"24px",borderRadius:"44px"},children:o("Modifier")}),p.jsx($t,{onClick:i=>s(!r),children:r===!0?p.jsx(CI,{}):p.jsx(wI,{})})]})]}),r&&p.jsx(gr,{in:r,timeout:300,children:p.jsxs("div",{children:[p.jsx(Do,{}),p.jsx(Ke,{component:"div",sx:{padding:"44px"},children:e.children})]})})]})}const VI=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(Ze,{variant:"body",style:{marginInline:"10px"},children:t})})},LI=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",border:`2px dashed ${qe[800]}`,borderRadius:"8px",background:qe[200]},children:e.children}),zI=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},BI=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})},HI=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",borderLeft:`1px solid ${qe[500]}`,paddingLeft:"2rem"},children:e.data}),WI=e=>p.jsx(Ke,{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}),Eh=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"})),UI=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(Wt,{variant:"text",startIcon:p.jsx(Eh,{}),onClick:()=>r(!1),disableRipple:!0})})]})},qI=K(cI)(()=>({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]}})),GI=e=>{const{choices:t,onClick:o,currentIndexSelected:r,...s}=e,[i,a]=he.useState(r??null),l=c=>{if(o==null||o(c),c===i){a(null);return}a(c)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:t.map((c,u)=>he.createElement(qI,{...s,key:`${u}-button-toggle-${c}`,value:u,onClick:()=>l(u),selected:u===i},p.jsx(Ze,{variant:"big-bold",color:"inherit",children:c})))})},YI=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"})),KI=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(Ze,{variant:"body",children:r}),o!==s&&p.jsx("div",{style:{marginInline:"5px"},children:p.jsx(YI,{})})]},`text-arrow-${Math.random()}`))})};var lc={},$h={exports:{}};(function(e){function t(o){return o&&o.__esModule?o:{default:o}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($h);var ft=$h.exports,cc={};const XI=jy(z1);var Mh;function mt(){return Mh||(Mh=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=XI}(cc)),cc}var ZI=ft;Object.defineProperty(lc,"__esModule",{value:!0});var uc=lc.default=void 0,QI=ZI(mt()),JI=p,eD=(0,QI.default)((0,JI.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");uc=lc.default=eD;const tD=e=>{const[t,o]=he.useState(!0),r=s=>{e.onClose&&e.onClose(s),o(!1)};return t?p.jsxs(Ke,{sx:{background:e.type!==void 0&&e.type!=="default"?e.type==="brand"?"#EEFDE5":"#FEFCFB":"#FFF",border:"1px solid #E7E6E4",borderRadius:"12px",boxShadow:"0px 4px 20px 0px rgba(81, 78, 78, 0.12)",display:"flex",alignItems:"flex-start",gap:e.size==="big"?"28px":"20px",padding:e.size==="big"?"32px":"20px",position:"relative"},children:[p.jsx(Nt,{alignItems:"center",justifyContent:"center",sx:{width:e.size!==void 0&&e.size==="big"?"72px":"36px",height:e.size!==void 0&&e.size==="big"?"72px":"36px",background:e.size!==void 0&&e.size==="big"?"#FFF6E8":"transparent",borderRadius:"100%"},children:e.icon}),p.jsxs(Nt,{direction:e.orientation==="horizontal"?"row":"column",gap:e.size==="big"?"20px":"16px",flex:1,children:[p.jsxs(Nt,{flex:1,gap:"8px",children:[p.jsx(Ze,{variant:"h4",children:e.title}),p.jsx(Ze,{variant:"caption",children:e.children})]}),e.cta&&p.jsx(Nt,{direction:"row",alignItems:"center",gap:"24px",sx:{maxHeight:e.size==="big"?"100%":"20px"},children:e.cta})]}),e.closeable&&p.jsx(Nt,{alignItems:"center",justifyContent:"center",sx:{width:"36px",height:"36px",cursor:"pointer",position:"absolute",top:e.size==="big"?"16px":"8px",right:e.size==="big"?"16px":"8px"},onClick:r,children:p.jsx(uc,{})})]}):null},kh=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(Ze,{variant:i,style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px"},children:[r,t]})},nD=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(Ze,{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]})},oD=e=>p.jsxs(Ke,{sx:{display:"flex",alignItems:"center"},children:[p.jsx(Ke,{sx:{width:"100%",mr:1},children:p.jsx(PE,{variant:"determinate",...e,sx:{"&.MuiLinearProgress-determinate":{backgroundColor:"#E5E1E1",borderBottomLeftRadius:"15px",borderTopLeftRadius:"15px",borderTopRightRadius:"15px",borderBottomRightRadius:"15px"},"& .MuiLinearProgress-root":{height:"6px"}}})}),p.jsx(Ke,{sx:{minWidth:35},children:p.jsx(Ze,{variant:"body2",color:"text.secondary",children:`${Math.round(e.value)}%`})})]});var dc={},rD=ft;Object.defineProperty(dc,"__esModule",{value:!0});var Ih=dc.default=void 0,sD=rD(mt()),iD=p,aD=(0,sD.default)((0,iD.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");Ih=dc.default=aD;const lD=e=>p.jsx(Ke,{sx:{minWidth:205},children:p.jsxs(dR,{variant:"outlined",style:{borderRadius:"10px"},children:[p.jsxs(CR,{style:{textAlign:"left",marginLeft:"0.5rem",marginRight:"0.5rem"},children:[p.jsx("img",{src:e.heading.contentUrl,width:"30",alt:"icon-ssq"}),p.jsx("div",{style:{minHeight:"100px",marginTop:"0.5rem"},children:p.jsx(Ze,{variant:"subtitle2",component:"div",style:{fontWeight:"bold"},children:e.heading.title})}),p.jsx(Ze,{variant:"caption",component:"div",children:e.progress.label}),p.jsx(Ke,{children:p.jsx(oD,{value:e.progress.value})})]}),p.jsx(hR,{style:{textAlign:"left",marginLeft:"0.5rem",marginRight:"0.5rem"},children:p.jsxs(Ke,{sx:{color:"#AA062B"},children:[p.jsx(Wt,{variant:"text",size:"small",color:"inherit",style:{textTransform:"initial",fontWeight:"bold"},component:e.link.component,to:e.link.to,children:e.link.label}),p.jsx(Ih,{color:"inherit",style:{verticalAlign:"middle"}})]})})]})}),cD=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})),uD=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"})))),dD=K(mr)(()=>({":hover":{background:qe[400]}})),pD=e=>{const{values:t,...o}=e,{onChange:r,...s}=o,i=Object.entries(t);return p.jsx(zO,{children:i.map(([a,l],c)=>p.jsx(Im,{control:p.jsx(dD,{...s,checkedIcon:p.jsx(uD,{}),icon:p.jsx(cD,{}),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 fD(e,t,o){const r={...t},s=e.filter(a=>{const l=r[a.id];return r[a.id]={...l,state:!1},!!l.state});return Object.entries(r).reduce((a,[l,c])=>{if(c.state){const u=o({id:Number.parseInt(l),displayName:c.name});a.push(u)}return a},s)}function mD(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 gD=e=>{const{t}=na(),{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(wm,{onClose:u,...l,children:[p.jsxs(bO,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${qe[500]}`,minHeight:"68px"},children:[r.title,p.jsx(Wt,{variant:"text",endIcon:p.jsx(Eh,{}),onClick:u})]}),r.content,p.jsxs(Tm,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:`1px solid ${qe[500]}`,minHeight:"68px",paddingInline:"1rem"},children:[p.jsx(Wt,{variant:"text",onClick:u,children:t("Annuler")}),p.jsx(Wt,{variant:"primary",onClick:d,disabled:!a,children:t("Valider")})]})]})},hD=K(zi)(({theme:e})=>({fontFamily:e.typography.fontFamily,...e.typography.body})),oa=he.forwardRef(function(e){const{sx:t,...o}=e;return p.jsx(hD,{...o,sx:{color:"#393A36",border:"1px solid #A3A2A0",borderRadius:"16px",paddingInline:"20px",...t}})}),bD=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(Ze,{variant:"h5",children:[t," :"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[p.jsx(oa,{type:"number",style:{minWidth:"150px",width:"10%"},placeholder:r,value:s,...a}),p.jsx(Ze,{variant:"body",children:o})]}),p.jsx(Ze,{variant:"body-light",children:i})]})},vD=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(Ze,{variant:"h5",children:[o," :"]}),p.jsx(oa,{sx:{width:"70%",...a},placeholder:r,value:s,...l}),p.jsx(Ze,{variant:"body-light",children:i})]})}),Dh=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()}`)})})},yD=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"})),xD=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"}));/**
377
+ `));const ve=ne.props.value===void 0?Ve:ne.props.value;ue.set(ve,Ve);const Le=ve===E;return Ve+=1,C.cloneElement(ne,y({fullWidth:k==="fullWidth",indicator:Le&&!W&&_e,selected:Le,selectionFollowsFocus:S,onChange:h,textColor:$,value:ve},Ve===1&&E===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Fe=ne=>{const ve=le.current,Le=_t(ve).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(ve,Le,gh);break;case it:ne.preventDefault(),ta(ve,Le,mh);break;case"Home":ne.preventDefault(),ta(ve,null,mh);break;case"End":ne.preventDefault(),ta(ve,null,gh);break}},ke=Ce();return p.jsxs(Yk,y({className:be(B.root,f),ownerState:N,ref:o,as:g},F,{children:[ke.scrollButtonStart,ke.scrollbarSizeListener,p.jsxs(Kk,{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(Xk,{"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&&_e]}),ke.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(vh.propTypes={action:It,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 Jk=vh;function eI(e){return $e("MuiTextField",e)}Oe("MuiTextField",["root"]);const tI=["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"],nI={standard:Lm,filled:Em,outlined:Cg},oI=e=>{const{classes:t}=e;return Ee({root:["root"]},eI,t)},rI=K(kO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yh=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:j=!1,rows:M,select:I=!1,SelectProps:_,type:U,value:q,variant:V="outlined"}=r,N=de(r,tI),B=y({},r,{autoFocus:i,color:c,disabled:d,error:f,fullWidth:m,multiline:O,required:j,select:I,variant:V}),oe=oI(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&&((!_||!_.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=nI[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(rI,y({className:be(oe.root,l),disabled:d,error:f,fullWidth:m,ref:o,required:j,color:c,variant:V,ownerState:B},N,{children:[T!=null&&T!==""&&p.jsx(Um,y({htmlFor:W,id:H},v,{children:T})),I?p.jsx(Ag,y({"aria-describedby":A,id:W,labelId:H,value:q,input:J},_,{children:a})):J,b&&p.jsx(Nm,y({id:A},g,{children:b}))]}))});process.env.NODE_ENV!=="production"&&(yh.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:It,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=yh;function sI(e){return $e("MuiToggleButton",e)}const xh=Oe("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),iI=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],aI=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${pe(i)}`,a]};return Ee(l,sI,t)},lI=K(un,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${pe(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%"},{[`&.${xh.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"}},[`&.${xh.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)})}),Ch=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,iI),v=y({},r,{color:a,disabled:l,disableFocusRipple:c,fullWidth:u,size:m}),w=aI(v),P=S=>{f&&(f(S,b),S.defaultPrevented)||d&&d(S,b)};return p.jsx(lI,y({className:be(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"&&(Ch.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 cI=Ch,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"},uI={primary:{light:"#63b8ff",main:"#000",dark:"#005db0",contrastText:"#fff"},secondary:{main:"#91B927",light:"#82e9de",dark:"#00867d",contrastText:"#000"}},dI={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"}},pI={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]}}},fI={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"}}}},wh=gl({palette:uI,typography:dI,custom:pI,components:fI}),mI=Qs(nw)(()=>({".Mui-disabled":{background:qe[500]},":before":{height:"0px"},border:`1px solid ${qe[500]}`,boxShadow:"0px 2px 8px 0px #2A2B270A"})),gI=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(mI,{expanded:a,disableGutters:!0,children:[p.jsx(ww,{sx:{minHeight:"80px"},expandIcon:p.jsx(Ew,{}),"aria-controls":"panel1a-content",onClick:()=>r(i),children:s.title}),p.jsx(Ow,{sx:{borderTop:`1px solid ${qe[500]}`},children:s.content})]},`accordion-prod-ing-${i}`)})})},hI=lt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),bI=lt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),vI=lt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Sh=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"),yI=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"),xI=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"),CI=lt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),wI=lt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),SI=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"),TI=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 PI(){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 Th={};function ac(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];typeof t[0]=="string"&&Th[t[0]]||(typeof t[0]=="string"&&(Th[t[0]]=new Date),PI(...t))}const Ph=(e,t)=>()=>{if(e.isInitialized)t();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}};function Rh(e,t,o){e.loadNamespaces(t,Ph(e,o))}function Oh(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,Ph(e,r))}function RI(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 OI(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(ac("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}}):RI(e,t,o)}const EI=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$I={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},MI=e=>$I[e];let kI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(EI,MI)};function II(){return kI}let DI;function jI(){return DI}const _I=he.createContext();class FI{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const NI=(e,t)=>{const o=he.useRef();return he.useEffect(()=>{o.current=t?o.current:e},[e,t]),o.current};function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=t,{i18n:r,defaultNS:s}=he.useContext(_I)||{},i=o||r||jI();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new FI),!i){ac("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&&ac("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...II(),...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=>OI(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=NI(b),v=he.useRef(!0);he.useEffect(()=>{const{bindI18n:S,bindI18nStore:T}=a;v.current=!0,!d&&!l&&(t.lng?Oh(i,t.lng,u,()=>{v.current&&m(f)}):Rh(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?Oh(i,t.lng,u,()=>S()):Rh(i,u,()=>S())})}function AI(e){const t=Et(),{t:o}=na(),[r,s]=he.useState(!1);return p.jsxs(Ke,{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(Nt,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%",padding:"30px 24px"},children:[p.jsxs(Nt,{direction:"row",useFlexGap:!0,gap:"12px",alignItems:"center",children:[e.headerIcon,p.jsx(Ze,{variant:"h3",children:e.headerText})]}),p.jsxs(Nt,{direction:"row",useFlexGap:!0,gap:"24px",alignItems:"center",children:[e.controls,!e.controls&&p.jsx(Wt,{disabled:!0,variant:"white-filled",startIcon:p.jsx(yI,{}),sx:{marginRight:"24px",borderRadius:"44px"},children:o("Modifier")}),p.jsx($t,{onClick:i=>s(!r),children:r===!0?p.jsx(CI,{}):p.jsx(wI,{})})]})]}),r&&p.jsx(gr,{in:r,timeout:300,children:p.jsxs("div",{children:[p.jsx(Do,{}),p.jsx(Ke,{component:"div",sx:{padding:"44px"},children:e.children})]})})]})}const VI=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(Ze,{variant:"body",style:{marginInline:"10px"},children:t})})},LI=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",border:`2px dashed ${qe[800]}`,borderRadius:"8px",background:qe[200]},children:e.children}),zI=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},BI=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})},HI=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",borderLeft:`1px solid ${qe[500]}`,paddingLeft:"2rem"},children:e.data}),WI=e=>p.jsx(Ke,{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}),Eh=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"})),UI=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(Wt,{variant:"text",startIcon:p.jsx(Eh,{}),onClick:()=>r(!1),disableRipple:!0})})]})},qI=K(cI)(()=>({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]}})),GI=e=>{const{choices:t,onClick:o,currentIndexSelected:r,...s}=e,[i,a]=he.useState(r??null),l=c=>{if(o==null||o(c),c===i){a(null);return}a(c)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:t.map((c,u)=>he.createElement(qI,{...s,key:`${u}-button-toggle-${c}`,value:u,onClick:()=>l(u),selected:u===i},p.jsx(Ze,{variant:"big-bold",color:"inherit",children:c})))})},YI=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"})),KI=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(Ze,{variant:"body",children:r}),o!==s&&p.jsx("div",{style:{marginInline:"5px"},children:p.jsx(YI,{})})]},`text-arrow-${Math.random()}`))})};var lc={},$h={exports:{}};(function(e){function t(o){return o&&o.__esModule?o:{default:o}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($h);var ft=$h.exports,cc={};const XI=jy(z1);var Mh;function mt(){return Mh||(Mh=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=XI}(cc)),cc}var ZI=ft;Object.defineProperty(lc,"__esModule",{value:!0});var uc=lc.default=void 0,QI=ZI(mt()),JI=p,eD=(0,QI.default)((0,JI.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");uc=lc.default=eD;const tD=e=>{const[t,o]=he.useState(!0),r=s=>{e.onClose&&e.onClose(s),o(!1)};return t?p.jsxs(Ke,{sx:{background:e.type!==void 0&&e.type!=="default"?e.type==="brand"?"#EEFDE5":"#FEFCFB":"#FFF",border:"1px solid #E7E6E4",borderRadius:"12px",boxShadow:"0px 4px 20px 0px rgba(81, 78, 78, 0.12)",display:"flex",alignItems:"flex-start",gap:e.size==="big"?"28px":"20px",padding:e.size==="big"?"32px":"20px",position:"relative"},children:[p.jsx(Nt,{alignItems:"center",justifyContent:"center",sx:{width:e.size!==void 0&&e.size==="big"?"72px":"36px",height:e.size!==void 0&&e.size==="big"?"72px":"36px",background:e.size!==void 0&&e.size==="big"?"#FFF6E8":"transparent",borderRadius:"100%"},children:e.icon}),p.jsxs(Nt,{direction:e.orientation==="horizontal"?"row":"column",gap:e.size==="big"?"20px":"16px",flex:1,children:[p.jsxs(Nt,{flex:1,gap:"8px",children:[p.jsx(Ze,{variant:"h4",children:e.title}),p.jsx(Ze,{variant:"caption",children:e.children})]}),e.cta&&p.jsx(Nt,{direction:"row",alignItems:"center",gap:"24px",sx:{maxHeight:e.size==="big"?"100%":"20px"},children:e.cta})]}),e.closeable&&p.jsx(Nt,{alignItems:"center",justifyContent:"center",sx:{width:"36px",height:"36px",cursor:"pointer",position:"absolute",top:e.size==="big"?"16px":"8px",right:e.size==="big"?"16px":"8px"},onClick:r,children:p.jsx(uc,{})})]}):null},kh=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(Ze,{variant:i,style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px"},children:[r,t]})},nD=e=>{const{title:t,titleSize:o,icon:r}=e,i=o||"h1";return p.jsxs(Ze,{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]})},oD=e=>p.jsxs(Ke,{sx:{display:"flex",alignItems:"center"},children:[p.jsx(Ke,{sx:{width:"100%",mr:1},children:p.jsx(PE,{variant:"determinate",...e,sx:{"&.MuiLinearProgress-determinate":{backgroundColor:"#E5E1E1",borderBottomLeftRadius:"15px",borderTopLeftRadius:"15px",borderTopRightRadius:"15px",borderBottomRightRadius:"15px"},"& .MuiLinearProgress-root":{height:"6px"}}})}),p.jsx(Ke,{sx:{minWidth:35},children:p.jsx(Ze,{variant:"body2",color:"text.secondary",children:`${Math.round(e.value)}%`})})]});var dc={},rD=ft;Object.defineProperty(dc,"__esModule",{value:!0});var Ih=dc.default=void 0,sD=rD(mt()),iD=p,aD=(0,sD.default)((0,iD.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");Ih=dc.default=aD;const lD=e=>p.jsx(Ke,{sx:{minWidth:205},children:p.jsxs(dR,{variant:"outlined",style:{borderRadius:"10px"},children:[p.jsxs(CR,{style:{textAlign:"left",marginLeft:"0.5rem",marginRight:"0.5rem"},children:[e.heading.contentUrl&&p.jsx("img",{src:e.heading.contentUrl,width:"30",alt:"icon-ssq"}),p.jsx("div",{style:{minHeight:"100px",marginTop:"0.5rem"},children:p.jsx(Ze,{variant:"subtitle2",component:"div",style:{fontWeight:"bold"},children:e.heading.title})}),p.jsx(Ze,{variant:"caption",component:"div",children:e.progress.label}),p.jsx(Ke,{children:p.jsx(oD,{value:e.progress.value})})]}),p.jsx(hR,{style:{textAlign:"left",marginLeft:"0.5rem",marginRight:"0.5rem"},children:p.jsxs(Ke,{sx:{color:"#AA062B"},children:[p.jsx(Wt,{variant:"text",size:"small",color:"inherit",style:{textTransform:"initial",fontWeight:"bold"},component:e.link.component,to:e.link.to,children:e.link.label}),p.jsx(Ih,{color:"inherit",style:{verticalAlign:"middle"}})]})})]})}),cD=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})),uD=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"})))),dD=K(mr)(()=>({":hover":{background:qe[400]}})),pD=e=>{const{values:t,...o}=e,{onChange:r,...s}=o,i=Object.entries(t);return p.jsx(zO,{children:i.map(([a,l],c)=>p.jsx(Im,{control:p.jsx(dD,{...s,checkedIcon:p.jsx(uD,{}),icon:p.jsx(cD,{}),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 fD(e,t,o){const r={...t},s=e.filter(a=>{const l=r[a.id];return r[a.id]={...l,state:!1},!!l.state});return Object.entries(r).reduce((a,[l,c])=>{if(c.state){const u=o({id:Number.parseInt(l),displayName:c.name});a.push(u)}return a},s)}function mD(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 gD=e=>{const{t}=na(),{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(wm,{onClose:u,...l,children:[p.jsxs(bO,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${qe[500]}`,minHeight:"68px"},children:[r.title,p.jsx(Wt,{variant:"text",endIcon:p.jsx(Eh,{}),onClick:u})]}),r.content,p.jsxs(Tm,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:`1px solid ${qe[500]}`,minHeight:"68px",paddingInline:"1rem"},children:[p.jsx(Wt,{variant:"text",onClick:u,children:t("Annuler")}),p.jsx(Wt,{variant:"primary",onClick:d,disabled:!a,children:t("Valider")})]})]})},hD=K(zi)(({theme:e})=>({fontFamily:e.typography.fontFamily,...e.typography.body})),oa=he.forwardRef(function(e){const{sx:t,...o}=e;return p.jsx(hD,{...o,sx:{color:"#393A36",border:"1px solid #A3A2A0",borderRadius:"16px",paddingInline:"20px",...t}})}),bD=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(Ze,{variant:"h5",children:[t," :"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[p.jsx(oa,{type:"number",style:{minWidth:"150px",width:"10%"},placeholder:r,value:s,...a}),p.jsx(Ze,{variant:"body",children:o})]}),p.jsx(Ze,{variant:"body-light",children:i})]})},vD=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(Ze,{variant:"h5",children:[o," :"]}),p.jsx(oa,{sx:{width:"70%",...a},placeholder:r,value:s,...l}),p.jsx(Ze,{variant:"body-light",children:i})]})}),Dh=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()}`)})})},yD=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"})),xD=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"}));/**
378
378
  * table-core
379
379
  *
380
380
  * Copyright (c) TanStack
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "0.1.39",
4
+ "version": "0.1.40",
5
5
  "type": "module",
6
6
  "main": "./dist/main.umd.cjs",
7
7
  "module": "./dist/main.js",