@groupeactual/ui-kit 1.6.4 → 1.6.5
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("react/jsx-runtime"),n=require("react-dom");function r(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 a=r(e),i=r(n);const s=o=>e.createElement(t.Typography,{color:"greyXDark",...o});s.displayName="Text";var l=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 c=e=>{const t={};Object.keys(l).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]=l[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}},u=e=>{const t=l,o=[];return Object.keys(l).forEach((n=>{n.startsWith(e+"FontFamilies")&&o.push(t[n])})),o},d=e=>({"&.MuiFormControl-root":{zIndex:1,".MuiInputBase-root":{backgroundColor:e.palette.white,height:"44px",padding:"0 !important",".SelectIcon":{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,"& .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% - 1px)"},"&.Mui-disabled .MuiAutocomplete-endAdornment":{top:"calc(50% - 1px) !important"},"&.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}}),p=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":{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:"2px",marginRight:"-8px"},"& .MuiSelect-select .notranslate::after":{fontWeight:400,lineHeight:"18px",fontSize:"14px",color:"#545352 !important"},"&.Select-mui":{"&.Mui-filled":{".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 22px 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:"8px 31px 10px 14px","&.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)"}}),f=o=>{const n=t.useTheme(),r=e.useMemo((()=>t.styled(t.Link)((e=>({"&.MuiLink-root":{color:e.palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}}))(n))),[n]);return e.createElement(r,{...o})};f.displayName="Link";const m=({variant:o,children:n,...r})=>{const a=t.useTheme(),i=e.useMemo((()=>t.styled(t.Button)((e=>({"@font-face":{fontFamily:"Roboto"},"&.MuiButton-root":{borderRadius:"4px",padding:"7.5px 16px",fontWeight:e.typography.fontWeightBold,lineHeight:"18px",textTransform:"unset",fontSize:"14px",height:"44px",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important"},"&.MuiButton-primary":{color:e.palette.white+" !important",backgroundColor:e.palette.blueClickable+" !important",border:"1px solid !important",borderColor:e.palette.blueClickable+" !important","&.Mui-disabled":{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":{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":{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"}}))(a))),[a]);return e.createElement(i,{variant:o,...r},n)};m.displayName="Button";var h={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM112 256H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},g={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},b=g,y={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},v={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},x={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},w=x,S={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},C={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},M=C,k={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},E={prefix:"fas",iconName:"circle-x",icon:[512,512,[],"e12e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM186.3 136.5L256 218.8l69.7-82.3c8.6-10.1 23.7-11.4 33.8-2.8s11.4 23.7 2.8 33.8L287.4 256l74.9 88.5c8.6 10.1 7.3 25.3-2.8 33.8s-25.3 7.3-33.8-2.8L256 293.2l-69.7 82.3c-8.6 10.1-23.7 11.4-33.8 2.8s-11.4-23.7-2.8-33.8L224.6 256l-74.9-88.5c-8.6-10.1-7.3-25.3 2.8-33.8s25.3-7.3 33.8 2.8z"]},O={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},T={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},D={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},P={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},R={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},I=R;const N={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},$=e.forwardRef((({icon:o,fontSize:n},r)=>{const{icon:[a,i,,,s]}=o;return e.createElement(t.SvgIcon,{ref:r,viewBox:`0 0 ${a} ${i}`,sx:{fontSize:n??"14px"}},"string"==typeof s?e.createElement("path",{d:s}):s.map(((t,o)=>e.createElement("path",{style:{opacity:0===o?.4:1},d:t,key:o}))))})),j=({variant:o="none",icon:n,color:r="#136cac",size:a=16,sx:i,...s})=>{const l=t.useTheme(),c=e.useMemo((()=>l.palette[r]?l.palette[r]:r&&0!==r.length?r:"#136cac"),[l.palette,r]),u=e.useMemo((()=>"square"===o?16:a in N?N[a]:a>=0?a:16),[o,a]);return e.createElement(t.Box,{component:"span",sx:"square"===o?{...i,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"}:{...i,color:c,width:u,height:a,display:"inline-flex",alignItems:"center",justifyContent:"center"},...s},e.createElement($,{icon:n,fontSize:u}))};j.displayName="IconProvider";const L=({name:o,value:n,error:r,onBlur:a,onChange:i,label:s,disabled:l,width:c="100%",endAdornment:u,placeholder:d="",maxLength:p,...f})=>{const m=t.useTheme(),h=e.useMemo((()=>t.styled(t.TextField)((e=>({".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-disabled .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}},".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"}}}}))(m))),[m]),[g,b]=e.useState(!1),[y,x]=e.useState(f.type??"text"),w=e.useMemo((()=>e.createElement(j,{className:"DsTextField-passwordIcon",icon:g?v:S,color:"blueClickable",onClick:()=>b(!g)})),[g]);e.useEffect((()=>{x(g?"text":f.type??"text")}),[g]);const C=e.useMemo((()=>[d?"TextField-ds":"TextField-mui","success"===f.color&&"Mui-success",n&&"Mui-filled",f.className].filter(Boolean).join(" ")),[n]),M=e.useMemo((()=>Boolean(r&&r?.length>0||p&&String(n).length>p)),[r,p,n]);return e.createElement(h,{variant:"outlined",name:o,label:s,value:n,sx:{width:c},placeholder:d,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!d||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{i?.(e)},onBlur:e=>{a?.(e)},error:M,disabled:l,InputProps:"password"===f.type?{endAdornment:w}:{endAdornment:u},...f,className:C,type:y,helperText:e.createElement("div",{style:{display:"table",width:"100%",marginRight:"4px"}},(r||f.helperText)&&e.createElement("div",{style:{display:p?"table-cell":"",float:"left"}},r||f.helperText),p&&e.createElement("div",{style:{display:"table-cell",float:"right"}},String(n).length,"/",p," caract."))})};L.displayName="TextField";const F={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},A=({value:o,label:n="",options:r,color:a,error:i,placeholder:s="",helperText:l,width:c="100%",disabled:u,onChange:d,getRenderValue:f,...m})=>{const h=t.useTheme(),g=e.useMemo((()=>t.styled(t.FormControl)(p(h))),[h]),b=e.useMemo((()=>["DSSingleSelect",s?"Select-ds":"Select-mui",o&&"Mui-filled",i&&"Mui-error"].filter(Boolean).join(" ")),[o]);return e.createElement(t.Box,{sx:{width:c}},e.createElement(g,{fullWidth:!0,color:a,className:b,disabled:u,sx:{".MuiOutlinedInput-input":{marginTop:o?"0px":"2px"}}},e.createElement(t.InputLabel,{error:!!i,disabled:u},n),e.createElement(t.Select,{sx:{color:a+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:s?"1 !important":"0 !important"}:{}},label:n,value:o,notched:!!s||void 0,onChange:e=>d?.(e.target.value),IconComponent:({className:t})=>e.createElement(j,{className:u?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===a?P:T,size:"success"===a?"md":"sm",sx:{marginTop:"success"===a?"2px":"0px",transform:t.toString().includes("iconOpen")&&"success"!==a?"rotate(180deg)":"none"}}),MenuProps:F,renderValue:e=>f(e),...m},r?.map(((n,r)=>e.createElement(t.MenuItem,{sx:{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=h.palette.blueHoverEquivalence,onMouseLeave:e=>{o!==n&&(e.target.style.backgroundColor=h.palette.white)}},f?f(n):n.label)))),(i||l)&&e.createElement(t.FormHelperText,{component:"span",className:i?"Mui-error":""},i||l)))};A.displayName="Select";const V=({variant:o,label:n,prefixIcon:r,suffixIcon:a,suffixTooltip:i,suffixAction:s,tooltip:l,maxWidth:c="100%",...u})=>{const d=t.useTheme(),p=e.useMemo((()=>t.styled(t.Chip)((e=>({"&.MuiChip-root":{color:e.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"}}}))(d))),[d]),[f,m]=e.useState(!1),[h,g]=e.useState(!1),b=e.useRef(null);let y=u.color&&d.palette[u.color]?"object"==typeof d.palette[u.color]?d.palette[u.color].main:d.palette[u.color]:u.color??"white";return"filled"===o||"statusFilled"===o?y=`${y}14`:"status"===o&&(y="white"),e.createElement(t.Tooltip,{title:l,placement:"right-start",open:f},e.createElement(t.Box,{maxWidth:"fit-content",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},e.createElement(t.Tooltip,{title:i,open:h,placement:"bottom-end",sx:{cursor:s?"pointer !important":"default"}},e.createElement(p,{label:n,ref:b,className:`MuiChip-${o}`,size:"small",sx:{maxWidth:c,backgroundColor:y,"&.MuiChip-colorSecondary":a&&s&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":a&&s&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":a&&s&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:r?e.createElement(j,{icon:r,size:"sm"}):e.createElement(e.Fragment,null),deleteIcon:a?e.createElement(j,{icon:a,onMouseEnter:()=>{i&&(g(!0),m(!1))},onMouseLeave:()=>{i&&(g(!1),m(!0))},sx:{cursor:s?"pointer !important":"default"},size:"sm"}):e.createElement(e.Fragment,null),onDelete:s??(()=>null),...u}))))};V.displayName="Chip";const z={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},B=({value:o,label:n,options:r,color:a,error:i,placeholder:s="",helperText:l,width:c="100%",getRenderValue:u,getKeyValue:d,onChange:f,disabled:m,...h})=>{const g=t.useTheme(),b=e.useMemo((()=>t.styled(t.FormControl)(p(g))),[g]),y=()=>f?.([]),v=e=>{e.stopPropagation()},x=e.useMemo((()=>["DsMultiSelect",s?"Select-ds":"Select-mui",o.length>0&&"Mui-filled",i&&"Mui-error"].filter(Boolean).join(" ")),[o]),w=e.useRef(null);return e.createElement(t.Box,{sx:{width:c},ref:w},e.createElement(b,{fullWidth:!0,color:a,className:x,disabled:m,sx:{".MuiOutlinedInput-input":{marginTop:o?.length>0?"0px":"2px"}}},e.createElement(t.InputLabel,{disabled:m,error:!!i},n),e.createElement(t.Select,{sx:{color:a+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:n===s?"0 !important":"1 !important"}:{}},multiple:!0,label:n,notched:!!s||void 0,value:o,onChange:e=>f?.(e.target.value),renderValue:n=>e.createElement(t.Box,{sx:{display:"flex"}},e.createElement(t.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5}},n.map((t=>e.createElement(V,{key:d(t),variant:m?"outlined":"filled",color:"default",label:u(t),onMouseDown:v,disabled:m,suffixIcon:E,suffixAction:()=>{return!m&&(e=t,f?.(o?.filter((t=>t!==e))));var e},sx:{m:0,maxWidth:w?.current?parseFloat(String(w.current?.offsetWidth).replace("px",""))-60:c}})))),e.createElement(t.Box,{flexGrow:1}),!m&&e.createElement(t.Box,{className:"clear",onClick:y,onMouseDown:v},e.createElement(j,{icon:D}))),IconComponent:({className:t})=>e.createElement(j,{className:m?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===a?P:T,size:"success"===a?"md":"sm",sx:{transform:t.toString().includes("iconOpen")&&"success"!==a?"rotate(180deg)":"none"}}),MenuProps:z,...h},r?.map((n=>e.createElement(t.MenuItem,{key:d(n),value:n,sx:{fontSize:14,fontWeight:-1===o.indexOf(n)?400:500,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:-1===o.indexOf(n)?"white":"greyXLight","&:hover":{backgroundColor:"blueHoverEquivalence"}}},u(n))))),(i||l)&&e.createElement(t.FormHelperText,{component:"span",className:i?"Mui-error":""},i||l)))};B.displayName="MultiSelect";const W=({title:o,placement:n="right",children:r,...a})=>{if(!o)return e.createElement(e.Fragment,null,r);const i=t.styled((({classes:o,...n})=>e.createElement(t.Tooltip,{...n,classes:o})))((()=>({[`& .${t.tooltipClasses.tooltip}`]:{backgroundColor:"#272727",padding:"4px !important",fontFamily:"Roboto, sans-serif",fontSize:"13px",color:"white",fontWeight:400},[`& .${t.tooltipClasses.tooltipPlacementTop}`]:{marginBottom:"4px !important"},[`& .${t.tooltipClasses.tooltipPlacementRight}`]:{marginLeft:"4px !important"},[`& .${t.tooltipClasses.tooltipPlacementBottom}`]:{marginTop:"4px !important"},[`& .${t.tooltipClasses.tooltipPlacementLeft}`]:{marginRight:"4px !important"}})));return e.createElement(i,{placement:n||void 0,title:e.createElement(e.Fragment,null,o),...a},e.createElement(t.Box,{component:"span"},r))};W.displayName="Tooltip";const H=({name:o,value:n,error:r,helperText:a,label:i,infoBubbleContent:s,infoBubblePosition:l="right",onChange:c,disabled:u,...d})=>{const p=t.useTheme(),f=e.useMemo((()=>t.styled(t.FormControl)((e=>({"&.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:"18.67px",height:"18.67px",path:{width:"14px",height:"14px"}},"&.Mui-checked":{".MuiSvgIcon-root":{color:e.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"}}},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",fontWeight:"400",fontSize:"11px",color:e.palette.greyDark}}))(p))),[p]),m=e.useMemo((()=>{const e=["DsCheckbox"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]),h=e.useMemo((()=>{const e=["DsCheckbox-label"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]);return e.createElement(f,{className:m},e.createElement(t.FormControlLabel,{disabled:u,control:e.createElement(t.Box,null,e.createElement(t.Checkbox,{inputProps:{name:o},disabled:u,sx:{marginTop:"-2px"},checked:n,color:"primary",onChange:e=>{c?.(o,e.target.checked,!0)},...d})),label:e.createElement(t.Box,{display:"flex"},e.createElement(t.Typography,{component:"span",className:h},i),s&&e.createElement(t.Box,{py:0,pl:.5,display:"flex"},e.createElement(W,{title:s,placement:l},e.createElement(t.Box,{height:12,width:12},e.createElement(j,{icon:M,size:"sm",color:"#1d91c3"})))))}),(r||a)&&e.createElement(t.FormHelperText,{component:"span",className:r?"Mui-error":""},r||a))};H.displayName="Checkbox";const _=({options:o,label:n,disabled:r,error:a,helperText:i})=>{const s=t.useTheme(),l=e.useMemo((()=>t.styled(t.FormControl)((e=>({"&.MuiFormControl-root":{".MuiFormLabel-root":{color:e.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"}},".MuiBox-root .MuiBox-root svg":{position:"relative",bottom:"-2px"}}))(s))),[s]),[c,u]=e.useState({}),d=e.useMemo((()=>{const e=[];return r&&e.push("Mui-disabled"),a&&e.push("Mui-error"),e.join(" ")}),[r]);return e.createElement(l,{error:!!a,className:d},e.createElement(t.FormLabel,{component:"legend"},n),e.createElement(t.FormGroup,null,o?.slice(0,7).map((t=>e.createElement(H,{key:t.name,name:t.name,value:c[t.name]||!1,onChange:(e,t)=>((e,t)=>{u({...c,[e]:t})})(e,t),disabled:r,label:t.label,infoBubbleContent:t.infoBubbleContent,infoBubblePosition:t.infoBubblePosition})))),(a||i)&&e.createElement(t.FormHelperText,{component:"span",className:a?"Mui-error":""},a||i))};_.displayName="CheckboxGroup";const q=({options:o,value:n,label:r,onChange:a,helperText:i,disabled:s=!1,error:l="",...c})=>{const u=t.useTheme(),d=e.useMemo((()=>t.styled(t.FormControl)((e=>({"&.MuiFormControl-root":{".MuiSvgIcon-root":{marginTop:"-2px"},".MuiRadio-root":{".MuiSvgIcon-root":{flexShrink:0,zIndex:1,height:"16px",width:"16px",marginTop:"-2px",color:e.palette.greyMediumInactive},height:"16px",width:"16px",marginRight:"4px","&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".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},".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:"12px",width:"12px",top:"3px",zIndex:0,left:"3px"}}}))(u))),[u]),p=e.useMemo((()=>[s&&"Mui-disabled",l&&"Mui-error"].filter(Boolean).join(" ")),[s,l]);return e.createElement(d,{disabled:s,error:!!l,className:p},e.createElement(t.FormLabel,null,r),e.createElement(t.RadioGroup,{value:n,onChange:e=>{a(e.target.value)},...c},o?.slice(0,7).map((({value:o,label:n,infoBubbleContent:r,infoBubblePosition:a},i)=>e.createElement(t.FormControlLabel,{key:i,control:e.createElement(t.Radio,{size:"small"}),value:o,label:e.createElement(t.Box,{display:"flex"},n,r&&e.createElement(t.Box,{py:0,pl:.5,width:16,height:21,display:"flex",alignItems:"center"},e.createElement(W,{title:r,placement:a},e.createElement(j,{icon:M,size:"sm",color:"#1d91c3"}))))})))),(l||i)&&e.createElement(t.FormHelperText,{component:"span",className:l?"Mui-error":""},l||i)||e.createElement(t.Box,{height:18}))};q.displayName="RadioGroup";var U={prefix:"far",iconName:"arrow-up-long",icon:[384,512,["long-arrow-up"],"f176","M209 7c-9.4-9.4-24.6-9.4-33.9 0L39 143c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l95-95V488c0 13.3 10.7 24 24 24s24-10.7 24-24V81.9l95 95c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L209 7z"]},Y={prefix:"far",iconName:"angle-right",icon:[320,512,[8250],"f105","M273 239c9.4 9.4 9.4 24.6 0 33.9L113 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143L79 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L273 239z"]},K={prefix:"far",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"]},X={prefix:"far",iconName:"arrow-down-long",icon:[384,512,["long-arrow-down"],"f175","M175 505c9.4 9.4 24.6 9.4 33.9 0L345 369c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95L216 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 406.1L73 335c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L175 505z"]},G={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"]},Z={prefix:"far",iconName:"trash",icon:[448,512,[],"f1f8","M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"]},J={prefix:"far",iconName:"upload",icon:[512,512,[],"f093","M280 360c0 13.3-10.7 24-24 24s-24-10.7-24-24V81.9l-95 95c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 7c9.4-9.4 24.6-9.4 33.9 0L409 143c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-95-95V360zm32-8V304H448c35.3 0 64 28.7 64 64v80c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V368c0-35.3 28.7-64 64-64H200v48H64c-8.8 0-16 7.2-16 16v80c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16H312zm72 56a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Q={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},ee={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},te={prefix:"far",iconName:"angle-left",icon:[320,512,[8249],"f104","M47 239c-9.4 9.4-9.4 24.6 0 33.9L207 433c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97.9 256 241 113c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L47 239z"]},oe={prefix:"far",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"]};const ne=({title:o,summaryHeight:n,expanded:r=!1,onClick:a,children:i,...s})=>{const l=t.useTheme(),c=e.useMemo((()=>t.styled(t.Accordion)((e=>({"&.MuiAccordion-root":{border:"1px solid",borderColor:e.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"}}}))(l))),[l]),[u,d]=e.useState(r);return e.useEffect((()=>{r!==u&&d(r)}),[r]),e.createElement(c,{expanded:u,onClick:e=>{s.disabled||(d(!u),a&&a(e))},...s},e.createElement(t.AccordionSummary,{expandIcon:e.createElement(j,{icon:Q,size:"md"}),sx:{fontWeight:500,fontSize:18,lineHeight:21,height:n||60}},o),e.createElement(t.AccordionDetails,{sx:{backgroundColor:l.palette.greyXLight,borderTop:"1px solid",borderColor:l.palette.greyLightDefaultBorder}},i))};ne.displayName="Accordion";const re=({PageName:o,links:n,...r})=>{const a=t.useTheme(),i=e.useMemo((()=>t.styled(t.Breadcrumbs)((e=>({"&.MuiBreadcrumbs-root":{margin:0,padding:"4px 0"},"& .MuiBreadcrumbs-separator":{margin:0,padding:"0 4px"},"& .MuiTypography-body1":{color:e.palette.greyDark}}))(a))),[a]);return e.createElement(i,{"aria-label":"breadcrumb",...r},n.map(((t,o)=>e.createElement("div",{key:o},e.createElement(f,{key:o,href:t.link,variant:"link1"},t.title)))),e.createElement(s,{variant:"body1"},o))};re.displayName="Breadcrumbs";const ae=({totalString:o,totalPerPageString:n,limitsPerPage:r=[5,10,20],setLimit:a,setPage:i,page:l=1,totalRows:c,limit:u})=>{const d=t.useTheme(),p=e.useMemo((()=>t.styled(t.Pagination)((e=>({".MuiPaginationItem-root":{height:"44px !important",width:"44px !important",color:e.palette.blueClickable+" !important",backgroundColor:"white !important",fontWeight:"700 !important",outline:"none !important",fontSize:"14px !important",borderColor:e.palette.greyLightDefaultBorder+" !important","&:hover":{color:e.palette.blueClickable+" !important",backgroundColor:"white !important",borderColor:e.palette.blueHoverClickable+" !important",borderRadius:"4px !important",outline:"none !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"}},"&.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"}}}))(d))),[d]),[f,m]=e.useState(l),[h,g]=e.useState(u??r[0]),b=((e,t)=>Math.ceil(e/t))(c,h),y=e=>{m(e),i?.(e)};return e.useEffect((()=>{l!==f&&m(l)}),[l]),e.useEffect((()=>{u&&u!==h&&g(u)}),[u]),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"},e.createElement(s,{variant:"body1Medium"},c," ",o),e.createElement(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}}),e.createElement(A,{label:"",className:"dac-select-label",labelId:"select-label",value:h,onChange:e=>{y(1),(e=>{g(e),a?.(e)})(e)},options:r,getRenderValue:e=>e.toString(),width:75,sx:{backgroundColor:"white","&.MuiInputBase-root":{height:"32px !important"}}}),e.createElement(s,{variant:"body1",pl:"8px"},n),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(p,{variant:"outlined",shape:"rounded",count:b,page:f,onChange:(e,t)=>y(t)})))};ae.displayName="Pagination";const ie=({title:o,text:n,variant:r="infos",actionButton:a,...i})=>{const l={warning:{color:"orangeWarning",icon:g},error:{color:"redError",icon:R},success:{color:"greenSuccess",icon:x},infos:{color:"blueInfo",icon:C}};return e.createElement(t.Box,{border:"1px solid",borderColor:l[r].color,p:"8px 16px",borderRadius:"4px",display:"flex",alignItems:n?"flex-start":"center",justifyContent:n?"flex-start":"center",...i},e.createElement(j,{icon:l[r].icon,color:l[r].color,mr:"16px",mt:n?"1px":0}),e.createElement(t.Box,{display:"flex",flexDirection:"column",paddingRight:4},e.createElement(s,{align:"left",variant:"body1Bold",color:l[r].color,display:"inline-block"},o),n&&e.createElement(s,{align:"left",variant:"body1Regular",color:"greyDark",display:"inline-block",paddingTop:"4px"},n)),e.createElement(t.Box,{flexGrow:2}),a&&e.createElement(t.Box,{alignSelf:"center",whiteSpace:"nowrap"},a))};ie.displayName="EmbeddedNotification";const se=({value:o,label:n,placeholder:r="",options:a,disabled:i,getOptionLabel:s,onChange:l,width:c="100%",color:u,helperText:p,error:f,...m})=>{const h=t.useTheme(),g=e.useMemo((()=>t.styled(t.FormControl)(d(h))),[h]),b=e.useMemo((()=>null!==o&&a&&a?.length>0&&a.some((e=>m?.isOptionEqualToValue&&m.isOptionEqualToValue(e,o)||JSON.stringify(e)===JSON.stringify(o)))),[o,a,m?.isOptionEqualToValue]),y=e.useMemo((()=>["DsAutoComplete",b&&"Mui-filled","success"===u&&"Mui-success",i&&"Mui-disabled"].filter(Boolean).join(" ")),[o,i,u]),v=e.useMemo((()=>[r?"labelClassic Mui-Input-filled":"labelCustom","success"===u&&"Mui-success",b&&"Mui-Input-filled Mui-InputLabel-shrink"].filter(Boolean).join(" ")),[u,r,o]);return e.createElement(t.Box,{sx:{width:c}},e.createElement(g,{fullWidth:!0,color:u,className:y},e.createElement(t.Autocomplete,{...m,value:o,onChange:(e,t)=>l?.(t),"aria-placeholder":r,disabled:i,options:a,sx:{".MuiOutlinedInput-input":{marginTop:o?"0px":"2px"}},getOptionLabel:s,slotProps:{paper:{sx:{boxShadow:"0px 2px 10px 0px"}}},renderOption:(o,n)=>e.createElement(t.MenuItem,{...o,className:"MenuItem DsAutoComplete",sx:{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word",'&.MenuItem[aria-selected="true"]':{backgroundColor:h.palette.greyXLight,fontWeight:500},"&:hover":{backgroundColor:h.palette.blueHoverEquivalence}}},s(n)),clearIcon:e.createElement(e.Fragment,null,!i&&o&&e.createElement(t.Box,{className:"clear",onClick:()=>l?.(null),onMouseDown:e=>{e.stopPropagation()}},e.createElement(j,{icon:D}))),popupIcon:e.createElement(j,{className:i?"icon-disabled SelectIcon":"SelectIcon",icon:"success"===u?P:T,size:"success"===u?"md":"sm"}),renderInput:o=>e.createElement(t.TextField,{...o,label:n,error:!!f,fullWidth:!0,variant:"outlined",inputProps:{...o.inputProps,value:"undefined"!==o.inputProps?.value&&"null"!==o.inputProps?.value&&""!==o.inputProps?.value&&b?o.inputProps?.value:""},InputLabelProps:{shrink:!!r||void 0,disabled:!1,className:v},placeholder:r})}),(f||p)&&e.createElement(t.FormHelperText,{component:"span",className:f?"Mui-error":""},f||p)))};function le(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 ce(){return ce=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},ce.apply(null,arguments)}se.displayName="AutocompleteSingle";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function de(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 pe,fe={exports:{}},me={exports:{}},he={};var ge,be,ye,ve,xe,we,Se,Ce,Me,ke,Ee,Oe,Te,De,Pe={};
|
|
1
|
+
"use strict";var e=require("react"),t=require("@mui/material"),o=require("react/jsx-runtime"),n=require("react-dom");function r(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 a=r(e),i=r(n);const s=o=>e.createElement(t.Typography,{color:"greyXDark",...o});s.displayName="Text";var l=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 c=e=>{const t={};Object.keys(l).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]=l[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}},u=e=>{const t=l,o=[];return Object.keys(l).forEach((n=>{n.startsWith(e+"FontFamilies")&&o.push(t[n])})),o},d=e=>({"&.MuiFormControl-root":{zIndex:1,".MuiInputBase-root":{backgroundColor:e.palette.white,height:"44px",padding:"0 !important",".SelectIcon":{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,"& .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% - 1px)"},"&.Mui-disabled .MuiAutocomplete-endAdornment":{top:"calc(50% - 1px) !important"},"&.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}}),p=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":{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:"2px",marginRight:"-8px"},"& .MuiSelect-select .notranslate::after":{fontWeight:400,lineHeight:"18px",fontSize:"14px",color:"#545352 !important"},"&.Select-mui":{"&.Mui-filled":{".MuiOutlinedInput-input":{fontSize:"14px",lineHeight:"18px",fontWeight:400,padding:"13px 22px 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:"8px 31px 10px 14px","&.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)"}}),f=o=>{const n=t.useTheme(),r=e.useMemo((()=>t.styled(t.Link)((e=>({"&.MuiLink-root":{color:e.palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}}))(n))),[n]);return e.createElement(r,{...o})};f.displayName="Link";const m=({variant:o,children:n,...r})=>{const a=t.useTheme(),i=e.useMemo((()=>t.styled(t.Button)((e=>({"@font-face":{fontFamily:"Roboto"},"&.MuiButton-root":{borderRadius:"4px",padding:"7.5px 16px",fontWeight:e.typography.fontWeightBold,lineHeight:"18px",textTransform:"unset",fontSize:"14px",height:"44px",border:"1px solid",borderColor:e.palette.greyLightDefaultBorder+" !important"},"&.MuiButton-primary":{color:e.palette.white+" !important",backgroundColor:e.palette.blueClickable+" !important",border:"1px solid !important",borderColor:e.palette.blueClickable+" !important","&.Mui-disabled":{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":{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":{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"}}))(a))),[a]);return e.createElement(i,{variant:o,...r},n)};m.displayName="Button";var h={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM112 256H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H272c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},g={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},b=g,y={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},v={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},x={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},w=x,S={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},C={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},M=C,k={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},E={prefix:"fas",iconName:"circle-x",icon:[512,512,[],"e12e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM186.3 136.5L256 218.8l69.7-82.3c8.6-10.1 23.7-11.4 33.8-2.8s11.4 23.7 2.8 33.8L287.4 256l74.9 88.5c8.6 10.1 7.3 25.3-2.8 33.8s-25.3 7.3-33.8-2.8L256 293.2l-69.7 82.3c-8.6 10.1-23.7 11.4-33.8 2.8s-11.4-23.7-2.8-33.8L224.6 256l-74.9-88.5c-8.6-10.1-7.3-25.3 2.8-33.8s25.3-7.3 33.8 2.8z"]},O={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},T={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},D={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},P={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},R={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},I=R;const N={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},$=e.forwardRef((({icon:o,fontSize:n},r)=>{const{icon:[a,i,,,s]}=o;return e.createElement(t.SvgIcon,{ref:r,viewBox:`0 0 ${a} ${i}`,sx:{fontSize:n??"14px"}},"string"==typeof s?e.createElement("path",{d:s}):s.map(((t,o)=>e.createElement("path",{style:{opacity:0===o?.4:1},d:t,key:o}))))})),j=({variant:o="none",icon:n,color:r="#136cac",size:a=16,sx:i,...s})=>{const l=t.useTheme(),c=e.useMemo((()=>l.palette[r]?l.palette[r]:r&&0!==r.length?r:"#136cac"),[l.palette,r]),u=e.useMemo((()=>"square"===o?16:a in N?N[a]:a>=0?a:16),[o,a]);return e.createElement(t.Box,{component:"span",sx:"square"===o?{...i,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"}:{...i,color:c,width:u,height:a,display:"inline-flex",alignItems:"center",justifyContent:"center"},...s},e.createElement($,{icon:n,fontSize:u}))};j.displayName="IconProvider";const L=({name:o,value:n,error:r,onBlur:a,onChange:i,label:s,disabled:l,width:c="100%",endAdornment:u,placeholder:d="",maxLength:p,...f})=>{const m=t.useTheme(),h=e.useMemo((()=>t.styled(t.TextField)((e=>({".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-disabled .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}},".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"}}}}))(m))),[m]),[g,b]=e.useState(!1),[y,x]=e.useState(f.type??"text"),w=e.useMemo((()=>e.createElement(j,{className:"DsTextField-passwordIcon",icon:g?v:S,color:"blueClickable",onClick:()=>b(!g)})),[g]);e.useEffect((()=>{x(g?"text":f.type??"text")}),[g]);const C=e.useMemo((()=>[d?"TextField-ds":"TextField-mui","success"===f.color&&"Mui-success",n&&"Mui-filled",f.className].filter(Boolean).join(" ")),[n]),M=e.useMemo((()=>Boolean(r&&r?.length>0||p&&String(n).length>p)),[r,p,n]);return e.createElement(h,{variant:"outlined",name:o,label:s,value:n,sx:{width:c},placeholder:d,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!d||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{i?.(e)},onBlur:e=>{a?.(e)},error:M,disabled:l,InputProps:"password"===f.type?{endAdornment:w}:{endAdornment:u},...f,className:C,type:y,helperText:e.createElement("div",{style:{display:"table",width:"100%",marginRight:"4px"}},(r||f.helperText)&&e.createElement("div",{style:{display:p?"table-cell":"",float:"left"}},r||f.helperText),p&&e.createElement("div",{style:{display:"table-cell",float:"right"}},String(n).length,"/",p," caract."))})};L.displayName="TextField";const F={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},A=({value:o,label:n="",options:r,color:a,error:i,placeholder:s="",helperText:l,width:c="100%",disabled:u,onChange:d,getRenderValue:f,...m})=>{const h=t.useTheme(),g=e.useMemo((()=>t.styled(t.FormControl)(p(h))),[h]),b=e.useMemo((()=>["DSSingleSelect",s?"Select-ds":"Select-mui",o&&"Mui-filled",i&&"Mui-error"].filter(Boolean).join(" ")),[o]);return e.createElement(t.Box,{sx:{width:c}},e.createElement(g,{fullWidth:!0,color:a,className:b,disabled:u,sx:{".MuiOutlinedInput-input":{marginTop:o?"0px":"2px"}}},e.createElement(t.InputLabel,{error:!!i,disabled:u},n),e.createElement(t.Select,{sx:{color:a+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:s?"1 !important":"0 !important"}:{}},label:n,value:o,notched:!!s||void 0,onChange:e=>d?.(e.target.value),IconComponent:({className:t})=>e.createElement(j,{className:u?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===a?P:T,size:"success"===a?"md":"sm",sx:{marginTop:"success"===a?"2px":"0px",transform:t.toString().includes("iconOpen")&&"success"!==a?"rotate(180deg)":"none"}}),MenuProps:F,renderValue:e=>f(e),...m},r?.map(((n,r)=>e.createElement(t.MenuItem,{sx:{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=h.palette.blueHoverEquivalence,onMouseLeave:e=>{o!==n&&(e.target.style.backgroundColor=h.palette.white)}},f?f(n):n.label)))),(i||l)&&e.createElement(t.FormHelperText,{component:"span",className:i?"Mui-error":""},i||l)))};A.displayName="Select";const V=({variant:o,label:n,prefixIcon:r,suffixIcon:a,suffixTooltip:i,suffixAction:s,tooltip:l,maxWidth:c="100%",...u})=>{const d=t.useTheme(),p=e.useMemo((()=>t.styled(t.Chip)((e=>({"&.MuiChip-root":{color:e.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"}}}))(d))),[d]),[f,m]=e.useState(!1),[h,g]=e.useState(!1),b=e.useRef(null);let y=u.color&&d.palette[u.color]?"object"==typeof d.palette[u.color]?d.palette[u.color].main:d.palette[u.color]:u.color??"white";return"filled"===o||"statusFilled"===o?y=`${y}14`:"status"===o&&(y="white"),e.createElement(t.Tooltip,{title:l,placement:"right-start",open:f},e.createElement(t.Box,{maxWidth:"fit-content",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},e.createElement(t.Tooltip,{title:i,open:h,placement:"bottom-end",sx:{cursor:s?"pointer !important":"default"}},e.createElement(p,{label:n,ref:b,className:`MuiChip-${o}`,size:"small",sx:{maxWidth:c,backgroundColor:y,"&.MuiChip-colorSecondary":a&&s&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":a&&s&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":a&&s&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:r?e.createElement(j,{icon:r,size:"sm"}):e.createElement(e.Fragment,null),deleteIcon:a?e.createElement(j,{icon:a,onMouseEnter:()=>{i&&(g(!0),m(!1))},onMouseLeave:()=>{i&&(g(!1),m(!0))},sx:{cursor:s?"pointer !important":"default"},size:"sm"}):e.createElement(e.Fragment,null),onDelete:s??(()=>null),...u}))))};V.displayName="Chip";const z={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},B=({value:o,label:n,options:r,color:a,error:i,placeholder:s="",helperText:l,width:c="100%",getRenderValue:u,getKeyValue:d,onChange:f,disabled:m,...h})=>{const g=t.useTheme(),b=e.useMemo((()=>t.styled(t.FormControl)(p(g))),[g]),y=()=>f?.([]),v=e=>{e.stopPropagation()},x=e.useMemo((()=>["DsMultiSelect",s?"Select-ds":"Select-mui",o.length>0&&"Mui-filled",i&&"Mui-error"].filter(Boolean).join(" ")),[o]),w=e.useRef(null);return e.createElement(t.Box,{sx:{width:c},ref:w},e.createElement(b,{fullWidth:!0,color:a,className:x,disabled:m,sx:{".MuiOutlinedInput-input":{marginTop:o?.length>0?"0px":"2px"}}},e.createElement(t.InputLabel,{disabled:m,error:!!i},n),e.createElement(t.Select,{sx:{color:a+"! important","& .MuiSelect-select .notranslate::after":s?{content:`"${s}"`,opacity:n===s?"0 !important":"1 !important"}:{}},multiple:!0,label:n,notched:!!s||void 0,value:o,onChange:e=>f?.(e.target.value),renderValue:n=>e.createElement(t.Box,{sx:{display:"flex"}},e.createElement(t.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5}},n.map((t=>e.createElement(V,{key:d(t),variant:m?"outlined":"filled",color:"default",label:u(t),onMouseDown:v,disabled:m,suffixIcon:E,suffixAction:()=>{return!m&&(e=t,f?.(o?.filter((t=>t!==e))));var e},sx:{m:0,maxWidth:w?.current?parseFloat(String(w.current?.offsetWidth).replace("px",""))-60:c}})))),e.createElement(t.Box,{flexGrow:1}),!m&&e.createElement(t.Box,{className:"clear",onClick:y,onMouseDown:v},e.createElement(j,{icon:D}))),IconComponent:({className:t})=>e.createElement(j,{className:m?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===a?P:T,size:"success"===a?"md":"sm",sx:{transform:t.toString().includes("iconOpen")&&"success"!==a?"rotate(180deg)":"none"}}),MenuProps:z,...h},r?.map((n=>e.createElement(t.MenuItem,{key:d(n),value:n,sx:{fontSize:14,fontWeight:-1===o.indexOf(n)?400:500,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:-1===o.indexOf(n)?"white":"greyXLight","&:hover":{backgroundColor:"blueHoverEquivalence"}}},u(n))))),(i||l)&&e.createElement(t.FormHelperText,{component:"span",className:i?"Mui-error":""},i||l)))};B.displayName="MultiSelect";const W=({title:o,placement:n="right",children:r,...a})=>{if(!o)return e.createElement(e.Fragment,null,r);const i=t.styled((({classes:o,...n})=>e.createElement(t.Tooltip,{...n,classes:o})))((()=>({[`& .${t.tooltipClasses.tooltip}`]:{backgroundColor:"#272727",padding:"4px !important",fontFamily:"Roboto, sans-serif",fontSize:"13px",color:"white",fontWeight:400},[`& .${t.tooltipClasses.tooltipPlacementTop}`]:{marginBottom:"4px !important"},[`& .${t.tooltipClasses.tooltipPlacementRight}`]:{marginLeft:"4px !important"},[`& .${t.tooltipClasses.tooltipPlacementBottom}`]:{marginTop:"4px !important"},[`& .${t.tooltipClasses.tooltipPlacementLeft}`]:{marginRight:"4px !important"}})));return e.createElement(i,{placement:n||void 0,title:e.createElement(e.Fragment,null,o),...a},e.createElement(t.Box,{component:"span"},r))};W.displayName="Tooltip";const H=({name:o,value:n,error:r,helperText:a,label:i,infoBubbleContent:s,infoBubblePosition:l="right",onChange:c,disabled:u,...d})=>{const p=t.useTheme(),f=e.useMemo((()=>t.styled(t.FormControl)((e=>({"&.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:"18.67px",height:"18.67px",path:{width:"14px",height:"14px"}},"&.Mui-checked":{".MuiSvgIcon-root":{color:e.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"}}},".MuiFormHelperText-root":{marginTop:"3px",marginLeft:"-6px",fontWeight:"400",fontSize:"11px",color:e.palette.greyDark}}))(p))),[p]),m=e.useMemo((()=>{const e=["DsCheckbox"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]),h=e.useMemo((()=>{const e=["DsCheckbox-label"];return u&&e.push("Mui-disabled"),e.join(" ")}),[u]);return e.createElement(f,{className:m},e.createElement(t.FormControlLabel,{disabled:u,control:e.createElement(t.Box,null,e.createElement(t.Checkbox,{inputProps:{name:o},disabled:u,sx:{marginTop:"-2px"},checked:n,color:"primary",onChange:e=>{c?.(o,e.target.checked,!0)},...d})),label:e.createElement(t.Box,{display:"flex"},e.createElement(t.Typography,{component:"span",className:h},i),s&&e.createElement(t.Box,{py:0,pl:.5,display:"flex"},e.createElement(W,{title:s,placement:l},e.createElement(t.Box,{height:12,width:12},e.createElement(j,{icon:M,size:"sm",color:"#1d91c3"})))))}),(r||a)&&e.createElement(t.FormHelperText,{component:"span",className:r?"Mui-error":""},r||a))};H.displayName="Checkbox";const _=({options:o,label:n,disabled:r,error:a,helperText:i})=>{const s=t.useTheme(),l=e.useMemo((()=>t.styled(t.FormControl)((e=>({"&.MuiFormControl-root":{".MuiFormLabel-root":{color:e.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"}},".MuiBox-root .MuiBox-root svg":{position:"relative",bottom:"-2px"}}))(s))),[s]),[c,u]=e.useState({}),d=e.useMemo((()=>{const e=[];return r&&e.push("Mui-disabled"),a&&e.push("Mui-error"),e.join(" ")}),[r]);return e.createElement(l,{error:!!a,className:d},e.createElement(t.FormLabel,{component:"legend"},n),e.createElement(t.FormGroup,null,o?.slice(0,7).map((t=>e.createElement(H,{key:t.name,name:t.name,value:c[t.name]||!1,onChange:(e,t)=>((e,t)=>{u({...c,[e]:t})})(e,t),disabled:r,label:t.label,infoBubbleContent:t.infoBubbleContent,infoBubblePosition:t.infoBubblePosition})))),(a||i)&&e.createElement(t.FormHelperText,{component:"span",className:a?"Mui-error":""},a||i))};_.displayName="CheckboxGroup";const q=({options:o,value:n,label:r,onChange:a,helperText:i,disabled:s=!1,error:l="",...c})=>{const u=t.useTheme(),d=e.useMemo((()=>t.styled(t.FormControl)((e=>({"&.MuiFormControl-root":{".MuiSvgIcon-root":{marginTop:"-2px"},".MuiRadio-root":{".MuiSvgIcon-root":{flexShrink:0,zIndex:1,height:"16px",width:"16px",marginTop:"-2px",color:e.palette.greyMediumInactive},height:"16px",width:"16px",marginRight:"4px","&:hover":{".MuiSvgIcon-root":{color:e.palette.blueHoverClickable+" !important"}}},".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},".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:"12px",width:"12px",top:"3px",zIndex:0,left:"3px"}}}))(u))),[u]),p=e.useMemo((()=>[s&&"Mui-disabled",l&&"Mui-error"].filter(Boolean).join(" ")),[s,l]);return e.createElement(d,{disabled:s,error:!!l,className:p},e.createElement(t.FormLabel,null,r),e.createElement(t.RadioGroup,{value:n,onChange:e=>{a(e.target.value)},...c},o?.slice(0,7).map((({value:o,label:n,infoBubbleContent:r,infoBubblePosition:a},i)=>e.createElement(t.FormControlLabel,{key:i,control:e.createElement(t.Radio,{size:"small"}),value:o,label:e.createElement(t.Box,{display:"flex"},n,r&&e.createElement(t.Box,{py:0,pl:.5,width:16,height:21,display:"flex",alignItems:"center"},e.createElement(W,{title:r,placement:a},e.createElement(j,{icon:M,size:"sm",color:"#1d91c3"}))))})))),(l||i)&&e.createElement(t.FormHelperText,{component:"span",className:l?"Mui-error":""},l||i)||e.createElement(t.Box,{height:18}))};q.displayName="RadioGroup";var U={prefix:"far",iconName:"arrow-up-long",icon:[384,512,["long-arrow-up"],"f176","M209 7c-9.4-9.4-24.6-9.4-33.9 0L39 143c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l95-95V488c0 13.3 10.7 24 24 24s24-10.7 24-24V81.9l95 95c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L209 7z"]},Y={prefix:"far",iconName:"angle-right",icon:[320,512,[8250],"f105","M273 239c9.4 9.4 9.4 24.6 0 33.9L113 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143L79 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L273 239z"]},K={prefix:"far",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"]},X={prefix:"far",iconName:"arrow-down-long",icon:[384,512,["long-arrow-down"],"f175","M175 505c9.4 9.4 24.6 9.4 33.9 0L345 369c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95L216 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 406.1L73 335c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L175 505z"]},G={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"]},Z={prefix:"far",iconName:"trash",icon:[448,512,[],"f1f8","M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"]},J={prefix:"far",iconName:"upload",icon:[512,512,[],"f093","M280 360c0 13.3-10.7 24-24 24s-24-10.7-24-24V81.9l-95 95c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 7c9.4-9.4 24.6-9.4 33.9 0L409 143c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-95-95V360zm32-8V304H448c35.3 0 64 28.7 64 64v80c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V368c0-35.3 28.7-64 64-64H200v48H64c-8.8 0-16 7.2-16 16v80c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16H312zm72 56a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Q={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},ee={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},te={prefix:"far",iconName:"angle-left",icon:[320,512,[8249],"f104","M47 239c-9.4 9.4-9.4 24.6 0 33.9L207 433c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97.9 256 241 113c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L47 239z"]},oe={prefix:"far",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"]};const ne=({title:o,summaryHeight:n,expanded:r=!1,onClick:a,children:i,...s})=>{const l=t.useTheme(),c=e.useMemo((()=>t.styled(t.Accordion)((e=>({"&.MuiAccordion-root":{border:"1px solid",borderColor:e.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"}}}))(l))),[l]),[u,d]=e.useState(r);return e.useEffect((()=>{r!==u&&d(r)}),[r]),e.createElement(c,{expanded:u,onClick:e=>{s.disabled||(d(!u),a&&a(e))},...s},e.createElement(t.AccordionSummary,{expandIcon:e.createElement(j,{icon:Q,size:"md"}),sx:{fontWeight:500,fontSize:18,lineHeight:21,height:n||60}},o),e.createElement(t.AccordionDetails,{sx:{backgroundColor:l.palette.greyXLight,borderTop:"1px solid",borderColor:l.palette.greyLightDefaultBorder}},i))};ne.displayName="Accordion";const re=({PageName:o,links:n,...r})=>{const a=t.useTheme(),i=e.useMemo((()=>t.styled(t.Breadcrumbs)((e=>({"&.MuiBreadcrumbs-root":{margin:0,padding:"4px 0"},"& .MuiBreadcrumbs-separator":{margin:0,padding:"0 4px"},"& .MuiTypography-body1":{color:e.palette.greyDark}}))(a))),[a]);return e.createElement(i,{"aria-label":"breadcrumb",...r},n.map(((t,o)=>e.createElement("div",{key:o},e.createElement(f,{key:o,href:t.link,variant:"link1"},t.title)))),e.createElement(s,{variant:"body1"},o))};re.displayName="Breadcrumbs";const ae=({totalString:o,totalPerPageString:n,limitsPerPage:r=[5,10,20],setLimit:a,setPage:i,page:l=1,totalRows:c,limit:u})=>{const d=t.useTheme(),p=e.useMemo((()=>t.styled(t.Pagination)((e=>({".MuiPaginationItem-root":{height:"44px !important",width:"44px !important",color:e.palette.blueClickable+" !important",backgroundColor:"white !important",fontWeight:"700 !important",outline:"none !important",fontSize:"14px !important",borderColor:e.palette.greyLightDefaultBorder+" !important","&:hover":{color:e.palette.blueClickable+" !important",backgroundColor:"white !important",borderColor:e.palette.blueHoverClickable+" !important",borderRadius:"4px !important",outline:"none !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"}},"&.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"}}}))(d))),[d]),[f,m]=e.useState(l),[h,g]=e.useState(u??r[0]),b=((e,t)=>Math.ceil(e/t))(c,h),y=e=>{m(e),i?.(e)};return e.useEffect((()=>{l!==f&&m(l)}),[l]),e.useEffect((()=>{u&&u!==h&&g(u)}),[u]),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"},e.createElement(s,{variant:"body1Medium"},c," ",o),e.createElement(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}}),e.createElement(A,{label:"",className:"dac-select-label",labelId:"select-label",value:h,onChange:e=>{y(1),(e=>{g(e),a?.(e)})(e)},options:r,getRenderValue:e=>e.toString(),width:75,sx:{backgroundColor:"white","&.MuiInputBase-root":{height:"32px !important"}}}),e.createElement(s,{variant:"body1",pl:"8px"},n),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(p,{variant:"outlined",shape:"rounded",count:b,page:f,onChange:(e,t)=>y(t)})))};ae.displayName="Pagination";const ie=({title:o,text:n,variant:r="infos",actionButton:a,...i})=>{const l={warning:{color:"orangeWarning",icon:g},error:{color:"redError",icon:R},success:{color:"greenSuccess",icon:x},infos:{color:"blueInfo",icon:C}};return e.createElement(t.Box,{border:"1px solid",borderColor:l[r].color,p:"8px 16px",borderRadius:"4px",display:"flex",alignItems:n?"flex-start":"center",justifyContent:n?"flex-start":"center",...i},e.createElement(j,{icon:l[r].icon,color:l[r].color,mr:"16px",mt:n?"1px":0}),e.createElement(t.Box,{display:"flex",flexDirection:"column",paddingRight:4},e.createElement(s,{align:"left",variant:"body1Bold",color:l[r].color,display:"inline-block"},o),n&&e.createElement(s,{align:"left",variant:"body1Regular",color:"greyDark",display:"inline-block",paddingTop:"4px"},n)),e.createElement(t.Box,{flexGrow:2}),a&&e.createElement(t.Box,{alignSelf:"center",whiteSpace:"nowrap"},a))};ie.displayName="EmbeddedNotification";const se=({value:o,label:n,placeholder:r="",options:a,disabled:i,getOptionLabel:s,onChange:l,width:c="100%",color:u,helperText:p,error:f,...m})=>{const h=t.useTheme(),g=e.useMemo((()=>t.styled(t.FormControl)(d(h))),[h]),b=e.useMemo((()=>null!==o&&a&&a?.length>0&&a.some((e=>m?.isOptionEqualToValue&&m.isOptionEqualToValue(e,o)||JSON.stringify(e)===JSON.stringify(o)))),[o,a,m?.isOptionEqualToValue]),y=e.useMemo((()=>["DsAutoComplete",b&&"Mui-filled","success"===u&&"Mui-success",i&&"Mui-disabled"].filter(Boolean).join(" ")),[o,i,u]),v=e.useMemo((()=>[r?"labelClassic Mui-Input-filled":"labelCustom","success"===u&&"Mui-success",b&&"Mui-Input-filled Mui-InputLabel-shrink"].filter(Boolean).join(" ")),[u,r,o]);return e.createElement(t.Box,{sx:{width:c}},e.createElement(g,{fullWidth:!0,color:u,className:y},e.createElement(t.Autocomplete,{...m,value:b&&o||null,onChange:(e,t)=>l?.(t),"aria-placeholder":r,disabled:i,options:a,sx:{".MuiOutlinedInput-input":{marginTop:o?"0px":"2px"}},getOptionLabel:s,slotProps:{paper:{sx:{boxShadow:"0px 2px 10px 0px"}}},renderOption:(o,n)=>e.createElement(t.MenuItem,{...o,className:"MenuItem DsAutoComplete",sx:{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word",'&.MenuItem[aria-selected="true"]':{backgroundColor:h.palette.greyXLight,fontWeight:500},"&:hover":{backgroundColor:h.palette.blueHoverEquivalence}}},s(n)),clearIcon:e.createElement(e.Fragment,null,!i&&o&&e.createElement(t.Box,{className:"clear",onClick:()=>l?.(null),onMouseDown:e=>{e.stopPropagation()}},e.createElement(j,{icon:D}))),popupIcon:e.createElement(j,{className:i?"icon-disabled SelectIcon":"SelectIcon",icon:"success"===u?P:T,size:"success"===u?"md":"sm"}),renderInput:o=>e.createElement(t.TextField,{...o,label:n,error:!!f,fullWidth:!0,variant:"outlined",InputLabelProps:{shrink:!!r||void 0,disabled:!1,className:v},placeholder:r})}),(f||p)&&e.createElement(t.FormHelperText,{component:"span",className:f?"Mui-error":""},f||p)))};function le(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 ce(){return ce=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},ce.apply(null,arguments)}se.displayName="AutocompleteSingle";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function de(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 pe,fe={exports:{}},me={exports:{}},he={};var ge,be,ye,ve,xe,we,Se,Ce,Me,ke,Ee,Oe,Te,De,Pe={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|