@groupeactual/ui-kit 1.8.2 → 1.8.3
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.
package/dist/cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("@mui/material"),o=require("@fortawesome/pro-solid-svg-icons"),n=require("@fortawesome/pro-regular-svg-icons"),r=require("@mui/system"),i=require("react/jsx-runtime"),a=require("react-dom"),l=require("@fortawesome/free-brands-svg-icons"),s=require("notistack"),c=require("@mui/x-date-pickers-pro"),u=require("dayjs");function p(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var d=p(e),f=p(a);const m=o=>e.createElement(t.Typography,{color:"greyXDark",...o});var h=Object.freeze({__proto__:null,DefaultBorderRadius16:"16",DefaultBorderRadius24:"24",DefaultBorderRadius4:"4",DefaultBorderRadius8:"8",DefaultDefaultColorsBackgroundColorsBlueHoverEquivalence:"#e8f1f7",DefaultDefaultColorsBackgroundColorsBlueHoverOpacity12:"#136cac1f",DefaultDefaultColorsBackgroundColorsGreyXDarkBgModal:"#27272780",DefaultDefaultColorsBackgroundColorsGreyXLight:"#f0f0f0",DefaultDefaultColorsBackgroundColorsWhite:"#ffffff",DefaultDefaultColorsBlueClickable:"#136cac",DefaultDefaultColorsBlueHoverClickable:"#004f88",DefaultDefaultColorsBorderColorsGreyLightDefaultBorder:"#cbcbcb",DefaultDefaultColorsGreyMediumInactive:"#808080",DefaultDefaultColorsNotificationColorsBlueInfo:"#1d91c3",DefaultDefaultColorsNotificationColorsGreenSuccess:"#23956d",DefaultDefaultColorsNotificationColorsOrangeWarning:"#e46221",DefaultDefaultColorsNotificationColorsRedError:"#b80025",DefaultDefaultColorsRedActual:"#e40521",DefaultDefaultColorsSecondaryColorsBlueDark:"#0d2c54",DefaultDefaultColorsSecondaryColorsBlueLight:"#7fdcea",DefaultDefaultColorsSecondaryColorsBlueMedium:"#3d5a80",DefaultDefaultColorsSecondaryColorsBrown:"#6f2902",DefaultDefaultColorsSecondaryColorsBrownLight:"#b65700",DefaultDefaultColorsSecondaryColorsGreen:"#5dca8b",DefaultDefaultColorsSecondaryColorsGreenDark:"#125e42",DefaultDefaultColorsSecondaryColorsGreenLight:"#bad07a",DefaultDefaultColorsSecondaryColorsGreenMedium:"#1f8461",DefaultDefaultColorsSecondaryColorsOrangeLight:"#f59b00",DefaultDefaultColorsSecondaryColorsPink:"#ca1e5c",DefaultDefaultColorsSecondaryColorsPinkLight:"#fd6972",DefaultDefaultColorsSecondaryColorsPurple:"#831443",DefaultDefaultColorsSecondaryColorsPurpleDark:"#530d48",DefaultDefaultColorsSecondaryColorsYellow:"#f9d25e",DefaultDefaultColorsTextColorsGreyDark:"#545352",DefaultDefaultColorsTextColorsGreyXDark:"#272727",DefaultFontFamiliesRoboto:"Roboto",DefaultFontSize11:"11",DefaultFontSize13:"13",DefaultFontSize14:"14",DefaultFontSize16:"16",DefaultFontSize18:"18",DefaultFontSize24:"24",DefaultFontSize29:"29",DefaultFontSize35:"35",DefaultFontSize42:"42",DefaultFontWeightsRoboto400:"Regular",DefaultFontWeightsRoboto500:"Medium",DefaultFontWeightsRoboto700:"Bold",DefaultLetterSpacingNone:"none",DefaultLineHeights12:"12",DefaultLineHeights16:"16",DefaultLineHeights18:"18",DefaultLineHeights21:"21",DefaultLineHeights28:"28",DefaultLineHeights34:"34",DefaultLineHeights41:"41",DefaultLineHeights49:"49",DefaultParagraphSpacing0:"0",DefaultParagraphSpacing8:"8",DefaultSizingLg:"24",DefaultSizingMd:"16",DefaultSizingSm:"12",DefaultSizingXl:"32",DefaultSizingXs:"8",DefaultSizingXxl:"40",DefaultSizingXxxl:"72",DefaultSpacingLg:"24",DefaultSpacingMd:"16",DefaultSpacingXl:"32",DefaultSpacingXs:"8",DefaultSpacingXxl:"40",DefaultSpacingXxs:"4",DefaultSpacingXxxl:"72",DefaultTextCaseNone:"none",DefaultTextDecorationNone:"none",DefaultTextDecorationUnderline:"underline",DefaultWebShadowAllContent:{color:"#2727271f",type:"dropShadow",x:"0",y:"2",blur:"10",spread:"0"},EpAppShadowAllContent:{color:"#dedada66",type:"dropShadow",x:"0",y:"4",blur:"15",spread:"0"},EpAppShadowButtomMenu:{color:"#dedada66",type:"dropShadow",x:"0",y:"-4",blur:"15",spread:"0"},EpBorderRadius16:"16",EpBorderRadius24:"24",EpBorderRadius4:"4",EpBorderRadius8:"8",EpColorsBlack:"#161616",EpColorsBlueInfo:"#1d91c3",EpColorsGreenBlue:"#159f9f",EpColorsGreenBlueHover:"#128888",EpColorsGreenLight:"#f2f8f8",EpColorsGreenPastel:"#e4f1f1",EpColorsGreenSucces:"#23956d",EpColorsGrey:"#acc1cc",EpColorsGreyDark:"#676767",EpColorsGreyDarkBgModal:"#67676780",EpColorsGreyLightBorder:"#cbcbcb",EpColorsGreyMediumInactive:"#808080",EpColorsGreyPastel:"#eaf2f6",EpColorsOrangeWarning:"#e46221",EpColorsRed:"#e11c31",EpColorsRedError:"#b80025",EpColorsRedHover:"#b61425",EpColorsRedLight:"#fff7f5",EpColorsRedPastel:"#feefeb",EpColorsWhite:"#ffffff",EpFontFamiliesManrope:"Manrope",EpFontFamiliesOpenSans:"Open Sans",EpFontSize10:"10",EpFontSize12:"12",EpFontSize14:"14",EpFontSize16:"16",EpFontSize18:"18",EpFontSize24:"24",EpFontWeightsManrope500:"Medium",EpFontWeightsManrope700:"Bold",EpFontWeightsOpenSans400:"Regular",EpFontWeightsOpenSans600:"SemiBold",EpFontWeightsOpenSans700:"Bold",EpLetterSpacingNone:"none",EpLineHeights14:"14",EpLineHeights16:"16",EpLineHeights20:"20",EpLineHeights24:"24",EpLineHeights26:"26",EpLineHeights34:"34",EpParagraphSpacing0:"0",EpParagraphSpacing8:"8",EpSizingLg:"24",EpSizingMd:"16",EpSizingSm:"12",EpSizingXl:"32",EpSizingXs:"8",EpSizingXxl:"40",EpSizingXxxl:"72",EpSpacingLg:"24",EpSpacingMd:"16",EpSpacingXl:"32",EpSpacingXs:"8",EpSpacingXxl:"40",EpSpacingXxs:"4",EpSpacingXxxl:"72",EpTextCaseNone:"none",EpTextDecorationNone:"none",EpTextDecorationUnderline:"underline"});const g=e=>{const t={};Object.keys(h).forEach((o=>{if(o.startsWith(e)&&o.indexOf("Colors")){let e=o.substring(o.lastIndexOf("Colors")+6);e=e.charAt(0).toLowerCase()+e.slice(1),t[e]=h[o]}}));const o={primary:{main:t.blueClickable,dark:t.blueHoverClickable},secondary:{main:t.redActual},success:{main:t.greenSuccess},error:{main:t.redError},warning:{main:t.orangeWarning},infos:{main:t.blueInfo}};return{...t,...o}},b=e=>{const t=h,o=[];return Object.keys(h).forEach((n=>{n.startsWith(e+"FontFamilies")&&o.push(t[n])})),o},y=e=>({"&.MuiFormControl-root":{zIndex:1,".MuiInputBase-root":{backgroundColor:e.palette.white,height:"44px",padding:"0 !important",".SelectIcon":{marginTop:"-1px",color:e.palette.blueClickable+" !important"}},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable+" !important"},".Mui-error":{color:e.palette.redError,"& span":{color:`${e.palette.greyDark} !important`},"& fieldset":{borderColor:e.palette.redError+" !important"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiOutlinedInput-root":{height:"22px"},".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder,borderWidth:"1px !important",fontSize:"16px !important"},"&.Mui-success":{color:e.palette.greenSuccess,".SelectIcon":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-label":{color:"unset"},"& .clear":{"& span":{color:e.palette.blueClickable}},"& .MuiAutocomplete-popupIndicatorOpen":{transform:"none"},'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess}},"&.Mui-disabled":{".MuiAutocomplete-endAdornment .SelectIcon":{color:`${e.palette.greyMediumInactive} !important`},input:{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder,WebkitTextFillColor:e.palette.greyDark},label:{background:"transparent",backgroundColor:"transparent !important",color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},color:e.palette.greyDark},".MuiInputLabel-root":{"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:`${e.palette.greenSuccess} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:`${e.palette.blueClickable}`,"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiFormHelperText-root":{color:e.palette.greyDark,marginTop:"8px",marginLeft:"8px","&.Mui-error":{color:e.palette.redError}},".MuiAutocomplete-clearIndicator":{backgroundColor:"transparent",".MuiSvgIcon-root":{color:e.palette.blueClickable}},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".clear":{alignSelf:"center",position:"relative"},"&.MuiAutocomplete-listbox":{".clear":{visibility:"visible"}},"&.MuiMenuItem-root":{border:"1px solid green"},"& .Mui-focused":{borderColor:e.palette.blueClickable},"& .Mui-hover":{borderColor:e.palette.greyDark},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},"&.Mui-filled":{".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}}},".MuiOutlinedInput-notchedOutline":{legend:{maxWidth:"100%"}}},".labelClassic":{minHeight:"20px",".MuiFormLabel-root":{transform:"translate(14px, -7px) scale(0.75) !important"},"&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",color:e.palette.greyXDark}},".labelCustom":{color:e.palette.greyDark,fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:"400",marginTop:"-3px","&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"& .MuiInputLabel-shrink":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"&.Mui-focused":{marginTop:"2px",marginLeft:"0px",color:e.palette.blueClickable}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",marginTop:"0px",opacity:"1 !important",color:`${e.palette.greyDark}`,"&.Mui-focused":{marginTop:"0px",color:`${e.palette.blueClickable}`},"&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},".MuiFormLabel-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark,transform:"translate(14px, -7px) scale(0.75) !important"}},"&.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark}`}},"&.DsAutoComplete":{".MuiAutocomplete-endAdornment":{top:"calc(50%)",height:"36px",display:"flex"},"&.Mui-disabled .MuiAutocomplete-endAdornment":{top:"calc(50%)"},"&.Mui-filled":{".MuiAutocomplete-endAdornment":{top:"calc(50%)"}},".MuiInputBase-root":{minHeight:"44px",height:"auto"},"&.MuiMenuItem-root":{border:"1px solid green"},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",WebkitTextFillColor:e.palette.greyDark+" !important"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{position:"relative",transform:"none"}}},"&.DsAutoComplete.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark} !important`,padding:"0px 7px 0px 7px !important"}," .MuiOutlinedInput-root":{padding:"7px 31px 7px 4px !important"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark,backgroundColor:e.palette.greyXLight,WebkitTextFillColor:e.palette.greyDark,".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"}}},".MenuItem ":{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word"},'.MenuItem[aria-selected="true"]':{backgroundColor:e.palette.greyXLight,fontWeight:500},".MenuItem:hover":{backgroundColor:e.palette.blueHoverEquivalence}}),v=e=>({"&.MuiFormControl-root":{zIndex:1,"&:hover":{".clear":{visibility:"visible"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important",WebkitTextFillColor:e.palette.greyDark},".MuiInputBase-root":{height:"44px",padding:"0 !important",backgroundColor:e.palette.white,".SelectIcon":{marginTop:"-2px",color:e.palette.blueClickable+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiInputLabel-root":{marginTop:"2px"},"& label":{color:e.palette.greyDark},"&.Mui-filled":{"& label":{color:e.palette.greyXDark}},"&.DsMultiSelect":{"&.Mui-filled":{".MuiInputBase-root":{minHeight:"44px",height:"auto !important"}},".MuiOutlinedInput-input":{padding:"8px 12px 7px 8px !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{"-webkit-text-fill-color":e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important"}},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:e.palette.greyLightDefaultBorder,fontSize:"16px"},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable},"&.Mui-error":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".clear":{visibility:"hidden",alignSelf:"center",position:"relative",marginTop:"3px",marginRight:"-8px"},"& .MuiSelect-select .notranslate::after":{fontWeight:400,lineHeight:"18px",fontSize:"14px",color:e.palette.greyDark+" !important"},"&.Select-mui":{"&.Mui-filled":{".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark}}},".MuiInputLabel-root":{transform:"translate(8px, 16px) scale(1)",fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:400,marginTop:"-3px","&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",marginTop:"2px !important",color:e.palette.blueClickable,transform:"translate(14px, -7px) scale(0.75)","&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".SelectIcon":{color:e.palette.blueClickable,marginRight:"9px"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",color:e.palette.greyDark,marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px","&.Mui-error":{color:e.palette.redError}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 31px 11px 14px","&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},"&.Select-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"20px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError+" !important"},"&.Mui-disabled":{color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",color:e.palette.blueClickable,fontWeight:500,fontSize:"16px"}}},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess+" !important"},".MuiInputBase-colorSuccess":{".SelectIcon":{color:e.palette.greenSuccess+" !important",marginTop:"2px"},".MuiOutlinedInput-notchedOutline":{border:"1px solid",fontSize:"16px",borderColor:e.palette.greenSuccess}},".MuiChip-root":{height:"24px"},".SelectIcon.Mui-disabled":{color:e.palette.greyMediumInactive+" !important"}},".MuiFormLabel-filled":{lineHeight:"16px !important",color:e.palette.greyDark,fontWeight:"500 !important",fontSize:"16px !important",marginTop:"2px !important",transform:"translate(14px, -7px) scale(0.75)"}}),x=o=>{const n=t.useTheme(),r=e.useMemo((()=>{return t.styled(t.Link)({"&.MuiLink-root":{color:(e=n).palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}});var e}),[n]);return e.createElement(r,{...o})},C=({variant:o,children:n,...r})=>{const i=t.useTheme(),a=e.useMemo((()=>{return t.styled(t.Button)({"@font-face":{fontFamily:"Roboto"},"&.MuiButton-root":{borderRadius:"4px",padding:"7.5px 16px",fontWeight:(e=i).typography.fontWeightBold,lineHeight:"18px",textTransform:"unset",fontSize:"14px",height:"44px",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{paddingBottom:"2px"}},"&.MuiButton-primary":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},color:e.palette.white+" !important",backgroundColor:e.palette.blueClickable+" !important",border:"1px solid !important",borderColor:e.palette.blueClickable+" !important","&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},backgroundColor:e.palette.greyMediumInactive+" !important",borderColor:e.palette.greyMediumInactive+" !important",color:e.palette.white+" !important"},"&:hover":{backgroundColor:e.palette.blueHoverClickable+" !important",borderColor:e.palette.blueHoverClickable+" !important"}},"&.MuiButton-secondary":{".MuiTypography-buttonNotif":{color:e.palette.blueClickable+" !important"},color:e.palette.blueClickable,backgroundColor:e.palette.white+" !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{color:e.palette.blueClickable},"&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.greyMediumInactive+" !important"},backgroundColor:e.palette.white,borderColor:e.palette.greyLightDefaultBorder+" !important",color:e.palette.greyMediumInactive+" !important",".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"},borderColor:e.palette.blueHoverClickable+" !important",backgroundColor:e.palette.white+" !important",color:e.palette.blueHoverClickable+" !important"}},"&:hover":{backgroundColor:"transparent !important"}});var e}),[i]);return e.createElement(a,{variant:o,...r},n)},E={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},S=e.forwardRef((({icon:o,fontSize:n},r)=>{const{icon:[i,a,,,l]}=o;return e.createElement(t.SvgIcon,{ref:r,viewBox:`0 0 ${i} ${a}`,sx:{fontSize:n??"14px"}},"string"==typeof l?e.createElement("path",{d:l}):l.map(((t,o)=>e.createElement("path",{style:{opacity:0===o?.4:1},d:t,key:o}))))})),w=({variant:o="none",icon:n,color:r="#136cac",size:i=16,sx:a,...l})=>{const s=t.useTheme(),c=e.useMemo((()=>s.palette[r]?s.palette[r]:r&&0!==r.length?r:"#136cac"),[s.palette,r]),u=e.useMemo((()=>"square"===o?16:i in E?E[i]:i>=0?i:16),[o,i]);return e.createElement(t.Box,{className:"itemIcon",component:"span",sx:"square"===o?{...a,color:c,backgroundColor:`${c}14`,borderRadius:"4px",borderColor:"1px solid "+c,overflow:"visible",padding:"10px",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center"}:{...a,color:c,width:u,height:u,lineHeight:u+"px",display:"inline-flex",alignItems:"center",justifyContent:"center"},...l},e.createElement(S,{icon:n,fontSize:u}))},k=e.forwardRef((({name:n,value:r,error:i,onBlur:a,onChange:l,label:s="",disabled:c,width:u="100%",endAdornment:p,placeholder:d="",maxLength:f,focused:m,...h},g)=>{const b=t.useTheme(),y=e.useMemo((()=>{return t.styled(t.TextField)({"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:(e=b).palette.greyDark+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable+" !important"},".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-disabled":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},"&.MuiTextField-root":{".MuiInputBase-root":{backgroundColor:e.palette.white},".MuiInputLabel-root":{"&.Mui-error":{color:e.palette.redError+" !important"},fontWeight:500,transform:"translate(8px, 16px) scale(1)"},"&.Mui-success":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess+" !important"},".MuiFormLabel-root":{color:e.palette.greenSuccess+" !important"}},".Mui-focused.MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",fontSize:"16px"},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess},"&.TextField-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"16px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyXDark,"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{color:e.palette.blueClickable}}},"&.TextField-mui":{".MuiInputLabel-root":{fontSize:"14px",lineHeight:"18px",height:"16px",color:`${e.palette.greyDark}`,fontWeight:400,marginTop:"-3px","&.MuiFormLabel-filled":{lineHeight:"16px",color:e.palette.greyXDark,fontWeight:500,fontSize:"16px",marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:e.palette.blueClickable,marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.MuiFormLabel-colorSuccess":{"&.Mui-focused":{color:e.palette.greenSuccess+" !important"}}}},"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},".DsTextField-passwordIcon":{cursor:"pointer"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight},"textarea.MuiOutlinedInput-input":{paddingBottom:"1px !important"},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark},"&.TextField-mui":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".MuiOutlinedInput-root":{padding:"0px !important","& fieldset":{borderWidth:"1px !important"},".MuiSvgIcon-root":{marginLeft:"-22px"}}}});var e}),[b]),[v,x]=e.useState(!1),[C,E]=e.useState(h.type??"text"),S=e.useMemo((()=>e.createElement(w,{className:"DsTextField-passwordIcon",icon:v?o.faEyeSlash:o.faEye,color:"blueClickable",onClick:()=>x(!v)})),[v]);e.useEffect((()=>{E(v?"text":h.type??"text")}),[v]);const k=e.useMemo((()=>[d?"TextField-ds":"TextField-mui","success"===h.color&&"Mui-success",r&&"Mui-filled",h.className].filter(Boolean).join(" ")),[r,h.color]),M=e.useMemo((()=>Boolean(i&&i?.length>0||f&&String(r).length>f)),[i,f,r]);return e.createElement(y,{variant:"outlined",name:n,ref:g,label:s,value:r,sx:{width:u},placeholder:d,focused:m,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!d||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{l?.(e)},onBlur:e=>{a?.(e)},error:M,disabled:c,InputProps:"password"===h.type?{endAdornment:S}:{endAdornment:p},...h,className:k,type:C,helperText:e.createElement("div",{style:{display:"table",width:"100%",marginRight:"4px"}},(i||h.helperText)&&e.createElement("div",{style:{display:f?"table-cell":"",float:"left"}},i||h.helperText),f&&e.createElement("div",{style:{display:"table-cell",float:"right"}},String(r).length,"/",f," caract."))})}));k.displayName="TextField";const M={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},T=({value:o,label:r="",options:i,color:a,error:l,placeholder:s="",helperText:c,width:u="100%",disabled:p,popupIcon:d=n.faChevronDown,onChange:f,getRenderValue:m,...h})=>{const g=t.useTheme(),b=e.useMemo((()=>t.styled(t.FormControl)(v(g))),[g]),[y,x]=e.useState(h.open??!1),C=e.useMemo((()=>["DSSingleSelect",s?"Select-ds":"Select-mui",o&&"Mui-filled",l&&"Mui-error"].filter(Boolean).join(" ")),[o,l,s]);return e.createElement(t.Box,{sx:{width:u}},e.createElement(b,{fullWidth:!0,color:a,className:C,disabled:p,sx:{".MuiOutlinedInput-input":{marginTop:o?"0px":"2px"}}},e.createElement(t.InputLabel,{error:!!l,disabled:p},r),e.createElement(t.Select,{sx:{color:a+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:s?"1 !important":"0 !important"}:{}},label:r,value:o,notched:!!s||void 0,onChange:e=>f?.(e.target.value),IconComponent:({className:t})=>e.createElement(w,{className:p?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===a?n.faCheck:d,onClick:()=>{p||x(!y)},size:"md",sx:{":hover":{cursor:p?"auto":"pointer"},marginTop:"success"===a?"2px":"0px",transform:t.toString().includes("iconOpen")&&"success"!==a?"rotate(180deg)":"none"}}),MenuProps:M,renderValue:e=>m(e),...h,open:y,onClose:e=>{p||(h.onClose&&h.onClose(e),x(!1))},onOpen:e=>{p||(h.onOpen&&h.onOpen(e),x(!0))}},i?.map(((n,r)=>e.createElement(t.MenuItem,{sx:{"&:hover":{backgroundColor:g.palette.blueHoverEquivalence},"&.Mui-selected":{backgroundColor:g.palette.greyXLight+" !important"},fontSize:14,fontWeight:o===n?500:400,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:o===n?"blueHoverEquivalence":"white"},key:r,value:n,onMouseEnter:e=>e.target.style.backgroundColor=g.palette.blueHoverEquivalence,onMouseLeave:e=>{o!==n&&(e.target.style.backgroundColor=g.palette.white)}},m?m(n):n.label)))),(l||c)&&e.createElement(t.FormHelperText,{component:"span",className:l?"Mui-error":""},l||c)))},O=({variant:o,label:n,prefixIcon:r,suffixIcon:i,suffixTooltip:a,suffixAction:l,tooltip:s,maxWidth:c="100%",...u})=>{const p=t.useTheme(),d=e.useMemo((()=>{return t.styled(t.Chip)({"&.MuiChip-root":{color:(e=p).palette.greyXDark,borderRadius:"4px",fontWeight:e.palette.fontWeightRegular,fontSize:"14px",paddingLeft:"8px",paddingRight:"8px","& .MuiChip-deleteIcon":{color:e.palette.blueClickable,cursor:"default",width:"auto",height:"auto"},"&.Mui-disabled":{".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"},color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",border:"1px solid",fontWeight:e.palette.fontWeightRegular,borderColor:e.palette.greyLightDefaultBorder+" !important",opacity:1},".MuiChip-deleteIcon":{width:"12px",height:"12px",margin:0,marginLeft:"8px",marginRight:"2px"},".MuiChip-label":{padding:0,lineHeight:"18px"},".MuiChip-avatar":{marginLeft:"-1px",marginRight:"5px",color:"initial"}},"&.MuiChip-filled":{border:"none",fontWeight:400,color:e.palette.greyXDark},"&.MuiChip-outlined":{border:"1px solid",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-status":{border:"1px solid !important",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-statusFilled":{border:"none !important",color:e.palette.greyXDark+" !important",fontWeight:e.typography.fontWeightRegular+" !important"},"&.MuiChip-sizeSmall":{height:"24px",paddingY:"3px"},"&.MuiChip-sizeMedium":{height:"33px",paddingY:"8px"},"&.MuiChip-colorDefault":{backgroundColor:e.palette.greyXLight,border:"none",fontWeight:e.typography.fontWeightRegular+" !important",color:e.palette.greyXDark},"&.MuiChip-colorSecondary":{borderColor:e.palette.greyLightDefaultBorder+" !important",fontWeight:e.typography.fontWeightRegular+" !important",backgroundColor:e.palette.white},"&.MuiChip-colorPrimary":{backgroundColor:e.palette.blueClickable+" !important",color:e.palette.white+" !important",fontWeight:e.typography.fontWeightBold,"& .MuiChip-deleteIcon":{color:e.palette.white+" !important"}},"&.MuiChip-colorSuccess":{border:"1px solid",borderColor:e.palette.greenSuccess+" !important",color:e.palette.greenSuccess,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorWarning":{border:"1px solid",borderColor:e.palette.orangeWarning+" !important",color:e.palette.orangeWarning,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.orangeWarning+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorInfo":{border:"1px solid",borderColor:e.palette.blueInfo+" !important",color:e.palette.blueInfo,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.blueInfo+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorError":{border:"1px solid",borderColor:e.palette.redError+" !important",color:e.palette.redError,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.redError+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}}});var e}),[p]),[f,m]=e.useState(!1),[h,g]=e.useState(!1),b=e.useRef(null);let y=u.color&&p.palette[u.color]?"object"==typeof p.palette[u.color]?p.palette[u.color].main:p.palette[u.color]:u.color??"white";return"filled"===o||"statusFilled"===o?y=`${y}14`:"status"===o&&(y="white"),e.createElement(t.Tooltip,{title:s,placement:"right-start",open:f},e.createElement(t.Box,{maxWidth:"fit-content",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},e.createElement(t.Tooltip,{title:a,open:h,placement:"bottom-end",sx:{cursor:l?"pointer !important":"default"}},e.createElement(d,{label:n,ref:b,className:`MuiChip-${o}`,size:"small",sx:{maxWidth:c,backgroundColor:y,"&.MuiChip-colorSecondary":i&&l&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":i&&l&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":i&&l&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:r?e.createElement(w,{icon:r,size:"sm"}):e.createElement(e.Fragment,null),deleteIcon:i?e.createElement(w,{icon:i,onMouseEnter:()=>{a&&(g(!0),m(!1))},onMouseLeave:()=>{a&&(g(!1),m(!0))},sx:{cursor:l?"pointer !important":"default"},size:"sm"}):e.createElement(e.Fragment,null),onDelete:l??(()=>null),...u}))))},D={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},I=({title:o,placement:n="right",children:r,placementMargin:i=4,...a})=>o?e.createElement(t.Tooltip,{title:e.createElement(e.Fragment,null,o),...a,sx:{display:"inline-flex",...a.sx},placement:n||void 0,slotProps:{popper:{sx:{[`&.${t.tooltipClasses.popper} .MuiTooltip-tooltip`]:{backgroundColor:"greyXDark",padding:"4px !important",fontSize:"12px !important",color:"white",fontWeight:400},[`&.${t.tooltipClasses.popper}[data-popper-placement*="bottom"] .${t.tooltipClasses.tooltip}`]:{marginTop:i+"px"},[`&.${t.tooltipClasses.popper}[data-popper-placement*="top"] .${t.tooltipClasses.tooltip}`]:{marginBottom:i+"px"},[`&.${t.tooltipClasses.popper}[data-popper-placement*="right"] .${t.tooltipClasses.tooltip}`]:{marginLeft:i+"px"},[`&.${t.tooltipClasses.popper}[data-popper-placement*="left"] .${t.tooltipClasses.tooltip}`]:{marginRight:i+"px"}}}}},e.createElement(t.Box,{component:"span"},r)):e.createElement(e.Fragment,null,r),P=({name:n,value:r,error:i,helperText:a,label:l,infoBubbleContent:s,infoBubblePosition:c="right",onChange:u,disabled:p,...d})=>{const f=t.useTheme(),h=e.useMemo((()=>{return t.styled(t.FormControl)({"&.MuiFormControl-root":{"&.DsCheckbox":{"&.Mui-disabled":{".MuiFormControlLabel-root":{cursor:"auto !important"}},".MuiCheckbox-root":{"::before":{zIndex:1,content:'" "',display:"block",position:"absolute",borderRadius:"2px",width:"14px",height:"14px",backgroundColor:"white"},width:"24px",height:"24px",marginRight:"4px",marginBottom:"0px",borderRadius:"4px",".MuiSvgIcon-root":{zIndex:1,width:"18px",height:"18px",path:{width:"14px",height:"14px"}},"&.Mui-checked":{".MuiSvgIcon-root":{color:(e=f).palette.blueClickable}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.blueClickable,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.white}},"&:hover .MuiSvgIcon-root":{color:e.palette.blueHoverEquivalence+" !important"}},"&.Mui-disabled":{"::before":{backgroundColor:e.palette.greyXLight},".MuiSvgIcon-root":{color:e.palette.greyLightDefaultBorder+" !important",backgroundColor:"transparent !important",outlineOffset:"-2px"},"&.Mui-checked":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.greyMediumInactive,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.greyXLight}}}},"&:hover":{backgroundColor:e.palette.blueHoverEquivalence+" !important",".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".DsCheckbox-label":{fontSize:"14px",marginLeft:"-2px",color:e.palette.greyXDark,fontWeight:400,"&.Mui-disabled":{color:e.palette.greyDark}},".MuiTouchRipple-root":{background:"white",height:"12px",width:"12px",top:"6px",zIndex:0,left:"6px",borderRadius:"0px"}},".MuiBox-root .MuiBox-root svg":{top:"1px",position:"relative"}},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",fontWeight:"400",fontSize:"11px",color:e.palette.greyDark}});var e}),[f]),g=e.useMemo((()=>{const e=["DsCheckbox"];return p&&e.push("Mui-disabled"),e.join(" ")}),[p]),b=e.useMemo((()=>{const e=["DsCheckbox-label"];return p&&e.push("Mui-disabled"),e.join(" ")}),[p]);return e.createElement(h,{className:g},e.createElement(t.FormControlLabel,{disabled:p,control:e.createElement(t.Box,null,e.createElement(t.Checkbox,{inputProps:{name:n},disabled:p,sx:{marginTop:"-2px"},checked:r,color:"primary",onChange:e=>{u?.(n,e.target.checked,!0)},...d})),label:e.createElement(t.Box,null,e.createElement(m,{component:"span",variant:"body1",className:b},l),s&&e.createElement(I,{title:s,placement:c,sx:{ml:"4px"}},e.createElement(w,{icon:o.faInfoCircle,size:"sm",color:"blueInfo"})))}),(i||a)&&e.createElement(t.FormHelperText,{component:"span",className:i?"Mui-error":""},i||a))},$=({icon:o,variant:n="default",positionGroup:r,tooltipText:i="",tooltipPosition:a="top",size:l="medium",color:s,onClick:c,...u})=>{const p=t.useTheme(),d=e.useMemo((()=>{return t.styled(t.IconButton)({"&.MuiIconButton-root":{borderRadius:"4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px"},":hover":{"& .MuiSvgIcon-root":{color:(e=p).palette.blueHoverClickable}},"&.Mui-disabled":{"& .MuiSvgIcon-root":{color:e.palette.greyMediumInactive}},"&.IconButtonVariant-default":{width:"44px !important",height:"44px !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder,"&:hover":{borderColor:e.palette.blueHoverClickable,backgroundColor:e.palette.white}},"&.IconButtonVariant-table":{width:"42px !important",height:"42px !important",border:"0px","&:hover":{backgroundColor:e.palette.blueHoverOpacity12}},"&.IconButtonPositionGroup-left":{borderRadius:"4px 0px 0px 4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px 0px 0px 4px"}},"&.IconButtonPositionGroup-middle":{borderRadius:"0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px"}},"&.IconButtonPositionGroup-right":{borderRadius:"0px 4px 4px 0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px 4px 4px 0px"}},"&.IconButtonSize-small":{width:"24px !important",height:"24px !important"}}});var e}),[p]);return e.createElement(I,{title:i,placement:a},e.createElement(d,{className:`IconButtonVariant-${n} IconButtonSize-${l} ${r?`IconButtonPositionGroup-${r}`:""} `,onClick:c,...u},e.createElement(w,{color:s,icon:o,size:"small"===l?"sm":"md"})))},R=({totalString:n,totalPerPageString:r,hideTotal:i=!1,limitsPerPage:a=[5,10,20],page:l=1,totalRows:s,limit:c,setLimit:u,setPage:p})=>{const d=t.useTheme(),f=e.useMemo((()=>{return t.styled(t.Pagination)({".MuiPaginationItem-root":{fontFamily:"Roboto",height:"44px !important",width:"44px !important",color:(e=d).palette.blueClickable+" !important",backgroundColor:"white !important",fontWeight:"700 !important",outline:"none !important",fontSize:"14px !important",borderColor:e.palette.greyLightDefaultBorder+" !important","&.Mui-selected":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderRadius:"4px !important",outline:"none !important","&:hover":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"},"&:focus":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"}},"&:hover":{color:e.palette.blueClickable+" !important",backgroundColor:"white !important",borderColor:e.palette.blueHoverClickable+" !important",borderRadius:"4px !important",outline:"none !important"},"&.Mui-disabled":{color:e.palette.greyMediumInactive+" !important",backgroundColor:"white !important",borderRadius:"4px !important",outline:"none !important",opacity:"1 !important"},"&.MuiPaginationItem-ellipsis":{color:e.palette.greyDark+" !important",display:"flex",alignItems:"center",justifyContent:"center"}}});var e}),[d]),[h,g]=e.useState(l),[b,y]=e.useState(c??a[0]),v=((e,t)=>Math.ceil(e/t))(s,b),x=e=>{g(e),p?.(e)};return e.useEffect((()=>{l!==h&&g(l)}),[l]),e.useEffect((()=>{c&&c!==b&&y(c)}),[c]),e.createElement(t.Box,{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",sx:{paddingTop:"16px",paddingBottom:"24px"}},e.createElement(t.Box,{display:"flex",alignItems:"center"},!i&&e.createElement(e.Fragment,null,e.createElement(m,{variant:"body1Medium"},s," ",n),e.createElement(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),e.createElement(T,{className:"dac-select-label",labelId:"select-label",value:b,inputProps:{MenuProps:{disableScrollLock:!0}},onChange:e=>{x(1),(e=>{y(e),u?.(e)})(e)},options:a,getRenderValue:e=>e.toString(),popupIcon:o.faCaretDown,width:60}),e.createElement(m,{variant:"body1",pl:"8px"},r),e.createElement(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),e.createElement(t.Box,{display:"flex",pr:"4px"},e.createElement(f,{variant:"outlined",shape:"rounded",count:v,page:h,onChange:(e,t)=>x(t)})))};function N(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},L.apply(null,arguments)}function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),o}var z,F={exports:{}},B={exports:{}},W={};var _,H,V,U,q,Y,X,K,G,J,Z,Q,ee,te,oe,ne={};
|
|
1
|
+
"use strict";var e=require("react"),t=require("@mui/material"),o=require("@fortawesome/pro-solid-svg-icons"),n=require("@fortawesome/pro-regular-svg-icons"),r=require("@mui/system"),i=require("react/jsx-runtime"),a=require("react-dom"),l=require("@fortawesome/free-brands-svg-icons"),s=require("notistack"),c=require("@mui/x-date-pickers-pro"),u=require("dayjs");function p(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var d=p(e),f=p(a);const m=o=>e.createElement(t.Typography,{color:"greyXDark",...o});var h=Object.freeze({__proto__:null,DefaultBorderRadius16:"16",DefaultBorderRadius24:"24",DefaultBorderRadius4:"4",DefaultBorderRadius8:"8",DefaultDefaultColorsBackgroundColorsBlueHoverEquivalence:"#e8f1f7",DefaultDefaultColorsBackgroundColorsBlueHoverOpacity12:"#136cac1f",DefaultDefaultColorsBackgroundColorsGreyXDarkBgModal:"#27272780",DefaultDefaultColorsBackgroundColorsGreyXLight:"#f0f0f0",DefaultDefaultColorsBackgroundColorsWhite:"#ffffff",DefaultDefaultColorsBlueClickable:"#136cac",DefaultDefaultColorsBlueHoverClickable:"#004f88",DefaultDefaultColorsBorderColorsGreyLightDefaultBorder:"#cbcbcb",DefaultDefaultColorsGreyMediumInactive:"#808080",DefaultDefaultColorsNotificationColorsBlueInfo:"#1d91c3",DefaultDefaultColorsNotificationColorsGreenSuccess:"#23956d",DefaultDefaultColorsNotificationColorsOrangeWarning:"#e46221",DefaultDefaultColorsNotificationColorsRedError:"#b80025",DefaultDefaultColorsRedActual:"#e40521",DefaultDefaultColorsSecondaryColorsBlueDark:"#0d2c54",DefaultDefaultColorsSecondaryColorsBlueLight:"#7fdcea",DefaultDefaultColorsSecondaryColorsBlueMedium:"#3d5a80",DefaultDefaultColorsSecondaryColorsBrown:"#6f2902",DefaultDefaultColorsSecondaryColorsBrownLight:"#b65700",DefaultDefaultColorsSecondaryColorsGreen:"#5dca8b",DefaultDefaultColorsSecondaryColorsGreenDark:"#125e42",DefaultDefaultColorsSecondaryColorsGreenLight:"#bad07a",DefaultDefaultColorsSecondaryColorsGreenMedium:"#1f8461",DefaultDefaultColorsSecondaryColorsOrangeLight:"#f59b00",DefaultDefaultColorsSecondaryColorsPink:"#ca1e5c",DefaultDefaultColorsSecondaryColorsPinkLight:"#fd6972",DefaultDefaultColorsSecondaryColorsPurple:"#831443",DefaultDefaultColorsSecondaryColorsPurpleDark:"#530d48",DefaultDefaultColorsSecondaryColorsYellow:"#f9d25e",DefaultDefaultColorsTextColorsGreyDark:"#545352",DefaultDefaultColorsTextColorsGreyXDark:"#272727",DefaultFontFamiliesRoboto:"Roboto",DefaultFontSize11:"11",DefaultFontSize13:"13",DefaultFontSize14:"14",DefaultFontSize16:"16",DefaultFontSize18:"18",DefaultFontSize24:"24",DefaultFontSize29:"29",DefaultFontSize35:"35",DefaultFontSize42:"42",DefaultFontWeightsRoboto400:"Regular",DefaultFontWeightsRoboto500:"Medium",DefaultFontWeightsRoboto700:"Bold",DefaultLetterSpacingNone:"none",DefaultLineHeights12:"12",DefaultLineHeights16:"16",DefaultLineHeights18:"18",DefaultLineHeights21:"21",DefaultLineHeights28:"28",DefaultLineHeights34:"34",DefaultLineHeights41:"41",DefaultLineHeights49:"49",DefaultParagraphSpacing0:"0",DefaultParagraphSpacing8:"8",DefaultSizingLg:"24",DefaultSizingMd:"16",DefaultSizingSm:"12",DefaultSizingXl:"32",DefaultSizingXs:"8",DefaultSizingXxl:"40",DefaultSizingXxxl:"72",DefaultSpacingLg:"24",DefaultSpacingMd:"16",DefaultSpacingXl:"32",DefaultSpacingXs:"8",DefaultSpacingXxl:"40",DefaultSpacingXxs:"4",DefaultSpacingXxxl:"72",DefaultTextCaseNone:"none",DefaultTextDecorationNone:"none",DefaultTextDecorationUnderline:"underline",DefaultWebShadowAllContent:{color:"#2727271f",type:"dropShadow",x:"0",y:"2",blur:"10",spread:"0"},EpAppShadowAllContent:{color:"#dedada66",type:"dropShadow",x:"0",y:"4",blur:"15",spread:"0"},EpAppShadowButtomMenu:{color:"#dedada66",type:"dropShadow",x:"0",y:"-4",blur:"15",spread:"0"},EpBorderRadius16:"16",EpBorderRadius24:"24",EpBorderRadius4:"4",EpBorderRadius8:"8",EpColorsBlack:"#161616",EpColorsBlueInfo:"#1d91c3",EpColorsGreenBlue:"#159f9f",EpColorsGreenBlueHover:"#128888",EpColorsGreenLight:"#f2f8f8",EpColorsGreenPastel:"#e4f1f1",EpColorsGreenSucces:"#23956d",EpColorsGrey:"#acc1cc",EpColorsGreyDark:"#676767",EpColorsGreyDarkBgModal:"#67676780",EpColorsGreyLightBorder:"#cbcbcb",EpColorsGreyMediumInactive:"#808080",EpColorsGreyPastel:"#eaf2f6",EpColorsOrangeWarning:"#e46221",EpColorsRed:"#e11c31",EpColorsRedError:"#b80025",EpColorsRedHover:"#b61425",EpColorsRedLight:"#fff7f5",EpColorsRedPastel:"#feefeb",EpColorsWhite:"#ffffff",EpFontFamiliesManrope:"Manrope",EpFontFamiliesOpenSans:"Open Sans",EpFontSize10:"10",EpFontSize12:"12",EpFontSize14:"14",EpFontSize16:"16",EpFontSize18:"18",EpFontSize24:"24",EpFontWeightsManrope500:"Medium",EpFontWeightsManrope700:"Bold",EpFontWeightsOpenSans400:"Regular",EpFontWeightsOpenSans600:"SemiBold",EpFontWeightsOpenSans700:"Bold",EpLetterSpacingNone:"none",EpLineHeights14:"14",EpLineHeights16:"16",EpLineHeights20:"20",EpLineHeights24:"24",EpLineHeights26:"26",EpLineHeights34:"34",EpParagraphSpacing0:"0",EpParagraphSpacing8:"8",EpSizingLg:"24",EpSizingMd:"16",EpSizingSm:"12",EpSizingXl:"32",EpSizingXs:"8",EpSizingXxl:"40",EpSizingXxxl:"72",EpSpacingLg:"24",EpSpacingMd:"16",EpSpacingXl:"32",EpSpacingXs:"8",EpSpacingXxl:"40",EpSpacingXxs:"4",EpSpacingXxxl:"72",EpTextCaseNone:"none",EpTextDecorationNone:"none",EpTextDecorationUnderline:"underline"});const g=e=>{const t={};Object.keys(h).forEach((o=>{if(o.startsWith(e)&&o.indexOf("Colors")){let e=o.substring(o.lastIndexOf("Colors")+6);e=e.charAt(0).toLowerCase()+e.slice(1),t[e]=h[o]}}));const o={primary:{main:t.blueClickable,dark:t.blueHoverClickable},secondary:{main:t.redActual},success:{main:t.greenSuccess},error:{main:t.redError},warning:{main:t.orangeWarning},infos:{main:t.blueInfo}};return{...t,...o}},b=e=>{const t=h,o=[];return Object.keys(h).forEach((n=>{n.startsWith(e+"FontFamilies")&&o.push(t[n])})),o},y=e=>({"&.MuiFormControl-root":{zIndex:1,".MuiInputBase-root":{backgroundColor:e.palette.white,height:"44px",padding:"0 !important",".SelectIcon":{marginTop:"-1px",color:e.palette.blueClickable+" !important"}},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable+" !important"},".Mui-error":{color:e.palette.redError,"& span":{color:`${e.palette.greyDark} !important`},"& fieldset":{borderColor:e.palette.redError+" !important"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiOutlinedInput-root":{height:"22px"},".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder,borderWidth:"1px !important",fontSize:"16px !important"},"&.Mui-success":{color:e.palette.greenSuccess,".SelectIcon":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-label":{color:"unset"},"& .clear":{"& span":{color:e.palette.blueClickable}},"& .MuiAutocomplete-popupIndicatorOpen":{transform:"none"},'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess}},"&.Mui-disabled":{".MuiAutocomplete-endAdornment .SelectIcon":{color:`${e.palette.greyMediumInactive} !important`},input:{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder,WebkitTextFillColor:e.palette.greyDark},label:{background:"transparent",backgroundColor:"transparent !important",color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},color:e.palette.greyDark},".MuiInputLabel-root":{"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:`${e.palette.greenSuccess} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:`${e.palette.blueClickable}`,"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiFormHelperText-root":{color:e.palette.greyDark,marginTop:"8px",marginLeft:"8px","&.Mui-error":{color:e.palette.redError}},".MuiAutocomplete-clearIndicator":{backgroundColor:"transparent",".MuiSvgIcon-root":{color:e.palette.blueClickable}},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".clear":{alignSelf:"center",position:"relative"},"&.MuiAutocomplete-listbox":{".clear":{visibility:"visible"}},"&.MuiMenuItem-root":{border:"1px solid green"},"& .Mui-focused":{borderColor:e.palette.blueClickable},"& .Mui-hover":{borderColor:e.palette.greyDark},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},"&.Mui-filled":{".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}}},".MuiOutlinedInput-notchedOutline":{legend:{maxWidth:"100%"}}},".labelClassic":{minHeight:"20px",".MuiFormLabel-root":{transform:"translate(14px, -7px) scale(0.75) !important"},"&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",color:e.palette.greyXDark}},".labelCustom":{color:e.palette.greyDark,fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:"400",marginTop:"-3px","&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"& .MuiInputLabel-shrink":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"&.Mui-focused":{marginTop:"2px",marginLeft:"0px",color:e.palette.blueClickable}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",marginTop:"0px",opacity:"1 !important",color:`${e.palette.greyDark}`,"&.Mui-focused":{marginTop:"0px",color:`${e.palette.blueClickable}`},"&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},".MuiFormLabel-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark,transform:"translate(14px, -7px) scale(0.75) !important"}},"&.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark}`}},"&.DsAutoComplete":{".MuiAutocomplete-endAdornment":{top:"calc(50%)",height:"36px",display:"flex"},"&.Mui-disabled .MuiAutocomplete-endAdornment":{top:"calc(50%)"},"&.Mui-filled":{".MuiAutocomplete-endAdornment":{top:"calc(50%)"}},".MuiInputBase-root":{minHeight:"44px",height:"auto"},"&.MuiMenuItem-root":{border:"1px solid green"},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",WebkitTextFillColor:e.palette.greyDark+" !important"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{position:"relative",transform:"none"}}},"&.DsAutoComplete.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark} !important`,padding:"0px 7px 0px 7px !important"}," .MuiOutlinedInput-root":{padding:"7px 31px 7px 4px !important"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark,backgroundColor:e.palette.greyXLight,WebkitTextFillColor:e.palette.greyDark,".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"}}},".MenuItem ":{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word"},'.MenuItem[aria-selected="true"]':{backgroundColor:e.palette.greyXLight,fontWeight:500},".MenuItem:hover":{backgroundColor:e.palette.blueHoverEquivalence}}),v=e=>({"&.MuiFormControl-root":{zIndex:1,"&:hover":{".clear":{visibility:"visible"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important",WebkitTextFillColor:e.palette.greyDark},".MuiInputBase-root":{height:"44px",padding:"0 !important",backgroundColor:e.palette.white,".SelectIcon":{marginTop:"-2px",color:e.palette.blueClickable+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiInputLabel-root":{marginTop:"2px"},"& label":{color:e.palette.greyDark},"&.Mui-filled":{"& label":{color:e.palette.greyXDark}},"&.DsMultiSelect":{"&.Mui-filled":{".MuiInputBase-root":{minHeight:"44px",height:"auto !important"}},".MuiOutlinedInput-input":{padding:"8px 12px 7px 8px !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{"-webkit-text-fill-color":e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important"}},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:e.palette.greyLightDefaultBorder,fontSize:"16px"},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable},"&.Mui-error":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".clear":{visibility:"hidden",alignSelf:"center",position:"relative",marginTop:"3px",marginRight:"-8px"},"& .MuiSelect-select .notranslate::after":{fontWeight:400,lineHeight:"18px",fontSize:"14px",color:e.palette.greyDark+" !important"},"&.Select-mui":{"&.Mui-filled":{".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark}}},".MuiInputLabel-root":{transform:"translate(8px, 16px) scale(1)",fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:400,marginTop:"-3px","&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",marginTop:"2px !important",color:e.palette.blueClickable,transform:"translate(14px, -7px) scale(0.75)","&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".SelectIcon":{color:e.palette.blueClickable,marginRight:"9px"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",color:e.palette.greyDark,marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px","&.Mui-error":{color:e.palette.redError}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 31px 11px 14px","&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},"&.Select-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"20px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError+" !important"},"&.Mui-disabled":{color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",color:e.palette.blueClickable,fontWeight:500,fontSize:"16px"}}},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess+" !important"},".MuiInputBase-colorSuccess":{".SelectIcon":{color:e.palette.greenSuccess+" !important",marginTop:"2px"},".MuiOutlinedInput-notchedOutline":{border:"1px solid",fontSize:"16px",borderColor:e.palette.greenSuccess}},".MuiChip-root":{height:"24px"},".SelectIcon.Mui-disabled":{color:e.palette.greyMediumInactive+" !important"}},".MuiFormLabel-filled":{lineHeight:"16px !important",color:e.palette.greyDark,fontWeight:"500 !important",fontSize:"16px !important",marginTop:"2px !important",transform:"translate(14px, -7px) scale(0.75)"}}),x=o=>{const n=t.useTheme(),r=e.useMemo((()=>{return t.styled(t.Link)({"&.MuiLink-root":{color:(e=n).palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}});var e}),[n]);return e.createElement(r,{...o})},C=({variant:o,children:n,...r})=>{const i=t.useTheme(),a=e.useMemo((()=>{return t.styled(t.Button)({"@font-face":{fontFamily:"Roboto"},"&.MuiButton-root":{borderRadius:"4px",padding:"7.5px 16px",fontWeight:(e=i).typography.fontWeightBold,lineHeight:"18px",textTransform:"unset",fontSize:"14px",height:"44px",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{paddingBottom:"2px"}},"&.MuiButton-primary":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},color:e.palette.white+" !important",backgroundColor:e.palette.blueClickable+" !important",border:"1px solid !important",borderColor:e.palette.blueClickable+" !important","&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},backgroundColor:e.palette.greyMediumInactive+" !important",borderColor:e.palette.greyMediumInactive+" !important",color:e.palette.white+" !important"},"&:hover":{backgroundColor:e.palette.blueHoverClickable+" !important",borderColor:e.palette.blueHoverClickable+" !important"}},"&.MuiButton-secondary":{".MuiTypography-buttonNotif":{color:e.palette.blueClickable+" !important"},color:e.palette.blueClickable,backgroundColor:e.palette.white+" !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{color:e.palette.blueClickable},"&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.greyMediumInactive+" !important"},backgroundColor:e.palette.white,borderColor:e.palette.greyLightDefaultBorder+" !important",color:e.palette.greyMediumInactive+" !important",".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"},borderColor:e.palette.blueHoverClickable+" !important",backgroundColor:e.palette.white+" !important",color:e.palette.blueHoverClickable+" !important"}},"&:hover":{backgroundColor:"transparent !important"}});var e}),[i]);return e.createElement(a,{variant:o,...r},n)},E={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},S=e.forwardRef((({icon:o,fontSize:n},r)=>{const{icon:[i,a,,,l]}=o;return e.createElement(t.SvgIcon,{ref:r,viewBox:`0 0 ${i} ${a}`,sx:{fontSize:n??"14px"}},"string"==typeof l?e.createElement("path",{d:l}):l.map(((t,o)=>e.createElement("path",{style:{opacity:0===o?.4:1},d:t,key:o}))))})),w=({variant:o="none",icon:n,color:r="#136cac",size:i=16,sx:a,...l})=>{const s=t.useTheme(),c=e.useMemo((()=>s.palette[r]?s.palette[r]:r&&0!==r.length?r:"#136cac"),[s.palette,r]),u=e.useMemo((()=>"square"===o?16:i in E?E[i]:i>=0?i:16),[o,i]);return e.createElement(t.Box,{className:"itemIcon",component:"span",sx:"square"===o?{...a,color:c,backgroundColor:`${c}14`,borderRadius:"4px",borderColor:"1px solid "+c,overflow:"visible",padding:"10px",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center"}:{...a,color:c,width:u,height:u,lineHeight:u+"px",display:"inline-flex",alignItems:"center",justifyContent:"center"},...l},e.createElement(S,{icon:n,fontSize:u}))},k=e.forwardRef((({name:n,value:r,error:i,onBlur:a,onChange:l,label:s="",disabled:c,width:u="100%",endAdornment:p,placeholder:d="",maxLength:f,focused:m,...h},g)=>{const b=t.useTheme(),y=e.useMemo((()=>{return t.styled(t.TextField)({"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:(e=b).palette.greyDark+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable+" !important"},".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-disabled":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},"&.MuiTextField-root":{".MuiInputBase-root":{backgroundColor:e.palette.white},".MuiInputLabel-root":{"&.Mui-error":{color:e.palette.redError+" !important"},fontWeight:500,transform:"translate(8px, 16px) scale(1)"},"&.Mui-success":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess+" !important"},".MuiFormLabel-root":{color:e.palette.greenSuccess+" !important"}},".Mui-focused.MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",fontSize:"16px"},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess},"&.TextField-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"16px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyXDark,"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{color:e.palette.blueClickable}}},"&.TextField-mui":{".MuiInputLabel-root":{fontSize:"14px",lineHeight:"18px",height:"16px",color:`${e.palette.greyDark}`,fontWeight:400,marginTop:"-3px","&.MuiFormLabel-filled":{lineHeight:"16px",color:e.palette.greyXDark,fontWeight:500,fontSize:"16px",marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:e.palette.blueClickable,marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.MuiFormLabel-colorSuccess":{"&.Mui-focused":{color:e.palette.greenSuccess+" !important"}}}},"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},".DsTextField-passwordIcon":{cursor:"pointer"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight},"textarea.MuiOutlinedInput-input":{paddingBottom:"1px !important"},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark},"&.TextField-mui":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".MuiOutlinedInput-root":{padding:"0px !important","& fieldset":{borderWidth:"1px !important"},".MuiSvgIcon-root":{marginLeft:"-22px"}}}});var e}),[b]),[v,x]=e.useState(!1),[C,E]=e.useState(h.type??"text"),S=e.useMemo((()=>e.createElement(w,{className:"DsTextField-passwordIcon",icon:v?o.faEyeSlash:o.faEye,color:"blueClickable",onClick:()=>x(!v)})),[v]);e.useEffect((()=>{E(v?"text":h.type??"text")}),[v]);const k=e.useMemo((()=>[d?"TextField-ds":"TextField-mui","success"===h.color&&"Mui-success",r&&"Mui-filled",h.className].filter(Boolean).join(" ")),[r,h.color]),M=e.useMemo((()=>Boolean(i&&i?.length>0||f&&String(r).length>f)),[i,f,r]);return e.createElement(y,{variant:"outlined",name:n,ref:g,label:s,value:r,sx:{width:u},placeholder:d,focused:m,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!d||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{l?.(e)},onBlur:e=>{a?.(e)},error:M,disabled:c,InputProps:"password"===h.type?{endAdornment:S}:{endAdornment:p},...h,className:k,type:C,helperText:e.createElement("div",{style:{display:"table",width:"100%",marginRight:"4px"}},(i||h.helperText)&&e.createElement("div",{style:{display:f?"table-cell":"",float:"left"}},i||h.helperText),f&&e.createElement("div",{style:{display:"table-cell",float:"right"}},String(r).length,"/",f," caract."))})}));k.displayName="TextField";const M={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},T=({value:o,label:r="",options:i,color:a,error:l,placeholder:s="",helperText:c,width:u="100%",disabled:p,popupIcon:d=n.faChevronDown,onChange:f,getRenderValue:m,...h})=>{const g=t.useTheme(),b=e.useMemo((()=>t.styled(t.FormControl)(v(g))),[g]),[y,x]=e.useState(h.open??!1),C=e.useMemo((()=>["DSSingleSelect",s?"Select-ds":"Select-mui",o&&"Mui-filled",l&&"Mui-error"].filter(Boolean).join(" ")),[o,l,s]);return e.createElement(t.Box,{sx:{width:u}},e.createElement(b,{fullWidth:!0,color:a,className:C,disabled:p,sx:{".MuiOutlinedInput-input":{marginTop:o?"0px":"2px"}}},e.createElement(t.InputLabel,{error:!!l,disabled:p},r),e.createElement(t.Select,{sx:{color:a+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:s?"1 !important":"0 !important"}:{}},label:r,value:o,notched:!!s||void 0,onChange:e=>f?.(e.target.value),IconComponent:({className:t})=>e.createElement(w,{className:p?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===a?n.faCheck:d,onClick:()=>{p||x(!y)},size:"md",sx:{":hover":{cursor:p?"auto":"pointer"},marginTop:"success"===a?"2px":"0px",transform:t.toString().includes("iconOpen")&&"success"!==a?"rotate(180deg)":"none"}}),MenuProps:M,renderValue:e=>m(e),...h,open:y,onClose:e=>{p||(h.onClose&&h.onClose(e),x(!1))},onOpen:e=>{p||(h.onOpen&&h.onOpen(e),x(!0))}},i?.map(((n,r)=>e.createElement(t.MenuItem,{sx:{"&:hover":{backgroundColor:g.palette.blueHoverEquivalence},"&.Mui-selected":{backgroundColor:g.palette.greyXLight+" !important"},fontSize:14,fontWeight:o===n?500:400,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:o===n?"blueHoverEquivalence":"white"},key:r,value:n,onMouseEnter:e=>e.target.style.backgroundColor=g.palette.blueHoverEquivalence,onMouseLeave:e=>{o!==n&&(e.target.style.backgroundColor=g.palette.white)}},m?m(n):n.label)))),(l||c)&&e.createElement(t.FormHelperText,{component:"span",className:l?"Mui-error":""},l||c)))},O=({variant:o,label:n,prefixIcon:r,suffixIcon:i,suffixTooltip:a,suffixAction:l,tooltip:s,maxWidth:c="100%",...u})=>{const p=t.useTheme(),d=e.useMemo((()=>{return t.styled(t.Chip)({"&.MuiChip-root":{color:(e=p).palette.greyXDark,borderRadius:"4px",fontWeight:e.palette.fontWeightRegular,fontSize:"14px",paddingLeft:"8px",paddingRight:"8px","& .MuiChip-deleteIcon":{color:e.palette.blueClickable,cursor:"default",width:"auto",height:"auto"},"&.Mui-disabled":{".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"},color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",border:"1px solid",fontWeight:e.palette.fontWeightRegular,borderColor:e.palette.greyLightDefaultBorder+" !important",opacity:1},".MuiChip-deleteIcon":{width:"12px",height:"12px",margin:0,marginLeft:"8px",marginRight:"2px"},".MuiChip-label":{padding:0,lineHeight:"18px"},".MuiChip-avatar":{marginLeft:"-1px",marginRight:"5px",color:"initial"}},"&.MuiChip-filled":{border:"none",fontWeight:400,color:e.palette.greyXDark},"&.MuiChip-outlined":{border:"1px solid",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-status":{border:"1px solid !important",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-statusFilled":{border:"none !important",color:e.palette.greyXDark+" !important",fontWeight:e.typography.fontWeightRegular+" !important"},"&.MuiChip-sizeSmall":{height:"24px",paddingY:"3px"},"&.MuiChip-sizeMedium":{height:"33px",paddingY:"8px"},"&.MuiChip-colorDefault":{backgroundColor:e.palette.greyXLight,border:"none",fontWeight:e.typography.fontWeightRegular+" !important",color:e.palette.greyXDark},"&.MuiChip-colorSecondary":{borderColor:e.palette.greyLightDefaultBorder+" !important",fontWeight:e.typography.fontWeightRegular+" !important",backgroundColor:e.palette.white},"&.MuiChip-colorPrimary":{backgroundColor:e.palette.blueClickable+" !important",color:e.palette.white+" !important",fontWeight:e.typography.fontWeightBold,"& .MuiChip-deleteIcon":{color:e.palette.white+" !important"}},"&.MuiChip-colorSuccess":{border:"1px solid",borderColor:e.palette.greenSuccess+" !important",color:e.palette.greenSuccess,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorWarning":{border:"1px solid",borderColor:e.palette.orangeWarning+" !important",color:e.palette.orangeWarning,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.orangeWarning+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorInfo":{border:"1px solid",borderColor:e.palette.blueInfo+" !important",color:e.palette.blueInfo,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.blueInfo+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorError":{border:"1px solid",borderColor:e.palette.redError+" !important",color:e.palette.redError,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.redError+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}}});var e}),[p]),[f,m]=e.useState(!1),[h,g]=e.useState(!1),b=e.useRef(null);let y=u.color&&p.palette[u.color]?"object"==typeof p.palette[u.color]?p.palette[u.color].main:p.palette[u.color]:u.color??"white";return"filled"===o||"statusFilled"===o?y=`${y}14`:"status"===o&&(y="white"),e.createElement(t.Tooltip,{title:s,placement:"right-start",open:f},e.createElement(t.Box,{maxWidth:"fit-content",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},e.createElement(t.Tooltip,{title:a,open:h,placement:"bottom-end",sx:{cursor:l?"pointer !important":"default"}},e.createElement(d,{label:n,ref:b,className:`MuiChip-${o}`,size:"small",sx:{maxWidth:c,backgroundColor:y,"&.MuiChip-colorSecondary":i&&l&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":i&&l&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":i&&l&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:r?e.createElement(w,{icon:r,size:"sm"}):e.createElement(e.Fragment,null),deleteIcon:i?e.createElement(w,{icon:i,onMouseEnter:()=>{a&&(g(!0),m(!1))},onMouseLeave:()=>{a&&(g(!1),m(!0))},sx:{cursor:l?"pointer !important":"default"},size:"sm"}):e.createElement(e.Fragment,null),onDelete:l??(()=>null),...u}))))},D={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},I=({title:o,placement:n="right",children:r,placementMargin:i=4,...a})=>o?e.createElement(t.Tooltip,{title:e.createElement(e.Fragment,null,o),...a,sx:{display:"inline-flex",...a.sx},placement:n||void 0,slotProps:{popper:{sx:{[`&.${t.tooltipClasses.popper} .MuiTooltip-tooltip`]:{backgroundColor:"greyXDark",padding:"4px !important",fontSize:"12px !important",color:"white",fontWeight:400},[`&.${t.tooltipClasses.popper}[data-popper-placement*="bottom"] .${t.tooltipClasses.tooltip}`]:{marginTop:i+"px"},[`&.${t.tooltipClasses.popper}[data-popper-placement*="top"] .${t.tooltipClasses.tooltip}`]:{marginBottom:i+"px"},[`&.${t.tooltipClasses.popper}[data-popper-placement*="right"] .${t.tooltipClasses.tooltip}`]:{marginLeft:i+"px"},[`&.${t.tooltipClasses.popper}[data-popper-placement*="left"] .${t.tooltipClasses.tooltip}`]:{marginRight:i+"px"}}}}},e.createElement(t.Box,{component:"span"},r)):e.createElement(e.Fragment,null,r),P=({name:n,value:r,error:i,helperText:a,label:l,infoBubbleContent:s,infoBubblePosition:c="right",onChange:u,disabled:p,...d})=>{const f=t.useTheme(),h=e.useMemo((()=>{return t.styled(t.FormControl)({"&.MuiFormControl-root":{"&.DsCheckbox":{"&.Mui-disabled":{".MuiFormControlLabel-root":{cursor:"auto !important"}},".MuiCheckbox-root":{"::before":{zIndex:1,content:'" "',display:"block",position:"absolute",borderRadius:"2px",width:"14px",height:"14px",backgroundColor:"white"},width:"24px",height:"24px",marginRight:"4px",marginBottom:"0px",borderRadius:"4px",".MuiSvgIcon-root":{zIndex:1,width:"18px",height:"18px",path:{width:"14px",height:"14px"}},"&.Mui-checked":{".MuiSvgIcon-root":{color:(e=f).palette.blueClickable}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.blueClickable,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.white}},"&:hover .MuiSvgIcon-root":{color:e.palette.blueHoverEquivalence+" !important"}},"&.Mui-disabled":{"::before":{backgroundColor:e.palette.greyXLight},".MuiSvgIcon-root":{color:e.palette.greyLightDefaultBorder+" !important",backgroundColor:"transparent !important",outlineOffset:"-2px"},"&.Mui-checked":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.greyMediumInactive,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.greyXLight}}}},"&:hover":{backgroundColor:e.palette.blueHoverEquivalence+" !important",".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".DsCheckbox-label":{fontSize:"14px",marginLeft:"-2px",color:e.palette.greyXDark,fontWeight:400,"&.Mui-disabled":{color:e.palette.greyDark}},".MuiTouchRipple-root":{background:"white",height:"12px",width:"12px",top:"6px",zIndex:0,left:"6px",borderRadius:"0px"}},".MuiBox-root .MuiBox-root svg":{top:"1px",position:"relative"}},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",fontWeight:"400",fontSize:"11px",color:e.palette.greyDark}});var e}),[f]),g=e.useMemo((()=>{const e=["DsCheckbox"];return p&&e.push("Mui-disabled"),e.join(" ")}),[p]),b=e.useMemo((()=>{const e=["DsCheckbox-label"];return p&&e.push("Mui-disabled"),e.join(" ")}),[p]);return e.createElement(h,{className:g},e.createElement(t.FormControlLabel,{disabled:p,control:e.createElement(t.Box,null,e.createElement(t.Checkbox,{inputProps:{name:n},disabled:p,sx:{marginTop:"-2px"},checked:r,color:"primary",onChange:e=>{u?.(n,e.target.checked,!0)},...d})),label:e.createElement(t.Box,{display:"flex",alignItems:"center"},e.createElement(m,{component:"span",variant:"body1",className:b},l),s&&e.createElement(I,{title:s,placement:c,sx:{ml:"4px"}},e.createElement(w,{icon:o.faInfoCircle,size:"sm",color:"blueInfo"})))}),(i||a)&&e.createElement(t.FormHelperText,{component:"span",className:i?"Mui-error":""},i||a))},$=({icon:o,variant:n="default",positionGroup:r,tooltipText:i="",tooltipPosition:a="top",size:l="medium",color:s,onClick:c,...u})=>{const p=t.useTheme(),d=e.useMemo((()=>{return t.styled(t.IconButton)({"&.MuiIconButton-root":{borderRadius:"4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px"},":hover":{"& .MuiSvgIcon-root":{color:(e=p).palette.blueHoverClickable}},"&.Mui-disabled":{"& .MuiSvgIcon-root":{color:e.palette.greyMediumInactive}},"&.IconButtonVariant-default":{width:"44px !important",height:"44px !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder,"&:hover":{borderColor:e.palette.blueHoverClickable,backgroundColor:e.palette.white}},"&.IconButtonVariant-table":{width:"42px !important",height:"42px !important",border:"0px","&:hover":{backgroundColor:e.palette.blueHoverOpacity12}},"&.IconButtonPositionGroup-left":{borderRadius:"4px 0px 0px 4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px 0px 0px 4px"}},"&.IconButtonPositionGroup-middle":{borderRadius:"0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px"}},"&.IconButtonPositionGroup-right":{borderRadius:"0px 4px 4px 0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px 4px 4px 0px"}},"&.IconButtonSize-small":{width:"24px !important",height:"24px !important"}}});var e}),[p]);return e.createElement(I,{title:i,placement:a},e.createElement(d,{className:`IconButtonVariant-${n} IconButtonSize-${l} ${r?`IconButtonPositionGroup-${r}`:""} `,onClick:c,...u},e.createElement(w,{color:s,icon:o,size:"small"===l?"sm":"md"})))},R=({totalString:n,totalPerPageString:r,hideTotal:i=!1,limitsPerPage:a=[5,10,20],page:l=1,totalRows:s,limit:c,setLimit:u,setPage:p})=>{const d=t.useTheme(),f=e.useMemo((()=>{return t.styled(t.Pagination)({".MuiPaginationItem-root":{fontFamily:"Roboto",height:"44px !important",width:"44px !important",color:(e=d).palette.blueClickable+" !important",backgroundColor:"white !important",fontWeight:"700 !important",outline:"none !important",fontSize:"14px !important",borderColor:e.palette.greyLightDefaultBorder+" !important","&.Mui-selected":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderRadius:"4px !important",outline:"none !important","&:hover":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"},"&:focus":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"}},"&:hover":{color:e.palette.blueClickable+" !important",backgroundColor:"white !important",borderColor:e.palette.blueHoverClickable+" !important",borderRadius:"4px !important",outline:"none !important"},"&.Mui-disabled":{color:e.palette.greyMediumInactive+" !important",backgroundColor:"white !important",borderRadius:"4px !important",outline:"none !important",opacity:"1 !important"},"&.MuiPaginationItem-ellipsis":{color:e.palette.greyDark+" !important",display:"flex",alignItems:"center",justifyContent:"center"}}});var e}),[d]),[h,g]=e.useState(l),[b,y]=e.useState(c??a[0]),v=((e,t)=>Math.ceil(e/t))(s,b),x=e=>{g(e),p?.(e)};return e.useEffect((()=>{l!==h&&g(l)}),[l]),e.useEffect((()=>{c&&c!==b&&y(c)}),[c]),e.createElement(t.Box,{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",sx:{paddingTop:"16px",paddingBottom:"24px"}},e.createElement(t.Box,{display:"flex",alignItems:"center"},!i&&e.createElement(e.Fragment,null,e.createElement(m,{variant:"body1Medium"},s," ",n),e.createElement(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),e.createElement(T,{className:"dac-select-label",labelId:"select-label",value:b,inputProps:{MenuProps:{disableScrollLock:!0}},onChange:e=>{x(1),(e=>{y(e),u?.(e)})(e)},options:a,getRenderValue:e=>e.toString(),popupIcon:o.faCaretDown,width:60}),e.createElement(m,{variant:"body1",pl:"8px"},r),e.createElement(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),e.createElement(t.Box,{display:"flex",pr:"4px"},e.createElement(f,{variant:"outlined",shape:"rounded",count:v,page:h,onChange:(e,t)=>x(t)})))};function N(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},L.apply(null,arguments)}function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),o}var z,F={exports:{}},B={exports:{}},W={};var _,H,V,U,q,Y,X,K,G,J,Z,Q,ee,te,oe,ne={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{useMemo as o,forwardRef as n,useState as r,useEffect as i,useRef as a,useContext as l,Children as s,isValidElement as c,cloneElement as u,useCallback as p,Fragment as d,createContext as f}from"react";import{Typography as m,useTheme as h,styled as g,Link as b,Button as y,SvgIcon as v,Box as x,TextField as E,FormControl as C,InputLabel as w,Select as k,MenuItem as S,FormHelperText as M,Chip as O,Tooltip as T,tooltipClasses as D,FormControlLabel as I,Checkbox as P,FormLabel as $,FormGroup as R,RadioGroup as N,Radio as L,IconButton as A,Accordion as j,AccordionSummary as z,AccordionDetails as F,Breadcrumbs as B,Pagination as W,Divider as _,Autocomplete as H,Alert as V,Stack as U,Drawer as q,Card as Y,CardHeader as X,CardContent as K,Dialog as G,DialogContent as J,DialogTitle as Z,Switch as Q,Popover as ee,TableContainer as te,Table as oe,TableHead as ne,TableRow as re,TableCell as ie,TableSortLabel as ae,TableBody as le,ToggleButtonGroup as se,ToggleButton as ce,createTheme as ue,ThemeProvider as pe}from"@mui/material";import{faEyeSlash as de,faEye as fe,faCircleX as me,faInfoCircle as he,faCaretDown as ge,faCircleExclamation as be,faCircleXmark as ye,faCircleCheck as ve,faCircleInfo as xe,faFile as Ee,faCheckCircle as Ce,faExclamationCircle as we,faTimesCircle as ke,faBell as Se,faTimes as Me,faDotCircle as Oe}from"@fortawesome/pro-solid-svg-icons";import{faCheck as Te,faChevronDown as De,faTimes as Ie,faSearch as Pe,faUpload as $e,faFolderOpen as Re,faEye as Ne,faTrash as Le,faCalendarDay as Ae,faAngleLeft as je,faAngleRight as ze,faClock as Fe,faArrowUpLong as Be,faArrowDownLong as We}from"@fortawesome/pro-regular-svg-icons";import{useTheme as _e,keyframes as He,GlobalStyles as Ve,createBox as Ue}from"@mui/system";import{jsx as qe,jsxs as Ye}from"react/jsx-runtime";import*as Xe from"react-dom";import Ke from"react-dom";import{faGoogleDrive as Ge}from"@fortawesome/free-brands-svg-icons";import{SnackbarContent as Je}from"notistack";import{LocalizationProvider as Ze,DatePicker as Qe,DigitalClock as et}from"@mui/x-date-pickers-pro";import tt from"dayjs";const ot=e=>t.createElement(m,{color:"greyXDark",...e});var nt=Object.freeze({__proto__:null,DefaultBorderRadius16:"16",DefaultBorderRadius24:"24",DefaultBorderRadius4:"4",DefaultBorderRadius8:"8",DefaultDefaultColorsBackgroundColorsBlueHoverEquivalence:"#e8f1f7",DefaultDefaultColorsBackgroundColorsBlueHoverOpacity12:"#136cac1f",DefaultDefaultColorsBackgroundColorsGreyXDarkBgModal:"#27272780",DefaultDefaultColorsBackgroundColorsGreyXLight:"#f0f0f0",DefaultDefaultColorsBackgroundColorsWhite:"#ffffff",DefaultDefaultColorsBlueClickable:"#136cac",DefaultDefaultColorsBlueHoverClickable:"#004f88",DefaultDefaultColorsBorderColorsGreyLightDefaultBorder:"#cbcbcb",DefaultDefaultColorsGreyMediumInactive:"#808080",DefaultDefaultColorsNotificationColorsBlueInfo:"#1d91c3",DefaultDefaultColorsNotificationColorsGreenSuccess:"#23956d",DefaultDefaultColorsNotificationColorsOrangeWarning:"#e46221",DefaultDefaultColorsNotificationColorsRedError:"#b80025",DefaultDefaultColorsRedActual:"#e40521",DefaultDefaultColorsSecondaryColorsBlueDark:"#0d2c54",DefaultDefaultColorsSecondaryColorsBlueLight:"#7fdcea",DefaultDefaultColorsSecondaryColorsBlueMedium:"#3d5a80",DefaultDefaultColorsSecondaryColorsBrown:"#6f2902",DefaultDefaultColorsSecondaryColorsBrownLight:"#b65700",DefaultDefaultColorsSecondaryColorsGreen:"#5dca8b",DefaultDefaultColorsSecondaryColorsGreenDark:"#125e42",DefaultDefaultColorsSecondaryColorsGreenLight:"#bad07a",DefaultDefaultColorsSecondaryColorsGreenMedium:"#1f8461",DefaultDefaultColorsSecondaryColorsOrangeLight:"#f59b00",DefaultDefaultColorsSecondaryColorsPink:"#ca1e5c",DefaultDefaultColorsSecondaryColorsPinkLight:"#fd6972",DefaultDefaultColorsSecondaryColorsPurple:"#831443",DefaultDefaultColorsSecondaryColorsPurpleDark:"#530d48",DefaultDefaultColorsSecondaryColorsYellow:"#f9d25e",DefaultDefaultColorsTextColorsGreyDark:"#545352",DefaultDefaultColorsTextColorsGreyXDark:"#272727",DefaultFontFamiliesRoboto:"Roboto",DefaultFontSize11:"11",DefaultFontSize13:"13",DefaultFontSize14:"14",DefaultFontSize16:"16",DefaultFontSize18:"18",DefaultFontSize24:"24",DefaultFontSize29:"29",DefaultFontSize35:"35",DefaultFontSize42:"42",DefaultFontWeightsRoboto400:"Regular",DefaultFontWeightsRoboto500:"Medium",DefaultFontWeightsRoboto700:"Bold",DefaultLetterSpacingNone:"none",DefaultLineHeights12:"12",DefaultLineHeights16:"16",DefaultLineHeights18:"18",DefaultLineHeights21:"21",DefaultLineHeights28:"28",DefaultLineHeights34:"34",DefaultLineHeights41:"41",DefaultLineHeights49:"49",DefaultParagraphSpacing0:"0",DefaultParagraphSpacing8:"8",DefaultSizingLg:"24",DefaultSizingMd:"16",DefaultSizingSm:"12",DefaultSizingXl:"32",DefaultSizingXs:"8",DefaultSizingXxl:"40",DefaultSizingXxxl:"72",DefaultSpacingLg:"24",DefaultSpacingMd:"16",DefaultSpacingXl:"32",DefaultSpacingXs:"8",DefaultSpacingXxl:"40",DefaultSpacingXxs:"4",DefaultSpacingXxxl:"72",DefaultTextCaseNone:"none",DefaultTextDecorationNone:"none",DefaultTextDecorationUnderline:"underline",DefaultWebShadowAllContent:{color:"#2727271f",type:"dropShadow",x:"0",y:"2",blur:"10",spread:"0"},EpAppShadowAllContent:{color:"#dedada66",type:"dropShadow",x:"0",y:"4",blur:"15",spread:"0"},EpAppShadowButtomMenu:{color:"#dedada66",type:"dropShadow",x:"0",y:"-4",blur:"15",spread:"0"},EpBorderRadius16:"16",EpBorderRadius24:"24",EpBorderRadius4:"4",EpBorderRadius8:"8",EpColorsBlack:"#161616",EpColorsBlueInfo:"#1d91c3",EpColorsGreenBlue:"#159f9f",EpColorsGreenBlueHover:"#128888",EpColorsGreenLight:"#f2f8f8",EpColorsGreenPastel:"#e4f1f1",EpColorsGreenSucces:"#23956d",EpColorsGrey:"#acc1cc",EpColorsGreyDark:"#676767",EpColorsGreyDarkBgModal:"#67676780",EpColorsGreyLightBorder:"#cbcbcb",EpColorsGreyMediumInactive:"#808080",EpColorsGreyPastel:"#eaf2f6",EpColorsOrangeWarning:"#e46221",EpColorsRed:"#e11c31",EpColorsRedError:"#b80025",EpColorsRedHover:"#b61425",EpColorsRedLight:"#fff7f5",EpColorsRedPastel:"#feefeb",EpColorsWhite:"#ffffff",EpFontFamiliesManrope:"Manrope",EpFontFamiliesOpenSans:"Open Sans",EpFontSize10:"10",EpFontSize12:"12",EpFontSize14:"14",EpFontSize16:"16",EpFontSize18:"18",EpFontSize24:"24",EpFontWeightsManrope500:"Medium",EpFontWeightsManrope700:"Bold",EpFontWeightsOpenSans400:"Regular",EpFontWeightsOpenSans600:"SemiBold",EpFontWeightsOpenSans700:"Bold",EpLetterSpacingNone:"none",EpLineHeights14:"14",EpLineHeights16:"16",EpLineHeights20:"20",EpLineHeights24:"24",EpLineHeights26:"26",EpLineHeights34:"34",EpParagraphSpacing0:"0",EpParagraphSpacing8:"8",EpSizingLg:"24",EpSizingMd:"16",EpSizingSm:"12",EpSizingXl:"32",EpSizingXs:"8",EpSizingXxl:"40",EpSizingXxxl:"72",EpSpacingLg:"24",EpSpacingMd:"16",EpSpacingXl:"32",EpSpacingXs:"8",EpSpacingXxl:"40",EpSpacingXxs:"4",EpSpacingXxxl:"72",EpTextCaseNone:"none",EpTextDecorationNone:"none",EpTextDecorationUnderline:"underline"});const rt=e=>{const t={};Object.keys(nt).forEach((o=>{if(o.startsWith(e)&&o.indexOf("Colors")){let e=o.substring(o.lastIndexOf("Colors")+6);e=e.charAt(0).toLowerCase()+e.slice(1),t[e]=nt[o]}}));const o={primary:{main:t.blueClickable,dark:t.blueHoverClickable},secondary:{main:t.redActual},success:{main:t.greenSuccess},error:{main:t.redError},warning:{main:t.orangeWarning},infos:{main:t.blueInfo}};return{...t,...o}},it=e=>{const t=nt,o=[];return Object.keys(nt).forEach((n=>{n.startsWith(e+"FontFamilies")&&o.push(t[n])})),o},at=e=>({"&.MuiFormControl-root":{zIndex:1,".MuiInputBase-root":{backgroundColor:e.palette.white,height:"44px",padding:"0 !important",".SelectIcon":{marginTop:"-1px",color:e.palette.blueClickable+" !important"}},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable+" !important"},".Mui-error":{color:e.palette.redError,"& span":{color:`${e.palette.greyDark} !important`},"& fieldset":{borderColor:e.palette.redError+" !important"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiOutlinedInput-root":{height:"22px"},".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder,borderWidth:"1px !important",fontSize:"16px !important"},"&.Mui-success":{color:e.palette.greenSuccess,".SelectIcon":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-label":{color:"unset"},"& .clear":{"& span":{color:e.palette.blueClickable}},"& .MuiAutocomplete-popupIndicatorOpen":{transform:"none"},'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess}},"&.Mui-disabled":{".MuiAutocomplete-endAdornment .SelectIcon":{color:`${e.palette.greyMediumInactive} !important`},input:{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder,WebkitTextFillColor:e.palette.greyDark},label:{background:"transparent",backgroundColor:"transparent !important",color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},color:e.palette.greyDark},".MuiInputLabel-root":{"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:`${e.palette.greenSuccess} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:`${e.palette.blueClickable}`,"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiFormHelperText-root":{color:e.palette.greyDark,marginTop:"8px",marginLeft:"8px","&.Mui-error":{color:e.palette.redError}},".MuiAutocomplete-clearIndicator":{backgroundColor:"transparent",".MuiSvgIcon-root":{color:e.palette.blueClickable}},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".clear":{alignSelf:"center",position:"relative"},"&.MuiAutocomplete-listbox":{".clear":{visibility:"visible"}},"&.MuiMenuItem-root":{border:"1px solid green"},"& .Mui-focused":{borderColor:e.palette.blueClickable},"& .Mui-hover":{borderColor:e.palette.greyDark},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},"&.Mui-filled":{".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}}},".MuiOutlinedInput-notchedOutline":{legend:{maxWidth:"100%"}}},".labelClassic":{minHeight:"20px",".MuiFormLabel-root":{transform:"translate(14px, -7px) scale(0.75) !important"},"&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",color:e.palette.greyXDark}},".labelCustom":{color:e.palette.greyDark,fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:"400",marginTop:"-3px","&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"& .MuiInputLabel-shrink":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"&.Mui-focused":{marginTop:"2px",marginLeft:"0px",color:e.palette.blueClickable}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",marginTop:"0px",opacity:"1 !important",color:`${e.palette.greyDark}`,"&.Mui-focused":{marginTop:"0px",color:`${e.palette.blueClickable}`},"&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},".MuiFormLabel-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark,transform:"translate(14px, -7px) scale(0.75) !important"}},"&.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark}`}},"&.DsAutoComplete":{".MuiAutocomplete-endAdornment":{top:"calc(50%)",height:"36px",display:"flex"},"&.Mui-disabled .MuiAutocomplete-endAdornment":{top:"calc(50%)"},"&.Mui-filled":{".MuiAutocomplete-endAdornment":{top:"calc(50%)"}},".MuiInputBase-root":{minHeight:"44px",height:"auto"},"&.MuiMenuItem-root":{border:"1px solid green"},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",WebkitTextFillColor:e.palette.greyDark+" !important"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{position:"relative",transform:"none"}}},"&.DsAutoComplete.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark} !important`,padding:"0px 7px 0px 7px !important"}," .MuiOutlinedInput-root":{padding:"7px 31px 7px 4px !important"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark,backgroundColor:e.palette.greyXLight,WebkitTextFillColor:e.palette.greyDark,".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"}}},".MenuItem ":{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word"},'.MenuItem[aria-selected="true"]':{backgroundColor:e.palette.greyXLight,fontWeight:500},".MenuItem:hover":{backgroundColor:e.palette.blueHoverEquivalence}}),lt=e=>({"&.MuiFormControl-root":{zIndex:1,"&:hover":{".clear":{visibility:"visible"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important",WebkitTextFillColor:e.palette.greyDark},".MuiInputBase-root":{height:"44px",padding:"0 !important",backgroundColor:e.palette.white,".SelectIcon":{marginTop:"-2px",color:e.palette.blueClickable+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiInputLabel-root":{marginTop:"2px"},"& label":{color:e.palette.greyDark},"&.Mui-filled":{"& label":{color:e.palette.greyXDark}},"&.DsMultiSelect":{"&.Mui-filled":{".MuiInputBase-root":{minHeight:"44px",height:"auto !important"}},".MuiOutlinedInput-input":{padding:"8px 12px 7px 8px !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{"-webkit-text-fill-color":e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important"}},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:e.palette.greyLightDefaultBorder,fontSize:"16px"},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable},"&.Mui-error":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".clear":{visibility:"hidden",alignSelf:"center",position:"relative",marginTop:"3px",marginRight:"-8px"},"& .MuiSelect-select .notranslate::after":{fontWeight:400,lineHeight:"18px",fontSize:"14px",color:e.palette.greyDark+" !important"},"&.Select-mui":{"&.Mui-filled":{".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark}}},".MuiInputLabel-root":{transform:"translate(8px, 16px) scale(1)",fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:400,marginTop:"-3px","&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",marginTop:"2px !important",color:e.palette.blueClickable,transform:"translate(14px, -7px) scale(0.75)","&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".SelectIcon":{color:e.palette.blueClickable,marginRight:"9px"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",color:e.palette.greyDark,marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px","&.Mui-error":{color:e.palette.redError}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 31px 11px 14px","&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},"&.Select-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"20px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError+" !important"},"&.Mui-disabled":{color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",color:e.palette.blueClickable,fontWeight:500,fontSize:"16px"}}},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess+" !important"},".MuiInputBase-colorSuccess":{".SelectIcon":{color:e.palette.greenSuccess+" !important",marginTop:"2px"},".MuiOutlinedInput-notchedOutline":{border:"1px solid",fontSize:"16px",borderColor:e.palette.greenSuccess}},".MuiChip-root":{height:"24px"},".SelectIcon.Mui-disabled":{color:e.palette.greyMediumInactive+" !important"}},".MuiFormLabel-filled":{lineHeight:"16px !important",color:e.palette.greyDark,fontWeight:"500 !important",fontSize:"16px !important",marginTop:"2px !important",transform:"translate(14px, -7px) scale(0.75)"}}),st=e=>{const n=h(),r=o((()=>{return g(b)({"&.MuiLink-root":{color:(e=n).palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}});var e}),[n]);return t.createElement(r,{...e})},ct=({variant:e,children:n,...r})=>{const i=h(),a=o((()=>{return g(y)({"@font-face":{fontFamily:"Roboto"},"&.MuiButton-root":{borderRadius:"4px",padding:"7.5px 16px",fontWeight:(e=i).typography.fontWeightBold,lineHeight:"18px",textTransform:"unset",fontSize:"14px",height:"44px",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{paddingBottom:"2px"}},"&.MuiButton-primary":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},color:e.palette.white+" !important",backgroundColor:e.palette.blueClickable+" !important",border:"1px solid !important",borderColor:e.palette.blueClickable+" !important","&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},backgroundColor:e.palette.greyMediumInactive+" !important",borderColor:e.palette.greyMediumInactive+" !important",color:e.palette.white+" !important"},"&:hover":{backgroundColor:e.palette.blueHoverClickable+" !important",borderColor:e.palette.blueHoverClickable+" !important"}},"&.MuiButton-secondary":{".MuiTypography-buttonNotif":{color:e.palette.blueClickable+" !important"},color:e.palette.blueClickable,backgroundColor:e.palette.white+" !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{color:e.palette.blueClickable},"&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.greyMediumInactive+" !important"},backgroundColor:e.palette.white,borderColor:e.palette.greyLightDefaultBorder+" !important",color:e.palette.greyMediumInactive+" !important",".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"},borderColor:e.palette.blueHoverClickable+" !important",backgroundColor:e.palette.white+" !important",color:e.palette.blueHoverClickable+" !important"}},"&:hover":{backgroundColor:"transparent !important"}});var e}),[i]);return t.createElement(a,{variant:e,...r},n)},ut={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},pt=n((({icon:e,fontSize:o},n)=>{const{icon:[r,i,,,a]}=e;return t.createElement(v,{ref:n,viewBox:`0 0 ${r} ${i}`,sx:{fontSize:o??"14px"}},"string"==typeof a?t.createElement("path",{d:a}):a.map(((e,o)=>t.createElement("path",{style:{opacity:0===o?.4:1},d:e,key:o}))))})),dt=({variant:e="none",icon:n,color:r="#136cac",size:i=16,sx:a,...l})=>{const s=h(),c=o((()=>s.palette[r]?s.palette[r]:r&&0!==r.length?r:"#136cac"),[s.palette,r]),u=o((()=>"square"===e?16:i in ut?ut[i]:i>=0?i:16),[e,i]);return t.createElement(x,{className:"itemIcon",component:"span",sx:"square"===e?{...a,color:c,backgroundColor:`${c}14`,borderRadius:"4px",borderColor:"1px solid "+c,overflow:"visible",padding:"10px",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center"}:{...a,color:c,width:u,height:u,lineHeight:u+"px",display:"inline-flex",alignItems:"center",justifyContent:"center"},...l},t.createElement(pt,{icon:n,fontSize:u}))},ft=t.forwardRef((({name:e,value:n,error:a,onBlur:l,onChange:s,label:c="",disabled:u,width:p="100%",endAdornment:d,placeholder:f="",maxLength:m,focused:b,...y},v)=>{const x=h(),C=o((()=>{return g(E)({"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:(e=x).palette.greyDark+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable+" !important"},".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-disabled":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},"&.MuiTextField-root":{".MuiInputBase-root":{backgroundColor:e.palette.white},".MuiInputLabel-root":{"&.Mui-error":{color:e.palette.redError+" !important"},fontWeight:500,transform:"translate(8px, 16px) scale(1)"},"&.Mui-success":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess+" !important"},".MuiFormLabel-root":{color:e.palette.greenSuccess+" !important"}},".Mui-focused.MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",fontSize:"16px"},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess},"&.TextField-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"16px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyXDark,"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{color:e.palette.blueClickable}}},"&.TextField-mui":{".MuiInputLabel-root":{fontSize:"14px",lineHeight:"18px",height:"16px",color:`${e.palette.greyDark}`,fontWeight:400,marginTop:"-3px","&.MuiFormLabel-filled":{lineHeight:"16px",color:e.palette.greyXDark,fontWeight:500,fontSize:"16px",marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:e.palette.blueClickable,marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.MuiFormLabel-colorSuccess":{"&.Mui-focused":{color:e.palette.greenSuccess+" !important"}}}},"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},".DsTextField-passwordIcon":{cursor:"pointer"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight},"textarea.MuiOutlinedInput-input":{paddingBottom:"1px !important"},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark},"&.TextField-mui":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".MuiOutlinedInput-root":{padding:"0px !important","& fieldset":{borderWidth:"1px !important"},".MuiSvgIcon-root":{marginLeft:"-22px"}}}});var e}),[x]),[w,k]=r(!1),[S,M]=r(y.type??"text"),O=o((()=>t.createElement(dt,{className:"DsTextField-passwordIcon",icon:w?de:fe,color:"blueClickable",onClick:()=>k(!w)})),[w]);i((()=>{M(w?"text":y.type??"text")}),[w]);const T=o((()=>[f?"TextField-ds":"TextField-mui","success"===y.color&&"Mui-success",n&&"Mui-filled",y.className].filter(Boolean).join(" ")),[n,y.color]),D=o((()=>Boolean(a&&a?.length>0||m&&String(n).length>m)),[a,m,n]);return t.createElement(C,{variant:"outlined",name:e,ref:v,label:c,value:n,sx:{width:p},placeholder:f,focused:b,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!f||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{s?.(e)},onBlur:e=>{l?.(e)},error:D,disabled:u,InputProps:"password"===y.type?{endAdornment:O}:{endAdornment:d},...y,className:T,type:S,helperText:t.createElement("div",{style:{display:"table",width:"100%",marginRight:"4px"}},(a||y.helperText)&&t.createElement("div",{style:{display:m?"table-cell":"",float:"left"}},a||y.helperText),m&&t.createElement("div",{style:{display:"table-cell",float:"right"}},String(n).length,"/",m," caract."))})}));ft.displayName="TextField";const mt={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},ht=({value:e,label:n="",options:r,color:i,error:a,placeholder:l="",helperText:s,width:c="100%",disabled:u,popupIcon:p=De,onChange:d,getRenderValue:f,...m})=>{const b=h(),y=o((()=>g(C)(lt(b))),[b]),[v,E]=t.useState(m.open??!1),O=o((()=>["DSSingleSelect",l?"Select-ds":"Select-mui",e&&"Mui-filled",a&&"Mui-error"].filter(Boolean).join(" ")),[e,a,l]);return t.createElement(x,{sx:{width:c}},t.createElement(y,{fullWidth:!0,color:i,className:O,disabled:u,sx:{".MuiOutlinedInput-input":{marginTop:e?"0px":"2px"}}},t.createElement(w,{error:!!a,disabled:u},n),t.createElement(k,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":l?{content:`"${l}"`,opacity:l?"1 !important":"0 !important"}:{}},label:n,value:e,notched:!!l||void 0,onChange:e=>d?.(e.target.value),IconComponent:({className:e})=>t.createElement(dt,{className:u?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?Te:p,onClick:()=>{u||E(!v)},size:"md",sx:{":hover":{cursor:u?"auto":"pointer"},marginTop:"success"===i?"2px":"0px",transform:e.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:mt,renderValue:e=>f(e),...m,open:v,onClose:e=>{u||(m.onClose&&m.onClose(e),E(!1))},onOpen:e=>{u||(m.onOpen&&m.onOpen(e),E(!0))}},r?.map(((o,n)=>t.createElement(S,{sx:{"&:hover":{backgroundColor:b.palette.blueHoverEquivalence},"&.Mui-selected":{backgroundColor:b.palette.greyXLight+" !important"},fontSize:14,fontWeight:e===o?500:400,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:e===o?"blueHoverEquivalence":"white"},key:n,value:o,onMouseEnter:e=>e.target.style.backgroundColor=b.palette.blueHoverEquivalence,onMouseLeave:t=>{e!==o&&(t.target.style.backgroundColor=b.palette.white)}},f?f(o):o.label)))),(a||s)&&t.createElement(M,{component:"span",className:a?"Mui-error":""},a||s)))},gt=({variant:e,label:n,prefixIcon:i,suffixIcon:l,suffixTooltip:s,suffixAction:c,tooltip:u,maxWidth:p="100%",...d})=>{const f=h(),m=o((()=>{return g(O)({"&.MuiChip-root":{color:(e=f).palette.greyXDark,borderRadius:"4px",fontWeight:e.palette.fontWeightRegular,fontSize:"14px",paddingLeft:"8px",paddingRight:"8px","& .MuiChip-deleteIcon":{color:e.palette.blueClickable,cursor:"default",width:"auto",height:"auto"},"&.Mui-disabled":{".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"},color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",border:"1px solid",fontWeight:e.palette.fontWeightRegular,borderColor:e.palette.greyLightDefaultBorder+" !important",opacity:1},".MuiChip-deleteIcon":{width:"12px",height:"12px",margin:0,marginLeft:"8px",marginRight:"2px"},".MuiChip-label":{padding:0,lineHeight:"18px"},".MuiChip-avatar":{marginLeft:"-1px",marginRight:"5px",color:"initial"}},"&.MuiChip-filled":{border:"none",fontWeight:400,color:e.palette.greyXDark},"&.MuiChip-outlined":{border:"1px solid",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-status":{border:"1px solid !important",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-statusFilled":{border:"none !important",color:e.palette.greyXDark+" !important",fontWeight:e.typography.fontWeightRegular+" !important"},"&.MuiChip-sizeSmall":{height:"24px",paddingY:"3px"},"&.MuiChip-sizeMedium":{height:"33px",paddingY:"8px"},"&.MuiChip-colorDefault":{backgroundColor:e.palette.greyXLight,border:"none",fontWeight:e.typography.fontWeightRegular+" !important",color:e.palette.greyXDark},"&.MuiChip-colorSecondary":{borderColor:e.palette.greyLightDefaultBorder+" !important",fontWeight:e.typography.fontWeightRegular+" !important",backgroundColor:e.palette.white},"&.MuiChip-colorPrimary":{backgroundColor:e.palette.blueClickable+" !important",color:e.palette.white+" !important",fontWeight:e.typography.fontWeightBold,"& .MuiChip-deleteIcon":{color:e.palette.white+" !important"}},"&.MuiChip-colorSuccess":{border:"1px solid",borderColor:e.palette.greenSuccess+" !important",color:e.palette.greenSuccess,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorWarning":{border:"1px solid",borderColor:e.palette.orangeWarning+" !important",color:e.palette.orangeWarning,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.orangeWarning+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorInfo":{border:"1px solid",borderColor:e.palette.blueInfo+" !important",color:e.palette.blueInfo,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.blueInfo+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorError":{border:"1px solid",borderColor:e.palette.redError+" !important",color:e.palette.redError,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.redError+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}}});var e}),[f]),[b,y]=r(!1),[v,E]=r(!1),C=a(null);let w=d.color&&f.palette[d.color]?"object"==typeof f.palette[d.color]?f.palette[d.color].main:f.palette[d.color]:d.color??"white";return"filled"===e||"statusFilled"===e?w=`${w}14`:"status"===e&&(w="white"),t.createElement(T,{title:u,placement:"right-start",open:b},t.createElement(x,{maxWidth:"fit-content",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},t.createElement(T,{title:s,open:v,placement:"bottom-end",sx:{cursor:c?"pointer !important":"default"}},t.createElement(m,{label:n,ref:C,className:`MuiChip-${e}`,size:"small",sx:{maxWidth:p,backgroundColor:w,"&.MuiChip-colorSecondary":l&&c&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":l&&c&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":l&&c&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:i?t.createElement(dt,{icon:i,size:"sm"}):t.createElement(t.Fragment,null),deleteIcon:l?t.createElement(dt,{icon:l,onMouseEnter:()=>{s&&(E(!0),y(!1))},onMouseLeave:()=>{s&&(E(!1),y(!0))},sx:{cursor:c?"pointer !important":"default"},size:"sm"}):t.createElement(t.Fragment,null),onDelete:c??(()=>null),...d}))))},bt={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},yt=({value:e,label:n,options:r,color:i,error:l,placeholder:s="",helperText:c,width:u="100%",getRenderValue:p,getKeyValue:d,onChange:f,disabled:m,...b})=>{const y=h(),v=o((()=>g(C)(lt(y))),[y]),[E,O]=t.useState(b.open??!1),T=()=>f?.([]),D=e=>{e.stopPropagation()},I=o((()=>["DsMultiSelect",s?"Select-ds":"Select-mui",e.length>0&&"Mui-filled",l&&"Mui-error"].filter(Boolean).join(" ")),[e,l,s]),P=a(null);return t.createElement(x,{sx:{width:u},ref:P},t.createElement(v,{fullWidth:!0,color:i,className:I,disabled:m,sx:{".MuiOutlinedInput-input":{marginTop:e?.length>0?"0px":"2px"}}},t.createElement(w,{disabled:m,error:!!l},n),t.createElement(k,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:n===s?"0 !important":"1 !important"}:{}},multiple:!0,label:n,notched:!!s||void 0,value:e,onChange:e=>f?.(e.target.value),renderValue:o=>t.createElement(x,{sx:{display:"flex"}},t.createElement(x,{sx:{display:"flex",flexWrap:"wrap",gap:.5}},o.map((o=>t.createElement(gt,{key:d(o),variant:m?"outlined":"filled",color:"default",label:p(o),onMouseDown:D,disabled:m,suffixIcon:me,suffixAction:()=>{return!m&&(t=o,f?.(e?.filter((e=>e!==t))));var t},sx:{m:0,maxWidth:P?.current?parseFloat(String(P.current?.offsetWidth).replace("px",""))-60:u}})))),t.createElement(x,{flexGrow:1}),!m&&t.createElement(x,{className:"clear",onClick:T,onMouseDown:D},t.createElement(dt,{icon:Ie}))),IconComponent:({className:e})=>t.createElement(dt,{className:m?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?Te:De,size:"md",onClick:()=>{m||O(!E)},sx:{":hover":{cursor:m?"auto":"pointer"},transform:e.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:bt,...b,open:E,onClose:e=>{m||(b.onClose&&b.onClose(e),O(!1))},onOpen:e=>{m||(b.onOpen&&b.onOpen(e),O(!0))}},r?.map((o=>t.createElement(S,{key:d(o),value:o,sx:{"&:hover":{backgroundColor:y.palette.blueHoverEquivalence},"&.Mui-selected":{backgroundColor:y.palette.greyXLight+" !important"},fontSize:14,fontWeight:-1===e.indexOf(o)?400:500,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:-1===e.indexOf(o)?"white":"greyXLight"}},p(o))))),(l||c)&&t.createElement(M,{component:"span",className:l?"Mui-error":""},l||c)))},vt=({title:e,placement:o="right",children:n,placementMargin:r=4,...i})=>e?t.createElement(T,{title:t.createElement(t.Fragment,null,e),...i,sx:{display:"inline-flex",...i.sx},placement:o||void 0,slotProps:{popper:{sx:{[`&.${D.popper} .MuiTooltip-tooltip`]:{backgroundColor:"greyXDark",padding:"4px !important",fontSize:"12px !important",color:"white",fontWeight:400},[`&.${D.popper}[data-popper-placement*="bottom"] .${D.tooltip}`]:{marginTop:r+"px"},[`&.${D.popper}[data-popper-placement*="top"] .${D.tooltip}`]:{marginBottom:r+"px"},[`&.${D.popper}[data-popper-placement*="right"] .${D.tooltip}`]:{marginLeft:r+"px"},[`&.${D.popper}[data-popper-placement*="left"] .${D.tooltip}`]:{marginRight:r+"px"}}}}},t.createElement(x,{component:"span"},n)):t.createElement(t.Fragment,null,n),xt=({name:e,value:n,error:r,helperText:i,label:a,infoBubbleContent:l,infoBubblePosition:s="right",onChange:c,disabled:u,...p})=>{const d=h(),f=o((()=>{return g(C)({"&.MuiFormControl-root":{"&.DsCheckbox":{"&.Mui-disabled":{".MuiFormControlLabel-root":{cursor:"auto !important"}},".MuiCheckbox-root":{"::before":{zIndex:1,content:'" "',display:"block",position:"absolute",borderRadius:"2px",width:"14px",height:"14px",backgroundColor:"white"},width:"24px",height:"24px",marginRight:"4px",marginBottom:"0px",borderRadius:"4px",".MuiSvgIcon-root":{zIndex:1,width:"18px",height:"18px",path:{width:"14px",height:"14px"}},"&.Mui-checked":{".MuiSvgIcon-root":{color:(e=d).palette.blueClickable}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.blueClickable,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.white}},"&:hover .MuiSvgIcon-root":{color:e.palette.blueHoverEquivalence+" !important"}},"&.Mui-disabled":{"::before":{backgroundColor:e.palette.greyXLight},".MuiSvgIcon-root":{color:e.palette.greyLightDefaultBorder+" !important",backgroundColor:"transparent !important",outlineOffset:"-2px"},"&.Mui-checked":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.greyMediumInactive,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.greyXLight}}}},"&:hover":{backgroundColor:e.palette.blueHoverEquivalence+" !important",".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".DsCheckbox-label":{fontSize:"14px",marginLeft:"-2px",color:e.palette.greyXDark,fontWeight:400,"&.Mui-disabled":{color:e.palette.greyDark}},".MuiTouchRipple-root":{background:"white",height:"12px",width:"12px",top:"6px",zIndex:0,left:"6px",borderRadius:"0px"}},".MuiBox-root .MuiBox-root svg":{top:"1px",position:"relative"}},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",fontWeight:"400",fontSize:"11px",color:e.palette.greyDark}});var e}),[d]),m=o((()=>{const e=["DsCheckbox"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]),b=o((()=>{const e=["DsCheckbox-label"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]);return t.createElement(f,{className:m},t.createElement(I,{disabled:u,control:t.createElement(x,null,t.createElement(P,{inputProps:{name:e},disabled:u,sx:{marginTop:"-2px"},checked:n,color:"primary",onChange:t=>{c?.(e,t.target.checked,!0)},...p})),label:t.createElement(x,null,t.createElement(ot,{component:"span",variant:"body1",className:b},a),l&&t.createElement(vt,{title:l,placement:s,sx:{ml:"4px"}},t.createElement(dt,{icon:he,size:"sm",color:"blueInfo"})))}),(r||i)&&t.createElement(M,{component:"span",className:r?"Mui-error":""},r||i))},Et=({options:e,label:n,disabled:i,error:a,helperText:l,onChange:s})=>{const c=h(),u=o((()=>{return g(C)({"&.MuiFormControl-root":{".MuiFormLabel-root":{color:(e=c).palette.greyXDark,marginLeft:"-6px",fontWeight:"500",fontSize:"13px",lineHeight:"16px",paddingBottom:"4px"},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",color:e.palette.greyDark,fontWeight:"400",fontSize:"11px",paddingTop:"4px"}},"&.Mui-disabled":{".MuiFormLabel-root":{color:e.palette.greyDark+" !important"}},"&.Mui-error":{".MuiFormLabel-root":{color:e.palette.redError+" !important"},".MuiFormHelperText-root":{color:e.palette.redError+" !important"}}});var e}),[c]),[p,d]=r({}),f=o((()=>{const e=[];return i&&e.push("Mui-disabled"),a&&e.push("Mui-error"),e.join(" ")}),[i]);return t.createElement(u,{error:!!a,className:f},t.createElement($,{component:"legend"},n),t.createElement(R,null,e?.slice(0,7).map((e=>t.createElement(xt,{key:e.name,name:e.name,value:p[e.name]||!1,onChange:(e,t)=>((e,t)=>{const o={...p,[e]:t};d(o),s?.(o)})(e,t),disabled:i,label:e.label,infoBubbleContent:e.infoBubbleContent,infoBubblePosition:e.infoBubblePosition})))),(a||l)&&t.createElement(M,{component:"span",className:a?"Mui-error":""},a||l))},Ct=({options:e,value:n,label:r,onChange:i,helperText:a,disabled:l=!1,error:s="",...c})=>{const u=h(),p=o((()=>{return g(C)({"&.MuiFormControl-root":{".MuiRadio-root":{".MuiSvgIcon-root":{flexShrink:0,zIndex:1,height:"16px",width:"16px",color:(e=u).palette.greyMediumInactive},height:"16px",width:"16px",marginRight:"4px","&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".MuiBox-root .itemIcon svg":{top:"1px",position:"relative"},".MuiFormControlLabel-root":{margin:"0px 0px 4px 0px",color:e.palette.greyXDark,alignItems:"self-start"},".MuiFormControlLabel-label":{fontWeight:"400",fontSize:"14px",position:"relative"},".MuiButtonBase-root":{color:e.palette.greyLightDefaultBorder,"&.Mui-checked":{color:e.palette.blueClickable,"& .MuiSvgIcon-root":{color:e.palette.blueClickable}}},".MuiFormLabel-root":{color:e.palette.greyXDark,fontWeight:"500",fontSize:"13px",paddingBottom:"4px",paddingLeft:"2px"},".MuiFormHelperText-root":{margin:"0px",paddingTop:"4px",color:e.palette.greyDark,fontSize:"11px"},"&.Mui-disabled":{".MuiFormLabel-root":{color:e.palette.greyDark},".MuiTypography-root":{color:e.palette.greyDark},".MuiFormControlLabel-label":{color:e.palette.greyDark},".MuiButtonBase-root":{backgroundColor:e.palette.greyXLight,transform:"scale(0.7)","& span":{transform:"scale(1.4)"},"& .MuiSvgIcon-root":{color:e.palette.greyLightDefaultBorder},"&.Mui-checked .MuiSvgIcon-root":{color:e.palette.greyMediumInactive}}},"&.Mui-error":{".MuiFormLabel-root":{color:e.palette.redError},".MuiFormHelperText-root":{color:e.palette.redError+" !important"}},".MuiTouchRipple-root":{background:"white",height:"16px",width:"16px",zIndex:0,left:"3px"}}});var e}),[u]),d=o((()=>[l&&"Mui-disabled",s&&"Mui-error"].filter(Boolean).join(" ")),[l,s]);return t.createElement(p,{disabled:l,error:!!s,className:d},t.createElement($,null,r),t.createElement(N,{value:n,onChange:e=>{i(e.target.value)},...c},e?.slice(0,7).map((({value:e,label:o,infoBubbleContent:n,infoBubblePosition:r},i)=>t.createElement(I,{key:i,control:t.createElement(L,{size:"small"}),value:e,label:t.createElement(x,null,t.createElement(ot,{component:"span",variant:"body1"},o),n&&t.createElement(vt,{title:n,placement:r,sx:{ml:"6px"}},t.createElement(dt,{icon:he,size:"sm",color:"blueInfo"})))})))),(s||a)&&t.createElement(M,{component:"span",className:s?"Mui-error":""},s||a)||t.createElement(x,{height:18}))},wt=({icon:e,variant:n="default",positionGroup:r,tooltipText:i="",tooltipPosition:a="top",size:l="medium",color:s,onClick:c,...u})=>{const p=h(),d=o((()=>{return g(A)({"&.MuiIconButton-root":{borderRadius:"4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px"},":hover":{"& .MuiSvgIcon-root":{color:(e=p).palette.blueHoverClickable}},"&.Mui-disabled":{"& .MuiSvgIcon-root":{color:e.palette.greyMediumInactive}},"&.IconButtonVariant-default":{width:"44px !important",height:"44px !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder,"&:hover":{borderColor:e.palette.blueHoverClickable,backgroundColor:e.palette.white}},"&.IconButtonVariant-table":{width:"42px !important",height:"42px !important",border:"0px","&:hover":{backgroundColor:e.palette.blueHoverOpacity12}},"&.IconButtonPositionGroup-left":{borderRadius:"4px 0px 0px 4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px 0px 0px 4px"}},"&.IconButtonPositionGroup-middle":{borderRadius:"0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px"}},"&.IconButtonPositionGroup-right":{borderRadius:"0px 4px 4px 0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px 4px 4px 0px"}},"&.IconButtonSize-small":{width:"24px !important",height:"24px !important"}}});var e}),[p]);return t.createElement(vt,{title:i,placement:a},t.createElement(d,{className:`IconButtonVariant-${n} IconButtonSize-${l} ${r?`IconButtonPositionGroup-${r}`:""} `,onClick:c,...u},t.createElement(dt,{color:s,icon:e,size:"small"===l?"sm":"md"})))},kt=({title:e,summaryHeight:n,expanded:a=!1,onClick:l,children:s,...c})=>{const u=h(),p=o((()=>{return g(j)({"&.MuiAccordion-root":{border:"1px solid",borderColor:(e=u).palette.greyLightDefaultBorder,boxShadow:"none",".MuiAccordionSummary-root":{minHeight:"auto !important",padding:"8px 16px",color:e.palette.greyXDark,fontWeight:e.typography.fontWeightMedium,fontSize:"18px",lineHeight:"21px"},".MuiAccordionDetails-root":{padding:"16px",borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},".MuiAccordionSummary-expandIconWrapper .MuiBox-root":{width:"auto",padding:"13px"}}});var e}),[u]),[d,f]=r(a);return i((()=>{a!==d&&f(a)}),[a]),t.createElement(p,{expanded:d,onClick:e=>{c.disabled||(f(!d),l&&l(e))},...c},t.createElement(z,{expandIcon:t.createElement(wt,{variant:"table",size:"medium",icon:De}),sx:{fontWeight:500,fontSize:18,lineHeight:21,height:n||60}},e),t.createElement(F,{sx:{backgroundColor:u.palette.greyXLight,borderTop:"1px solid",borderColor:u.palette.greyLightDefaultBorder}},s))},St=({PageName:e,links:n,...r})=>{const i=h(),a=o((()=>g(B)({"&.MuiBreadcrumbs-root":{margin:0,padding:"4px 0"},"& .MuiBreadcrumbs-separator":{margin:0,padding:"0 4px"},"& .MuiTypography-body1":{color:i.palette.greyDark}})),[i]);return t.createElement(a,{"aria-label":"breadcrumb",...r},n?.map(((e,o)=>t.createElement("div",{key:o},t.createElement(st,{key:o,href:e.link,variant:"link1"},e.title)))),t.createElement(ot,{variant:"body1"},e))},Mt=({totalString:e,totalPerPageString:n,hideTotal:a=!1,limitsPerPage:l=[5,10,20],page:s=1,totalRows:c,limit:u,setLimit:p,setPage:d})=>{const f=h(),m=o((()=>{return g(W)({".MuiPaginationItem-root":{fontFamily:"Roboto",height:"44px !important",width:"44px !important",color:(e=f).palette.blueClickable+" !important",backgroundColor:"white !important",fontWeight:"700 !important",outline:"none !important",fontSize:"14px !important",borderColor:e.palette.greyLightDefaultBorder+" !important","&.Mui-selected":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderRadius:"4px !important",outline:"none !important","&:hover":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"},"&:focus":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"}},"&:hover":{color:e.palette.blueClickable+" !important",backgroundColor:"white !important",borderColor:e.palette.blueHoverClickable+" !important",borderRadius:"4px !important",outline:"none !important"},"&.Mui-disabled":{color:e.palette.greyMediumInactive+" !important",backgroundColor:"white !important",borderRadius:"4px !important",outline:"none !important",opacity:"1 !important"},"&.MuiPaginationItem-ellipsis":{color:e.palette.greyDark+" !important",display:"flex",alignItems:"center",justifyContent:"center"}}});var e}),[f]),[b,y]=r(s),[v,E]=r(u??l[0]),C=((e,t)=>Math.ceil(e/t))(c,v),w=e=>{y(e),d?.(e)};return i((()=>{s!==b&&y(s)}),[s]),i((()=>{u&&u!==v&&E(u)}),[u]),t.createElement(x,{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",sx:{paddingTop:"16px",paddingBottom:"24px"}},t.createElement(x,{display:"flex",alignItems:"center"},!a&&t.createElement(t.Fragment,null,t.createElement(ot,{variant:"body1Medium"},c," ",e),t.createElement(_,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),t.createElement(ht,{className:"dac-select-label",labelId:"select-label",value:v,inputProps:{MenuProps:{disableScrollLock:!0}},onChange:e=>{w(1),(e=>{E(e),p?.(e)})(e)},options:l,getRenderValue:e=>e.toString(),popupIcon:ge,width:60}),t.createElement(ot,{variant:"body1",pl:"8px"},n),t.createElement(_,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),t.createElement(x,{display:"flex",pr:"4px"},t.createElement(m,{variant:"outlined",shape:"rounded",count:C,page:b,onChange:(e,t)=>w(t)})))},Ot=({title:e,text:o,variant:n="infos",actionButton:r,...i})=>{const a={warning:{color:"orangeWarning",icon:be},error:{color:"redError",icon:ye},success:{color:"greenSuccess",icon:ve},infos:{color:"blueInfo",icon:xe}};return t.createElement(x,{border:"1px solid",borderColor:a[n].color,p:"8px 16px",borderRadius:"4px",display:"flex",alignItems:o?"flex-start":"center",justifyContent:o?"flex-start":"center",...i},t.createElement(dt,{icon:a[n].icon,color:a[n].color,mr:"16px",mt:o?"1px":0}),t.createElement(x,{display:"flex",flexDirection:"column",paddingRight:4},t.createElement(ot,{align:"left",variant:"body1Bold",color:a[n].color,display:"inline-block"},e),o&&t.createElement(ot,{align:"left",variant:"body1Regular",color:"greyDark",display:"inline-block",paddingTop:"4px"},o)),t.createElement(x,{flexGrow:2}),r&&t.createElement(x,{alignSelf:"center",whiteSpace:"nowrap"},r))},Tt=({value:e,label:n,placeholder:r="",options:i,disabled:a,getOptionLabel:l,onChange:s,width:c="100%",color:u,helperText:p,error:d,searchIcon:f=!1,...m})=>{const b=h(),y=o((()=>g(C)(at(b))),[b]),v=o((()=>null!==e&&i&&i?.length>0&&i.some((t=>m?.isOptionEqualToValue&&m.isOptionEqualToValue(t,e)||JSON.stringify(t)===JSON.stringify(e)))),[e,i,m?.isOptionEqualToValue]),w=o((()=>["DsAutoComplete",v&&"Mui-filled","success"===u&&"Mui-success",a&&"Mui-disabled"].filter(Boolean).join(" ")),[e,a,u]),k=o((()=>[r?"labelClassic Mui-Input-filled":"labelCustom","success"===u&&"Mui-success",v&&"Mui-Input-filled Mui-InputLabel-shrink"].filter(Boolean).join(" ")),[u,r,e]),O=o((()=>"success"===u?Te:f?Pe:De),[u,f]);return t.createElement(x,{sx:{width:c}},t.createElement(y,{fullWidth:!0,color:u,className:w},t.createElement(H,{...m,value:v&&e||null,onChange:(e,t)=>s?.(t),"aria-placeholder":r,disabled:a,options:i,sx:{...m.sx,".MuiOutlinedInput-input":{marginTop:e?"0px":"2px"},"& .MuiAutocomplete-popupIndicator":{transform:"none"}},getOptionLabel:l,slotProps:{paper:{sx:{fontSize:"14px",marginTop:"4px",boxShadow:"0px 2px 10px 0px #2727271F"}}},renderOption:(e,o)=>t.createElement(S,{...e,className:"MenuItem DsAutoComplete",sx:{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word",'&.MenuItem[aria-selected="true"]':{backgroundColor:b.palette.greyXLight,fontWeight:500},"&:hover":{backgroundColor:b.palette.blueHoverEquivalence}}},l(o)),clearIcon:t.createElement(t.Fragment,null,!a&&e&&t.createElement(x,{className:"clear",onClick:()=>s?.(null),onMouseDown:e=>{e.stopPropagation()}},t.createElement(dt,{icon:Ie}))),popupIcon:t.createElement(dt,{className:a?"icon-disabled SelectIcon":"SelectIcon",icon:O,size:"md"}),renderInput:e=>t.createElement(E,{...e,label:n,error:!!d,fullWidth:!0,variant:"outlined",type:"text",inputProps:{...e.inputProps},InputLabelProps:{shrink:!!r||void 0,disabled:!1,className:k},placeholder:r})}),(d||p)&&t.createElement(M,{component:"span",className:d?"Mui-error":""},d||p)))};function Dt(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},It.apply(null,arguments)}function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),o}var Rt,Nt,Lt,At,jt,zt,Ft,Bt,Wt,_t,Ht,Vt,Ut,qt,Yt,Xt,Kt={exports:{}},Gt={exports:{}},Jt={},Zt={};
|
|
1
|
+
import*as e from"react";import t,{useMemo as o,forwardRef as n,useState as r,useEffect as i,useRef as a,useContext as l,Children as s,isValidElement as c,cloneElement as u,useCallback as p,Fragment as d,createContext as f}from"react";import{Typography as m,useTheme as h,styled as g,Link as b,Button as y,SvgIcon as v,Box as x,TextField as E,FormControl as C,InputLabel as w,Select as k,MenuItem as S,FormHelperText as M,Chip as O,Tooltip as T,tooltipClasses as D,FormControlLabel as I,Checkbox as P,FormLabel as $,FormGroup as R,RadioGroup as N,Radio as L,IconButton as A,Accordion as j,AccordionSummary as z,AccordionDetails as F,Breadcrumbs as B,Pagination as W,Divider as _,Autocomplete as H,Alert as V,Stack as U,Drawer as q,Card as Y,CardHeader as X,CardContent as K,Dialog as G,DialogContent as J,DialogTitle as Z,Switch as Q,Popover as ee,TableContainer as te,Table as oe,TableHead as ne,TableRow as re,TableCell as ie,TableSortLabel as ae,TableBody as le,ToggleButtonGroup as se,ToggleButton as ce,createTheme as ue,ThemeProvider as pe}from"@mui/material";import{faEyeSlash as de,faEye as fe,faCircleX as me,faInfoCircle as he,faCaretDown as ge,faCircleExclamation as be,faCircleXmark as ye,faCircleCheck as ve,faCircleInfo as xe,faFile as Ee,faCheckCircle as Ce,faExclamationCircle as we,faTimesCircle as ke,faBell as Se,faTimes as Me,faDotCircle as Oe}from"@fortawesome/pro-solid-svg-icons";import{faCheck as Te,faChevronDown as De,faTimes as Ie,faSearch as Pe,faUpload as $e,faFolderOpen as Re,faEye as Ne,faTrash as Le,faCalendarDay as Ae,faAngleLeft as je,faAngleRight as ze,faClock as Fe,faArrowUpLong as Be,faArrowDownLong as We}from"@fortawesome/pro-regular-svg-icons";import{useTheme as _e,keyframes as He,GlobalStyles as Ve,createBox as Ue}from"@mui/system";import{jsx as qe,jsxs as Ye}from"react/jsx-runtime";import*as Xe from"react-dom";import Ke from"react-dom";import{faGoogleDrive as Ge}from"@fortawesome/free-brands-svg-icons";import{SnackbarContent as Je}from"notistack";import{LocalizationProvider as Ze,DatePicker as Qe,DigitalClock as et}from"@mui/x-date-pickers-pro";import tt from"dayjs";const ot=e=>t.createElement(m,{color:"greyXDark",...e});var nt=Object.freeze({__proto__:null,DefaultBorderRadius16:"16",DefaultBorderRadius24:"24",DefaultBorderRadius4:"4",DefaultBorderRadius8:"8",DefaultDefaultColorsBackgroundColorsBlueHoverEquivalence:"#e8f1f7",DefaultDefaultColorsBackgroundColorsBlueHoverOpacity12:"#136cac1f",DefaultDefaultColorsBackgroundColorsGreyXDarkBgModal:"#27272780",DefaultDefaultColorsBackgroundColorsGreyXLight:"#f0f0f0",DefaultDefaultColorsBackgroundColorsWhite:"#ffffff",DefaultDefaultColorsBlueClickable:"#136cac",DefaultDefaultColorsBlueHoverClickable:"#004f88",DefaultDefaultColorsBorderColorsGreyLightDefaultBorder:"#cbcbcb",DefaultDefaultColorsGreyMediumInactive:"#808080",DefaultDefaultColorsNotificationColorsBlueInfo:"#1d91c3",DefaultDefaultColorsNotificationColorsGreenSuccess:"#23956d",DefaultDefaultColorsNotificationColorsOrangeWarning:"#e46221",DefaultDefaultColorsNotificationColorsRedError:"#b80025",DefaultDefaultColorsRedActual:"#e40521",DefaultDefaultColorsSecondaryColorsBlueDark:"#0d2c54",DefaultDefaultColorsSecondaryColorsBlueLight:"#7fdcea",DefaultDefaultColorsSecondaryColorsBlueMedium:"#3d5a80",DefaultDefaultColorsSecondaryColorsBrown:"#6f2902",DefaultDefaultColorsSecondaryColorsBrownLight:"#b65700",DefaultDefaultColorsSecondaryColorsGreen:"#5dca8b",DefaultDefaultColorsSecondaryColorsGreenDark:"#125e42",DefaultDefaultColorsSecondaryColorsGreenLight:"#bad07a",DefaultDefaultColorsSecondaryColorsGreenMedium:"#1f8461",DefaultDefaultColorsSecondaryColorsOrangeLight:"#f59b00",DefaultDefaultColorsSecondaryColorsPink:"#ca1e5c",DefaultDefaultColorsSecondaryColorsPinkLight:"#fd6972",DefaultDefaultColorsSecondaryColorsPurple:"#831443",DefaultDefaultColorsSecondaryColorsPurpleDark:"#530d48",DefaultDefaultColorsSecondaryColorsYellow:"#f9d25e",DefaultDefaultColorsTextColorsGreyDark:"#545352",DefaultDefaultColorsTextColorsGreyXDark:"#272727",DefaultFontFamiliesRoboto:"Roboto",DefaultFontSize11:"11",DefaultFontSize13:"13",DefaultFontSize14:"14",DefaultFontSize16:"16",DefaultFontSize18:"18",DefaultFontSize24:"24",DefaultFontSize29:"29",DefaultFontSize35:"35",DefaultFontSize42:"42",DefaultFontWeightsRoboto400:"Regular",DefaultFontWeightsRoboto500:"Medium",DefaultFontWeightsRoboto700:"Bold",DefaultLetterSpacingNone:"none",DefaultLineHeights12:"12",DefaultLineHeights16:"16",DefaultLineHeights18:"18",DefaultLineHeights21:"21",DefaultLineHeights28:"28",DefaultLineHeights34:"34",DefaultLineHeights41:"41",DefaultLineHeights49:"49",DefaultParagraphSpacing0:"0",DefaultParagraphSpacing8:"8",DefaultSizingLg:"24",DefaultSizingMd:"16",DefaultSizingSm:"12",DefaultSizingXl:"32",DefaultSizingXs:"8",DefaultSizingXxl:"40",DefaultSizingXxxl:"72",DefaultSpacingLg:"24",DefaultSpacingMd:"16",DefaultSpacingXl:"32",DefaultSpacingXs:"8",DefaultSpacingXxl:"40",DefaultSpacingXxs:"4",DefaultSpacingXxxl:"72",DefaultTextCaseNone:"none",DefaultTextDecorationNone:"none",DefaultTextDecorationUnderline:"underline",DefaultWebShadowAllContent:{color:"#2727271f",type:"dropShadow",x:"0",y:"2",blur:"10",spread:"0"},EpAppShadowAllContent:{color:"#dedada66",type:"dropShadow",x:"0",y:"4",blur:"15",spread:"0"},EpAppShadowButtomMenu:{color:"#dedada66",type:"dropShadow",x:"0",y:"-4",blur:"15",spread:"0"},EpBorderRadius16:"16",EpBorderRadius24:"24",EpBorderRadius4:"4",EpBorderRadius8:"8",EpColorsBlack:"#161616",EpColorsBlueInfo:"#1d91c3",EpColorsGreenBlue:"#159f9f",EpColorsGreenBlueHover:"#128888",EpColorsGreenLight:"#f2f8f8",EpColorsGreenPastel:"#e4f1f1",EpColorsGreenSucces:"#23956d",EpColorsGrey:"#acc1cc",EpColorsGreyDark:"#676767",EpColorsGreyDarkBgModal:"#67676780",EpColorsGreyLightBorder:"#cbcbcb",EpColorsGreyMediumInactive:"#808080",EpColorsGreyPastel:"#eaf2f6",EpColorsOrangeWarning:"#e46221",EpColorsRed:"#e11c31",EpColorsRedError:"#b80025",EpColorsRedHover:"#b61425",EpColorsRedLight:"#fff7f5",EpColorsRedPastel:"#feefeb",EpColorsWhite:"#ffffff",EpFontFamiliesManrope:"Manrope",EpFontFamiliesOpenSans:"Open Sans",EpFontSize10:"10",EpFontSize12:"12",EpFontSize14:"14",EpFontSize16:"16",EpFontSize18:"18",EpFontSize24:"24",EpFontWeightsManrope500:"Medium",EpFontWeightsManrope700:"Bold",EpFontWeightsOpenSans400:"Regular",EpFontWeightsOpenSans600:"SemiBold",EpFontWeightsOpenSans700:"Bold",EpLetterSpacingNone:"none",EpLineHeights14:"14",EpLineHeights16:"16",EpLineHeights20:"20",EpLineHeights24:"24",EpLineHeights26:"26",EpLineHeights34:"34",EpParagraphSpacing0:"0",EpParagraphSpacing8:"8",EpSizingLg:"24",EpSizingMd:"16",EpSizingSm:"12",EpSizingXl:"32",EpSizingXs:"8",EpSizingXxl:"40",EpSizingXxxl:"72",EpSpacingLg:"24",EpSpacingMd:"16",EpSpacingXl:"32",EpSpacingXs:"8",EpSpacingXxl:"40",EpSpacingXxs:"4",EpSpacingXxxl:"72",EpTextCaseNone:"none",EpTextDecorationNone:"none",EpTextDecorationUnderline:"underline"});const rt=e=>{const t={};Object.keys(nt).forEach((o=>{if(o.startsWith(e)&&o.indexOf("Colors")){let e=o.substring(o.lastIndexOf("Colors")+6);e=e.charAt(0).toLowerCase()+e.slice(1),t[e]=nt[o]}}));const o={primary:{main:t.blueClickable,dark:t.blueHoverClickable},secondary:{main:t.redActual},success:{main:t.greenSuccess},error:{main:t.redError},warning:{main:t.orangeWarning},infos:{main:t.blueInfo}};return{...t,...o}},it=e=>{const t=nt,o=[];return Object.keys(nt).forEach((n=>{n.startsWith(e+"FontFamilies")&&o.push(t[n])})),o},at=e=>({"&.MuiFormControl-root":{zIndex:1,".MuiInputBase-root":{backgroundColor:e.palette.white,height:"44px",padding:"0 !important",".SelectIcon":{marginTop:"-1px",color:e.palette.blueClickable+" !important"}},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable+" !important"},".Mui-error":{color:e.palette.redError,"& span":{color:`${e.palette.greyDark} !important`},"& fieldset":{borderColor:e.palette.redError+" !important"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiOutlinedInput-root":{height:"22px"},".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder,borderWidth:"1px !important",fontSize:"16px !important"},"&.Mui-success":{color:e.palette.greenSuccess,".SelectIcon":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-label":{color:"unset"},"& .clear":{"& span":{color:e.palette.blueClickable}},"& .MuiAutocomplete-popupIndicatorOpen":{transform:"none"},'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess}},"&.Mui-disabled":{".MuiAutocomplete-endAdornment .SelectIcon":{color:`${e.palette.greyMediumInactive} !important`},input:{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder,WebkitTextFillColor:e.palette.greyDark},label:{background:"transparent",backgroundColor:"transparent !important",color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},color:e.palette.greyDark},".MuiInputLabel-root":{"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:`${e.palette.greenSuccess} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:`${e.palette.blueClickable}`,"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiFormHelperText-root":{color:e.palette.greyDark,marginTop:"8px",marginLeft:"8px","&.Mui-error":{color:e.palette.redError}},".MuiAutocomplete-clearIndicator":{backgroundColor:"transparent",".MuiSvgIcon-root":{color:e.palette.blueClickable}},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".clear":{alignSelf:"center",position:"relative"},"&.MuiAutocomplete-listbox":{".clear":{visibility:"visible"}},"&.MuiMenuItem-root":{border:"1px solid green"},"& .Mui-focused":{borderColor:e.palette.blueClickable},"& .Mui-hover":{borderColor:e.palette.greyDark},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},"&.Mui-filled":{".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{"& span":{position:"relative",transform:"none"}}},".MuiOutlinedInput-notchedOutline":{legend:{maxWidth:"100%"}}},".labelClassic":{minHeight:"20px",".MuiFormLabel-root":{transform:"translate(14px, -7px) scale(0.75) !important"},"&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",color:e.palette.greyXDark}},".labelCustom":{color:e.palette.greyDark,fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:"400",marginTop:"-3px","&.Mui-Input-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"& .MuiInputLabel-shrink":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark},"&.Mui-focused":{marginTop:"2px",marginLeft:"0px",color:e.palette.blueClickable}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",marginTop:"0px",opacity:"1 !important",color:`${e.palette.greyDark}`,"&.Mui-focused":{marginTop:"0px",color:`${e.palette.blueClickable}`},"&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},".MuiFormLabel-filled":{lineHeight:"16px",fontWeight:"500",fontSize:"16px",marginTop:"2px",marginLeft:"0px",color:e.palette.greyXDark,transform:"translate(14px, -7px) scale(0.75) !important"}},"&.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark}`}},"&.DsAutoComplete":{".MuiAutocomplete-endAdornment":{top:"calc(50%)",height:"36px",display:"flex"},"&.Mui-disabled .MuiAutocomplete-endAdornment":{top:"calc(50%)"},"&.Mui-filled":{".MuiAutocomplete-endAdornment":{top:"calc(50%)"}},".MuiInputBase-root":{minHeight:"44px",height:"auto"},"&.MuiMenuItem-root":{border:"1px solid green"},"& .MuiMenuItem-root":{border:"1px solid green"},".MuiMenuItem-root":{border:"1px solid green"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",WebkitTextFillColor:e.palette.greyDark+" !important"},".Mui-success":{'& button[title="Close"].MuiAutocomplete-popupIndicator':{position:"relative",transform:"none"}}},"&.DsAutoComplete.Mui-filled":{".MuiOutlinedInput-input":{color:`${e.palette.greyXDark} !important`,padding:"0px 7px 0px 7px !important"}," .MuiOutlinedInput-root":{padding:"7px 31px 7px 4px !important"},".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"},".Mui-disabled":{color:e.palette.greyDark,backgroundColor:e.palette.greyXLight,WebkitTextFillColor:e.palette.greyDark,".MuiAutocomplete-popupIndicator":{backgroundColor:"transparent"}}},".MenuItem ":{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word"},'.MenuItem[aria-selected="true"]':{backgroundColor:e.palette.greyXLight,fontWeight:500},".MenuItem:hover":{backgroundColor:e.palette.blueHoverEquivalence}}),lt=e=>({"&.MuiFormControl-root":{zIndex:1,"&:hover":{".clear":{visibility:"visible"},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important",WebkitTextFillColor:e.palette.greyDark},".MuiInputBase-root":{height:"44px",padding:"0 !important",backgroundColor:e.palette.white,".SelectIcon":{marginTop:"-2px",color:e.palette.blueClickable+" !important"}},".MuiFormLabel-root.Mui-focused":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiFormLabel-root.Mui-Input-filled":{transform:"translate(14px, -7px) scale(0.75) !important"},".MuiInputLabel-root":{marginTop:"2px"},"& label":{color:e.palette.greyDark},"&.Mui-filled":{"& label":{color:e.palette.greyXDark}},"&.DsMultiSelect":{"&.Mui-filled":{".MuiInputBase-root":{minHeight:"44px",height:"auto !important"}},".MuiOutlinedInput-input":{padding:"8px 12px 7px 8px !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{"-webkit-text-fill-color":e.palette.greyDark,borderColor:e.palette.greyLightDefaultBorder+" !important"}},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:e.palette.greyLightDefaultBorder,fontSize:"16px"},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable},"&.Mui-error":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"}},".clear":{visibility:"hidden",alignSelf:"center",position:"relative",marginTop:"3px",marginRight:"-8px"},"& .MuiSelect-select .notranslate::after":{fontWeight:400,lineHeight:"18px",fontSize:"14px",color:e.palette.greyDark+" !important"},"&.Select-mui":{"&.Mui-filled":{".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark}}},".MuiInputLabel-root":{transform:"translate(8px, 16px) scale(1)",fontSize:"14px",lineHeight:"18px",height:"20px",fontWeight:400,marginTop:"-3px","&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",marginTop:"2px !important",color:e.palette.blueClickable,transform:"translate(14px, -7px) scale(0.75)","&.Mui-error":{color:`${e.palette.redError} !important`},"&.Mui-success":{color:e.palette.greenSuccess}}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 2px 11px 8px","&.Mui-disabled":{color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".SelectIcon":{color:e.palette.blueClickable,marginRight:"9px"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",color:e.palette.greyDark,marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px","&.Mui-error":{color:e.palette.redError}},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 31px 11px 14px","&.Mui-disabled":{color:e.palette.greyDark},"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"}},"&.Select-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"20px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError+" !important"},"&.Mui-disabled":{color:e.palette.greyDark+" !important","-webkit-text-fill-color":e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",color:e.palette.blueClickable,fontWeight:500,fontSize:"16px"}}},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess+" !important"},".MuiInputBase-colorSuccess":{".SelectIcon":{color:e.palette.greenSuccess+" !important",marginTop:"2px"},".MuiOutlinedInput-notchedOutline":{border:"1px solid",fontSize:"16px",borderColor:e.palette.greenSuccess}},".MuiChip-root":{height:"24px"},".SelectIcon.Mui-disabled":{color:e.palette.greyMediumInactive+" !important"}},".MuiFormLabel-filled":{lineHeight:"16px !important",color:e.palette.greyDark,fontWeight:"500 !important",fontSize:"16px !important",marginTop:"2px !important",transform:"translate(14px, -7px) scale(0.75)"}}),st=e=>{const n=h(),r=o((()=>{return g(b)({"&.MuiLink-root":{color:(e=n).palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}});var e}),[n]);return t.createElement(r,{...e})},ct=({variant:e,children:n,...r})=>{const i=h(),a=o((()=>{return g(y)({"@font-face":{fontFamily:"Roboto"},"&.MuiButton-root":{borderRadius:"4px",padding:"7.5px 16px",fontWeight:(e=i).typography.fontWeightBold,lineHeight:"18px",textTransform:"unset",fontSize:"14px",height:"44px",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{paddingBottom:"2px"}},"&.MuiButton-primary":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},color:e.palette.white+" !important",backgroundColor:e.palette.blueClickable+" !important",border:"1px solid !important",borderColor:e.palette.blueClickable+" !important","&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.white+" !important"},backgroundColor:e.palette.greyMediumInactive+" !important",borderColor:e.palette.greyMediumInactive+" !important",color:e.palette.white+" !important"},"&:hover":{backgroundColor:e.palette.blueHoverClickable+" !important",borderColor:e.palette.blueHoverClickable+" !important"}},"&.MuiButton-secondary":{".MuiTypography-buttonNotif":{color:e.palette.blueClickable+" !important"},color:e.palette.blueClickable,backgroundColor:e.palette.white+" !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important",".MuiSvgIcon-root":{color:e.palette.blueClickable},"&.Mui-disabled":{".MuiTypography-buttonNotif":{color:e.palette.greyMediumInactive+" !important"},backgroundColor:e.palette.white,borderColor:e.palette.greyLightDefaultBorder+" !important",color:e.palette.greyMediumInactive+" !important",".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"},borderColor:e.palette.blueHoverClickable+" !important",backgroundColor:e.palette.white+" !important",color:e.palette.blueHoverClickable+" !important"}},"&:hover":{backgroundColor:"transparent !important"}});var e}),[i]);return t.createElement(a,{variant:e,...r},n)},ut={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},pt=n((({icon:e,fontSize:o},n)=>{const{icon:[r,i,,,a]}=e;return t.createElement(v,{ref:n,viewBox:`0 0 ${r} ${i}`,sx:{fontSize:o??"14px"}},"string"==typeof a?t.createElement("path",{d:a}):a.map(((e,o)=>t.createElement("path",{style:{opacity:0===o?.4:1},d:e,key:o}))))})),dt=({variant:e="none",icon:n,color:r="#136cac",size:i=16,sx:a,...l})=>{const s=h(),c=o((()=>s.palette[r]?s.palette[r]:r&&0!==r.length?r:"#136cac"),[s.palette,r]),u=o((()=>"square"===e?16:i in ut?ut[i]:i>=0?i:16),[e,i]);return t.createElement(x,{className:"itemIcon",component:"span",sx:"square"===e?{...a,color:c,backgroundColor:`${c}14`,borderRadius:"4px",borderColor:"1px solid "+c,overflow:"visible",padding:"10px",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center"}:{...a,color:c,width:u,height:u,lineHeight:u+"px",display:"inline-flex",alignItems:"center",justifyContent:"center"},...l},t.createElement(pt,{icon:n,fontSize:u}))},ft=t.forwardRef((({name:e,value:n,error:a,onBlur:l,onChange:s,label:c="",disabled:u,width:p="100%",endAdornment:d,placeholder:f="",maxLength:m,focused:b,...y},v)=>{const x=h(),C=o((()=>{return g(E)({"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:(e=x).palette.greyDark+" !important"}},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable+" !important"},".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-disabled":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive},".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !important"}},"&.MuiTextField-root":{".MuiInputBase-root":{backgroundColor:e.palette.white},".MuiInputLabel-root":{"&.Mui-error":{color:e.palette.redError+" !important"},fontWeight:500,transform:"translate(8px, 16px) scale(1)"},"&.Mui-success":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greenSuccess+" !important"},".MuiFormLabel-root":{color:e.palette.greenSuccess+" !important"}},".Mui-focused.MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},".MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",fontSize:"16px"},".MuiFormLabel-colorSuccess":{color:e.palette.greenSuccess},"&.TextField-ds":{".MuiInputLabel-root":{fontSize:"16px",lineHeight:"16px",height:"16px",fontWeight:500,transform:"translate(14px, -7px) scale(0.75)",color:e.palette.greyXDark,"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{color:e.palette.blueClickable}}},"&.TextField-mui":{".MuiInputLabel-root":{fontSize:"14px",lineHeight:"18px",height:"16px",color:`${e.palette.greyDark}`,fontWeight:400,marginTop:"-3px","&.MuiFormLabel-filled":{lineHeight:"16px",color:e.palette.greyXDark,fontWeight:500,fontSize:"16px",marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.Mui-disabled":{color:e.palette.greyDark},"&.Mui-focused":{lineHeight:"16px",fontWeight:500,fontSize:"16px",color:e.palette.blueClickable,marginTop:"2px",transform:"translate(14px, -7px) scale(0.75)"},"&.MuiFormLabel-colorSuccess":{"&.Mui-focused":{color:e.palette.greenSuccess+" !important"}}}},"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},".DsTextField-passwordIcon":{cursor:"pointer"},".MuiFormHelperText-root":{fontWeight:400,fontSize:"11px",marginLeft:"8px",marginRight:"8px",marginTop:"8px",lineHeight:"12px",color:e.palette.greyDark,"&.Mui-error":{color:e.palette.redError}},".MuiInputBase-root.Mui-disabled":{backgroundColor:e.palette.greyXLight},"textarea.MuiOutlinedInput-input":{paddingBottom:"1px !important"},".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark},"&.TextField-mui":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"12px 8px !important",height:"20px",color:e.palette.greyXDark,"&::placeholder":{color:`${e.palette.greyDark} !important`,opacity:"1 !important",fontWeight:400,lineHeight:"18px",fontSize:"14px"},"&.Mui-disabled":{backgroundColor:e.palette.greyXLight,color:e.palette.greyDark,WebkitTextFillColor:e.palette.greyDark}}},".MuiOutlinedInput-root":{padding:"0px !important","& fieldset":{borderWidth:"1px !important"},".MuiSvgIcon-root":{marginLeft:"-22px"}}}});var e}),[x]),[w,k]=r(!1),[S,M]=r(y.type??"text"),O=o((()=>t.createElement(dt,{className:"DsTextField-passwordIcon",icon:w?de:fe,color:"blueClickable",onClick:()=>k(!w)})),[w]);i((()=>{M(w?"text":y.type??"text")}),[w]);const T=o((()=>[f?"TextField-ds":"TextField-mui","success"===y.color&&"Mui-success",n&&"Mui-filled",y.className].filter(Boolean).join(" ")),[n,y.color]),D=o((()=>Boolean(a&&a?.length>0||m&&String(n).length>m)),[a,m,n]);return t.createElement(C,{variant:"outlined",name:e,ref:v,label:c,value:n,sx:{width:p},placeholder:f,focused:b,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!f||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{s?.(e)},onBlur:e=>{l?.(e)},error:D,disabled:u,InputProps:"password"===y.type?{endAdornment:O}:{endAdornment:d},...y,className:T,type:S,helperText:t.createElement("div",{style:{display:"table",width:"100%",marginRight:"4px"}},(a||y.helperText)&&t.createElement("div",{style:{display:m?"table-cell":"",float:"left"}},a||y.helperText),m&&t.createElement("div",{style:{display:"table-cell",float:"right"}},String(n).length,"/",m," caract."))})}));ft.displayName="TextField";const mt={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},ht=({value:e,label:n="",options:r,color:i,error:a,placeholder:l="",helperText:s,width:c="100%",disabled:u,popupIcon:p=De,onChange:d,getRenderValue:f,...m})=>{const b=h(),y=o((()=>g(C)(lt(b))),[b]),[v,E]=t.useState(m.open??!1),O=o((()=>["DSSingleSelect",l?"Select-ds":"Select-mui",e&&"Mui-filled",a&&"Mui-error"].filter(Boolean).join(" ")),[e,a,l]);return t.createElement(x,{sx:{width:c}},t.createElement(y,{fullWidth:!0,color:i,className:O,disabled:u,sx:{".MuiOutlinedInput-input":{marginTop:e?"0px":"2px"}}},t.createElement(w,{error:!!a,disabled:u},n),t.createElement(k,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":l?{content:`"${l}"`,opacity:l?"1 !important":"0 !important"}:{}},label:n,value:e,notched:!!l||void 0,onChange:e=>d?.(e.target.value),IconComponent:({className:e})=>t.createElement(dt,{className:u?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?Te:p,onClick:()=>{u||E(!v)},size:"md",sx:{":hover":{cursor:u?"auto":"pointer"},marginTop:"success"===i?"2px":"0px",transform:e.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:mt,renderValue:e=>f(e),...m,open:v,onClose:e=>{u||(m.onClose&&m.onClose(e),E(!1))},onOpen:e=>{u||(m.onOpen&&m.onOpen(e),E(!0))}},r?.map(((o,n)=>t.createElement(S,{sx:{"&:hover":{backgroundColor:b.palette.blueHoverEquivalence},"&.Mui-selected":{backgroundColor:b.palette.greyXLight+" !important"},fontSize:14,fontWeight:e===o?500:400,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:e===o?"blueHoverEquivalence":"white"},key:n,value:o,onMouseEnter:e=>e.target.style.backgroundColor=b.palette.blueHoverEquivalence,onMouseLeave:t=>{e!==o&&(t.target.style.backgroundColor=b.palette.white)}},f?f(o):o.label)))),(a||s)&&t.createElement(M,{component:"span",className:a?"Mui-error":""},a||s)))},gt=({variant:e,label:n,prefixIcon:i,suffixIcon:l,suffixTooltip:s,suffixAction:c,tooltip:u,maxWidth:p="100%",...d})=>{const f=h(),m=o((()=>{return g(O)({"&.MuiChip-root":{color:(e=f).palette.greyXDark,borderRadius:"4px",fontWeight:e.palette.fontWeightRegular,fontSize:"14px",paddingLeft:"8px",paddingRight:"8px","& .MuiChip-deleteIcon":{color:e.palette.blueClickable,cursor:"default",width:"auto",height:"auto"},"&.Mui-disabled":{".MuiChip-deleteIcon .MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"},color:e.palette.greyDark+" !important",backgroundColor:e.palette.greyXLight+" !important",border:"1px solid",fontWeight:e.palette.fontWeightRegular,borderColor:e.palette.greyLightDefaultBorder+" !important",opacity:1},".MuiChip-deleteIcon":{width:"12px",height:"12px",margin:0,marginLeft:"8px",marginRight:"2px"},".MuiChip-label":{padding:0,lineHeight:"18px"},".MuiChip-avatar":{marginLeft:"-1px",marginRight:"5px",color:"initial"}},"&.MuiChip-filled":{border:"none",fontWeight:400,color:e.palette.greyXDark},"&.MuiChip-outlined":{border:"1px solid",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-status":{border:"1px solid !important",fontWeight:e.typography.fontWeightRegular},"&.MuiChip-statusFilled":{border:"none !important",color:e.palette.greyXDark+" !important",fontWeight:e.typography.fontWeightRegular+" !important"},"&.MuiChip-sizeSmall":{height:"24px",paddingY:"3px"},"&.MuiChip-sizeMedium":{height:"33px",paddingY:"8px"},"&.MuiChip-colorDefault":{backgroundColor:e.palette.greyXLight,border:"none",fontWeight:e.typography.fontWeightRegular+" !important",color:e.palette.greyXDark},"&.MuiChip-colorSecondary":{borderColor:e.palette.greyLightDefaultBorder+" !important",fontWeight:e.typography.fontWeightRegular+" !important",backgroundColor:e.palette.white},"&.MuiChip-colorPrimary":{backgroundColor:e.palette.blueClickable+" !important",color:e.palette.white+" !important",fontWeight:e.typography.fontWeightBold,"& .MuiChip-deleteIcon":{color:e.palette.white+" !important"}},"&.MuiChip-colorSuccess":{border:"1px solid",borderColor:e.palette.greenSuccess+" !important",color:e.palette.greenSuccess,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.greenSuccess+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorWarning":{border:"1px solid",borderColor:e.palette.orangeWarning+" !important",color:e.palette.orangeWarning,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.orangeWarning+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorInfo":{border:"1px solid",borderColor:e.palette.blueInfo+" !important",color:e.palette.blueInfo,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.blueInfo+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}},"&.MuiChip-colorError":{border:"1px solid",borderColor:e.palette.redError+" !important",color:e.palette.redError,fontWeight:e.typography.fontWeightBold,"& .MuiChip-avatar":{color:e.palette.redError+" !important"},"& .MuiChip-deleteIcon":{color:e.palette.blueInfo+" !important"}}});var e}),[f]),[b,y]=r(!1),[v,E]=r(!1),C=a(null);let w=d.color&&f.palette[d.color]?"object"==typeof f.palette[d.color]?f.palette[d.color].main:f.palette[d.color]:d.color??"white";return"filled"===e||"statusFilled"===e?w=`${w}14`:"status"===e&&(w="white"),t.createElement(T,{title:u,placement:"right-start",open:b},t.createElement(x,{maxWidth:"fit-content",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},t.createElement(T,{title:s,open:v,placement:"bottom-end",sx:{cursor:c?"pointer !important":"default"}},t.createElement(m,{label:n,ref:C,className:`MuiChip-${e}`,size:"small",sx:{maxWidth:p,backgroundColor:w,"&.MuiChip-colorSecondary":l&&c&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":l&&c&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":l&&c&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:i?t.createElement(dt,{icon:i,size:"sm"}):t.createElement(t.Fragment,null),deleteIcon:l?t.createElement(dt,{icon:l,onMouseEnter:()=>{s&&(E(!0),y(!1))},onMouseLeave:()=>{s&&(E(!1),y(!0))},sx:{cursor:c?"pointer !important":"default"},size:"sm"}):t.createElement(t.Fragment,null),onDelete:c??(()=>null),...d}))))},bt={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px #2727271F",width:0}}},yt=({value:e,label:n,options:r,color:i,error:l,placeholder:s="",helperText:c,width:u="100%",getRenderValue:p,getKeyValue:d,onChange:f,disabled:m,...b})=>{const y=h(),v=o((()=>g(C)(lt(y))),[y]),[E,O]=t.useState(b.open??!1),T=()=>f?.([]),D=e=>{e.stopPropagation()},I=o((()=>["DsMultiSelect",s?"Select-ds":"Select-mui",e.length>0&&"Mui-filled",l&&"Mui-error"].filter(Boolean).join(" ")),[e,l,s]),P=a(null);return t.createElement(x,{sx:{width:u},ref:P},t.createElement(v,{fullWidth:!0,color:i,className:I,disabled:m,sx:{".MuiOutlinedInput-input":{marginTop:e?.length>0?"0px":"2px"}}},t.createElement(w,{disabled:m,error:!!l},n),t.createElement(k,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:n===s?"0 !important":"1 !important"}:{}},multiple:!0,label:n,notched:!!s||void 0,value:e,onChange:e=>f?.(e.target.value),renderValue:o=>t.createElement(x,{sx:{display:"flex"}},t.createElement(x,{sx:{display:"flex",flexWrap:"wrap",gap:.5}},o.map((o=>t.createElement(gt,{key:d(o),variant:m?"outlined":"filled",color:"default",label:p(o),onMouseDown:D,disabled:m,suffixIcon:me,suffixAction:()=>{return!m&&(t=o,f?.(e?.filter((e=>e!==t))));var t},sx:{m:0,maxWidth:P?.current?parseFloat(String(P.current?.offsetWidth).replace("px",""))-60:u}})))),t.createElement(x,{flexGrow:1}),!m&&t.createElement(x,{className:"clear",onClick:T,onMouseDown:D},t.createElement(dt,{icon:Ie}))),IconComponent:({className:e})=>t.createElement(dt,{className:m?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?Te:De,size:"md",onClick:()=>{m||O(!E)},sx:{":hover":{cursor:m?"auto":"pointer"},transform:e.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:bt,...b,open:E,onClose:e=>{m||(b.onClose&&b.onClose(e),O(!1))},onOpen:e=>{m||(b.onOpen&&b.onOpen(e),O(!0))}},r?.map((o=>t.createElement(S,{key:d(o),value:o,sx:{"&:hover":{backgroundColor:y.palette.blueHoverEquivalence},"&.Mui-selected":{backgroundColor:y.palette.greyXLight+" !important"},fontSize:14,fontWeight:-1===e.indexOf(o)?400:500,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:-1===e.indexOf(o)?"white":"greyXLight"}},p(o))))),(l||c)&&t.createElement(M,{component:"span",className:l?"Mui-error":""},l||c)))},vt=({title:e,placement:o="right",children:n,placementMargin:r=4,...i})=>e?t.createElement(T,{title:t.createElement(t.Fragment,null,e),...i,sx:{display:"inline-flex",...i.sx},placement:o||void 0,slotProps:{popper:{sx:{[`&.${D.popper} .MuiTooltip-tooltip`]:{backgroundColor:"greyXDark",padding:"4px !important",fontSize:"12px !important",color:"white",fontWeight:400},[`&.${D.popper}[data-popper-placement*="bottom"] .${D.tooltip}`]:{marginTop:r+"px"},[`&.${D.popper}[data-popper-placement*="top"] .${D.tooltip}`]:{marginBottom:r+"px"},[`&.${D.popper}[data-popper-placement*="right"] .${D.tooltip}`]:{marginLeft:r+"px"},[`&.${D.popper}[data-popper-placement*="left"] .${D.tooltip}`]:{marginRight:r+"px"}}}}},t.createElement(x,{component:"span"},n)):t.createElement(t.Fragment,null,n),xt=({name:e,value:n,error:r,helperText:i,label:a,infoBubbleContent:l,infoBubblePosition:s="right",onChange:c,disabled:u,...p})=>{const d=h(),f=o((()=>{return g(C)({"&.MuiFormControl-root":{"&.DsCheckbox":{"&.Mui-disabled":{".MuiFormControlLabel-root":{cursor:"auto !important"}},".MuiCheckbox-root":{"::before":{zIndex:1,content:'" "',display:"block",position:"absolute",borderRadius:"2px",width:"14px",height:"14px",backgroundColor:"white"},width:"24px",height:"24px",marginRight:"4px",marginBottom:"0px",borderRadius:"4px",".MuiSvgIcon-root":{zIndex:1,width:"18px",height:"18px",path:{width:"14px",height:"14px"}},"&.Mui-checked":{".MuiSvgIcon-root":{color:(e=d).palette.blueClickable}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.blueClickable,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.white}},"&:hover .MuiSvgIcon-root":{color:e.palette.blueHoverEquivalence+" !important"}},"&.Mui-disabled":{"::before":{backgroundColor:e.palette.greyXLight},".MuiSvgIcon-root":{color:e.palette.greyLightDefaultBorder+" !important",backgroundColor:"transparent !important",outlineOffset:"-2px"},"&.Mui-checked":{".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important"}},"&.MuiCheckbox-indeterminate":{"::before":{backgroundColor:e.palette.greyMediumInactive,borderRadius:"1.5px"},".MuiSvgIcon-root":{color:e.palette.white+" !important",border:"2px solid",path:{color:e.palette.greyXLight}}}},"&:hover":{backgroundColor:e.palette.blueHoverEquivalence+" !important",".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".DsCheckbox-label":{fontSize:"14px",marginLeft:"-2px",color:e.palette.greyXDark,fontWeight:400,"&.Mui-disabled":{color:e.palette.greyDark}},".MuiTouchRipple-root":{background:"white",height:"12px",width:"12px",top:"6px",zIndex:0,left:"6px",borderRadius:"0px"}},".MuiBox-root .MuiBox-root svg":{top:"1px",position:"relative"}},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",fontWeight:"400",fontSize:"11px",color:e.palette.greyDark}});var e}),[d]),m=o((()=>{const e=["DsCheckbox"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]),b=o((()=>{const e=["DsCheckbox-label"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]);return t.createElement(f,{className:m},t.createElement(I,{disabled:u,control:t.createElement(x,null,t.createElement(P,{inputProps:{name:e},disabled:u,sx:{marginTop:"-2px"},checked:n,color:"primary",onChange:t=>{c?.(e,t.target.checked,!0)},...p})),label:t.createElement(x,{display:"flex",alignItems:"center"},t.createElement(ot,{component:"span",variant:"body1",className:b},a),l&&t.createElement(vt,{title:l,placement:s,sx:{ml:"4px"}},t.createElement(dt,{icon:he,size:"sm",color:"blueInfo"})))}),(r||i)&&t.createElement(M,{component:"span",className:r?"Mui-error":""},r||i))},Et=({options:e,label:n,disabled:i,error:a,helperText:l,onChange:s})=>{const c=h(),u=o((()=>{return g(C)({"&.MuiFormControl-root":{".MuiFormLabel-root":{color:(e=c).palette.greyXDark,marginLeft:"-6px",fontWeight:"500",fontSize:"13px",lineHeight:"16px",paddingBottom:"4px"},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",color:e.palette.greyDark,fontWeight:"400",fontSize:"11px",paddingTop:"4px"}},"&.Mui-disabled":{".MuiFormLabel-root":{color:e.palette.greyDark+" !important"}},"&.Mui-error":{".MuiFormLabel-root":{color:e.palette.redError+" !important"},".MuiFormHelperText-root":{color:e.palette.redError+" !important"}}});var e}),[c]),[p,d]=r({}),f=o((()=>{const e=[];return i&&e.push("Mui-disabled"),a&&e.push("Mui-error"),e.join(" ")}),[i]);return t.createElement(u,{error:!!a,className:f},t.createElement($,{component:"legend"},n),t.createElement(R,null,e?.slice(0,7).map((e=>t.createElement(xt,{key:e.name,name:e.name,value:p[e.name]||!1,onChange:(e,t)=>((e,t)=>{const o={...p,[e]:t};d(o),s?.(o)})(e,t),disabled:i,label:e.label,infoBubbleContent:e.infoBubbleContent,infoBubblePosition:e.infoBubblePosition})))),(a||l)&&t.createElement(M,{component:"span",className:a?"Mui-error":""},a||l))},Ct=({options:e,value:n,label:r,onChange:i,helperText:a,disabled:l=!1,error:s="",...c})=>{const u=h(),p=o((()=>{return g(C)({"&.MuiFormControl-root":{".MuiRadio-root":{".MuiSvgIcon-root":{flexShrink:0,zIndex:1,height:"16px",width:"16px",color:(e=u).palette.greyMediumInactive},height:"16px",width:"16px",marginRight:"4px","&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".MuiBox-root .itemIcon svg":{top:"1px",position:"relative"},".MuiFormControlLabel-root":{margin:"0px 0px 4px 0px",color:e.palette.greyXDark,alignItems:"self-start"},".MuiFormControlLabel-label":{fontWeight:"400",fontSize:"14px",position:"relative"},".MuiButtonBase-root":{color:e.palette.greyLightDefaultBorder,"&.Mui-checked":{color:e.palette.blueClickable,"& .MuiSvgIcon-root":{color:e.palette.blueClickable}}},".MuiFormLabel-root":{color:e.palette.greyXDark,fontWeight:"500",fontSize:"13px",paddingBottom:"4px",paddingLeft:"2px"},".MuiFormHelperText-root":{margin:"0px",paddingTop:"4px",color:e.palette.greyDark,fontSize:"11px"},"&.Mui-disabled":{".MuiFormLabel-root":{color:e.palette.greyDark},".MuiTypography-root":{color:e.palette.greyDark},".MuiFormControlLabel-label":{color:e.palette.greyDark},".MuiButtonBase-root":{backgroundColor:e.palette.greyXLight,transform:"scale(0.7)","& span":{transform:"scale(1.4)"},"& .MuiSvgIcon-root":{color:e.palette.greyLightDefaultBorder},"&.Mui-checked .MuiSvgIcon-root":{color:e.palette.greyMediumInactive}}},"&.Mui-error":{".MuiFormLabel-root":{color:e.palette.redError},".MuiFormHelperText-root":{color:e.palette.redError+" !important"}},".MuiTouchRipple-root":{background:"white",height:"16px",width:"16px",zIndex:0,left:"3px"}}});var e}),[u]),d=o((()=>[l&&"Mui-disabled",s&&"Mui-error"].filter(Boolean).join(" ")),[l,s]);return t.createElement(p,{disabled:l,error:!!s,className:d},t.createElement($,null,r),t.createElement(N,{value:n,onChange:e=>{i(e.target.value)},...c},e?.slice(0,7).map((({value:e,label:o,infoBubbleContent:n,infoBubblePosition:r},i)=>t.createElement(I,{key:i,control:t.createElement(L,{size:"small"}),value:e,label:t.createElement(x,null,t.createElement(ot,{component:"span",variant:"body1"},o),n&&t.createElement(vt,{title:n,placement:r,sx:{ml:"6px"}},t.createElement(dt,{icon:he,size:"sm",color:"blueInfo"})))})))),(s||a)&&t.createElement(M,{component:"span",className:s?"Mui-error":""},s||a)||t.createElement(x,{height:18}))},wt=({icon:e,variant:n="default",positionGroup:r,tooltipText:i="",tooltipPosition:a="top",size:l="medium",color:s,onClick:c,...u})=>{const p=h(),d=o((()=>{return g(A)({"&.MuiIconButton-root":{borderRadius:"4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px"},":hover":{"& .MuiSvgIcon-root":{color:(e=p).palette.blueHoverClickable}},"&.Mui-disabled":{"& .MuiSvgIcon-root":{color:e.palette.greyMediumInactive}},"&.IconButtonVariant-default":{width:"44px !important",height:"44px !important",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder,"&:hover":{borderColor:e.palette.blueHoverClickable,backgroundColor:e.palette.white}},"&.IconButtonVariant-table":{width:"42px !important",height:"42px !important",border:"0px","&:hover":{backgroundColor:e.palette.blueHoverOpacity12}},"&.IconButtonPositionGroup-left":{borderRadius:"4px 0px 0px 4px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"4px 0px 0px 4px"}},"&.IconButtonPositionGroup-middle":{borderRadius:"0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px"}},"&.IconButtonPositionGroup-right":{borderRadius:"0px 4px 4px 0px","& .MuiTouchRipple-root .MuiTouchRipple-child":{borderRadius:"0px 4px 4px 0px"}},"&.IconButtonSize-small":{width:"24px !important",height:"24px !important"}}});var e}),[p]);return t.createElement(vt,{title:i,placement:a},t.createElement(d,{className:`IconButtonVariant-${n} IconButtonSize-${l} ${r?`IconButtonPositionGroup-${r}`:""} `,onClick:c,...u},t.createElement(dt,{color:s,icon:e,size:"small"===l?"sm":"md"})))},kt=({title:e,summaryHeight:n,expanded:a=!1,onClick:l,children:s,...c})=>{const u=h(),p=o((()=>{return g(j)({"&.MuiAccordion-root":{border:"1px solid",borderColor:(e=u).palette.greyLightDefaultBorder,boxShadow:"none",".MuiAccordionSummary-root":{minHeight:"auto !important",padding:"8px 16px",color:e.palette.greyXDark,fontWeight:e.typography.fontWeightMedium,fontSize:"18px",lineHeight:"21px"},".MuiAccordionDetails-root":{padding:"16px",borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},".MuiAccordionSummary-expandIconWrapper .MuiBox-root":{width:"auto",padding:"13px"}}});var e}),[u]),[d,f]=r(a);return i((()=>{a!==d&&f(a)}),[a]),t.createElement(p,{expanded:d,onClick:e=>{c.disabled||(f(!d),l&&l(e))},...c},t.createElement(z,{expandIcon:t.createElement(wt,{variant:"table",size:"medium",icon:De}),sx:{fontWeight:500,fontSize:18,lineHeight:21,height:n||60}},e),t.createElement(F,{sx:{backgroundColor:u.palette.greyXLight,borderTop:"1px solid",borderColor:u.palette.greyLightDefaultBorder}},s))},St=({PageName:e,links:n,...r})=>{const i=h(),a=o((()=>g(B)({"&.MuiBreadcrumbs-root":{margin:0,padding:"4px 0"},"& .MuiBreadcrumbs-separator":{margin:0,padding:"0 4px"},"& .MuiTypography-body1":{color:i.palette.greyDark}})),[i]);return t.createElement(a,{"aria-label":"breadcrumb",...r},n?.map(((e,o)=>t.createElement("div",{key:o},t.createElement(st,{key:o,href:e.link,variant:"link1"},e.title)))),t.createElement(ot,{variant:"body1"},e))},Mt=({totalString:e,totalPerPageString:n,hideTotal:a=!1,limitsPerPage:l=[5,10,20],page:s=1,totalRows:c,limit:u,setLimit:p,setPage:d})=>{const f=h(),m=o((()=>{return g(W)({".MuiPaginationItem-root":{fontFamily:"Roboto",height:"44px !important",width:"44px !important",color:(e=f).palette.blueClickable+" !important",backgroundColor:"white !important",fontWeight:"700 !important",outline:"none !important",fontSize:"14px !important",borderColor:e.palette.greyLightDefaultBorder+" !important","&.Mui-selected":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderRadius:"4px !important",outline:"none !important","&:hover":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"},"&:focus":{color:"white !important",backgroundColor:e.palette.blueClickable+" !important",borderColor:e.palette.greyDark+" !important",borderRadius:"4px !important",outline:"none !important"}},"&:hover":{color:e.palette.blueClickable+" !important",backgroundColor:"white !important",borderColor:e.palette.blueHoverClickable+" !important",borderRadius:"4px !important",outline:"none !important"},"&.Mui-disabled":{color:e.palette.greyMediumInactive+" !important",backgroundColor:"white !important",borderRadius:"4px !important",outline:"none !important",opacity:"1 !important"},"&.MuiPaginationItem-ellipsis":{color:e.palette.greyDark+" !important",display:"flex",alignItems:"center",justifyContent:"center"}}});var e}),[f]),[b,y]=r(s),[v,E]=r(u??l[0]),C=((e,t)=>Math.ceil(e/t))(c,v),w=e=>{y(e),d?.(e)};return i((()=>{s!==b&&y(s)}),[s]),i((()=>{u&&u!==v&&E(u)}),[u]),t.createElement(x,{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",sx:{paddingTop:"16px",paddingBottom:"24px"}},t.createElement(x,{display:"flex",alignItems:"center"},!a&&t.createElement(t.Fragment,null,t.createElement(ot,{variant:"body1Medium"},c," ",e),t.createElement(_,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),t.createElement(ht,{className:"dac-select-label",labelId:"select-label",value:v,inputProps:{MenuProps:{disableScrollLock:!0}},onChange:e=>{w(1),(e=>{E(e),p?.(e)})(e)},options:l,getRenderValue:e=>e.toString(),popupIcon:ge,width:60}),t.createElement(ot,{variant:"body1",pl:"8px"},n),t.createElement(_,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})),t.createElement(x,{display:"flex",pr:"4px"},t.createElement(m,{variant:"outlined",shape:"rounded",count:C,page:b,onChange:(e,t)=>w(t)})))},Ot=({title:e,text:o,variant:n="infos",actionButton:r,...i})=>{const a={warning:{color:"orangeWarning",icon:be},error:{color:"redError",icon:ye},success:{color:"greenSuccess",icon:ve},infos:{color:"blueInfo",icon:xe}};return t.createElement(x,{border:"1px solid",borderColor:a[n].color,p:"8px 16px",borderRadius:"4px",display:"flex",alignItems:o?"flex-start":"center",justifyContent:o?"flex-start":"center",...i},t.createElement(dt,{icon:a[n].icon,color:a[n].color,mr:"16px",mt:o?"1px":0}),t.createElement(x,{display:"flex",flexDirection:"column",paddingRight:4},t.createElement(ot,{align:"left",variant:"body1Bold",color:a[n].color,display:"inline-block"},e),o&&t.createElement(ot,{align:"left",variant:"body1Regular",color:"greyDark",display:"inline-block",paddingTop:"4px"},o)),t.createElement(x,{flexGrow:2}),r&&t.createElement(x,{alignSelf:"center",whiteSpace:"nowrap"},r))},Tt=({value:e,label:n,placeholder:r="",options:i,disabled:a,getOptionLabel:l,onChange:s,width:c="100%",color:u,helperText:p,error:d,searchIcon:f=!1,...m})=>{const b=h(),y=o((()=>g(C)(at(b))),[b]),v=o((()=>null!==e&&i&&i?.length>0&&i.some((t=>m?.isOptionEqualToValue&&m.isOptionEqualToValue(t,e)||JSON.stringify(t)===JSON.stringify(e)))),[e,i,m?.isOptionEqualToValue]),w=o((()=>["DsAutoComplete",v&&"Mui-filled","success"===u&&"Mui-success",a&&"Mui-disabled"].filter(Boolean).join(" ")),[e,a,u]),k=o((()=>[r?"labelClassic Mui-Input-filled":"labelCustom","success"===u&&"Mui-success",v&&"Mui-Input-filled Mui-InputLabel-shrink"].filter(Boolean).join(" ")),[u,r,e]),O=o((()=>"success"===u?Te:f?Pe:De),[u,f]);return t.createElement(x,{sx:{width:c}},t.createElement(y,{fullWidth:!0,color:u,className:w},t.createElement(H,{...m,value:v&&e||null,onChange:(e,t)=>s?.(t),"aria-placeholder":r,disabled:a,options:i,sx:{...m.sx,".MuiOutlinedInput-input":{marginTop:e?"0px":"2px"},"& .MuiAutocomplete-popupIndicator":{transform:"none"}},getOptionLabel:l,slotProps:{paper:{sx:{fontSize:"14px",marginTop:"4px",boxShadow:"0px 2px 10px 0px #2727271F"}}},renderOption:(e,o)=>t.createElement(S,{...e,className:"MenuItem DsAutoComplete",sx:{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word",'&.MenuItem[aria-selected="true"]':{backgroundColor:b.palette.greyXLight,fontWeight:500},"&:hover":{backgroundColor:b.palette.blueHoverEquivalence}}},l(o)),clearIcon:t.createElement(t.Fragment,null,!a&&e&&t.createElement(x,{className:"clear",onClick:()=>s?.(null),onMouseDown:e=>{e.stopPropagation()}},t.createElement(dt,{icon:Ie}))),popupIcon:t.createElement(dt,{className:a?"icon-disabled SelectIcon":"SelectIcon",icon:O,size:"md"}),renderInput:e=>t.createElement(E,{...e,label:n,error:!!d,fullWidth:!0,variant:"outlined",type:"text",inputProps:{...e.inputProps},InputLabelProps:{shrink:!!r||void 0,disabled:!1,className:k},placeholder:r})}),(d||p)&&t.createElement(M,{component:"span",className:d?"Mui-error":""},d||p)))};function Dt(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},It.apply(null,arguments)}function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),o}var Rt,Nt,Lt,At,jt,zt,Ft,Bt,Wt,_t,Ht,Vt,Ut,qt,Yt,Xt,Kt={exports:{}},Gt={exports:{}},Jt={},Zt={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groupeactual/ui-kit",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@mui/x-date-pickers": "7.15.0",
|
|
34
34
|
"@mui/x-date-pickers-pro": "7.15.0",
|
|
35
35
|
"styled-components": "^6.1.13",
|
|
36
|
-
"@groupeactual/design-tokens": "1.8.
|
|
36
|
+
"@groupeactual/design-tokens": "1.8.3"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "rollup -c",
|