@foodpilot/foods 0.1.94 → 0.1.96

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.
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { ToggleButtonProps } from "@mui/material";
3
+ export declare const CustomToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ToggleButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
4
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
5
+ }, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "key" | "value" | "onClick" | "selected">;
7
+ type ToggleChoice = {
8
+ id: number;
9
+ name: string;
10
+ };
11
+ export type FoodsToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
12
+ selectedChoice: ToggleChoice | null;
13
+ choices: ToggleChoice[];
14
+ onSelection: (selectedChoiceId: number) => void;
15
+ ToggleButtonProps?: ToggleButtonsPropsWithoutEnforcedKeys;
16
+ };
17
+ export declare const FoodsToggleButton: (props: FoodsToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
package/dist/main.js CHANGED
@@ -29595,8 +29595,8 @@ const yre = (e) => {
29595
29595
  children: /* @__PURE__ */ f.jsx(eB, {})
29596
29596
  }
29597
29597
  ),
29598
- e.title && /* @__PURE__ */ f.jsxs(st, { flex: 1, gap: t === "big" ? "12px" : "16px", position: "relative", children: [
29599
- /* @__PURE__ */ f.jsx(Ge, { variant: "h4", children: e.title }),
29598
+ /* @__PURE__ */ f.jsxs(st, { flex: 1, gap: t === "big" ? "12px" : "16px", position: "relative", children: [
29599
+ e.title && /* @__PURE__ */ f.jsx(Ge, { variant: "h4", children: e.title }),
29600
29600
  /* @__PURE__ */ f.jsx(Ge, { variant: "caption", children: e.children })
29601
29601
  ] }),
29602
29602
  e.cta && /* @__PURE__ */ f.jsx(
package/dist/main.umd.cjs CHANGED
@@ -359,7 +359,7 @@ const theme2 = createTheme({ palette: {
359
359
  ${e.palette.mode==="light"?jc(Ct(e.palette.divider,1),.88):Ic(Ct(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",[`&.${$7.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})),Qx=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTableCell"}),{align:r="inherit",className:s,component:a,padding:l,scope:c,size:u,sortDirection:d,variant:f}=o,h=ve(o,F7),g=T.useContext(qx),b=T.useContext(ol),m=b&&b.variant==="head";let v;a?v=a:v=m?"th":"td";let y=c;v==="td"?y=void 0:!y&&m&&(y="col");const w=f||b&&b.variant,S=C({},o,{align:r,component:v,padding:l||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&g&&g.stickyHeader,variant:w}),P=N7(S);let x=null;return d&&(x=d==="asc"?"ascending":"descending"),p.jsx(L7,C({as:v,ref:n,className:Pe(P.root,s),"aria-sort":x,scope:y,ownerState:S},h))});process.env.NODE_ENV!=="production"&&(Qx.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});const yu=Qx;function V7(e){return We("MuiTableFooter",e)}Ve("MuiTableFooter",["root"]);const B7=["className","component"],z7=e=>{const{classes:t}=e;return Be({root:["root"]},V7,t)},H7=Z("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),W7={variant:"footer"},Jx="tfoot",eC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTableFooter"}),{className:r,component:s=Jx}=o,a=ve(o,B7),l=C({},o,{component:s}),c=z7(l);return p.jsx(ol.Provider,{value:W7,children:p.jsx(H7,C({as:s,className:Pe(c.root,r),ref:n,role:s===Jx?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(eC.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const U7=eC;function q7(e){return We("MuiTableHead",e)}Ve("MuiTableHead",["root"]);const G7=["className","component"],Y7=e=>{const{classes:t}=e;return Be({root:["root"]},q7,t)},K7=Z("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),X7={variant:"head"},tC="thead",nC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTableHead"}),{className:r,component:s=tC}=o,a=ve(o,G7),l=C({},o,{component:s}),c=Y7(l);return p.jsx(ol.Provider,{value:X7,children:p.jsx(K7,C({as:s,className:Pe(c.root,r),ref:n,role:s===tC?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(nC.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Z7=nC,Q7=Pt(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),J7=Pt(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function e9(e){return We("MuiTableRow",e)}const oC=Ve("MuiTableRow",["root","selected","hover","head","footer"]),t9=["className","component","hover","selected"],n9=e=>{const{classes:t,selected:n,hover:o,head:r,footer:s}=e;return Be({root:["root",n&&"selected",o&&"hover",r&&"head",s&&"footer"]},e9,t)},o9=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${oC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${oC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(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}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),rC="tr",iC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTableRow"}),{className:r,component:s=rC,hover:a=!1,selected:l=!1}=o,c=ve(o,t9),u=T.useContext(ol),d=C({},o,{component:s,hover:a,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=n9(d);return p.jsx(o9,C({as:s,ref:n,className:Pe(f.root,r),role:s===rC?null:"row",ownerState:d},c))});process.env.NODE_ENV!=="production"&&(iC.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const xu=iC,r9=Pt(p.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function i9(e){return We("MuiTableSortLabel",e)}const Vp=Ve("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),s9=["active","children","className","direction","hideSortIcon","IconComponent"],a9=e=>{const{classes:t,direction:n,active:o}=e,r={root:["root",o&&"active"],icon:["icon",`iconDirection${we(n)}`]};return Be(r,i9,t)},l9=Z(fo,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.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,[`& .${Vp.icon}`]:{opacity:.5}},[`&.${Vp.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Vp.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),c9=Z("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${we(n.direction)}`]]}})(({theme:e,ownerState:t})=>C({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)"})),sC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTableSortLabel"}),{active:r=!1,children:s,className:a,direction:l="asc",hideSortIcon:c=!1,IconComponent:u=r9}=o,d=ve(o,s9),f=C({},o,{active:r,direction:l,hideSortIcon:c,IconComponent:u}),h=a9(f);return p.jsxs(l9,C({className:Pe(h.root,a),component:"span",disableRipple:!0,ownerState:f,ref:n},d,{children:[s,c&&!r?null:p.jsx(c9,{as:u,className:Pe(h.icon),ownerState:f})]}))});process.env.NODE_ENV!=="production"&&(sC.propTypes={active:i.bool,children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["asc","desc"]),hideSortIcon:i.bool,IconComponent:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const u9=sC;function d9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function f9(e,t,n,o={},r=()=>{}){const{ease:s=d9,duration:a=300}=o;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},f=h=>{if(u){r(new Error("Animation cancelled"));return}l===null&&(l=h);const g=Math.min(1,(h-l)/a);if(t[e]=s(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(f)};return c===n?(r(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const p9=["onChange"],h9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function aC(e){const{onChange:t}=e,n=ve(e,p9),o=T.useRef(),r=T.useRef(null),s=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return _n(()=>{const a=bs(()=>{const c=o.current;s(),c!==o.current&&t(o.current)}),l=sr(r.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),T.useEffect(()=>{s(),t(o.current)},[t]),p.jsx("div",C({style:h9,ref:r},n))}process.env.NODE_ENV!=="production"&&(aC.propTypes={onChange:i.func.isRequired});function g9(e){return We("MuiTabScrollButton",e)}const m9=Ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),b9=["className","slots","slotProps","direction","orientation","disabled"],v9=e=>{const{classes:t,orientation:n,disabled:o}=e;return Be({root:["root",n,o&&"disabled"]},g9,t)},y9=Z(fo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>C({width:40,flexShrink:0,opacity:.8,[`&.${m9.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),lC=T.forwardRef(function(t,n){var o,r;const s=$e({props:t,name:"MuiTabScrollButton"}),{className:a,slots:l={},slotProps:c={},direction:u}=s,d=ve(s,b9),h=ut().direction==="rtl",g=C({isRtl:h},s),b=v9(g),m=(o=l.StartScrollButtonIcon)!=null?o:Q7,v=(r=l.EndScrollButtonIcon)!=null?r:J7,y=Ot({elementType:m,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),w=Ot({elementType:v,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return p.jsx(y9,C({component:"div",className:Pe(b.root,a),ref:n,role:null,ownerState:g,tabIndex:null},d,{children:u==="left"?p.jsx(m,C({},y)):p.jsx(v,C({},w))}))});process.env.NODE_ENV!=="production"&&(lC.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const x9=lC;function C9(e){return We("MuiTabs",e)}const Cu=Ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),w9=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],cC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,uC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,wu=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const s=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||s)r=n(e,r);else{r.focus();return}}},S9=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Be({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},C9,c)},T9=Z("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cu.scrollButtons}`]:t.scrollButtons},{[`& .${Cu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>C({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Cu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),P9=Z("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>C({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"})),O9=Z("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>C({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),R9=Z("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>C({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})),_9=Z(aC)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),dC={};let fC=!1;const pC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTabs"}),r=ut(),s=r.direction==="rtl",{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:m,orientation:v="horizontal",ScrollButtonComponent:y=x9,scrollButtons:w="auto",selectionFollowsFocus:S,slots:P={},slotProps:x={},TabIndicatorProps:O={},TabScrollButtonProps:_={},textColor:k="primary",value:E,variant:A="standard",visibleScrollbar:I=!1}=o,F=ve(o,w9),L=A==="scrollable",$=v==="vertical",j=$?"scrollTop":"scrollLeft",N=$?"top":"left",V=$?"bottom":"right",H=$?"clientHeight":"clientWidth",W=$?"height":"width",B=C({},o,{component:h,allowScrollButtonsMobile:g,indicatorColor:b,orientation:v,vertical:$,scrollButtons:w,textColor:k,variant:A,visibleScrollbar:I,fixed:!L,hideScrollbar:L&&!I,scrollableX:L&&!$,scrollableY:L&&$,centered:u&&!L,scrollButtonsHideMobile:!g}),Y=S9(B),me=Ot({elementType:P.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:B}),se=Ot({elementType:P.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:B});process.env.NODE_ENV!=="production"&&u&&L&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[q,K]=T.useState(!1),[X,Q]=T.useState(dC),[ne,ce]=T.useState(!1),[de,le]=T.useState(!1),[z,ue]=T.useState(!1),[fe,xe]=T.useState({overflow:"hidden",scrollbarWidth:0}),ge=new Map,nt=T.useRef(null),Se=T.useRef(null),Fe=()=>{const Te=nt.current;let Ae;if(Te){const et=Te.getBoundingClientRect();Ae={clientWidth:Te.clientWidth,scrollLeft:Te.scrollLeft,scrollTop:Te.scrollTop,scrollLeftNormalized:p5(Te,r.direction),scrollWidth:Te.scrollWidth,top:et.top,bottom:et.bottom,left:et.left,right:et.right}}let Re;if(Te&&E!==!1){const et=Se.current.children;if(et.length>0){const gt=et[ge.get(E)];process.env.NODE_ENV!=="production"&&(gt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${E}".`,ge.keys?`You can provide one of the following values: ${Array.from(ge.keys()).join(", ")}.`:null].join(`
360
360
  `))),Re=gt?gt.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!fC&&Re&&Re.width===0&&Re.height===0&&Ae.clientWidth!==0&&(Ae=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(`
361
361
  `)),fC=!0)}}return{tabsMeta:Ae,tabMeta:Re}},ie=st(()=>{const{tabsMeta:Te,tabMeta:Ae}=Fe();let Re=0,et;if($)et="top",Ae&&Te&&(Re=Ae.top-Te.top+Te.scrollTop);else if(et=s?"right":"left",Ae&&Te){const Tt=s?Te.scrollLeftNormalized+Te.clientWidth-Te.scrollWidth:Te.scrollLeft;Re=(s?-1:1)*(Ae[et]-Te[et]+Tt)}const gt={[et]:Re,[W]:Ae?Ae[W]:0};if(isNaN(X[et])||isNaN(X[W]))Q(gt);else{const Tt=Math.abs(X[et]-gt[et]),wt=Math.abs(X[W]-gt[W]);(Tt>=1||wt>=1)&&Q(gt)}}),re=(Te,{animation:Ae=!0}={})=>{Ae?f9(j,nt.current,Te,{duration:r.transitions.duration.standard}):nt.current[j]=Te},_e=Te=>{let Ae=nt.current[j];$?Ae+=Te:(Ae+=Te*(s?-1:1),Ae*=s&&V0()==="reverse"?-1:1),re(Ae)},Je=()=>{const Te=nt.current[H];let Ae=0;const Re=Array.from(Se.current.children);for(let et=0;et<Re.length;et+=1){const gt=Re[et];if(Ae+gt[H]>Te){et===0&&(Ae=Te);break}Ae+=gt[H]}return Ae},tt=()=>{_e(-1*Je())},ot=()=>{_e(Je())},Ie=T.useCallback(Te=>{xe({overflow:null,scrollbarWidth:Te})},[]),Le=()=>{const Te={};Te.scrollbarSizeListener=L?p.jsx(_9,{onChange:Ie,className:Pe(Y.scrollableX,Y.hideScrollbar)}):null;const Re=L&&(w==="auto"&&(ne||de)||w===!0);return Te.scrollButtonStart=Re?p.jsx(y,C({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:me},orientation:v,direction:s?"right":"left",onClick:tt,disabled:!ne},_,{className:Pe(Y.scrollButtons,_.className)})):null,Te.scrollButtonEnd=Re?p.jsx(y,C({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:v,direction:s?"left":"right",onClick:ot,disabled:!de},_,{className:Pe(Y.scrollButtons,_.className)})):null,Te},he=st(Te=>{const{tabsMeta:Ae,tabMeta:Re}=Fe();if(!(!Re||!Ae)){if(Re[N]<Ae[N]){const et=Ae[j]+(Re[N]-Ae[N]);re(et,{animation:Te})}else if(Re[V]>Ae[V]){const et=Ae[j]+(Re[V]-Ae[V]);re(et,{animation:Te})}}}),pe=st(()=>{L&&w!==!1&&ue(!z)});T.useEffect(()=>{const Te=bs(()=>{nt.current&&ie()});let Ae;const Re=Tt=>{Tt.forEach(wt=>{wt.removedNodes.forEach(an=>{var Wt;(Wt=Ae)==null||Wt.unobserve(an)}),wt.addedNodes.forEach(an=>{var Wt;(Wt=Ae)==null||Wt.observe(an)})}),Te(),pe()},et=sr(nt.current);et.addEventListener("resize",Te);let gt;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(Te),Array.from(Se.current.children).forEach(Tt=>{Ae.observe(Tt)})),typeof MutationObserver<"u"&&(gt=new MutationObserver(Re),gt.observe(Se.current,{childList:!0})),()=>{var Tt,wt;Te.clear(),et.removeEventListener("resize",Te),(Tt=gt)==null||Tt.disconnect(),(wt=Ae)==null||wt.disconnect()}},[ie,pe]),T.useEffect(()=>{const Te=Array.from(Se.current.children),Ae=Te.length;if(typeof IntersectionObserver<"u"&&Ae>0&&L&&w!==!1){const Re=Te[0],et=Te[Ae-1],gt={root:nt.current,threshold:.99},Tt=St=>{ce(!St[0].isIntersecting)},wt=new IntersectionObserver(Tt,gt);wt.observe(Re);const an=St=>{le(!St[0].isIntersecting)},Wt=new IntersectionObserver(an,gt);return Wt.observe(et),()=>{wt.disconnect(),Wt.disconnect()}}},[L,w,z,d==null?void 0:d.length]),T.useEffect(()=>{K(!0)},[]),T.useEffect(()=>{ie()}),T.useEffect(()=>{he(dC!==X)},[he,X]),T.useImperativeHandle(c,()=>({updateIndicator:ie,updateScrollButtons:pe}),[ie,pe]);const ke=p.jsx(R9,C({},O,{className:Pe(Y.indicator,O.className),ownerState:B,style:C({},X,O.style)}));let ct=0;const dt=T.Children.map(d,Te=>{if(!T.isValidElement(Te))return null;process.env.NODE_ENV!=="production"&&Ci.isFragment(Te)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
362
- `));const Ae=Te.props.value===void 0?ct:Te.props.value;ge.set(Ae,ct);const Re=Ae===E;return ct+=1,T.cloneElement(Te,C({fullWidth:A==="fullWidth",indicator:Re&&!q&&ke,selected:Re,selectionFollowsFocus:S,onChange:m,textColor:k,value:Ae},ct===1&&E===!1&&!Te.props.tabIndex?{tabIndex:0}:{}))}),je=Te=>{const Ae=Se.current,Re=wn(Ae).activeElement;if(Re.getAttribute("role")!=="tab")return;let gt=v==="horizontal"?"ArrowLeft":"ArrowUp",Tt=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&s&&(gt="ArrowRight",Tt="ArrowLeft"),Te.key){case gt:Te.preventDefault(),wu(Ae,Re,uC);break;case Tt:Te.preventDefault(),wu(Ae,Re,cC);break;case"Home":Te.preventDefault(),wu(Ae,null,cC);break;case"End":Te.preventDefault(),wu(Ae,null,uC);break}},Ue=Le();return p.jsxs(T9,C({className:Pe(Y.root,f),ownerState:B,ref:n,as:h},F,{children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,p.jsxs(P9,{className:Y.scroller,ownerState:B,style:{overflow:fe.overflow,[$?`margin${s?"Left":"Right"}`:"marginBottom"]:I?void 0:-fe.scrollbarWidth},ref:nt,children:[p.jsx(O9,{"aria-label":a,"aria-labelledby":l,"aria-orientation":v==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:B,onKeyDown:je,ref:Se,role:"tablist",children:dt}),q&&ke]}),Ue.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(pC.propTypes={action:dn,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});const hC=pC;function k9(e){return We("MuiTextField",e)}Ve("MuiTextField",["root"]);const M9=["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"],E9={standard:Ay,filled:Cy,outlined:mx},D9=e=>{const{classes:t}=e;return Be({root:["root"]},k9,t)},I9=Z(Cp,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:b,id:m,InputLabelProps:v,inputProps:y,InputProps:w,inputRef:S,label:P,maxRows:x,minRows:O,multiline:_=!1,name:k,onBlur:E,onChange:A,onFocus:I,placeholder:F,required:L=!1,rows:$,select:j=!1,SelectProps:N,type:V,value:H,variant:W="outlined"}=o,B=ve(o,M9),Y=C({},o,{autoFocus:s,color:c,disabled:d,error:f,fullWidth:g,multiline:_,required:L,select:j,variant:W}),me=D9(Y);process.env.NODE_ENV!=="production"&&j&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const se={};W==="outlined"&&(v&&typeof v.shrink<"u"&&(se.notched=v.shrink),se.label=P),j&&((!N||!N.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const q=ar(m),K=b&&q?`${q}-helper-text`:void 0,X=P&&q?`${q}-label`:void 0,Q=E9[W],ne=p.jsx(Q,C({"aria-describedby":K,autoComplete:r,autoFocus:s,defaultValue:u,fullWidth:g,multiline:_,name:k,rows:$,maxRows:x,minRows:O,type:V,value:H,id:q,inputRef:S,onBlur:E,onChange:A,onFocus:I,placeholder:F,inputProps:y},se,w));return p.jsxs(I9,C({className:Pe(me.root,l),disabled:d,error:f,fullWidth:g,ref:n,required:L,color:c,variant:W,ownerState:Y},B,{children:[P!=null&&P!==""&&p.jsx(Vy,C({htmlFor:q,id:X},v,{children:P})),j?p.jsx(Ix,C({"aria-describedby":K,id:q,labelId:X,value:H,input:ne},N,{children:a})):ne,b&&p.jsx(My,C({id:K},h,{children:b}))]}))});process.env.NODE_ENV!=="production"&&(gC.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:dn,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Ii=gC;function j9(e){return We("MuiToggleButton",e)}const mC=Ve("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),bC=T.createContext({});process.env.NODE_ENV!=="production"&&(bC.displayName="ToggleButtonGroupContext");const A9=bC,vC=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(vC.displayName="ToggleButtonGroupButtonContext");const $9=vC;function F9(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const N9=["value"],L9=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],V9=e=>{const{classes:t,fullWidth:n,selected:o,disabled:r,size:s,color:a}=e,l={root:["root",o&&"selected",r&&"disabled",n&&"fullWidth",`size${we(s)}`,a]};return Be(l,j9,t)},B9=Z(fo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${we(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,o;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,o=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),C({},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%"},{[`&.${mC.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})`:kn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mC.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${o} / ${e.vars.palette.action.selectedOpacity})`:kn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${o} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${o} / ${e.vars.palette.action.selectedOpacity})`:kn(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),yC=T.forwardRef(function(t,n){const o=T.useContext(A9),{value:r}=o,s=ve(o,N9),a=T.useContext($9),l=Pc(C({},s,{selected:F9(t.value,r)}),t),c=$e({props:l,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:h=!1,disableFocusRipple:g=!1,fullWidth:b=!1,onChange:m,onClick:v,selected:y,size:w="medium",value:S}=c,P=ve(c,L9),x=C({},c,{color:f,disabled:h,disableFocusRipple:g,fullWidth:b,size:w}),O=V9(x),_=E=>{v&&(v(E,S),E.defaultPrevented)||m&&m(E,S)},k=a||"";return p.jsx(B9,C({className:Pe(s.className,O.root,d,k),disabled:h,focusRipple:!g,ref:n,onClick:_,onChange:m,value:S,ownerState:x,"aria-pressed":y},P,{children:u}))});process.env.NODE_ENV!=="production"&&(yC.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["standard","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,fullWidth:i.bool,onChange:i.func,onClick:i.func,selected:i.bool,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any.isRequired});const xC=yC;var Bp={},zp={};const z9=xr(FE);var CC;function jt(){return CC||(CC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=z9}(zp)),zp}var H9=kt;Object.defineProperty(Bp,"__esModule",{value:!0});var wC=Bp.default=void 0,W9=H9(jt()),U9=p;wC=Bp.default=(0,W9.default)((0,U9.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");const SC=e=>{const t=ut(),{label:n,unit:o,size:r=14,direction:s="row"}=e;return p.jsxs(at,{direction:s,spacing:1,alignItems:"baseline",children:[p.jsx(Ye,{fontWeight:"bold",fontSize:r,color:t.custom.grey[2800],children:n}),p.jsx(Ye,{fontWeight:"normal",variant:"h3",fontSize:r>14?12:10,lineHeight:"inherit",color:t.custom.grey[1400],children:o})]})},q9={A:"#1e8f4e",B:"#37cb78",C:"#ebc22c",D:"#ec7f2a",E:"#d7392e"},G9=e=>{const{score:t,value:n,size:o=14,direction:r="row"}=e;return p.jsxs(at,{direction:r,alignItems:"center",width:"fit-content",spacing:1,children:[p.jsx(Es,{color:"primary",label:t,style:{backgroundColor:q9[t],fontWeight:700}}),p.jsxs(Ye,{fontSize:o,fontWeight:"bold",children:[n," / 100"]})]})},Hp=e=>{const t=ut(),{value:n,unit:o,...r}=e;return p.jsx(Qe,{display:"inline-flex",bgcolor:t.custom.grey[200],border:`1px solid ${t.custom.grey[500]}`,borderRadius:"4px",padding:"4px 8px",position:"relative",...r,children:p.jsx(SC,{label:n,unit:o})})},TC=bi(Ov)(()=>({background:"transparent",borderTop:`1px solid ${ut().custom.grey[500]}`,borderRadius:"0 !important",boxShadow:"none",":before":{height:0},":last-of-type":{borderBottom:`1px solid ${ut().custom.grey[500]}`},"&.Mui-expanded":{margin:0}})),PC=bi(Fv)(()=>({minHeight:"84px",borderRadius:0,padding:0,"&.Mui-expanded":{minHeight:"84px"},">.MuiAccordionSummary-content":{margin:"20px 0"},">.MuiAccordionSummary-expandIconWrapper":{width:"44px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"12px",color:ut().custom.grey[2800]}})),OC=bi(_v)(()=>({padding:"8px 0 28px 0"})),Y9=e=>{const[t,n]=oe.useState(null),o=r=>{if(r===t){n(null);return}n(r)};return p.jsx(at,{direction:"column",children:e.pages.map((r,s)=>p.jsxs(TC,{expanded:t===s,children:[p.jsx(PC,{expandIcon:p.jsx(wC,{}),onClick:()=>o(s),children:p.jsxs(at,{direction:"row",alignItems:"center",gap:"28px",flex:1,children:[p.jsx(Ye,{variant:"h3",flex:1,children:r.title}),r.indicator&&p.jsx(Hp,{value:r.indicator.value,unit:r.indicator.unit})]})}),p.jsx(OC,{children:r.content})]},`form-accordion-${s}`))})},K9=e=>T.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M13.0004 16.5796L6.63672 10.216L7.89176 8.96094L13.0004 14.0872L18.1089 8.97862L19.364 10.2337L13.0004 16.5796Z",fill:"#393A36"})),eo={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"},De={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"},RC={100:"#FFF0ED",200:"#FCCCC2",300:"#F8A897",400:"#F5846B",500:"#F16040",600:"#EE3C15",700:"#D03210",800:"#B2290B",900:"#931F05",1e3:"#751500"},Su={100:"#DFFFE6",200:"#B7F2C4",300:"#8FE5A2",400:"#67D980",500:"#3FCC5E",600:"#17BF3C",700:"#12A332",800:"#0D8728",900:"#086A1D",1e3:"#034E13"},X9={primary:{light:"#63b8ff",main:"#000",dark:"#005db0",contrastText:"#fff"},secondary:{main:"#91B927",light:"#82e9de",dark:"#00867d",contrastText:"#000"}},Z9={fontFamily:["Montserrat","serif"].join(","),h1:{fontStyle:"normal",fontWeight:"700",fontSize:"2rem",lineHeight:"3.2rem",color:De[2800]},h2:{fontStyle:"normal",fontWeight:"700",fontSize:"1.5rem",lineHeight:"2.4rem",color:De[2800]},h3:{fontStyle:"normal",fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.8rem",color:De[2800]},h4:{fontStyle:"normal",fontWeight:"700",fontSize:"0.875rem",lineHeight:"1.4rem",color:De[2800]},h5:{fontStyle:"normal",fontWeight:"700",fontSize:"0.75rem",lineHeight:"1.2rem",color:De[2800]},h6:{fontStyle:"normal",fontWeight:"700",fontSize:"0.625rem",lineHeight:"1rem",color:De[2800]},"huge-bold":{fontStyle:"normal",fontWeight:600,fontSize:"1.125rem",lineHeight:"2.025rem",color:De[2800]},"huge-medium":{fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"2.025rem",color:De[2800]},huge:{fontStyle:"normal",fontWeight:400,fontSize:"1.125rem",lineHeight:"2.025rem",color:De[2800]},"big-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.875rem",lineHeight:"1.575rem",color:De[2800]},"big-medium":{fontStyle:"normal",fontWeight:"500",fontSize:"0.875rem",lineHeight:"1.575rem",color:De[2800]},big:{fontStyle:"normal",fontWeight:"400",fontSize:"0.875rem",lineHeight:"1.575rem",color:De[2800]},"body-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.75rem",lineHeight:"1.35rem",color:De[2800]},"body-medium":{fontStyle:"normal",fontWeight:"500",fontSize:"0.75rem",lineHeight:"1.35rem",color:De[2800]},body:{fontStyle:"normal",fontWeight:"400",fontSize:"0.75rem",lineHeight:"1.35rem",color:De[2800]},"small-bold":{fontStyle:"normal",fontWeight:600,fontSize:"0.625rem",lineHeight:"1.125rem",color:De[2800]},"small-medium":{fontStyle:"normal",fontWeight:500,fontSize:"0.625rem",lineHeight:"1.125rem",color:De[2800]},small:{fontStyle:"normal",fontWeight:400,fontSize:"0.625rem",lineHeight:"1.125rem",color:De[2800]}},Q9={color:eo,grey:De,red:RC,green:Su,searchBox:{borderRadius:"24px",border:"1px solid #E7E6E4",background:"white",boxShadow:"0px 2px 8px 0px "+De[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"},productGrid:{baseCell:{color:eo[800],fontSize:"12px",fontWeight:700,borderInline:"1px solid "+De[500]},boldCell:{color:De[2800],fontFamily:"Montserrat",fontStyle:"normal",fontSize:"18px",fontWeight:"800",lineHeight:"normal"},greyCell:{color:De[2500],fontSize:"12px",fontStyle:"normal",fontWeight:"400",lineHeight:"20px"},headerCell:{fontWeight:"500",color:De[2e3],backgroundColor:De[200],border:"1px solid "+De[500]}}},J9={MuiAvatar:{defaultProps:{children:[]},styleOverrides:{root:({ownerState:{alt:e=""}})=>{const t=e.split(" ").map(n=>n.charAt(0).toUpperCase()).join("");return{background:eo[200],color:eo[800],fontWeight:600,".MuiAvatar-img":{zIndex:1},":empty::before":{content:`"${t}"`}}}},variants:[{props:{variant:"small"},style:{width:"24px",height:"24px",fontSize:"10px"}},{props:{variant:"medium"},style:{width:"36px",height:"36px",fontSize:"13px"}},{props:{variant:"big"},style:{width:"40px",height:"40px",fontSize:"16px"}}]},MuiAvatarGroup:{defaultProps:{variant:"small",spacing:6,sx:{justifyContent:"flex-end"},slotProps:{additionalAvatar:{sx:{color:De[2800],background:De[400]}}}},styleOverrides:{root:({ownerState:{max:e=0}})=>({...[...Array(e)].reduce((t,n,o)=>({...t,[`& > .MuiAvatar-root:nth-of-type(${o+1})`]:{zIndex:e-o}}),{})})}},MuiButtonGroup:{defaultProps:{disableRipple:!0}},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:eo.gradient,":hover":{color:"#FFFFFF",background:eo[700]},":disabled":{color:"#FFFFFF",background:eo["700-light"]},":active":{background:"none",backgroundColor:eo[900]}}},{props:{variant:"secondary"},style:{color:eo[700],border:`2px solid ${eo[700]}`,":hover":{color:"#FFFFFF",border:"none",background:eo[700]},":disabled":{color:eo["700-light"],border:`2px solid ${eo["700-light"]}`,background:"#FFFFFF"},":active":{color:"#FFFFFF",border:"none",background:eo[900]}}},{props:{variant:"ternary"},style:{border:`1px solid ${De[500]}`,background:De.gradientLight,":hover":{border:`1px solid ${De[500]}`,background:De[400]},":disabled":{border:`1px solid ${De[100]}`,background:De[500]},":active":{background:De[600]}}},{props:{variant:"text"},style:{transition:"none",paddingInline:"0",color:eo[800],fontWeight:"700",":hover":{background:"none",textDecoration:"underline"}}},{props:{variant:"selected-menu"},style:{color:"white",background:"linear-gradient(180deg, #F6B100 0%, #EC7F00 100%)",borderRadius:"8px",padding:"0px"}},{props:{variant:"selected-submenu"},style:{color:eo[500],background:"inherit"}},{props:{variant:"default-menu"},style:{color:"white",background:"inherit",borderRadius:"0px",padding:"8px"}},{props:{variant:"black-text"},style:{color:De[2800],background:"none",fontWeight:"600"}},{props:{variant:"black-filled"},style:{borderRadius:"8px",background:`linear-gradient(180deg, ${De[2600]} 0%, ${De[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)"}},{props:{variant:"white-filled"},style:{borderRadius:"8px",border:"1px solid "+De[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"}}},MuiCircularProgress:{styleOverrides:{root:{color:De[800]}}}},_C=Vf({palette:X9,typography:Z9,custom:Q9,components:J9}),kC=bi(Ov)(()=>({".Mui-disabled":{background:De[500]},":before":{height:"0px"},border:`1px solid ${De[500]}`,boxShadow:"0px 2px 8px 0px #2A2B270A"})),e8=e=>{const[t,n]=oe.useState(null),o=r=>{if(r===t){n(null);return}n(r)};return p.jsx("div",{style:{display:"flex",flexDirection:"column",marginBlock:"1rem"},children:e.pages.map((r,s)=>{const a=t===s;return p.jsxs(kC,{expanded:a,disableGutters:!0,children:[p.jsx(Fv,{sx:{minHeight:"80px"},expandIcon:p.jsx(K9,{}),"aria-controls":"panel1a-content",onClick:()=>{o(s),r.onOpenAction&&r.onOpenAction()},children:r.title}),p.jsx(_v,{sx:{borderTop:`1px solid ${De[500]}`},children:r.content})]},`accordion-prod-ing-${s}`)})})},t8=Pt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),n8=Pt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),o8=Pt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),r8=Pt(p.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),MC=Pt(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"),EC=Pt(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"}),"CloseOutlined"),DC=Pt(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3m-9-3.82-2.09-2.09L6.5 13.5 10 17l6.01-6.01-1.41-1.41z"}),"CloudDoneOutlined"),i8=Pt(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM5.92 19H5v-.92l9.06-9.06.92.92zM20.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.41"}),"CreateOutlined"),s8=Pt(p.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),a8=Pt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),l8=Pt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),c8=Pt(p.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),IC=Pt(p.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"LoopOutlined"),u8=Pt(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 19zm-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 14"}),"SearchOutlined"),d8=Pt(p.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function f8(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const jC={};function Wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&jC[t[0]]||(typeof t[0]=="string"&&(jC[t[0]]=new Date),f8(...t))}const AC=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function $C(e,t,n){e.loadNamespaces(t,AC(e,n))}function FC(e,t,n,o){typeof n=="string"&&(n=[n]),n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,AC(e,o))}function p8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=t.languages[0],r=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const u=t.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(o,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(o,e)&&(!r||a(s,e)))}function h8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Wp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}):p8(e,t,n)}const g8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,m8={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},b8=e=>m8[e];let v8={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(g8,b8)};function y8(){return v8}let x8;function C8(){return x8}const w8=oe.createContext();class S8{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const T8=(e,t)=>{const n=oe.useRef();return oe.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function NC(e,t,n,o){return e.getFixedT(t,n,o)}function P8(e,t,n,o){return oe.useCallback(NC(e,t,n,o),[e,t,n,o])}function ji(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:r}=oe.useContext(w8)||{},s=n||o||C8();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new S8),!s){Wp("You will need to pass in an i18next instance by using initReactI18next");const x=(_,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(_)?_[_.length-1]:_,O=[x,{},!1];return O.t=x,O.i18n={},O.ready=!1,O}s.options.react&&s.options.react.wait!==void 0&&Wp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...y8(),...s.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let u=e||r||s.options&&s.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const d=(s.isInitialized||s.initializedStoreOnce)&&u.every(x=>h8(x,s,a)),f=P8(s,t.lng||null,a.nsMode==="fallback"?u:u[0],c),h=()=>f,g=()=>NC(s,t.lng||null,a.nsMode==="fallback"?u:u[0],c),[b,m]=oe.useState(h);let v=u.join();t.lng&&(v=`${t.lng}${v}`);const y=T8(v),w=oe.useRef(!0);oe.useEffect(()=>{const{bindI18n:x,bindI18nStore:O}=a;w.current=!0,!d&&!l&&(t.lng?FC(s,t.lng,u,()=>{w.current&&m(g)}):$C(s,u,()=>{w.current&&m(g)})),d&&y&&y!==v&&w.current&&m(g);function _(){w.current&&m(g)}return x&&s&&s.on(x,_),O&&s&&s.store.on(O,_),()=>{w.current=!1,x&&s&&x.split(" ").forEach(k=>s.off(k,_)),O&&s&&O.split(" ").forEach(k=>s.store.off(k,_))}},[s,v]);const S=oe.useRef(!0);oe.useEffect(()=>{w.current&&!S.current&&m(h),S.current=!1},[s,c]);const P=[b,s,d];if(P.t=b,P.i18n=s,P.ready=d,d||!d&&!l)return P;throw new Promise(x=>{t.lng?FC(s,t.lng,u,()=>x()):$C(s,u,()=>x())})}function O8(e){const t=ut(),{t:n}=ji(),[o,r]=oe.useState(!1);return p.jsxs(Qe,{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(at,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%",padding:"30px 24px"},children:[p.jsxs(at,{direction:"row",useFlexGap:!0,gap:"12px",alignItems:"center",children:[e.headerIcon,p.jsx(Ye,{variant:"h3",children:e.headerText})]}),p.jsxs(at,{direction:"row",useFlexGap:!0,gap:"24px",alignItems:"center",children:[e.controls,!e.controls&&p.jsx(Mt,{disabled:!0,variant:"white-filled",startIcon:p.jsx(i8,{}),sx:{marginRight:"24px",borderRadius:"44px"},children:n("Modifier")}),p.jsx(rn,{onClick:s=>r(!o),children:o===!0?p.jsx(a8,{}):p.jsx(l8,{})})]})]}),o&&p.jsx(js,{in:o,timeout:300,children:p.jsxs("div",{children:[p.jsx(qo,{}),p.jsx(Qe,{component:"div",sx:{padding:"44px"},children:e.children})]})})]})}const R8=e=>{const{orientation:t="vertical",type:n="default"}=e,o=ut();return p.jsxs(Qr,{borderRadius:"12px",sx:{background:n==="default"?"#FFF":o.custom.color[100],display:"flex",alignItems:"flex-start",gap:"20px",padding:t==="vertical"?"24px":"20px 32px 20px 24px"},children:[p.jsx(at,{alignItems:"center",justifyContent:"center",sx:{width:"36px",height:"36px"},children:e.icon}),p.jsxs(at,{direction:e.orientation==="horizontal"?"row":"column",gap:"16px",flex:1,children:[p.jsxs(at,{flex:1,gap:"8px",children:[p.jsx(Ye,{variant:"h4",children:e.title}),p.jsx(Ye,{variant:"caption",children:e.children})]}),e.cta&&p.jsx(at,{direction:e.orientation==="horizontal"?"row":"column",alignItems:e.orientation==="horizontal"?"center":"flex-start",gap:e.orientation==="horizontal"?"24px":"",children:e.cta})]})]})},_8=e=>T.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M4.36204 12.3802L3.61963 11.6378L7.25751 7.99993L3.61963 4.36204L4.36204 3.61963L7.99993 7.25751L11.6378 3.61963L12.3802 4.36204L8.74234 7.99993L12.3802 11.6378L11.6378 12.3802L7.99993 8.74234L4.36204 12.3802Z",fill:"#50504D"})),k8=e=>{const{text:t,action:n}=e;return p.jsxs("div",{style:{backgroundColor:"#EFEDEC",height:"fit-content",paddingBlock:"0.25rem",paddingRight:n?"0.25rem":"0",display:"flex",justifyContent:"center",alignItems:"center",width:"fit-content",borderRadius:"5px"},children:[p.jsx(Ye,{variant:"body",style:{marginInline:"10px"},children:t}),n&&p.jsx(_8,{onClick:n})]})},M8=e=>T.createElement("svg",{width:"100%",height:"100%",preserveAspectRatio:"none",viewBox:"0 0 1232 229",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{opacity:.48,d:"M0 228.999C192.752 13.1805 946.143 143.331 1232 0.000137329L1232 229L0 228.999Z",fill:"inherit"})),E8=e=>{const{size:t="big"}=e,n=ut();return p.jsx(Qr,{borderRadius:"12px",padding:"12px",children:p.jsxs(at,{bgcolor:n.custom.color[100],borderRadius:"4px",padding:t==="big"?"36px":"32px",gap:"32px",position:"relative",overflow:"hidden",children:[p.jsx(Qe,{position:"absolute",sx:{inset:0,color:n.custom.grey[200],objectFit:"cover",zIndex:0},children:p.jsx(M8,{})}),e.title&&p.jsxs(at,{flex:1,gap:t==="big"?"12px":"16px",position:"relative",children:[p.jsx(Ye,{variant:"h4",children:e.title}),p.jsx(Ye,{variant:"caption",children:e.children})]}),e.cta&&p.jsx(at,{direction:"row",alignItems:"center",gap:"24px",sx:{maxHeight:e.size==="big"?"100%":"20px"},children:e.cta})]})})},D8=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",border:`2px dashed ${De[800]}`,borderRadius:"8px",background:De[200]},children:e.children}),Qr=e=>{const t=ut(),{borderRadius:n="16px",boxShadow:o="0 2px 8px 0 rgba(42, 43, 39, 0.04)",...r}=e;return p.jsx(Qe,{bgcolor:"#FFF",border:`1px solid ${t.custom.grey[500]}`,borderRadius:n,boxShadow:o,...r})},I8=e=>T.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M18.6946 28.3333H21.4724V18.3333H18.6946V28.3333ZM19.9997 15.1666C20.4167 15.1666 20.7664 15.0282 21.0488 14.7514C21.3312 14.4745 21.4724 14.1315 21.4724 13.7222C21.4724 13.2972 21.3313 12.941 21.0492 12.6535C20.7672 12.366 20.4176 12.2222 20.0007 12.2222C19.5837 12.2222 19.234 12.366 18.9515 12.6535C18.6692 12.941 18.528 13.2972 18.528 13.7222C18.528 14.1315 18.669 14.4745 18.9511 14.7514C19.2332 15.0282 19.5827 15.1666 19.9997 15.1666ZM20.0075 36.6666C17.7069 36.6666 15.5449 36.2291 13.5215 35.3541C11.498 34.4791 9.73165 33.287 8.22237 31.7778C6.71312 30.2685 5.521 28.5015 4.646 26.4766C3.771 24.4518 3.3335 22.2883 3.3335 19.9861C3.3335 17.6839 3.771 15.5204 4.646 13.4956C5.521 11.4707 6.71312 9.70831 8.22237 8.20831C9.73165 6.70831 11.4987 5.52081 13.5235 4.64581C15.5483 3.77081 17.7118 3.33331 20.014 3.33331C22.3163 3.33331 24.4798 3.77081 26.5046 4.64581C28.5294 5.52081 30.2918 6.70831 31.7918 8.20831C33.2918 9.70831 34.4793 11.4722 35.3543 13.5C36.2293 15.5278 36.6668 17.692 36.6668 19.9926C36.6668 22.2932 36.2293 24.4552 35.3543 26.4787C34.4793 28.5021 33.2918 30.2668 31.7918 31.7726C30.2918 33.2785 28.5279 34.4706 26.5002 35.349C24.4724 36.2274 22.3082 36.6666 20.0075 36.6666ZM20.014 33.8889C23.8752 33.8889 27.1529 32.537 29.8474 29.8333C32.5419 27.1296 33.8891 23.8472 33.8891 19.9861C33.8891 16.125 32.5436 12.8472 29.8526 10.1527C27.1616 7.45829 23.8775 6.11106 20.0002 6.11106C16.1483 6.11106 12.8705 7.45655 10.1668 10.1475C7.46311 12.8385 6.11125 16.1227 6.11125 20C6.11125 23.8518 7.46311 27.1296 10.1668 29.8333C12.8705 32.537 16.1529 33.8889 20.014 33.8889Z",fill:"inherit"})),LC=e=>{const t=ut(),{children:n,...o}=e;return p.jsx(Qr,{borderRadius:"4px",boxShadow:"none",padding:"16px",...o,children:p.jsxs(at,{direction:"row",alignItems:"center",gap:"12px",children:[p.jsx(at,{sx:{minWidth:"24px"},children:p.jsx(I8,{width:"24px",height:"24px",color:t.custom.grey[2800]})}),p.jsx(Ye,{variant:"caption",color:t.custom.grey[2500],children:n})]})})},j8=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(n=>p.jsx(oe.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:n})},`infobox-${n.key}-${Math.random()}`))}):null},A8=e=>{const{isFirst:t=!1,isLast:n=!1}=e;return p.jsx("div",{style:{border:`1px solid ${De[500]}`,borderTopLeftRadius:t?"8px":"0px",borderTopRightRadius:t?"8px":"0px",borderBottomLeftRadius:n?"8px":"0px",borderBottomRightRadius:n?"8px":"0px",boxShadow:"0px 2px 8px 0px #2A2B270A"},children:e.children})},$8=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",borderLeft:`1px solid ${De[500]}`,paddingLeft:"2rem"},children:e.data}),F8=e=>{const t=ut(),{size:n="big",header:o,footer:r,...s}=e;return p.jsxs(Qr,{borderRadius:n==="small"?"8px":"16px",boxShadow:n==="small"?"none":void 0,...s,children:[p.jsx(Qe,{sx:{padding:n==="small"?"16px 20px":"28px 32px",background:n==="small"?t.custom.grey[200]:"white",borderTopLeftRadius:n==="small"?"8px":"16px",borderTopRightRadius:n==="small"?"8px":"16px"},children:o}),p.jsx(Qe,{sx:{borderTop:`1px solid ${t.custom.grey[500]}`,padding:n==="small"?"20px":"28px",borderBottomLeftRadius:r?void 0:n==="small"?"8px":"16px",borderBottomRightRadius:r?void 0:n==="small"?"8px":"16px"},children:e.children}),r&&p.jsx(Qe,{sx:{background:"white",borderTop:`1px solid ${t.custom.grey[500]}`,padding:n==="small"?"20px":"28px",borderBottomLeftRadius:n==="small"?"8px":"16px",borderBottomRightRadius:n==="small"?"8px":"16px"},children:r})]})},N8=e=>p.jsx(Qe,{style:{display:"flex",flexDirection:"column",gap:"5px",height:"fit-content",padding:"1rem",border:`1px solid ${De[800]}`,borderRadius:"8px",background:De[200]},children:e.children}),Up=e=>T.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.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"})),L8=e=>{const{children:t}=e,[n,o]=oe.useState(!0),r=Array.isArray(t)?t:[t];return p.jsxs("div",{style:{display:n?"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:r.map(s=>p.jsx(oe.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:s})},`infobox-${s.key}`))}),p.jsx("div",{style:{minWidth:"40px"},children:p.jsx(Mt,{variant:"text",startIcon:p.jsx(Up,{}),onClick:()=>o(!1),disableRipple:!0})})]})},qp=Z(xC)(()=>({textTransform:"capitalize",border:`1px solid ${De[500]}`,background:De.gradientLight,color:De[2800],"&.Mui-selected":{color:"#FFF",fill:"#FFF",background:De.gradientDark,border:`1px solid ${De[2800]}`,"&:hover":{color:"#FFF",background:De.gradientDark,border:`1px solid ${De[2800]}`}},"&:disabled":{border:`1px solid ${De[100]}`,background:De[500]},"&:hover":{border:`1px solid ${De[500]}`,background:De[400]}})),V8=e=>{const{choices:t,onClick:n,currentIndexSelected:o,...r}=e,[s,a]=oe.useState(o??null),l=c=>{if(n==null||n(c),c===s){a(null);return}a(c)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:t.map((c,u)=>oe.createElement(qp,{...r,key:`${u}-button-toggle-${c}`,value:u,onClick:()=>l(u),selected:u===s},p.jsx(Ye,{variant:"big-bold",color:"inherit",children:c})))})},VC=Z(xC)(()=>({textTransform:"capitalize",border:`1px solid ${De[500]}`,background:De.gradientLight,color:De[2800],borderRadius:"8px","&.Mui-selected":{border:"2px solid #D38702",background:De.gradientLight,"&:hover":{border:"2px solid #D38702",background:De.gradientLight}},"&:disabled":{border:`1px solid ${De[100]}`,background:De[500]},"&:hover":{border:`1px solid ${De[500]}`,background:De[400]}})),B8=e=>{const{choices:t,onClick:n,currentIndexSelected:o,...r}=e,[s,a]=oe.useState(o??null),l=c=>{if(n==null||n(c),c===s){a(null);return}a(c)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:t.map((c,u)=>oe.createElement(VC,{...r,key:`${u}-button-toggle`,value:u,onClick:()=>l(u),selected:u===s},p.jsx(Ye,{variant:"big-bold",color:"inherit",children:c})))})};/*!
362
+ `));const Ae=Te.props.value===void 0?ct:Te.props.value;ge.set(Ae,ct);const Re=Ae===E;return ct+=1,T.cloneElement(Te,C({fullWidth:A==="fullWidth",indicator:Re&&!q&&ke,selected:Re,selectionFollowsFocus:S,onChange:m,textColor:k,value:Ae},ct===1&&E===!1&&!Te.props.tabIndex?{tabIndex:0}:{}))}),je=Te=>{const Ae=Se.current,Re=wn(Ae).activeElement;if(Re.getAttribute("role")!=="tab")return;let gt=v==="horizontal"?"ArrowLeft":"ArrowUp",Tt=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&s&&(gt="ArrowRight",Tt="ArrowLeft"),Te.key){case gt:Te.preventDefault(),wu(Ae,Re,uC);break;case Tt:Te.preventDefault(),wu(Ae,Re,cC);break;case"Home":Te.preventDefault(),wu(Ae,null,cC);break;case"End":Te.preventDefault(),wu(Ae,null,uC);break}},Ue=Le();return p.jsxs(T9,C({className:Pe(Y.root,f),ownerState:B,ref:n,as:h},F,{children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,p.jsxs(P9,{className:Y.scroller,ownerState:B,style:{overflow:fe.overflow,[$?`margin${s?"Left":"Right"}`:"marginBottom"]:I?void 0:-fe.scrollbarWidth},ref:nt,children:[p.jsx(O9,{"aria-label":a,"aria-labelledby":l,"aria-orientation":v==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:B,onKeyDown:je,ref:Se,role:"tablist",children:dt}),q&&ke]}),Ue.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(pC.propTypes={action:dn,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});const hC=pC;function k9(e){return We("MuiTextField",e)}Ve("MuiTextField",["root"]);const M9=["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"],E9={standard:Ay,filled:Cy,outlined:mx},D9=e=>{const{classes:t}=e;return Be({root:["root"]},k9,t)},I9=Z(Cp,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gC=T.forwardRef(function(t,n){const o=$e({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:b,id:m,InputLabelProps:v,inputProps:y,InputProps:w,inputRef:S,label:P,maxRows:x,minRows:O,multiline:_=!1,name:k,onBlur:E,onChange:A,onFocus:I,placeholder:F,required:L=!1,rows:$,select:j=!1,SelectProps:N,type:V,value:H,variant:W="outlined"}=o,B=ve(o,M9),Y=C({},o,{autoFocus:s,color:c,disabled:d,error:f,fullWidth:g,multiline:_,required:L,select:j,variant:W}),me=D9(Y);process.env.NODE_ENV!=="production"&&j&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const se={};W==="outlined"&&(v&&typeof v.shrink<"u"&&(se.notched=v.shrink),se.label=P),j&&((!N||!N.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const q=ar(m),K=b&&q?`${q}-helper-text`:void 0,X=P&&q?`${q}-label`:void 0,Q=E9[W],ne=p.jsx(Q,C({"aria-describedby":K,autoComplete:r,autoFocus:s,defaultValue:u,fullWidth:g,multiline:_,name:k,rows:$,maxRows:x,minRows:O,type:V,value:H,id:q,inputRef:S,onBlur:E,onChange:A,onFocus:I,placeholder:F,inputProps:y},se,w));return p.jsxs(I9,C({className:Pe(me.root,l),disabled:d,error:f,fullWidth:g,ref:n,required:L,color:c,variant:W,ownerState:Y},B,{children:[P!=null&&P!==""&&p.jsx(Vy,C({htmlFor:q,id:X},v,{children:P})),j?p.jsx(Ix,C({"aria-describedby":K,id:q,labelId:X,value:H,input:ne},N,{children:a})):ne,b&&p.jsx(My,C({id:K},h,{children:b}))]}))});process.env.NODE_ENV!=="production"&&(gC.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:dn,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Ii=gC;function j9(e){return We("MuiToggleButton",e)}const mC=Ve("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),bC=T.createContext({});process.env.NODE_ENV!=="production"&&(bC.displayName="ToggleButtonGroupContext");const A9=bC,vC=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(vC.displayName="ToggleButtonGroupButtonContext");const $9=vC;function F9(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const N9=["value"],L9=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],V9=e=>{const{classes:t,fullWidth:n,selected:o,disabled:r,size:s,color:a}=e,l={root:["root",o&&"selected",r&&"disabled",n&&"fullWidth",`size${we(s)}`,a]};return Be(l,j9,t)},B9=Z(fo,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${we(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,o;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,o=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),C({},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%"},{[`&.${mC.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})`:kn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mC.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${o} / ${e.vars.palette.action.selectedOpacity})`:kn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${o} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${o} / ${e.vars.palette.action.selectedOpacity})`:kn(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),yC=T.forwardRef(function(t,n){const o=T.useContext(A9),{value:r}=o,s=ve(o,N9),a=T.useContext($9),l=Pc(C({},s,{selected:F9(t.value,r)}),t),c=$e({props:l,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:h=!1,disableFocusRipple:g=!1,fullWidth:b=!1,onChange:m,onClick:v,selected:y,size:w="medium",value:S}=c,P=ve(c,L9),x=C({},c,{color:f,disabled:h,disableFocusRipple:g,fullWidth:b,size:w}),O=V9(x),_=E=>{v&&(v(E,S),E.defaultPrevented)||m&&m(E,S)},k=a||"";return p.jsx(B9,C({className:Pe(s.className,O.root,d,k),disabled:h,focusRipple:!g,ref:n,onClick:_,onChange:m,value:S,ownerState:x,"aria-pressed":y},P,{children:u}))});process.env.NODE_ENV!=="production"&&(yC.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["standard","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,fullWidth:i.bool,onChange:i.func,onClick:i.func,selected:i.bool,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any.isRequired});const xC=yC;var Bp={},zp={};const z9=xr(FE);var CC;function jt(){return CC||(CC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=z9}(zp)),zp}var H9=kt;Object.defineProperty(Bp,"__esModule",{value:!0});var wC=Bp.default=void 0,W9=H9(jt()),U9=p;wC=Bp.default=(0,W9.default)((0,U9.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");const SC=e=>{const t=ut(),{label:n,unit:o,size:r=14,direction:s="row"}=e;return p.jsxs(at,{direction:s,spacing:1,alignItems:"baseline",children:[p.jsx(Ye,{fontWeight:"bold",fontSize:r,color:t.custom.grey[2800],children:n}),p.jsx(Ye,{fontWeight:"normal",variant:"h3",fontSize:r>14?12:10,lineHeight:"inherit",color:t.custom.grey[1400],children:o})]})},q9={A:"#1e8f4e",B:"#37cb78",C:"#ebc22c",D:"#ec7f2a",E:"#d7392e"},G9=e=>{const{score:t,value:n,size:o=14,direction:r="row"}=e;return p.jsxs(at,{direction:r,alignItems:"center",width:"fit-content",spacing:1,children:[p.jsx(Es,{color:"primary",label:t,style:{backgroundColor:q9[t],fontWeight:700}}),p.jsxs(Ye,{fontSize:o,fontWeight:"bold",children:[n," / 100"]})]})},Hp=e=>{const t=ut(),{value:n,unit:o,...r}=e;return p.jsx(Qe,{display:"inline-flex",bgcolor:t.custom.grey[200],border:`1px solid ${t.custom.grey[500]}`,borderRadius:"4px",padding:"4px 8px",position:"relative",...r,children:p.jsx(SC,{label:n,unit:o})})},TC=bi(Ov)(()=>({background:"transparent",borderTop:`1px solid ${ut().custom.grey[500]}`,borderRadius:"0 !important",boxShadow:"none",":before":{height:0},":last-of-type":{borderBottom:`1px solid ${ut().custom.grey[500]}`},"&.Mui-expanded":{margin:0}})),PC=bi(Fv)(()=>({minHeight:"84px",borderRadius:0,padding:0,"&.Mui-expanded":{minHeight:"84px"},">.MuiAccordionSummary-content":{margin:"20px 0"},">.MuiAccordionSummary-expandIconWrapper":{width:"44px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"12px",color:ut().custom.grey[2800]}})),OC=bi(_v)(()=>({padding:"8px 0 28px 0"})),Y9=e=>{const[t,n]=oe.useState(null),o=r=>{if(r===t){n(null);return}n(r)};return p.jsx(at,{direction:"column",children:e.pages.map((r,s)=>p.jsxs(TC,{expanded:t===s,children:[p.jsx(PC,{expandIcon:p.jsx(wC,{}),onClick:()=>o(s),children:p.jsxs(at,{direction:"row",alignItems:"center",gap:"28px",flex:1,children:[p.jsx(Ye,{variant:"h3",flex:1,children:r.title}),r.indicator&&p.jsx(Hp,{value:r.indicator.value,unit:r.indicator.unit})]})}),p.jsx(OC,{children:r.content})]},`form-accordion-${s}`))})},K9=e=>T.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M13.0004 16.5796L6.63672 10.216L7.89176 8.96094L13.0004 14.0872L18.1089 8.97862L19.364 10.2337L13.0004 16.5796Z",fill:"#393A36"})),eo={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"},De={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"},RC={100:"#FFF0ED",200:"#FCCCC2",300:"#F8A897",400:"#F5846B",500:"#F16040",600:"#EE3C15",700:"#D03210",800:"#B2290B",900:"#931F05",1e3:"#751500"},Su={100:"#DFFFE6",200:"#B7F2C4",300:"#8FE5A2",400:"#67D980",500:"#3FCC5E",600:"#17BF3C",700:"#12A332",800:"#0D8728",900:"#086A1D",1e3:"#034E13"},X9={primary:{light:"#63b8ff",main:"#000",dark:"#005db0",contrastText:"#fff"},secondary:{main:"#91B927",light:"#82e9de",dark:"#00867d",contrastText:"#000"}},Z9={fontFamily:["Montserrat","serif"].join(","),h1:{fontStyle:"normal",fontWeight:"700",fontSize:"2rem",lineHeight:"3.2rem",color:De[2800]},h2:{fontStyle:"normal",fontWeight:"700",fontSize:"1.5rem",lineHeight:"2.4rem",color:De[2800]},h3:{fontStyle:"normal",fontWeight:"700",fontSize:"1.125rem",lineHeight:"1.8rem",color:De[2800]},h4:{fontStyle:"normal",fontWeight:"700",fontSize:"0.875rem",lineHeight:"1.4rem",color:De[2800]},h5:{fontStyle:"normal",fontWeight:"700",fontSize:"0.75rem",lineHeight:"1.2rem",color:De[2800]},h6:{fontStyle:"normal",fontWeight:"700",fontSize:"0.625rem",lineHeight:"1rem",color:De[2800]},"huge-bold":{fontStyle:"normal",fontWeight:600,fontSize:"1.125rem",lineHeight:"2.025rem",color:De[2800]},"huge-medium":{fontStyle:"normal",fontWeight:500,fontSize:"1.125rem",lineHeight:"2.025rem",color:De[2800]},huge:{fontStyle:"normal",fontWeight:400,fontSize:"1.125rem",lineHeight:"2.025rem",color:De[2800]},"big-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.875rem",lineHeight:"1.575rem",color:De[2800]},"big-medium":{fontStyle:"normal",fontWeight:"500",fontSize:"0.875rem",lineHeight:"1.575rem",color:De[2800]},big:{fontStyle:"normal",fontWeight:"400",fontSize:"0.875rem",lineHeight:"1.575rem",color:De[2800]},"body-bold":{fontStyle:"normal",fontWeight:"600",fontSize:"0.75rem",lineHeight:"1.35rem",color:De[2800]},"body-medium":{fontStyle:"normal",fontWeight:"500",fontSize:"0.75rem",lineHeight:"1.35rem",color:De[2800]},body:{fontStyle:"normal",fontWeight:"400",fontSize:"0.75rem",lineHeight:"1.35rem",color:De[2800]},"small-bold":{fontStyle:"normal",fontWeight:600,fontSize:"0.625rem",lineHeight:"1.125rem",color:De[2800]},"small-medium":{fontStyle:"normal",fontWeight:500,fontSize:"0.625rem",lineHeight:"1.125rem",color:De[2800]},small:{fontStyle:"normal",fontWeight:400,fontSize:"0.625rem",lineHeight:"1.125rem",color:De[2800]}},Q9={color:eo,grey:De,red:RC,green:Su,searchBox:{borderRadius:"24px",border:"1px solid #E7E6E4",background:"white",boxShadow:"0px 2px 8px 0px "+De[500]},rowMenuElement:{marginLeft:"12px",paddingRight:"8px",fontSize:"12px",fontWeight:"600",lineHeight:"20px"},productGrid:{baseCell:{color:eo[800],fontSize:"12px",fontWeight:700,borderInline:"1px solid "+De[500]},boldCell:{color:De[2800],fontFamily:"Montserrat",fontStyle:"normal",fontSize:"18px",fontWeight:"800",lineHeight:"normal"},greyCell:{color:De[2500],fontSize:"12px",fontStyle:"normal",fontWeight:"400",lineHeight:"20px"},headerCell:{fontWeight:"500",color:De[2e3],backgroundColor:De[200],border:"1px solid "+De[500]}}},J9={MuiAvatar:{defaultProps:{children:[]},styleOverrides:{root:({ownerState:{alt:e=""}})=>{const t=e.split(" ").map(n=>n.charAt(0).toUpperCase()).join("");return{background:eo[200],color:eo[800],fontWeight:600,".MuiAvatar-img":{zIndex:1},":empty::before":{content:`"${t}"`}}}},variants:[{props:{variant:"small"},style:{width:"24px",height:"24px",fontSize:"10px"}},{props:{variant:"medium"},style:{width:"36px",height:"36px",fontSize:"13px"}},{props:{variant:"big"},style:{width:"40px",height:"40px",fontSize:"16px"}}]},MuiAvatarGroup:{defaultProps:{variant:"small",spacing:6,sx:{justifyContent:"flex-end"},slotProps:{additionalAvatar:{sx:{color:De[2800],background:De[400]}}}},styleOverrides:{root:({ownerState:{max:e=0}})=>({...[...Array(e)].reduce((t,n,o)=>({...t,[`& > .MuiAvatar-root:nth-of-type(${o+1})`]:{zIndex:e-o}}),{})})}},MuiButtonGroup:{defaultProps:{disableRipple:!0}},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:eo.gradient,":hover":{color:"#FFFFFF",background:eo[700]},":disabled":{color:"#FFFFFF",background:eo["700-light"]},":active":{background:"none",backgroundColor:eo[900]}}},{props:{variant:"secondary"},style:{color:eo[700],border:`2px solid ${eo[700]}`,":hover":{color:"#FFFFFF",border:"none",background:eo[700]},":disabled":{color:eo["700-light"],border:`2px solid ${eo["700-light"]}`,background:"#FFFFFF"},":active":{color:"#FFFFFF",border:"none",background:eo[900]}}},{props:{variant:"ternary"},style:{border:`1px solid ${De[500]}`,background:De.gradientLight,":hover":{border:`1px solid ${De[500]}`,background:De[400]},":disabled":{border:`1px solid ${De[100]}`,background:De[500]},":active":{background:De[600]}}},{props:{variant:"text"},style:{transition:"none",paddingInline:"0",color:eo[800],fontWeight:"700",":hover":{background:"none",textDecoration:"underline"}}},{props:{variant:"selected-menu"},style:{color:"white",background:"linear-gradient(180deg, #F6B100 0%, #EC7F00 100%)",borderRadius:"8px",padding:"0px"}},{props:{variant:"selected-submenu"},style:{color:eo[500],background:"inherit"}},{props:{variant:"default-menu"},style:{color:"white",background:"inherit",borderRadius:"0px",padding:"8px"}},{props:{variant:"black-text"},style:{color:De[2800],background:"none",fontWeight:"600"}},{props:{variant:"black-filled"},style:{borderRadius:"8px",background:`linear-gradient(180deg, ${De[2600]} 0%, ${De[3e3]} 100%)`,boxShadow:"0px 4px 8px 0px rgba(42, 43, 39, 0.08)"}},{props:{variant:"white-filled"},style:{borderRadius:"8px",border:"1px solid "+De[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"}}},MuiCircularProgress:{styleOverrides:{root:{color:De[800]}}}},_C=Vf({palette:X9,typography:Z9,custom:Q9,components:J9}),kC=bi(Ov)(()=>({".Mui-disabled":{background:De[500]},":before":{height:"0px"},border:`1px solid ${De[500]}`,boxShadow:"0px 2px 8px 0px #2A2B270A"})),e8=e=>{const[t,n]=oe.useState(null),o=r=>{if(r===t){n(null);return}n(r)};return p.jsx("div",{style:{display:"flex",flexDirection:"column",marginBlock:"1rem"},children:e.pages.map((r,s)=>{const a=t===s;return p.jsxs(kC,{expanded:a,disableGutters:!0,children:[p.jsx(Fv,{sx:{minHeight:"80px"},expandIcon:p.jsx(K9,{}),"aria-controls":"panel1a-content",onClick:()=>{o(s),r.onOpenAction&&r.onOpenAction()},children:r.title}),p.jsx(_v,{sx:{borderTop:`1px solid ${De[500]}`},children:r.content})]},`accordion-prod-ing-${s}`)})})},t8=Pt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),n8=Pt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),o8=Pt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),r8=Pt(p.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),MC=Pt(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"),EC=Pt(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"}),"CloseOutlined"),DC=Pt(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3m-9-3.82-2.09-2.09L6.5 13.5 10 17l6.01-6.01-1.41-1.41z"}),"CloudDoneOutlined"),i8=Pt(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM5.92 19H5v-.92l9.06-9.06.92.92zM20.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.41"}),"CreateOutlined"),s8=Pt(p.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),a8=Pt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),l8=Pt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),c8=Pt(p.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),IC=Pt(p.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"LoopOutlined"),u8=Pt(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 19zm-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 14"}),"SearchOutlined"),d8=Pt(p.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function f8(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const jC={};function Wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&jC[t[0]]||(typeof t[0]=="string"&&(jC[t[0]]=new Date),f8(...t))}const AC=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function $C(e,t,n){e.loadNamespaces(t,AC(e,n))}function FC(e,t,n,o){typeof n=="string"&&(n=[n]),n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,AC(e,o))}function p8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=t.languages[0],r=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const u=t.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(o,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(o,e)&&(!r||a(s,e)))}function h8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Wp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,e))return!1}}):p8(e,t,n)}const g8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,m8={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},b8=e=>m8[e];let v8={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(g8,b8)};function y8(){return v8}let x8;function C8(){return x8}const w8=oe.createContext();class S8{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const T8=(e,t)=>{const n=oe.useRef();return oe.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function NC(e,t,n,o){return e.getFixedT(t,n,o)}function P8(e,t,n,o){return oe.useCallback(NC(e,t,n,o),[e,t,n,o])}function ji(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:r}=oe.useContext(w8)||{},s=n||o||C8();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new S8),!s){Wp("You will need to pass in an i18next instance by using initReactI18next");const x=(_,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(_)?_[_.length-1]:_,O=[x,{},!1];return O.t=x,O.i18n={},O.ready=!1,O}s.options.react&&s.options.react.wait!==void 0&&Wp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...y8(),...s.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let u=e||r||s.options&&s.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const d=(s.isInitialized||s.initializedStoreOnce)&&u.every(x=>h8(x,s,a)),f=P8(s,t.lng||null,a.nsMode==="fallback"?u:u[0],c),h=()=>f,g=()=>NC(s,t.lng||null,a.nsMode==="fallback"?u:u[0],c),[b,m]=oe.useState(h);let v=u.join();t.lng&&(v=`${t.lng}${v}`);const y=T8(v),w=oe.useRef(!0);oe.useEffect(()=>{const{bindI18n:x,bindI18nStore:O}=a;w.current=!0,!d&&!l&&(t.lng?FC(s,t.lng,u,()=>{w.current&&m(g)}):$C(s,u,()=>{w.current&&m(g)})),d&&y&&y!==v&&w.current&&m(g);function _(){w.current&&m(g)}return x&&s&&s.on(x,_),O&&s&&s.store.on(O,_),()=>{w.current=!1,x&&s&&x.split(" ").forEach(k=>s.off(k,_)),O&&s&&O.split(" ").forEach(k=>s.store.off(k,_))}},[s,v]);const S=oe.useRef(!0);oe.useEffect(()=>{w.current&&!S.current&&m(h),S.current=!1},[s,c]);const P=[b,s,d];if(P.t=b,P.i18n=s,P.ready=d,d||!d&&!l)return P;throw new Promise(x=>{t.lng?FC(s,t.lng,u,()=>x()):$C(s,u,()=>x())})}function O8(e){const t=ut(),{t:n}=ji(),[o,r]=oe.useState(!1);return p.jsxs(Qe,{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(at,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100%",padding:"30px 24px"},children:[p.jsxs(at,{direction:"row",useFlexGap:!0,gap:"12px",alignItems:"center",children:[e.headerIcon,p.jsx(Ye,{variant:"h3",children:e.headerText})]}),p.jsxs(at,{direction:"row",useFlexGap:!0,gap:"24px",alignItems:"center",children:[e.controls,!e.controls&&p.jsx(Mt,{disabled:!0,variant:"white-filled",startIcon:p.jsx(i8,{}),sx:{marginRight:"24px",borderRadius:"44px"},children:n("Modifier")}),p.jsx(rn,{onClick:s=>r(!o),children:o===!0?p.jsx(a8,{}):p.jsx(l8,{})})]})]}),o&&p.jsx(js,{in:o,timeout:300,children:p.jsxs("div",{children:[p.jsx(qo,{}),p.jsx(Qe,{component:"div",sx:{padding:"44px"},children:e.children})]})})]})}const R8=e=>{const{orientation:t="vertical",type:n="default"}=e,o=ut();return p.jsxs(Qr,{borderRadius:"12px",sx:{background:n==="default"?"#FFF":o.custom.color[100],display:"flex",alignItems:"flex-start",gap:"20px",padding:t==="vertical"?"24px":"20px 32px 20px 24px"},children:[p.jsx(at,{alignItems:"center",justifyContent:"center",sx:{width:"36px",height:"36px"},children:e.icon}),p.jsxs(at,{direction:e.orientation==="horizontal"?"row":"column",gap:"16px",flex:1,children:[p.jsxs(at,{flex:1,gap:"8px",children:[p.jsx(Ye,{variant:"h4",children:e.title}),p.jsx(Ye,{variant:"caption",children:e.children})]}),e.cta&&p.jsx(at,{direction:e.orientation==="horizontal"?"row":"column",alignItems:e.orientation==="horizontal"?"center":"flex-start",gap:e.orientation==="horizontal"?"24px":"",children:e.cta})]})]})},_8=e=>T.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M4.36204 12.3802L3.61963 11.6378L7.25751 7.99993L3.61963 4.36204L4.36204 3.61963L7.99993 7.25751L11.6378 3.61963L12.3802 4.36204L8.74234 7.99993L12.3802 11.6378L11.6378 12.3802L7.99993 8.74234L4.36204 12.3802Z",fill:"#50504D"})),k8=e=>{const{text:t,action:n}=e;return p.jsxs("div",{style:{backgroundColor:"#EFEDEC",height:"fit-content",paddingBlock:"0.25rem",paddingRight:n?"0.25rem":"0",display:"flex",justifyContent:"center",alignItems:"center",width:"fit-content",borderRadius:"5px"},children:[p.jsx(Ye,{variant:"body",style:{marginInline:"10px"},children:t}),n&&p.jsx(_8,{onClick:n})]})},M8=e=>T.createElement("svg",{width:"100%",height:"100%",preserveAspectRatio:"none",viewBox:"0 0 1232 229",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{opacity:.48,d:"M0 228.999C192.752 13.1805 946.143 143.331 1232 0.000137329L1232 229L0 228.999Z",fill:"inherit"})),E8=e=>{const{size:t="big"}=e,n=ut();return p.jsx(Qr,{borderRadius:"12px",padding:"12px",children:p.jsxs(at,{bgcolor:n.custom.color[100],borderRadius:"4px",padding:t==="big"?"36px":"32px",gap:"32px",position:"relative",overflow:"hidden",children:[p.jsx(Qe,{position:"absolute",sx:{inset:0,color:n.custom.grey[200],objectFit:"cover",zIndex:0},children:p.jsx(M8,{})}),p.jsxs(at,{flex:1,gap:t==="big"?"12px":"16px",position:"relative",children:[e.title&&p.jsx(Ye,{variant:"h4",children:e.title}),p.jsx(Ye,{variant:"caption",children:e.children})]}),e.cta&&p.jsx(at,{direction:"row",alignItems:"center",gap:"24px",sx:{maxHeight:e.size==="big"?"100%":"20px"},children:e.cta})]})})},D8=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",border:`2px dashed ${De[800]}`,borderRadius:"8px",background:De[200]},children:e.children}),Qr=e=>{const t=ut(),{borderRadius:n="16px",boxShadow:o="0 2px 8px 0 rgba(42, 43, 39, 0.04)",...r}=e;return p.jsx(Qe,{bgcolor:"#FFF",border:`1px solid ${t.custom.grey[500]}`,borderRadius:n,boxShadow:o,...r})},I8=e=>T.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M18.6946 28.3333H21.4724V18.3333H18.6946V28.3333ZM19.9997 15.1666C20.4167 15.1666 20.7664 15.0282 21.0488 14.7514C21.3312 14.4745 21.4724 14.1315 21.4724 13.7222C21.4724 13.2972 21.3313 12.941 21.0492 12.6535C20.7672 12.366 20.4176 12.2222 20.0007 12.2222C19.5837 12.2222 19.234 12.366 18.9515 12.6535C18.6692 12.941 18.528 13.2972 18.528 13.7222C18.528 14.1315 18.669 14.4745 18.9511 14.7514C19.2332 15.0282 19.5827 15.1666 19.9997 15.1666ZM20.0075 36.6666C17.7069 36.6666 15.5449 36.2291 13.5215 35.3541C11.498 34.4791 9.73165 33.287 8.22237 31.7778C6.71312 30.2685 5.521 28.5015 4.646 26.4766C3.771 24.4518 3.3335 22.2883 3.3335 19.9861C3.3335 17.6839 3.771 15.5204 4.646 13.4956C5.521 11.4707 6.71312 9.70831 8.22237 8.20831C9.73165 6.70831 11.4987 5.52081 13.5235 4.64581C15.5483 3.77081 17.7118 3.33331 20.014 3.33331C22.3163 3.33331 24.4798 3.77081 26.5046 4.64581C28.5294 5.52081 30.2918 6.70831 31.7918 8.20831C33.2918 9.70831 34.4793 11.4722 35.3543 13.5C36.2293 15.5278 36.6668 17.692 36.6668 19.9926C36.6668 22.2932 36.2293 24.4552 35.3543 26.4787C34.4793 28.5021 33.2918 30.2668 31.7918 31.7726C30.2918 33.2785 28.5279 34.4706 26.5002 35.349C24.4724 36.2274 22.3082 36.6666 20.0075 36.6666ZM20.014 33.8889C23.8752 33.8889 27.1529 32.537 29.8474 29.8333C32.5419 27.1296 33.8891 23.8472 33.8891 19.9861C33.8891 16.125 32.5436 12.8472 29.8526 10.1527C27.1616 7.45829 23.8775 6.11106 20.0002 6.11106C16.1483 6.11106 12.8705 7.45655 10.1668 10.1475C7.46311 12.8385 6.11125 16.1227 6.11125 20C6.11125 23.8518 7.46311 27.1296 10.1668 29.8333C12.8705 32.537 16.1529 33.8889 20.014 33.8889Z",fill:"inherit"})),LC=e=>{const t=ut(),{children:n,...o}=e;return p.jsx(Qr,{borderRadius:"4px",boxShadow:"none",padding:"16px",...o,children:p.jsxs(at,{direction:"row",alignItems:"center",gap:"12px",children:[p.jsx(at,{sx:{minWidth:"24px"},children:p.jsx(I8,{width:"24px",height:"24px",color:t.custom.grey[2800]})}),p.jsx(Ye,{variant:"caption",color:t.custom.grey[2500],children:n})]})})},j8=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(n=>p.jsx(oe.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:n})},`infobox-${n.key}-${Math.random()}`))}):null},A8=e=>{const{isFirst:t=!1,isLast:n=!1}=e;return p.jsx("div",{style:{border:`1px solid ${De[500]}`,borderTopLeftRadius:t?"8px":"0px",borderTopRightRadius:t?"8px":"0px",borderBottomLeftRadius:n?"8px":"0px",borderBottomRightRadius:n?"8px":"0px",boxShadow:"0px 2px 8px 0px #2A2B270A"},children:e.children})},$8=e=>p.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"5px",borderLeft:`1px solid ${De[500]}`,paddingLeft:"2rem"},children:e.data}),F8=e=>{const t=ut(),{size:n="big",header:o,footer:r,...s}=e;return p.jsxs(Qr,{borderRadius:n==="small"?"8px":"16px",boxShadow:n==="small"?"none":void 0,...s,children:[p.jsx(Qe,{sx:{padding:n==="small"?"16px 20px":"28px 32px",background:n==="small"?t.custom.grey[200]:"white",borderTopLeftRadius:n==="small"?"8px":"16px",borderTopRightRadius:n==="small"?"8px":"16px"},children:o}),p.jsx(Qe,{sx:{borderTop:`1px solid ${t.custom.grey[500]}`,padding:n==="small"?"20px":"28px",borderBottomLeftRadius:r?void 0:n==="small"?"8px":"16px",borderBottomRightRadius:r?void 0:n==="small"?"8px":"16px"},children:e.children}),r&&p.jsx(Qe,{sx:{background:"white",borderTop:`1px solid ${t.custom.grey[500]}`,padding:n==="small"?"20px":"28px",borderBottomLeftRadius:n==="small"?"8px":"16px",borderBottomRightRadius:n==="small"?"8px":"16px"},children:r})]})},N8=e=>p.jsx(Qe,{style:{display:"flex",flexDirection:"column",gap:"5px",height:"fit-content",padding:"1rem",border:`1px solid ${De[800]}`,borderRadius:"8px",background:De[200]},children:e.children}),Up=e=>T.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.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"})),L8=e=>{const{children:t}=e,[n,o]=oe.useState(!0),r=Array.isArray(t)?t:[t];return p.jsxs("div",{style:{display:n?"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:r.map(s=>p.jsx(oe.Fragment,{children:p.jsx("div",{style:{width:"100%"},children:s})},`infobox-${s.key}`))}),p.jsx("div",{style:{minWidth:"40px"},children:p.jsx(Mt,{variant:"text",startIcon:p.jsx(Up,{}),onClick:()=>o(!1),disableRipple:!0})})]})},qp=Z(xC)(()=>({textTransform:"capitalize",border:`1px solid ${De[500]}`,background:De.gradientLight,color:De[2800],"&.Mui-selected":{color:"#FFF",fill:"#FFF",background:De.gradientDark,border:`1px solid ${De[2800]}`,"&:hover":{color:"#FFF",background:De.gradientDark,border:`1px solid ${De[2800]}`}},"&:disabled":{border:`1px solid ${De[100]}`,background:De[500]},"&:hover":{border:`1px solid ${De[500]}`,background:De[400]}})),V8=e=>{const{choices:t,onClick:n,currentIndexSelected:o,...r}=e,[s,a]=oe.useState(o??null),l=c=>{if(n==null||n(c),c===s){a(null);return}a(c)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:t.map((c,u)=>oe.createElement(qp,{...r,key:`${u}-button-toggle-${c}`,value:u,onClick:()=>l(u),selected:u===s},p.jsx(Ye,{variant:"big-bold",color:"inherit",children:c})))})},VC=Z(xC)(()=>({textTransform:"capitalize",border:`1px solid ${De[500]}`,background:De.gradientLight,color:De[2800],borderRadius:"8px","&.Mui-selected":{border:"2px solid #D38702",background:De.gradientLight,"&:hover":{border:"2px solid #D38702",background:De.gradientLight}},"&:disabled":{border:`1px solid ${De[100]}`,background:De[500]},"&:hover":{border:`1px solid ${De[500]}`,background:De[400]}})),B8=e=>{const{choices:t,onClick:n,currentIndexSelected:o,...r}=e,[s,a]=oe.useState(o??null),l=c=>{if(n==null||n(c),c===s){a(null);return}a(c)};return p.jsx("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"1rem"},children:t.map((c,u)=>oe.createElement(VC,{...r,key:`${u}-button-toggle`,value:u,onClick:()=>l(u),selected:u===s},p.jsx(Ye,{variant:"big-bold",color:"inherit",children:c})))})};/*!
363
363
  * @kurkle/color v0.3.2
364
364
  * https://github.com/kurkle/color#readme
365
365
  * (c) 2023 Jukka Kurkela
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foodpilot/foods",
3
3
  "private": false,
4
- "version": "0.1.94",
4
+ "version": "0.1.96",
5
5
  "type": "module",
6
6
  "main": "./dist/main.umd.cjs",
7
7
  "module": "./dist/main.js",