@groupeactual/ui-kit 1.6.0-beta.8 → 1.6.0-beta.9
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/Chip/Chip.tsx +12 -15
package/dist/cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("@mui/material"),o=require("react"),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(o),i=r(n);const s=o=>e.jsx(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"},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !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},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable+" !important"},".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"},".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"}}}},".Mui-error":{color:e.palette.redError,"& span":{color:`${e.palette.greyDark} !important`},"& fieldset":{borderColor:e.palette.redError}},".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:"0px",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:"0px",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:"0px",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=n=>{const r=t.useTheme(),a=o.useMemo((()=>t.styled(t.Link)((e=>({"&.MuiLink-root":{color:e.palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}}))(r))),[r]);return e.jsx(a,{...n})};f.displayName="Link";const m=({variant:n,children:r,...a})=>{const i=t.useTheme(),s=o.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"}}))(i))),[i]);return e.jsx(s,{variant:n,...a,children:r})};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,O={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"]},k={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"]},T={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"]},D={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"]},E={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"]},j=R;const I={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},N=o.forwardRef((({icon:o,fontSize:n},r)=>{const{icon:[a,i,,,s]}=o;return e.jsx(t.SvgIcon,{ref:r,viewBox:`0 0 ${a} ${i}`,sx:{fontSize:n??"14px"},children:"string"==typeof s?e.jsx("path",{d:s}):s.map(((t,o)=>e.jsx("path",{style:{opacity:0===o?.4:1},d:t},o)))})})),$=({variant:n="none",icon:r,color:a="#136cac",size:i=16,sx:s,...l})=>{const c=t.useTheme(),u=o.useMemo((()=>c.palette[a]?c.palette[a]:a&&0!==a.length?a:"#136cac"),[c.palette,a]),d=o.useMemo((()=>"square"===n?16:i in I?I[i]:i>=0?i:16),[n,i]);return e.jsx(t.Box,{component:"span",sx:"square"===n?{...s,color:u,backgroundColor:`${u}14`,borderRadius:"4px",borderColor:"1px solid "+u,overflow:"visible",padding:"10px",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center"}:{...s,color:u,width:d,height:i,display:"inline-flex",alignItems:"center",justifyContent:"center"},...l,children:e.jsx(N,{icon:r,fontSize:d})})};$.displayName="IconProvider";const L=({name:n,value:r,error:a,onBlur:i,onChange:s,label:l,disabled:c,width:u="100%",endAdornment:d,placeholder:p="",maxLength:f,...m})=>{const h=t.useTheme(),g=o.useMemo((()=>t.styled(t.TextField)((e=>({".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !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"}}}}))(h))),[h]),[b,y]=o.useState(!1),[x,w]=o.useState(m.type??"text"),C=o.useMemo((()=>e.jsx($,{className:"DsTextField-passwordIcon",icon:b?v:S,color:"blueClickable",onClick:()=>y(!b)})),[b]);o.useEffect((()=>{w(b?"text":m.type??"text")}),[b]);const M=o.useMemo((()=>[p?"TextField-ds":"TextField-mui","success"===m.color&&"Mui-success",r&&"Mui-filled",m.className].filter(Boolean).join(" ")),[r]),O=o.useMemo((()=>Boolean(a&&a?.length>0||f&&String(r).length>f)),[a,f,r]);return e.jsx(g,{variant:"outlined",name:n,label:l,value:r,sx:{width:u},placeholder:p,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!p||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{s?.(e)},onBlur:e=>{i?.(e)},error:O,disabled:c,InputProps:"password"===m.type?{endAdornment:C}:{endAdornment:d},...m,className:M,type:x,helperText:e.jsxs("div",{style:{display:"table",width:"100%",marginRight:"4px"},children:[(a||m.helperText)&&e.jsx("div",{style:{display:f?"table-cell":"",float:"left"},children:a||m.helperText}),f&&e.jsxs("div",{style:{display:"table-cell",float:"right"},children:[String(r).length,"/",f," caract."]})]})})};L.displayName="TextField";const F={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},A=({value:n,label:r="",options:a,color:i,error:s,placeholder:l="",helperText:c,width:u="100%",disabled:d,onChange:f,getRenderValue:m,...h})=>{const g=t.useTheme(),b=o.useMemo((()=>t.styled(t.FormControl)(p(g))),[g]),y=o.useMemo((()=>["DSSingleSelect",l?"Select-ds":"Select-mui",n&&"Mui-filled",s&&"Mui-error"].filter(Boolean).join(" ")),[n]);return e.jsx(t.Box,{sx:{width:u},children:e.jsxs(b,{fullWidth:!0,color:i,className:y,disabled:d,sx:{".MuiOutlinedInput-input":{marginTop:n?"0px":"2px"}},children:[e.jsx(t.InputLabel,{error:!!s,disabled:d,children:r}),e.jsx(t.Select,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":l?{content:`"${l}"`,opacity:l?"1 !important":"0 !important"}:{}},label:r,value:n,notched:!!l||void 0,onChange:e=>f?.(e.target.value),IconComponent:({className:t})=>e.jsx($,{className:d?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?P:D,size:"success"===i?"md":"sm",sx:{marginTop:"success"===i?"2px":"0px",transform:t.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:F,renderValue:e=>m(e),...h,children:a?.map(((o,r)=>e.jsx(t.MenuItem,{sx:{fontSize:14,fontWeight:n===o?500:400,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:n===o?"blueHoverEquivalence":"white"},value:o,onMouseEnter:e=>e.target.style.backgroundColor=g.palette.blueHoverEquivalence,onMouseLeave:e=>{n!==o&&(e.target.style.backgroundColor=g.palette.white)},children:m?m(o):o.label},r)))}),(s||c)&&e.jsx(t.FormHelperText,{component:"span",className:s?"Mui-error":"",children:s||c})]})})};A.displayName="Select";const V=({variant:n,label:r,prefixIcon:a,suffixIcon:i,suffixTooltip:s,suffixAction:l,tooltip:c,maxWidth:u="100%",...d})=>{const p=t.useTheme(),f=o.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"}}}))(p))),[p]),[m,h]=o.useState(!1),[g,b]=o.useState(!1),y=o.useRef(null),v=o.useMemo((()=>d.color&&p.palette[d.color]?"object"==typeof p.palette[d.color]?p.palette[d.color].main:p.palette[d.color]:d.color||"status"===n?"white":"filled"===n||"statusFilled"===n?`${v}14`:""),[d.color,p.palette]);return e.jsx(t.Tooltip,{title:c,placement:"right-start",open:m,children:e.jsx(t.Box,{maxWidth:"fit-content",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:e.jsx(t.Tooltip,{title:s,open:g,placement:"bottom-end",sx:{cursor:l?"pointer !important":"default"},children:e.jsx(f,{label:r,ref:y,className:`MuiChip-${n}`,size:"small",sx:{maxWidth:u,backgroundColor:v,"&.MuiChip-colorSecondary":i&&l&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":i&&l&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":i&&l&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:a?e.jsx($,{icon:a,size:"sm"}):e.jsx(e.Fragment,{}),deleteIcon:i?e.jsx($,{icon:i,onMouseEnter:()=>{s&&(b(!0),h(!1))},onMouseLeave:()=>{s&&(b(!1),h(!0))},sx:{cursor:l?"pointer !important":"default"},size:"sm"}):e.jsx(e.Fragment,{}),onDelete:l??(()=>null),...d})})})})};V.displayName="Chip";const z={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},B=({value:n,label:r,options:a,color:i,error:s,placeholder:l="",helperText:c,width:u="100%",getRenderValue:d,getKeyValue:f,onChange:m,disabled:h,...g})=>{const b=t.useTheme(),y=o.useMemo((()=>t.styled(t.FormControl)(p(b))),[b]),v=()=>m?.([]),x=e=>{e.stopPropagation()},w=o.useMemo((()=>["DsMultiSelect",l?"Select-ds":"Select-mui",n.length>0&&"Mui-filled",s&&"Mui-error"].filter(Boolean).join(" ")),[n]),S=o.useRef(null);return e.jsx(t.Box,{sx:{width:u},ref:S,children:e.jsxs(y,{fullWidth:!0,color:i,className:w,disabled:h,sx:{".MuiOutlinedInput-input":{marginTop:n?.length>0?"0px":"2px"}},children:[e.jsx(t.InputLabel,{disabled:h,error:!!s,children:r}),e.jsx(t.Select,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":l?{content:`"${l}"`,opacity:r===l?"0 !important":"1 !important"}:{}},multiple:!0,label:r,notched:!!l||void 0,value:n,onChange:e=>m?.(e.target.value),renderValue:o=>e.jsxs(t.Box,{sx:{display:"flex"},children:[e.jsx(t.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:o.map((t=>e.jsx(V,{variant:h?"outlined":"filled",color:"default",label:d(t),onMouseDown:x,disabled:h,suffixIcon:k,suffixAction:()=>{return!h&&(e=t,m?.(n?.filter((t=>t!==e))));var e},sx:{m:0,maxWidth:S?.current?parseFloat(String(S.current?.offsetWidth).replace("px",""))-60:u}},f(t))))}),e.jsx(t.Box,{flexGrow:1}),!h&&e.jsx(t.Box,{className:"clear",onClick:v,onMouseDown:x,children:e.jsx($,{icon:E})})]}),IconComponent:({className:t})=>e.jsx($,{className:h?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?P:D,size:"success"===i?"md":"sm",sx:{transform:t.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:z,...g,children:a?.map((o=>e.jsx(t.MenuItem,{value:o,sx:{fontSize:14,fontWeight:-1===n.indexOf(o)?400:500,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:-1===n.indexOf(o)?"white":"greyXLight","&:hover":{backgroundColor:"blueHoverEquivalence"}},children:d(o)},f(o))))}),(s||c)&&e.jsx(t.FormHelperText,{component:"span",className:s?"Mui-error":"",children:s||c})]})})};B.displayName="MultiSelect";const W=({title:o,placement:n="right",children:r,...a})=>{if(!o)return e.jsx(e.Fragment,{children:r});const i=t.styled((({classes:o,...n})=>e.jsx(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.jsx(i,{placement:n||void 0,title:e.jsx(e.Fragment,{children:o}),...a,children:e.jsx(t.Box,{component:"span",children:r})})};W.displayName="Tooltip";const _=({name:n,value:r,error:a,helperText:i,label:s,infoBubbleContent:l,infoBubblePosition:c="right",onChange:u,disabled:d,...p})=>{const f=t.useTheme(),m=o.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}},"&.Mui-disabled":{"::before":{backgroundColor:e.palette.greyXLight},".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important",backgroundColor:"transparent !important",outlineOffset:"-2px"}},"&: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.greyMediumInactive,fontWeight:700}},".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}}))(f))),[f]),h=o.useMemo((()=>{const e=["DsCheckbox"];return d&&e.push("Mui-disabled"),e.join(" ")}),[d]),g=o.useMemo((()=>{const e=["DsCheckbox-label"];return d&&e.push("Mui-disabled"),e.join(" ")}),[d]);return e.jsxs(m,{className:h,children:[e.jsx(t.FormControlLabel,{disabled:d,control:e.jsx(t.Box,{children:e.jsx(t.Checkbox,{inputProps:{name:n},disabled:d,sx:{marginTop:"-2px"},checked:r,color:"primary",onChange:e=>{u?.(n,e.target.checked,!0)},...p})}),label:e.jsxs(t.Box,{display:"flex",children:[e.jsx(t.Typography,{component:"span",className:g,children:s}),l&&e.jsx(t.Box,{py:0,pl:.5,display:"flex",children:e.jsx(W,{title:l,placement:c,children:e.jsx(t.Box,{height:12,width:12,children:e.jsx($,{icon:M,size:"sm",color:"#1d91c3"})})})})]})}),(a||i)&&e.jsx(t.FormHelperText,{component:"span",className:a?"Mui-error":"",children:a||i})]})};_.displayName="Checkbox";const H=({options:n,label:r,disabled:a,error:i,helperText:s})=>{const l=t.useTheme(),c=o.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"}}))(l))),[l]),[u,d]=o.useState({}),p=o.useMemo((()=>{const e=[];return a&&e.push("Mui-disabled"),i&&e.push("Mui-error"),e.join(" ")}),[a]);return e.jsxs(c,{error:!!i,className:p,children:[e.jsx(t.FormLabel,{component:"legend",children:r}),e.jsx(t.FormGroup,{children:n?.slice(0,7).map((t=>e.jsx(_,{name:t.name,value:u[t.name]||!1,onChange:(e,t)=>((e,t)=>{d({...u,[e]:t})})(e,t),disabled:a,label:t.label,infoBubbleContent:t.infoBubbleContent,infoBubblePosition:t.infoBubblePosition},t.name)))}),(i||s)&&e.jsx(t.FormHelperText,{component:"span",className:i?"Mui-error":"",children:i||s})]})};H.displayName="CheckboxGroup";const q=({options:n,value:r,label:a,onChange:i,helperText:s,disabled:l=!1,error:c="",...u})=>{const d=t.useTheme(),p=o.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"},height:"16px",width:"16px",marginRight:"8px","&: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}},".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.greyMediumInactive,fontWeight:"700"},".MuiButtonBase-root":{backgroundColor:e.palette.greyXLight,color:e.palette.greyMediumInactive,transform:"scale(0.889)","& span":{transform:"scale(1.3)"},"&.Mui-checked":{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"}}}))(d))),[d]),f=o.useMemo((()=>[l&&"Mui-disabled",c&&"Mui-error"].filter(Boolean).join(" ")),[l,c]);return e.jsxs(p,{disabled:l,error:!!c,className:f,children:[e.jsx(t.FormLabel,{children:a}),e.jsx(t.RadioGroup,{value:r,onChange:e=>{i(e.target.value)},...u,children:n?.slice(0,7).map((({value:o,label:n,infoBubbleContent:r,infoBubblePosition:a},i)=>e.jsx(t.FormControlLabel,{control:e.jsx(t.Radio,{size:"small"}),value:o,label:e.jsxs(t.Box,{display:"flex",children:[n,r&&e.jsx(t.Box,{py:0,pl:.5,width:16,height:21,display:"flex",alignItems:"center",children:e.jsx(W,{title:r,placement:a,children:e.jsx($,{icon:M,size:"sm",color:"#1d91c3"})})})]})},i)))}),(c||s)&&e.jsx(t.FormHelperText,{component:"span",className:c?"Mui-error":"",children:c||s})||e.jsx(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:"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"]},X={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"]},G={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"]},Z={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"]},J={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"]},Q={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"]},ee={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"]},te={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 oe=({title:n,summaryHeight:r,expanded:a=!1,onClick:i,children:s,...l})=>{const c=t.useTheme(),u=o.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"}}}))(c))),[c]),[d,p]=o.useState(a);return o.useEffect((()=>{a!==d&&p(a)}),[a]),e.jsxs(u,{expanded:d,onClick:e=>{l.disabled||(p(!d),i&&i(e))},...l,children:[e.jsx(t.AccordionSummary,{expandIcon:e.jsx($,{icon:J,size:"md"}),sx:{fontWeight:500,fontSize:18,lineHeight:21,height:r||60},children:n}),e.jsx(t.AccordionDetails,{sx:{backgroundColor:c.palette.greyXLight,borderTop:"1px solid",borderColor:c.palette.greyLightDefaultBorder},children:s})]})};oe.displayName="Accordion";const ne=({PageName:n,links:r,...a})=>{const i=t.useTheme(),l=o.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}}))(i))),[i]);return e.jsxs(l,{"aria-label":"breadcrumb",...a,children:[r.map(((t,o)=>e.jsx("div",{children:e.jsx(f,{href:t.link,variant:"link1",children:t.title},o)},o))),e.jsx(s,{variant:"body1",children:n})]})};ne.displayName="Breadcrumbs";const re=({totalString:n,totalPerPageString:r,limitsPerPage:a=[5,10,20],setLimit:i,setPage:l,page:c=1,totalRows:u,limit:d})=>{const p=t.useTheme(),f=o.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"}}}))(p))),[p]),[m,h]=o.useState(c),[g,b]=o.useState(d??a[0]),y=((e,t)=>Math.ceil(e/t))(u,g),v=e=>{h(e),l?.(e)};return o.useEffect((()=>{c!==m&&h(c)}),[c]),o.useEffect((()=>{d&&d!==g&&b(d)}),[d]),e.jsxs(t.Box,{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",sx:{paddingTop:"16px",paddingBottom:"24px"},children:[e.jsxs(t.Box,{display:"flex",alignItems:"center",children:[e.jsxs(s,{variant:"body1Medium",children:[u," ",n]}),e.jsx(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}}),e.jsx(A,{label:"",className:"dac-select-label",labelId:"select-label",value:g,onChange:e=>{v(1),(e=>{b(e),i?.(e)})(e)},options:a,getRenderValue:e=>e.toString(),width:75,sx:{backgroundColor:"white","&.MuiInputBase-root":{height:"32px !important"}}}),e.jsx(s,{variant:"body1",pl:"8px",children:r}),e.jsx(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})]}),e.jsx(t.Box,{display:"flex",pr:"4px",children:e.jsx(f,{variant:"outlined",shape:"rounded",count:y,page:m,onChange:(e,t)=>v(t)})})]})};re.displayName="Pagination";const ae=({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.jsxs(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,children:[e.jsx($,{icon:l[r].icon,color:l[r].color,mr:"16px",mt:n?"1px":0}),e.jsxs(t.Box,{display:"flex",flexDirection:"column",paddingRight:4,children:[e.jsx(s,{align:"left",variant:"body1Bold",color:l[r].color,display:"inline-block",children:o}),n&&e.jsx(s,{align:"left",variant:"body1Regular",color:"greyDark",display:"inline-block",paddingTop:"4px",children:n})]}),e.jsx(t.Box,{flexGrow:2}),a&&e.jsx(t.Box,{alignSelf:"center",whiteSpace:"nowrap",children:a})]})};ae.displayName="EmbeddedNotification";const ie=({value:n,label:r,placeholder:a="",options:i,disabled:s,getOptionLabel:l,onChange:c,width:u="100%",color:p,helperText:f,error:m,...h})=>{const g=t.useTheme(),b=o.useMemo((()=>t.styled(t.FormControl)(d(g))),[g]),y=o.useMemo((()=>["DsAutoComplete",n&&"Mui-filled","success"===p&&"Mui-success",s&&"Mui-disabled"].filter(Boolean).join(" ")),[n]),v=o.useMemo((()=>[a?"labelClassic Mui-Input-filled":"labelCustom","success"===p&&"Mui-success",n&&"Mui-Input-filled"].filter(Boolean).join(" ")),[p,a]);return e.jsx(t.Box,{sx:{width:u},children:e.jsxs(b,{fullWidth:!0,color:p,className:y,children:[e.jsx(t.Autocomplete,{...h,value:n,onChange:(e,t)=>c?.(t),"aria-placeholder":a,disabled:s,options:i,sx:{".MuiOutlinedInput-input":{marginTop:n?"0px":"2px"}},getOptionLabel:l,slotProps:{paper:{sx:{boxShadow:"0px 2px 10px 0px"}}},renderOption:(o,n)=>e.jsx(t.MenuItem,{...o,className:"MenuItem DsAutoComplete",sx:{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word",'&.MenuItem[aria-selected="true"]':{backgroundColor:g.palette.greyXLight,fontWeight:500},"&:hover":{backgroundColor:g.palette.blueHoverEquivalence}},children:l(n)}),clearIcon:e.jsx(e.Fragment,{children:!s&&n&&e.jsx(t.Box,{className:"clear",onClick:()=>c?.(null),onMouseDown:e=>{e.stopPropagation()},children:e.jsx($,{icon:E})})}),popupIcon:e.jsx($,{className:s?"icon-disabled SelectIcon":"SelectIcon",icon:"success"===p?P:D,size:"success"===p?"md":"sm"}),renderInput:o=>e.jsx(t.TextField,{...o,label:r,error:!!m,fullWidth:!0,variant:"outlined",inputProps:{...o.inputProps},InputLabelProps:{shrink:!!a||void 0,className:v,disabled:!1},placeholder:a})}),(m||f)&&e.jsx(t.FormHelperText,{component:"span",className:m?"Mui-error":"",children:m||f})]})})};function se(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},le.apply(this,arguments)}ie.displayName="AutocompleteSingle";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ue(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 de,pe={exports:{}},fe={exports:{}},me={};var he,ge,be,ye,ve,xe,we,Se,Ce,Me,Oe,ke,Te,De,Ee={};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@mui/material"),o=require("react"),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(o),i=r(n);const s=o=>e.jsx(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"},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !important"}},".Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyLightDefaultBorder+" !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},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:e.palette.blueClickable+" !important"},".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"},".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"}}}},".Mui-error":{color:e.palette.redError,"& span":{color:`${e.palette.greyDark} !important`},"& fieldset":{borderColor:e.palette.redError}},".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:"0px",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:"0px",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:"0px",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=n=>{const r=t.useTheme(),a=o.useMemo((()=>t.styled(t.Link)((e=>({"&.MuiLink-root":{color:e.palette.blueClickable,cursor:"pointer"},"&:hover":{color:e.palette.blueHoverClickable+" !important"}}))(r))),[r]);return e.jsx(a,{...n})};f.displayName="Link";const m=({variant:n,children:r,...a})=>{const i=t.useTheme(),s=o.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"}}))(i))),[i]);return e.jsx(s,{variant:n,...a,children:r})};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,O={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"]},k={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"]},T={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"]},D={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"]},E={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"]},j=R;const I={xs:8,sm:12,md:16,lg:24,xl:32,xxl:40,xxxl:72},N=o.forwardRef((({icon:o,fontSize:n},r)=>{const{icon:[a,i,,,s]}=o;return e.jsx(t.SvgIcon,{ref:r,viewBox:`0 0 ${a} ${i}`,sx:{fontSize:n??"14px"},children:"string"==typeof s?e.jsx("path",{d:s}):s.map(((t,o)=>e.jsx("path",{style:{opacity:0===o?.4:1},d:t},o)))})})),$=({variant:n="none",icon:r,color:a="#136cac",size:i=16,sx:s,...l})=>{const c=t.useTheme(),u=o.useMemo((()=>c.palette[a]?c.palette[a]:a&&0!==a.length?a:"#136cac"),[c.palette,a]),d=o.useMemo((()=>"square"===n?16:i in I?I[i]:i>=0?i:16),[n,i]);return e.jsx(t.Box,{component:"span",sx:"square"===n?{...s,color:u,backgroundColor:`${u}14`,borderRadius:"4px",borderColor:"1px solid "+u,overflow:"visible",padding:"10px",width:"36px",height:"36px",display:"flex",justifyContent:"center",alignItems:"center"}:{...s,color:u,width:d,height:i,display:"inline-flex",alignItems:"center",justifyContent:"center"},...l,children:e.jsx(N,{icon:r,fontSize:d})})};$.displayName="IconProvider";const L=({name:n,value:r,error:a,onBlur:i,onChange:s,label:l,disabled:c,width:u="100%",endAdornment:d,placeholder:p="",maxLength:f,...m})=>{const h=t.useTheme(),g=o.useMemo((()=>t.styled(t.TextField)((e=>({".Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.redError+" !important"},".Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.blueClickable},"&:hover":{".MuiOutlinedInput-notchedOutline":{borderColor:e.palette.greyDark+" !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"}}}}))(h))),[h]),[b,y]=o.useState(!1),[x,w]=o.useState(m.type??"text"),C=o.useMemo((()=>e.jsx($,{className:"DsTextField-passwordIcon",icon:b?v:S,color:"blueClickable",onClick:()=>y(!b)})),[b]);o.useEffect((()=>{w(b?"text":m.type??"text")}),[b]);const M=o.useMemo((()=>[p?"TextField-ds":"TextField-mui","success"===m.color&&"Mui-success",r&&"Mui-filled",m.className].filter(Boolean).join(" ")),[r]),O=o.useMemo((()=>Boolean(a&&a?.length>0||f&&String(r).length>f)),[a,f,r]);return e.jsx(g,{variant:"outlined",name:n,label:l,value:r,sx:{width:u},placeholder:p,FormHelperTextProps:{component:"div"},InputLabelProps:{shrink:!!p||void 0},onClick:e=>e.stopPropagation(),onChange:e=>{s?.(e)},onBlur:e=>{i?.(e)},error:O,disabled:c,InputProps:"password"===m.type?{endAdornment:C}:{endAdornment:d},...m,className:M,type:x,helperText:e.jsxs("div",{style:{display:"table",width:"100%",marginRight:"4px"},children:[(a||m.helperText)&&e.jsx("div",{style:{display:f?"table-cell":"",float:"left"},children:a||m.helperText}),f&&e.jsxs("div",{style:{display:"table-cell",float:"right"},children:[String(r).length,"/",f," caract."]})]})})};L.displayName="TextField";const F={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},A=({value:n,label:r="",options:a,color:i,error:s,placeholder:l="",helperText:c,width:u="100%",disabled:d,onChange:f,getRenderValue:m,...h})=>{const g=t.useTheme(),b=o.useMemo((()=>t.styled(t.FormControl)(p(g))),[g]),y=o.useMemo((()=>["DSSingleSelect",l?"Select-ds":"Select-mui",n&&"Mui-filled",s&&"Mui-error"].filter(Boolean).join(" ")),[n]);return e.jsx(t.Box,{sx:{width:u},children:e.jsxs(b,{fullWidth:!0,color:i,className:y,disabled:d,sx:{".MuiOutlinedInput-input":{marginTop:n?"0px":"2px"}},children:[e.jsx(t.InputLabel,{error:!!s,disabled:d,children:r}),e.jsx(t.Select,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":l?{content:`"${l}"`,opacity:l?"1 !important":"0 !important"}:{}},label:r,value:n,notched:!!l||void 0,onChange:e=>f?.(e.target.value),IconComponent:({className:t})=>e.jsx($,{className:d?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?P:D,size:"success"===i?"md":"sm",sx:{marginTop:"success"===i?"2px":"0px",transform:t.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:F,renderValue:e=>m(e),...h,children:a?.map(((o,r)=>e.jsx(t.MenuItem,{sx:{fontSize:14,fontWeight:n===o?500:400,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:n===o?"blueHoverEquivalence":"white"},value:o,onMouseEnter:e=>e.target.style.backgroundColor=g.palette.blueHoverEquivalence,onMouseLeave:e=>{n!==o&&(e.target.style.backgroundColor=g.palette.white)},children:m?m(o):o.label},r)))}),(s||c)&&e.jsx(t.FormHelperText,{component:"span",className:s?"Mui-error":"",children:s||c})]})})};A.displayName="Select";const V=({variant:n,label:r,prefixIcon:a,suffixIcon:i,suffixTooltip:s,suffixAction:l,tooltip:c,maxWidth:u="100%",...d})=>{const p=t.useTheme(),f=o.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"}}}))(p))),[p]),[m,h]=o.useState(!1),[g,b]=o.useState(!1),y=o.useRef(null);let v=d.color&&p.palette[d.color]?"object"==typeof p.palette[d.color]?p.palette[d.color].main:p.palette[d.color]:d.color??"white";return"filled"===n||"statusFilled"===n?v=`${v}14`:"status"===n&&(v="white"),e.jsx(t.Tooltip,{title:c,placement:"right-start",open:m,children:e.jsx(t.Box,{maxWidth:"fit-content",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:e.jsx(t.Tooltip,{title:s,open:g,placement:"bottom-end",sx:{cursor:l?"pointer !important":"default"},children:e.jsx(f,{label:r,ref:y,className:`MuiChip-${n}`,size:"small",sx:{maxWidth:u,backgroundColor:v,"&.MuiChip-colorSecondary":i&&l&&{"&:hover":{borderColor:"#004f88 !important",".MuiChip-deleteIcon":{color:"#004f88 !important"}}},"&.MuiChip-colorPrimary":i&&l&&{"&:hover":{backgroundColor:"#004f88 !important"}},"&.MuiChip-colorDefault":i&&l&&{"&:hover":{".MuiChip-deleteIcon":{color:"#004f88 !important"}}}},avatar:a?e.jsx($,{icon:a,size:"sm"}):e.jsx(e.Fragment,{}),deleteIcon:i?e.jsx($,{icon:i,onMouseEnter:()=>{s&&(b(!0),h(!1))},onMouseLeave:()=>{s&&(b(!1),h(!0))},sx:{cursor:l?"pointer !important":"default"},size:"sm"}):e.jsx(e.Fragment,{}),onDelete:l??(()=>null),...d})})})})};V.displayName="Chip";const z={disableAutoFocusItem:!0,PaperProps:{sx:{boxShadow:"0px 2px 10px 0px",width:0}}},B=({value:n,label:r,options:a,color:i,error:s,placeholder:l="",helperText:c,width:u="100%",getRenderValue:d,getKeyValue:f,onChange:m,disabled:h,...g})=>{const b=t.useTheme(),y=o.useMemo((()=>t.styled(t.FormControl)(p(b))),[b]),v=()=>m?.([]),x=e=>{e.stopPropagation()},w=o.useMemo((()=>["DsMultiSelect",l?"Select-ds":"Select-mui",n.length>0&&"Mui-filled",s&&"Mui-error"].filter(Boolean).join(" ")),[n]),S=o.useRef(null);return e.jsx(t.Box,{sx:{width:u},ref:S,children:e.jsxs(y,{fullWidth:!0,color:i,className:w,disabled:h,sx:{".MuiOutlinedInput-input":{marginTop:n?.length>0?"0px":"2px"}},children:[e.jsx(t.InputLabel,{disabled:h,error:!!s,children:r}),e.jsx(t.Select,{sx:{color:i+"! important","& .MuiSelect-select .notranslate::after":l?{content:`"${l}"`,opacity:r===l?"0 !important":"1 !important"}:{}},multiple:!0,label:r,notched:!!l||void 0,value:n,onChange:e=>m?.(e.target.value),renderValue:o=>e.jsxs(t.Box,{sx:{display:"flex"},children:[e.jsx(t.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:o.map((t=>e.jsx(V,{variant:h?"outlined":"filled",color:"default",label:d(t),onMouseDown:x,disabled:h,suffixIcon:k,suffixAction:()=>{return!h&&(e=t,m?.(n?.filter((t=>t!==e))));var e},sx:{m:0,maxWidth:S?.current?parseFloat(String(S.current?.offsetWidth).replace("px",""))-60:u}},f(t))))}),e.jsx(t.Box,{flexGrow:1}),!h&&e.jsx(t.Box,{className:"clear",onClick:v,onMouseDown:x,children:e.jsx($,{icon:E})})]}),IconComponent:({className:t})=>e.jsx($,{className:h?"Mui-disabled SelectIcon":"SelectIcon",icon:"success"===i?P:D,size:"success"===i?"md":"sm",sx:{transform:t.toString().includes("iconOpen")&&"success"!==i?"rotate(180deg)":"none"}}),MenuProps:z,...g,children:a?.map((o=>e.jsx(t.MenuItem,{value:o,sx:{fontSize:14,fontWeight:-1===n.indexOf(o)?400:500,whiteSpace:"normal",wordWrap:"break-word",minWidth:"100%",maxWidth:"100%",backgroundColor:-1===n.indexOf(o)?"white":"greyXLight","&:hover":{backgroundColor:"blueHoverEquivalence"}},children:d(o)},f(o))))}),(s||c)&&e.jsx(t.FormHelperText,{component:"span",className:s?"Mui-error":"",children:s||c})]})})};B.displayName="MultiSelect";const W=({title:o,placement:n="right",children:r,...a})=>{if(!o)return e.jsx(e.Fragment,{children:r});const i=t.styled((({classes:o,...n})=>e.jsx(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.jsx(i,{placement:n||void 0,title:e.jsx(e.Fragment,{children:o}),...a,children:e.jsx(t.Box,{component:"span",children:r})})};W.displayName="Tooltip";const _=({name:n,value:r,error:a,helperText:i,label:s,infoBubbleContent:l,infoBubblePosition:c="right",onChange:u,disabled:d,...p})=>{const f=t.useTheme(),m=o.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}},"&.Mui-disabled":{"::before":{backgroundColor:e.palette.greyXLight},".MuiSvgIcon-root":{color:e.palette.greyMediumInactive+" !important",backgroundColor:"transparent !important",outlineOffset:"-2px"}},"&: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.greyMediumInactive,fontWeight:700}},".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}}))(f))),[f]),h=o.useMemo((()=>{const e=["DsCheckbox"];return d&&e.push("Mui-disabled"),e.join(" ")}),[d]),g=o.useMemo((()=>{const e=["DsCheckbox-label"];return d&&e.push("Mui-disabled"),e.join(" ")}),[d]);return e.jsxs(m,{className:h,children:[e.jsx(t.FormControlLabel,{disabled:d,control:e.jsx(t.Box,{children:e.jsx(t.Checkbox,{inputProps:{name:n},disabled:d,sx:{marginTop:"-2px"},checked:r,color:"primary",onChange:e=>{u?.(n,e.target.checked,!0)},...p})}),label:e.jsxs(t.Box,{display:"flex",children:[e.jsx(t.Typography,{component:"span",className:g,children:s}),l&&e.jsx(t.Box,{py:0,pl:.5,display:"flex",children:e.jsx(W,{title:l,placement:c,children:e.jsx(t.Box,{height:12,width:12,children:e.jsx($,{icon:M,size:"sm",color:"#1d91c3"})})})})]})}),(a||i)&&e.jsx(t.FormHelperText,{component:"span",className:a?"Mui-error":"",children:a||i})]})};_.displayName="Checkbox";const H=({options:n,label:r,disabled:a,error:i,helperText:s})=>{const l=t.useTheme(),c=o.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"}}))(l))),[l]),[u,d]=o.useState({}),p=o.useMemo((()=>{const e=[];return a&&e.push("Mui-disabled"),i&&e.push("Mui-error"),e.join(" ")}),[a]);return e.jsxs(c,{error:!!i,className:p,children:[e.jsx(t.FormLabel,{component:"legend",children:r}),e.jsx(t.FormGroup,{children:n?.slice(0,7).map((t=>e.jsx(_,{name:t.name,value:u[t.name]||!1,onChange:(e,t)=>((e,t)=>{d({...u,[e]:t})})(e,t),disabled:a,label:t.label,infoBubbleContent:t.infoBubbleContent,infoBubblePosition:t.infoBubblePosition},t.name)))}),(i||s)&&e.jsx(t.FormHelperText,{component:"span",className:i?"Mui-error":"",children:i||s})]})};H.displayName="CheckboxGroup";const q=({options:n,value:r,label:a,onChange:i,helperText:s,disabled:l=!1,error:c="",...u})=>{const d=t.useTheme(),p=o.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"},height:"16px",width:"16px",marginRight:"8px","&: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}},".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.greyMediumInactive,fontWeight:"700"},".MuiButtonBase-root":{backgroundColor:e.palette.greyXLight,color:e.palette.greyMediumInactive,transform:"scale(0.889)","& span":{transform:"scale(1.3)"},"&.Mui-checked":{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"}}}))(d))),[d]),f=o.useMemo((()=>[l&&"Mui-disabled",c&&"Mui-error"].filter(Boolean).join(" ")),[l,c]);return e.jsxs(p,{disabled:l,error:!!c,className:f,children:[e.jsx(t.FormLabel,{children:a}),e.jsx(t.RadioGroup,{value:r,onChange:e=>{i(e.target.value)},...u,children:n?.slice(0,7).map((({value:o,label:n,infoBubbleContent:r,infoBubblePosition:a},i)=>e.jsx(t.FormControlLabel,{control:e.jsx(t.Radio,{size:"small"}),value:o,label:e.jsxs(t.Box,{display:"flex",children:[n,r&&e.jsx(t.Box,{py:0,pl:.5,width:16,height:21,display:"flex",alignItems:"center",children:e.jsx(W,{title:r,placement:a,children:e.jsx($,{icon:M,size:"sm",color:"#1d91c3"})})})]})},i)))}),(c||s)&&e.jsx(t.FormHelperText,{component:"span",className:c?"Mui-error":"",children:c||s})||e.jsx(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:"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"]},X={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"]},G={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"]},Z={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"]},J={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"]},Q={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"]},ee={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"]},te={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 oe=({title:n,summaryHeight:r,expanded:a=!1,onClick:i,children:s,...l})=>{const c=t.useTheme(),u=o.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"}}}))(c))),[c]),[d,p]=o.useState(a);return o.useEffect((()=>{a!==d&&p(a)}),[a]),e.jsxs(u,{expanded:d,onClick:e=>{l.disabled||(p(!d),i&&i(e))},...l,children:[e.jsx(t.AccordionSummary,{expandIcon:e.jsx($,{icon:J,size:"md"}),sx:{fontWeight:500,fontSize:18,lineHeight:21,height:r||60},children:n}),e.jsx(t.AccordionDetails,{sx:{backgroundColor:c.palette.greyXLight,borderTop:"1px solid",borderColor:c.palette.greyLightDefaultBorder},children:s})]})};oe.displayName="Accordion";const ne=({PageName:n,links:r,...a})=>{const i=t.useTheme(),l=o.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}}))(i))),[i]);return e.jsxs(l,{"aria-label":"breadcrumb",...a,children:[r.map(((t,o)=>e.jsx("div",{children:e.jsx(f,{href:t.link,variant:"link1",children:t.title},o)},o))),e.jsx(s,{variant:"body1",children:n})]})};ne.displayName="Breadcrumbs";const re=({totalString:n,totalPerPageString:r,limitsPerPage:a=[5,10,20],setLimit:i,setPage:l,page:c=1,totalRows:u,limit:d})=>{const p=t.useTheme(),f=o.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"}}}))(p))),[p]),[m,h]=o.useState(c),[g,b]=o.useState(d??a[0]),y=((e,t)=>Math.ceil(e/t))(u,g),v=e=>{h(e),l?.(e)};return o.useEffect((()=>{c!==m&&h(c)}),[c]),o.useEffect((()=>{d&&d!==g&&b(d)}),[d]),e.jsxs(t.Box,{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",sx:{paddingTop:"16px",paddingBottom:"24px"},children:[e.jsxs(t.Box,{display:"flex",alignItems:"center",children:[e.jsxs(s,{variant:"body1Medium",children:[u," ",n]}),e.jsx(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}}),e.jsx(A,{label:"",className:"dac-select-label",labelId:"select-label",value:g,onChange:e=>{v(1),(e=>{b(e),i?.(e)})(e)},options:a,getRenderValue:e=>e.toString(),width:75,sx:{backgroundColor:"white","&.MuiInputBase-root":{height:"32px !important"}}}),e.jsx(s,{variant:"body1",pl:"8px",children:r}),e.jsx(t.Divider,{orientation:"vertical",sx:{color:"greyXLight",width:"1px",height:"33px",marginX:"16px"}})]}),e.jsx(t.Box,{display:"flex",pr:"4px",children:e.jsx(f,{variant:"outlined",shape:"rounded",count:y,page:m,onChange:(e,t)=>v(t)})})]})};re.displayName="Pagination";const ae=({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.jsxs(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,children:[e.jsx($,{icon:l[r].icon,color:l[r].color,mr:"16px",mt:n?"1px":0}),e.jsxs(t.Box,{display:"flex",flexDirection:"column",paddingRight:4,children:[e.jsx(s,{align:"left",variant:"body1Bold",color:l[r].color,display:"inline-block",children:o}),n&&e.jsx(s,{align:"left",variant:"body1Regular",color:"greyDark",display:"inline-block",paddingTop:"4px",children:n})]}),e.jsx(t.Box,{flexGrow:2}),a&&e.jsx(t.Box,{alignSelf:"center",whiteSpace:"nowrap",children:a})]})};ae.displayName="EmbeddedNotification";const ie=({value:n,label:r,placeholder:a="",options:i,disabled:s,getOptionLabel:l,onChange:c,width:u="100%",color:p,helperText:f,error:m,...h})=>{const g=t.useTheme(),b=o.useMemo((()=>t.styled(t.FormControl)(d(g))),[g]),y=o.useMemo((()=>["DsAutoComplete",n&&"Mui-filled","success"===p&&"Mui-success",s&&"Mui-disabled"].filter(Boolean).join(" ")),[n]),v=o.useMemo((()=>[a?"labelClassic Mui-Input-filled":"labelCustom","success"===p&&"Mui-success",n&&"Mui-Input-filled"].filter(Boolean).join(" ")),[p,a]);return e.jsx(t.Box,{sx:{width:u},children:e.jsxs(b,{fullWidth:!0,color:p,className:y,children:[e.jsx(t.Autocomplete,{...h,value:n,onChange:(e,t)=>c?.(t),"aria-placeholder":a,disabled:s,options:i,sx:{".MuiOutlinedInput-input":{marginTop:n?"0px":"2px"}},getOptionLabel:l,slotProps:{paper:{sx:{boxShadow:"0px 2px 10px 0px"}}},renderOption:(o,n)=>e.jsx(t.MenuItem,{...o,className:"MenuItem DsAutoComplete",sx:{backgroundColor:"white",fontWeight:400,whiteSpace:"break-spaces",wordBreak:"break-word",'&.MenuItem[aria-selected="true"]':{backgroundColor:g.palette.greyXLight,fontWeight:500},"&:hover":{backgroundColor:g.palette.blueHoverEquivalence}},children:l(n)}),clearIcon:e.jsx(e.Fragment,{children:!s&&n&&e.jsx(t.Box,{className:"clear",onClick:()=>c?.(null),onMouseDown:e=>{e.stopPropagation()},children:e.jsx($,{icon:E})})}),popupIcon:e.jsx($,{className:s?"icon-disabled SelectIcon":"SelectIcon",icon:"success"===p?P:D,size:"success"===p?"md":"sm"}),renderInput:o=>e.jsx(t.TextField,{...o,label:r,error:!!m,fullWidth:!0,variant:"outlined",inputProps:{...o.inputProps},InputLabelProps:{shrink:!!a||void 0,className:v,disabled:!1},placeholder:a})}),(m||f)&&e.jsx(t.FormHelperText,{component:"span",className:m?"Mui-error":"",children:m||f})]})})};function se(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},le.apply(this,arguments)}ie.displayName="AutocompleteSingle";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ue(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 de,pe={exports:{}},fe={exports:{}},me={};var he,ge,be,ye,ve,xe,we,Se,Ce,Me,Oe,ke,Te,De,Ee={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|