solace-ui-components 18.0.9 → 18.0.12

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.
@@ -1,10 +1,10 @@
1
- export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.modern.mjs';import {a as a$1,h,e,d as d$1,b as b$3,c,f,g,m,l,j,i,k}from'./chunk-NANSEALM.modern.mjs';export{a as SelectDropdownIcon,l as SolaceCheckBox,n as SolaceSelect,o as SolaceTextArea,m as SolaceTypography}from'./chunk-NANSEALM.modern.mjs';import {b as b$2}from'./chunk-LWCJ2SGT.modern.mjs';export{b as SolaceButton,a as initializeDataTrackingApi}from'./chunk-LWCJ2SGT.modern.mjs';import {b as b$4,c as c$1,d as d$2}from'./chunk-IA5QZKDN.modern.mjs';export{a as SolaceLabel,d as SolaceTextField}from'./chunk-IA5QZKDN.modern.mjs';import {b as b$1,a as a$2,d,e as e$1,f as f$1}from'./chunk-Q6DR3MQK.modern.mjs';export{b as SolaceTooltip,a as TooltipVariant}from'./chunk-Q6DR3MQK.modern.mjs';export{a as SolaceStackLabel}from'./chunk-X4JIJBMX.modern.mjs';import {a,wa,me,xc as xc$1,_h as _h$1,ni as ni$1,Ic as Ic$1,ec as ec$1,pi as pi$1,Re,ei as ei$1,b,y,X,ba,H,V,U,T,aa,_,W,$,Z,ua as ua$1,$b as $b$1,E,Y,ug,Hb,Kb,Db as Db$1,Le,he,Of,Rf as Rf$1,D,le as le$1,Na as Na$1,Xh as Xh$1,Td,Gb,Ad as Ad$1,Md,Id,Ld,Dd as Dd$1,yf as yf$1,hf as hf$1,vf,Pd,Yb,sf as sf$1,kh as kh$1,Nf as Nf$1,Mf as Mf$1,P,kb as kb$1,yb,qb,Ig,Lc as Lc$1,bi,Oe,Ue,bf as bf$1,Ze as Ze$1,Qc as Qc$1,gh as gh$1,Zg as Zg$1,Wg,Qg as Qg$1,Bg as Bg$1,Wc as Wc$1,dd,ad as ad$1,bg,Uf,nc,nh as nh$1,Ac as Ac$1}from'./chunk-PWYVYHTJ.modern.mjs';export{kb as Accordion,nb as AccordionActions,qb as AccordionDetails,yb as AccordionSummary,Hb as Alert,Nb as AlertTitle,Qb as AppBar,nc as Autocomplete,qc as Avatar,tc as AvatarGroup,xc as Backdrop,Ac as Badge,Dc as BottomNavigation,Gc as BottomNavigationAction,Ic as Box,Lc as Breadcrumbs,Qc as Button,vb as ButtonBase,Tc as ButtonGroup,Pc as ButtonGroupButtonContext,Oc as ButtonGroupContext,Wc as Card,Zc as CardActionArea,ad as CardActions,dd as CardContent,gd as CardHeader,jd as CardMedia,md as Checkbox,$b as Chip,Db as CircularProgress,nd as ClickAwayListener,eb as Collapse,od as Container,rd as CssBaseline,Aa as CssVarsProvider,mi as DEFAULT_BASE_SIZE,Ad as Dialog,Dd as DialogActions,Id as DialogContent,Ld as DialogContentText,Md as DialogTitle,Pd as Divider,Td as Drawer,ya as Experimental_CssVarsProvider,Wd as Fab,uc as Fade,Xd as FilledInput,_d as FormControl,be as FormControlLabel,ee as FormGroup,he as FormHelperText,le as FormLabel,ke as FormLabelRoot,Ja as GlobalStyles,me as Grid,ne as Grid2,qe as Grow,se as Hidden,ve as Icon,Gb as IconButton,ye as ImageList,Be as ImageListItem,Ee as ImageListItemBar,Fe as Input,Ie as InputAdornment,ec as InputBase,Le as InputLabel,Oe as LinearProgress,Re as Link,Ue as List,bf as ListItem,ef as ListItemAvatar,Ze as ListItemButton,hf as ListItemIcon,af as ListItemSecondaryAction,kf as ListItemText,Yb as ListSubheader,vf as Menu,yf as MenuItem,lf as MenuList,Bf as MobileStepper,xd as Modal,td as ModalManager,Ef as NativeSelect,Ff as NoSsr,Gf as OutlinedInput,Nf as Pagination,Mf as PaginationItem,hb as Paper,sf as Popover,rf as PopoverPaper,qf as PopoverRoot,Vb as Popper,Tb as Portal,Rf as Radio,Uf as RadioGroup,Xf as Rating,_f as ScopedCssBaseline,bg as Select,eg as Skeleton,Qd as Slide,og as Slider,mg as SliderMark,ng as SliderMarkLabel,ig as SliderRail,hg as SliderRoot,kg as SliderThumb,jg as SliderTrack,lg as SliderValueLabel,ug as Snackbar,rg as SnackbarContent,ri as SolaceTheme,yg as SpeedDial,Eg as SpeedDialAction,Hg as SpeedDialIcon,Ig as Stack,Qg as Step,Zg as StepButton,ah as StepConnector,dh as StepContent,Ng as StepContext,Tg as StepIcon,Wg as StepLabel,gh as Stepper,Lg as StepperContext,z as StyledEngineProvider,oi as SupportedThemes,Na as SvgIcon,hh as SwipeableDrawer,kh as Switch,x as THEME_ID,nh as Tab,Uh as TabScrollButton,qh as Table,th as TableBody,wh as TableCell,zh as TableContainer,Ch as TableFooter,Fh as TableHead,Lh as TablePagination,Oh as TableRow,Rh as TableSortLabel,Xh as Tabs,_h as TextField,ac as TextareaAutosize,Ba as ThemeProvider,bi as ToggleButton,ei as ToggleButtonGroup,Ih as Toolbar,Bg as Tooltip,Kb as Typography,ud as Unstable_TrapFocus,vg as Zoom,mb as accordionActionsClasses,jb as accordionClasses,pb as accordionDetailsClasses,xb as accordionSummaryClasses,ca as adaptV4Theme,Ab as alertClasses,Mb as alertTitleClasses,P as alpha,q as amber,Pb as appBarClasses,mc as autocompleteClasses,pc as avatarClasses,sc as avatarGroupClasses,wc as backdropClasses,zc as badgeClasses,i as blue,v as blueGrey,Fc as bottomNavigationActionClasses,Cc as bottomNavigationClasses,Hc as boxClasses,Kc as breadcrumbsClasses,t as brown,ub as buttonBaseClasses,Nc as buttonClasses,Sc as buttonGroupClasses,Ha as capitalize,Yc as cardActionAreaClasses,$c as cardActionsClasses,Vc as cardClasses,cd as cardContentClasses,fd as cardHeaderClasses,id as cardMediaClasses,ld as checkboxClasses,_b as chipClasses,Cb as circularProgressClasses,db as collapseClasses,w as colors,c as common,qd as containerClasses,Ia as createChainedFunction,ka as createColorScheme,Rb as createFilterOptions,ia as createMuiTheme,qa as createStyles,Oa as createSvgIcon,oa as createTheme,ha as createTransitions,B as css,k as cyan,sd as darkScrollbar,Q as darken,Pa as debounce,J as decomposeColor,s as deepOrange,g as deepPurple,Qa as deprecatedPropType,Cd as dialogActionsClasses,zd as dialogClasses,Fd as dialogContentClasses,Kd as dialogContentTextClasses,Hd as dialogTitleClasses,Od as dividerClasses,Sd as drawerClasses,ga as duration,fa as easing,S as emphasize,wa as experimentalStyled,Fa as experimental_extendTheme,Ga as experimental_sx,na as extendTheme,Vd as fabClasses,kc as filledInputClasses,Zd as formControlClasses,ae as formControlLabelClasses,de as formGroupClasses,ge as formHelperTextClasses,je as formLabelClasses,F as generateUtilityClass,G as generateUtilityClasses,lb as getAccordionActionsUtilityClass,ob as getAccordionDetailsUtilityClass,wb as getAccordionSummaryUtilityClass,ib as getAccordionUtilityClass,Lb as getAlertTitleUtilityClass,zb as getAlertUtilityClass,Ob as getAppBarUtilityClass,lc as getAutocompleteUtilityClass,rc as getAvatarGroupUtilityClass,oc as getAvatarUtilityClass,vc as getBackdropUtilityClass,yc as getBadgeUtilityClass,Ec as getBottomNavigationActionUtilityClass,Bc as getBottomNavigationUtilityClass,Jc as getBreadcrumbsUtilityClass,tb as getButtonBaseUtilityClass,Rc as getButtonGroupUtilityClass,Mc as getButtonUtilityClass,Xc as getCardActionAreaUtilityClass,_c as getCardActionsUtilityClass,bd as getCardContentUtilityClass,ed as getCardHeaderUtilityClass,hd as getCardMediaUtilityClass,Uc as getCardUtilityClass,kd as getCheckboxUtilityClass,Zb as getChipUtilityClass,Bb as getCircularProgressUtilityClass,cb as getCollapseUtilityClass,pd as getContainerUtilityClass,O as getContrastRatio,Bd as getDialogActionsUtilityClass,Jd as getDialogContentTextUtilityClass,Ed as getDialogContentUtilityClass,Gd as getDialogTitleUtilityClass,yd as getDialogUtilityClass,Nd as getDividerUtilityClass,Rd as getDrawerUtilityClass,Ud as getFabUtilityClass,jc as getFilledInputUtilityClass,$d as getFormControlLabelUtilityClasses,Yd as getFormControlUtilityClasses,ce as getFormGroupUtilityClass,fe as getFormHelperTextUtilityClasses,ie as getFormLabelUtilityClasses,oe as getGrid2UtilityClass,Eb as getIconButtonUtilityClass,te as getIconUtilityClass,Ce as getImageListItemBarUtilityClass,ze as getImageListItemUtilityClass,we as getImageListUtilityClass,za as getInitColorSchemeScript,Ge as getInputAdornmentUtilityClass,cc as getInputBaseUtilityClass,Je as getInputLabelUtilityClasses,fc as getInputUtilityClass,Me as getLinearProgressUtilityClass,Pe as getLinkUtilityClass,cf as getListItemAvatarUtilityClass,Xe as getListItemButtonUtilityClass,ff as getListItemIconUtilityClass,_e as getListItemSecondaryActionClassesUtilityClass,if as getListItemTextUtilityClass,Ve as getListItemUtilityClass,Wb as getListSubheaderUtilityClass,Se as getListUtilityClass,N as getLuminance,wf as getMenuItemUtilityClass,tf as getMenuUtilityClass,zf as getMobileStepperUtilityClass,vd as getModalUtilityClass,Cf as getNativeSelectUtilityClasses,pf as getOffsetLeft,of as getOffsetTop,hc as getOutlinedInputUtilityClass,ja as getOverlayAlpha,Kf as getPaginationItemUtilityClass,Hf as getPaginationUtilityClass,fb as getPaperUtilityClass,mf as getPopoverUtilityClass,Ub as getPopperUtilityClass,Sf as getRadioGroupUtilityClass,Pf as getRadioUtilityClass,Vf as getRatingUtilityClass,Yf as getScopedCssBaselineUtilityClass,$f as getSelectUtilityClasses,cg as getSkeletonUtilityClass,fg as getSliderUtilityClass,pg as getSnackbarContentUtilityClass,sg as getSnackbarUtilityClass,Cg as getSpeedDialActionUtilityClass,Fg as getSpeedDialIconUtilityClass,wg as getSpeedDialUtilityClass,Xg as getStepButtonUtilityClass,_g as getStepConnectorUtilityClass,bh as getStepContentUtilityClass,Rg as getStepIconUtilityClass,Ug as getStepLabelUtilityClass,Og as getStepUtilityClass,eh as getStepperUtilityClass,La as getSvgIconUtilityClass,ih as getSwitchUtilityClass,Sh as getTabScrollButtonUtilityClass,lh as getTabUtilityClass,rh as getTableBodyUtilityClass,uh as getTableCellUtilityClass,xh as getTableContainerUtilityClass,Ah as getTableFooterUtilityClass,Dh as getTableHeadUtilityClass,Jh as getTablePaginationUtilityClass,Mh as getTableRowUtilityClass,Ph as getTableSortLabelUtilityClass,oh as getTableUtilityClass,Vh as getTabsUtilityClass,Yh as getTextFieldUtilityClass,qi as getThemeMappings,ci as getToggleButtonGroupUtilityClass,$h as getToggleButtonUtilityClass,Gh as getToolbarUtilityClass,zg as getTooltipUtilityClass,rb as getTouchRippleUtilityClass,Ib as getTypographyUtilityClass,m as green,u as grey,pe as grid2Classes,I as hexToRgb,M as hslToRgb,Fb as iconButtonClasses,ue as iconClasses,xe as imageListClasses,De as imageListItemBarClasses,Ae as imageListItemClasses,h as indigo,He as inputAdornmentClasses,dc as inputBaseClasses,gc as inputClasses,Ke as inputLabelClasses,Ra as isMuiElement,A as keyframes,j as lightBlue,n as lightGreen,R as lighten,o as lime,Ne as linearProgressClasses,Qe as linkClasses,Te as listClasses,df as listItemAvatarClasses,Ye as listItemButtonClasses,We as listItemClasses,gf as listItemIconClasses,$e as listItemSecondaryActionClasses,jf as listItemTextClasses,Xb as listSubheaderClasses,hi as major,Ca as makeStyles,uf as menuClasses,xf as menuItemClasses,ab as mergeSlotProps,ii as minor,Af as mobileStepperClasses,wd as modalClasses,Df as nativeSelectClasses,r as orange,ic as outlinedInputClasses,Sa as ownerDocument,Ta as ownerWindow,If as paginationClasses,Lf as paginationItemClasses,gb as paperClasses,ji as patch,e as pink,nf as popoverClasses,ki as prerelease,da as private_createMixins,ea as private_createTypography,ma as private_excludeVariablesFromRoot,f as purple,Qf as radioClasses,Tf as radioGroupClasses,Wf as ratingClasses,K as recomposeColor,d as red,Ua as requirePropFactory,ta as responsiveFontSizes,L as rgbToHex,Zf as scopedCssBaselineClasses,ag as selectClasses,Va as setRef,la as shouldSkipGeneratingVar,dg as skeletonClasses,gg as sliderClasses,tg as snackbarClasses,qg as snackbarContentClasses,Dg as speedDialActionClasses,xg as speedDialClasses,Gg as speedDialIconClasses,Jg as stackClasses,Yg as stepButtonClasses,Pg as stepClasses,$g as stepConnectorClasses,ch as stepContentClasses,Sg as stepIconClasses,Vg as stepLabelClasses,fh as stepperClasses,wa as styled,Ma as svgIconClasses,jh as switchClasses,mh as tabClasses,Th as tabScrollButtonClasses,sh as tableBodyClasses,vh as tableCellClasses,ph as tableClasses,yh as tableContainerClasses,Bh as tableFooterClasses,Eh as tableHeadClasses,Kh as tablePaginationClasses,Nh as tableRowClasses,Qh as tableSortLabelClasses,Wh as tabsClasses,l as teal,Zh as textFieldClasses,ai as toggleButtonClasses,di as toggleButtonGroupClasses,Hh as toolbarClasses,Ag as tooltipClasses,sb as touchRippleClasses,Jb as typographyClasses,bb as unstable_ClassNameGenerator,_ as unstable_composeClasses,C as unstable_createBreakpoints,pa as unstable_createMuiStrictModeTheme,ra as unstable_getUnit,Ka as unstable_memoTheme,sa as unstable_toUnitless,Wa as unstable_useEnhancedEffect,Xa as unstable_useId,Ya as unsupportedProp,Sb as useAutocomplete,xa as useColorScheme,Za as useControlled,_a as useEventCallback,$a as useForkRef,bc as useFormControl,re as useMediaQuery,Jf as usePagination,Of as useRadioGroup,fi as useScrollTrigger,Mg as useStepContext,Kg as useStepperContext,ua as useTheme,va as useThemeProps,gi as version,Da as withStyles,Ea as withTheme,p as yellow}from'./chunk-PWYVYHTJ.modern.mjs';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import*as ue from'react';import ue__default,{useState,useRef,useMemo,useCallback,useEffect,useLayoutEffect,isValidElement,createElement,useId,Fragment as Fragment$1}from'react';import {ArrowLeft24Icon,ArrowRight24Icon}from'@SolaceDev/maas-icons';import {difference,groupBy,flatten,isEmpty,uniq,cloneDeep,isEqual}from'lodash';import {FixedSizeList}from'react-window';import {keyframes}from'@emotion/react';import {PanelGroup,Panel,PanelResizeHandle}from'react-resizable-panels';import eg from'react-dom/server';import {Link}from'react-router-dom';import ih from'@emotion/styled';import*as gu from'react-dom';var pc=a(Fa=>{Fa.__esModule=true;Fa.default=function(e,t){if(e&&t){var o=Array.isArray(t)?t:t.split(",");if(o.length===0)return true;var n=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return o.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):r===l})}return true};});function Cl(e$1){let t=ua$1(),o={success:jsx(c,{sx:{color:t.palette.ux.brand.wMain}}),error:jsx(b$3,{sx:{color:t.palette.ux.error.w100},fontSize:"inherit"}),info:jsx(d$1,{sx:{color:t.palette.ux.info.w100},fontSize:"inherit"}),warning:jsx(e,{sx:{color:t.palette.ux.warning.w100},fontSize:"inherit"})},{message:n,severity:r,open:a,action:i,autoDismiss:l=true,onClose:s}=e$1;return jsx(ug,{className:"alert-toast",open:a,message:r===void 0&&n,autoHideDuration:l?i?8e3:4e3:null,resumeHideDuration:1e3,onClose:(c,u)=>{s&&u!=="clickaway"&&s(c);},action:i,role:"status",anchorOrigin:{vertical:"bottom",horizontal:"center"},children:r&&jsx(Hb,{style:{padding:r?"0 16px 0 8px":"0 16px"},icon:o[r],severity:r,children:n})})}var fp=wa(me)(()=>({minHeight:"calc(100vh - 108px)"}));function vl(e){return jsxs(fp,{container:true,direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:[jsx(me,{item:true,children:jsxs(Ic$1,{display:"flex",flexDirection:"row",children:[jsx(f,{color:"error",fontSize:"large"}),jsx(Kb,{variant:"h4",children:"Access Required"})]})}),jsx(me,{item:true,children:jsx(Kb,{variant:"body1",children:`You do not have access to ${e.pageName}. To request access, please contact your Solace account representative.`})})]})}var mp=wa(xc$1)(({theme:e})=>({zIndex:e.zIndex.drawer+1,color:e.palette.ux.primary.text.w10}));function Tl(e){return jsx(mp,{...e,children:jsx(Db$1,{})})}var gp=wa(_h$1)(({theme:e})=>({marginTop:e.spacing(),marginBottom:e.spacing(.5),".MuiInputBase-root.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.ux.deprecated.secondary.wMain}}));function Rl({variant:e="outlined",fullWidth:t=true,...o}){let{InputProps:n,label:r,helperText:a,...i}=o,l=ua$1();return jsxs(Ic$1,{children:[jsx(Le,{required:o.required,color:"primary",disabled:o.disabled,error:o.error,sx:{color:l.palette.ux.secondary.text.wMain},children:r}),jsx(gp,{variant:e,fullWidth:t,InputProps:{...n,style:{paddingTop:"5px",paddingBottom:"5px"}},...i}),o.error&&jsx(he,{component:"div",error:true,role:"error",children:jsxs(Ic$1,{display:"flex",children:[jsx(g,{fontSize:"small",sx:{marginRight:l.spacing()}}),a]})})]})}var ke=24;function Pl(){return jsx("circle",{className:"SolaceRadioContainer",cx:ke/2,cy:ke/2,r:ke/2-2})}function Il(){return jsx(Na$1,{width:ke,height:ke,viewBox:`0 0 ${ke} ${ke}`,children:jsx(Pl,{})})}function Ll(){return jsxs(Na$1,{width:ke,height:ke,viewBox:`0 0 ${ke} ${ke}`,children:[jsx(Pl,{}),jsx("circle",{className:"SolaceRadioSelection",cx:ke/2,cy:ke/2,r:ke/4})]})}function bp({children:e,bold:t,large:o,disabled:n}){let r=ua$1(),a=o?r.typography.subtitle1:r.typography.body1;return jsx(Ic$1,{component:"span",sx:{fontSize:a.fontSize,lineHeight:"24px",fontWeight:t?"medium":"regular",color:n?r.palette.ux.secondary.text.w50:r.palette.ux.primary.text.wMain},children:e})}function Sp({id:e,name:t,label:o,value:n,title:r,subText:a,lightSubText:i=false,checked:l=false,required:s=false,disabled:c=false,largeLabel:u=false,onChange:d,dataQa:f,dataTags:p,readOnly:m=false}){let g=ua$1(),[C,x]=useState(l),S=Of();useEffect(()=>{x(l);},[l]),useEffect(()=>{S&&x(S.value===n);},[S,n]);let b=v=>{x(v.target.checked),d&&v.target.checked&&d({name:t,value:v.target.checked});};return e||(e=t),jsxs(Ic$1,{display:"grid",gridTemplateColumns:"auto 1fr",gridTemplateRows:"auto auto",alignItems:"center",children:[jsx(Rf$1,{id:`${e}-radio`,name:t,value:n,inputProps:{...o?{"aria-labelledby":`${e}-label`}:{},"data-qa":f,"data-tags":p},title:r,className:D({readOnly:m}),disabled:c||m,disableRipple:true,checked:C,onChange:b,icon:jsx(Il,{}),checkedIcon:jsx(Ll,{})}),o&&jsx(Ic$1,{children:jsx(Le,{id:`${e}-label`,htmlFor:`${e}-radio`,required:s,disabled:c,sx:{color:g.palette.ux.primary.text.wMain,cursor:c?"auto":"pointer"},children:jsx(bp,{bold:u||a!==void 0,large:u,disabled:c,children:o})})}),a&&jsx(Ic$1,{gridColumn:"2",gridRow:"2",children:jsx(le$1,{id:`${e}-subtext`,disabled:c,className:D({"light-sub-text":i,"radio-btn-label":true}),children:a})})]})}var Cp=Sp;var Ep={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1};function Rp({id:e,name:t,label:o,stackLabel:n=true,large:r=false,bold:a=false,value:i,helperText:l,hasErrors:s=false,readOnly:c=false,required:u=false,disabled:d=false,inlineLabel:f=false,inline:p=false,onChange:m,children:g}){let C=ua$1(),[x,S]=useState(i),b=useRef(null);useEffect(()=>{S(i);},[i]);let v=M=>{S(M.target.value),m&&m({name:t,value:M.target.value});};e||(e=t),useEffect(()=>{let M=b.current;if(!M)return;let E=M.querySelector(`input[value="${x}"]`)??M.querySelector("input");E&&E instanceof HTMLElement&&E.focus();},[x]);let P=useMemo(()=>ue__default.Children.toArray(g).filter(ue__default.isValidElement).map(M=>M.props.value).filter(M=>M!=null),[g]),R=M=>{if(d||c||P.length===0)return;let E=Ep[M.key]??0;if(E===0)return;M.preventDefault();let h=x?P.indexOf(x):0,T=(h+E+P.length)%P.length;if(T!==h){let w=P[T];S(w),m?.({name:t,value:w});}},I=()=>{let M=g.map((E,h)=>jsx(me,{item:true,children:E},h));return jsx(Ic$1,{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",children:jsx(Uf,{"aria-label":t,name:t,role:"radiogroup",value:x,onChange:v,onKeyDown:R,ref:b,children:jsx(me,{container:true,spacing:p?4.5:1.5,direction:p?"row":"column",children:M})})})};return jsx(b$4,{id:e,label:o,stackLabel:n,large:r,bold:a,helperText:l,errorText:s?l:void 0,disabled:d,readOnly:c,required:u,inlineLabel:f,children:jsx(Ic$1,{sx:{marginTop:f?0:C.spacing(1),marginBottom:s?C.spacing(1.25):0},children:I()})})}var Pp=Rp;var Ip={xs:12,sm:18,md:24,lg:30},Lp={xs:20,sm:30,md:40,lg:50};function Ol({label:e,variant:t="filled",disabled:o=false,maxWidth:n="100%",dashedBorder:r=false,borderColor:a,labelColor:i,borderRadius:l="md",fillColor:s,boldLabel:c=true,height:u="sm",dataQa:d,size:f="xs",compressed:p=false,clickable:m=false,onDelete:g}){let C=ua$1().palette.ux.deprecated.chip;return jsx($b$1,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&C[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${Lp[l]}px`,fontWeight:`${c?500:400}`,height:`${Ip[u]}px`,backgroundColor:`${s&&C[s]}`,color:`${i&&C[i]}`,paddingLeft:`${p?"0px":"2px"}`,paddingRight:`${p?"0px":"2px"}`},label:e,variant:t,size:p?"small":"medium",disabled:o,clickable:m,onDelete:g,deleteIcon:jsx(h,{}),"data-qa":d,className:"solaceAttributeBadge"})}var Dl=(o=>(o.LIGHT_MODE="lightMode",o.DARK_MODE="darkMode",o))(Dl||{});var Mp=(x=>(x.ROYAL_BLUE="royalBlue",x.DARK_BLUE="darkBlue",x.OPAQUE_BLUE="opaqueBlue",x.infoBlue="infoBlue",x.infoBgBlue="infoBgBlue",x.warnYellow="warnYellow",x.warnBgYellow="warnBgYellow",x.LIGHT_GREY="lightGrey",x.SMOKE_GREY="smokeGrey",x.DARK_GREY="darkGrey",x.WHITE="white",x.INFO_LIGHT_BG_BLUE="infoLightBgBlue",x.ERROR_BG_RED="errorBgRed",x.SUCCESS_BG_GREEN="successBgGreen",x.INFO_BLUE_LABEL="infoLightLabelBlue",x.ERROR_RED_LABEL="errorLabel",x.SUCCESS_GREEN_LABEL="successLabel",x))(Mp||{}),Vn=(o=>(o.FILLED="filled",o.OUTLINED="outlined",o))(Vn||{}),zn={xs:14,sm:18,md:24,lg:30},Xn={xs:2,sm:3,md:4,lg:5};var $l=(a=>(a.NO_STATUS="",a.SUCCESS_STATUS="successStatus",a.INFO_STATUS="infoStatus",a.WARN_STATUS="warnStatus",a.ERROR_STATUS="errorStatus",a))($l||{});var Nl=(o=>(o.NOT_SELECTED="notSelectedState",o.ACTIVE="activeState",o))(Nl||{});function Tt({label:e,variant:t="filled",disabled:o=false,maxWidth:n="100%",dashedBorder:r=false,borderColor:a,labelColor:i,borderRadius:l="md",fillColor:s,boldLabel:c=false,height:u="md",dataQa:d$1,size:f="sm",compressed:p=false,clickable:m=false,mode:g="lightMode",status:C="",state:x="notSelectedState",icon:S,onDelete:b,onClick:v}){let P=ua$1().palette.ux.deprecated.chip,R=ua$1();return jsx($b$1,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&P[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${Xn[l]}px`,fontWeight:`${c?500:400}`,height:`${zn[u]}px`,backgroundColor:`${s&&P[s]}`,color:`${i&&P[i]}`,paddingLeft:`${p?"0px":"2px"}`,paddingRight:`${p?"0px":"2px"}`},label:e,variant:t,size:p?"small":"medium",disabled:o,clickable:m,onDelete:b,deleteIcon:jsx(h,{}),"data-qa":d$1,className:`solaceChip ${g} ${C} ${x}`,onClick:v,icon:jsxs(Fragment,{children:[S&&jsx("span",{className:"leadingIcon",children:S}),C==="errorStatus"&&jsxs("span",{className:"errorIcon",children:[" ",jsx(d,{size:14,fill:R.palette.ux.error.w100})," "]})]})})}function Fl({label:e,variant:t="filled",maxWidth:o="100%",fillColor:n,borderColor:r,labelColor:a,clickable:i=false,icon:l,dataQa:s}){let c=ua$1().palette.ux.deprecated.chip;return jsx($b$1,{sx:{maxWidth:typeof o=="number"?`${o}px`:o,fontSize:`${ni$1.xs}px`,borderColor:`${r&&c[r]} !important`,borderRadius:`${Xn.xs}px`,fontWeight:400,height:`${zn.sm}px`,backgroundColor:`${n&&c[n]} !important`,color:`${a&&c[a]} !important`,paddingLeft:"2px",paddingRight:"2px"},label:e,variant:t,size:"medium",clickable:i,"data-qa":s,className:"solaceTag",icon:jsx(Fragment,{children:l&&jsx("span",{className:"leadingIcon",children:l})})})}var Te=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("path",{d:"M18.0899 16.4598C18.4804 16.8503 18.4804 17.4834 18.0899 17.874C17.6994 18.2645 17.0662 18.2645 16.6757 17.874L11.9331 12.7171L7.19041 17.874C6.79988 18.2645 6.16672 18.2645 5.77619 17.874C5.38567 17.4834 5.38567 16.8503 5.77619 16.4598L10.5188 11.3029L5.77619 6.56026C5.38567 6.16973 5.38567 5.53657 5.77619 5.14604C6.16672 4.75552 6.79988 4.75552 7.19041 5.14604L11.9331 9.88869L16.6757 5.14604C17.0662 4.75552 17.6994 4.75552 18.0899 5.14604C18.4804 5.53657 18.4804 6.16973 18.0899 6.56026L13.3473 11.3029L18.0899 16.4598Z",fill:t||o.palette.ux.secondary.wMain})})};var qr=()=>c$1.GridListItemHeight,Ht=()=>c$1.closeButtonAriaLabel,Vl=()=>c$1.actionMenuAriaLabel;var Op=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:"100%",backgroundColor:e.palette.ux.error.w10,borderRadius:"2px",borderLeft:`3px solid ${e.palette.ux.error.w100}`,paddingRight:"4px",color:e.palette.ux.error.w100})),Dp=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(),padding:e.spacing()}));function $p({message:e,showErrorIcon:t=true,showCloseButton:o=false,onClose:n}){let r=ua$1(),[a,i]=ue__default.useState(true),l=()=>{i(false),n?.();};return a?jsxs(Op,{children:[jsxs(Dp,{children:[t&&jsx(d,{size:20,fill:r.palette.ux.error.w100}),e]}),o&&jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:l,children:jsx(Te,{size:24})})]}):null}var Np=$p;function Yr({size:e,fill:t}){return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsx("path",{d:`M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M12,20c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8S16.4,20,12,20
1
+ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.modern.mjs';import {a as a$1,h,e,d as d$1,b as b$3,c,f,g,m,l,j,i,k}from'./chunk-NANSEALM.modern.mjs';export{a as SelectDropdownIcon,l as SolaceCheckBox,n as SolaceSelect,o as SolaceTextArea,m as SolaceTypography}from'./chunk-NANSEALM.modern.mjs';import {b as b$2}from'./chunk-LWCJ2SGT.modern.mjs';export{b as SolaceButton,a as initializeDataTrackingApi}from'./chunk-LWCJ2SGT.modern.mjs';import {b as b$4,c as c$1,d as d$2}from'./chunk-IA5QZKDN.modern.mjs';export{a as SolaceLabel,d as SolaceTextField}from'./chunk-IA5QZKDN.modern.mjs';import {b as b$1,a as a$2,d,e as e$1,f as f$1}from'./chunk-Q6DR3MQK.modern.mjs';export{b as SolaceTooltip,a as TooltipVariant}from'./chunk-Q6DR3MQK.modern.mjs';export{a as SolaceStackLabel}from'./chunk-X4JIJBMX.modern.mjs';import {a,wa,me,xc as xc$1,_h as _h$1,ni as ni$1,Ic as Ic$1,ec as ec$1,pi as pi$1,Re,ei as ei$1,b,y,X,ba,H,V,U,T,aa,_,W,$,Z,ua as ua$1,$b as $b$1,E,Y,ug,Hb,Kb,Db as Db$1,Le,he,Of,Rf as Rf$1,D,le as le$1,Na as Na$1,Xh as Xh$1,Td,Gb,Ad as Ad$1,Md,Id,Ld,Dd as Dd$1,yf as yf$1,hf as hf$1,vf,Pd,Yb,sf as sf$1,kh as kh$1,Nf as Nf$1,Mf as Mf$1,P,kb as kb$1,yb,qb,Ig,Lc as Lc$1,bi,Oe,Ue,bf as bf$1,Ze as Ze$1,Qc as Qc$1,gh as gh$1,Zg as Zg$1,Wg,Qg as Qg$1,Bg as Bg$1,Wc as Wc$1,dd,ad as ad$1,bg,Uf,nc,nh as nh$1,Ac as Ac$1}from'./chunk-PWYVYHTJ.modern.mjs';export{kb as Accordion,nb as AccordionActions,qb as AccordionDetails,yb as AccordionSummary,Hb as Alert,Nb as AlertTitle,Qb as AppBar,nc as Autocomplete,qc as Avatar,tc as AvatarGroup,xc as Backdrop,Ac as Badge,Dc as BottomNavigation,Gc as BottomNavigationAction,Ic as Box,Lc as Breadcrumbs,Qc as Button,vb as ButtonBase,Tc as ButtonGroup,Pc as ButtonGroupButtonContext,Oc as ButtonGroupContext,Wc as Card,Zc as CardActionArea,ad as CardActions,dd as CardContent,gd as CardHeader,jd as CardMedia,md as Checkbox,$b as Chip,Db as CircularProgress,nd as ClickAwayListener,eb as Collapse,od as Container,rd as CssBaseline,Aa as CssVarsProvider,mi as DEFAULT_BASE_SIZE,Ad as Dialog,Dd as DialogActions,Id as DialogContent,Ld as DialogContentText,Md as DialogTitle,Pd as Divider,Td as Drawer,ya as Experimental_CssVarsProvider,Wd as Fab,uc as Fade,Xd as FilledInput,_d as FormControl,be as FormControlLabel,ee as FormGroup,he as FormHelperText,le as FormLabel,ke as FormLabelRoot,Ja as GlobalStyles,me as Grid,ne as Grid2,qe as Grow,se as Hidden,ve as Icon,Gb as IconButton,ye as ImageList,Be as ImageListItem,Ee as ImageListItemBar,Fe as Input,Ie as InputAdornment,ec as InputBase,Le as InputLabel,Oe as LinearProgress,Re as Link,Ue as List,bf as ListItem,ef as ListItemAvatar,Ze as ListItemButton,hf as ListItemIcon,af as ListItemSecondaryAction,kf as ListItemText,Yb as ListSubheader,vf as Menu,yf as MenuItem,lf as MenuList,Bf as MobileStepper,xd as Modal,td as ModalManager,Ef as NativeSelect,Ff as NoSsr,Gf as OutlinedInput,Nf as Pagination,Mf as PaginationItem,hb as Paper,sf as Popover,rf as PopoverPaper,qf as PopoverRoot,Vb as Popper,Tb as Portal,Rf as Radio,Uf as RadioGroup,Xf as Rating,_f as ScopedCssBaseline,bg as Select,eg as Skeleton,Qd as Slide,og as Slider,mg as SliderMark,ng as SliderMarkLabel,ig as SliderRail,hg as SliderRoot,kg as SliderThumb,jg as SliderTrack,lg as SliderValueLabel,ug as Snackbar,rg as SnackbarContent,ri as SolaceTheme,yg as SpeedDial,Eg as SpeedDialAction,Hg as SpeedDialIcon,Ig as Stack,Qg as Step,Zg as StepButton,ah as StepConnector,dh as StepContent,Ng as StepContext,Tg as StepIcon,Wg as StepLabel,gh as Stepper,Lg as StepperContext,z as StyledEngineProvider,oi as SupportedThemes,Na as SvgIcon,hh as SwipeableDrawer,kh as Switch,x as THEME_ID,nh as Tab,Uh as TabScrollButton,qh as Table,th as TableBody,wh as TableCell,zh as TableContainer,Ch as TableFooter,Fh as TableHead,Lh as TablePagination,Oh as TableRow,Rh as TableSortLabel,Xh as Tabs,_h as TextField,ac as TextareaAutosize,Ba as ThemeProvider,bi as ToggleButton,ei as ToggleButtonGroup,Ih as Toolbar,Bg as Tooltip,Kb as Typography,ud as Unstable_TrapFocus,vg as Zoom,mb as accordionActionsClasses,jb as accordionClasses,pb as accordionDetailsClasses,xb as accordionSummaryClasses,ca as adaptV4Theme,Ab as alertClasses,Mb as alertTitleClasses,P as alpha,q as amber,Pb as appBarClasses,mc as autocompleteClasses,pc as avatarClasses,sc as avatarGroupClasses,wc as backdropClasses,zc as badgeClasses,i as blue,v as blueGrey,Fc as bottomNavigationActionClasses,Cc as bottomNavigationClasses,Hc as boxClasses,Kc as breadcrumbsClasses,t as brown,ub as buttonBaseClasses,Nc as buttonClasses,Sc as buttonGroupClasses,Ha as capitalize,Yc as cardActionAreaClasses,$c as cardActionsClasses,Vc as cardClasses,cd as cardContentClasses,fd as cardHeaderClasses,id as cardMediaClasses,ld as checkboxClasses,_b as chipClasses,Cb as circularProgressClasses,db as collapseClasses,w as colors,c as common,qd as containerClasses,Ia as createChainedFunction,ka as createColorScheme,Rb as createFilterOptions,ia as createMuiTheme,qa as createStyles,Oa as createSvgIcon,oa as createTheme,ha as createTransitions,B as css,k as cyan,sd as darkScrollbar,Q as darken,Pa as debounce,J as decomposeColor,s as deepOrange,g as deepPurple,Qa as deprecatedPropType,Cd as dialogActionsClasses,zd as dialogClasses,Fd as dialogContentClasses,Kd as dialogContentTextClasses,Hd as dialogTitleClasses,Od as dividerClasses,Sd as drawerClasses,ga as duration,fa as easing,S as emphasize,wa as experimentalStyled,Fa as experimental_extendTheme,Ga as experimental_sx,na as extendTheme,Vd as fabClasses,kc as filledInputClasses,Zd as formControlClasses,ae as formControlLabelClasses,de as formGroupClasses,ge as formHelperTextClasses,je as formLabelClasses,F as generateUtilityClass,G as generateUtilityClasses,lb as getAccordionActionsUtilityClass,ob as getAccordionDetailsUtilityClass,wb as getAccordionSummaryUtilityClass,ib as getAccordionUtilityClass,Lb as getAlertTitleUtilityClass,zb as getAlertUtilityClass,Ob as getAppBarUtilityClass,lc as getAutocompleteUtilityClass,rc as getAvatarGroupUtilityClass,oc as getAvatarUtilityClass,vc as getBackdropUtilityClass,yc as getBadgeUtilityClass,Ec as getBottomNavigationActionUtilityClass,Bc as getBottomNavigationUtilityClass,Jc as getBreadcrumbsUtilityClass,tb as getButtonBaseUtilityClass,Rc as getButtonGroupUtilityClass,Mc as getButtonUtilityClass,Xc as getCardActionAreaUtilityClass,_c as getCardActionsUtilityClass,bd as getCardContentUtilityClass,ed as getCardHeaderUtilityClass,hd as getCardMediaUtilityClass,Uc as getCardUtilityClass,kd as getCheckboxUtilityClass,Zb as getChipUtilityClass,Bb as getCircularProgressUtilityClass,cb as getCollapseUtilityClass,pd as getContainerUtilityClass,O as getContrastRatio,Bd as getDialogActionsUtilityClass,Jd as getDialogContentTextUtilityClass,Ed as getDialogContentUtilityClass,Gd as getDialogTitleUtilityClass,yd as getDialogUtilityClass,Nd as getDividerUtilityClass,Rd as getDrawerUtilityClass,Ud as getFabUtilityClass,jc as getFilledInputUtilityClass,$d as getFormControlLabelUtilityClasses,Yd as getFormControlUtilityClasses,ce as getFormGroupUtilityClass,fe as getFormHelperTextUtilityClasses,ie as getFormLabelUtilityClasses,oe as getGrid2UtilityClass,Eb as getIconButtonUtilityClass,te as getIconUtilityClass,Ce as getImageListItemBarUtilityClass,ze as getImageListItemUtilityClass,we as getImageListUtilityClass,za as getInitColorSchemeScript,Ge as getInputAdornmentUtilityClass,cc as getInputBaseUtilityClass,Je as getInputLabelUtilityClasses,fc as getInputUtilityClass,Me as getLinearProgressUtilityClass,Pe as getLinkUtilityClass,cf as getListItemAvatarUtilityClass,Xe as getListItemButtonUtilityClass,ff as getListItemIconUtilityClass,_e as getListItemSecondaryActionClassesUtilityClass,if as getListItemTextUtilityClass,Ve as getListItemUtilityClass,Wb as getListSubheaderUtilityClass,Se as getListUtilityClass,N as getLuminance,wf as getMenuItemUtilityClass,tf as getMenuUtilityClass,zf as getMobileStepperUtilityClass,vd as getModalUtilityClass,Cf as getNativeSelectUtilityClasses,pf as getOffsetLeft,of as getOffsetTop,hc as getOutlinedInputUtilityClass,ja as getOverlayAlpha,Kf as getPaginationItemUtilityClass,Hf as getPaginationUtilityClass,fb as getPaperUtilityClass,mf as getPopoverUtilityClass,Ub as getPopperUtilityClass,Sf as getRadioGroupUtilityClass,Pf as getRadioUtilityClass,Vf as getRatingUtilityClass,Yf as getScopedCssBaselineUtilityClass,$f as getSelectUtilityClasses,cg as getSkeletonUtilityClass,fg as getSliderUtilityClass,pg as getSnackbarContentUtilityClass,sg as getSnackbarUtilityClass,Cg as getSpeedDialActionUtilityClass,Fg as getSpeedDialIconUtilityClass,wg as getSpeedDialUtilityClass,Xg as getStepButtonUtilityClass,_g as getStepConnectorUtilityClass,bh as getStepContentUtilityClass,Rg as getStepIconUtilityClass,Ug as getStepLabelUtilityClass,Og as getStepUtilityClass,eh as getStepperUtilityClass,La as getSvgIconUtilityClass,ih as getSwitchUtilityClass,Sh as getTabScrollButtonUtilityClass,lh as getTabUtilityClass,rh as getTableBodyUtilityClass,uh as getTableCellUtilityClass,xh as getTableContainerUtilityClass,Ah as getTableFooterUtilityClass,Dh as getTableHeadUtilityClass,Jh as getTablePaginationUtilityClass,Mh as getTableRowUtilityClass,Ph as getTableSortLabelUtilityClass,oh as getTableUtilityClass,Vh as getTabsUtilityClass,Yh as getTextFieldUtilityClass,qi as getThemeMappings,ci as getToggleButtonGroupUtilityClass,$h as getToggleButtonUtilityClass,Gh as getToolbarUtilityClass,zg as getTooltipUtilityClass,rb as getTouchRippleUtilityClass,Ib as getTypographyUtilityClass,m as green,u as grey,pe as grid2Classes,I as hexToRgb,M as hslToRgb,Fb as iconButtonClasses,ue as iconClasses,xe as imageListClasses,De as imageListItemBarClasses,Ae as imageListItemClasses,h as indigo,He as inputAdornmentClasses,dc as inputBaseClasses,gc as inputClasses,Ke as inputLabelClasses,Ra as isMuiElement,A as keyframes,j as lightBlue,n as lightGreen,R as lighten,o as lime,Ne as linearProgressClasses,Qe as linkClasses,Te as listClasses,df as listItemAvatarClasses,Ye as listItemButtonClasses,We as listItemClasses,gf as listItemIconClasses,$e as listItemSecondaryActionClasses,jf as listItemTextClasses,Xb as listSubheaderClasses,hi as major,Ca as makeStyles,uf as menuClasses,xf as menuItemClasses,ab as mergeSlotProps,ii as minor,Af as mobileStepperClasses,wd as modalClasses,Df as nativeSelectClasses,r as orange,ic as outlinedInputClasses,Sa as ownerDocument,Ta as ownerWindow,If as paginationClasses,Lf as paginationItemClasses,gb as paperClasses,ji as patch,e as pink,nf as popoverClasses,ki as prerelease,da as private_createMixins,ea as private_createTypography,ma as private_excludeVariablesFromRoot,f as purple,Qf as radioClasses,Tf as radioGroupClasses,Wf as ratingClasses,K as recomposeColor,d as red,Ua as requirePropFactory,ta as responsiveFontSizes,L as rgbToHex,Zf as scopedCssBaselineClasses,ag as selectClasses,Va as setRef,la as shouldSkipGeneratingVar,dg as skeletonClasses,gg as sliderClasses,tg as snackbarClasses,qg as snackbarContentClasses,Dg as speedDialActionClasses,xg as speedDialClasses,Gg as speedDialIconClasses,Jg as stackClasses,Yg as stepButtonClasses,Pg as stepClasses,$g as stepConnectorClasses,ch as stepContentClasses,Sg as stepIconClasses,Vg as stepLabelClasses,fh as stepperClasses,wa as styled,Ma as svgIconClasses,jh as switchClasses,mh as tabClasses,Th as tabScrollButtonClasses,sh as tableBodyClasses,vh as tableCellClasses,ph as tableClasses,yh as tableContainerClasses,Bh as tableFooterClasses,Eh as tableHeadClasses,Kh as tablePaginationClasses,Nh as tableRowClasses,Qh as tableSortLabelClasses,Wh as tabsClasses,l as teal,Zh as textFieldClasses,ai as toggleButtonClasses,di as toggleButtonGroupClasses,Hh as toolbarClasses,Ag as tooltipClasses,sb as touchRippleClasses,Jb as typographyClasses,bb as unstable_ClassNameGenerator,_ as unstable_composeClasses,C as unstable_createBreakpoints,pa as unstable_createMuiStrictModeTheme,ra as unstable_getUnit,Ka as unstable_memoTheme,sa as unstable_toUnitless,Wa as unstable_useEnhancedEffect,Xa as unstable_useId,Ya as unsupportedProp,Sb as useAutocomplete,xa as useColorScheme,Za as useControlled,_a as useEventCallback,$a as useForkRef,bc as useFormControl,re as useMediaQuery,Jf as usePagination,Of as useRadioGroup,fi as useScrollTrigger,Mg as useStepContext,Kg as useStepperContext,ua as useTheme,va as useThemeProps,gi as version,Da as withStyles,Ea as withTheme,p as yellow}from'./chunk-PWYVYHTJ.modern.mjs';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import*as ue from'react';import ue__default,{useState,useRef,useMemo,useCallback,useEffect,useLayoutEffect,isValidElement,createElement,useId,Fragment as Fragment$1}from'react';import {ArrowLeft24Icon,ArrowRight24Icon}from'@SolaceDev/maas-icons';import {difference,groupBy,flatten,isEmpty,uniq,cloneDeep,isEqual}from'lodash';import {FixedSizeList}from'react-window';import {keyframes}from'@emotion/react';import {PanelGroup,Panel,PanelResizeHandle}from'react-resizable-panels';import eg from'react-dom/server';import {Link}from'react-router-dom';import ih from'@emotion/styled';import*as gu from'react-dom';var pc=a(Fa=>{Fa.__esModule=true;Fa.default=function(e,t){if(e&&t){var o=Array.isArray(t)?t:t.split(",");if(o.length===0)return true;var n=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return o.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):r===l})}return true};});function Cl(e$1){let t=ua$1(),o={success:jsx(c,{sx:{color:t.palette.ux.brand.wMain}}),error:jsx(b$3,{sx:{color:t.palette.ux.error.w100},fontSize:"inherit"}),info:jsx(d$1,{sx:{color:t.palette.ux.info.w100},fontSize:"inherit"}),warning:jsx(e,{sx:{color:t.palette.ux.warning.w100},fontSize:"inherit"})},{message:n,severity:r,open:a,action:i,autoDismiss:l=true,onClose:s}=e$1;return jsx(ug,{className:"alert-toast",open:a,message:r===void 0&&n,autoHideDuration:l?i?8e3:4e3:null,resumeHideDuration:1e3,onClose:(c,p)=>{s&&p!=="clickaway"&&s(c);},action:i,role:"status",anchorOrigin:{vertical:"bottom",horizontal:"center"},children:r&&jsx(Hb,{style:{padding:r?"0 16px 0 8px":"0 16px"},icon:o[r],severity:r,children:n})})}var fp=wa(me)(()=>({minHeight:"calc(100vh - 108px)"}));function vl(e){return jsxs(fp,{container:true,direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:[jsx(me,{item:true,children:jsxs(Ic$1,{display:"flex",flexDirection:"row",children:[jsx(f,{color:"error",fontSize:"large"}),jsx(Kb,{variant:"h4",children:"Access Required"})]})}),jsx(me,{item:true,children:jsx(Kb,{variant:"body1",children:`You do not have access to ${e.pageName}. To request access, please contact your Solace account representative.`})})]})}var mp=wa(xc$1)(({theme:e})=>({zIndex:e.zIndex.drawer+1,color:e.palette.ux.primary.text.w10}));function Tl(e){return jsx(mp,{...e,children:jsx(Db$1,{})})}var gp=wa(_h$1)(({theme:e})=>({marginTop:e.spacing(),marginBottom:e.spacing(.5),".MuiInputBase-root.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.ux.deprecated.secondary.wMain}}));function Rl({variant:e="outlined",fullWidth:t=true,...o}){let{InputProps:n,label:r,helperText:a,...i}=o,l=ua$1();return jsxs(Ic$1,{children:[jsx(Le,{required:o.required,color:"primary",disabled:o.disabled,error:o.error,sx:{color:l.palette.ux.secondary.text.wMain},children:r}),jsx(gp,{variant:e,fullWidth:t,InputProps:{...n,style:{paddingTop:"5px",paddingBottom:"5px"}},...i}),o.error&&jsx(he,{component:"div",error:true,role:"error",children:jsxs(Ic$1,{display:"flex",children:[jsx(g,{fontSize:"small",sx:{marginRight:l.spacing()}}),a]})})]})}var ke=24;function Pl(){return jsx("circle",{className:"SolaceRadioContainer",cx:ke/2,cy:ke/2,r:ke/2-2})}function Il(){return jsx(Na$1,{width:ke,height:ke,viewBox:`0 0 ${ke} ${ke}`,children:jsx(Pl,{})})}function Ll(){return jsxs(Na$1,{width:ke,height:ke,viewBox:`0 0 ${ke} ${ke}`,children:[jsx(Pl,{}),jsx("circle",{className:"SolaceRadioSelection",cx:ke/2,cy:ke/2,r:ke/4})]})}function bp({children:e,bold:t,large:o,disabled:n}){let r=ua$1(),a=o?r.typography.subtitle1:r.typography.body1;return jsx(Ic$1,{component:"span",sx:{fontSize:a.fontSize,lineHeight:"24px",fontWeight:t?"medium":"regular",color:n?r.palette.ux.secondary.text.w50:r.palette.ux.primary.text.wMain},children:e})}function Sp({id:e,name:t,label:o,value:n,title:r,subText:a,lightSubText:i=false,checked:l=false,required:s=false,disabled:c=false,largeLabel:p=false,onChange:d,dataQa:f,dataTags:u,readOnly:m=false}){let g=ua$1(),[x,b]=useState(l),C=Of();useEffect(()=>{b(l);},[l]),useEffect(()=>{C&&b(C.value===n);},[C,n]);let S=v=>{b(v.target.checked),d&&v.target.checked&&d({name:t,value:v.target.checked});};return e||(e=t),jsxs(Ic$1,{display:"grid",gridTemplateColumns:"auto 1fr",gridTemplateRows:"auto auto",alignItems:"center",children:[jsx(Rf$1,{id:`${e}-radio`,name:t,value:n,inputProps:{...o?{"aria-labelledby":`${e}-label`}:{},"data-qa":f,"data-tags":u},title:r,className:D({readOnly:m}),disabled:c||m,disableRipple:true,checked:x,onChange:S,icon:jsx(Il,{}),checkedIcon:jsx(Ll,{})}),o&&jsx(Ic$1,{children:jsx(Le,{id:`${e}-label`,htmlFor:`${e}-radio`,required:s,disabled:c,sx:{color:g.palette.ux.primary.text.wMain,cursor:c?"auto":"pointer"},children:jsx(bp,{bold:p||a!==void 0,large:p,disabled:c,children:o})})}),a&&jsx(Ic$1,{gridColumn:"2",gridRow:"2",children:jsx(le$1,{id:`${e}-subtext`,disabled:c,className:D({"light-sub-text":i,"radio-btn-label":true}),children:a})})]})}var Cp=Sp;var Ep={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1};function Rp({id:e,name:t,label:o,stackLabel:n=true,large:r=false,bold:a=false,value:i,helperText:l,hasErrors:s=false,readOnly:c=false,required:p=false,disabled:d=false,inlineLabel:f=false,inline:u=false,onChange:m,children:g}){let x=ua$1(),[b,C]=useState(i),S=useRef(null);useEffect(()=>{C(i);},[i]);let v=M=>{C(M.target.value),m&&m({name:t,value:M.target.value});};e||(e=t),useEffect(()=>{let M=S.current;if(!M)return;let E=M.querySelector(`input[value="${b}"]`)??M.querySelector("input");E&&E instanceof HTMLElement&&E.focus();},[b]);let P=useMemo(()=>ue__default.Children.toArray(g).filter(ue__default.isValidElement).map(M=>M.props.value).filter(M=>M!=null),[g]),R=M=>{if(d||c||P.length===0)return;let E=Ep[M.key]??0;if(E===0)return;M.preventDefault();let h=b?P.indexOf(b):0,T=(h+E+P.length)%P.length;if(T!==h){let w=P[T];C(w),m?.({name:t,value:w});}},I=()=>{let M=g.map((E,h)=>jsx(me,{item:true,children:E},h));return jsx(Ic$1,{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",children:jsx(Uf,{"aria-label":t,name:t,role:"radiogroup",value:b,onChange:v,onKeyDown:R,ref:S,children:jsx(me,{container:true,spacing:u?4.5:1.5,direction:u?"row":"column",children:M})})})};return jsx(b$4,{id:e,label:o,stackLabel:n,large:r,bold:a,helperText:l,errorText:s?l:void 0,disabled:d,readOnly:c,required:p,inlineLabel:f,children:jsx(Ic$1,{sx:{marginTop:f?0:x.spacing(1),marginBottom:s?x.spacing(1.25):0},children:I()})})}var Pp=Rp;var Ip={xs:12,sm:18,md:24,lg:30},Lp={xs:20,sm:30,md:40,lg:50};function Ol({label:e,variant:t="filled",disabled:o=false,maxWidth:n="100%",dashedBorder:r=false,borderColor:a,labelColor:i,borderRadius:l="md",fillColor:s,boldLabel:c=true,height:p="sm",dataQa:d,size:f="xs",compressed:u=false,clickable:m=false,onDelete:g}){let x=ua$1().palette.ux.deprecated.chip;return jsx($b$1,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&x[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${Lp[l]}px`,fontWeight:`${c?500:400}`,height:`${Ip[p]}px`,backgroundColor:`${s&&x[s]}`,color:`${i&&x[i]}`,paddingLeft:`${u?"0px":"2px"}`,paddingRight:`${u?"0px":"2px"}`},label:e,variant:t,size:u?"small":"medium",disabled:o,clickable:m,onDelete:g,deleteIcon:jsx(h,{}),"data-qa":d,className:"solaceAttributeBadge"})}var Dl=(o=>(o.LIGHT_MODE="lightMode",o.DARK_MODE="darkMode",o))(Dl||{});var Mp=(b=>(b.ROYAL_BLUE="royalBlue",b.DARK_BLUE="darkBlue",b.OPAQUE_BLUE="opaqueBlue",b.infoBlue="infoBlue",b.infoBgBlue="infoBgBlue",b.warnYellow="warnYellow",b.warnBgYellow="warnBgYellow",b.LIGHT_GREY="lightGrey",b.SMOKE_GREY="smokeGrey",b.DARK_GREY="darkGrey",b.WHITE="white",b.INFO_LIGHT_BG_BLUE="infoLightBgBlue",b.ERROR_BG_RED="errorBgRed",b.SUCCESS_BG_GREEN="successBgGreen",b.INFO_BLUE_LABEL="infoLightLabelBlue",b.ERROR_RED_LABEL="errorLabel",b.SUCCESS_GREEN_LABEL="successLabel",b))(Mp||{}),Vn=(o=>(o.FILLED="filled",o.OUTLINED="outlined",o))(Vn||{}),zn={xs:14,sm:18,md:24,lg:30},Xn={xs:2,sm:3,md:4,lg:5};var $l=(a=>(a.NO_STATUS="",a.SUCCESS_STATUS="successStatus",a.INFO_STATUS="infoStatus",a.WARN_STATUS="warnStatus",a.ERROR_STATUS="errorStatus",a))($l||{});var Nl=(o=>(o.NOT_SELECTED="notSelectedState",o.ACTIVE="activeState",o))(Nl||{});function Tt({label:e,variant:t="filled",disabled:o=false,maxWidth:n="100%",dashedBorder:r=false,borderColor:a,labelColor:i,borderRadius:l="md",fillColor:s,boldLabel:c=false,height:p="md",dataQa:d$1,size:f="sm",compressed:u=false,clickable:m=false,mode:g="lightMode",status:x="",state:b="notSelectedState",icon:C,onDelete:S,onClick:v}){let P=ua$1().palette.ux.deprecated.chip,R=ua$1();return jsx($b$1,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&P[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${Xn[l]}px`,fontWeight:`${c?500:400}`,height:`${zn[p]}px`,backgroundColor:`${s&&P[s]}`,color:`${i&&P[i]}`,paddingLeft:`${u?"0px":"2px"}`,paddingRight:`${u?"0px":"2px"}`},label:e,variant:t,size:u?"small":"medium",disabled:o,clickable:m,onDelete:S,deleteIcon:jsx(h,{}),"data-qa":d$1,className:`solaceChip ${g} ${x} ${b}`,onClick:v,icon:jsxs(Fragment,{children:[C&&jsx("span",{className:"leadingIcon",children:C}),x==="errorStatus"&&jsxs("span",{className:"errorIcon",children:[" ",jsx(d,{size:14,fill:R.palette.ux.error.w100})," "]})]})})}function Fl({label:e,variant:t="filled",maxWidth:o="100%",fillColor:n,borderColor:r,labelColor:a,clickable:i=false,icon:l,dataQa:s}){let c=ua$1().palette.ux.deprecated.chip;return jsx($b$1,{sx:{maxWidth:typeof o=="number"?`${o}px`:o,fontSize:`${ni$1.xs}px`,borderColor:`${r&&c[r]} !important`,borderRadius:`${Xn.xs}px`,fontWeight:400,height:`${zn.sm}px`,backgroundColor:`${n&&c[n]} !important`,color:`${a&&c[a]} !important`,paddingLeft:"2px",paddingRight:"2px"},label:e,variant:t,size:"medium",clickable:i,"data-qa":s,className:"solaceTag",icon:jsx(Fragment,{children:l&&jsx("span",{className:"leadingIcon",children:l})})})}var Te=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("path",{d:"M18.0899 16.4598C18.4804 16.8503 18.4804 17.4834 18.0899 17.874C17.6994 18.2645 17.0662 18.2645 16.6757 17.874L11.9331 12.7171L7.19041 17.874C6.79988 18.2645 6.16672 18.2645 5.77619 17.874C5.38567 17.4834 5.38567 16.8503 5.77619 16.4598L10.5188 11.3029L5.77619 6.56026C5.38567 6.16973 5.38567 5.53657 5.77619 5.14604C6.16672 4.75552 6.79988 4.75552 7.19041 5.14604L11.9331 9.88869L16.6757 5.14604C17.0662 4.75552 17.6994 4.75552 18.0899 5.14604C18.4804 5.53657 18.4804 6.16973 18.0899 6.56026L13.3473 11.3029L18.0899 16.4598Z",fill:t||o.palette.ux.secondary.wMain})})};var qr=()=>c$1.GridListItemHeight,Ht=()=>c$1.closeButtonAriaLabel,Vl=()=>c$1.actionMenuAriaLabel;var Op=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:"100%",backgroundColor:e.palette.ux.error.w10,borderRadius:"2px",borderLeft:`3px solid ${e.palette.ux.error.w100}`,paddingRight:"4px",color:e.palette.ux.error.w100})),Dp=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(),padding:e.spacing()}));function $p({message:e,showErrorIcon:t=true,showCloseButton:o=false,onClose:n}){let r=ua$1(),[a,i]=ue__default.useState(true),l=()=>{i(false),n?.();};return a?jsxs(Op,{children:[jsxs(Dp,{children:[t&&jsx(d,{size:20,fill:r.palette.ux.error.w100}),e]}),o&&jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:l,children:jsx(Te,{size:24})})]}):null}var Np=$p;function Yr({size:e,fill:t}){return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsx("path",{d:`M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M12,20c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8S16.4,20,12,20
2
2
  z M12.6,7h-1.2C11.2,7,11,7.2,11,7.4v1.2C11,8.8,11.2,9,11.4,9h1.2C12.8,9,13,8.8,13,8.6V7.4C13,7.2,12.8,7,12.6,7z M12.6,10h-1.2
3
- c-0.2,0-0.4,0.2-0.4,0.4v6.2c0,0.2,0.2,0.4,0.4,0.4h1.2c0.2,0,0.4-0.2,0.4-0.4v-6.2C13,10.2,12.8,10,12.6,10z`,fill:t}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:t})]})}function Wl({size:e,fill:t}){return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("path",{d:"M13.6946 2.13962C6.85362 1.01462 1.01462 6.85362 2.13962 13.6946C2.82062 17.8376 6.16262 21.1796 10.3056 21.8606C17.1466 22.9856 22.9856 17.1466 21.8606 10.3056C21.1786 6.16162 17.8376 2.82062 13.6946 2.13962ZM13.5676 19.8496C7.94262 20.9256 3.07362 16.0566 4.14962 10.4316C4.75062 7.28662 7.28662 4.75062 10.4316 4.14962C16.0566 3.07362 20.9256 7.94262 19.8496 13.5676C19.2476 16.7126 16.7126 19.2476 13.5676 19.8496ZM16.0646 8.10462L9.99962 14.1696L7.92162 12.1006C7.76762 11.9466 7.51762 11.9466 7.36362 12.1016L6.51762 12.9476C6.35962 13.1056 6.35962 13.3606 6.51762 13.5186L9.71362 16.8926C9.87162 17.0506 10.1266 17.0506 10.2846 16.8926L17.4756 9.52462C17.6316 9.36862 17.6326 9.11462 17.4766 8.95762L16.6326 8.10762C16.4766 7.94862 16.2216 7.94762 16.0646 8.10462Z",fill:t})})}var Fp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.container})),_p=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.messageContainer})),Vp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.detailsContainer})),zp=wa("div",{shouldForwardProp:e=>e!=="color"})(({theme:e,color:t})=>({...e.mixins.component_MessageBox.messageTextContainer,color:t})),Xp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.iconContainer})),Gp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.message}));function Wp(e,t){let o={info:{Icon:Yr,color:e.palette.ux.info.w100},error:{Icon:d,color:e.palette.ux.error.w100},warn:{Icon:f$1,color:e.palette.ux.warning.w100},success:{Icon:Wl,color:e.palette.ux.success.w100}},{Icon:n,color:r}=o[t]||o.info;return jsx(n,{size:24,fill:r})}function Jp({message:e,showIcon:t=true,showCloseButton:o=false,onClose:n,variant:r="info",color:a,dense:i=false,details:l,dataQa:s,dataTags:c}){let[u,d]=ue__default.useState(true),f=ua$1(),p=()=>{d(false),n?.();},m=()=>{let g=a||f.mixins.component_MessageBox.messageTextContainer.color;if(g)return r==="error"?a||f.palette.ux.error.w100:g;switch(r){case "error":return f.palette.ux.error.w100;case "warn":return f.palette.ux.primary.text.wMain;case "success":return f.palette.ux.success.w100;case "info":return f.palette.ux.info.w100}};return u?jsx(ue__default.Fragment,{children:jsxs(Fp,{className:r,"data-qa":s,"data-tags":c,children:[jsxs(_p,{children:[jsxs(Gp,{className:`${i?"dense":""}`,children:[t&&jsx(Xp,{className:`iconContainer ${i?"dense":""}`,children:Wp(f,r)}),jsx(zp,{color:m(),children:e})]}),o&&jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:p,children:jsx(Te,{size:24})})]}),!!l&&jsx(Vp,{children:l})]})}):null}var Up=Jp;var Yp=wa("div",{shouldForwardProp:e=>e!=="backgroundColor"&&e!=="hasTitle"})(({backgroundColor:e,hasTitle:t,theme:o})=>({backgroundColor:e??o.palette.ux.background.w20,color:o.palette.ux.primary.text.wMain,borderRadius:"4px",display:"flex",flexDirection:t?"column":"row",justifyContent:"space-between",alignContent:"flex-start",padding:o.spacing(2)})),Kp=wa("div")({display:"flex",justifyContent:"space-between",alignItems:"center"}),Qp=wa("div")(({theme:e})=>({fontSize:e.typography.subtitle1.fontSize,fontWeight:e.typography.fontWeightMedium}));function jp({title:e,children:t,showCloseButton:o=false,onClose:n,backgroundColor:r,dataQa:a,dataTags:i}){let[l,s]=ue__default.useState(true),c=()=>{s(false),n?.();};return l?jsxs(Yp,{backgroundColor:r,hasTitle:!!e,"data-qa":a,"data-tags":i,children:[e&&jsxs(Fragment,{children:[jsxs(Kp,{children:[isValidElement(e)?e:jsx(Qp,{children:e}),o&&jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:c,children:jsx(Te,{size:24})})]}),t]}),!e&&jsxs(Fragment,{children:[t,o&&jsx("div",{children:jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:c,children:jsx(Te,{size:24})})})]})]}):null}var ed=jp;var ad=(e,t)=>({height:"100%",fontSize:ni$1[t],"&.Mui-focusVisible":{padding:"11px 15px 13px 15px",border:`1px solid ${e.palette.ux.accent.n2.wMain}`}}),Kl="44px",Ql=e=>{if(e==="top")return Kl},id=e=>{let t=e.palette.ux.secondary.w40;return {"& .MuiTab-root":{borderBottom:`1px solid ${t}`,borderTop:`1px solid ${t}`},"& .MuiTab-root.Mui-selected":{borderBottom:"1px solid transparent","&:hover":{borderBottomColor:"transparent"}},"& .MuiTab-root:hover":{borderBottomColor:t}}},ld=e=>{let t=e.palette.ux.secondary.w40;return {"& .MuiTabs-flexContainer":{gap:0},"& .MuiTab-root":{borderRight:`1px solid ${t}`,minHeight:Kl,borderBottom:`1px solid ${t}`,borderTop:`1px solid ${t}`},"& .MuiTab-root.Mui-selected":{borderBottom:"1px solid transparent","&:hover":{borderBottomColor:"transparent"}},"& .MuiTab-root:hover":{borderBottomColor:t},"& .MuiTab-root:first-of-type":{borderLeft:`1px solid ${t}`}}};function Zl({side:e,indicatorLocation:t}){let o=Ql(t);return jsx(Ic$1,{sx:n=>({position:"absolute",[e]:0,top:0,display:"flex",alignItems:"center",justifyContent:"center",height:o||"100%",width:n.spacing(4),pointerEvents:"none",zIndex:1}),children:jsx(Ic$1,{sx:{transform:"rotate(90deg)",flexShrink:0},children:jsx(Ic$1,{sx:n=>({background:e==="left"?"linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)":"linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)",height:n.spacing(4),width:o||"100%"})})})})}function sd(e){let{onTabClick:t,size:o="sm",...n}=e;return jsx(nh$1,{component:"a",onClick:a=>{a.preventDefault(),t&&t(e.value);},disableRipple:true,sx:a=>ad(a,o),...n})}function cd({tabs:e,activeTabValue:t,onTabClick:o,size:n="sm",variant:r="standard",indicatorLocation:a="bottom"}){let[i,l]=useState(()=>e.findIndex(S=>S.value===t)),s=useRef(null),[c,u]=useState(false),[d,f]=useState(false);useEffect(()=>{let S=e.findIndex(b=>b.value===t);S!==-1&&l(S);},[t,e]);let p=".MuiTabs-scroller",m=useCallback(()=>{if(s.current&&r==="scrollable"){let S=s.current.querySelector(p);if(S){let{scrollLeft:b,scrollWidth:v,clientWidth:P}=S;u(b>0),f(b<v-P-1);}}},[r]);useEffect(()=>{m();let S=s.current?.querySelector(p);if(S)return S.addEventListener("scroll",m),()=>S.removeEventListener("scroll",m)},[m,e,p]);let g=S=>{let b=s.current?.querySelector(p);if(b){let v=S==="left"?-200:200;b.scrollBy({left:v,behavior:"smooth"});}},C=(S,b)=>{o?.(b);},x=S=>{let{key:b}=S;if(["ArrowRight","ArrowDown"].includes(b)){S.preventDefault();let v=(i+1)%e.length;l(v);}else if(["ArrowLeft","ArrowUp"].includes(b)){S.preventDefault();let v=(i-1+e.length)%e.length;l(v);}else (b===" "||b==="Enter")&&(S.preventDefault(),o?.(e[i].value));};return jsxs(Ic$1,{sx:{width:"100%",fontSize:ni$1[n],display:"flex",alignItems:"center"},ref:s,children:[r==="scrollable"&&c&&jsx(b$1,{title:"More tabs",placement:"bottom",children:jsx(Ic$1,{sx:{position:"relative",flexShrink:0},children:jsx(b$2,{variant:"icon",title:"More tabs",onClick:()=>g("left"),children:jsx(ArrowLeft24Icon,{})})})}),jsxs(Ic$1,{sx:{position:"relative",flex:1,overflow:"hidden"},children:[r==="scrollable"&&c&&jsx(Zl,{side:"left",indicatorLocation:a}),r==="scrollable"&&d&&jsx(Zl,{side:"right",indicatorLocation:a}),jsx(Xh$1,{value:t,onChange:C,onKeyDown:x,className:e.length===1?"singleTab":"",variant:r,slotProps:{indicator:a==="top"?{style:{top:0,bottom:"auto"}}:void 0},sx:S=>{let b=Ql(a);return {...b&&{height:b,minHeight:b},...a==="top"&&id(S),...a==="top"&&ld(S),...r==="scrollable"&&{"& .MuiTabs-scrollButtons":{display:"none"}}}},children:e.map(S=>createElement(sd,{...S,key:`anchorTab-${S.value}`,size:n,tabIndex:S.value===t?0:-1}))})]}),r==="scrollable"&&d&&jsx(b$1,{title:"More tabs",placement:"bottom",children:jsx(Ic$1,{sx:{position:"relative",flexShrink:0},children:jsx(b$2,{variant:"icon",title:"More tabs",onClick:()=>g("right"),children:jsx(ArrowRight24Icon,{})})})})]})}var ud=cd;var jl=(o=>(o.LEFT="left",o.RIGHT="right",o))(jl||{}),md=wa("main",{shouldForwardProp:e=>e==="children"})(({theme:e,showSidePanel:t,sidePanelPosition:o,overlayContent:n})=>({flexGrow:1,transition:e.transitions.create("margin",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.leavingScreen}),...t&&o==="right"&&!n&&{marginRight:0,transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})},...t&&o==="left"&&!n&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}}));function gd({children:e,sidePanelContent:t,showSidePanel:o,sidePanelWidth:n="400px",sidePanelPosition:r="right",overlayContent:a=false,showClosingButton:i=false,onPanelClose:l,sidePanelTitle:s,showStandardPadding:c=false}){let u=ua$1(),[d,f]=useState(o);useEffect(()=>{f(o);},[o]);let p=()=>{f(false),l&&l();};return jsxs(Ic$1,{sx:{display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden",...r==="right"&&{flexDirection:"row-reverse"}},id:"drawer-container",children:[jsxs(Td,{sx:{width:d?n:"0px",flexShrink:0,"& .MuiDrawer-paper":{width:n,boxSizing:"border-box"},transition:"width 0.25s"},PaperProps:{style:{position:"absolute"}},BackdropProps:{style:{position:"absolute",display:"none"}},ModalProps:{container:document.getElementById("drawer-container"),style:{position:"absolute",left:r==="right"?"unset":0,right:r==="left"?"unset":0}},variant:a?"temporary":"persistent",anchor:r,open:d,children:[(i||s)&&jsxs(Ic$1,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingY:u.spacing(2),paddingX:u.spacing(3),borderBottom:"1px solid",borderBottomColor:u.palette.ux.secondary.w40},children:[jsx(Ic$1,{sx:{flex:1,overflow:"hidden"},children:s&&jsx(m,{variant:"h1",component:"h1",children:jsx(b$1,{title:s,variant:"overflow",children:s})})}),i&&jsx(Ic$1,{sx:{marginLeft:u.spacing(2)},children:jsx(Gb,{onClick:p,title:"Close",size:"small",children:jsx(Te,{size:24})})})]}),jsx(Ic$1,{sx:{flex:1,overflow:"auto",...c?{padding:"24px"}:{},position:"relative"},children:t})]}),jsx(md,{showSidePanel:d,sidePanelPosition:r,sidePanelWidth:n,overlayContent:a,children:e})]})}var hd=gd;var bd=wa("div")(({theme:e})=>({marginRight:"auto",paddingRight:e.spacing(1)})),Sd=wa("div")(({theme:e})=>({margin:`${e.spacing(2)} -${e.spacing(3)} -${e.spacing(3)}`}));function Cd({title:e,contentText:t,actions:o,customAction:n,disableDefaultPadding:r=false,isOpen:a=false,maxWidth:i="dialogMd",contentLayout:l="block",linearProgressIndicator:s=false,children:c,footer:u=null}){let d=useId(),f=e!=null&&e!=="";return jsxs(Ad$1,{open:a,maxWidth:i,className:`${s?"linearProgressIndicator":""} ${r?"disableDefaultPadding":""}`,...f?{"aria-labelledby":d}:{},children:[jsx(Md,{id:f?d:void 0,children:jsx("div",{"data-qa":"title",style:{wordBreak:"break-word"},children:e})}),jsxs(Id,{"data-qa":"content",sx:{display:l},children:[t&&jsx(Ld,{children:t}),c]}),(n||o&&o.length>0)&&jsxs(Dd$1,{children:[n&&jsx(bd,{children:n}),o?.map(g=>jsx(b$2,{dataQa:g.dataQa,onClick:g.onClick,variant:g.variant??"text",isDisabled:g.isDisabled,endIcon:g.endIcon,children:g.label},g.label))]}),u&&jsx(Sd,{children:u})]})}var yd=Cd;var Rt=({className:e=""})=>jsx(Na$1,{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","data-testid":"ArrowRightIcon",children:jsx("path",{d:`M9.73,6.117L8.892,7c-0.156,0.156-0.156,0.373,0,0.529l4.443,4.46l-4.443,4.481C8.736,16.627,8.723,16.844,8.879,17
3
+ c-0.2,0-0.4,0.2-0.4,0.4v6.2c0,0.2,0.2,0.4,0.4,0.4h1.2c0.2,0,0.4-0.2,0.4-0.4v-6.2C13,10.2,12.8,10,12.6,10z`,fill:t}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:t})]})}function Wl({size:e,fill:t}){return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("path",{d:"M13.6946 2.13962C6.85362 1.01462 1.01462 6.85362 2.13962 13.6946C2.82062 17.8376 6.16262 21.1796 10.3056 21.8606C17.1466 22.9856 22.9856 17.1466 21.8606 10.3056C21.1786 6.16162 17.8376 2.82062 13.6946 2.13962ZM13.5676 19.8496C7.94262 20.9256 3.07362 16.0566 4.14962 10.4316C4.75062 7.28662 7.28662 4.75062 10.4316 4.14962C16.0566 3.07362 20.9256 7.94262 19.8496 13.5676C19.2476 16.7126 16.7126 19.2476 13.5676 19.8496ZM16.0646 8.10462L9.99962 14.1696L7.92162 12.1006C7.76762 11.9466 7.51762 11.9466 7.36362 12.1016L6.51762 12.9476C6.35962 13.1056 6.35962 13.3606 6.51762 13.5186L9.71362 16.8926C9.87162 17.0506 10.1266 17.0506 10.2846 16.8926L17.4756 9.52462C17.6316 9.36862 17.6326 9.11462 17.4766 8.95762L16.6326 8.10762C16.4766 7.94862 16.2216 7.94762 16.0646 8.10462Z",fill:t})})}var Fp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.container})),_p=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.messageContainer})),Vp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.detailsContainer})),zp=wa("div",{shouldForwardProp:e=>e!=="color"})(({theme:e,color:t})=>({...e.mixins.component_MessageBox.messageTextContainer,color:t})),Xp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.iconContainer})),Gp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.message}));function Wp(e,t){let o={info:{Icon:Yr,color:e.palette.ux.info.w100},error:{Icon:d,color:e.palette.ux.error.w100},warn:{Icon:f$1,color:e.palette.ux.warning.w100},success:{Icon:Wl,color:e.palette.ux.success.w100}},{Icon:n,color:r}=o[t]||o.info;return jsx(n,{size:24,fill:r})}function Jp({message:e,showIcon:t=true,showCloseButton:o=false,onClose:n,variant:r="info",color:a,dense:i=false,details:l,dataQa:s,dataTags:c}){let[p,d]=ue__default.useState(true),f=ua$1(),u=()=>{d(false),n?.();},m=()=>{let g=a||f.mixins.component_MessageBox.messageTextContainer.color;if(g)return r==="error"?a||f.palette.ux.error.w100:g;switch(r){case "error":return f.palette.ux.error.w100;case "warn":return f.palette.ux.primary.text.wMain;case "success":return f.palette.ux.success.w100;case "info":return f.palette.ux.info.w100}};return p?jsx(ue__default.Fragment,{children:jsxs(Fp,{className:r,"data-qa":s,"data-tags":c,children:[jsxs(_p,{children:[jsxs(Gp,{className:`${i?"dense":""}`,children:[t&&jsx(Xp,{className:`iconContainer ${i?"dense":""}`,children:Wp(f,r)}),jsx(zp,{color:m(),children:e})]}),o&&jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:u,children:jsx(Te,{size:24})})]}),!!l&&jsx(Vp,{children:l})]})}):null}var Up=Jp;var Yp=wa("div",{shouldForwardProp:e=>e!=="backgroundColor"&&e!=="hasTitle"})(({backgroundColor:e,hasTitle:t,theme:o})=>({backgroundColor:e??o.palette.ux.background.w20,color:o.palette.ux.primary.text.wMain,borderRadius:"4px",display:"flex",flexDirection:t?"column":"row",justifyContent:"space-between",alignContent:"flex-start",padding:o.spacing(2)})),Kp=wa("div")({display:"flex",justifyContent:"space-between",alignItems:"center"}),Qp=wa("div")(({theme:e})=>({fontSize:e.typography.subtitle1.fontSize,fontWeight:e.typography.fontWeightMedium}));function jp({title:e,children:t,showCloseButton:o=false,onClose:n,backgroundColor:r,dataQa:a,dataTags:i}){let[l,s]=ue__default.useState(true),c=()=>{s(false),n?.();};return l?jsxs(Yp,{backgroundColor:r,hasTitle:!!e,"data-qa":a,"data-tags":i,children:[e&&jsxs(Fragment,{children:[jsxs(Kp,{children:[isValidElement(e)?e:jsx(Qp,{children:e}),o&&jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:c,children:jsx(Te,{size:24})})]}),t]}),!e&&jsxs(Fragment,{children:[t,o&&jsx("div",{children:jsx(b$2,{"aria-label":Ht(),variant:"icon",onClick:c,children:jsx(Te,{size:24})})})]})]}):null}var ed=jp;var ad=(e,t)=>({height:"100%",fontSize:ni$1[t],"&.Mui-focusVisible":{padding:"11px 15px 13px 15px",border:`1px solid ${e.palette.ux.accent.n2.wMain}`}}),Kl="44px",Ql=e=>{if(e==="top")return Kl},id=e=>{let t=e.palette.ux.secondary.w40;return {"& .MuiTab-root":{borderBottom:`1px solid ${t}`,borderTop:`1px solid ${t}`},"& .MuiTab-root.Mui-selected":{borderBottom:"1px solid transparent","&:hover":{borderBottomColor:"transparent"}},"& .MuiTab-root:hover":{borderBottomColor:t}}},ld=e=>{let t=e.palette.ux.secondary.w40;return {"& .MuiTabs-flexContainer":{gap:0},"& .MuiTab-root":{borderRight:`1px solid ${t}`,minHeight:Kl,borderBottom:`1px solid ${t}`,borderTop:`1px solid ${t}`},"& .MuiTab-root.Mui-selected":{borderBottom:"1px solid transparent","&:hover":{borderBottomColor:"transparent"}},"& .MuiTab-root:hover":{borderBottomColor:t},"& .MuiTab-root:first-of-type":{borderLeft:`1px solid ${t}`}}};function Zl({side:e,indicatorLocation:t}){let o=Ql(t);return jsx(Ic$1,{sx:n=>({position:"absolute",[e]:0,top:0,display:"flex",alignItems:"center",justifyContent:"center",height:o||"100%",width:n.spacing(4),pointerEvents:"none",zIndex:1}),children:jsx(Ic$1,{sx:{transform:"rotate(90deg)",flexShrink:0},children:jsx(Ic$1,{sx:n=>({background:e==="left"?"linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)":"linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)",height:n.spacing(4),width:o||"100%"})})})})}function sd(e){let{onTabClick:t,size:o="sm",...n}=e;return jsx(nh$1,{component:"a",onClick:a=>{a.preventDefault(),t&&t(e.value);},disableRipple:true,sx:a=>ad(a,o),...n})}function cd({tabs:e,activeTabValue:t,onTabClick:o,size:n="sm",variant:r="standard",indicatorLocation:a="bottom"}){let[i,l]=useState(()=>e.findIndex(C=>C.value===t)),s=useRef(null),[c,p]=useState(false),[d,f]=useState(false);useEffect(()=>{let C=e.findIndex(S=>S.value===t);C!==-1&&l(C);},[t,e]);let u=".MuiTabs-scroller",m=useCallback(()=>{if(s.current&&r==="scrollable"){let C=s.current.querySelector(u);if(C){let{scrollLeft:S,scrollWidth:v,clientWidth:P}=C;p(S>0),f(S<v-P-1);}}},[r]);useEffect(()=>{m();let C=s.current?.querySelector(u);if(C)return C.addEventListener("scroll",m),()=>C.removeEventListener("scroll",m)},[m,e,u]);let g=C=>{let S=s.current?.querySelector(u);if(S){let v=C==="left"?-200:200;S.scrollBy({left:v,behavior:"smooth"});}},x=(C,S)=>{o?.(S);},b=C=>{let{key:S}=C;if(["ArrowRight","ArrowDown"].includes(S)){C.preventDefault();let v=(i+1)%e.length;l(v);}else if(["ArrowLeft","ArrowUp"].includes(S)){C.preventDefault();let v=(i-1+e.length)%e.length;l(v);}else (S===" "||S==="Enter")&&(C.preventDefault(),o?.(e[i].value));};return jsxs(Ic$1,{sx:{width:"100%",fontSize:ni$1[n],display:"flex",alignItems:"center"},ref:s,children:[r==="scrollable"&&c&&jsx(b$1,{title:"More tabs",placement:"bottom",children:jsx(Ic$1,{sx:{position:"relative",flexShrink:0},children:jsx(b$2,{variant:"icon",title:"More tabs",onClick:()=>g("left"),children:jsx(ArrowLeft24Icon,{})})})}),jsxs(Ic$1,{sx:{position:"relative",flex:1,overflow:"hidden"},children:[r==="scrollable"&&c&&jsx(Zl,{side:"left",indicatorLocation:a}),r==="scrollable"&&d&&jsx(Zl,{side:"right",indicatorLocation:a}),jsx(Xh$1,{value:t,onChange:x,onKeyDown:b,className:e.length===1?"singleTab":"",variant:r,slotProps:{indicator:a==="top"?{style:{top:0,bottom:"auto"}}:void 0},sx:C=>{let S=Ql(a);return {...S&&{height:S,minHeight:S},...a==="top"&&id(C),...a==="top"&&ld(C),...r==="scrollable"&&{"& .MuiTabs-scrollButtons":{display:"none"}}}},children:e.map(C=>createElement(sd,{...C,key:`anchorTab-${C.value}`,size:n,tabIndex:C.value===t?0:-1}))})]}),r==="scrollable"&&d&&jsx(b$1,{title:"More tabs",placement:"bottom",children:jsx(Ic$1,{sx:{position:"relative",flexShrink:0},children:jsx(b$2,{variant:"icon",title:"More tabs",onClick:()=>g("right"),children:jsx(ArrowRight24Icon,{})})})})]})}var ud=cd;var jl=(o=>(o.LEFT="left",o.RIGHT="right",o))(jl||{}),md=wa("main",{shouldForwardProp:e=>e==="children"})(({theme:e,showSidePanel:t,sidePanelPosition:o,overlayContent:n})=>({flexGrow:1,transition:e.transitions.create("margin",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.leavingScreen}),...t&&o==="right"&&!n&&{marginRight:0,transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})},...t&&o==="left"&&!n&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}}));function gd({children:e,sidePanelContent:t,showSidePanel:o,sidePanelWidth:n="400px",sidePanelPosition:r="right",overlayContent:a=false,showClosingButton:i=false,onPanelClose:l,sidePanelTitle:s,showStandardPadding:c=false}){let p=ua$1(),[d,f]=useState(o);useEffect(()=>{f(o);},[o]);let u=()=>{f(false),l&&l();};return jsxs(Ic$1,{sx:{display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden",...r==="right"&&{flexDirection:"row-reverse"}},id:"drawer-container",children:[jsxs(Td,{sx:{width:d?n:"0px",flexShrink:0,"& .MuiDrawer-paper":{width:n,boxSizing:"border-box"},transition:"width 0.25s"},PaperProps:{style:{position:"absolute"}},BackdropProps:{style:{position:"absolute",display:"none"}},ModalProps:{container:document.getElementById("drawer-container"),style:{position:"absolute",left:r==="right"?"unset":0,right:r==="left"?"unset":0}},variant:a?"temporary":"persistent",anchor:r,open:d,children:[(i||s)&&jsxs(Ic$1,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingY:p.spacing(2),paddingX:p.spacing(3),borderBottom:"1px solid",borderBottomColor:p.palette.ux.secondary.w40},children:[jsx(Ic$1,{sx:{flex:1,overflow:"hidden"},children:s&&jsx(m,{variant:"h1",component:"h1",children:jsx(b$1,{title:s,variant:"overflow",children:s})})}),i&&jsx(Ic$1,{sx:{marginLeft:p.spacing(2)},children:jsx(Gb,{onClick:u,title:"Close",size:"small",children:jsx(Te,{size:24})})})]}),jsx(Ic$1,{sx:{flex:1,overflow:"auto",...c?{padding:"24px"}:{},position:"relative"},children:t})]}),jsx(md,{showSidePanel:d,sidePanelPosition:r,sidePanelWidth:n,overlayContent:a,children:e})]})}var hd=gd;var bd=wa("div")(({theme:e})=>({marginRight:"auto",paddingRight:e.spacing(1)})),Sd=wa("div")(({theme:e})=>({margin:`${e.spacing(2)} -${e.spacing(3)} -${e.spacing(3)}`}));function Cd({title:e,contentText:t,actions:o,customAction:n,disableDefaultPadding:r=false,isOpen:a=false,maxWidth:i="dialogMd",fullWidth:l=false,contentLayout:s="block",linearProgressIndicator:c=false,children:p,footer:d=null}){let f=useId(),u=e!=null&&e!=="";return jsxs(Ad$1,{open:a,maxWidth:i,fullWidth:l,className:`${c?"linearProgressIndicator":""} ${r?"disableDefaultPadding":""}`,...u?{"aria-labelledby":f}:{},children:[jsx(Md,{id:u?f:void 0,children:jsx("div",{"data-qa":"title",style:{wordBreak:"break-word"},children:e})}),jsxs(Id,{"data-qa":"content",sx:{display:s},children:[t&&jsx(Ld,{children:t}),p]}),(n||o&&o.length>0)&&jsxs(Dd$1,{children:[n&&jsx(bd,{children:n}),o?.map(x=>jsx(b$2,{dataQa:x.dataQa,onClick:x.onClick,variant:x.variant??"text",isDisabled:x.isDisabled,endIcon:x.endIcon,children:x.label},x.label))]}),d&&jsx(Sd,{children:d})]})}var yd=Cd;var Rt=({className:e=""})=>jsx(Na$1,{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","data-testid":"ArrowRightIcon",children:jsx("path",{d:`M9.73,6.117L8.892,7c-0.156,0.156-0.156,0.373,0,0.529l4.443,4.46l-4.443,4.481C8.736,16.627,8.723,16.844,8.879,17
4
4
  l0.851,0.883c0.156,0.156,0.414,0.156,0.57,0l5.583-5.61c0.156-0.156,0.156-0.41,0-0.567L10.3,6.117
5
- C10.143,5.961,9.886,5.961,9.73,6.117z`})});var Ed=335,os=({id:e,name:t,subText:o,supplementalText:n,icon:r,secondaryAction:a,onMenuItemClick:i,onMenuClose:l,divider:s,disabled:c,subMenuItems:u,closeOnSelect:d,itemHeight:f,selected:p,subMenuMaxWidth:m=Ed,subMenuDirection:g="right",dataQa:C,dataTags:x})=>{let S=ua$1(),[b,v]=useState(null),[P,R]=useState(null),[I,M]=useState(false),[E,h]=useState("right"),T=!!b,w=A=>{A.stopPropagation(),v(null),M(false),R(null),l&&l(A);},z=A=>{let W=A.currentTarget;v(W);},O=()=>{v(null),M(false),R(null);};useEffect(()=>{if(P&&b){let A=P.offsetWidth,W=b.getBoundingClientRect(),D=window.innerWidth-W.right,L=W.left,Y;g==="left"?Y=L>=A||L>D:Y=D<A,h(Y?"left":"right"),M(true);}else b||(M(false),h("right"));},[P,b,g]);let H=()=>{if(!u||u.length===0)return null;let A=groupBy(u,D=>D.categoryHeading),W=Object.keys(A).map(D=>{let L=[],Y=D==="undefined"?null:jsx(Yb,{className:"categoryHeader",children:D},D);L.push(Y);let K=A[D].map((N,re)=>jsx(os,{id:`${N.name}-${re}`,name:N.name,itemHeight:f||38,closeOnSelect:d,subText:N?.subText,supplementalText:N?.supplementalText,divider:!!N?.divider,disabled:!!N?.disabled,icon:N?.icon,secondaryAction:N?.secondaryAction,onMenuItemClick:N?.onMenuItemClick,onMenuClose:w,subMenuItems:N?.subMenuItems,subMenuMaxWidth:N.subMenuMaxWidth??m,subMenuDirection:E},`${N.name}-${re}`));return L.push(K),L});return flatten(W)};return jsxs(Fragment,{children:[jsxs(yf$1,{id:e,"data-qa":C,"data-tags":x,onClick:A=>{A.stopPropagation(),d&&w(A),i&&i(A);},onMouseEnter:z,onMouseLeave:O,disabled:!!c,className:D({multiline:!!o&&typeof t=="string",wideMenu:!!n&&typeof t=="string",selectedItem:p}),children:[typeof t=="string"?jsxs(Fragment,{children:[r&&jsx(hf$1,{className:"menuItemIcon",style:{paddingRight:S.spacing(1)},children:r}),jsxs(me,{container:true,direction:"column",justifyContent:"center",children:[jsxs(me,{container:true,justifyContent:"space-between",direction:"row",alignItems:"center",children:[jsx(Kb,{variant:"body1",noWrap:true,children:t}),n&&jsx(me,{className:"supplementalText",item:true,children:n})]}),o&&jsx(me,{className:"subtext",item:true,children:jsx("span",{className:"subtext",children:o})})]}),a&&jsx(me,{container:true,sx:{marginLeft:`${o?0:S.spacing(3)}`,width:"auto"},justifyContent:"end",alignItems:"center",className:"menuItemIcon",children:a}),u&&u.length>0&&jsx(me,{container:true,sx:{marginLeft:S.spacing(3),width:"auto"},alignItems:"center",children:jsx(Rt,{})})]}):t,u&&u.length>0&&jsx(vf,{id:e,"data-qa":`${C}-subMenu-${e}`,"data-tags":`${x}-subMenu-${e}`,anchorEl:b,open:T,anchorOrigin:{vertical:"top",horizontal:E==="left"?"left":"right"},transformOrigin:{vertical:"top",horizontal:E==="left"?"right":"left"},onClose:w,PaperProps:{style:{maxHeight:f?`${f*9.5}px`:`${38*9.5}px`,maxWidth:`${m}px`},ref:A=>{R(A);}},className:"SolaceMenu",style:{pointerEvents:"none",opacity:I?1:0,transition:"opacity 0.1s ease-in-out"},children:jsx("div",{style:{pointerEvents:I?"auto":"none"},children:H()})},`key-${e}`)]},e),!!s&&jsx(Pd,{})]})},ta=os;function Zn(){let[e,t]=useState(0),[o,n]=useState(0),[r,a]=useState(0),[i,l]=useState(false),s=useCallback(f=>{t(Math.round(f.target.scrollTop)),n(f.target.scrollHeight),a(f.target.offsetHeight);},[]);useEffect(()=>{i&&e>0&&(t(0),l(false));},[i,e]);let c=useCallback(()=>{l(true),t(0),n(0),a(0);},[]),u=useCallback(()=>{let f=r===o-e,p=e===0,m=e>0&&r<o-e,g="";return p?g="isTop":m?g="isBetween":f&&(g="isBottom"),g},[r,o,e]);return {maskImage:useCallback(()=>{let f=u(),p="linear-gradient(to top, black 85%, transparent 100%)",m="linear-gradient(to bottom, black 85%, transparent 100%)",g="linear-gradient(transparent 0%, black 15%, black 85%, transparent 100%)",C="none";return f==="isTop"?C=m:f==="isBetween"?C=g:f==="isBottom"&&(C=p),C},[u])(),scrollPosition:u(),resetScrollPosition:c,onScrollHandler:s}}var kd=9,Ad=335,ns=32;function ho(e){let{id:t="solace-menu",buttonProps:o,items:n,header:r,numOfMenuItemDisplayed:a=kd,maxWidth:i=Ad,multiline:l=false,propagateMenuClick:s=false,closeOnSelect:c=true,anchorOrigin:u={vertical:"bottom",horizontal:"left"},transformOrigin:d={vertical:"top",horizontal:"left"},dataQa:f,dataTags:p}=e,{maskImage:m,onScrollHandler:g,resetScrollPosition:C}=Zn(),x=l?58:38,[S,b]=useState(null),[v,P]=useState(null),[R,I]=useState(),M=H=>{I(H.currentTarget.classList),s||H.stopPropagation(),n?.length&&b(H.currentTarget),H.currentTarget.classList.toggle("pressed"),o.onClick&&o.onClick(H);},E=H=>{R?.remove("pressed"),I(R),H.stopPropagation(),b(null),C();},h=groupBy(n,H=>H.categoryHeading),T=useMemo(()=>Object.keys(h).filter(H=>H!=="undefined").length,[h]),w=useMemo(()=>x*a+x/2+T*ns+(r?1:0)*ns+8,[T,r,x,a]),z=useMemo(()=>n?n.length>a:false,[n,a]),O=Object.keys(h).map(H=>{let A=[],W=H==="undefined"?null:jsx(Yb,{className:"categoryHeader",children:H},H);A.push(W);let D=h[H].map((L,Y)=>{let K=jsx(ta,{id:L.id,name:L?.name,subText:L?.subText,supplementalText:L?.supplementalText,dataQa:L?.dataQa,dataTags:L?.dataTags,closeOnSelect:c,divider:!!L?.divider,disabled:!!L?.disabled,icon:L?.icon,secondaryAction:L?.secondaryAction,onMenuItemClick:L?.onMenuItemClick,onMenuClose:E,subMenuItems:L?.subMenuItems,selected:L?.selected,itemHeight:x,subMenuMaxWidth:L.subMenuMaxWidth??i},Y),N=jsx(b$1,{title:L.disabledMenuItemTooltipContent||"This menuItem is disabled.",children:jsx("span",{children:K})});return L.disabled&&L.disabledMenuItemTooltipContent?N:K});return A.push(D),A});return useEffect(()=>{let H=v;return H?.addEventListener("scroll",g),()=>{H?.removeEventListener("scroll",g);}},[v,g]),jsxs(Fragment$1,{children:[jsx(b$2,{"aria-label":Vl(),...o,onClick:M}),z&&jsx(sf$1,{anchorEl:S,open:!!S,anchorOrigin:u,transformOrigin:d,onClose:E,className:"SolaceMenuPopover",PaperProps:{style:{width:v?.offsetWidth,height:v?.offsetHeight}},transitionDuration:303}),jsxs(vf,{id:t,"data-qa":f,"data-tags":p,anchorEl:S,open:!!S,anchorOrigin:u,transformOrigin:d,onClose:E,slotProps:{paper:{style:{maxHeight:`${w}px`,maskImage:z?m:"none",WebkitMaskImage:z?m:"none",maxWidth:`${i}px`},ref:H=>{P(H);},onClick:H=>{H.stopPropagation();}}},className:"SolaceMenu",children:[r&&jsx(Yb,{children:r}),flatten(O)]},`key-${t}`)]})}var Bd=wa(_h$1)(({textEllipsisPosition:e,theme:t,hideInputText:o})=>({"& .MuiOutlinedInput-input":{height:"32px",...e==="start"&&{direction:"rtl",textAlign:"left"},...e==="middle"&&{color:o?"transparent":t.palette.ux.primary.text.wMain}},"& .MuiOutlinedInput-root.MuiInputBase-adornedEnd":{paddingRight:t.spacing(4)}})),Od=wa("ul")(()=>({padding:0})),ra=wa("span")(({theme:e})=>({color:e.palette.ux.secondary.text.wMain,whiteSpace:"nowrap",display:"flex",justifyContent:"flex-end",className:"menuItemIcon",".MuiSvgIcon-root":{fill:e.palette.ux.secondary.wMain}})),Yn="SolaceSelectAutocomplete";function Dd({label:e,error:t}){let o=ua$1();return jsxs(Ic$1,{display:"flex",flexDirection:"column",rowGap:o.spacing(1.5),children:[jsx(Ic$1,{style:{wordBreak:"break-word"},children:e}),jsx(Pd,{}),jsxs(Ic$1,{display:"flex",alignItems:"flex-start",columnGap:o.spacing(.5),children:[jsx(d,{size:18,fill:o.palette.ux.error.w100}),t]})]})}function $d({id:e,name:t,label:o,value:n,helperText:r,title:a,placeholder:i,hasErrors:l=false,required:s=false,inlineLabel:c=false,disabled:u=false,readOnly:d=false,multiple:f=false,onChange:p,itemComponent:m,itemMappingCallback:g,optionsLabelCallback:C,getShowOptionDividerCallback:x,shouldClearSearchOnSelectCallback:S,groupByCallback:b,showGroupDivider:v=false,dataQa:P,dataTags:R,options:I,renderTags:M,limitTags:E,getLimitTagsText:h$1,fetchOptionsCallback:T,onCloseCallback:w,isOptionEqualToValueCallback:z,getOptionDisabledCallback:O,getOptionKeyCallback:H,getOptionValidationErrorCallback:A,validateInputCallback:W,width:D,inputRef:L,openOnFocus:Y=false,disableCloseOnSelect:K,clearSearchOnSelect:N=false,maxHeight:re="40vh",fullWidth:ye=false,minWidth:he,tagMaxWidth:be="200px",showSupplementalTextOrSecondaryAction:j=false,showLeftIcon:B=false,textEllipsisPosition:q="end"}){let k=ua$1(),[J,V]=useState(n||null),[F,Q]=useState(""),[Ge,no]=useState(null),[mt,bn]=useState(I||[]),[Nr,Hr]=useState(false),[Sn,At]=useState(false),[gt,Bt]=useState(false),[Do,Cn]=useState(false),[ht,xt]=useState(false),$o=useRef(""),yn=useRef(null),[G,Z]=useState(null),pe=useRef(null),Fr=useRef(null),vn=useRef(null),[Fu,_u]=useState(0),[Vu,zu]=useState(0),[di,_r]=useState(""),No=useMemo(()=>f&&!N,[N,f]);useEffect(()=>{V(n||null);},[n]),useEffect(()=>{Hr(gt&&Sn);},[gt,Sn]),useEffect(()=>{F.length>0&&(bn([]),f&&W?.(F)?(At(false),Bt(false)):(At(true),T(F)));},[F,T,W,f]),useEffect(()=>{bn(I),At(false);},[I]),useEffect(()=>{ht&&(At(true),T(""),xt(false));},[T,ht]);let Xu=32,Gu=useCallback(_=>{_&&(yn.current=_,Z(_));},[]),fi=useCallback(_=>_.subText?58:38,[]),Vr=useCallback((_,U,te,se)=>_+U+te*Xu+16>=se,[]),mi=useCallback((_,U)=>!!(b&&b(_)!==U),[b]),gi=useCallback(_=>_&&b?b(_):"",[b]),Wu=_=>{let U=_.match(/[\d.]+|\D+/g);if(yn.current){let te=yn.current;if(!U||U.length<2)return _;let[se,me]=U,ce=parseFloat(se);if(isNaN(ce))return null;switch(me){case "px":return ce;case "em":return te?ce*parseFloat(getComputedStyle(te).fontSize):null;case "rem":return ce*parseFloat(getComputedStyle(document.documentElement).fontSize);case "%":return te?ce*te.clientHeight/100:null;case "vh":return ce*window.innerHeight/100;case "vw":return ce*window.innerWidth/100;default:return null}}return null},wn=useMemo(()=>{let _=0,U=0,te=0,se=0,me="",ce=0;if(!G)return;let ve=Wu(re);if(typeof ve=="string")return ve;if(!(!ve||ve<=58||ve>=G.scrollHeight)){for(let We=0;We<mt.length;We++){let bt=mt[We];if(U=fi(bt),Vr(_,U,se,ve)){ce=ve-_;break}if(typeof bt=="object"){if(mi(bt,me)&&(se++,te&&Vr(_,U,se,ve))){ce=ve-_;break}me=gi(bt);}_+=U,te=U;}return te/2+ce-8-(se===0?0:se*32)}},[fi,G,mt,re,Vr,mi,gi]),Ju=(_,U,te)=>{te==="clear"&&No&&F||(V(U||null),p&&p({name:t,value:U}),te==="selectOption"&&No&&U&&S&&(Array.isArray(U)&&U.some(me=>S(me))||S(U))&&(Q(""),xt(true)));},Uu=(_,U,te)=>{if(No&&(te==="reset"||te==="selectOption"||te==="removeOption")&&$o.current)Q($o.current);else if($o.current=U,Q(U),U==="")no(null),xt(true);else if(!u&&!d&&f){let se=W?.(U);no(se??null),Bt(!se);}},qu=()=>{Bt(true),(!f||!F)&&xt(true);},Zu=()=>{w&&w(),No&&(Q(""),no(null)),Bt(false),Cn(false);},Yu=()=>{Q(""),no(null),Cn(false);},Ku=_=>{let U=J.slice();U.splice(_,1),V(U),p&&p({name:t,value:U});},Tn=()=>e||t,Qu=_=>{Fr.current=_,L&&L(_);},zr=useCallback(()=>{let _=pe.current,U=Fr.current;if(!_||!U)return;let te=_.getBoundingClientRect(),se=U.getBoundingClientRect(),me=Math.max(0,se.left-te.left),ce=Math.max(0,te.right-se.right);_u(me),zu(ce);},[]),hi=useCallback(_=>{let U=Fr.current;if(!U)return _;let te=getComputedStyle(U),se=`${te.fontStyle} ${te.fontVariant} ${te.fontWeight} ${te.fontSize}/${te.lineHeight} ${te.fontFamily}`;vn.current||(vn.current=document.createElement("canvas"));let ce=vn.current.getContext("2d");if(!ce)return _;ce.font=se;let ve=U.clientWidth,We="...";if(ce.measureText(_).width<=ve)return _;let St=0,En=_.length-1,Ho="",Fo="";for(;St<=En;){let Rn=Ho+_[St],Pn=_[En]+Fo;if(ce.measureText(Rn+We+Pn).width+1<=ve)Ho=Rn,Fo=Pn,St++,En--;else {let xi=ce.measureText(Rn+We+Fo).width,bi=ce.measureText(Ho+We+Pn).width;if(xi<=ve&&xi>=bi)Ho=Rn,St++;else if(bi<=ve)Fo=Pn,En--;else break}}return Ho+We+Fo},[]),Xr=useCallback(()=>{if(f||q!=="middle")return;let _=J&&!Array.isArray(J)?J:null,U=_?C(g(_)):"";if(!U){_r("");return}_r(gt||Do?"":hi(U));},[hi,Do,g,f,gt,C,J,q]);useEffect(()=>{zr(),Xr();let _=window.ResizeObserver,U=_?new _(()=>{zr(),Xr();}):void 0;return pe.current&&U&&U.observe(pe.current),()=>{U?.disconnect(),vn.current=null;}},[zr,Xr]);let ju=_=>b&&v?jsxs("li",{children:[(_.key!==0||_.group)&&jsxs("div",{children:[_.key!==0&&jsx(Pd,{}),_.group&&jsx("div",{className:"MuiAutocomplete-groupLabel",children:_.group})]}),_.children&&jsx(Od,{children:_.children})]},_.key):null,ep=(_,U)=>jsx(b$1,{variant:a$2.rich,title:jsx(Dd,{label:_,error:U}),placement:"bottom-start",children:jsx("span",{children:_})}),tp=_=>jsx(b$1,{variant:a$2.overflow,title:_,placement:"bottom-start",children:_}),op=_=>_.map((U,te)=>{let se=C(g(U)),me=A?.(U)??null;return jsx(Tt,{label:jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:me?ep(se,me):tp(se)}),clickable:!d,disabled:u,onDelete:()=>Ku(te),dataQa:`${P??Yn}-${te}`,status:me?"errorStatus":"",maxWidth:be===null?void 0:be},`${P??Yn}-${te}`)}),np=()=>jsx(nc,{ListboxProps:{style:{maxHeight:typeof wn=="string"?wn:`calc(${re} - ${wn?wn+"px":"0px"})`},ref:Gu},id:Tn(),"data-qa":P??Yn,filterOptions:_=>_,onInputChange:Uu,options:mt,autoHighlight:true,value:J,inputValue:F,getOptionLabel:_=>{let U=g(_);return C(U)},renderOption:(_,U)=>{if(U){let te=g(U),se=x?.(U)??false,me=C(g(U)),ce=H?.(U)??me;return createElement(Ic$1,{component:"li",..._,key:ce,style:{borderBottom:se?`1px solid ${k.palette.ux.secondary.w20}`:"none"}},m(te))}return null},disabled:u||d,loading:Nr,open:gt,multiple:f,disableCloseOnSelect:K??f,onClose:Zu,openOnFocus:Y,onOpen:qu,onChange:Ju,onBlur:Yu,popupIcon:jsx(a$1,{}),renderInput:_=>{let{InputProps:U,inputProps:te,...se}=_,me=J&&!Array.isArray(J)?J:null,ce=me?me.supplementalText:null,ve=me?me.secondaryAction:null,We=me?me.icon:null,bt=gt||Do;return jsxs(Ic$1,{sx:{position:"relative"},ref:pe,children:[jsx(Bd,{...se,textEllipsisPosition:q,hideInputText:!bt&&q==="middle",title:a,autoComplete:"off",placeholder:i,error:!!Ge||l,inputProps:{...te,"data-qa":`${P??Yn}-input`,"data-tags":R,...r?{"aria-describedby":`${Tn()}-select-helper-text`}:{},...o?{"aria-labelledby":`${Tn()}-label`}:{},"aria-readonly":d,title:a},InputProps:{...U,sx:{height:k.spacing(4)},className:d?"readOnlySelect":"",disabled:u,readOnly:d,required:s,startAdornment:jsxs(Fragment,{children:[U.startAdornment,B&&We&&jsx(ra,{sx:{padding:k.spacing(0,1,0,0)},children:We})]}),endAdornment:jsxs(Fragment,{children:[U.endAdornment,j&&ce&&jsx(ra,{sx:{padding:k.spacing(0,1)},children:ce}),j&&ve&&jsx(ra,{sx:{padding:k.spacing(0,1)},children:ve})]})},inputRef:Qu,onKeyDown:St=>{(St.key==="Backspace"||St.key==="Delete")&&St.stopPropagation();}}),!f&&q==="middle"&&di&&!bt&&jsx(Ic$1,{"aria-hidden":true,sx:{position:"absolute",pointerEvents:"none",top:0,left:`${Fu}px`,right:`${Vu}px`,height:"100%",display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",color:k.palette.ux.primary.text.wMain,padding:0},children:di})]})},isOptionEqualToValue:z,getOptionDisabled:O,renderTags:M||op,limitTags:E,getLimitTagsText:h$1,ChipProps:{deleteIcon:jsx(h,{})},groupBy:b,renderGroup:b&&v?ju:void 0,fullWidth:ye,sx:{minWidth:he},clearText:No&&F?"Clear Search":"Clear"});return jsx(b$4,{id:Tn(),label:o,helperText:r,errorText:Ge||(l?r:void 0),disabled:u,readOnly:d,required:s,inlineLabel:c,centerInlineLabel:c,sx:{width:D},children:np()})}var Nd=$d;var Fd=e=>e?.name??"",_d=e=>e?.divider??false,Vd=(e,t)=>e?.value===t?.value,zd=e=>e?.categoryHeading??"";function Xd({name:e,subText:t,supplementalText:o,isNew:n,icon:r,secondaryAction:a}){let i=o?8:12,l=o?"16px":"0px";return jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center"},children:[r&&jsx(hf$1,{className:"menuItemIcon",style:{paddingRight:"8px"},children:r}),jsxs(me,{container:true,direction:"column",className:D({multiline:!!t||n}),py:.5,children:[jsxs(me,{container:true,justifyContent:"space-between",direction:"row",alignItems:"flex-start",children:[jsx(me,{item:true,xs:i,zeroMinWidth:true,style:{wordBreak:"break-word",paddingRight:l},children:e}),o&&jsx(me,{container:true,className:"supplementalText",item:true,xs:4,direction:"column",alignItems:"flex-end",justifyContent:"flex-start",style:{marginLeft:"0px"},children:o})]}),t&&jsx(me,{className:"subtext",item:true,children:jsx("span",{className:"subtext",children:t})})]}),a&&jsx(me,{container:true,sx:{marginLeft:`${t?0:"24px"}`,width:"auto"},justifyContent:"end",alignItems:"center",className:"menuItemIcon",children:a})]})}var Gd=Xd;var Jd=wa("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",fontFamily:e.typography.fontFamily})),Ud=wa("div")(()=>({margin:"0px 0px 40px 0px"})),qd=wa("p")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.xl,color:e.palette.ux.primary.text.wMain,textAlign:"center"})),Zd=wa("div")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.sm,color:e.palette.ux.primary.text.wMain})),Yd=wa("div")(()=>({display:"flex",flexDirection:"row",alignItems:"center"}));function Kd({msgImg:e,title:t,details:o,actions:n}){return jsxs(Jd,{children:[e&&jsx(Ud,{children:e}),t&&jsx(qd,{children:t}),o&&jsx(Zd,{children:o}),n&&jsx(Yd,{children:(()=>{if(Array.isArray(n)&&!isEmpty(n)){let a=[];return n.forEach(i=>a.push(jsx(b$2,{dataQa:i.dataQa,...i},i.id))),a}else return n})()})]})}var Qd=Kd;function ia(e){let t=useRef(e);return useLayoutEffect(()=>{t.current=e;},[e]),useCallback((...o)=>{if(t.current)return t.current(...o)},[])}var lf=wa("div",{shouldForwardProp:e=>e!=="multiline"&&e!=="maxHeight"&&e!=="columnGap"&&e!=="rowGap"&&e!=="show"})(({multiline:e,maxHeight:t,columnGap:o,rowGap:n,show:r})=>({display:"flex",flexWrap:e?"wrap":"nowrap",columnGap:o,rowGap:n,alignItems:e?"flex-start":"center",visibility:r?"visible":"hidden",maxHeight:t||"unset",overflow:"hidden"})),sf=wa("div",{shouldForwardProp:e=>e!=="maxHeight"})(({theme:e,maxHeight:t})=>({display:"flex",flexDirection:"column",rowGap:e.spacing(1.5),maxHeight:t,overflowY:"auto"}));function ss(e,t,o){return e===1&&o?o:t}var cf=58,uf=66;function pf({items:e,showAll:t=true,columnGap:o=12,rowGap:n=8,containerWidth:r,componentToShowOverflowItems:a="popover",overflowItemsPlacement:i="bottom-start",overflowIndicatorLabel:l="more",overflowIndicatorLabelSingular:s,overflowIndicatorLabelWidth:c,numOfRowsToShow:u=1,numOfMenuItemsToDisplay:d=9,onItemsRendered:f,onItemsOverflow:p,onItemsOverflowIndicatorClick:m,dataQa:g="responsiveItemList"}){let[C,x]=useState(null),[S,b]=useState(false),[v,P]=useState(false),R=useRef({}),I=useRef(24),M=useRef(null),E=ia(f),h=ia(p),T=useMemo(()=>{let H=e?.length??0,A=C?.length??0;return H-A},[e?.length,C?.length]),w=useMemo(()=>{if(e&&C){let H=T>d?`${(I.current+12)*d-6}px`:"unset";return jsx(sf,{maxHeight:H,children:e.filter(A=>!C.includes(A.id)).map(A=>jsx("div",{children:A.content},`popoverItem-${A.id}`))})}else return},[e,T,C,d]),z=useMemo(()=>e?e.map(H=>H.id):null,[e]),O=useCallback(()=>{if(r===void 0||!e)return;let H=r,A=[],W=0,D=0,L=1,Y=false;for(let N=0;N<e.length;N++){D=W;let re=(R.current[e[N].id]??0)+(N<e.length-1?o:0);if(W+=re,W>H)if(L===u){Y=true;break}else A.push(e[N].id),D=re,W=re,L++;else A.push(e[N].id),D=W;}let K=e.length-A.length<10?cf:uf;if(c&&(K=c),Y&&D+K>H)for(let N=A.length-1;N>=0&&(D-=(R.current[A[N]]??0)+(N<e.length-1?o:0),A.splice(N,1),!(D+K<=H));N--);b(true),x(A),h?.(e.filter(N=>!A.includes(N.id))),E?.();},[r,e,c,h,E,o,u]);return useEffect(()=>{if(e){let H=e.map(W=>W.id),A=H.join(",");M.current!==A&&(M.current=null,R.current={},P(false)),t?(x(H),b(true),E?.()):x(H);}},[e,t,E]),useEffect(()=>{v&&!t&&O();},[v,O,t]),z?jsxs(lf,{multiline:t||u>1,maxHeight:t?void 0:`${u*I.current+(u-1)*n}px`,columnGap:o+"px",rowGap:n+"px",show:S,"data-qa":g,children:[e.map(H=>C?.includes(H.id)&&jsx("span",{"data-qa":`${g}-listItem`,ref:A=>{if(A&&!R.current[H.id]&&(R.current[H.id]=A.offsetWidth,I.current=A.offsetHeight,!t)){let W=difference(z,Object.keys(R.current)),D=z.join(",");W.length===0&&M.current!==D&&(M.current=D,setTimeout(()=>{P(true);},0));}},children:H.content},`listItem-${H.id}`)),!t&&T>0&&jsxs(Fragment,{children:[a==="popover"&&jsx(b$1,{title:w,placement:i,dataQa:`${g}-overflowPopover`,variant:a$2.rich,children:jsx("span",{children:jsx(b$2,{variant:"link",onClick:m||void 0,dense:true,children:jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${T} ${ss(T,l,s)}`})})})}),a!=="popover"&&jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${T} ${ss(T,l,s)}`})]})]}):null}var ua=ue__default.memo(pf);var hf=wa("div")(()=>({paddingRight:"6px"}));function xf({containerWidth:e,tags:t,tagMaxWidth:o="160px",numOfRowsToShow:n=1,overflowIndicatorLabel:r,overflowIndicatorLabelSingular:a,overflowIndicatorLabelWidth:i,onDelete:l,dataQa:s="autocompleteTags",disabled:c=false,readOnly:u=false}){let d=useCallback(p=>{l?.(p);},[l]),f=useMemo(()=>t?.map(p=>({id:p.id,content:jsx(Tt,{clickable:!u,variant:"filled",maxWidth:o,label:p.label,disabled:c,onDelete:u?void 0:()=>d(p.id)},`${s}-${p.id}`)})),[s,d,o,t,c,u]);return f?.length>0?jsx(hf,{children:jsx(ua,{containerWidth:e!==void 0?e-120:e,items:f,showAll:false,numOfRowsToShow:n,columnGap:0,componentToShowOverflowItems:null,overflowIndicatorLabel:r,overflowIndicatorLabelSingular:a,overflowIndicatorLabelWidth:i,dataQa:s})}):null}var bf=ue__default.memo(xf);var us=wa(Ic$1)(({theme:e})=>({display:"flex",flexWrap:"wrap",alignItems:"flex-start",width:"100%",minHeight:e.spacing(4),padding:"2px 4px",border:`1px solid ${e.palette.ux.secondary.w40}`,borderRadius:"4px","&.error":{borderColor:e.palette.ux.error.wMain,borderWidth:"1px"},"&:focus-within":{borderColor:e.palette.ux.primary.wMain,borderWidth:"1px"}})),ps=wa(Ic$1)(({theme:e})=>({margin:e.spacing(.5),display:"inline-flex",alignItems:"flex-start"})),ds=wa("div")({display:"inline-flex",flexGrow:1,minWidth:"50px"}),fs=wa(ec$1)(({theme:e})=>({flex:1,padding:e.spacing(.5,0),"& .MuiInputBase-input":{padding:0,height:"120px"}}));var Cf=({id:e,name:t,label:o,value:n,helperText:r,maxLength:a=c$1.maxLength,title:i,autoFocus:l=false,hasErrors:s=false,required:c=false,inlineLabel:u=false,onChange:d,onBlur:f,onKeyDown:p,onKeyUp:m,onFocus:g,dataQa:C,dataTags:x,width:S,validateChip:b})=>{let[v,P]=useState([]),[R,I]=useState(""),[M,E]=useState(void 0),[h,T]=useState(true),w=useRef(null),z=useRef(null);useEffect(()=>{if(n!==void 0){let q=H(n).map(k=>{let J=b?b(k):void 0;return {id:O(),label:k,isValid:!J,errorMessage:J}});P(q);}},[n,b]);let O=()=>`chip-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,H=B=>B.split(/[\s,;]+/).map(q=>q.trim()).filter(q=>q.length>0),A=B=>B.map(q=>q.label).join(","),W=useCallback(B=>{let q=F=>{if(F&&b)return b(F)},k=B.trim();if(!k)return;let J=q(k),V={id:O(),label:k,isValid:!J,errorMessage:J};P(F=>{let Q=[...F,V];return d&&d({name:t,value:R,chips:Q,allValues:A(Q)}),Q}),I(""),J&&E(J);},[R,t,d,b]),D=useCallback(B=>{P(q=>{let k=q.filter(V=>V.id!==B);return d&&d({name:t,value:R,chips:k,allValues:A(k)}),k.every(V=>V.isValid)&&E(void 0),k});},[R,t,d]),L=useCallback(B=>{let q=B.target.value,k=q;if(E(void 0),/[\s,;]/.test(q)){let J=H(q);J.length>1&&(J.slice(0,-1).forEach(V=>W(V)),k=J[J.length-1]);}I(k),d&&d({name:t,value:q,chips:v,allValues:A(v)});},[W,v,t,d]),Y=useCallback(B=>{if((B.key==="Enter"||B.key===" "||B.key===","||B.key===";")&&R.trim()&&(B.preventDefault(),W(R)),(B.key==="Backspace"||B.key==="Delete")&&R.length===0){B.preventDefault();let q=v[v.length-1];q&&D(q.id);}B.key==="Space"&&B.preventDefault(),p&&p(B);},[W,v,D,R,p]),K=useCallback(B=>{B.preventDefault();let q=B.clipboardData.getData("text"),k=H(q);k.length>0&&k.forEach(J=>W(J));},[W]),N=useCallback(B=>{B.stopPropagation(),T(false),w.current&&w.current.blur();},[]),re=useCallback(B=>{w.current&&(B.target.closest('[data-chip="true"]')||(T(true),w.current.focus()));},[]),ye=M??r,he=v.some(B=>!B.isValid),be=!!M||s||he,j=()=>e??t;return jsx(b$4,{id:j(),label:o,helperText:ye,errorText:be?ye:void 0,disabled:false,readOnly:false,required:c,inlineLabel:u,sx:{width:S},children:jsxs(us,{ref:z,onClick:re,className:be?"error":"",style:{width:S},"data-qa":C,"data-tags":x,children:[v.map(B=>jsx(ps,{"data-chip":"true",onClick:N,children:jsx(Tt,{label:B.label,status:B.isValid?"":"errorStatus",onDelete:()=>D(B.id),clickable:true,variant:"filled"})},B.id)),jsx(ds,{children:jsx(fs,{inputRef:w,value:R,onChange:L,onKeyDown:Y,onPaste:K,onBlur:f,onFocus:B=>{if(!h){B.currentTarget.blur();return}g&&g(B);},onKeyUp:m,sx:{visibility:h?"visible":"hidden","& .MuiInputBase-input":{caretColor:h?"auto":"transparent"}},inputProps:{maxLength:a,title:i,"aria-describedby":ye?`${j()}-helper-text`:"","aria-labelledby":o?`${j()}-label`:"","data-qa":C,"data-tags":x},autoFocus:l,multiline:true,rows:4,maxRows:4,fullWidth:true})})]})})},yf=Cf;function gs({children:e,bold:t,large:o,disabled:n}){let r=ua$1();return jsx(Kb,{variant:o?"subtitle1":"body1",sx:{color:n?r.palette.ux.secondary.text.w50:r.palette.ux.primary.text.wMain,fontWeight:t?"medium":"regular",alignSelf:"center"},component:"span",children:e})}function Rf({id:e,name:t,label:o,title:n,helperText:r,hasErrors:a=false,isOn:i=false,required:l=false,disabled:s=false,largeLabel:c=false,stateText:u=false,onChange:d,dataQa:f,dataTags:p}){let m=ua$1(),[g$1,C]=useState(i);useEffect(()=>{C(i);},[i]);let x=P=>{C(P.target.checked),d&&d({name:t,value:P.target.checked});},S=()=>jsxs(Ic$1,{display:"flex",children:[a&&jsx(g,{sx:{marginRight:m.spacing()}}),r]}),b=P=>P?"On":"Off",v=()=>e||t;return jsxs(ue__default.Fragment,{children:[jsxs(Ic$1,{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",children:[jsx(kh$1,{id:`${v()}-toggle`,name:t,size:"small",inputProps:{...o?{"aria-labelledby":`${v()}-label`}:{},"data-qa":f,"data-tags":p},title:n,disabled:s,disableRipple:true,checked:g$1,onChange:x}),o&&jsx(Fragment,{children:jsxs(Le,{id:`${v()}-label`,htmlFor:`${v()}-toggle`,required:l,disabled:s,sx:{color:m.palette.ux.primary.text.wMain,cursor:s?"auto":"pointer"},children:[jsx(gs,{bold:false,large:c,disabled:s,children:`${o}${u?": ":""}`}),u&&jsx(gs,{bold:true,large:c,disabled:s,children:b(g$1)})]})})]}),r&&jsx(he,{error:a,component:"div",sx:{marginLeft:m.spacing(.4)},children:S()})]})}var Pf=Rf;var Mf=({id:e,columns:t,customContentDefinitions:o,displayedCustomContent:n,displayedColumnsChangedCallback:r,customContentDisplayChangeCallback:a,customMenuActions:i})=>{let[l$1,s]=useState(t.filter(p=>!p.isHidden&&!p.hasNoCell).length===1),c=p=>{let m=t.findIndex(g=>g.field===p.field);if(m>=0){let g=t.slice();g[m].isHidden=!g[m].isHidden,r&&r(g);}t.filter(g=>!g.isHidden).length===1?s(true):s(false);},u=t.filter(p=>!p.disableHiding).map(p=>({name:jsx(l,{name:p.field,label:p.headerName,onChange:()=>c(p),checked:!p.isHidden,disabled:!p.isHidden&&l$1}),categoryHeading:"Manage Content Shown"})),d=o?.map(p=>({name:jsx(l,{name:p.type,label:p.label,onChange:a?m=>a(p.type,!m.value):void 0,checked:!!n?.includes(p.type)}),categoryHeading:"Manage Content Shown"}))??[],f=i||[];return jsx(ho,{id:e,buttonProps:{variant:"icon",children:jsx(k,{}),title:"Settings"},items:[...u,...d,...f],closeOnSelect:false,anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}})},hs=Mf;var qo=(n=>(n.SINGLE="single",n.MULTI="multi",n.NONE="none",n))(qo||{}),da=(o=>(o.ASC="asc",o.DCS="desc",o))(da||{}),So=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.expanded":{borderBottom:"none","&:hover":{"+ tr.expanded":{":not(.selected)":{backgroundColor:e.palette.ux.secondary.w10}},"+ tr.expanded.selected":{":not(.selected)":{backgroundColor:e.palette.ux.secondary.w10}}}},height:"40px","&.header":{height:"56px",borderBottom:"none"},"&.clickable":{cursor:"pointer"},"&.selected":{backgroundColor:pi$1==="solace"?e.palette.ux.brand.w10:e.palette.ux.secondary.w20,"+ tr.expanded.selected":{backgroundColor:pi$1==="solace"?e.palette.ux.brand.w10:e.palette.ux.secondary.w20}},"&:hover":{":not(.selected)":{background:e.palette.ux.secondary.w10},"&.header":{background:"transparent"}},"td:first-of-type, th:first-of-type":{paddingLeft:`${e.spacing(2)}`}})),nt=wa("td")(({theme:e})=>({borderCollapse:"collapse",padding:`${e.spacing()} ${e.spacing(2)}`,height:"24px",".cursor-pointer":{cursor:"pointer"},"&.checkbox, &.expand-icon":{paddingRight:0},"&.expand-icon .chevron":{fill:e.palette.ux.secondary.wMain,"&.expanded":{transform:"rotate(90deg)"}},"button:hover":{backgroundColor:e.palette.ux.deprecated.primary.w20},maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0})),kf=wa(nt)(()=>({textAlign:"right"})),xs=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.clickable":{cursor:"pointer"}})),bs=wa("td")({borderCollapse:"collapse",padding:0,maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0}),Co=wa("th",{shouldForwardProp:e=>e!=="width"})(({theme:e,width:t})=>({borderCollapse:"collapse",padding:`0 ${e.spacing(2)}`,fontSize:e.typography.fontSize,fontWeight:500,minWidth:"30px",height:"48px",textAlign:"left",width:t,position:"sticky",top:0,zIndex:20,backgroundColor:e.palette.ux.background.w10,boxShadow:`inset 0 -1px 0 ${e.palette.ux.secondary.w20}`,"& .header":{minWidth:"50px",display:"flex",alignItems:"center",color:e.palette.ux.primary.text.wMain,"&.sortable":{position:"relative",cursor:"pointer","svg.asc, svg.desc":{path:{fill:e.palette.ux.secondary.wMain}},"svg.unsorted":{path:{fill:e.palette.ux.secondary.w40}},"&:hover":{"svg.asc, svg.desc, svg.unsorted":{path:{fill:e.palette.ux.primary.text.wMain}}},"&:active":{"svg.asc, svg.desc, svg.unsorted":{path:{fill:e.palette.ux.primary.text.wMain}}}}},"&.checkbox-column, &.expand-column":{minWidth:0,paddingRight:0,width:"24px"},"&.icon-column":{width:"50px",textAlign:"center"},"&.number-column .header":{justifyContent:"flex-end"}})),Ss=()=>jsx(Co,{className:"icon-column"},"emptyHeaderCell"),Cs=e=>jsx(nt,{},e.id+"_emptyRowCell"),fa=(e,t)=>{let o=t&&t.length>0?t.map(r=>({...r,onMenuItemClick:()=>{r.callback(e);}})):null,n=e.disabledRowActionMenu;return jsx(nt,{style:{textAlign:"center",paddingTop:"4px",paddingBottom:"4px"},children:o&&jsx(ho,{buttonProps:{isDisabled:n,variant:"icon",children:jsx(i,{}),title:"More Actions"},items:o,anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}})},e.id+"_actionMenu")},ys=({columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})=>jsx(Co,{className:"icon-column",children:jsx(hs,{id:"column-hiding-control",columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})},"column-hiding-control");var vs=({enabled:e,rows:t,displayedColumns:o,internalDisplayedColumns:n,selectionType:r,selectedRowIds:a,handleRowClick:i,independentRowHighlight:l,highlightedRowId:s,addCheckBoxToRows:c,renderConfiguredRowCells:u,hasRowActionItems:d,renderRowActionItems:f,rowHoverCallback:p,hasColumnHiding:m,displayedColumnsChangedCallback:g,allowToggle:C=true,selectRowWhenClickOnChildren:x=true,renderChildren:S,expandedRowIds:b,setExpandedRowIds:v})=>{let[P,R]=useState();useEffect(()=>{if(!e)return;let h=0,T=o||n;if(T&&T.length>0){T.forEach(z=>{z.isHidden||h++;});let w=0;C&&w++,r==="multi"&&w++,d&&w++,R(h+w);}},[t,e,o,n,g,m,C,r,d]);function I(h){if(!C)return;let T=b&&b?.findIndex(w=>w===h.id)>=0;return jsx(nt,{className:"expand-icon",onClick:w=>{if(w.stopPropagation(),b){let z=b.findIndex(O=>O===h.id);if(z>=0){let O=b.slice(0);O.splice(z,1),v?.(O);}else v?.([...b,h.id]);}},children:jsx(Rt,{className:`cursor-pointer chevron ${T?"expanded":""}`})},`${h.id}_chevron`)}function M(h,T){return T&&S&&jsx(xs,{className:D({selected:r==="multi"&&l?s===h.id:a?.includes(h.id),clickable:r==="multi"||r==="single",expanded:T}),onClick:()=>{x&&i(h);},children:jsx(bs,{colSpan:P,children:S(h)},`${h.id}_childrenTd_${P}`)},`${h.id}_childrenTr`)}function E(){return t.map(h=>{let T=!C||!!b?.find(w=>w===h.id);return jsxs(ue__default.Fragment,{children:[jsx(So,{onMouseEnter:p?()=>p(h):void 0,onClick:()=>i(h),className:D({selected:r==="multi"&&l?s===h.id:a?.includes(h.id),clickable:r==="multi"||r==="single",expanded:T}),"data-qa":h.id,children:[r==="multi"&&c(h),I(h),...u(h,o,n),...f(h)].filter(Boolean)},h.id),M(h,T)]},`${h.id}_wrapper`)})}return {createRowNodes:E}};var Nf="bottom-end",Hf=({rows:e,selectionType:t,selectedRowIds:o,disabledRowIds:n,independentRowHighlight:r,highlightedRowId:a,renderCustomRowCells:i,rowActionMenuItems:l$1,renderCustomRowActionItem:s,rowHoverCallback:c,hasColumnHiding:u=false,displayedColumns:d,expandableRowOptions:f,internalDisplayedColumns:p,handleDisplayColumnsChanged:m,handleRowSelectionChange:g,handleRowClick:C})=>{let x=useCallback(I=>jsx(nt,{className:"checkbox",onClick:M=>M.stopPropagation(),children:jsx(l,{name:`${I.id}`,onChange:g,checked:o.includes(I.id),disabled:n?.includes(I.id)})},`${I.id}_rowCheckbox`),[o,n,g]),S=useCallback(I=>s?[fa(I,s(I))]:l$1&&l$1.length>0?[fa(I,l$1)]:!l$1&&u?[Cs(I)]:[],[u,s,l$1]),b=useMemo(()=>!!s||l$1&&l$1.length>0||!l$1&&u,[u,s,l$1]),v=useCallback((I,M,E)=>i?i(I):((M||E)??[]).map(T=>{if(!T.hasNoCell&&!T.isHidden){let w=I.id+"_"+T.field;return jsxs(nt,{children:[T.tooltip&&jsx(b$1,{variant:"overflow",title:I[T.field],placement:Nf,children:I[T.field]}),!T.tooltip&&jsx("span",{children:I[T.field]})]},w)}else return}),[i]),P=useCallback(()=>e.map(I=>jsx(So,{onMouseEnter:c?()=>c(I):void 0,onClick:()=>C(I),className:D({selected:t==="multi"&&r?a===I.id:o.includes(I.id),clickable:(t==="multi"||t==="single")&&!n?.includes(I.id),disabled:n?.includes(I.id)}),"data-qa":I.id,children:[t==="multi"&&x(I),...v(I,d,p),...S(I)]},I.id)),[e,c,t,r,a,o,n,x,v,d,p,S,C]),R=vs({enabled:f!=null,rows:e,displayedColumns:d,internalDisplayedColumns:p,selectionType:t,handleRowClick:C,selectedRowIds:o,independentRowHighlight:r,highlightedRowId:a,addCheckBoxToRows:x,renderConfiguredRowCells:v,hasRowActionItems:b,renderRowActionItems:S,rowHoverCallback:c,hasColumnHiding:u,displayedColumnsChangedCallback:m,allowToggle:f?.allowToggle,selectRowWhenClickOnChildren:f?.selectRowWhenClickOnChildren,renderChildren:f?.renderChildren,expandedRowIds:f?.expandedRowIds,setExpandedRowIds:f?.setExpandedRowIds});return f?R.createRowNodes():P()},ws=Hf;var Ts=({fill:e})=>{let t=ua$1().palette.ux.secondary.wMain;return jsx(Na$1,{className:"asc",sx:{width:"16px",height:"10px"},viewBox:"0 0 16 10",fill:"none",children:jsxs("g",{transform:"translate(9,0)",children:[jsx("path",{d:"M3.91344 0.413412L6.15855 2.65852C6.46226 2.96224 6.23806 3.49063 5.80323 3.49595L1.25738 3.55158C0.822545 3.5569 0.611212 3.03383 0.922448 2.72259L3.22318 0.421858C3.41613 0.228918 3.72516 0.225137 3.91344 0.413412Z",fill:e??t}),jsx("g",{transform:"translate(0,6)",children:jsx("path",{d:"M3.88969 3.71893L6.21811 1.39051C6.5331 1.07552 6.31001 0.536952 5.86456 0.536952L1.20771 0.536952C0.762253 0.536952 0.539169 1.07552 0.854152 1.39051L3.18258 3.71893C3.37784 3.91419 3.69442 3.91419 3.88969 3.71893Z",fill:"none",fillOpacity:"0"})})]})})},Es=({fill:e})=>{let t=ua$1().palette.ux.secondary.wMain;return jsx(Na$1,{className:"desc",sx:{width:"16px",height:"10px"},viewBox:"0 0 16 10",fill:"none",children:jsxs("g",{transform:"translate(9,0)",children:[jsx("path",{d:"M3.91344 0.413412L6.15855 2.65852C6.46226 2.96224 6.23806 3.49063 5.80323 3.49595L1.25738 3.55158C0.822545 3.5569 0.611212 3.03383 0.922448 2.72259L3.22318 0.421858C3.41613 0.228918 3.72516 0.225137 3.91344 0.413412Z",fill:"none",fillOpacity:"0"}),jsx("g",{transform:"translate(0,6)",children:jsx("path",{d:"M3.88969 3.71893L6.21811 1.39051C6.5331 1.07552 6.31001 0.536952 5.86456 0.536952L1.20771 0.536952C0.762253 0.536952 0.539169 1.07552 0.854152 1.39051L3.18258 3.71893C3.37784 3.91419 3.69442 3.91419 3.88969 3.71893Z",fill:e??t})})]})})},Rs=({fill:e})=>{let t=ua$1().palette.ux.secondary.w40;return jsx(Na$1,{className:"unsorted",sx:{width:"16px",height:"10px"},viewBox:"0 0 16 10",fill:"none",children:jsxs("g",{transform:"translate(9,0)",children:[jsx("path",{d:"M3.91344 0.413412L6.15855 2.65852C6.46226 2.96224 6.23806 3.49063 5.80323 3.49595L1.25738 3.55158C0.822545 3.5569 0.611212 3.03383 0.922448 2.72259L3.22318 0.421858C3.41613 0.228918 3.72516 0.225137 3.91344 0.413412Z",fill:e??t}),jsx("g",{transform:"translate(0,6)",children:jsx("path",{d:"M3.88969 3.71893L6.21811 1.39051C6.5331 1.07552 6.31001 0.536952 5.86456 0.536952L1.20771 0.536952C0.762253 0.536952 0.539169 1.07552 0.854152 1.39051L3.18258 3.71893C3.37784 3.91419 3.69442 3.91419 3.88969 3.71893Z",fill:e??t})})]})})};var ga="bottom-end",Vf="Select all on this page",zf="Deselect all on this page",Xf="Select all pages",Gf="Deselect all pages";function Ps(e,t){return e?t?Xf:Vf:t?Gf:zf}var Wf=({selectionType:e,sortedColumn:t,rowActionMenuItems:o,renderCustomRowActionItem:n,headerHoverCallback:r,hasColumnHiding:a,displayedColumns:i,expandableRowOptions:l$1,customContentDefinitions:s,displayedCustomContent:c,customContentDisplayChangeCallback:u,customMenuActions:d,crossPageSelectionEnabled:f,selectAll:p,indeterminate:m,handleSelectAllChange:g,internalSortedColumn:C,handleSort:x,internalDisplayedColumns:S,handleDisplayColumnsChanged:b})=>{let v=useCallback(()=>{if(e==="multi")return jsx(Co,{className:"checkbox-column","aria-label":"Row selection",children:jsx(b$1,{title:Ps(!(p||m),f),placement:"bottom-start",children:jsx("div",{children:jsx(l,{name:"selectAllCheckbox",onChange:g,checked:p||m,indeterminate:m})})})},"selectAllCheckbox")},[e,p,m,g,f]),P=useCallback(()=>{if(l$1?.allowToggle)return jsx(Co,{className:"expand-column"},"expandHeader")},[l$1?.allowToggle]),R=useCallback((M,E)=>M.map(h=>!h.isHidden&&jsx(Co,{className:`${h.hasNoCell&&"icon-column"||h.isNumerical&&"number-column"||h.class||""}`,width:h.width?typeof h.width=="number"?h.width+"px":h.width:"auto",children:jsxs("span",{className:`${h.sortable?"sortable header":"header"}`,onClick:()=>h.sortable?x(h,t,C):void 0,children:[jsx(b$1,{variant:"overflow",title:h.headerName,placement:ga,children:h.headerName}),E?.field===h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:ga,children:jsx("div",{children:E.sortDirection==="asc"?jsx(Ts,{}):jsx(Es,{})})}),E?.field!==h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:ga,children:jsx("div",{children:jsx(Rs,{})})})]})},h.headerName)),[x,C,t]);return useCallback(()=>{let M=t||C,E=cloneDeep((i||S)??[]);return jsx(So,{className:"header",onMouseEnter:r?()=>r():void 0,children:[v(),P(),R(E,M),(!!o||n)&&!a&&Ss(),a&&ys({columns:E,displayedColumnsChangedCallback:b,customContentDefinitions:s,displayedCustomContent:c,customContentDisplayChangeCallback:u,customMenuActions:d})].filter(Boolean)},"headerRow")},[t,C,i,S,r,v,P,R,o,n,a,b,s,c,u,d])()},Is=Wf;var Ls=({rows:e,columns:t,selectionType:o,selectedRowIds:n,selectionChangedCallback:r,disabledRowIds:a,independentRowHighlight:i,highlightedRowId:l,rowHighlightChangedCallback:s,sortedColumn:c,sortCallback:u,renderCustomRowCells:d,rowActionMenuItems:f,renderCustomRowActionItem:p,headerHoverCallback:m,rowHoverCallback:g,hasColumnHiding:C,displayedColumns:x,displayedColumnsChangedCallback:S,expandableRowOptions:b,customContentDefinitions:v,displayedCustomContent:P,customContentDisplayChangeCallback:R,customMenuActions:I,crossPageRowSelectionSupported:M=false,totalObjectCount:E=0,allPagesSelectedByDefault:h=false,deselectedRowIds:T,crossPageSelectionChangedCallback:w})=>{let[z,O]=useState(false),[H,A]=useState(false),[W,D]=useState(),[L,Y]=useState(),K=useRef([]),N=useMemo(()=>o==="multi"&&M,[o,M]);useEffect(()=>{if(t){let k=cloneDeep(t);K.current=k,D(k.find(J=>J.sortable)),Y(k);}},[t]),useEffect(()=>{N||(e.length!==0&&n.length===e.length?O(true):O(false));},[n.length,e?.length,N]),useEffect(()=>{N||(n.length>0&&n.length<e.length?A(true):A(false));},[e?.length,n?.length,N]),useEffect(()=>{if(N)if(E>0){let k=h&&T.length===0||!h&&n.length===E;O(k);}else O(h);},[h,N,T.length,n.length,E]),useEffect(()=>{N&&(E>0?A(h&&T.length>0&&T.length<E||!h&&n.length>0&&n.length!==E):A(false));},[h,N,T.length,n.length,E]),useEffect(()=>{if(N&&h&&w){let k=[...n],J=[];e.forEach(V=>{if(!T.includes(V.id))k.includes(V.id)||k.push(V.id),J.push(V);else if(n.includes(V.id)){let F=k.indexOf(V.id);F>=0&&k.splice(F,1);}}),isEqual(n,k)||w(J,true,k,T);}},[w,N,e]);let re=useCallback(k=>{if(!a?.includes(k.id)&&o!=="none"){if(o==="multi"&&i)l===k.id?s?.(null):s?.(k);else if(o==="multi"&&M){if(w)if(n.includes(k.id)){let J=e.filter(Q=>n.includes(Q.id)&&Q.id!==k.id),V=n.filter(Q=>Q!==k.id),F=h?[...T,k.id]:T;w(J,h,V,F);}else w([k],false,[k.id],[]);}else if(r)if(n.includes(k.id)){let J=e.filter(V=>n.includes(V.id)&&V.id!==k.id);r(J),J.length<e.length&&z&&O(false);}else r([k]),O(e.length===1);}},[h,M,w,T,a,l,i,s,e,z,n,r,o]),ye=useCallback((k,J,V)=>{let F=K.current.find(Q=>Q.field===k.field);F&&F.sortable&&(J?(J.field===F.field?F.sortDirection=F.sortDirection==="desc"?"asc":"desc":F.sortDirection="asc",u(F)):(V?.field===F.field?F.sortDirection=F.sortDirection==="desc"?"asc":"desc":F.sortDirection="asc",D(F),u(F)));},[u]),he=useCallback(k=>{K.current?.forEach((J,V)=>{k&&k[V]&&(J.isHidden=k[V].isHidden);}),Y(k),S?.(k);},[S]),be=useCallback(k=>{let J=e;a&&a.length>0&&(J=e.filter(F=>!a.includes(F.id))),N?w&&(k.value?(O(!(J.length<e.length)),w(J,true,J.map(F=>F.id),[])):(O(false),w([],false,[],[]))):r&&(k.value?(O(true),r(J)):(O(false),r([])));},[w,N,e,r,a]),j=useCallback(k=>{if(N&&!w||!N&&!r)return;let J=e.find(V=>V.id===k.name);if(J)if(k.value){if(!n.includes(k.name)){let V=[...e.filter(F=>n.includes(F.id)&&F.id!==k.name),J];if(!N)r?.(V),V.length===e.length&&!z&&O(true);else if(N&&w){let F=[...n,k.name];h?w(V,true,F,T.filter(Q=>Q!==k.name)):w(V,false,F,T);}}}else {let V=e.filter(F=>n.includes(F.id)&&F.id!==k.name);if(!N)r?.(V),V.length<e.length&&z&&O(false);else if(N&&w){let F=n.filter(Q=>Q!==k.name);if(h){let Q=[...T,k.name];Q.length===E?w([],false,[],[]):w(V,true,F,Q);}else w(V,false,F,T);}}},[N,w,r,e,n,z,h,T,E]),B=Is({selectionType:o,sortedColumn:c,rowActionMenuItems:f,renderCustomRowActionItem:p,headerHoverCallback:m,hasColumnHiding:C,displayedColumns:x,expandableRowOptions:b,customContentDefinitions:v,displayedCustomContent:P,customContentDisplayChangeCallback:R,customMenuActions:I,crossPageSelectionEnabled:N,selectAll:z,indeterminate:H,handleSelectAllChange:be,internalSortedColumn:W,handleSort:ye,internalDisplayedColumns:L,handleDisplayColumnsChanged:he}),q=ws({rows:e,selectionType:o,selectedRowIds:n,disabledRowIds:a,independentRowHighlight:i,highlightedRowId:l,renderCustomRowCells:d,rowActionMenuItems:f,renderCustomRowActionItem:p,rowHoverCallback:g,hasColumnHiding:C,displayedColumns:x,expandableRowOptions:b,internalDisplayedColumns:L,handleDisplayColumnsChanged:he,handleRowSelectionChange:j,handleRowClick:re});return [B,q]};var Kf={xs:14,sm:24,md:30,lg:42},Qf=wa("div")(({theme:e,inline:t})=>({width:"fit-content",display:"flex",flexDirection:t?"row":"column",alignItems:"center",gap:e.spacing(1.5)}));function Wt(e){let{variant:t,value:o,size:n,disableShrink:r,dataQa:a,message:i,inline:l}=e,s=e["aria-label"],c=typeof s=="string"&&s.trim().length>0?s:typeof i=="string"&&i.trim().length>0?i:"Loading";return jsxs(Qf,{"data-qa":a??"loading-spinner",inline:l,children:[jsx(Db$1,{"aria-label":c,variant:t??"indeterminate",value:t==="determinate"?o:void 0,size:Kf[n??"sm"],disableShrink:r,sx:{color:ua$1().palette.ux.accent.n2.wMain}}),i&&jsx("div",{children:i})]})}var em=wa("div",{shouldForwardProp:e=>e!=="minHeight"&&e!=="maxHeight"})(({theme:e,minHeight:t,maxHeight:o})=>({display:"flex",flexDirection:"column",color:e.palette.ux.primary.text.wMain,border:`1px solid ${e.palette.ux.secondary.w40}`,borderRadius:"4px",width:"100%",height:"100%",minHeight:t??"200px",maxHeight:o??"100%",overflow:"auto",fontFamily:e.typography.fontFamily,fontSize:e.typography.body1.fontSize,background:e.palette.ux.background.w10,position:"relative"})),tm=wa("table")(()=>({borderCollapse:"collapse",width:"100%",tableLayout:"fixed"})),om=wa("div")(()=>({position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flex:"1"})),nm=wa("tr")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:20})),rm=wa("tr")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),am=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),im=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"calc(100% - 56px)",top:56,left:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:e.spacing(2),zIndex:3})),lm=wa("div")(({theme:e})=>({fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary})),sm="No Items Found";function cm(e,t){let o=e;return t==="single"&&o.length>1?o=o.slice(0,1):t==="multi"&&o.length>1&&(o=uniq(o)),o}function um(e){return uniq(e)}function pm(e,t,o,n){let r=e;return !(t==="multi"&&o)&&r.length>1?r=[]:t==="multi"&&o&&r.length>1&&(n?r=uniq(r):r=[]),r}function dm({id:e,rows:t,columns:o,selectionType:n,selectedRowIds:r,selectionChangedCallback:a,disabledRowIds:i,independentRowHighlight:l=false,highlightedRowId:s,rowHighlightChangedCallback:c,sortedColumn:u,sortCallback:d,renderCustomRowCells:f,emptyStateMessage:p,renderCustomEmptyState:m,showEmptyState:g,rowActionMenuItems:C,renderCustomRowActionItem:x,headerHoverCallback:S,rowHoverCallback:b,hasColumnHiding:v,displayedColumns:P,displayedColumnsChangedCallback:R,expandableRowOptions:I,loading:M,loadingMessage:E,customContentDefinitions:h,displayedCustomContent:T,customContentDisplayChangeCallback:w,maxHeight:z,minHeight:O,customMenuActions:H,crossPageRowSelectionSupported:A=false,totalObjectCount:W=0,allPagesSelectedByDefault:D=false,deselectedRowIds:L,crossPageSelectionChangedCallback:Y}){let K=cm(r??[],n),N=um(i??[]),re=pm(L??[],n,A,D),[ye,he]=Ls({rows:t,columns:o,selectionType:n,selectedRowIds:K,selectionChangedCallback:a,disabledRowIds:N,independentRowHighlight:l,highlightedRowId:s,rowHighlightChangedCallback:c,sortCallback:d,sortedColumn:u,renderCustomRowCells:f,rowActionMenuItems:C,renderCustomRowActionItem:x,headerHoverCallback:S,rowHoverCallback:b,hasColumnHiding:v,displayedColumns:P,displayedColumnsChangedCallback:R,expandableRowOptions:I,customContentDefinitions:h,displayedCustomContent:T,customContentDisplayChangeCallback:w,customMenuActions:H,crossPageRowSelectionSupported:A,totalObjectCount:W,allPagesSelectedByDefault:D,deselectedRowIds:re,crossPageSelectionChangedCallback:Y});function be(){return p||sm}function j(){return jsx(Fragment,{children:m?m():be()})}function B(){return jsxs(im,{children:[jsx(Wt,{}),E&&jsx(lm,{children:E})]})}return jsxs(em,{maxHeight:z,minHeight:O,className:"tableWrapper",children:[jsxs(tm,{"data-qa":e,children:[jsxs("thead",{style:{borderBottom:0,position:"relative"},children:[ye,M&&jsx(nm,{})]}),jsxs("tbody",{style:{position:"relative"},children:[!!t.length&&he,M&&jsx(rm,{})]})]}),jsxs(om,{children:[g!==false&&!t.length&&j(),M&&jsx(am,{})]}),M&&B()]})}var fm=dm;var As=({className:e=""})=>jsx(Na$1,{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","data-testid":"ArrowLeftIcon",children:jsx("path",{d:`M14.27,6.117l0.838,0.883c0.156,0.156,0.156,0.373,0,0.529l-4.443,4.46l4.443,4.481c0.156,0.156,0.169,0.373,0.013,0.529
5
+ C10.143,5.961,9.886,5.961,9.73,6.117z`})});var Ed=335,os=({id:e,name:t,subText:o,supplementalText:n,icon:r,secondaryAction:a,onMenuItemClick:i,onMenuClose:l,divider:s,disabled:c,subMenuItems:p,closeOnSelect:d,itemHeight:f,selected:u,subMenuMaxWidth:m=Ed,subMenuDirection:g="right",dataQa:x,dataTags:b})=>{let C=ua$1(),[S,v]=useState(null),[P,R]=useState(null),[I,M]=useState(false),[E,h]=useState("right"),T=!!S,w=A=>{A.stopPropagation(),v(null),M(false),R(null),l&&l(A);},z=A=>{let W=A.currentTarget;v(W);},O=()=>{v(null),M(false),R(null);};useEffect(()=>{if(P&&S){let A=P.offsetWidth,W=S.getBoundingClientRect(),D=window.innerWidth-W.right,L=W.left,Y;g==="left"?Y=L>=A||L>D:Y=D<A,h(Y?"left":"right"),M(true);}else S||(M(false),h("right"));},[P,S,g]);let H=()=>{if(!p||p.length===0)return null;let A=groupBy(p,D=>D.categoryHeading),W=Object.keys(A).map(D=>{let L=[],Y=D==="undefined"?null:jsx(Yb,{className:"categoryHeader",children:D},D);L.push(Y);let K=A[D].map((N,re)=>jsx(os,{id:`${N.name}-${re}`,name:N.name,itemHeight:f||38,closeOnSelect:d,subText:N?.subText,supplementalText:N?.supplementalText,divider:!!N?.divider,disabled:!!N?.disabled,icon:N?.icon,secondaryAction:N?.secondaryAction,onMenuItemClick:N?.onMenuItemClick,onMenuClose:w,subMenuItems:N?.subMenuItems,subMenuMaxWidth:N.subMenuMaxWidth??m,subMenuDirection:E},`${N.name}-${re}`));return L.push(K),L});return flatten(W)};return jsxs(Fragment,{children:[jsxs(yf$1,{id:e,"data-qa":x,"data-tags":b,onClick:A=>{A.stopPropagation(),d&&w(A),i&&i(A);},onMouseEnter:z,onMouseLeave:O,disabled:!!c,className:D({multiline:!!o&&typeof t=="string",wideMenu:!!n&&typeof t=="string",selectedItem:u}),children:[typeof t=="string"?jsxs(Fragment,{children:[r&&jsx(hf$1,{className:"menuItemIcon",style:{paddingRight:C.spacing(1)},children:r}),jsxs(me,{container:true,direction:"column",justifyContent:"center",children:[jsxs(me,{container:true,justifyContent:"space-between",direction:"row",alignItems:"center",children:[jsx(Kb,{variant:"body1",noWrap:true,children:t}),n&&jsx(me,{className:"supplementalText",item:true,children:n})]}),o&&jsx(me,{className:"subtext",item:true,children:jsx("span",{className:"subtext",children:o})})]}),a&&jsx(me,{container:true,sx:{marginLeft:`${o?0:C.spacing(3)}`,width:"auto"},justifyContent:"end",alignItems:"center",className:"menuItemIcon",children:a}),p&&p.length>0&&jsx(me,{container:true,sx:{marginLeft:C.spacing(3),width:"auto"},alignItems:"center",children:jsx(Rt,{})})]}):t,p&&p.length>0&&jsx(vf,{id:e,"data-qa":`${x}-subMenu-${e}`,"data-tags":`${b}-subMenu-${e}`,anchorEl:S,open:T,anchorOrigin:{vertical:"top",horizontal:E==="left"?"left":"right"},transformOrigin:{vertical:"top",horizontal:E==="left"?"right":"left"},onClose:w,PaperProps:{style:{maxHeight:f?`${f*9.5}px`:`${38*9.5}px`,maxWidth:`${m}px`},ref:A=>{R(A);}},className:"SolaceMenu",style:{pointerEvents:"none",opacity:I?1:0,transition:"opacity 0.1s ease-in-out"},children:jsx("div",{style:{pointerEvents:I?"auto":"none"},children:H()})},`key-${e}`)]},e),!!s&&jsx(Pd,{})]})},ta=os;function Zn(){let[e,t]=useState(0),[o,n]=useState(0),[r,a]=useState(0),[i,l]=useState(false),s=useCallback(f=>{t(Math.round(f.target.scrollTop)),n(f.target.scrollHeight),a(f.target.offsetHeight);},[]);useEffect(()=>{i&&e>0&&(t(0),l(false));},[i,e]);let c=useCallback(()=>{l(true),t(0),n(0),a(0);},[]),p=useCallback(()=>{let f=r===o-e,u=e===0,m=e>0&&r<o-e,g="";return u?g="isTop":m?g="isBetween":f&&(g="isBottom"),g},[r,o,e]);return {maskImage:useCallback(()=>{let f=p(),u="linear-gradient(to top, black 85%, transparent 100%)",m="linear-gradient(to bottom, black 85%, transparent 100%)",g="linear-gradient(transparent 0%, black 15%, black 85%, transparent 100%)",x="none";return f==="isTop"?x=m:f==="isBetween"?x=g:f==="isBottom"&&(x=u),x},[p])(),scrollPosition:p(),resetScrollPosition:c,onScrollHandler:s}}var kd=9,Ad=335,ns=32;function ho(e){let{id:t="solace-menu",buttonProps:o,items:n,header:r,numOfMenuItemDisplayed:a=kd,maxWidth:i=Ad,multiline:l=false,propagateMenuClick:s=false,closeOnSelect:c=true,anchorOrigin:p={vertical:"bottom",horizontal:"left"},transformOrigin:d={vertical:"top",horizontal:"left"},dataQa:f,dataTags:u}=e,{maskImage:m,onScrollHandler:g,resetScrollPosition:x}=Zn(),b=l?58:38,[C,S]=useState(null),[v,P]=useState(null),[R,I]=useState(),M=H=>{I(H.currentTarget.classList),s||H.stopPropagation(),n?.length&&S(H.currentTarget),H.currentTarget.classList.toggle("pressed"),o.onClick&&o.onClick(H);},E=H=>{R?.remove("pressed"),I(R),H.stopPropagation(),S(null),x();},h=groupBy(n,H=>H.categoryHeading),T=useMemo(()=>Object.keys(h).filter(H=>H!=="undefined").length,[h]),w=useMemo(()=>b*a+b/2+T*ns+(r?1:0)*ns+8,[T,r,b,a]),z=useMemo(()=>n?n.length>a:false,[n,a]),O=Object.keys(h).map(H=>{let A=[],W=H==="undefined"?null:jsx(Yb,{className:"categoryHeader",children:H},H);A.push(W);let D=h[H].map((L,Y)=>{let K=jsx(ta,{id:L.id,name:L?.name,subText:L?.subText,supplementalText:L?.supplementalText,dataQa:L?.dataQa,dataTags:L?.dataTags,closeOnSelect:c,divider:!!L?.divider,disabled:!!L?.disabled,icon:L?.icon,secondaryAction:L?.secondaryAction,onMenuItemClick:L?.onMenuItemClick,onMenuClose:E,subMenuItems:L?.subMenuItems,selected:L?.selected,itemHeight:b,subMenuMaxWidth:L.subMenuMaxWidth??i},Y),N=jsx(b$1,{title:L.disabledMenuItemTooltipContent||"This menuItem is disabled.",children:jsx("span",{children:K})});return L.disabled&&L.disabledMenuItemTooltipContent?N:K});return A.push(D),A});return useEffect(()=>{let H=v;return H?.addEventListener("scroll",g),()=>{H?.removeEventListener("scroll",g);}},[v,g]),jsxs(Fragment$1,{children:[jsx(b$2,{"aria-label":Vl(),...o,onClick:M}),z&&jsx(sf$1,{anchorEl:C,open:!!C,anchorOrigin:p,transformOrigin:d,onClose:E,className:"SolaceMenuPopover",PaperProps:{style:{width:v?.offsetWidth,height:v?.offsetHeight}},transitionDuration:303}),jsxs(vf,{id:t,"data-qa":f,"data-tags":u,anchorEl:C,open:!!C,anchorOrigin:p,transformOrigin:d,onClose:E,slotProps:{paper:{style:{maxHeight:`${w}px`,maskImage:z?m:"none",WebkitMaskImage:z?m:"none",maxWidth:`${i}px`},ref:H=>{P(H);},onClick:H=>{H.stopPropagation();}}},className:"SolaceMenu",children:[r&&jsx(Yb,{children:r}),flatten(O)]},`key-${t}`)]})}var Bd=wa(_h$1)(({textEllipsisPosition:e,theme:t,hideInputText:o})=>({"& .MuiOutlinedInput-input":{height:"32px",...e==="start"&&{direction:"rtl",textAlign:"left"},...e==="middle"&&{color:o?"transparent":t.palette.ux.primary.text.wMain}},"& .MuiOutlinedInput-root.MuiInputBase-adornedEnd":{paddingRight:t.spacing(4)}})),Od=wa("ul")(()=>({padding:0})),ra=wa("span")(({theme:e})=>({color:e.palette.ux.secondary.text.wMain,whiteSpace:"nowrap",display:"flex",justifyContent:"flex-end",className:"menuItemIcon",".MuiSvgIcon-root":{fill:e.palette.ux.secondary.wMain}})),Yn="SolaceSelectAutocomplete";function Dd({label:e,error:t}){let o=ua$1();return jsxs(Ic$1,{display:"flex",flexDirection:"column",rowGap:o.spacing(1.5),children:[jsx(Ic$1,{style:{wordBreak:"break-word"},children:e}),jsx(Pd,{}),jsxs(Ic$1,{display:"flex",alignItems:"flex-start",columnGap:o.spacing(.5),children:[jsx(d,{size:18,fill:o.palette.ux.error.w100}),t]})]})}function $d({id:e,name:t,label:o,value:n,helperText:r,title:a,placeholder:i,hasErrors:l=false,required:s=false,inlineLabel:c=false,disabled:p=false,readOnly:d=false,multiple:f=false,onChange:u,itemComponent:m,itemMappingCallback:g,optionsLabelCallback:x,getShowOptionDividerCallback:b,shouldClearSearchOnSelectCallback:C,groupByCallback:S,showGroupDivider:v=false,dataQa:P,dataTags:R,options:I,renderTags:M,limitTags:E,getLimitTagsText:h$1,fetchOptionsCallback:T,onCloseCallback:w,isOptionEqualToValueCallback:z,getOptionDisabledCallback:O,getOptionKeyCallback:H,getOptionValidationErrorCallback:A,validateInputCallback:W,width:D,inputRef:L,openOnFocus:Y=false,disableCloseOnSelect:K,clearSearchOnSelect:N=false,maxHeight:re="40vh",fullWidth:ye=false,minWidth:he,tagMaxWidth:be="200px",showSupplementalTextOrSecondaryAction:j=false,showLeftIcon:B=false,textEllipsisPosition:q="end"}){let k=ua$1(),[J,V]=useState(n||null),[F,Q]=useState(""),[Ge,no]=useState(null),[mt,bn]=useState(I||[]),[Nr,Hr]=useState(false),[Sn,At]=useState(false),[gt,Bt]=useState(false),[Do,Cn]=useState(false),[ht,xt]=useState(false),$o=useRef(""),yn=useRef(null),[G,Z]=useState(null),pe=useRef(null),Fr=useRef(null),vn=useRef(null),[Fu,_u]=useState(0),[Vu,zu]=useState(0),[di,_r]=useState(""),No=useMemo(()=>f&&!N,[N,f]);useEffect(()=>{V(n||null);},[n]),useEffect(()=>{Hr(gt&&Sn);},[gt,Sn]),useEffect(()=>{F.length>0&&(bn([]),f&&W?.(F)?(At(false),Bt(false)):(At(true),T(F)));},[F,T,W,f]),useEffect(()=>{bn(I),At(false);},[I]),useEffect(()=>{ht&&(At(true),T(""),xt(false));},[T,ht]);let Xu=32,Gu=useCallback(_=>{_&&(yn.current=_,Z(_));},[]),fi=useCallback(_=>_.subText?58:38,[]),Vr=useCallback((_,U,te,se)=>_+U+te*Xu+16>=se,[]),mi=useCallback((_,U)=>!!(S&&S(_)!==U),[S]),gi=useCallback(_=>_&&S?S(_):"",[S]),Wu=_=>{let U=_.match(/[\d.]+|\D+/g);if(yn.current){let te=yn.current;if(!U||U.length<2)return _;let[se,me]=U,ce=parseFloat(se);if(isNaN(ce))return null;switch(me){case "px":return ce;case "em":return te?ce*parseFloat(getComputedStyle(te).fontSize):null;case "rem":return ce*parseFloat(getComputedStyle(document.documentElement).fontSize);case "%":return te?ce*te.clientHeight/100:null;case "vh":return ce*window.innerHeight/100;case "vw":return ce*window.innerWidth/100;default:return null}}return null},wn=useMemo(()=>{let _=0,U=0,te=0,se=0,me="",ce=0;if(!G)return;let ve=Wu(re);if(typeof ve=="string")return ve;if(!(!ve||ve<=58||ve>=G.scrollHeight)){for(let We=0;We<mt.length;We++){let bt=mt[We];if(U=fi(bt),Vr(_,U,se,ve)){ce=ve-_;break}if(typeof bt=="object"){if(mi(bt,me)&&(se++,te&&Vr(_,U,se,ve))){ce=ve-_;break}me=gi(bt);}_+=U,te=U;}return te/2+ce-8-(se===0?0:se*32)}},[fi,G,mt,re,Vr,mi,gi]),Ju=(_,U,te)=>{te==="clear"&&No&&F||(V(U||null),u&&u({name:t,value:U}),te==="selectOption"&&No&&U&&C&&(Array.isArray(U)&&U.some(me=>C(me))||C(U))&&(Q(""),xt(true)));},Uu=(_,U,te)=>{if(No&&(te==="reset"||te==="selectOption"||te==="removeOption")&&$o.current)Q($o.current);else if($o.current=U,Q(U),U==="")no(null),xt(true);else if(!p&&!d&&f){let se=W?.(U);no(se??null),Bt(!se);}},qu=()=>{Bt(true),(!f||!F)&&xt(true);},Zu=()=>{w&&w(),No&&(Q(""),no(null)),Bt(false),Cn(false);},Yu=()=>{Q(""),no(null),Cn(false);},Ku=_=>{let U=J.slice();U.splice(_,1),V(U),u&&u({name:t,value:U});},Tn=()=>e||t,Qu=_=>{Fr.current=_,L&&L(_);},zr=useCallback(()=>{let _=pe.current,U=Fr.current;if(!_||!U)return;let te=_.getBoundingClientRect(),se=U.getBoundingClientRect(),me=Math.max(0,se.left-te.left),ce=Math.max(0,te.right-se.right);_u(me),zu(ce);},[]),hi=useCallback(_=>{let U=Fr.current;if(!U)return _;let te=getComputedStyle(U),se=`${te.fontStyle} ${te.fontVariant} ${te.fontWeight} ${te.fontSize}/${te.lineHeight} ${te.fontFamily}`;vn.current||(vn.current=document.createElement("canvas"));let ce=vn.current.getContext("2d");if(!ce)return _;ce.font=se;let ve=U.clientWidth,We="...";if(ce.measureText(_).width<=ve)return _;let St=0,En=_.length-1,Ho="",Fo="";for(;St<=En;){let Rn=Ho+_[St],Pn=_[En]+Fo;if(ce.measureText(Rn+We+Pn).width+1<=ve)Ho=Rn,Fo=Pn,St++,En--;else {let xi=ce.measureText(Rn+We+Fo).width,bi=ce.measureText(Ho+We+Pn).width;if(xi<=ve&&xi>=bi)Ho=Rn,St++;else if(bi<=ve)Fo=Pn,En--;else break}}return Ho+We+Fo},[]),Xr=useCallback(()=>{if(f||q!=="middle")return;let _=J&&!Array.isArray(J)?J:null,U=_?x(g(_)):"";if(!U){_r("");return}_r(gt||Do?"":hi(U));},[hi,Do,g,f,gt,x,J,q]);useEffect(()=>{zr(),Xr();let _=window.ResizeObserver,U=_?new _(()=>{zr(),Xr();}):void 0;return pe.current&&U&&U.observe(pe.current),()=>{U?.disconnect(),vn.current=null;}},[zr,Xr]);let ju=_=>S&&v?jsxs("li",{children:[(_.key!==0||_.group)&&jsxs("div",{children:[_.key!==0&&jsx(Pd,{}),_.group&&jsx("div",{className:"MuiAutocomplete-groupLabel",children:_.group})]}),_.children&&jsx(Od,{children:_.children})]},_.key):null,ep=(_,U)=>jsx(b$1,{variant:a$2.rich,title:jsx(Dd,{label:_,error:U}),placement:"bottom-start",children:jsx("span",{children:_})}),tp=_=>jsx(b$1,{variant:a$2.overflow,title:_,placement:"bottom-start",children:_}),op=_=>_.map((U,te)=>{let se=x(g(U)),me=A?.(U)??null;return jsx(Tt,{label:jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:me?ep(se,me):tp(se)}),clickable:!d,disabled:p,onDelete:()=>Ku(te),dataQa:`${P??Yn}-${te}`,status:me?"errorStatus":"",maxWidth:be===null?void 0:be},`${P??Yn}-${te}`)}),np=()=>jsx(nc,{ListboxProps:{style:{maxHeight:typeof wn=="string"?wn:`calc(${re} - ${wn?wn+"px":"0px"})`},ref:Gu},id:Tn(),"data-qa":P??Yn,filterOptions:_=>_,onInputChange:Uu,options:mt,autoHighlight:true,value:J,inputValue:F,getOptionLabel:_=>{let U=g(_);return x(U)},renderOption:(_,U)=>{if(U){let te=g(U),se=b?.(U)??false,me=x(g(U)),ce=H?.(U)??me;return createElement(Ic$1,{component:"li",..._,key:ce,style:{borderBottom:se?`1px solid ${k.palette.ux.secondary.w20}`:"none"}},m(te))}return null},disabled:p||d,loading:Nr,open:gt,multiple:f,disableCloseOnSelect:K??f,onClose:Zu,openOnFocus:Y,onOpen:qu,onChange:Ju,onBlur:Yu,popupIcon:jsx(a$1,{}),renderInput:_=>{let{InputProps:U,inputProps:te,...se}=_,me=J&&!Array.isArray(J)?J:null,ce=me?me.supplementalText:null,ve=me?me.secondaryAction:null,We=me?me.icon:null,bt=gt||Do;return jsxs(Ic$1,{sx:{position:"relative"},ref:pe,children:[jsx(Bd,{...se,textEllipsisPosition:q,hideInputText:!bt&&q==="middle",title:a,autoComplete:"off",placeholder:i,error:!!Ge||l,inputProps:{...te,"data-qa":`${P??Yn}-input`,"data-tags":R,...r?{"aria-describedby":`${Tn()}-select-helper-text`}:{},...o?{"aria-labelledby":`${Tn()}-label`}:{},"aria-readonly":d,title:a},InputProps:{...U,sx:{height:k.spacing(4)},className:d?"readOnlySelect":"",disabled:p,readOnly:d,required:s,startAdornment:jsxs(Fragment,{children:[U.startAdornment,B&&We&&jsx(ra,{sx:{padding:k.spacing(0,1,0,0)},children:We})]}),endAdornment:jsxs(Fragment,{children:[U.endAdornment,j&&ce&&jsx(ra,{sx:{padding:k.spacing(0,1)},children:ce}),j&&ve&&jsx(ra,{sx:{padding:k.spacing(0,1)},children:ve})]})},inputRef:Qu,onKeyDown:St=>{(St.key==="Backspace"||St.key==="Delete")&&St.stopPropagation();}}),!f&&q==="middle"&&di&&!bt&&jsx(Ic$1,{"aria-hidden":true,sx:{position:"absolute",pointerEvents:"none",top:0,left:`${Fu}px`,right:`${Vu}px`,height:"100%",display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",color:k.palette.ux.primary.text.wMain,padding:0},children:di})]})},isOptionEqualToValue:z,getOptionDisabled:O,renderTags:M||op,limitTags:E,getLimitTagsText:h$1,ChipProps:{deleteIcon:jsx(h,{})},groupBy:S,renderGroup:S&&v?ju:void 0,fullWidth:ye,sx:{minWidth:he},clearText:No&&F?"Clear Search":"Clear"});return jsx(b$4,{id:Tn(),label:o,helperText:r,errorText:Ge||(l?r:void 0),disabled:p,readOnly:d,required:s,inlineLabel:c,centerInlineLabel:c,sx:{width:D},children:np()})}var Nd=$d;var Fd=e=>e?.name??"",_d=e=>e?.divider??false,Vd=(e,t)=>e?.value===t?.value,zd=e=>e?.categoryHeading??"";function Xd({name:e,subText:t,supplementalText:o,isNew:n,icon:r,secondaryAction:a}){let i=o?8:12,l=o?"16px":"0px";return jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center"},children:[r&&jsx(hf$1,{className:"menuItemIcon",style:{paddingRight:"8px"},children:r}),jsxs(me,{container:true,direction:"column",className:D({multiline:!!t||n}),py:.5,children:[jsxs(me,{container:true,justifyContent:"space-between",direction:"row",alignItems:"flex-start",children:[jsx(me,{item:true,xs:i,zeroMinWidth:true,style:{wordBreak:"break-word",paddingRight:l},children:e}),o&&jsx(me,{container:true,className:"supplementalText",item:true,xs:4,direction:"column",alignItems:"flex-end",justifyContent:"flex-start",style:{marginLeft:"0px"},children:o})]}),t&&jsx(me,{className:"subtext",item:true,children:jsx("span",{className:"subtext",children:t})})]}),a&&jsx(me,{container:true,sx:{marginLeft:`${t?0:"24px"}`,width:"auto"},justifyContent:"end",alignItems:"center",className:"menuItemIcon",children:a})]})}var Gd=Xd;var Jd=wa("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",fontFamily:e.typography.fontFamily})),Ud=wa("div")(()=>({margin:"0px 0px 40px 0px"})),qd=wa("p")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.xl,color:e.palette.ux.primary.text.wMain,textAlign:"center"})),Zd=wa("div")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.sm,color:e.palette.ux.primary.text.wMain})),Yd=wa("div")(()=>({display:"flex",flexDirection:"row",alignItems:"center"}));function Kd({msgImg:e,title:t,details:o,actions:n}){return jsxs(Jd,{children:[e&&jsx(Ud,{children:e}),t&&jsx(qd,{children:t}),o&&jsx(Zd,{children:o}),n&&jsx(Yd,{children:(()=>{if(Array.isArray(n)&&!isEmpty(n)){let a=[];return n.forEach(i=>a.push(jsx(b$2,{dataQa:i.dataQa,...i},i.id))),a}else return n})()})]})}var Qd=Kd;function ia(e){let t=useRef(e);return useLayoutEffect(()=>{t.current=e;},[e]),useCallback((...o)=>{if(t.current)return t.current(...o)},[])}var lf=wa("div",{shouldForwardProp:e=>e!=="multiline"&&e!=="maxHeight"&&e!=="columnGap"&&e!=="rowGap"&&e!=="show"})(({multiline:e,maxHeight:t,columnGap:o,rowGap:n,show:r})=>({display:"flex",flexWrap:e?"wrap":"nowrap",columnGap:o,rowGap:n,alignItems:e?"flex-start":"center",visibility:r?"visible":"hidden",maxHeight:t||"unset",overflow:"hidden"})),sf=wa("div",{shouldForwardProp:e=>e!=="maxHeight"})(({theme:e,maxHeight:t})=>({display:"flex",flexDirection:"column",rowGap:e.spacing(1.5),maxHeight:t,overflowY:"auto"}));function ss(e,t,o){return e===1&&o?o:t}var cf=58,uf=66;function pf({items:e,showAll:t=true,columnGap:o=12,rowGap:n=8,containerWidth:r,componentToShowOverflowItems:a="popover",overflowItemsPlacement:i="bottom-start",overflowIndicatorLabel:l="more",overflowIndicatorLabelSingular:s,overflowIndicatorLabelWidth:c,numOfRowsToShow:p=1,numOfMenuItemsToDisplay:d=9,onItemsRendered:f,onItemsOverflow:u,onItemsOverflowIndicatorClick:m,dataQa:g="responsiveItemList"}){let[x,b]=useState(null),[C,S]=useState(false),[v,P]=useState(false),R=useRef({}),I=useRef(24),M=useRef(null),E=ia(f),h=ia(u),T=useMemo(()=>{let H=e?.length??0,A=x?.length??0;return H-A},[e?.length,x?.length]),w=useMemo(()=>{if(e&&x){let H=T>d?`${(I.current+12)*d-6}px`:"unset";return jsx(sf,{maxHeight:H,children:e.filter(A=>!x.includes(A.id)).map(A=>jsx("div",{children:A.content},`popoverItem-${A.id}`))})}else return},[e,T,x,d]),z=useMemo(()=>e?e.map(H=>H.id):null,[e]),O=useCallback(()=>{if(r===void 0||!e)return;let H=r,A=[],W=0,D=0,L=1,Y=false;for(let N=0;N<e.length;N++){D=W;let re=(R.current[e[N].id]??0)+(N<e.length-1?o:0);if(W+=re,W>H)if(L===p){Y=true;break}else A.push(e[N].id),D=re,W=re,L++;else A.push(e[N].id),D=W;}let K=e.length-A.length<10?cf:uf;if(c&&(K=c),Y&&D+K>H)for(let N=A.length-1;N>=0&&(D-=(R.current[A[N]]??0)+(N<e.length-1?o:0),A.splice(N,1),!(D+K<=H));N--);S(true),b(A),h?.(e.filter(N=>!A.includes(N.id))),E?.();},[r,e,c,h,E,o,p]);return useEffect(()=>{if(e){let H=e.map(W=>W.id),A=H.join(",");M.current!==A&&(M.current=null,R.current={},P(false)),t?(b(H),S(true),E?.()):b(H);}},[e,t,E]),useEffect(()=>{v&&!t&&O();},[v,O,t]),z?jsxs(lf,{multiline:t||p>1,maxHeight:t?void 0:`${p*I.current+(p-1)*n}px`,columnGap:o+"px",rowGap:n+"px",show:C,"data-qa":g,children:[e.map(H=>x?.includes(H.id)&&jsx("span",{"data-qa":`${g}-listItem`,ref:A=>{if(A&&!R.current[H.id]&&(R.current[H.id]=A.offsetWidth,I.current=A.offsetHeight,!t)){let W=difference(z,Object.keys(R.current)),D=z.join(",");W.length===0&&M.current!==D&&(M.current=D,setTimeout(()=>{P(true);},0));}},children:H.content},`listItem-${H.id}`)),!t&&T>0&&jsxs(Fragment,{children:[a==="popover"&&jsx(b$1,{title:w,placement:i,dataQa:`${g}-overflowPopover`,variant:a$2.rich,children:jsx("span",{children:jsx(b$2,{variant:"link",onClick:m||void 0,dense:true,children:jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${T} ${ss(T,l,s)}`})})})}),a!=="popover"&&jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${T} ${ss(T,l,s)}`})]})]}):null}var ua=ue__default.memo(pf);var hf=wa("div")(()=>({paddingRight:"6px"}));function xf({containerWidth:e,tags:t,tagMaxWidth:o="160px",numOfRowsToShow:n=1,overflowIndicatorLabel:r,overflowIndicatorLabelSingular:a,overflowIndicatorLabelWidth:i,onDelete:l,dataQa:s="autocompleteTags",disabled:c=false,readOnly:p=false}){let d=useCallback(u=>{l?.(u);},[l]),f=useMemo(()=>t?.map(u=>({id:u.id,content:jsx(Tt,{clickable:!p,variant:"filled",maxWidth:o,label:u.label,disabled:c,onDelete:p?void 0:()=>d(u.id)},`${s}-${u.id}`)})),[s,d,o,t,c,p]);return f?.length>0?jsx(hf,{children:jsx(ua,{containerWidth:e!==void 0?e-120:e,items:f,showAll:false,numOfRowsToShow:n,columnGap:0,componentToShowOverflowItems:null,overflowIndicatorLabel:r,overflowIndicatorLabelSingular:a,overflowIndicatorLabelWidth:i,dataQa:s})}):null}var bf=ue__default.memo(xf);var us=wa(Ic$1)(({theme:e})=>({display:"flex",flexWrap:"wrap",alignItems:"flex-start",width:"100%",minHeight:e.spacing(4),padding:"2px 4px",border:`1px solid ${e.palette.ux.secondary.w40}`,borderRadius:"4px","&.error":{borderColor:e.palette.ux.error.wMain,borderWidth:"1px"},"&:focus-within":{borderColor:e.palette.ux.primary.wMain,borderWidth:"1px"}})),ps=wa(Ic$1)(({theme:e})=>({margin:e.spacing(.5),display:"inline-flex",alignItems:"flex-start"})),ds=wa("div")({display:"inline-flex",flexGrow:1,minWidth:"50px"}),fs=wa(ec$1)(({theme:e})=>({flex:1,padding:e.spacing(.5,0),"& .MuiInputBase-input":{padding:0,height:"120px"}}));var Cf=({id:e,name:t,label:o,value:n,helperText:r,maxLength:a=c$1.maxLength,title:i,autoFocus:l=false,hasErrors:s=false,required:c=false,inlineLabel:p=false,onChange:d,onBlur:f,onKeyDown:u,onKeyUp:m,onFocus:g,dataQa:x,dataTags:b,width:C,validateChip:S})=>{let[v,P]=useState([]),[R,I]=useState(""),[M,E]=useState(void 0),[h,T]=useState(true),w=useRef(null),z=useRef(null);useEffect(()=>{if(n!==void 0){let q=H(n).map(k=>{let J=S?S(k):void 0;return {id:O(),label:k,isValid:!J,errorMessage:J}});P(q);}},[n,S]);let O=()=>`chip-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,H=B=>B.split(/[\s,;]+/).map(q=>q.trim()).filter(q=>q.length>0),A=B=>B.map(q=>q.label).join(","),W=useCallback(B=>{let q=F=>{if(F&&S)return S(F)},k=B.trim();if(!k)return;let J=q(k),V={id:O(),label:k,isValid:!J,errorMessage:J};P(F=>{let Q=[...F,V];return d&&d({name:t,value:R,chips:Q,allValues:A(Q)}),Q}),I(""),J&&E(J);},[R,t,d,S]),D=useCallback(B=>{P(q=>{let k=q.filter(V=>V.id!==B);return d&&d({name:t,value:R,chips:k,allValues:A(k)}),k.every(V=>V.isValid)&&E(void 0),k});},[R,t,d]),L=useCallback(B=>{let q=B.target.value,k=q;if(E(void 0),/[\s,;]/.test(q)){let J=H(q);J.length>1&&(J.slice(0,-1).forEach(V=>W(V)),k=J[J.length-1]);}I(k),d&&d({name:t,value:q,chips:v,allValues:A(v)});},[W,v,t,d]),Y=useCallback(B=>{if((B.key==="Enter"||B.key===" "||B.key===","||B.key===";")&&R.trim()&&(B.preventDefault(),W(R)),(B.key==="Backspace"||B.key==="Delete")&&R.length===0){B.preventDefault();let q=v[v.length-1];q&&D(q.id);}B.key==="Space"&&B.preventDefault(),u&&u(B);},[W,v,D,R,u]),K=useCallback(B=>{B.preventDefault();let q=B.clipboardData.getData("text"),k=H(q);k.length>0&&k.forEach(J=>W(J));},[W]),N=useCallback(B=>{B.stopPropagation(),T(false),w.current&&w.current.blur();},[]),re=useCallback(B=>{w.current&&(B.target.closest('[data-chip="true"]')||(T(true),w.current.focus()));},[]),ye=M??r,he=v.some(B=>!B.isValid),be=!!M||s||he,j=()=>e??t;return jsx(b$4,{id:j(),label:o,helperText:ye,errorText:be?ye:void 0,disabled:false,readOnly:false,required:c,inlineLabel:p,sx:{width:C},children:jsxs(us,{ref:z,onClick:re,className:be?"error":"",style:{width:C},"data-qa":x,"data-tags":b,children:[v.map(B=>jsx(ps,{"data-chip":"true",onClick:N,children:jsx(Tt,{label:B.label,status:B.isValid?"":"errorStatus",onDelete:()=>D(B.id),clickable:true,variant:"filled"})},B.id)),jsx(ds,{children:jsx(fs,{inputRef:w,value:R,onChange:L,onKeyDown:Y,onPaste:K,onBlur:f,onFocus:B=>{if(!h){B.currentTarget.blur();return}g&&g(B);},onKeyUp:m,sx:{visibility:h?"visible":"hidden","& .MuiInputBase-input":{caretColor:h?"auto":"transparent"}},inputProps:{maxLength:a,title:i,"aria-describedby":ye?`${j()}-helper-text`:"","aria-labelledby":o?`${j()}-label`:"","data-qa":x,"data-tags":b},autoFocus:l,multiline:true,rows:4,maxRows:4,fullWidth:true})})]})})},yf=Cf;function gs({children:e,bold:t,large:o,disabled:n}){let r=ua$1();return jsx(Kb,{variant:o?"subtitle1":"body1",sx:{color:n?r.palette.ux.secondary.text.w50:r.palette.ux.primary.text.wMain,fontWeight:t?"medium":"regular",alignSelf:"center"},component:"span",children:e})}function Rf({id:e,name:t,label:o,title:n,helperText:r,hasErrors:a=false,isOn:i=false,required:l=false,disabled:s=false,largeLabel:c=false,stateText:p=false,onChange:d,dataQa:f,dataTags:u}){let m=ua$1(),[g$1,x]=useState(i);useEffect(()=>{x(i);},[i]);let b=P=>{x(P.target.checked),d&&d({name:t,value:P.target.checked});},C=()=>jsxs(Ic$1,{display:"flex",children:[a&&jsx(g,{sx:{marginRight:m.spacing()}}),r]}),S=P=>P?"On":"Off",v=()=>e||t;return jsxs(ue__default.Fragment,{children:[jsxs(Ic$1,{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",children:[jsx(kh$1,{id:`${v()}-toggle`,name:t,size:"small",inputProps:{...o?{"aria-labelledby":`${v()}-label`}:{},"data-qa":f,"data-tags":u},title:n,disabled:s,disableRipple:true,checked:g$1,onChange:b}),o&&jsx(Fragment,{children:jsxs(Le,{id:`${v()}-label`,htmlFor:`${v()}-toggle`,required:l,disabled:s,sx:{color:m.palette.ux.primary.text.wMain,cursor:s?"auto":"pointer"},children:[jsx(gs,{bold:false,large:c,disabled:s,children:`${o}${p?": ":""}`}),p&&jsx(gs,{bold:true,large:c,disabled:s,children:S(g$1)})]})})]}),r&&jsx(he,{error:a,component:"div",sx:{marginLeft:m.spacing(.4)},children:C()})]})}var Pf=Rf;var Mf=({id:e,columns:t,customContentDefinitions:o,displayedCustomContent:n,displayedColumnsChangedCallback:r,customContentDisplayChangeCallback:a,customMenuActions:i})=>{let[l$1,s]=useState(t.filter(u=>!u.isHidden&&!u.hasNoCell).length===1),c=u=>{let m=t.findIndex(g=>g.field===u.field);if(m>=0){let g=t.slice();g[m].isHidden=!g[m].isHidden,r&&r(g);}t.filter(g=>!g.isHidden).length===1?s(true):s(false);},p=t.filter(u=>!u.disableHiding).map(u=>({name:jsx(l,{name:u.field,label:u.headerName,onChange:()=>c(u),checked:!u.isHidden,disabled:!u.isHidden&&l$1}),categoryHeading:"Manage Content Shown"})),d=o?.map(u=>({name:jsx(l,{name:u.type,label:u.label,onChange:a?m=>a(u.type,!m.value):void 0,checked:!!n?.includes(u.type)}),categoryHeading:"Manage Content Shown"}))??[],f=i||[];return jsx(ho,{id:e,buttonProps:{variant:"icon",children:jsx(k,{}),title:"Settings"},items:[...p,...d,...f],closeOnSelect:false,anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}})},hs=Mf;var qo=(n=>(n.SINGLE="single",n.MULTI="multi",n.NONE="none",n))(qo||{}),da=(o=>(o.ASC="asc",o.DCS="desc",o))(da||{}),So=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.expanded":{borderBottom:"none","&:hover":{"+ tr.expanded":{":not(.selected)":{backgroundColor:e.palette.ux.secondary.w10}},"+ tr.expanded.selected":{":not(.selected)":{backgroundColor:e.palette.ux.secondary.w10}}}},height:"40px","&.header":{height:"56px",borderBottom:"none"},"&.clickable":{cursor:"pointer"},"&.selected":{backgroundColor:pi$1==="solace"?e.palette.ux.brand.w10:e.palette.ux.secondary.w20,"+ tr.expanded.selected":{backgroundColor:pi$1==="solace"?e.palette.ux.brand.w10:e.palette.ux.secondary.w20}},"&:hover":{":not(.selected)":{background:e.palette.ux.secondary.w10},"&.header":{background:"transparent"}},"td:first-of-type, th:first-of-type":{paddingLeft:`${e.spacing(2)}`}})),nt=wa("td")(({theme:e})=>({borderCollapse:"collapse",padding:`${e.spacing()} ${e.spacing(2)}`,height:"24px",".cursor-pointer":{cursor:"pointer"},"&.checkbox, &.expand-icon":{paddingRight:0},"&.expand-icon .chevron":{fill:e.palette.ux.secondary.wMain,"&.expanded":{transform:"rotate(90deg)"}},"button:hover":{backgroundColor:e.palette.ux.deprecated.primary.w20},maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0})),kf=wa(nt)(()=>({textAlign:"right"})),xs=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.clickable":{cursor:"pointer"}})),bs=wa("td")({borderCollapse:"collapse",padding:0,maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0}),Co=wa("th",{shouldForwardProp:e=>e!=="width"})(({theme:e,width:t})=>({borderCollapse:"collapse",padding:`0 ${e.spacing(2)}`,fontSize:e.typography.fontSize,fontWeight:500,minWidth:"30px",height:"48px",textAlign:"left",width:t,position:"sticky",top:0,zIndex:20,backgroundColor:e.palette.ux.background.w10,boxShadow:`inset 0 -1px 0 ${e.palette.ux.secondary.w20}`,"& .header":{minWidth:"50px",display:"flex",alignItems:"center",color:e.palette.ux.primary.text.wMain,"&.sortable":{position:"relative",cursor:"pointer","svg.asc, svg.desc":{path:{fill:e.palette.ux.secondary.wMain}},"svg.unsorted":{path:{fill:e.palette.ux.secondary.w40}},"&:hover":{"svg.asc, svg.desc, svg.unsorted":{path:{fill:e.palette.ux.primary.text.wMain}}},"&:active":{"svg.asc, svg.desc, svg.unsorted":{path:{fill:e.palette.ux.primary.text.wMain}}}}},"&.checkbox-column, &.expand-column":{minWidth:0,paddingRight:0,width:"24px"},"&.icon-column":{width:"50px",textAlign:"center"},"&.number-column .header":{justifyContent:"flex-end"}})),Ss=()=>jsx(Co,{className:"icon-column"},"emptyHeaderCell"),Cs=e=>jsx(nt,{},e.id+"_emptyRowCell"),fa=(e,t)=>{let o=t&&t.length>0?t.map(r=>({...r,onMenuItemClick:()=>{r.callback(e);}})):null,n=e.disabledRowActionMenu;return jsx(nt,{style:{textAlign:"center",paddingTop:"4px",paddingBottom:"4px"},children:o&&jsx(ho,{buttonProps:{isDisabled:n,variant:"icon",children:jsx(i,{}),title:"More Actions"},items:o,anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}})},e.id+"_actionMenu")},ys=({columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})=>jsx(Co,{className:"icon-column",children:jsx(hs,{id:"column-hiding-control",columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})},"column-hiding-control");var vs=({enabled:e,rows:t,displayedColumns:o,internalDisplayedColumns:n,selectionType:r,selectedRowIds:a,handleRowClick:i,independentRowHighlight:l,highlightedRowId:s,addCheckBoxToRows:c,renderConfiguredRowCells:p,hasRowActionItems:d,renderRowActionItems:f,rowHoverCallback:u,hasColumnHiding:m,displayedColumnsChangedCallback:g,allowToggle:x=true,selectRowWhenClickOnChildren:b=true,renderChildren:C,expandedRowIds:S,setExpandedRowIds:v})=>{let[P,R]=useState();useEffect(()=>{if(!e)return;let h=0,T=o||n;if(T&&T.length>0){T.forEach(z=>{z.isHidden||h++;});let w=0;x&&w++,r==="multi"&&w++,d&&w++,R(h+w);}},[t,e,o,n,g,m,x,r,d]);function I(h){if(!x)return;let T=S&&S?.findIndex(w=>w===h.id)>=0;return jsx(nt,{className:"expand-icon",onClick:w=>{if(w.stopPropagation(),S){let z=S.findIndex(O=>O===h.id);if(z>=0){let O=S.slice(0);O.splice(z,1),v?.(O);}else v?.([...S,h.id]);}},children:jsx(Rt,{className:`cursor-pointer chevron ${T?"expanded":""}`})},`${h.id}_chevron`)}function M(h,T){return T&&C&&jsx(xs,{className:D({selected:r==="multi"&&l?s===h.id:a?.includes(h.id),clickable:r==="multi"||r==="single",expanded:T}),onClick:()=>{b&&i(h);},children:jsx(bs,{colSpan:P,children:C(h)},`${h.id}_childrenTd_${P}`)},`${h.id}_childrenTr`)}function E(){return t.map(h=>{let T=!x||!!S?.find(w=>w===h.id);return jsxs(ue__default.Fragment,{children:[jsx(So,{onMouseEnter:u?()=>u(h):void 0,onClick:()=>i(h),className:D({selected:r==="multi"&&l?s===h.id:a?.includes(h.id),clickable:r==="multi"||r==="single",expanded:T}),"data-qa":h.id,children:[r==="multi"&&c(h),I(h),...p(h,o,n),...f(h)].filter(Boolean)},h.id),M(h,T)]},`${h.id}_wrapper`)})}return {createRowNodes:E}};var Nf="bottom-end",Hf=({rows:e,selectionType:t,selectedRowIds:o,disabledRowIds:n,independentRowHighlight:r,highlightedRowId:a,renderCustomRowCells:i,rowActionMenuItems:l$1,renderCustomRowActionItem:s,rowHoverCallback:c,hasColumnHiding:p=false,displayedColumns:d,expandableRowOptions:f,internalDisplayedColumns:u,handleDisplayColumnsChanged:m,handleRowSelectionChange:g,handleRowClick:x})=>{let b=useCallback(I=>jsx(nt,{className:"checkbox",onClick:M=>M.stopPropagation(),children:jsx(l,{name:`${I.id}`,onChange:g,checked:o.includes(I.id),disabled:n?.includes(I.id)})},`${I.id}_rowCheckbox`),[o,n,g]),C=useCallback(I=>s?[fa(I,s(I))]:l$1&&l$1.length>0?[fa(I,l$1)]:!l$1&&p?[Cs(I)]:[],[p,s,l$1]),S=useMemo(()=>!!s||l$1&&l$1.length>0||!l$1&&p,[p,s,l$1]),v=useCallback((I,M,E)=>i?i(I):((M||E)??[]).map(T=>{if(!T.hasNoCell&&!T.isHidden){let w=I.id+"_"+T.field;return jsxs(nt,{children:[T.tooltip&&jsx(b$1,{variant:"overflow",title:I[T.field],placement:Nf,children:I[T.field]}),!T.tooltip&&jsx("span",{children:I[T.field]})]},w)}else return}),[i]),P=useCallback(()=>e.map(I=>jsx(So,{onMouseEnter:c?()=>c(I):void 0,onClick:()=>x(I),className:D({selected:t==="multi"&&r?a===I.id:o.includes(I.id),clickable:(t==="multi"||t==="single")&&!n?.includes(I.id),disabled:n?.includes(I.id)}),"data-qa":I.id,children:[t==="multi"&&b(I),...v(I,d,u),...C(I)]},I.id)),[e,c,t,r,a,o,n,b,v,d,u,C,x]),R=vs({enabled:f!=null,rows:e,displayedColumns:d,internalDisplayedColumns:u,selectionType:t,handleRowClick:x,selectedRowIds:o,independentRowHighlight:r,highlightedRowId:a,addCheckBoxToRows:b,renderConfiguredRowCells:v,hasRowActionItems:S,renderRowActionItems:C,rowHoverCallback:c,hasColumnHiding:p,displayedColumnsChangedCallback:m,allowToggle:f?.allowToggle,selectRowWhenClickOnChildren:f?.selectRowWhenClickOnChildren,renderChildren:f?.renderChildren,expandedRowIds:f?.expandedRowIds,setExpandedRowIds:f?.setExpandedRowIds});return f?R.createRowNodes():P()},ws=Hf;var Ts=({fill:e})=>{let t=ua$1().palette.ux.secondary.wMain;return jsx(Na$1,{className:"asc",sx:{width:"16px",height:"10px"},viewBox:"0 0 16 10",fill:"none",children:jsxs("g",{transform:"translate(9,0)",children:[jsx("path",{d:"M3.91344 0.413412L6.15855 2.65852C6.46226 2.96224 6.23806 3.49063 5.80323 3.49595L1.25738 3.55158C0.822545 3.5569 0.611212 3.03383 0.922448 2.72259L3.22318 0.421858C3.41613 0.228918 3.72516 0.225137 3.91344 0.413412Z",fill:e??t}),jsx("g",{transform:"translate(0,6)",children:jsx("path",{d:"M3.88969 3.71893L6.21811 1.39051C6.5331 1.07552 6.31001 0.536952 5.86456 0.536952L1.20771 0.536952C0.762253 0.536952 0.539169 1.07552 0.854152 1.39051L3.18258 3.71893C3.37784 3.91419 3.69442 3.91419 3.88969 3.71893Z",fill:"none",fillOpacity:"0"})})]})})},Es=({fill:e})=>{let t=ua$1().palette.ux.secondary.wMain;return jsx(Na$1,{className:"desc",sx:{width:"16px",height:"10px"},viewBox:"0 0 16 10",fill:"none",children:jsxs("g",{transform:"translate(9,0)",children:[jsx("path",{d:"M3.91344 0.413412L6.15855 2.65852C6.46226 2.96224 6.23806 3.49063 5.80323 3.49595L1.25738 3.55158C0.822545 3.5569 0.611212 3.03383 0.922448 2.72259L3.22318 0.421858C3.41613 0.228918 3.72516 0.225137 3.91344 0.413412Z",fill:"none",fillOpacity:"0"}),jsx("g",{transform:"translate(0,6)",children:jsx("path",{d:"M3.88969 3.71893L6.21811 1.39051C6.5331 1.07552 6.31001 0.536952 5.86456 0.536952L1.20771 0.536952C0.762253 0.536952 0.539169 1.07552 0.854152 1.39051L3.18258 3.71893C3.37784 3.91419 3.69442 3.91419 3.88969 3.71893Z",fill:e??t})})]})})},Rs=({fill:e})=>{let t=ua$1().palette.ux.secondary.w40;return jsx(Na$1,{className:"unsorted",sx:{width:"16px",height:"10px"},viewBox:"0 0 16 10",fill:"none",children:jsxs("g",{transform:"translate(9,0)",children:[jsx("path",{d:"M3.91344 0.413412L6.15855 2.65852C6.46226 2.96224 6.23806 3.49063 5.80323 3.49595L1.25738 3.55158C0.822545 3.5569 0.611212 3.03383 0.922448 2.72259L3.22318 0.421858C3.41613 0.228918 3.72516 0.225137 3.91344 0.413412Z",fill:e??t}),jsx("g",{transform:"translate(0,6)",children:jsx("path",{d:"M3.88969 3.71893L6.21811 1.39051C6.5331 1.07552 6.31001 0.536952 5.86456 0.536952L1.20771 0.536952C0.762253 0.536952 0.539169 1.07552 0.854152 1.39051L3.18258 3.71893C3.37784 3.91419 3.69442 3.91419 3.88969 3.71893Z",fill:e??t})})]})})};var ga="bottom-end",Vf="Select all on this page",zf="Deselect all on this page",Xf="Select all pages",Gf="Deselect all pages";function Ps(e,t){return e?t?Xf:Vf:t?Gf:zf}var Wf=({selectionType:e,sortedColumn:t,rowActionMenuItems:o,renderCustomRowActionItem:n,headerHoverCallback:r,hasColumnHiding:a,displayedColumns:i,expandableRowOptions:l$1,customContentDefinitions:s,displayedCustomContent:c,customContentDisplayChangeCallback:p,customMenuActions:d,crossPageSelectionEnabled:f,selectAll:u,indeterminate:m,handleSelectAllChange:g,internalSortedColumn:x,handleSort:b,internalDisplayedColumns:C,handleDisplayColumnsChanged:S})=>{let v=useCallback(()=>{if(e==="multi")return jsx(Co,{className:"checkbox-column","aria-label":"Row selection",children:jsx(b$1,{title:Ps(!(u||m),f),placement:"bottom-start",children:jsx("div",{children:jsx(l,{name:"selectAllCheckbox",onChange:g,checked:u||m,indeterminate:m})})})},"selectAllCheckbox")},[e,u,m,g,f]),P=useCallback(()=>{if(l$1?.allowToggle)return jsx(Co,{className:"expand-column"},"expandHeader")},[l$1?.allowToggle]),R=useCallback((M,E)=>M.map(h=>!h.isHidden&&jsx(Co,{className:`${h.hasNoCell&&"icon-column"||h.isNumerical&&"number-column"||h.class||""}`,width:h.width?typeof h.width=="number"?h.width+"px":h.width:"auto",children:jsxs("span",{className:`${h.sortable?"sortable header":"header"}`,onClick:()=>h.sortable?b(h,t,x):void 0,children:[jsx(b$1,{variant:"overflow",title:h.headerName,placement:ga,children:h.headerName}),E?.field===h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:ga,children:jsx("div",{children:E.sortDirection==="asc"?jsx(Ts,{}):jsx(Es,{})})}),E?.field!==h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:ga,children:jsx("div",{children:jsx(Rs,{})})})]})},h.headerName)),[b,x,t]);return useCallback(()=>{let M=t||x,E=cloneDeep((i||C)??[]);return jsx(So,{className:"header",onMouseEnter:r?()=>r():void 0,children:[v(),P(),R(E,M),(!!o||n)&&!a&&Ss(),a&&ys({columns:E,displayedColumnsChangedCallback:S,customContentDefinitions:s,displayedCustomContent:c,customContentDisplayChangeCallback:p,customMenuActions:d})].filter(Boolean)},"headerRow")},[t,x,i,C,r,v,P,R,o,n,a,S,s,c,p,d])()},Is=Wf;var Ls=({rows:e,columns:t,selectionType:o,selectedRowIds:n,selectionChangedCallback:r,disabledRowIds:a,independentRowHighlight:i,highlightedRowId:l,rowHighlightChangedCallback:s,sortedColumn:c,sortCallback:p,renderCustomRowCells:d,rowActionMenuItems:f,renderCustomRowActionItem:u,headerHoverCallback:m,rowHoverCallback:g,hasColumnHiding:x,displayedColumns:b,displayedColumnsChangedCallback:C,expandableRowOptions:S,customContentDefinitions:v,displayedCustomContent:P,customContentDisplayChangeCallback:R,customMenuActions:I,crossPageRowSelectionSupported:M=false,totalObjectCount:E=0,allPagesSelectedByDefault:h=false,deselectedRowIds:T,crossPageSelectionChangedCallback:w})=>{let[z,O]=useState(false),[H,A]=useState(false),[W,D]=useState(),[L,Y]=useState(),K=useRef([]),N=useMemo(()=>o==="multi"&&M,[o,M]);useEffect(()=>{if(t){let k=cloneDeep(t);K.current=k,D(k.find(J=>J.sortable)),Y(k);}},[t]),useEffect(()=>{N||(e.length!==0&&n.length===e.length?O(true):O(false));},[n.length,e?.length,N]),useEffect(()=>{N||(n.length>0&&n.length<e.length?A(true):A(false));},[e?.length,n?.length,N]),useEffect(()=>{if(N)if(E>0){let k=h&&T.length===0||!h&&n.length===E;O(k);}else O(h);},[h,N,T.length,n.length,E]),useEffect(()=>{N&&(E>0?A(h&&T.length>0&&T.length<E||!h&&n.length>0&&n.length!==E):A(false));},[h,N,T.length,n.length,E]),useEffect(()=>{if(N&&h&&w){let k=[...n],J=[];e.forEach(V=>{if(!T.includes(V.id))k.includes(V.id)||k.push(V.id),J.push(V);else if(n.includes(V.id)){let F=k.indexOf(V.id);F>=0&&k.splice(F,1);}}),isEqual(n,k)||w(J,true,k,T);}},[w,N,e]);let re=useCallback(k=>{if(!a?.includes(k.id)&&o!=="none"){if(o==="multi"&&i)l===k.id?s?.(null):s?.(k);else if(o==="multi"&&M){if(w)if(n.includes(k.id)){let J=e.filter(Q=>n.includes(Q.id)&&Q.id!==k.id),V=n.filter(Q=>Q!==k.id),F=h?[...T,k.id]:T;w(J,h,V,F);}else w([k],false,[k.id],[]);}else if(r)if(n.includes(k.id)){let J=e.filter(V=>n.includes(V.id)&&V.id!==k.id);r(J),J.length<e.length&&z&&O(false);}else r([k]),O(e.length===1);}},[h,M,w,T,a,l,i,s,e,z,n,r,o]),ye=useCallback((k,J,V)=>{let F=K.current.find(Q=>Q.field===k.field);F&&F.sortable&&(J?(J.field===F.field?F.sortDirection=F.sortDirection==="desc"?"asc":"desc":F.sortDirection="asc",p(F)):(V?.field===F.field?F.sortDirection=F.sortDirection==="desc"?"asc":"desc":F.sortDirection="asc",D(F),p(F)));},[p]),he=useCallback(k=>{K.current?.forEach((J,V)=>{k&&k[V]&&(J.isHidden=k[V].isHidden);}),Y(k),C?.(k);},[C]),be=useCallback(k=>{let J=e;a&&a.length>0&&(J=e.filter(F=>!a.includes(F.id))),N?w&&(k.value?(O(!(J.length<e.length)),w(J,true,J.map(F=>F.id),[])):(O(false),w([],false,[],[]))):r&&(k.value?(O(true),r(J)):(O(false),r([])));},[w,N,e,r,a]),j=useCallback(k=>{if(N&&!w||!N&&!r)return;let J=e.find(V=>V.id===k.name);if(J)if(k.value){if(!n.includes(k.name)){let V=[...e.filter(F=>n.includes(F.id)&&F.id!==k.name),J];if(!N)r?.(V),V.length===e.length&&!z&&O(true);else if(N&&w){let F=[...n,k.name];h?w(V,true,F,T.filter(Q=>Q!==k.name)):w(V,false,F,T);}}}else {let V=e.filter(F=>n.includes(F.id)&&F.id!==k.name);if(!N)r?.(V),V.length<e.length&&z&&O(false);else if(N&&w){let F=n.filter(Q=>Q!==k.name);if(h){let Q=[...T,k.name];Q.length===E?w([],false,[],[]):w(V,true,F,Q);}else w(V,false,F,T);}}},[N,w,r,e,n,z,h,T,E]),B=Is({selectionType:o,sortedColumn:c,rowActionMenuItems:f,renderCustomRowActionItem:u,headerHoverCallback:m,hasColumnHiding:x,displayedColumns:b,expandableRowOptions:S,customContentDefinitions:v,displayedCustomContent:P,customContentDisplayChangeCallback:R,customMenuActions:I,crossPageSelectionEnabled:N,selectAll:z,indeterminate:H,handleSelectAllChange:be,internalSortedColumn:W,handleSort:ye,internalDisplayedColumns:L,handleDisplayColumnsChanged:he}),q=ws({rows:e,selectionType:o,selectedRowIds:n,disabledRowIds:a,independentRowHighlight:i,highlightedRowId:l,renderCustomRowCells:d,rowActionMenuItems:f,renderCustomRowActionItem:u,rowHoverCallback:g,hasColumnHiding:x,displayedColumns:b,expandableRowOptions:S,internalDisplayedColumns:L,handleDisplayColumnsChanged:he,handleRowSelectionChange:j,handleRowClick:re});return [B,q]};var Kf={xs:14,sm:24,md:30,lg:42},Qf=wa("div")(({theme:e,inline:t})=>({width:"fit-content",display:"flex",flexDirection:t?"row":"column",alignItems:"center",gap:e.spacing(1.5)}));function Wt(e){let{variant:t,value:o,size:n,disableShrink:r,dataQa:a,message:i,inline:l}=e,s=e["aria-label"],c=typeof s=="string"&&s.trim().length>0?s:typeof i=="string"&&i.trim().length>0?i:"Loading";return jsxs(Qf,{"data-qa":a??"loading-spinner",inline:l,children:[jsx(Db$1,{"aria-label":c,variant:t??"indeterminate",value:t==="determinate"?o:void 0,size:Kf[n??"sm"],disableShrink:r,sx:{color:ua$1().palette.ux.accent.n2.wMain}}),i&&jsx("div",{children:i})]})}var em=wa("div",{shouldForwardProp:e=>e!=="minHeight"&&e!=="maxHeight"})(({theme:e,minHeight:t,maxHeight:o})=>({display:"flex",flexDirection:"column",color:e.palette.ux.primary.text.wMain,border:`1px solid ${e.palette.ux.secondary.w40}`,borderRadius:"4px",width:"100%",height:"100%",minHeight:t??"200px",maxHeight:o??"100%",overflow:"auto",fontFamily:e.typography.fontFamily,fontSize:e.typography.body1.fontSize,background:e.palette.ux.background.w10,position:"relative"})),tm=wa("table")(()=>({borderCollapse:"collapse",width:"100%",tableLayout:"fixed"})),om=wa("div")(()=>({position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flex:"1"})),nm=wa("tr")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:20})),rm=wa("tr")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),am=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),im=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"calc(100% - 56px)",top:56,left:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:e.spacing(2),zIndex:3})),lm=wa("div")(({theme:e})=>({fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary})),sm="No Items Found";function cm(e,t){let o=e;return t==="single"&&o.length>1?o=o.slice(0,1):t==="multi"&&o.length>1&&(o=uniq(o)),o}function um(e){return uniq(e)}function pm(e,t,o,n){let r=e;return !(t==="multi"&&o)&&r.length>1?r=[]:t==="multi"&&o&&r.length>1&&(n?r=uniq(r):r=[]),r}function dm({id:e,rows:t,columns:o,selectionType:n,selectedRowIds:r,selectionChangedCallback:a,disabledRowIds:i,independentRowHighlight:l=false,highlightedRowId:s,rowHighlightChangedCallback:c,sortedColumn:p,sortCallback:d,renderCustomRowCells:f,emptyStateMessage:u,renderCustomEmptyState:m,showEmptyState:g,rowActionMenuItems:x,renderCustomRowActionItem:b,headerHoverCallback:C,rowHoverCallback:S,hasColumnHiding:v,displayedColumns:P,displayedColumnsChangedCallback:R,expandableRowOptions:I,loading:M,loadingMessage:E,customContentDefinitions:h,displayedCustomContent:T,customContentDisplayChangeCallback:w,maxHeight:z,minHeight:O,customMenuActions:H,crossPageRowSelectionSupported:A=false,totalObjectCount:W=0,allPagesSelectedByDefault:D=false,deselectedRowIds:L,crossPageSelectionChangedCallback:Y}){let K=cm(r??[],n),N=um(i??[]),re=pm(L??[],n,A,D),[ye,he]=Ls({rows:t,columns:o,selectionType:n,selectedRowIds:K,selectionChangedCallback:a,disabledRowIds:N,independentRowHighlight:l,highlightedRowId:s,rowHighlightChangedCallback:c,sortCallback:d,sortedColumn:p,renderCustomRowCells:f,rowActionMenuItems:x,renderCustomRowActionItem:b,headerHoverCallback:C,rowHoverCallback:S,hasColumnHiding:v,displayedColumns:P,displayedColumnsChangedCallback:R,expandableRowOptions:I,customContentDefinitions:h,displayedCustomContent:T,customContentDisplayChangeCallback:w,customMenuActions:H,crossPageRowSelectionSupported:A,totalObjectCount:W,allPagesSelectedByDefault:D,deselectedRowIds:re,crossPageSelectionChangedCallback:Y});function be(){return u||sm}function j(){return jsx(Fragment,{children:m?m():be()})}function B(){return jsxs(im,{children:[jsx(Wt,{}),E&&jsx(lm,{children:E})]})}return jsxs(em,{maxHeight:z,minHeight:O,className:"tableWrapper",children:[jsxs(tm,{"data-qa":e,children:[jsxs("thead",{style:{borderBottom:0,position:"relative"},children:[ye,M&&jsx(nm,{})]}),jsxs("tbody",{style:{position:"relative"},children:[!!t.length&&he,M&&jsx(rm,{})]})]}),jsxs(om,{children:[g!==false&&!t.length&&j(),M&&jsx(am,{})]}),M&&B()]})}var fm=dm;var As=({className:e=""})=>jsx(Na$1,{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","data-testid":"ArrowLeftIcon",children:jsx("path",{d:`M14.27,6.117l0.838,0.883c0.156,0.156,0.156,0.373,0,0.529l-4.443,4.46l4.443,4.481c0.156,0.156,0.169,0.373,0.013,0.529
6
6
  l-0.851,0.883c-0.156,0.156-0.414,0.156-0.57,0l-5.583-5.61c-0.156-0.156-0.156-0.41,0-0.567l5.583-5.61
7
- C13.857,5.961,14.114,5.961,14.27,6.117z`})});var bm=wa("div")(({theme:e,isSmall:t})=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0",position:"relative",padding:e.spacing(1,0),flexDirection:t?"column":"row"})),Sm=wa("div")(()=>({margin:"0"})),Cm=wa("p")(({theme:e,isSmall:t})=>({margin:t?e.spacing(0):e.spacing(0,2,0,0),fontSize:ni$1.xs,color:e.palette.ux.deprecated.secondary.text.wMain,position:t?"relative":"absolute",right:t?0:"0",paddingTop:t?e.spacing(1):"0"})),ym=wa("div")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:2}));function vm({activePage:e=1,pageSize:t=10,displayText:o="${firstItemIndex}-${lastItemIndex} of ${totalResults} results",totalResults:n,loading:r=false,onPageSelection:a}){let i=Math.ceil(n/t),l=(e-1)*t+1,s=Math.min(e*t,n),c=useRef(null),[u,d]=useState(false);return useEffect(()=>{let m=()=>{c.current&&d(c.current.offsetWidth<=730);};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[u]),jsxs(bm,{ref:c,isSmall:u,children:[jsx(Sm,{children:jsx(Nf$1,{count:i,shape:"rounded",page:e,boundaryCount:2,onChange:(m,g)=>{m&&g>0&&a&&a(g);},renderItem:m=>jsx(Mf$1,{slots:{previous:As,next:Rt},...m})})}),jsx(Cm,{isSmall:u,children:o.replace("${firstItemIndex}",`${l}`).replace("${lastItemIndex}",`${s}`).replace("${pageSize}",`${t}`).replace("${activePage}",`${e}`).replace("${totalResults}",`${n}`)}),r&&jsx(ym,{})]})}var wm=vm;var Bs=e=>{let{id:t,key:o,anchorElement:n,anchorPosition:r,anchorOrigin:a,transformOrigin:i,open:l,dataQa:s,dataTags:c,children:u,onClose:d,marginThreshold:f,activateOnHover:p,...m}=e;return jsx(sf$1,{id:t,open:l,anchorReference:r?"anchorPosition":"anchorEl",anchorOrigin:a,transformOrigin:i,anchorPosition:r,anchorEl:n,classes:{paper:"SolacePopover"},"data-qa":s,"data-tags":c,onClose:d,marginThreshold:f,sx:{pointerEvents:p?"none":"auto"},...m,children:u},o)};Bs.displayName="SolacePopover";var Em=Bs;var nr=({fill:e=""})=>{let t=ua$1().palette.ux?.secondary.wMain;return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"16",viewBox:"0 0 4 16",fill:"none",children:jsx("path",{d:"M4 14C4 15.1 3.1 16 2 16C0.9 16 0 15.1 0 14C0 12.9 0.9 12 2 12C3.1 12 4 12.9 4 14ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0Z",fill:e||t})})};var Lm=wa("div",{shouldForwardProp:e=>e!=="anchor"})(({anchor:e,theme:t})=>({width:"8px",cursor:"ew-resize",...e==="left"&&{borderLeft:`1px solid ${t.palette.ux.secondary.w40}`},...e==="right"&&{borderRight:`1px solid ${t.palette.ux.secondary.w40}`},position:"absolute",top:0,bottom:0,...e==="left"&&{right:0},...e==="right"&&{left:0},backgroundColor:`${t.palette.ux.background.w20}`,display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"center"}));function Mm({open:e,width:t=320,resizable:o=false,onResizeDone:n,minWidth:r=100,maxWidth:a=1e3,anchor:i="right",top:l="0",offset:s,height:c="100%",children:u}){let d=ua$1(),f=useRef(0),[p,m]=useState(t),g=useRef(t);g.current=p,useEffect(()=>{p>a&&m(a);},[p,a]);let C=useCallback(v=>{v.preventDefault();let P=v.clientX-f.current,R=i==="right"?p-P:p+P;R>=r&&R<=a?m(R):R<r?m(r):m(a);},[a,r,i,p]),x=useCallback(()=>{document.removeEventListener("mouseup",x,true),document.removeEventListener("mousemove",C,true),f.current=0,n?.(g.current);},[C,n]),S=useCallback(v=>{v.preventDefault(),f.current===0&&(f.current=v.clientX),document.addEventListener("mouseup",x,true),document.addEventListener("mousemove",C,true);},[C,x]),b=()=>i==="left"&&s?{top:l,height:c,left:s}:i==="right"&&s?{top:l,height:c,right:s}:{top:l,height:c};return jsxs(Td,{sx:{width:p,flexShrink:0,"& .MuiDrawer-paper":{width:p,boxSizing:"border-box",borderRadius:"2px",border:`1px solid ${d.palette.ux.secondary.w40}`,boxShadow:`0px 2px 4px ${d.palette.ux.deprecated.secondary.w8040}`}},PaperProps:{style:b()},BackdropProps:{style:b()},variant:"persistent",anchor:i,open:e,children:[o&&jsx(Lm,{anchor:i,onMouseDown:S,children:jsx(nr,{})}),jsx(Ic$1,{sx:i==="left"?{marginRight:"8px",overflow:"auto"}:{marginLeft:"8px",overflow:"auto"},children:u})]})}var km=Mm;var Fs=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row})),Nm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRow})),Hm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRowContainer})),Fm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.list})),_m=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.border}));function Ns({id:e,items:t,gridTemplate:o,selected:n,indicatorVariant:r,emphasized:a,onClick:i,dataQa:l,virtualRow:s=false,isLoading:c=false,contentPlaceholder:u}){let d=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(e));};return s?jsx(Nm,{className:`${n?"selected":""} ${r?"indicator-"+r:""} ${a?"emphasized":""}`,onClick:()=>i(e),onKeyDown:f=>d(f),style:{gridTemplateColumns:o},tabIndex:0,"data-qa":`${l}-row-${e}`,children:c&&u?u:t},`row-${e}`):jsx(Fs,{className:`${n?"selected":""} ${r?"indicator-"+r:""} ${a?"emphasized":""}`,onClick:()=>i(e),onKeyDown:f=>d(f),style:{gridTemplateColumns:o},tabIndex:0,"data-qa":`${l}-row-${e}`,children:t},`row-${e}`)}function Vm({id:e,items:t,objectIdentifier:o="id",indicatorVariantIdentifier:n="indicatorVariant",emphasizedIdentifier:r="emphasized",headers:a,selectedItemId:i,onSelection:l,rowMapping:s,gridTemplate:c,dataQa:u,background:d,numOfGridListItemDisplayed:f,virtualizedListOption:p}){let[m,g]=useState(""),C=ua$1();useEffect(()=>{let h=z=>{let O=window.getComputedStyle(z).backgroundColor;return O!=="rgba(0, 0, 0, 0)"||(z.parentElement?O=h(z.parentElement):O=C.palette.ux.background.w10),O},w=document.getElementById("listComponent")?.parentElement;if(w){let z=h(w);g(z);}},[C.palette.ux.background.w10]);let x=useMemo(()=>a?jsx(Fs,{className:"headerRow",style:{gridTemplateColumns:c,backgroundColor:m,color:C.palette.ux.secondary.text.wMain},children:a.map((h,T)=>jsx("span",{children:h},T))},"headerRow"):null,[c,m,a,C.palette.ux.secondary.text.wMain]),S=useCallback(h=>{if(l){let T=t.find(w=>w[o]===h);T&&T[o]!==i&&l(T);}},[t,o,l,i]),{maskImage:b,onScrollHandler:v}=Zn(),P=qr(),R=()=>f&&t&&t.length>f?b:"none",[I,M]=useState(null);useEffect(()=>{let h=I;return h?.addEventListener("scroll",v),()=>{h?.removeEventListener("scroll",v);}},[I,v]);let E=useRef(null);return useEffect(()=>{if(i&&E.current&&t){let h=t.findIndex(T=>T[o]===i);h>=0&&E.current.scrollToItem(h);}},[t,o,i]),jsxs("div",{id:"listComponent","data-qa":u,style:{color:C.palette.ux.primary.text.wMain},children:[a&&x,jsxs(_m,{children:[!p&&jsx(Fm,{ref:M,style:{backgroundColor:d,maxHeight:f?`${P*f+P/2}px`:"none",maskImage:R(),WebkitMaskImage:R()},children:t?.map((h,T)=>jsx(Ns,{id:h[o]??T,items:s(h,T),selected:i?h[o]===i:false,indicatorVariant:h[n],emphasized:h[r],gridTemplate:c,onClick:S,dataQa:u},`solaceGridListRow-${h[o]??T}`))}),p&&t?.length>0&&jsx(FixedSizeList,{className:"List",style:{backgroundColor:d},height:p.height?p.height:f?P*f+P/2:200,width:p.width??"100%",itemCount:t.length,itemSize:p.itemHeight?p.itemHeight:qr(),overscanCount:p.overscanCount??1,useIsScrolling:true,ref:h=>{E.current=h;},children:({index:h,style:T,isScrolling:w})=>jsx(Hm,{style:T,children:jsx(Ns,{id:t[h][o]??h,items:s(t[h],h),selected:i?t[h][o]===i:false,indicatorVariant:t[h][n],emphasized:t[h][r],gridTemplate:c,onClick:S,dataQa:u,virtualRow:true,isLoading:w,contentPlaceholder:p.contentPlaceholder},`solaceGridListRow-${t[h][o]??h}`)})})]})]},e)}var Ca=Vm;var zm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.header})),Xm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row}));function Gm({id:e,items:t,objectIdentifier:o="id",indicatorVariantIdentifier:n="indicatorVariant",emphasizedIdentifier:r="emphasized",headers:a,highlightedRowId:i,onRowHighlight:l$1,selectedRowIds:s=[],onSelection:c,rowMapping:u,gridTemplate:d,selectAllLabel:f="Select All",selectAll:p=true,actions:m,dataQa:g,numOfGridListItemDisplayed:C,showCount:x=false,itemsType:S="",virtualizedListOption:b}){let v="min(17px)",P="49px",[R,I]=useState(false),[M,E]=useState(""),h=ua$1(),[T,w]=useState(false),z=useMemo(()=>v.concat(" ",d),[d]);useEffect(()=>{s.length>0&&s.length<t.length?w(true):w(false);},[t?.length,s?.length]),useEffect(()=>{t.length!==0&&s.length===t.length?I(true):I(false);},[s.length,t?.length]);let O=useCallback(L=>{let Y=t.find(K=>K[o]===L.name);if(Y){if(L.value&&!s.includes(L.name)&&c){let K=t.filter(N=>s.includes(N[o]));c([...K,Y]),K.length+1===t.length&&!R&&I(true);}else if(c){let K=t.filter(N=>s.includes(N[o])&&N[o]!==L.name);c(K),K.length<t.length&&R&&I(false);}}},[R,t,o,c,s]),H=useCallback(L=>{c&&(L.value?(I(true),c(t)):(I(false),c([])));},[t,c]),A=useCallback(L=>{let Y=[],K=u(L);return Y.push(jsx("div",{id:`checkbox-${L[o]}`,style:{justifySelf:"left"},children:jsx(l,{name:L[o],onChange:O,checked:s.includes(L[o])})},`checkbox-${L[o]}`)),Y.push(...K),Y},[O,o,u,s]);useEffect(()=>{let L=N=>{let re=window.getComputedStyle(N).backgroundColor;return re!=="rgba(0, 0, 0, 0)"||(N.parentElement?re=L(N.parentElement):re=h.palette.ux.background.w10),re},K=document.getElementById("listComponent")?.parentElement;if(K){let N=L(K);E(N);}},[h.palette.ux.background.w10]);let W=useMemo(()=>a?jsx(Xm,{className:"headerRow",style:{padding:"0 64px",gridTemplateColumns:d,backgroundColor:M,color:h.palette.ux.secondary.text.wMain},children:a.map((L,Y)=>jsx("span",{children:L},Y))},"headerRow"):null,[d,M,a,h.palette.ux.secondary.text.wMain]),D=useMemo(()=>p||m,[m,p]);return jsxs("div",{"data-qa":g,style:b?void 0:{height:D?`calc(100% - ${P})`:"100%"},children:[W,D&&jsxs(zm,{children:[p&&jsxs("div",{className:"selectAll",children:[jsx(l,{name:"ImageListSelectAllCheckbox",onChange:H,checked:R||T,indeterminate:T,dataQa:`${g}-selectAll`}),jsx("span",{className:"selectAllText",children:f})]},"selectAll"),!p&&jsx("span",{},"selectAllPlaceholder"),jsxs("span",{children:[x&&m&&jsx("span",{className:"countItemsText",children:`${s.length} ${S} Selected`}),m]})]}),jsx(Ca,{id:e,items:t,objectIdentifier:o,indicatorVariantIdentifier:n,emphasizedIdentifier:r,selectedItemId:i,onSelection:l$1,rowMapping:A,gridTemplate:z,dataQa:`${g}-gridlist`,numOfGridListItemDisplayed:C,virtualizedListOption:b})]})}var Wm=Gm;var Um=wa("div",{shouldForwardProp:e=>e!=="size"&&e!=="fontSize"})(({theme:e,size:t,fontSize:o})=>({...e.mixins.component_NotificationCounter.container,width:`${t}px`,height:`${t}px`,fontSize:`${o||t/3*2}px`,lineHeight:`${t+1}px`})),qm=wa("span")(({theme:e})=>({...e.mixins.component_NotificationCounter.value}));function Zm({value:e,show:t=true,size:o=21,fontSize:n=14,title:r,animationDuration:a=1e3,animationRepeatsInitialCount:i=1,animationRepeatsUpdateCount:l=3,dataQa:s,dataTags:c}){let[u,d]=useState(e),[f,p]=useState(t),[m,g]=useState(false),[C,x]=useState(false),S=useRef(null),b=useRef(null),v=ua$1(),P$1=keyframes`
7
+ C13.857,5.961,14.114,5.961,14.27,6.117z`})});var bm=wa("div")(({theme:e,isSmall:t})=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0",position:"relative",padding:e.spacing(1,0),flexDirection:t?"column":"row"})),Sm=wa("div")(()=>({margin:"0"})),Cm=wa("p")(({theme:e,isSmall:t})=>({margin:t?e.spacing(0):e.spacing(0,2,0,0),fontSize:ni$1.xs,color:e.palette.ux.deprecated.secondary.text.wMain,position:t?"relative":"absolute",right:t?0:"0",paddingTop:t?e.spacing(1):"0"})),ym=wa("div")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:2}));function vm({activePage:e=1,pageSize:t=10,displayText:o="${firstItemIndex}-${lastItemIndex} of ${totalResults} results",totalResults:n,loading:r=false,onPageSelection:a}){let i=Math.ceil(n/t),l=(e-1)*t+1,s=Math.min(e*t,n),c=useRef(null),[p,d]=useState(false);return useEffect(()=>{let m=()=>{c.current&&d(c.current.offsetWidth<=730);};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[p]),jsxs(bm,{ref:c,isSmall:p,children:[jsx(Sm,{children:jsx(Nf$1,{count:i,shape:"rounded",page:e,boundaryCount:2,onChange:(m,g)=>{m&&g>0&&a&&a(g);},renderItem:m=>jsx(Mf$1,{slots:{previous:As,next:Rt},...m})})}),jsx(Cm,{isSmall:p,children:o.replace("${firstItemIndex}",`${l}`).replace("${lastItemIndex}",`${s}`).replace("${pageSize}",`${t}`).replace("${activePage}",`${e}`).replace("${totalResults}",`${n}`)}),r&&jsx(ym,{})]})}var wm=vm;var Bs=e=>{let{id:t,key:o,anchorElement:n,anchorPosition:r,anchorOrigin:a,transformOrigin:i,open:l,dataQa:s,dataTags:c,children:p,onClose:d,marginThreshold:f,activateOnHover:u,...m}=e;return jsx(sf$1,{id:t,open:l,anchorReference:r?"anchorPosition":"anchorEl",anchorOrigin:a,transformOrigin:i,anchorPosition:r,anchorEl:n,classes:{paper:"SolacePopover"},"data-qa":s,"data-tags":c,onClose:d,marginThreshold:f,sx:{pointerEvents:u?"none":"auto"},...m,children:p},o)};Bs.displayName="SolacePopover";var Em=Bs;var nr=({fill:e=""})=>{let t=ua$1().palette.ux?.secondary.wMain;return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"16",viewBox:"0 0 4 16",fill:"none",children:jsx("path",{d:"M4 14C4 15.1 3.1 16 2 16C0.9 16 0 15.1 0 14C0 12.9 0.9 12 2 12C3.1 12 4 12.9 4 14ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0Z",fill:e||t})})};var Lm=wa("div",{shouldForwardProp:e=>e!=="anchor"})(({anchor:e,theme:t})=>({width:"8px",cursor:"ew-resize",...e==="left"&&{borderLeft:`1px solid ${t.palette.ux.secondary.w40}`},...e==="right"&&{borderRight:`1px solid ${t.palette.ux.secondary.w40}`},position:"absolute",top:0,bottom:0,...e==="left"&&{right:0},...e==="right"&&{left:0},backgroundColor:`${t.palette.ux.background.w20}`,display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"center"}));function Mm({open:e,width:t=320,resizable:o=false,onResizeDone:n,minWidth:r=100,maxWidth:a=1e3,anchor:i="right",top:l="0",offset:s,height:c="100%",children:p}){let d=ua$1(),f=useRef(0),[u,m]=useState(t),g=useRef(t);g.current=u,useEffect(()=>{u>a&&m(a);},[u,a]);let x=useCallback(v=>{v.preventDefault();let P=v.clientX-f.current,R=i==="right"?u-P:u+P;R>=r&&R<=a?m(R):R<r?m(r):m(a);},[a,r,i,u]),b=useCallback(()=>{document.removeEventListener("mouseup",b,true),document.removeEventListener("mousemove",x,true),f.current=0,n?.(g.current);},[x,n]),C=useCallback(v=>{v.preventDefault(),f.current===0&&(f.current=v.clientX),document.addEventListener("mouseup",b,true),document.addEventListener("mousemove",x,true);},[x,b]),S=()=>i==="left"&&s?{top:l,height:c,left:s}:i==="right"&&s?{top:l,height:c,right:s}:{top:l,height:c};return jsxs(Td,{sx:{width:u,flexShrink:0,"& .MuiDrawer-paper":{width:u,boxSizing:"border-box",borderRadius:"2px",border:`1px solid ${d.palette.ux.secondary.w40}`,boxShadow:`0px 2px 4px ${d.palette.ux.deprecated.secondary.w8040}`}},PaperProps:{style:S()},BackdropProps:{style:S()},variant:"persistent",anchor:i,open:e,children:[o&&jsx(Lm,{anchor:i,onMouseDown:C,children:jsx(nr,{})}),jsx(Ic$1,{sx:i==="left"?{marginRight:"8px",overflow:"auto"}:{marginLeft:"8px",overflow:"auto"},children:p})]})}var km=Mm;var Fs=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row})),Nm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRow})),Hm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRowContainer})),Fm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.list})),_m=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.border}));function Ns({id:e,items:t,gridTemplate:o,selected:n,indicatorVariant:r,emphasized:a,onClick:i,dataQa:l,virtualRow:s=false,isLoading:c=false,contentPlaceholder:p}){let d=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(e));};return s?jsx(Nm,{className:`${n?"selected":""} ${r?"indicator-"+r:""} ${a?"emphasized":""}`,onClick:()=>i(e),onKeyDown:f=>d(f),style:{gridTemplateColumns:o},tabIndex:0,"data-qa":`${l}-row-${e}`,children:c&&p?p:t},`row-${e}`):jsx(Fs,{className:`${n?"selected":""} ${r?"indicator-"+r:""} ${a?"emphasized":""}`,onClick:()=>i(e),onKeyDown:f=>d(f),style:{gridTemplateColumns:o},tabIndex:0,"data-qa":`${l}-row-${e}`,children:t},`row-${e}`)}function Vm({id:e,items:t,objectIdentifier:o="id",indicatorVariantIdentifier:n="indicatorVariant",emphasizedIdentifier:r="emphasized",headers:a,selectedItemId:i,onSelection:l,rowMapping:s,gridTemplate:c,dataQa:p,background:d,numOfGridListItemDisplayed:f,virtualizedListOption:u}){let[m,g]=useState(""),x=ua$1();useEffect(()=>{let h=z=>{let O=window.getComputedStyle(z).backgroundColor;return O!=="rgba(0, 0, 0, 0)"||(z.parentElement?O=h(z.parentElement):O=x.palette.ux.background.w10),O},w=document.getElementById("listComponent")?.parentElement;if(w){let z=h(w);g(z);}},[x.palette.ux.background.w10]);let b=useMemo(()=>a?jsx(Fs,{className:"headerRow",style:{gridTemplateColumns:c,backgroundColor:m,color:x.palette.ux.secondary.text.wMain},children:a.map((h,T)=>jsx("span",{children:h},T))},"headerRow"):null,[c,m,a,x.palette.ux.secondary.text.wMain]),C=useCallback(h=>{if(l){let T=t.find(w=>w[o]===h);T&&T[o]!==i&&l(T);}},[t,o,l,i]),{maskImage:S,onScrollHandler:v}=Zn(),P=qr(),R=()=>f&&t&&t.length>f?S:"none",[I,M]=useState(null);useEffect(()=>{let h=I;return h?.addEventListener("scroll",v),()=>{h?.removeEventListener("scroll",v);}},[I,v]);let E=useRef(null);return useEffect(()=>{if(i&&E.current&&t){let h=t.findIndex(T=>T[o]===i);h>=0&&E.current.scrollToItem(h);}},[t,o,i]),jsxs("div",{id:"listComponent","data-qa":p,style:{color:x.palette.ux.primary.text.wMain},children:[a&&b,jsxs(_m,{children:[!u&&jsx(Fm,{ref:M,style:{backgroundColor:d,maxHeight:f?`${P*f+P/2}px`:"none",maskImage:R(),WebkitMaskImage:R()},children:t?.map((h,T)=>jsx(Ns,{id:h[o]??T,items:s(h,T),selected:i?h[o]===i:false,indicatorVariant:h[n],emphasized:h[r],gridTemplate:c,onClick:C,dataQa:p},`solaceGridListRow-${h[o]??T}`))}),u&&t?.length>0&&jsx(FixedSizeList,{className:"List",style:{backgroundColor:d},height:u.height?u.height:f?P*f+P/2:200,width:u.width??"100%",itemCount:t.length,itemSize:u.itemHeight?u.itemHeight:qr(),overscanCount:u.overscanCount??1,useIsScrolling:true,ref:h=>{E.current=h;},children:({index:h,style:T,isScrolling:w})=>jsx(Hm,{style:T,children:jsx(Ns,{id:t[h][o]??h,items:s(t[h],h),selected:i?t[h][o]===i:false,indicatorVariant:t[h][n],emphasized:t[h][r],gridTemplate:c,onClick:C,dataQa:p,virtualRow:true,isLoading:w,contentPlaceholder:u.contentPlaceholder},`solaceGridListRow-${t[h][o]??h}`)})})]})]},e)}var Ca=Vm;var zm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.header})),Xm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row}));function Gm({id:e,items:t,objectIdentifier:o="id",indicatorVariantIdentifier:n="indicatorVariant",emphasizedIdentifier:r="emphasized",headers:a,highlightedRowId:i,onRowHighlight:l$1,selectedRowIds:s=[],onSelection:c,rowMapping:p,gridTemplate:d,selectAllLabel:f="Select All",selectAll:u=true,actions:m,dataQa:g,numOfGridListItemDisplayed:x,showCount:b=false,itemsType:C="",virtualizedListOption:S}){let v="min(17px)",P="49px",[R,I]=useState(false),[M,E]=useState(""),h=ua$1(),[T,w]=useState(false),z=useMemo(()=>v.concat(" ",d),[d]);useEffect(()=>{s.length>0&&s.length<t.length?w(true):w(false);},[t?.length,s?.length]),useEffect(()=>{t.length!==0&&s.length===t.length?I(true):I(false);},[s.length,t?.length]);let O=useCallback(L=>{let Y=t.find(K=>K[o]===L.name);if(Y){if(L.value&&!s.includes(L.name)&&c){let K=t.filter(N=>s.includes(N[o]));c([...K,Y]),K.length+1===t.length&&!R&&I(true);}else if(c){let K=t.filter(N=>s.includes(N[o])&&N[o]!==L.name);c(K),K.length<t.length&&R&&I(false);}}},[R,t,o,c,s]),H=useCallback(L=>{c&&(L.value?(I(true),c(t)):(I(false),c([])));},[t,c]),A=useCallback(L=>{let Y=[],K=p(L);return Y.push(jsx("div",{id:`checkbox-${L[o]}`,style:{justifySelf:"left"},children:jsx(l,{name:L[o],onChange:O,checked:s.includes(L[o])})},`checkbox-${L[o]}`)),Y.push(...K),Y},[O,o,p,s]);useEffect(()=>{let L=N=>{let re=window.getComputedStyle(N).backgroundColor;return re!=="rgba(0, 0, 0, 0)"||(N.parentElement?re=L(N.parentElement):re=h.palette.ux.background.w10),re},K=document.getElementById("listComponent")?.parentElement;if(K){let N=L(K);E(N);}},[h.palette.ux.background.w10]);let W=useMemo(()=>a?jsx(Xm,{className:"headerRow",style:{padding:"0 64px",gridTemplateColumns:d,backgroundColor:M,color:h.palette.ux.secondary.text.wMain},children:a.map((L,Y)=>jsx("span",{children:L},Y))},"headerRow"):null,[d,M,a,h.palette.ux.secondary.text.wMain]),D=useMemo(()=>u||m,[m,u]);return jsxs("div",{"data-qa":g,style:S?void 0:{height:D?`calc(100% - ${P})`:"100%"},children:[W,D&&jsxs(zm,{children:[u&&jsxs("div",{className:"selectAll",children:[jsx(l,{name:"ImageListSelectAllCheckbox",onChange:H,checked:R||T,indeterminate:T,dataQa:`${g}-selectAll`}),jsx("span",{className:"selectAllText",children:f})]},"selectAll"),!u&&jsx("span",{},"selectAllPlaceholder"),jsxs("span",{children:[b&&m&&jsx("span",{className:"countItemsText",children:`${s.length} ${C} Selected`}),m]})]}),jsx(Ca,{id:e,items:t,objectIdentifier:o,indicatorVariantIdentifier:n,emphasizedIdentifier:r,selectedItemId:i,onSelection:l$1,rowMapping:A,gridTemplate:z,dataQa:`${g}-gridlist`,numOfGridListItemDisplayed:x,virtualizedListOption:S})]})}var Wm=Gm;var Um=wa("div",{shouldForwardProp:e=>e!=="size"&&e!=="fontSize"})(({theme:e,size:t,fontSize:o})=>({...e.mixins.component_NotificationCounter.container,width:`${t}px`,height:`${t}px`,fontSize:`${o||t/3*2}px`,lineHeight:`${t+1}px`})),qm=wa("span")(({theme:e})=>({...e.mixins.component_NotificationCounter.value}));function Zm({value:e,show:t=true,size:o=21,fontSize:n=14,title:r,animationDuration:a=1e3,animationRepeatsInitialCount:i=1,animationRepeatsUpdateCount:l=3,dataQa:s,dataTags:c}){let[p,d]=useState(e),[f,u]=useState(t),[m,g]=useState(false),[x,b]=useState(false),C=useRef(null),S=useRef(null),v=ua$1(),P$1=keyframes`
8
8
  0% {
9
9
  transform: scale(1);
10
10
  box-shadow: 0 0 0 0 ${P(v.palette.ux.info.w100,.3)};
@@ -19,13 +19,13 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
19
19
  transform: scale(1);
20
20
  box-shadow: 0 0 0 0 ${P(v.palette.ux.info.w100,0)};
21
21
  }
22
- `;return useEffect(()=>{t!==f&&(t&&(a>0&&!S.current?(g(true),x(true),S.current=setTimeout(()=>{g(false),x(false),S.current=null;},i>0?i*a:a)):g(false)),p(t));},[a,t,i,f]),useEffect(()=>{e!==u&&(e&&a>0&&!b.current&&(x(true),b.current=setTimeout(()=>{x(false),b.current=null;},l>0?l*a:a)),d(e));},[a,l,u,e]),f?jsx(Fragment,{children:jsx(b$1,{title:r,children:jsx(Um,{"data-qa":s?s+"-counterBadge":"counterBadge","data-tags":c,size:o,fontSize:n,sx:C&&a>0?{animation:`${P$1} ${a}ms ease infinite;`}:{},className:"notificationCounter",children:jsx(qm,{sx:{opacity:m?0:1},"data-qa":s?s+"-counterValue":"counterValue","data-tags":c,children:e})})})}):jsx(Fragment,{})}var Ym=Zm;var Xs=({fill:e=""})=>{let t=ua$1().palette.ux?.secondary.wMain;return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"8",viewBox:"0 0 24 8",fill:"none",children:[jsx("circle",{cx:"6",cy:"4",r:"2",fill:e||t}),jsx("circle",{cx:"12",cy:"4",r:"2",fill:e||t}),jsx("circle",{cx:"18",cy:"4",r:"2",fill:e||t})]})};function tg({minSize:e=0,defaultSize:t="50%",maxSize:o=-8,split:n="vertical",allowedResize:r=true,children:a,onDragFinished:i}){let l=ua$1(),s=l.palette.ux.secondary.w40,c=l.palette.ux.secondary.wMain,u=n==="vertical"?"horizontal":"vertical",d=typeof t=="string"?parseInt(t.replace("%","")):t/(typeof window<"u"?window.innerWidth:1e3)*100,f=e>0?e/(typeof window<"u"?window.innerWidth:1e3)*100:10,p=o>0?o/(typeof window<"u"?window.innerWidth:1e3)*100:90,m=x=>{if(i&&x.length>0){let S=x[0]/100*(typeof window<"u"?window.innerWidth:1e3);i(S);}},g=useMemo(()=>{if(!r)return "none";let x=n==="vertical"?jsx(nr,{fill:c}):jsx(Xs,{fill:c}),S=eg.renderToStaticMarkup(x);return `url("data:image/svg+xml;base64,${btoa(S)}")`},[r,c,n]),C=useMemo(()=>({width:n==="vertical"?r?"8px":"0px":"100%",height:n==="horizontal"?r?"8px":"0px":"100%",cursor:r?n==="vertical"?"ew-resize":"ns-resize":"default",borderLeft:n==="vertical"?`solid 1px ${s}`:"",borderRight:n==="vertical"?`solid 1px ${s}`:"",borderTop:n==="horizontal"?`solid 1px ${s}`:"",borderBottom:n==="horizontal"?`solid 1px ${s}`:"",backgroundImage:g,backgroundPosition:"center",backgroundRepeat:"no-repeat",display:r?"block":"none"}),[n,r,s,g]);return jsxs(PanelGroup,{direction:u,onLayout:m,style:{border:`solid 1px ${s}`,width:"100%",height:"100%"},children:[jsx(Panel,{defaultSize:d,minSize:f,maxSize:p,children:jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:a[0]})}),r&&jsx(PanelResizeHandle,{style:C}),jsx(Panel,{children:jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:a[1]})})]})}var og=tg;var rg=e=>`1px solid ${e}`,ag=({id:e,summary:t,details:o,indicatorVariant:n,disabled:r=false,expanded:a=false,hover:i=false,onChange:l,dataQa:s,dataTags:c,backgroundColor:u,square:d=true,border:f=true,borderColor:p,disablePadding:m=false})=>{let g=ua$1();return jsxs(kb$1,{id:e,square:d,disableGutters:true,disabled:r,expanded:a,onChange:l,"data-qa":s,"data-tags":c,sx:{backgroundColor:u??"transparent",border:f?rg((()=>{switch(p){case "error":return g.palette.ux.error.w100;case "warn":return g.palette.ux.warning.w100;case "success":return g.palette.ux.success.w100;case "info":return g.palette.ux.info.w100;default:return g.palette.ux.secondary.w20}})()):"none"},slotProps:{transition:{timeout:350}},children:[jsx(yb,{expandIcon:jsx(Rt,{}),className:D({hasHoverEffect:i},n?`indicator-${n}`:""),children:t}),jsx(qb,{sx:{padding:m?0:void 0},children:o})]})},ig=ag;function it(e){let{children:t,spacing:o=2,...n}=e;return jsx(Ig,{spacing:o,...n,children:t})}function Js(e){let{children:t,container:o,...n}=e,{spacing:r}=n;o&&!r&&(r=2);let a=ua$1();return jsx(me,{container:o,spacing:r,color:a.palette.ux.primary.text.wMain,...n,children:t})}var Pa=wa(Re)(()=>({maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),Us=wa("div")(({theme:e})=>({alignItems:"center",columnGap:e.spacing(.5),display:"flex",flexDirection:"row"}));function dg({id:e,paths:t,maxItems:o=8,onRouteClick:n,dataQa:r="breadcrumbs",dataTags:a}){let i=useMemo(()=>t.map(({link:l})=>()=>{n&&n(l);}),[n,t]);return jsx(Lc$1,{id:e,separator:jsx(j,{fontSize:"small"}),maxItems:o,"data-qa":r,"data-tags":a,children:t.map(({title:l,link:s,current:c,tooltip:u,progress:d,progressTooltip:f},p)=>c?jsxs(Us,{children:[jsx(Pa,{underline:"none",component:"span","data-qa":s,children:l}),d&&jsx(b$1,{title:f,children:jsx("div",{children:jsx(Wt,{size:"xs"})})})]},s):jsxs(Us,{children:[jsx(b$1,{title:u,variant:"overflow",children:n?jsx(Pa,{underline:"hover",component:"button",onClick:i[p],"data-qa":s,children:l}):jsx(Pa,{underline:"hover",component:Link,to:s,"data-qa":s,children:l})}),d&&jsx(b$1,{title:f,children:jsx("div",{children:jsx(Wt,{size:"xs"})})})]},s))})}var Ia=dg;var fg=wa(ei$1)(({theme:e})=>{let t={height:e.spacing(4),padding:e.spacing(0,2),color:e.palette.ux.deprecated.secondary.text.wMain,fontWeight:e.typography.fontWeightRegular,textTransform:"none",backgroundColor:e.palette.ux.background.w10,borderColor:e.palette.ux.secondary.w40,"&:hover":{backgroundColor:e.palette.ux.secondary.w10,borderColor:e.palette.ux.secondary.w40,color:pi$1==="solace"?e.palette.ux.deprecated.secondary.text.wMain:e.palette.ux.primary.text.wMain},"&.Mui-selected":{color:e.palette.ux.primary.wMain,fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.ux.brand.w10,"&:hover":{backgroundColor:e.palette.ux.brand.w10},"&.Mui-disabled":{backgroundColor:e.palette.ux.background.w20}},"&:focus-visible, &.Mui-selected:focus-visible":{borderColor:e.palette.ux.deprecated.accent.n2.wMain},"&.Mui-disabled, &.Mui-selected.Mui-disabled":{borderColor:e.palette.ux.secondary.w40,color:e.palette.ux.secondary.text.w50}},o={color:e.palette.ux.secondary.text.wMain,"&.Mui-selected":{color:e.palette.ux.primary.text.wMain,fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.ux.accent.n2.w10,"&:hover":{backgroundColor:e.palette.ux.accent.n2.w10},"&.Mui-disabled":{backgroundColor:e.palette.ux.secondary.w10}}};return {".MuiToggleButtonGroup-grouped:not(:first-of-type)":{marginLeft:0,borderLeft:"none","&:focus-visible":{borderLeftColor:e.palette.ux.deprecated.accent.n2.wMain}},button:{...t,...pi$1==="new-solace"&&o}}});function mg({onChange:e,options:t=[],activeValue:o=void 0,isDisabled:n=false}){return jsx(fg,{exclusive:true,onChange:e,disabled:n,size:"small",children:t.map(r=>jsx(bi,{value:r.value,disableRipple:true,disableFocusRipple:true,disabled:r.disabled??false,selected:o===r.value,children:r.label},r.value))})}var La=mg;var Ys={xs:4,sm:6,md:10,lg:14};function Ks(e){let{variant:t,height:o,value:n,color:r}=e,a=e["aria-label"],i=typeof a=="string"&&a.trim().length>0?a:"Loading";return jsx(Oe,{"aria-label":i,variant:t,value:t==="determinate"?n:void 0,className:r??"default",sx:{height:Ys[o??"md"]}})}var hg=(n=>(n.DEFAULT="default_field",n.SEARCH="search_field",n.FILTER="filter_field",n))(hg||{});var Qs=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("g",{children:jsx("path",{d:`M20.598,18H16.4c-0.356,0-0.535,0.431-0.283,0.683l2.13,2.2C18.325,20.961,18.428,21,18.53,21
22
+ `;return useEffect(()=>{t!==f&&(t&&(a>0&&!C.current?(g(true),b(true),C.current=setTimeout(()=>{g(false),b(false),C.current=null;},i>0?i*a:a)):g(false)),u(t));},[a,t,i,f]),useEffect(()=>{e!==p&&(e&&a>0&&!S.current&&(b(true),S.current=setTimeout(()=>{b(false),S.current=null;},l>0?l*a:a)),d(e));},[a,l,p,e]),f?jsx(Fragment,{children:jsx(b$1,{title:r,children:jsx(Um,{"data-qa":s?s+"-counterBadge":"counterBadge","data-tags":c,size:o,fontSize:n,sx:x&&a>0?{animation:`${P$1} ${a}ms ease infinite;`}:{},className:"notificationCounter",children:jsx(qm,{sx:{opacity:m?0:1},"data-qa":s?s+"-counterValue":"counterValue","data-tags":c,children:e})})})}):jsx(Fragment,{})}var Ym=Zm;var Xs=({fill:e=""})=>{let t=ua$1().palette.ux?.secondary.wMain;return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"8",viewBox:"0 0 24 8",fill:"none",children:[jsx("circle",{cx:"6",cy:"4",r:"2",fill:e||t}),jsx("circle",{cx:"12",cy:"4",r:"2",fill:e||t}),jsx("circle",{cx:"18",cy:"4",r:"2",fill:e||t})]})};function tg({minSize:e=0,defaultSize:t="50%",maxSize:o=-8,split:n="vertical",allowedResize:r=true,children:a,onDragFinished:i}){let l=ua$1(),s=l.palette.ux.secondary.w40,c=l.palette.ux.secondary.wMain,p=n==="vertical"?"horizontal":"vertical",d=typeof t=="string"?parseInt(t.replace("%","")):t/(typeof window<"u"?window.innerWidth:1e3)*100,f=e>0?e/(typeof window<"u"?window.innerWidth:1e3)*100:10,u=o>0?o/(typeof window<"u"?window.innerWidth:1e3)*100:90,m=b=>{if(i&&b.length>0){let C=b[0]/100*(typeof window<"u"?window.innerWidth:1e3);i(C);}},g=useMemo(()=>{if(!r)return "none";let b=n==="vertical"?jsx(nr,{fill:c}):jsx(Xs,{fill:c}),C=eg.renderToStaticMarkup(b);return `url("data:image/svg+xml;base64,${btoa(C)}")`},[r,c,n]),x=useMemo(()=>({width:n==="vertical"?r?"8px":"0px":"100%",height:n==="horizontal"?r?"8px":"0px":"100%",cursor:r?n==="vertical"?"ew-resize":"ns-resize":"default",borderLeft:n==="vertical"?`solid 1px ${s}`:"",borderRight:n==="vertical"?`solid 1px ${s}`:"",borderTop:n==="horizontal"?`solid 1px ${s}`:"",borderBottom:n==="horizontal"?`solid 1px ${s}`:"",backgroundImage:g,backgroundPosition:"center",backgroundRepeat:"no-repeat",display:r?"block":"none"}),[n,r,s,g]);return jsxs(PanelGroup,{direction:p,onLayout:m,style:{border:`solid 1px ${s}`,width:"100%",height:"100%"},children:[jsx(Panel,{defaultSize:d,minSize:f,maxSize:u,children:jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:a[0]})}),r&&jsx(PanelResizeHandle,{style:x}),jsx(Panel,{children:jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:a[1]})})]})}var og=tg;var rg=e=>`1px solid ${e}`,ag=({id:e,summary:t,details:o,indicatorVariant:n,disabled:r=false,expanded:a=false,hover:i=false,onChange:l,dataQa:s,dataTags:c,backgroundColor:p,square:d=true,border:f=true,borderColor:u,disablePadding:m=false})=>{let g=ua$1();return jsxs(kb$1,{id:e,square:d,disableGutters:true,disabled:r,expanded:a,onChange:l,"data-qa":s,"data-tags":c,sx:{backgroundColor:p??"transparent",border:f?rg((()=>{switch(u){case "error":return g.palette.ux.error.w100;case "warn":return g.palette.ux.warning.w100;case "success":return g.palette.ux.success.w100;case "info":return g.palette.ux.info.w100;default:return g.palette.ux.secondary.w20}})()):"none"},slotProps:{transition:{timeout:350}},children:[jsx(yb,{expandIcon:jsx(Rt,{}),className:D({hasHoverEffect:i},n?`indicator-${n}`:""),children:t}),jsx(qb,{sx:{padding:m?0:void 0},children:o})]})},ig=ag;function it(e){let{children:t,spacing:o=2,...n}=e;return jsx(Ig,{spacing:o,...n,children:t})}function Js(e){let{children:t,container:o,...n}=e,{spacing:r}=n;o&&!r&&(r=2);let a=ua$1();return jsx(me,{container:o,spacing:r,color:a.palette.ux.primary.text.wMain,...n,children:t})}var Pa=wa(Re)(()=>({maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),Us=wa("div")(({theme:e})=>({alignItems:"center",columnGap:e.spacing(.5),display:"flex",flexDirection:"row"}));function dg({id:e,paths:t,maxItems:o=8,onRouteClick:n,dataQa:r="breadcrumbs",dataTags:a}){let i=useMemo(()=>t.map(({link:l})=>()=>{n&&n(l);}),[n,t]);return jsx(Lc$1,{id:e,separator:jsx(j,{fontSize:"small"}),maxItems:o,"data-qa":r,"data-tags":a,children:t.map(({title:l,link:s,current:c,tooltip:p,progress:d,progressTooltip:f},u)=>c?jsxs(Us,{children:[jsx(Pa,{underline:"none",component:"span","data-qa":s,children:l}),d&&jsx(b$1,{title:f,children:jsx("div",{children:jsx(Wt,{size:"xs"})})})]},s):jsxs(Us,{children:[jsx(b$1,{title:p,variant:"overflow",children:n?jsx(Pa,{underline:"hover",component:"button",onClick:i[u],"data-qa":s,children:l}):jsx(Pa,{underline:"hover",component:Link,to:s,"data-qa":s,children:l})}),d&&jsx(b$1,{title:f,children:jsx("div",{children:jsx(Wt,{size:"xs"})})})]},s))})}var Ia=dg;var fg=wa(ei$1)(({theme:e})=>{let t={height:e.spacing(4),padding:e.spacing(0,2),color:e.palette.ux.deprecated.secondary.text.wMain,fontWeight:e.typography.fontWeightRegular,textTransform:"none",backgroundColor:e.palette.ux.background.w10,borderColor:e.palette.ux.secondary.w40,"&:hover":{backgroundColor:e.palette.ux.secondary.w10,borderColor:e.palette.ux.secondary.w40,color:pi$1==="solace"?e.palette.ux.deprecated.secondary.text.wMain:e.palette.ux.primary.text.wMain},"&.Mui-selected":{color:e.palette.ux.primary.wMain,fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.ux.brand.w10,"&:hover":{backgroundColor:e.palette.ux.brand.w10},"&.Mui-disabled":{backgroundColor:e.palette.ux.background.w20}},"&:focus-visible, &.Mui-selected:focus-visible":{borderColor:e.palette.ux.deprecated.accent.n2.wMain},"&.Mui-disabled, &.Mui-selected.Mui-disabled":{borderColor:e.palette.ux.secondary.w40,color:e.palette.ux.secondary.text.w50}},o={color:e.palette.ux.secondary.text.wMain,"&.Mui-selected":{color:e.palette.ux.primary.text.wMain,fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.ux.accent.n2.w10,"&:hover":{backgroundColor:e.palette.ux.accent.n2.w10},"&.Mui-disabled":{backgroundColor:e.palette.ux.secondary.w10}}};return {".MuiToggleButtonGroup-grouped:not(:first-of-type)":{marginLeft:0,borderLeft:"none","&:focus-visible":{borderLeftColor:e.palette.ux.deprecated.accent.n2.wMain}},button:{...t,...pi$1==="new-solace"&&o}}});function mg({onChange:e,options:t=[],activeValue:o=void 0,isDisabled:n=false}){return jsx(fg,{exclusive:true,onChange:e,disabled:n,size:"small",children:t.map(r=>jsx(bi,{value:r.value,disableRipple:true,disableFocusRipple:true,disabled:r.disabled??false,selected:o===r.value,children:r.label},r.value))})}var La=mg;var Ys={xs:4,sm:6,md:10,lg:14};function Ks(e){let{variant:t,height:o,value:n,color:r}=e,a=e["aria-label"],i=typeof a=="string"&&a.trim().length>0?a:"Loading";return jsx(Oe,{"aria-label":i,variant:t,value:t==="determinate"?n:void 0,className:r??"default",sx:{height:Ys[o??"md"]}})}var hg=(n=>(n.DEFAULT="default_field",n.SEARCH="search_field",n.FILTER="filter_field",n))(hg||{});var Qs=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("g",{children:jsx("path",{d:`M20.598,18H16.4c-0.356,0-0.535,0.431-0.283,0.683l2.13,2.2C18.325,20.961,18.428,21,18.53,21
23
23
  c0.102,0,0.205-0.039,0.283-0.117l2.068-2.2C21.133,18.431,20.954,18,20.598,18z M17.798,5l-4.522,6L13,11.462V12v3.899L11,17.4V12
24
24
  v-0.538L10.723,11L6.201,5H17.798z M20.6,3H3.4C3.067,3,2.801,3.379,3,3.645L9,12v8.6C9,20.84,9.196,21,9.404,21
25
25
  c0.088,0,0.178-0.022,0.256-0.087L14.853,17C14.945,16.924,15,16.817,15,16.698V12l6-8.4C21.2,3.334,20.932,3,20.6,3z`,fill:t||o.palette.ux.secondary.wMain})})})};var js=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("g",{children:jsx("path",{d:`M10.504,3.13C6.402,3.13,3,6.53,3,10.63S6.402,18,10.504,18c1.701,0,3.202-0.37,4.503-1.37l4.442,4.09
26
26
  c0.1,0.1,0.2,0.15,0.3,0.15c0.1,0,0.2-0.05,0.3-0.15l0.8-0.8c0.2-0.2,0.2-0.4,0-0.6l-4.342-4.19c0.901-1.2,1.492-2.8,1.492-4.5
27
27
  C18,6.53,14.606,3.13,10.504,3.13L10.504,3.13z M10.504,16c-3.002,0-5.503-2.37-5.503-5.37s2.501-5.5,5.503-5.5S16,7.63,16,10.63
28
- S13.506,16,10.504,16L10.504,16z`,fill:t||o.palette.ux.secondary.wMain})})})};var ec=wa("div")(({theme:e})=>({margin:`${e.spacing(1)} ${e.spacing(1)} 0 -${e.spacing(.5)}`,".MuiSvgIcon-root":{fill:e.palette.ux.secondary.wMain}}));function Sg({id:e,name:t,label:o,helperText:n,value:r="",placeholder:a,width:i,disabled:l=false,autoFocus:s=false,type:c="default_field",hasErrors:u=false,onChange:d,onFocus:f,onBlur:p,onClearAll:m}){let g=useRef(null),C=useCallback(()=>{let v=()=>{d({name:t,value:""}),m&&m(),g.current?.focus();},P=I=>{switch(I){case "filter_field":return jsx(ec,{children:jsx(Qs,{size:20})},"filterIcon");case "search_field":return jsx(ec,{children:jsx(js,{size:20})},"searchIcon");default:return}},R=[];return r&&r.trim().length>0&&R.push(jsx(b$2,{dataQa:"clearButton",isDisabled:l,variant:"icon",onClick:v,"aria-label":c$1.clearButtonAriaLabel,children:jsx(Te,{size:20},"closeIcon")},"closeIcon")),R.push(P(c)),R},[r,c,d,t,m,l]);return jsx(d$2,{id:e,name:t,label:o,helperText:n,value:r,autoFocus:s,onChange:v=>{d(v);},onFocus:v=>{f&&f(v);},onBlur:v=>{p&&p(v);},width:i,endAdornment:C(),hasErrors:u,disabled:l,dataQa:`searchAndFilter-${e}`,placeholder:a,inputRef:v=>{g.current=v;}})}var Aa=Sg;function Cg({children:e,...t}){return jsx(Ue,{...t,children:e})}var yg=Cg;function wg({children:e,...t}){return jsx(bf$1,{...t,children:e})}var Tg=wg;function Rg({children:e,...t}){return jsx(Ze$1,{...t,children:e})}var Pg=Rg;function Lg({id:e,variant:t="call-to-action","aria-label":o,"aria-labelledby":n,isDisabled:r=false,title:a="",component:i="button",type:l="button",startIcon:s,endIcon:c,onClick:u,dataQa:d,dataTags:f,children:p}){let m=g=>{u&&u(g);};if(t==="icon")return jsx(b$1,{title:a,children:jsx(Gb,{"aria-label":o,"aria-labelledby":n,"data-qa":d,"data-tags":f,type:l,id:e,disabled:r,onClick:m,size:"large",className:"icon-button",component:"button",children:p})});{let g;(v=>(v.contained="contained",v.outlined="outlined"))(g||(g={}));let C={"call-to-action":"contained",learning:"contained","dark-call-to-action":"contained","dark-outline":"outlined"},x="";switch(t){case "dark-call-to-action":x="dark-call-to-action-button";break;case "dark-outline":x="dark-outline-button";break;default:x="call-to-action-button";}return jsx(b$1,{title:a,children:jsx(Qc$1,{id:e,"data-qa":d,"data-tags":f,startIcon:s,endIcon:c,component:i,type:l,disabled:r,variant:C[t],onClick:m,className:x,children:p})})}}var lr=Lg;function tc({size:e,fill:t}){let o=ua$1();return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_3499_35806)",children:jsx("path",{d:"M10 5.013L8 7.013L6 5.013C5.8901 4.9031 5.713 4.9031 5.6031 5.013L5.013 5.6038C4.9031 5.7137 4.9031 5.8908 5.013 6.0007L7.013 8L5.013 10C4.9031 10.1099 4.9031 10.287 5.013 10.3969L5.6031 10.987C5.713 11.0969 5.8901 11.0969 6 10.987L8 8.987L10 10.987C10.1099 11.0969 10.287 11.0969 10.3969 10.987L10.987 10.3969C11.0969 10.287 11.0969 10.1099 10.987 10L8.987 8L10.987 6C11.0969 5.8901 11.0969 5.713 10.987 5.6031L10.3969 5.013C10.287 4.9038 10.1092 4.9038 10 5.013ZM8 1C4.15 1 1 4.15 1 8C1 11.85 4.15 15 8 15C11.85 15 15 11.85 15 8C15 4.15 11.85 1 8 1ZM8 2.4C11.08 2.4 13.6 4.92 13.6 8C13.6 11.08 11.08 13.6 8 13.6C4.92 13.6 2.4 11.08 2.4 8C2.4 4.92 4.92 2.4 8 2.4Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_3499_35806",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function oc({size:e,fill:t}){let o=ua$1();return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_8332_25903)",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8ZM6.84111 11.404L12.2361 6.00901L11.2933 5.0662L6.84049 9.51904L4.70569 7.38708L3.76351 8.33052L6.84111 11.404Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_8332_25903",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}var Ag={width:48,height:48},Bg={borderRadius:"50%"};function Ba(e){let{active:t,completed:o,icon:n,error:r}=e,a=ua$1(),i=t?a.palette.ux.brand.wMain:r?a.palette.ux.error.wMain:a.palette.ux.secondary.w40,l={border:`${t?"2px":"1px"} solid ${i}`},s=jsx(Ic$1,{component:"span",sx:{border:l,...Ag,...Bg},display:"flex",alignItems:"center",justifyContent:"center",children:n}),c=o?jsx(oc,{fill:a.palette.ux.success.wMain,size:16}):jsx(tc,{fill:a.palette.ux.error.wMain,size:16});return jsx(Ac$1,{overlap:"circular",badgeContent:r||o?c:null,children:s})}var Oa={cancel:"Cancel",next:"Next",back:"Back"},$g=wa(Ic$1)(({theme:e})=>({paddingTop:e.spacing(2),paddingLeft:e.spacing(3),paddingRight:e.spacing(2),display:"flex",flexDirection:"row"})),rc=wa(Ic$1,{shouldForwardProp:e=>e!=="onLastStep"&&e!=="direction"})(({theme:e,direction:t,onLastStep:o})=>({marginRight:t==="left"?e.spacing(1):0,".MuiButtonBase-root":{padding:(()=>{if(t==="left")return "0 16px 0 0";if(!o)return "0 0 0 16px"})()}})),ac=wa("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)}));function Da(e){let{steps:t,onClose:o,onSubmit:n,onSecondarySubmit:r,setActiveStep:a,activeStep:i,submitLabel:l,secondarySubmitLabel:s,disableSubmit:c,shouldDisableSecondarySubmit:u}=e,d=i===t.length-1,f=i===0,p=useMemo(()=>{if(i===t.length-1)return i;let b=-1;for(let v=i+1;v<t.length;v++)if(!t[v].disabled){b=v;break}return b===-1?i+1:b},[t,i]),m=useMemo(()=>{if(i===0)return i;let b=-1;for(let v=i-1;v>=0;v--)if(!t[v].disabled){b=v;break}return b===-1?i-1:b},[t,i]),g=ua$1(),C=()=>{if(d){n();return}a(p);},x=()=>{r?.();};return jsxs(Ic$1,{minHeight:"69px",children:[jsx(Pd,{}),jsxs($g,{children:[jsx(rc,{direction:"left",children:!f&&jsx(b$2,{variant:"text",onClick:()=>{f||a(m);},isDisabled:t[m].disabled,children:jsxs(ac,{children:[jsx(ArrowLeft24Icon,{fill:t[m].disabled?g.palette.ux.secondary.w40:g.palette.ux.primary.wMain,sx:{padding:"4px 0px 4px 4px"}}),`${Oa.back}: ${t[m].label}`]})})}),jsx(Ic$1,{sx:{flex:"1 1 auto"}}),jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"text",onClick:o,children:Oa.cancel})}),s&&jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"outline",onClick:x,isDisabled:u?.()||d&&c,children:s})}),jsx(rc,{direction:"right",onLastStep:d,children:jsx(b$2,{variant:"call-to-action",onClick:C,isDisabled:d&&c||!d&&t[p].disabled,children:d?l:jsxs(ac,{children:[`${Oa.next}: ${t[p]?.label}`,jsx(ArrowRight24Icon,{fill:g.palette.ux.primary.text.w10,sx:{padding:"4px 4px 4px 0px"}})]})})})]})]})}function ic(e){let{activeStep:t,steps:o,setActiveStep:n,children:r,stepContentOverflow:a,...i}=e,l=ua$1(),s=u=>()=>{n(u);},c=(u,d)=>jsx(Ba,{icon:u.icon,completed:u.completed,error:u.error,active:d});return jsxs(Ic$1,{display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,children:[jsx(gh$1,{nonLinear:true,activeStep:t,children:o.map((u,d)=>{let f=t===d?l.palette.ux.primary.text.wMain:l.palette.ux.deprecated.secondary.text.wMain,p=jsx(Zg$1,{optional:u.hideOptionalLabel?void 0:jsx(m,{sx:{color:f},variant:"caption",children:`Step ${d+1} ${u?.subText??""}`}),color:"inherit",onClick:u.disabled?void 0:s(d),sx:{textAlign:"left",opacity:u.disabled?.35:1,cursor:u.disabled?"default":"pointer","&:hover .MuiTypography-root":{color:u.disabled?void 0:l.palette.ux.primary.text.wMain}},children:jsx(Wg,{StepIconComponent:()=>c(u,t===d),children:jsx(m,{variant:"h5",sx:{color:f},children:u.label})})});return jsx(Qg$1,{children:u.disabled&&u.disabledReason?jsx(Bg$1,{title:u.disabledReason,placement:"bottom-start",slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-24]}}]}},children:p}):p},u.label)})}),jsx(Ic$1,{pl:3,pr:3,flexGrow:1,overflow:a??"auto",children:r}),jsx(Da,{activeStep:t,setActiveStep:n,steps:o,...i})]})}var Hg=wa("div")(({theme:e})=>({padding:`${e.spacing(3)} ${e.spacing(3)} 0px ${e.spacing(3)}`,borderRadius:`${e.spacing(1.25)} ${e.spacing(1.25)} 0 0`,marginBottom:"-6px",border:`solid 1px ${e.palette.ux.learning.w20}`,width:"100%",backgroundColor:e.palette.ux.learning.w10,boxSizing:"border-box"}));function lc(e){let t=ua$1(),{bannerImage:o,subtitle:n,title:r,description:a,primaryButton:i,secondaryButton:l,dataQa:s}=e,c=t.palette.ux.primary.text.w10,u=()=>{i.onClick();};return jsx(Ic$1,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center","data-qa":"emptyStateBannerWrapper",children:jsxs(Ic$1,{"data-qa":s??"emptyStateBanner",width:825,children:[o&&jsx(Hg,{children:o}),jsx(it,{spacing:3,children:jsx(Ic$1,{boxSizing:"border-box",padding:5,height:261,borderRadius:2.5,display:"flex",justifyContent:"space-between",sx:{background:`radial-gradient(75.04% 70.41% at 20.32% 70.41%, ${t.palette.ux.learning.wMain} 0%, ${t.palette.ux.learning.w100} 100%)`},children:jsxs(Ic$1,{children:[jsx(m,{variant:"caption",fontWeight:600,sx:{color:t.palette.ux.brand.w30},children:n}),jsxs(it,{children:[jsx(m,{variant:"h2",width:600,sx:{fontSize:"1.5rem",color:c},children:r}),jsx(m,{width:"100%",sx:{color:c},children:a})]}),jsxs(it,{direction:"row",alignItems:"center",paddingTop:t.spacing(3),spacing:1.5,children:[jsx(lr,{variant:"call-to-action",onClick:u,dataQa:i?.dataQa??"emptyStateBannerPrimaryButton",children:i.label}),l&&jsx(lr,{variant:"dark-call-to-action",dataQa:l.dataQa??"emptyStateBannerSecondaryButton",onClick:()=>l.onClick(),children:l.label})]})]})})})]})})}var Fg=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),width:"100%",boxSizing:"border-box"})),_g=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),Vg=wa("div")(()=>({display:"flex",alignSelf:"flex-start",justifyContent:"center",alignItems:"center"})),zg=wa("div")(()=>({flex:1,display:"flex",flexDirection:"column"})),Xg=wa("div")(({theme:e})=>({display:"flex",alignSelf:"flex-start",alignItems:"center",marginTop:e.spacing(-0.5)}));function Gg({icon:e,title:t,subTitle:o,actionElements:n=null,dataQa:r,dataTags:a}){return jsxs(Fg,{"data-qa":r,"data-tags":a,children:[jsxs(_g,{children:[e&&jsx(Vg,{children:e}),t&&jsxs(zg,{children:[jsx(m,{variant:"h3",className:"solaceCardTitle",children:t}),o&&jsx(m,{variant:"body1",children:o})]})]}),n&&jsx(Xg,{children:n})]})}var Na=Gg;function qg({cardHeaderProps:e,cardContent:t,cardActions:o,width:n,height:r,minWidth:a="250px",padding:i,readOnly:l=false,ariaLabel:s,dataQa:c,dataTags:u,isSelected:d=false,showBorderOnSelect:f=false,onClick:p}){let m=ua$1(),[g,C]=useState(d);useEffect(()=>{C(d);},[d]);let x=useCallback(S=>{!l&&p&&(p(S,!g),C(!g));},[g,p,l]);return jsxs(Wc$1,{className:`solaceCard ${l?"readOnly":""} ${g?"selected":""}`,sx:{width:n,height:r,minWidth:a,padding:i??m.spacing(2),...f&&g&&{border:`1px solid ${m.palette.ux.brand.wMain}`}},"data-qa":c,"data-tags":u,"aria-label":s,role:"article",onClick:l?void 0:x,children:[e&&jsx(Na,{...e}),t&&jsx(dd,{sx:{"&.MuiCardContent-root:last-child":{paddingBottom:m.spacing(0)},padding:m.spacing(0)},children:t}),o&&jsx(ad$1,{sx:{padding:m.spacing(0)},children:o})]})}var Zg=qg;var Kg=()=>jsx(Na$1,{width:"24",height:"24",viewBox:"0 0 24 24",children:jsx("path",{fill:"currentColor",d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"})});var Qg=({fill:e="#7ED321"})=>jsx(Na$1,{sx:{width:"20",height:"20",fill:"none"},viewBox:"0 0 20 20",children:jsx("path",{d:"M11.6951 0.140109C4.85411 -0.984891 -0.984891 4.85411 0.140109 11.6951C0.821109 15.8381 4.16311 19.1801 8.30611 19.8611C15.1471 20.9861 20.9861 15.1471 19.8611 8.30611C19.1791 4.16211 15.8381 0.821109 11.6951 0.140109ZM11.5681 17.8501C5.94311 18.9261 1.07411 14.0571 2.15011 8.43211C2.75111 5.28711 5.28711 2.75111 8.43211 2.15011C14.0571 1.07411 18.9261 5.94311 17.8501 11.5681C17.2481 14.7131 14.7131 17.2481 11.5681 17.8501ZM14.0651 6.10511L8.00011 12.1701L5.92211 10.1011C5.76811 9.94711 5.51811 9.94711 5.36411 10.1021L4.51811 10.9481C4.36011 11.1061 4.36011 11.3611 4.51811 11.5191L7.71411 14.8931C7.87211 15.0511 8.12711 15.0511 8.28511 14.8931L15.4761 7.52511C15.6321 7.36911 15.6331 7.11511 15.4771 6.95811L14.6331 6.10811C14.4771 5.94911 14.2221 5.94811 14.0651 6.10511Z",fill:e})}),jg=Qg;var eh=(r=>(r.Auto="auto",r.Hidden="hidden",r.Scroll="scroll",r.Visible="visible",r))(eh||{});var th=(o=>(o.horizontal="horizontal",o.vertical="vertical",o))(th||{});var uc=(o=>(o.TOP_OF_TABS="topOfTabs",o.LEFT_OF_TABS="leftOfTabs",o))(uc||{});var fc=b(pc()),To={maxFilesErrorMessage:"Maximum files allowed is ",maxSizeErrorMessage:"Maximum fileSize allowed is ",minSizeErrorMessage:"Minimum fileSize allowed is ",defaultSize:"0 kb",sizeInKb:" kb",sizeInMb:" mb"};function oh(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function nh(e){return /^.*\.[\w]+$/.test(e)}function mc(e){return Object.values(e).reduce((t,o)=>t.concat(o),[]).filter(t=>oh(t)||nh(t)).join(",")}var _a=(e,t,o,n,r)=>{if(e!==0&&o.length>e)return To.maxFilesErrorMessage+e;let a=null;return o.some(i=>n&&i.size>n?(a=To.maxSizeErrorMessage+dc(n),true):i.size<t?(a=To.minSizeErrorMessage+dc(t),true):r&&r.length>0&&!(0, fc.default)(i,r)?(a="File type not supported",true):false),a};function dc(e){let t=To.defaultSize;if(!e)return t;let o=e/1024;return o>1024?`${(o/1024).toFixed(2)}${To.sizeInMb}`:`${o.toFixed(2)}${To.sizeInKb}`}var rh=()=>jsx(Na$1,{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",sx:{opacity:.5},children:jsx("path",{d:"M11.15 17C10.9291 17 10.75 16.8209 10.75 16.6V6.81253L7.78785 9.77468C7.6297 9.93283 7.3726 9.93057 7.21725 9.76967L6.02301 8.53278C5.87146 8.37582 5.87365 8.12638 6.02792 7.9721L11.7172 2.28287C11.8734 2.12666 12.1266 2.12666 12.2828 2.28287L17.9721 7.9721C18.1264 8.12638 18.1285 8.37582 17.977 8.53278L16.7828 9.76967C16.6274 9.93057 16.3703 9.93283 16.2122 9.77468L13.25 6.81253V16.6C13.25 16.8209 13.0709 17 12.85 17H11.15ZM4.5 22C3.8125 22 3.22396 21.7552 2.73438 21.2656C2.24479 20.7761 2 20.1875 2 19.5V16.15C2 15.9291 2.17909 15.75 2.4 15.75H4.1C4.32091 15.75 4.5 15.9291 4.5 16.15V19.5H19.5V16.15C19.5 15.9291 19.6791 15.75 19.9 15.75H21.6C21.8209 15.75 22 15.9291 22 16.15V19.5C22 20.1875 21.7552 20.7761 21.2656 21.2656C20.776 21.7552 20.1875 22 19.5 22H4.5Z",fill:"black"})}),hc=rh;var lh=ih("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});function xc(e){let{maxFiles:t=1,readOnly:o=false,fileNames:n=[],onFileChange:r,label:a="Drag and drop file here",errorText:i,dataQa:l,id:s,minSize:c=0,maxSize:u,accept:d}=e,f=ua$1(),[p,m$1]=useState(false),[g,C]=useState(n??[]),[x,S]=useState(""),b=useMemo(()=>{if(d)return mc(d)},[d]),v=E=>jsx(Ic$1,{borderRadius:"4px",width:"125px",height:"1px",bgcolor:f.palette.ux.secondary.w40,mr:E==="left"?1:void 0,ml:E==="right"?1:void 0}),P=E=>{E.stopPropagation(),E.preventDefault(),p||m$1(true);},R=E=>{E.stopPropagation(),E.preventDefault(),m$1(false),x&&S("");let h=[];if(E.dataTransfer.items&&Array.from(E.dataTransfer.items).forEach(T=>{if(T.kind==="file"){let w=T.getAsFile();w&&h.push(w);}}),h.length>0){let T=_a(t,c,h,u,b);T!==null?S(T):(C([...g,...h]),r&&r([...g,...h]));}},I=E=>{if(E.target.files===null)return;x&&S("");let h=E?.target?.files[0],T=_a(t,c,[h],u,b);T!==null?S(T):(C([...g,h]),r&&r([...g,h]));},M=(E,h)=>jsxs(Ic$1,{border:`1px solid ${f.palette.ux.secondary.w20}`,display:"flex",alignItems:"center",justifyContent:"space-between",height:"48px",role:"listitem","data-qa":`solaceFileUploaderFileName-${h}`,paddingLeft:2,paddingRight:1,children:[jsx(m,{variant:"h5",children:typeof E=="string"?E:E.name}),!o&&jsx(b$2,{variant:"icon",onClick:()=>{let T=g.filter((w,z)=>z!==h);C(T),r&&r(T);},title:"Remove",children:jsx(Te,{})})]},h);return jsxs(Fragment,{children:[g.length<t&&!o&&jsxs(Ic$1,{onDragEnter:P,onDragOver:P,onDrop:R,onDragLeave:()=>m$1(false),height:"139px",sx:[E=>({border:p?`1px solid ${E.palette.ux.brand.wMain}`:`1px dashed ${E.palette.ux.secondary.w40}`})],alignContent:"center",id:"solaceFileUploaderWrapper","data-qa":l,role:"dropzone",children:[p&&jsx(m,{variant:"body1",textAlign:"center",children:"Drop file here"}),!p&&jsxs(it,{alignItems:"center",spacing:2,children:[jsxs(Ic$1,{display:"flex",alignItems:"center",children:[jsx(hc,{}),jsx(m,{variant:"body1",sx:{color:f.palette.ux.secondary.text.wMain,marginLeft:f.spacing()},children:a})]}),jsxs(Ic$1,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",children:[v("left"),jsx(m,{sx:{color:f.palette.ux.secondary.text.wMain},variant:"body1",children:"OR"}),v("right")]}),jsxs(Qc$1,{component:"label",role:void 0,variant:"text",tabIndex:-1,children:["Upload File",jsx(lh,{type:"file",onChange:I})]})]})]}),g.length>0&&jsx(it,{mt:t>1?2:0,children:g.map((E,h)=>M(E,h))}),(i||x)&&jsx(e$1,{dataQa:"solaceFileUploaderError",children:i||x})]})}var ch=wa("div")(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),uh=wa("div")(()=>({display:"flex",button:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%","&.MuiLink-root:hover":{backgroundColor:"inherit"}},a:{overflow:"hidden",maxWidth:"100%",span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"}}}));function ph({id:e,text:t,onClick:o,dataQa:n,href:r}){return jsxs(Fragment,{children:[(r||o)&&jsx(uh,{"data-qa":`${e}-link`,children:jsx(b$2,{variant:"link",href:!o&&r?r:void 0,onClick:!r&&o?o:void 0,dense:true,dataQa:n,children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})})},`${e}-link`),!o&&!r&&jsx(ch,{"data-qa":`${e}-text`,className:"textWrapper",children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})},`${e}-text`)]})}var dh=ph;var za=wa("div",{shouldForwardProp:e=>e!=="bgColor"&&e!=="fgColor"})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
28
+ S13.506,16,10.504,16L10.504,16z`,fill:t||o.palette.ux.secondary.wMain})})})};var ec=wa("div")(({theme:e})=>({margin:`${e.spacing(1)} ${e.spacing(1)} 0 -${e.spacing(.5)}`,".MuiSvgIcon-root":{fill:e.palette.ux.secondary.wMain}}));function Sg({id:e,name:t,label:o,helperText:n,value:r="",placeholder:a,width:i,disabled:l=false,autoFocus:s=false,type:c="default_field",hasErrors:p=false,onChange:d,onFocus:f,onBlur:u,onClearAll:m}){let g=useRef(null),x=useCallback(()=>{let v=()=>{d({name:t,value:""}),m&&m(),g.current?.focus();},P=I=>{switch(I){case "filter_field":return jsx(ec,{children:jsx(Qs,{size:20})},"filterIcon");case "search_field":return jsx(ec,{children:jsx(js,{size:20})},"searchIcon");default:return}},R=[];return r&&r.trim().length>0&&R.push(jsx(b$2,{dataQa:"clearButton",isDisabled:l,variant:"icon",onClick:v,"aria-label":c$1.clearButtonAriaLabel,children:jsx(Te,{size:20},"closeIcon")},"closeIcon")),R.push(P(c)),R},[r,c,d,t,m,l]);return jsx(d$2,{id:e,name:t,label:o,helperText:n,value:r,autoFocus:s,onChange:v=>{d(v);},onFocus:v=>{f&&f(v);},onBlur:v=>{u&&u(v);},width:i,endAdornment:x(),hasErrors:p,disabled:l,dataQa:`searchAndFilter-${e}`,placeholder:a,inputRef:v=>{g.current=v;}})}var Aa=Sg;function Cg({children:e,...t}){return jsx(Ue,{...t,children:e})}var yg=Cg;function wg({children:e,...t}){return jsx(bf$1,{...t,children:e})}var Tg=wg;function Rg({children:e,...t}){return jsx(Ze$1,{...t,children:e})}var Pg=Rg;function Lg({id:e,variant:t="call-to-action","aria-label":o,"aria-labelledby":n,isDisabled:r=false,title:a="",component:i="button",type:l="button",startIcon:s,endIcon:c,onClick:p,dataQa:d,dataTags:f,children:u}){let m=g=>{p&&p(g);};if(t==="icon")return jsx(b$1,{title:a,children:jsx(Gb,{"aria-label":o,"aria-labelledby":n,"data-qa":d,"data-tags":f,type:l,id:e,disabled:r,onClick:m,size:"large",className:"icon-button",component:"button",children:u})});{let g;(v=>(v.contained="contained",v.outlined="outlined"))(g||(g={}));let x={"call-to-action":"contained",learning:"contained","dark-call-to-action":"contained","dark-outline":"outlined"},b="";switch(t){case "dark-call-to-action":b="dark-call-to-action-button";break;case "dark-outline":b="dark-outline-button";break;default:b="call-to-action-button";}return jsx(b$1,{title:a,children:jsx(Qc$1,{id:e,"data-qa":d,"data-tags":f,startIcon:s,endIcon:c,component:i,type:l,disabled:r,variant:x[t],onClick:m,className:b,children:u})})}}var lr=Lg;function tc({size:e,fill:t}){let o=ua$1();return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_3499_35806)",children:jsx("path",{d:"M10 5.013L8 7.013L6 5.013C5.8901 4.9031 5.713 4.9031 5.6031 5.013L5.013 5.6038C4.9031 5.7137 4.9031 5.8908 5.013 6.0007L7.013 8L5.013 10C4.9031 10.1099 4.9031 10.287 5.013 10.3969L5.6031 10.987C5.713 11.0969 5.8901 11.0969 6 10.987L8 8.987L10 10.987C10.1099 11.0969 10.287 11.0969 10.3969 10.987L10.987 10.3969C11.0969 10.287 11.0969 10.1099 10.987 10L8.987 8L10.987 6C11.0969 5.8901 11.0969 5.713 10.987 5.6031L10.3969 5.013C10.287 4.9038 10.1092 4.9038 10 5.013ZM8 1C4.15 1 1 4.15 1 8C1 11.85 4.15 15 8 15C11.85 15 15 11.85 15 8C15 4.15 11.85 1 8 1ZM8 2.4C11.08 2.4 13.6 4.92 13.6 8C13.6 11.08 11.08 13.6 8 13.6C4.92 13.6 2.4 11.08 2.4 8C2.4 4.92 4.92 2.4 8 2.4Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_3499_35806",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function oc({size:e,fill:t}){let o=ua$1();return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_8332_25903)",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8ZM6.84111 11.404L12.2361 6.00901L11.2933 5.0662L6.84049 9.51904L4.70569 7.38708L3.76351 8.33052L6.84111 11.404Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_8332_25903",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}var Ag={width:48,height:48},Bg={borderRadius:"50%"};function Ba(e){let{active:t,completed:o,icon:n,error:r}=e,a=ua$1(),i=t?a.palette.ux.brand.wMain:r?a.palette.ux.error.wMain:a.palette.ux.secondary.w40,l={border:`${t?"2px":"1px"} solid ${i}`},s=jsx(Ic$1,{component:"span",sx:{border:l,...Ag,...Bg},display:"flex",alignItems:"center",justifyContent:"center",children:n}),c=o?jsx(oc,{fill:a.palette.ux.success.wMain,size:16}):jsx(tc,{fill:a.palette.ux.error.wMain,size:16});return jsx(Ac$1,{overlap:"circular",badgeContent:r||o?c:null,children:s})}var Oa={cancel:"Cancel",next:"Next",back:"Back"},$g=wa(Ic$1)(({theme:e})=>({paddingTop:e.spacing(2),paddingLeft:e.spacing(3),paddingRight:e.spacing(2),display:"flex",flexDirection:"row"})),rc=wa(Ic$1,{shouldForwardProp:e=>e!=="onLastStep"&&e!=="direction"})(({theme:e,direction:t,onLastStep:o})=>({marginRight:t==="left"?e.spacing(1):0,".MuiButtonBase-root":{padding:(()=>{if(t==="left")return "0 16px 0 0";if(!o)return "0 0 0 16px"})()}})),ac=wa("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)}));function Da(e){let{steps:t,onClose:o,onSubmit:n,onSecondarySubmit:r,setActiveStep:a,activeStep:i,submitLabel:l,secondarySubmitLabel:s,disableSubmit:c,shouldDisableSecondarySubmit:p}=e,d=i===t.length-1,f=i===0,u=useMemo(()=>{if(i===t.length-1)return i;let S=-1;for(let v=i+1;v<t.length;v++)if(!t[v].disabled){S=v;break}return S===-1?i+1:S},[t,i]),m=useMemo(()=>{if(i===0)return i;let S=-1;for(let v=i-1;v>=0;v--)if(!t[v].disabled){S=v;break}return S===-1?i-1:S},[t,i]),g=ua$1(),x=()=>{if(d){n();return}a(u);},b=()=>{r?.();};return jsxs(Ic$1,{minHeight:"69px",children:[jsx(Pd,{}),jsxs($g,{children:[jsx(rc,{direction:"left",children:!f&&jsx(b$2,{variant:"text",onClick:()=>{f||a(m);},isDisabled:t[m].disabled,children:jsxs(ac,{children:[jsx(ArrowLeft24Icon,{fill:t[m].disabled?g.palette.ux.secondary.w40:g.palette.ux.primary.wMain,sx:{padding:"4px 0px 4px 4px"}}),`${Oa.back}: ${t[m].label}`]})})}),jsx(Ic$1,{sx:{flex:"1 1 auto"}}),jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"text",onClick:o,children:Oa.cancel})}),s&&jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"outline",onClick:b,isDisabled:p?.()||d&&c,children:s})}),jsx(rc,{direction:"right",onLastStep:d,children:jsx(b$2,{variant:"call-to-action",onClick:x,isDisabled:d&&c||!d&&t[u].disabled,children:d?l:jsxs(ac,{children:[`${Oa.next}: ${t[u]?.label}`,jsx(ArrowRight24Icon,{fill:g.palette.ux.primary.text.w10,sx:{padding:"4px 4px 4px 0px"}})]})})})]})]})}function ic(e){let{activeStep:t,steps:o,setActiveStep:n,children:r,stepContentOverflow:a,...i}=e,l=ua$1(),s=p=>()=>{n(p);},c=(p,d)=>jsx(Ba,{icon:p.icon,completed:p.completed,error:p.error,active:d});return jsxs(Ic$1,{display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,children:[jsx(gh$1,{nonLinear:true,activeStep:t,children:o.map((p,d)=>{let f=t===d?l.palette.ux.primary.text.wMain:l.palette.ux.deprecated.secondary.text.wMain,u=jsx(Zg$1,{optional:p.hideOptionalLabel?void 0:jsx(m,{sx:{color:f},variant:"caption",children:`Step ${d+1} ${p?.subText??""}`}),color:"inherit",onClick:p.disabled?void 0:s(d),sx:{textAlign:"left",opacity:p.disabled?.35:1,cursor:p.disabled?"default":"pointer","&:hover .MuiTypography-root":{color:p.disabled?void 0:l.palette.ux.primary.text.wMain}},children:jsx(Wg,{StepIconComponent:()=>c(p,t===d),children:jsx(m,{variant:"h5",sx:{color:f},children:p.label})})});return jsx(Qg$1,{children:p.disabled&&p.disabledReason?jsx(Bg$1,{title:p.disabledReason,placement:"bottom-start",slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-24]}}]}},children:u}):u},p.label)})}),jsx(Ic$1,{pl:3,pr:3,flexGrow:1,overflow:a??"auto",children:r}),jsx(Da,{activeStep:t,setActiveStep:n,steps:o,...i})]})}var Hg=wa("div")(({theme:e})=>({padding:`${e.spacing(3)} ${e.spacing(3)} 0px ${e.spacing(3)}`,borderRadius:`${e.spacing(1.25)} ${e.spacing(1.25)} 0 0`,marginBottom:"-6px",border:`solid 1px ${e.palette.ux.learning.w20}`,width:"100%",backgroundColor:e.palette.ux.learning.w10,boxSizing:"border-box"}));function lc(e){let t=ua$1(),{bannerImage:o,subtitle:n,title:r,description:a,primaryButton:i,secondaryButton:l,dataQa:s}=e,c=t.palette.ux.primary.text.w10,p=()=>{i.onClick();};return jsx(Ic$1,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center","data-qa":"emptyStateBannerWrapper",children:jsxs(Ic$1,{"data-qa":s??"emptyStateBanner",width:825,children:[o&&jsx(Hg,{children:o}),jsx(it,{spacing:3,children:jsx(Ic$1,{boxSizing:"border-box",padding:5,height:261,borderRadius:2.5,display:"flex",justifyContent:"space-between",sx:{background:`radial-gradient(75.04% 70.41% at 20.32% 70.41%, ${t.palette.ux.learning.wMain} 0%, ${t.palette.ux.learning.w100} 100%)`},children:jsxs(Ic$1,{children:[jsx(m,{variant:"caption",fontWeight:600,sx:{color:t.palette.ux.brand.w30},children:n}),jsxs(it,{children:[jsx(m,{variant:"h2",width:600,sx:{fontSize:"1.5rem",color:c},children:r}),jsx(m,{width:"100%",sx:{color:c},children:a})]}),jsxs(it,{direction:"row",alignItems:"center",paddingTop:t.spacing(3),spacing:1.5,children:[jsx(lr,{variant:"call-to-action",onClick:p,dataQa:i?.dataQa??"emptyStateBannerPrimaryButton",children:i.label}),l&&jsx(lr,{variant:"dark-call-to-action",dataQa:l.dataQa??"emptyStateBannerSecondaryButton",onClick:()=>l.onClick(),children:l.label})]})]})})})]})})}var Fg=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),width:"100%",boxSizing:"border-box"})),_g=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),Vg=wa("div")(()=>({display:"flex",alignSelf:"flex-start",justifyContent:"center",alignItems:"center"})),zg=wa("div")(()=>({flex:1,display:"flex",flexDirection:"column"})),Xg=wa("div")(({theme:e})=>({display:"flex",alignSelf:"flex-start",alignItems:"center",marginTop:e.spacing(-0.5)}));function Gg({icon:e,title:t,subTitle:o,actionElements:n=null,dataQa:r,dataTags:a}){return jsxs(Fg,{"data-qa":r,"data-tags":a,children:[jsxs(_g,{children:[e&&jsx(Vg,{children:e}),t&&jsxs(zg,{children:[jsx(m,{variant:"h3",className:"solaceCardTitle",children:t}),o&&jsx(m,{variant:"body1",children:o})]})]}),n&&jsx(Xg,{children:n})]})}var Na=Gg;function qg({cardHeaderProps:e,cardContent:t,cardActions:o,width:n,height:r,minWidth:a="250px",padding:i,readOnly:l=false,ariaLabel:s,dataQa:c,dataTags:p,isSelected:d=false,showBorderOnSelect:f=false,onClick:u}){let m=ua$1(),[g,x]=useState(d);useEffect(()=>{x(d);},[d]);let b=useCallback(C=>{!l&&u&&(u(C,!g),x(!g));},[g,u,l]);return jsxs(Wc$1,{className:`solaceCard ${l?"readOnly":""} ${g?"selected":""}`,sx:{width:n,height:r,minWidth:a,padding:i??m.spacing(2),...f&&g&&{border:`1px solid ${m.palette.ux.brand.wMain}`}},"data-qa":c,"data-tags":p,"aria-label":s,role:"article",onClick:l?void 0:b,children:[e&&jsx(Na,{...e}),t&&jsx(dd,{sx:{"&.MuiCardContent-root:last-child":{paddingBottom:m.spacing(0)},padding:m.spacing(0)},children:t}),o&&jsx(ad$1,{sx:{padding:m.spacing(0)},children:o})]})}var Zg=qg;var Kg=()=>jsx(Na$1,{width:"24",height:"24",viewBox:"0 0 24 24",children:jsx("path",{fill:"currentColor",d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"})});var Qg=({fill:e="#7ED321"})=>jsx(Na$1,{sx:{width:"20",height:"20",fill:"none"},viewBox:"0 0 20 20",children:jsx("path",{d:"M11.6951 0.140109C4.85411 -0.984891 -0.984891 4.85411 0.140109 11.6951C0.821109 15.8381 4.16311 19.1801 8.30611 19.8611C15.1471 20.9861 20.9861 15.1471 19.8611 8.30611C19.1791 4.16211 15.8381 0.821109 11.6951 0.140109ZM11.5681 17.8501C5.94311 18.9261 1.07411 14.0571 2.15011 8.43211C2.75111 5.28711 5.28711 2.75111 8.43211 2.15011C14.0571 1.07411 18.9261 5.94311 17.8501 11.5681C17.2481 14.7131 14.7131 17.2481 11.5681 17.8501ZM14.0651 6.10511L8.00011 12.1701L5.92211 10.1011C5.76811 9.94711 5.51811 9.94711 5.36411 10.1021L4.51811 10.9481C4.36011 11.1061 4.36011 11.3611 4.51811 11.5191L7.71411 14.8931C7.87211 15.0511 8.12711 15.0511 8.28511 14.8931L15.4761 7.52511C15.6321 7.36911 15.6331 7.11511 15.4771 6.95811L14.6331 6.10811C14.4771 5.94911 14.2221 5.94811 14.0651 6.10511Z",fill:e})}),jg=Qg;var eh=(r=>(r.Auto="auto",r.Hidden="hidden",r.Scroll="scroll",r.Visible="visible",r))(eh||{});var th=(o=>(o.horizontal="horizontal",o.vertical="vertical",o))(th||{});var uc=(o=>(o.TOP_OF_TABS="topOfTabs",o.LEFT_OF_TABS="leftOfTabs",o))(uc||{});var fc=b(pc()),To={maxFilesErrorMessage:"Maximum files allowed is ",maxSizeErrorMessage:"Maximum fileSize allowed is ",minSizeErrorMessage:"Minimum fileSize allowed is ",defaultSize:"0 kb",sizeInKb:" kb",sizeInMb:" mb"};function oh(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function nh(e){return /^.*\.[\w]+$/.test(e)}function mc(e){return Object.values(e).reduce((t,o)=>t.concat(o),[]).filter(t=>oh(t)||nh(t)).join(",")}var _a=(e,t,o,n,r)=>{if(e!==0&&o.length>e)return To.maxFilesErrorMessage+e;let a=null;return o.some(i=>n&&i.size>n?(a=To.maxSizeErrorMessage+dc(n),true):i.size<t?(a=To.minSizeErrorMessage+dc(t),true):r&&r.length>0&&!(0, fc.default)(i,r)?(a="File type not supported",true):false),a};function dc(e){let t=To.defaultSize;if(!e)return t;let o=e/1024;return o>1024?`${(o/1024).toFixed(2)}${To.sizeInMb}`:`${o.toFixed(2)}${To.sizeInKb}`}var rh=()=>jsx(Na$1,{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",sx:{opacity:.5},children:jsx("path",{d:"M11.15 17C10.9291 17 10.75 16.8209 10.75 16.6V6.81253L7.78785 9.77468C7.6297 9.93283 7.3726 9.93057 7.21725 9.76967L6.02301 8.53278C5.87146 8.37582 5.87365 8.12638 6.02792 7.9721L11.7172 2.28287C11.8734 2.12666 12.1266 2.12666 12.2828 2.28287L17.9721 7.9721C18.1264 8.12638 18.1285 8.37582 17.977 8.53278L16.7828 9.76967C16.6274 9.93057 16.3703 9.93283 16.2122 9.77468L13.25 6.81253V16.6C13.25 16.8209 13.0709 17 12.85 17H11.15ZM4.5 22C3.8125 22 3.22396 21.7552 2.73438 21.2656C2.24479 20.7761 2 20.1875 2 19.5V16.15C2 15.9291 2.17909 15.75 2.4 15.75H4.1C4.32091 15.75 4.5 15.9291 4.5 16.15V19.5H19.5V16.15C19.5 15.9291 19.6791 15.75 19.9 15.75H21.6C21.8209 15.75 22 15.9291 22 16.15V19.5C22 20.1875 21.7552 20.7761 21.2656 21.2656C20.776 21.7552 20.1875 22 19.5 22H4.5Z",fill:"black"})}),hc=rh;var lh=ih("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});function xc(e){let{maxFiles:t=1,readOnly:o=false,fileNames:n=[],onFileChange:r,label:a="Drag and drop file here",errorText:i,dataQa:l,id:s,minSize:c=0,maxSize:p,accept:d}=e,f=ua$1(),[u,m$1]=useState(false),[g,x]=useState(n??[]),[b,C]=useState(""),S=useMemo(()=>{if(d)return mc(d)},[d]),v=E=>jsx(Ic$1,{borderRadius:"4px",width:"125px",height:"1px",bgcolor:f.palette.ux.secondary.w40,mr:E==="left"?1:void 0,ml:E==="right"?1:void 0}),P=E=>{E.stopPropagation(),E.preventDefault(),u||m$1(true);},R=E=>{E.stopPropagation(),E.preventDefault(),m$1(false),b&&C("");let h=[];if(E.dataTransfer.items&&Array.from(E.dataTransfer.items).forEach(T=>{if(T.kind==="file"){let w=T.getAsFile();w&&h.push(w);}}),h.length>0){let T=_a(t,c,h,p,S);T!==null?C(T):(x([...g,...h]),r&&r([...g,...h]));}},I=E=>{if(E.target.files===null)return;b&&C("");let h=E?.target?.files[0],T=_a(t,c,[h],p,S);T!==null?C(T):(x([...g,h]),r&&r([...g,h]));},M=(E,h)=>jsxs(Ic$1,{border:`1px solid ${f.palette.ux.secondary.w20}`,display:"flex",alignItems:"center",justifyContent:"space-between",height:"48px",role:"listitem","data-qa":`solaceFileUploaderFileName-${h}`,paddingLeft:2,paddingRight:1,children:[jsx(m,{variant:"h5",children:typeof E=="string"?E:E.name}),!o&&jsx(b$2,{variant:"icon",onClick:()=>{let T=g.filter((w,z)=>z!==h);x(T),r&&r(T);},title:"Remove",children:jsx(Te,{})})]},h);return jsxs(Fragment,{children:[g.length<t&&!o&&jsxs(Ic$1,{onDragEnter:P,onDragOver:P,onDrop:R,onDragLeave:()=>m$1(false),height:"139px",sx:[E=>({border:u?`1px solid ${E.palette.ux.brand.wMain}`:`1px dashed ${E.palette.ux.secondary.w40}`})],alignContent:"center",id:"solaceFileUploaderWrapper","data-qa":l,role:"dropzone",children:[u&&jsx(m,{variant:"body1",textAlign:"center",children:"Drop file here"}),!u&&jsxs(it,{alignItems:"center",spacing:2,children:[jsxs(Ic$1,{display:"flex",alignItems:"center",children:[jsx(hc,{}),jsx(m,{variant:"body1",sx:{color:f.palette.ux.secondary.text.wMain,marginLeft:f.spacing()},children:a})]}),jsxs(Ic$1,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",children:[v("left"),jsx(m,{sx:{color:f.palette.ux.secondary.text.wMain},variant:"body1",children:"OR"}),v("right")]}),jsxs(Qc$1,{component:"label",role:void 0,variant:"text",tabIndex:-1,children:["Upload File",jsx(lh,{type:"file",onChange:I})]})]})]}),g.length>0&&jsx(it,{mt:t>1?2:0,children:g.map((E,h)=>M(E,h))}),(i||b)&&jsx(e$1,{dataQa:"solaceFileUploaderError",children:i||b})]})}var ch=wa("div")(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),uh=wa("div")(()=>({display:"flex",button:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%","&.MuiLink-root:hover":{backgroundColor:"inherit"}},a:{overflow:"hidden",maxWidth:"100%",span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"}}}));function ph({id:e,text:t,onClick:o,dataQa:n,href:r}){return jsxs(Fragment,{children:[(r||o)&&jsx(uh,{"data-qa":`${e}-link`,children:jsx(b$2,{variant:"link",href:!o&&r?r:void 0,onClick:!r&&o?o:void 0,dense:true,dataQa:n,children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})})},`${e}-link`),!o&&!r&&jsx(ch,{"data-qa":`${e}-text`,className:"textWrapper",children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})},`${e}-text`)]})}var dh=ph;var za=wa("div",{shouldForwardProp:e=>e!=="bgColor"&&e!=="fgColor"})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
29
29
  align-items: center;
30
30
  background-color: ${t};
31
31
  border-color: ${t?.toUpperCase()==="#FFFFFF"?e.palette.ux.secondary.w100:"transparent"};
@@ -175,9 +175,9 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
175
175
  column-gap: ${e.spacing(1)};
176
176
  display: flex;
177
177
  justify-content: end;
178
- white-space: nowrap;`);function Ec({id:e,title:t,subTitle:o,release:n,environment:r,borderTop:a,breadcrumbs:i,actions:l,actionMenu:s,tabs:c,iconTabs:u,returnTo:d,dataQa:f,dataTags:p,titleLocation:m="leftOfTabs"}){let g=x=>`${e??"default"}${x?"-".concat(x):""}`,C=jsx(_h,{titleLocation:m,children:m==="leftOfTabs"?jsxs(Fragment,{children:[jsx(Tc,{id:g("title"),"data-qa":"solace-header-title",hasTabs:!!c,children:jsx(b$1,{title:t,variant:"overflow",children:jsxs(Fragment,{children:[t,o?":":""]})})}),o&&jsx(Vh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",hasTabs:!!c,children:jsx(b$1,{title:o,variant:"overflow",children:o})})]}):jsxs(zh,{id:g("title"),"data-qa":"solace-header-title",children:[t,o&&jsxs(Xh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",children:[": ",o]})]})});return jsxs(Oh,{id:g(),"data-qa":f,"data-tags":p,borderTop:a,children:[jsxs(Dh,{children:[r,d,(r||d)&&(n||i)&&jsx(Nh,{}),n&&jsx(fr,{text:n},"releaseTag"),Array.isArray(i)?jsx(Ia,{id:g("breadcrumbs"),paths:i}):ue.isValidElement(i)&&i]}),m==="topOfTabs"&&C,jsxs(Hh,{titleLocation:m,children:[u&&jsx(Fh,{titleLocation:m,children:u}),m==="leftOfTabs"&&C,c&&jsx(Gh,{children:c}),(l||s)&&jsxs(Wh,{id:g("actions"),children:[l,s]})]})]})}var oe=b(y());function Rc(e){let{rootElementName:t="",componentName:o}=e,[n,r]=ue.useState(t.toUpperCase());process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{t&&n!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${o?`the ${o} component`:"a component"} expected the '${t}' element, but a '${n.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app");},[t,n,o]);let a=ue.useCallback(i=>{r(i?.tagName??"");},[]);return [n,a]}function rn(e={}){let{disabled:t=false,focusableWhenDisabled:o,href:n,rootRef:r,tabIndex:a,to:i,type:l,rootElementName:s}=e,c=ue.useRef(null),[u,d]=ue.useState(false),[f,p]=ue.useState(false);t&&!o&&f&&p(false);let[m,g]=Rc({rootElementName:s??(n||i?"a":void 0),componentName:"Button"}),C=T=>w=>{f&&w.preventDefault(),T.onMouseLeave?.(w);},x=T=>w=>{Y(w.target)||p(false),T.onBlur?.(w);},S=T=>w=>{c.current||(c.current=w.currentTarget),Y(w.target)&&(p(true),T.onFocusVisible?.(w)),T.onFocus?.(w);},b=()=>{let T=c.current;return m==="BUTTON"||m==="INPUT"&&["button","submit","reset"].includes(T?.type)||m==="A"&&T?.href},v=T=>w=>{t||T.onClick?.(w);},P=T=>w=>{t||(d(true),document.addEventListener("mouseup",()=>{d(false);},{once:true})),T.onMouseDown?.(w);},R=T=>w=>{T.onKeyDown?.(w),!w.defaultMuiPrevented&&(w.target===w.currentTarget&&!b()&&w.key===" "&&w.preventDefault(),w.target===w.currentTarget&&w.key===" "&&!t&&d(true),w.target===w.currentTarget&&!b()&&w.key==="Enter"&&!t&&(T.onClick?.(w),w.preventDefault()));},I=T=>w=>{w.target===w.currentTarget&&d(false),T.onKeyUp?.(w),w.target===w.currentTarget&&!b()&&!t&&w.key===" "&&!w.defaultMuiPrevented&&T.onClick?.(w);},M=X(g,r,c),E={};return a!==void 0&&(E.tabIndex=a),m==="BUTTON"?(E.type=l??"button",o?E["aria-disabled"]=t:E.disabled=t):m==="INPUT"?l&&["button","submit","reset"].includes(l)&&(o?E["aria-disabled"]=t:E.disabled=t):m!==""&&(!n&&!i&&(E.role="button",E.tabIndex=a??0),t&&(E["aria-disabled"]=t,E.tabIndex=o?a??0:-1)),{getRootProps:(T={})=>{let w={...$(e),...$(T)},z={type:l,...w,...E,...T,onBlur:x(w),onClick:v(w),onFocus:S(w),onKeyDown:R(w),onKeyUp:I(w),onMouseDown:P(w),onMouseLeave:C(w),ref:M};return delete z.onFocusVisible,z},focusVisible:f,setFocusVisible:p,active:u,rootRef:M}}var Ro={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};var le={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Jh(e,t,o,n,r,a){if(o.length===0||!n&&o.every((l,s)=>r(l,s)))return -1;let i=e;for(;;){if(!a&&t==="next"&&i===o.length||!a&&t==="previous"&&i===-1)return -1;if(n?false:r(o[i],i))i+=t==="next"?1:-1,a&&(i=(i+o.length)%o.length);else return i}}function Ce(e,t,o){let{items:n,isItemDisabled:r,disableListWrap:a,disabledItemsFocusable:i,itemComparer:l,focusManagement:s}=o,c=s==="DOM"?0:-1,u=n.length-1,d=e==null?-1:n.findIndex(C=>l(C,e)),f,p,m=!a;switch(t){case "reset":if(c===-1)return null;f=0,p="next",m=false;break;case "start":f=0,p="next",m=false;break;case "end":f=u,p="previous",m=false;break;default:{let C=d+t;C<0?!m&&d!==-1||Math.abs(t)>1?(f=0,p="next"):(f=u,p="previous"):C>u?!m||Math.abs(t)>1?(f=u,p="previous"):(f=0,p="next"):(f=C,p=t>=0?"next":"previous");}}let g=Jh(f,p,n,i,r,m);return g===-1&&e!==null&&!r(e,d)?e:n[g]??null}function Uh(e,t,o,n){return o==="none"?[]:o==="single"?n(t[0],e)?t:[e]:t.some(r=>n(r,e))?t.filter(r=>!n(r,e)):[...t,e]}function gr(e,t,o){let{itemComparer:n,isItemDisabled:r,selectionMode:a,items:i}=o,{selectedValues:l}=t,s=i.findIndex(u=>n(e,u));if(r(e,s))return t;let c=Uh(e,l,a,n);return {...t,selectedValues:c,highlightedValue:e}}function qh(e,t,o){let n=t.highlightedValue,{orientation:r,pageSize:a}=o;switch(e){case "Home":return {...t,highlightedValue:Ce(n,"start",o)};case "End":return {...t,highlightedValue:Ce(n,"end",o)};case "PageUp":return {...t,highlightedValue:Ce(n,-a,o)};case "PageDown":return {...t,highlightedValue:Ce(n,a,o)};case "ArrowUp":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,-1,o)};case "ArrowDown":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,1,o)};case "ArrowLeft":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?-1:1,o)}}case "ArrowRight":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?1:-1,o)}}case "Enter":case " ":return t.highlightedValue===null?t:gr(t.highlightedValue,t,o);}return t}function Zh(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function Yh(e,t,o){let n=o(e)?.trim().toLowerCase();return !n||n.length===0?false:n.startsWith(t)}function Kh(e,t,o){let{items:n,isItemDisabled:r,disabledItemsFocusable:a,getItemAsString:i}=o,l=t.length>1,s=l?e.highlightedValue:Ce(e.highlightedValue,1,o);for(let c=0;c<n.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(Yh(s,t,i)&&(!r(s,n.indexOf(s))||a))return {...e,highlightedValue:s};s=Ce(s,1,o);}return e}function Qh(e,t,o,n){let{itemComparer:r,focusManagement:a}=n,i=null;o.highlightedValue!=null?i=e.find(c=>r(c,o.highlightedValue))??null:a==="DOM"&&t.length===0&&(i=Ce(null,"reset",n));let s=(o.selectedValues??[]).filter(c=>e.some(u=>r(u,c)));return {...o,highlightedValue:i,selectedValues:s}}function jh(e,t){return {...e,highlightedValue:Ce(null,"reset",t)}}function ex(e,t){return {...e,highlightedValue:Ce(null,"end",t)}}function tx(e,t){return {...e,selectedValues:[],highlightedValue:Ce(null,"reset",t)}}function hr(e,t){let{type:o,context:n}=t;switch(o){case le.keyDown:return qh(t.key,e,n);case le.itemClick:return gr(t.item,e,n);case le.blur:return Zh(e,n);case le.textNavigation:return Kh(e,t.searchString,n);case le.itemsChange:return Qh(t.items,t.previousItems,e,n);case le.resetHighlight:return jh(e,n);case le.highlightLast:return ex(e,n);case le.clearSelection:return tx(e,n);default:return e}}function ox(e,t){return e===t}var Xa={},Pc=()=>{};function Ga(e,t){let o={...e};return Object.keys(t).forEach(n=>{t[n]!==void 0&&(o[n]=t[n]);}),o}function nx(e){let{nextState:t,initialState:o,stateComparers:n,onStateChange:r,controlledProps:a,lastActionRef:i}=e,l=ue.useRef(o);ue.useEffect(()=>{if(i.current===null)return;let s=Ga(l.current,a);Object.keys(t).forEach(c=>{let u=n[c]??ox,d=t[c],f=s[c];(f==null&&d!=null||f!=null&&d==null||f!=null&&d!=null&&!u(d,f))&&r?.(i.current.event??null,c,d,i.current.type??"",t);}),l.current=t,i.current=null;},[l,t,i,r,n,a]);}function Ic(e){let t=ue.useRef(null),{reducer:o,initialState:n,controlledProps:r=Xa,stateComparers:a=Xa,onStateChange:i=Pc,actionContext:l,componentName:s=""}=e,c=ue.useRef(r);process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{Object.keys(r).forEach(m=>{c.current[m]!==void 0&&r[m]===void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing a controlled prop to be uncontrolled: ${m}`),c.current[m]===void 0&&r[m]!==void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing an uncontrolled prop to be controlled: ${m}`);});},[r,s]);let u=ue.useCallback((m,g)=>{t.current=g;let C=Ga(m,r);return o(C,g)},[r,o]),[d,f]=ue.useReducer(u,n),p=ue.useCallback(m=>{f({...m,context:l});},[l]);return nx({nextState:d,initialState:n,stateComparers:a??Xa,onStateChange:i??Pc,controlledProps:r,lastActionRef:t}),[Ga(d,r),p]}function Wa(e,t,o=(n,r)=>n===r){return e.length===t.length&&e.every((n,r)=>o(n,t[r]))}var rx=500;function Lc(e){let t=ue.useRef({searchString:"",lastTime:null});return ue.useCallback(o=>{if(o.key.length===1&&o.key!==" "){let n=t.current,r=o.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>rx?n.searchString=r:(n.searchString.length!==1||r!==n.searchString)&&(n.searchString+=r),n.lastTime=a,e(n.searchString,o);}},[e])}var Mc={},ax=()=>{},ix=(e,t)=>e===t,lx=()=>false,sx=e=>typeof e=="string"?e:String(e),cx=()=>({highlightedValue:null,selectedValues:[]});function Ja(e){let{controlledProps:t=Mc,disabledItemsFocusable:o=false,disableListWrap:n=false,focusManagement:r="activeDescendant",getInitialState:a=cx,getItemDomElement:i,getItemId:l,isItemDisabled:s=lx,rootRef:c,onStateChange:u=ax,items:d,itemComparer:f=ix,getItemAsString:p=sx,onChange:m,onHighlightChange:g,onItemsChange:C,orientation:x="vertical",pageSize:S=5,reducerActionContext:b=Mc,selectionMode:v="single",stateReducer:P,componentName:R="useList"}=e;if(process.env.NODE_ENV!=="production"){if(r==="DOM"&&i==null)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if(r==="activeDescendant"&&l==null)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}let I=ue.useRef(null),M=X(c,I),E=ue.useCallback((j,B,q)=>{g?.(j,B,q),r==="DOM"&&B!=null&&(q===le.itemClick||q===le.keyDown||q===le.textNavigation)&&i?.(B)?.focus();},[i,g,r]),h=ue.useMemo(()=>({highlightedValue:f,selectedValues:(j,B)=>Wa(j,B,f)}),[f]),T=ue.useCallback((j,B,q,k,J)=>{switch(u?.(j,B,q,k,J),B){case "highlightedValue":E(j,q,k);break;case "selectedValues":m?.(j,q,k);break;}},[E,m,u]),w=ue.useMemo(()=>({disabledItemsFocusable:o,disableListWrap:n,focusManagement:r,isItemDisabled:s,itemComparer:f,items:d,getItemAsString:p,onHighlightChange:E,orientation:x,pageSize:S,selectionMode:v,stateComparers:h}),[o,n,r,s,f,d,p,E,x,S,v,h]),z=a(),O=P??hr,H=ue.useMemo(()=>({...b,...w}),[b,w]),[A,W]=Ic({reducer:O,actionContext:H,initialState:z,controlledProps:t,stateComparers:h,onStateChange:T,componentName:R}),{highlightedValue:D,selectedValues:L}=A,Y=Lc((j,B)=>W({type:le.textNavigation,event:B,searchString:j})),K=ue.useRef([]);ue.useEffect(()=>{Wa(K.current,d,f)||(W({type:le.itemsChange,event:null,items:d,previousItems:K.current}),K.current=d,C?.(d));},[d,f,W,C]);let N=j=>B=>{if(j.onKeyDown?.(B),B.defaultMuiPrevented)return;let q=["Home","End","PageUp","PageDown"];x==="vertical"?q.push("ArrowUp","ArrowDown"):q.push("ArrowLeft","ArrowRight"),r==="activeDescendant"&&q.push(" ","Enter"),q.includes(B.key)&&B.preventDefault(),W({type:le.keyDown,key:B.key,event:B}),Y(B);},re=j=>B=>{j.onBlur?.(B),!B.defaultMuiPrevented&&(I.current?.contains(B.relatedTarget)||W({type:le.blur,event:B}));},ye=(j={})=>{let B=$(j);return {...j,"aria-activedescendant":r==="activeDescendant"&&D!=null?l(D):void 0,tabIndex:r==="DOM"?-1:0,ref:M,...B,onBlur:re(B),onKeyDown:N(B)}},he=ue.useCallback(j=>{let B=(L??[]).some(J=>J!=null&&f(j,J)),q=D!=null&&f(j,D);return {focusable:r==="DOM",highlighted:q,selected:B}},[f,L,D,r]),be=ue.useMemo(()=>({dispatch:W,getItemState:he}),[W,he]);return ue.useDebugValue({state:A}),{contextValue:be,dispatch:W,getRootProps:ye,rootRef:M,state:A}}var st=ue.createContext(null);process.env.NODE_ENV!=="production"&&(st.displayName="ListContext");function Ua(e){let{handlePointerOverEvents:t=false,item:o}=e,n=ue.useContext(st);if(!n)throw new Error("useListItem must be used within a ListProvider");let{dispatch:r,getItemState:a}=n,{highlighted:i,selected:l,focusable:s}=a(o),c=ue.useCallback(p=>m=>{if(p.onClick?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
179
- `));r({type:le.itemClick,item:o,event:m});}},[r,o]),u=ue.useCallback(p=>m=>{if(p.onMouseOver?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
180
- `));r({type:le.itemHover,item:o,event:m});}},[r,o]),d;return s&&(d=i?0:-1),{getRootProps:(p={})=>{let m=$(p);return {...p,onClick:c(m),onPointerOver:t?u(m):void 0,tabIndex:d}},highlighted:i,selected:l}}var br=e=>{let{label:t,value:o}=e;return typeof t=="string"?t:typeof o=="string"?o:String(e)};var ln=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ln.displayName="CompoundComponentContext");function ux(e){let t=Array.from(e.keys()).map(o=>{let n=e.get(o);return {key:o,subitem:n}});return t.sort((o,n)=>{let r=o.subitem.ref.current,a=n.subitem.ref.current;return r===null||a===null||r===a?0:r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(o=>[o.key,o.subitem]))}function Ac(){let[e,t]=ue.useState(new Map),o=ue.useRef(new Set),n=ue.useCallback(function(c){o.current.delete(c),t(u=>{let d=new Map(u);return d.delete(c),d});},[]),r=ue.useCallback(function(c,u){let d;return typeof c=="function"?d=c(o.current):d=c,o.current.add(d),t(f=>{let p=new Map(f);return p.set(d,u),p}),{id:d,deregister:()=>n(d)}},[n]),a=ue.useMemo(()=>ux(e),[e]),i=ue.useCallback(function(c){return Array.from(a.keys()).indexOf(c)},[a]);return {contextValue:ue.useMemo(()=>({getItemIndex:i,registerItem:r,totalSubitemCount:e.size}),[i,r,e.size]),subitems:a}}function Bc(e,t){let o=ue.useContext(ln);if(o===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=o,[r,a]=ue.useState(typeof e=="function"?void 0:e);return H(()=>{let{id:i,deregister:l}=n(e,t);return a(i),l},[n,t,e]),{id:r,index:r!==void 0?o.getItemIndex(r):-1,totalItemCount:o.totalSubitemCount}}function Oc(e,t){let{open:o}=e,{context:{selectionMode:n}}=t;if(t.type===Ro.buttonClick){let a=e.selectedValues[0]??Ce(null,"start",t.context);return {...e,open:!o,highlightedValue:o?null:a}}if(t.type===Ro.browserAutoFill)return gr(t.item,e,t.context);let r=hr(e,t);switch(t.type){case le.keyDown:if(e.open){if(t.event.key==="Escape")return {...r,open:false}}else {if(t.event.key==="ArrowDown")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"start",t.context)};if(t.event.key==="ArrowUp")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"end",t.context)}}break;case le.itemClick:if(n==="single")return {...r,open:false};break;case le.blur:return {...r,open:false};default:return r}return r}function Po(e,t){return function(n={}){let r={...n,...e(n)};return {...r,...t(r)}}}function px(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function qa(e){let{areOptionsEqual:t,buttonRef:o,defaultOpen:n=false,defaultValue:r,disabled:a=false,listboxId:i,listboxRef:l,multiple:s=false,name:c,required:u,onChange:d,onHighlightChange:f,onOpenChange:p,open:m,options:g,getOptionAsString:C=br,getSerializedValue:x=px,value:S,componentName:b="useSelect"}=e,v=ue.useRef(null),P=X(o,v),R=ue.useRef(null),I=W(i),M;S===void 0&&r===void 0?M=[]:r!==void 0&&(s?M=r:M=r==null?[]:[r]);let E=ue.useMemo(()=>{if(S!==void 0)return s?S:S==null?[]:[S]},[S,s]),{subitems:h,contextValue:T}=Ac(),w=ue.useMemo(()=>g!=null?new Map(g.map((G,Z)=>[G.value,{value:G.value,label:G.label,disabled:G.disabled,ref:ue.createRef(),id:`${I}_${Z}`}])):h,[g,h,I]),z=X(l,R),{getRootProps:O,active:H$1,focusVisible:A,rootRef:W$1}=rn({disabled:a,rootRef:P}),D=ue.useMemo(()=>Array.from(w.keys()),[w]),L=ue.useCallback(G=>{if(t!==void 0){let Z=D.find(pe=>t(pe,G));return w.get(Z)}return w.get(G)},[w,t,D]),Y=ue.useCallback(G=>L(G)?.disabled??false,[L]),K=ue.useCallback(G=>{let Z=L(G);return Z?C(Z):""},[L,C]),N=ue.useMemo(()=>({selectedValues:E,open:m}),[E,m]),re=ue.useCallback(G=>w.get(G)?.id,[w]),ye=ue.useCallback((G,Z)=>{s?d?.(G,Z):d?.(G,Z[0]??null);},[s,d]),he=ue.useCallback((G,Z)=>{f?.(G,Z??null);},[f]),be=ue.useCallback((G,Z,pe)=>{Z==="open"&&(p?.(pe),pe===false&&G?.type!=="blur"&&v.current?.focus());},[p]),j=ue.useCallback(G=>G==null?null:h.get(G)?.ref.current??null,[h]),B={getInitialState:()=>({highlightedValue:null,selectedValues:M??[],open:n}),getItemId:re,controlledProps:N,focusManagement:"DOM",getItemDomElement:j,itemComparer:t,isItemDisabled:Y,rootRef:z,onChange:ye,onHighlightChange:he,onStateChange:be,reducerActionContext:ue.useMemo(()=>({multiple:s}),[s]),items:D,getItemAsString:K,selectionMode:s?"multiple":"single",stateReducer:Oc,componentName:b},{dispatch:q,getRootProps:k,contextValue:J,state:{open:V,highlightedValue:F,selectedValues:Q},rootRef:Ge}=Ja(B),no=ue.useRef(V);H(()=>{if(V&&F!==null){let G=L(F)?.ref;if(!R.current||!G?.current)return;no.current||G.current.focus({preventScroll:true});let Z=R.current.getBoundingClientRect(),pe=G.current.getBoundingClientRect();pe.top<Z.top?R.current.scrollTop-=Z.top-pe.top:pe.bottom>Z.bottom&&(R.current.scrollTop+=pe.bottom-Z.bottom);}},[V,F,L]);let mt=ue.useCallback(G=>L(G),[L]),bn=G=>Z=>{if(G?.onClick?.(Z),!Z.defaultMuiPrevented){let pe={type:Ro.buttonClick,event:Z};q(pe);}},Nr=G=>Z=>{G.onKeyDown?.(Z),!Z.defaultMuiPrevented&&(Z.key==="ArrowDown"||Z.key==="ArrowUp")&&(Z.preventDefault(),q({type:le.keyDown,key:Z.key,event:Z}));},Hr=(G={})=>({onClick:bn(G),onKeyDown:Nr(G)}),Sn=(G={})=>({...G,...Hr(G),role:"combobox","aria-expanded":V,"aria-controls":I}),At=(G={})=>{let Z=$(G),pe=Po(Sn,O);return {...G,...pe(Z)}},gt=G=>Z=>{G.onBlur?.(Z),!Z.defaultMuiPrevented&&(R.current?.contains(Z.relatedTarget)||Z.relatedTarget===v.current)&&(Z.defaultMuiPrevented=true);},Bt=(G={})=>({onBlur:gt(G)}),Do=(G={})=>{let Z=$(G),pe=Po(Bt,k);return {id:I,role:"listbox","aria-multiselectable":s?"true":void 0,...G,...pe(Z)}};ue.useDebugValue({selectedOptions:Q,highlightedOption:F,open:V});let Cn=ue.useMemo(()=>({...J,...T}),[J,T]),ht;e.multiple?ht=Q:ht=Q.length>0?Q[0]:null;let xt;s?xt=ht.map(G=>mt(G)).filter(G=>G!==void 0):xt=mt(ht)??null;let $o=G=>Z=>{if(G?.onChange?.(Z),Z.defaultMuiPrevented)return;let pe=w.get(Z.target.value);Z.target.value===""?q({type:le.clearSelection}):pe!==void 0&&q({type:Ro.browserAutoFill,item:pe.value,event:Z});};return {buttonActive:H$1,buttonFocusVisible:A,buttonRef:W$1,contextValue:Cn,disabled:a,dispatch:q,getButtonProps:At,getHiddenInputProps:(G={})=>{let Z$1=$(G);return {name:c,tabIndex:-1,"aria-hidden":true,required:u?true:void 0,value:x(xt),style:Z,...G,onChange:$o(Z$1)}},getListboxProps:Do,getOptionMetadata:mt,listboxRef:Ge,open:V,options:D,value:ht,highlightedOption:F}}function $c(e){let{value:t,children:o}=e,{dispatch:n,getItemIndex:r,getItemState:a,registerItem:i,totalSubitemCount:l}=t,s=ue.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:r}),[n,r,a]),c=ue.useMemo(()=>({getItemIndex:r,registerItem:i,totalSubitemCount:l}),[i,r,l]);return jsx(ln.Provider,{value:c,children:jsx(st.Provider,{value:s,children:o})})}var dx={disableDefaultClasses:false},Nc=ue.createContext(dx);process.env.NODE_ENV!=="production"&&(Nc.displayName="ClassNameConfiguratorContext");function Io(e){let{disableDefaultClasses:t}=ue.useContext(Nc);return o=>t?"":e(o)}var ne=b(y());var Lo=Math.min,ct=Math.max,un=Math.round,pn=Math.floor,qe=e=>({x:e,y:e}),fx={left:"right",right:"left",bottom:"top",top:"bottom"},mx={start:"end",end:"start"};function Ya(e,t,o){return ct(e,Lo(t,o))}function dn(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function fn(e){return e.split("-")[1]}function Ka(e){return e==="x"?"y":"x"}function Qa(e){return e==="y"?"height":"width"}var gx=new Set(["top","bottom"]);function ut(e){return gx.has(Mt(e))?"y":"x"}function ja(e){return Ka(ut(e))}function _c(e,t,o){o===void 0&&(o=false);let n=fn(e),r=ja(e),a=Qa(r),i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cn(i)),[i,cn(i)]}function Vc(e){let t=cn(e);return [Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>mx[t])}var Hc=["left","right"],Fc=["right","left"],hx=["top","bottom"],xx=["bottom","top"];function bx(e,t,o){switch(e){case "top":case "bottom":return o?t?Fc:Hc:t?Hc:Fc;case "left":case "right":return t?hx:xx;default:return []}}function zc(e,t,o,n){let r=fn(e),a=bx(Mt(e),o==="start",n);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(Cr)))),a}function cn(e){return e.replace(/left|right|bottom|top/g,t=>fx[t])}function Sx(e){return {top:0,right:0,bottom:0,left:0,...e}}function Xc(e){return typeof e!="number"?Sx(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){let{x:t,y:o,width:n,height:r}=e;return {width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Gc(e,t,o){let{reference:n,floating:r}=e,a=ut(t),i=ja(t),l=Qa(i),s=Mt(t),c=a==="y",u=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,f=n[l]/2-r[l]/2,p;switch(s){case "top":p={x:u,y:n.y-r.height};break;case "bottom":p={x:u,y:n.y+n.height};break;case "right":p={x:n.x+n.width,y:d};break;case "left":p={x:n.x-r.width,y:d};break;default:p={x:n.x,y:n.y};}switch(fn(t)){case "start":p[i]-=f*(o&&c?-1:1);break;case "end":p[i]+=f*(o&&c?-1:1);break}return p}async function Wc(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=false,padding:p=0}=dn(t,e),m=Xc(p),C=l[f?d==="floating"?"reference":"floating":d],x=Zt(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(C)))==null||o?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),S=d==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),v=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},P=Zt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:S,offsetParent:b,strategy:s}):S);return {top:(x.top-P.top+m.top)/v.y,bottom:(P.bottom-x.bottom+m.bottom)/v.y,left:(x.left-P.left+m.left)/v.x,right:(P.right-x.right+m.right)/v.x}}var Jc=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Gc(c,n,s),f=n,p={},m=0;for(let C=0;C<l.length;C++){var g;let{name:x,fn:S}=l[C],{x:b,y:v,data:P,reset:R}=await S({x:u,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:p,rects:c,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:Wc},elements:{reference:e,floating:t}});u=b??u,d=v??d,p={...p,[x]:{...p[x],...P}},R&&m<=50&&(m++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(c=R.rects===true?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:d}=Gc(c,f,s)),C=-1);}return {x:u,y:d,placement:f,strategy:r,middlewareData:p}};var Uc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=true,crossAxis:d=true,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=true,...C}=dn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return {};let x=Mt(r),S=ut(l),b=Mt(l)===l,v=await(s.isRTL==null?void 0:s.isRTL(c.floating)),P=f||(b||!g?[cn(l)]:Vc(l)),R=m!=="none";!f&&R&&P.push(...zc(l,g,m,v));let I=[l,...P],M=await s.detectOverflow(t,C),E=[],h=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&E.push(M[x]),d){let O=_c(r,i,v);E.push(M[O[0]],M[O[1]]);}if(h=[...h,{placement:r,overflows:E}],!E.every(O=>O<=0)){var T,w;let O=(((T=a.flip)==null?void 0:T.index)||0)+1,H=I[O];if(H&&(!(d==="alignment"?S!==ut(H):false)||h.every(D=>ut(D.placement)===S?D.overflows[0]>0:true)))return {data:{index:O,overflows:h},reset:{placement:H}};let A=(w=h.filter(W=>W.overflows[0]<=0).sort((W,D)=>W.overflows[1]-D.overflows[1])[0])==null?void 0:w.placement;if(!A)switch(p){case "bestFit":{var z;let W=(z=h.filter(D=>{if(R){let L=ut(D.placement);return L===S||L==="y"}return true}).map(D=>[D.placement,D.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((D,L)=>D[1]-L[1])[0])==null?void 0:z[0];W&&(A=W);break}case "initialPlacement":A=l;break}if(r!==A)return {reset:{placement:A}}}return {}}}};var Cx=new Set(["left","top"]);async function yx(e,t){let{placement:o,platform:n,elements:r}=e,a=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=Mt(o),l=fn(o),s=ut(o)==="y",c=Cx.has(i)?-1:1,u=a&&s?-1:1,d=dn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}var qc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:a,placement:i,middlewareData:l}=t,s=await yx(t,e);return i===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},Zc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:a}=t,{mainAxis:i=true,crossAxis:l=false,limiter:s={fn:x=>{let{x:S,y:b}=x;return {x:S,y:b}}},...c}=dn(e,t),u={x:o,y:n},d=await a.detectOverflow(t,c),f=ut(Mt(r)),p=Ka(f),m=u[p],g=u[f];if(i){let x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",b=m+d[x],v=m-d[S];m=Ya(b,m,v);}if(l){let x=f==="y"?"top":"left",S=f==="y"?"bottom":"right",b=g+d[x],v=g-d[S];g=Ya(b,g,v);}let C=s.fn({...t,[p]:m,[f]:g});return {...C,data:{x:C.x-o,y:C.y-n,enabled:{[p]:i,[f]:l}}}}}};function yr(){return typeof window<"u"}function Kt(e){return Kc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ae(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ze(e){var t;return (t=(Kc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kc(e){return yr()?e instanceof Node||e instanceof Ae(e).Node:false}function ze(e){return yr()?e instanceof Element||e instanceof Ae(e).Element:false}function Ye(e){return yr()?e instanceof HTMLElement||e instanceof Ae(e).HTMLElement:false}function Yc(e){return !yr()||typeof ShadowRoot>"u"?false:e instanceof ShadowRoot||e instanceof Ae(e).ShadowRoot}var vx=new Set(["inline","contents"]);function Mo(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Xe(e);return /auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!vx.has(r)}var wx=new Set(["table","td","th"]);function Qc(e){return wx.has(Kt(e))}var Tx=[":popover-open",":modal"];function mn(e){return Tx.some(t=>{try{return e.matches(t)}catch{return false}})}var Ex=["transform","translate","scale","rotate","perspective"],Rx=["transform","translate","scale","rotate","perspective","filter"],Px=["paint","layout","strict","content"];function vr(e){let t=wr(),o=ze(e)?Xe(e):e;return Ex.some(n=>o[n]?o[n]!=="none":false)||(o.containerType?o.containerType!=="normal":false)||!t&&(o.backdropFilter?o.backdropFilter!=="none":false)||!t&&(o.filter?o.filter!=="none":false)||Rx.some(n=>(o.willChange||"").includes(n))||Px.some(n=>(o.contain||"").includes(n))}function jc(e){let t=pt(e);for(;Ye(t)&&!Qt(t);){if(vr(t))return t;if(mn(t))return null;t=pt(t);}return null}function wr(){return typeof CSS>"u"||!CSS.supports?false:CSS.supports("-webkit-backdrop-filter","none")}var Ix=new Set(["html","body","#document"]);function Qt(e){return Ix.has(Kt(e))}function Xe(e){return Ae(e).getComputedStyle(e)}function gn(e){return ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Yc(e)&&e.host||Ze(e);return Yc(t)?t.host:t}function eu(e){let t=pt(e);return Qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Mo(t)?t:eu(t)}function Yt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=true);let r=eu(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ae(r);if(a){let l=Tr(i);return t.concat(i,i.visualViewport||[],Mo(r)?r:[],l&&o?Yt(l):[])}return t.concat(r,Yt(r,[],o))}function Tr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ru(e){let t=Xe(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=Ye(e),a=r?e.offsetWidth:o,i=r?e.offsetHeight:n,l=un(o)!==a||un(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function ti(e){return ze(e)?e:e.contextElement}function ko(e){let t=ti(e);if(!Ye(t))return qe(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:a}=ru(t),i=(a?un(o.width):o.width)/n,l=(a?un(o.height):o.height)/r;return (!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}var Lx=qe(0);function au(e){let t=Ae(e);return !wr()||!t.visualViewport?Lx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mx(e,t,o){return t===void 0&&(t=false),!o||t&&o!==Ae(e)?false:t}function jt(e,t,o,n){t===void 0&&(t=false),o===void 0&&(o=false);let r=e.getBoundingClientRect(),a=ti(e),i=qe(1);t&&(n?ze(n)&&(i=ko(n)):i=ko(e));let l=Mx(a,o,n)?au(a):qe(0),s=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(a){let f=Ae(a),p=n&&ze(n)?Ae(n):n,m=f,g=Tr(m);for(;g&&n&&p!==m;){let C=ko(g),x=g.getBoundingClientRect(),S=Xe(g),b=x.left+(g.clientLeft+parseFloat(S.paddingLeft))*C.x,v=x.top+(g.clientTop+parseFloat(S.paddingTop))*C.y;s*=C.x,c*=C.y,u*=C.x,d*=C.y,s+=b,c+=v,m=Ae(g),g=Tr(m);}}return Zt({width:u,height:d,x:s,y:c})}function Er(e,t){let o=gn(e).scrollLeft;return t?t.left+o:jt(Ze(e)).left+o}function iu(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Er(e,o),r=o.top+t.scrollTop;return {x:n,y:r}}function kx(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,a=r==="fixed",i=Ze(n),l=t?mn(t.floating):false;if(n===i||l&&a)return o;let s={scrollLeft:0,scrollTop:0},c=qe(1),u=qe(0),d=Ye(n);if((d||!d&&!a)&&((Kt(n)!=="body"||Mo(i))&&(s=gn(n)),Ye(n))){let p=jt(n);c=ko(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop;}let f=i&&!d&&!a?iu(i,s):qe(0);return {width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-s.scrollTop*c.y+u.y+f.y}}function Ax(e){return Array.from(e.getClientRects())}function Bx(e){let t=Ze(e),o=gn(e),n=e.ownerDocument.body,r=ct(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ct(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-o.scrollLeft+Er(e),l=-o.scrollTop;return Xe(n).direction==="rtl"&&(i+=ct(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:l}}var tu=25;function Ox(e,t){let o=Ae(e),n=Ze(e),r=o.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(r){a=r.width,i=r.height;let u=wr();(!u||u&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop);}let c=Er(n);if(c<=0){let u=n.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-p);m<=tu&&(a-=m);}else c<=tu&&(a+=c);return {width:a,height:i,x:l,y:s}}var Dx=new Set(["absolute","fixed"]);function $x(e,t){let o=jt(e,true,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=Ye(e)?ko(e):qe(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,s=r*a.x,c=n*a.y;return {width:i,height:l,x:s,y:c}}function ou(e,t,o){let n;if(t==="viewport")n=Ox(e,o);else if(t==="document")n=Bx(Ze(e));else if(ze(t))n=$x(t,o);else {let r=au(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height};}return Zt(n)}function lu(e,t){let o=pt(e);return o===t||!ze(o)||Qt(o)?false:Xe(o).position==="fixed"||lu(o,t)}function Nx(e,t){let o=t.get(e);if(o)return o;let n=Yt(e,[],false).filter(l=>ze(l)&&Kt(l)!=="body"),r=null,a=Xe(e).position==="fixed",i=a?pt(e):e;for(;ze(i)&&!Qt(i);){let l=Xe(i),s=vr(i);!s&&l.position==="fixed"&&(r=null),(a?!s&&!r:!s&&l.position==="static"&&!!r&&Dx.has(r.position)||Mo(i)&&!s&&lu(e,i))?n=n.filter(u=>u!==i):r=l,i=pt(i);}return t.set(e,n),n}function Hx(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,i=[...o==="clippingAncestors"?mn(t)?[]:Nx(t,this._c):[].concat(o),n],l=i[0],s=i.reduce((c,u)=>{let d=ou(t,u,r);return c.top=ct(d.top,c.top),c.right=Lo(d.right,c.right),c.bottom=Lo(d.bottom,c.bottom),c.left=ct(d.left,c.left),c},ou(t,l,r));return {width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Fx(e){let{width:t,height:o}=ru(e);return {width:t,height:o}}function _x(e,t,o){let n=Ye(t),r=Ze(t),a=o==="fixed",i=jt(e,true,a,t),l={scrollLeft:0,scrollTop:0},s=qe(0);function c(){s.x=Er(r);}if(n||!n&&!a)if((Kt(t)!=="body"||Mo(r))&&(l=gn(t)),n){let p=jt(t,true,a,t);s.x=p.x+t.clientLeft,s.y=p.y+t.clientTop;}else r&&c();a&&!n&&r&&c();let u=r&&!n&&!a?iu(r,l):qe(0),d=i.left+l.scrollLeft-s.x-u.x,f=i.top+l.scrollTop-s.y-u.y;return {x:d,y:f,width:i.width,height:i.height}}function ei(e){return Xe(e).position==="static"}function nu(e,t){if(!Ye(e)||Xe(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ze(e)===o&&(o=o.ownerDocument.body),o}function su(e,t){let o=Ae(e);if(mn(e))return o;if(!Ye(e)){let r=pt(e);for(;r&&!Qt(r);){if(ze(r)&&!ei(r))return r;r=pt(r);}return o}let n=nu(e,t);for(;n&&Qc(n)&&ei(n);)n=nu(n,t);return n&&Qt(n)&&ei(n)&&!vr(n)?o:n||jc(e)||o}var Vx=async function(e){let t=this.getOffsetParent||su,o=this.getDimensions,n=await o(e.floating);return {reference:_x(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zx(e){return Xe(e).direction==="rtl"}var cu={convertOffsetParentRelativeRectToViewportRelativeRect:kx,getDocumentElement:Ze,getClippingRect:Hx,getOffsetParent:su,getElementRects:Vx,getClientRects:Ax,getDimensions:Fx,getScale:ko,isElement:ze,isRTL:zx};function uu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xx(e,t){let o=null,n,r=Ze(e);function a(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null;}function i(l,s){l===void 0&&(l=false),s===void 0&&(s=1),a();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let m=pn(d),g=pn(r.clientWidth-(u+f)),C=pn(r.clientHeight-(d+p)),x=pn(u),b={rootMargin:-m+"px "+-g+"px "+-C+"px "+-x+"px",threshold:ct(0,Lo(1,s))||1},v=true;function P(R){let I=R[0].intersectionRatio;if(I!==s){if(!v)return i();I?i(false,I):n=setTimeout(()=>{i(false,1e-7);},1e3);}I===1&&!uu(c,e.getBoundingClientRect())&&i(),v=false;}try{o=new IntersectionObserver(P,{...b,root:r.ownerDocument});}catch{o=new IntersectionObserver(P,b);}o.observe(e);}return i(true),a}function Rr(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=true,ancestorResize:a=true,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=n,c=ti(e),u=r||a?[...c?Yt(c):[],...Yt(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",o,{passive:true}),a&&x.addEventListener("resize",o);});let d=c&&l?Xx(c,o):null,f=-1,p=null;i&&(p=new ResizeObserver(x=>{let[S]=x;S&&S.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t);})),o();}),c&&!s&&p.observe(c),p.observe(t));let m,g=s?jt(e):null;s&&C();function C(){let x=jt(e);g&&!uu(g,x)&&o(),g=x,m=requestAnimationFrame(C);}return o(),()=>{var x;u.forEach(S=>{r&&S.removeEventListener("scroll",o),a&&S.removeEventListener("resize",o);}),d?.(),(x=p)==null||x.disconnect(),p=null,s&&cancelAnimationFrame(m);}}var pu=qc;var du=Zc,fu=Uc;var oi=(e,t,o)=>{let n=new Map,r={platform:cu,...o},a={...r.platform,_c:n};return Jc(e,t,{...r,platform:a})};var Wx=typeof document<"u",Jx=function(){},Pr=Wx?useLayoutEffect:Jx;function Ir(e,t){if(e===t)return true;if(typeof e!=typeof t)return false;if(typeof e=="function"&&e.toString()===t.toString())return true;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return false;for(n=o;n--!==0;)if(!Ir(e[n],t[n]))return false;return true}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return false;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return false;for(n=o;n--!==0;){let a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!Ir(e[a],t[a]))return false}return true}return e!==e&&t!==t}function hu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mu(e,t){let o=hu(e);return Math.round(t*o)/o}function ni(e){let t=ue.useRef(e);return Pr(()=>{t.current=e;}),t}function xu(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:a,floating:i}={},transform:l=true,whileElementsMounted:s,open:c}=e,[u,d]=ue.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:false}),[f,p]=ue.useState(n);Ir(f,n)||p(n);let[m,g]=ue.useState(null),[C,x]=ue.useState(null),S=ue.useCallback(D=>{D!==R.current&&(R.current=D,g(D));},[]),b=ue.useCallback(D=>{D!==I.current&&(I.current=D,x(D));},[]),v=a||m,P=i||C,R=ue.useRef(null),I=ue.useRef(null),M=ue.useRef(u),E=s!=null,h=ni(s),T=ni(r),w=ni(c),z=ue.useCallback(()=>{if(!R.current||!I.current)return;let D={placement:t,strategy:o,middleware:f};T.current&&(D.platform=T.current),oi(R.current,I.current,D).then(L=>{let Y={...L,isPositioned:w.current!==false};O.current&&!Ir(M.current,Y)&&(M.current=Y,gu.flushSync(()=>{d(Y);}));});},[f,t,o,T,w]);Pr(()=>{c===false&&M.current.isPositioned&&(M.current.isPositioned=false,d(D=>({...D,isPositioned:false})));},[c]);let O=ue.useRef(false);Pr(()=>(O.current=true,()=>{O.current=false;}),[]),Pr(()=>{if(v&&(R.current=v),P&&(I.current=P),v&&P){if(h.current)return h.current(v,P,z);z();}},[v,P,z,h,E]);let H=ue.useMemo(()=>({reference:R,floating:I,setReference:S,setFloating:b}),[S,b]),A=ue.useMemo(()=>({reference:v,floating:P}),[v,P]),W=ue.useMemo(()=>{let D={position:o,left:0,top:0};if(!A.floating)return D;let L=mu(A.floating,u.x),Y=mu(A.floating,u.y);return l?{...D,transform:"translate("+L+"px, "+Y+"px)",...hu(A.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:L,top:Y}},[o,l,A.floating,u.x,u.y]);return ue.useMemo(()=>({...u,update:z,refs:H,elements:A,floatingStyles:W}),[u,z,H,A,W])}var ri=(e,t)=>({...pu(e),options:[e,t]}),bu=(e,t)=>({...du(e),options:[e,t]});var Su=(e,t)=>({...fu(e),options:[e,t]});var hn=b(y());function Ux(e){return typeof e=="function"?e():e}var Ao=ue.forwardRef(function(t,o){let{children:n,container:r,disablePortal:a=false}=t,[i,l]=ue.useState(null),s=X(ue.isValidElement(n)?ba(n):null,o);return H(()=>{a||l(Ux(r)||document.body);},[r,a]),H(()=>{if(i&&!a)return V(o,i),()=>{V(o,null);}},[o,i,a]),a?ue.isValidElement(n)?ue.cloneElement(n,{ref:s}):n:i&&gu.createPortal(n,i)});process.env.NODE_ENV!=="production"&&(Ao.propTypes={children:hn.default.node,container:hn.default.oneOfType([U,hn.default.func]),disablePortal:hn.default.bool});process.env.NODE_ENV!=="production"&&(Ao.propTypes=T(Ao.propTypes));var yu="base";function qx(e){return `${yu}--${e}`}function Zx(e,t){return `${yu}-${e}-${t}`}function kt(e,t){let o=E[t];return o?qx(o):Zx(e,t)}function Bo(e,t){let o={};return t.forEach(n=>{o[n]=kt(e,n);}),o}var vu="Popup";function wu(e){return kt(vu,e)}Bo(vu,["root","open"]);var ai=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ai.displayName="TransitionContext");function Eu(e){let[t,o]=ue.useState(true),n=ue.useRef(false),r=ue.useRef(0),[a,i]=ue.useState(false),l=ue.useRef(e);ue.useEffect(()=>{!e&&r.current>0&&l.current!==e&&(n.current=true,o(false)),l.current=e;},[e]);let s=ue.useCallback(()=>{n.current=false,o(true);},[]),c=ue.useCallback(()=>(r.current+=1,i(true),()=>{r.current-=1,r.current===0&&i(false);}),[]),u;return a?e?u=false:u=!n.current&&t:u=!e,{contextValue:ue.useMemo(()=>({requestedEnter:e,onExited:s,registerTransition:c,hasExited:u}),[s,e,c,u]),hasExited:u}}var ii=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ii.displayName="PopupContext");function Yx(e){let{open:t}=e;return _({root:["root",t&&"open"]},Io(wu))}function Kx(e){return typeof e=="function"?e():e}var li=ue.forwardRef(function(t,o){let{anchor:n,children:r,container:a,disablePortal:i=false,keepMounted:l=false,middleware:s,offset:c=0,open:u=false,placement:d="bottom",slotProps:f={},slots:p={},strategy:m="absolute",...g}=t,{refs:C,elements:x,floatingStyles:S,update:b,placement:v}=xu({elements:{reference:Kx(n)},open:u,middleware:s??[ri(c??0),Su(),bu()],placement:d,strategy:m,whileElementsMounted:l?void 0:Rr}),P=X(C.setFloating,o);H(()=>{if(l&&u&&x.reference&&x.floating)return Rr(x.reference,x.floating,b)},[l,u,x,b]);let R={...t,disablePortal:i,keepMounted:l,offset:ri,open:u,placement:d,finalPlacement:v,strategy:m},{contextValue:I,hasExited:M}=Eu(u),E=l&&M?"hidden":void 0,h=Yx(R),T=p?.root??"div",w=aa({elementType:T,externalSlotProps:f.root,externalForwardedProps:g,ownerState:R,className:h.root,additionalProps:{ref:P,role:"tooltip",style:{...S,visibility:E}}}),z=ue.useMemo(()=>({placement:v}),[v]);return l||!M?jsx(Ao,{disablePortal:i,container:a,children:jsx(ii.Provider,{value:z,children:jsx(ai.Provider,{value:I,children:jsx(T,{...w,children:r})})})}):null});process.env.NODE_ENV!=="production"&&(li.propTypes={anchor:ne.default.oneOfType([U,ne.default.object,ne.default.func]),children:ne.default.oneOfType([ne.default.node,ne.default.func]),container:ne.default.oneOfType([U,ne.default.func]),disablePortal:ne.default.bool,keepMounted:ne.default.bool,middleware:ne.default.arrayOf(ne.default.oneOfType([ne.default.oneOf([false]),ne.default.shape({fn:ne.default.func.isRequired,name:ne.default.string.isRequired,options:ne.default.any})])),offset:ne.default.oneOfType([ne.default.func,ne.default.number,ne.default.shape({alignmentAxis:ne.default.number,crossAxis:ne.default.number,mainAxis:ne.default.number})]),open:ne.default.bool,placement:ne.default.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),slotProps:ne.default.shape({root:ne.default.oneOfType([ne.default.func,ne.default.object])}),slots:ne.default.shape({root:ne.default.elementType}),strategy:ne.default.oneOf(["absolute","fixed"])});var Pu="Select";function Iu(e){return kt(Pu,e)}var si=Bo(Pu,["root","button","listbox","popup","active","expanded","disabled","focusVisible"]);var Lu;function jx(e){return Array.isArray(e)?jsx(ue.Fragment,{children:e.map(t=>t.label).join(", ")}):e?.label??null}function eb(e){let{active:t,disabled:o,open:n,focusVisible:r}=e;return _({root:["root",o&&"disabled",r&&"focusVisible",t&&"active",n&&"expanded"],listbox:["listbox",o&&"disabled"],popup:["popup"]},Io(Iu))}var kr=ue.forwardRef(function(t,o){let{areOptionsEqual:n,autoComplete:r,autoFocus:a,children:i,defaultValue:l,defaultListboxOpen:s=false,disabled:c,getSerializedValue:u,listboxId:d,listboxOpen:f,multiple:p=false,name:m,required:g=false,onChange:C,onListboxOpenChange:x,getOptionAsString:S=br,renderValue:b,placeholder:v,slotProps:P={},slots:R={},value:I,...M}=t,E=b??jx,[h,T]=ue.useState(false),w=ue.useRef(null),z=ue.useRef(null),O=R.root??"button",H=R.listbox??"ul",A=R.popup??"div",W=ue.useCallback(Ge=>{T(Ge!=null);},[]),D=X(o,w,W);ue.useEffect(()=>{a&&w.current.focus();},[a]);let{buttonActive:L,buttonFocusVisible:Y,contextValue:K,disabled:N,getButtonProps:re,getListboxProps:ye,getHiddenInputProps:he,getOptionMetadata:be,value:j,open:B}=qa({name:m,required:g,getSerializedValue:u,areOptionsEqual:n,buttonRef:D,defaultOpen:s,defaultValue:l,disabled:c,listboxId:d,multiple:p,open:f,onChange:C,onOpenChange:x,getOptionAsString:S,value:I,componentName:"Select"}),q={...t,active:L,defaultListboxOpen:s,disabled:N,focusVisible:Y,open:B,multiple:p,renderValue:E,value:j},k=eb(q),J=aa({elementType:O,getSlotProps:re,externalSlotProps:P.root,externalForwardedProps:M,ownerState:q,className:k.root}),V=aa({elementType:H,getSlotProps:ye,externalSlotProps:P.listbox,additionalProps:{ref:z},ownerState:q,className:k.listbox}),F=aa({elementType:A,externalSlotProps:P.popup,additionalProps:{anchor:w.current,keepMounted:true,open:B,placement:"bottom-start",role:void 0},ownerState:q,className:k.popup}),Q;return p?Q=j.map(Ge=>be(Ge)).filter(Ge=>Ge!==void 0):Q=be(j)??null,jsxs(ue.Fragment,{children:[jsx(O,{...J,children:E(Q)??v??(Lu||(Lu=jsx("span",{className:"notranslate","aria-hidden":true,children:"\u200B"})))}),h&&jsx(li,{slots:{root:A},...F,children:jsx(H,{...V,children:jsx($c,{value:K,children:i})})}),jsx("input",{...he(),autoComplete:r})]})});process.env.NODE_ENV!=="production"&&(kr.propTypes={areOptionsEqual:oe.default.func,autoComplete:oe.default.string,autoFocus:oe.default.bool,children:oe.default.node,className:oe.default.string,defaultListboxOpen:oe.default.bool,defaultValue:oe.default.any,disabled:oe.default.bool,getOptionAsString:oe.default.func,getSerializedValue:oe.default.func,listboxId:oe.default.string,listboxOpen:oe.default.bool,multiple:oe.default.bool,name:oe.default.string,onChange:oe.default.func,onListboxOpenChange:oe.default.func,placeholder:oe.default.node,renderValue:oe.default.func,required:oe.default.bool,slotProps:oe.default.shape({listbox:oe.default.oneOfType([oe.default.func,oe.default.object]),popup:oe.default.oneOfType([oe.default.func,oe.default.object]),root:oe.default.oneOfType([oe.default.func,oe.default.object])}),slots:oe.default.shape({listbox:oe.default.elementType,popup:oe.default.elementType,root:oe.default.elementType}),value:oe.default.any});var fe=b(y());var Mu="Option";function ku(e){return kt(Mu,e)}var to=Bo(Mu,["root","disabled","selected","highlighted"]);function ci(e){let{value:t,label:o,disabled:n,rootRef:r,id:a}=e,{getRootProps:i,highlighted:l,selected:s}=Ua({item:t}),{getRootProps:c,rootRef:u}=rn({disabled:n,focusableWhenDisabled:true}),d=W(a),f=ue.useRef(null),p=ue.useMemo(()=>({disabled:n,label:o,value:t,ref:f,id:d}),[n,o,t,d]),{index:m}=Bc(t,p),g=X(r,f,u),C=S=>b=>{S.onKeyDown?.(b),!b.defaultMuiPrevented&&[" ","Enter"].includes(b.key)&&(b.defaultMuiPrevented=true);},x=(S={})=>({onKeyDown:C(S)});return {getRootProps:(S={})=>{let b=$(S),v=Po(i,Po(c,x));return {...S,...b,...v(b),id:d,ref:g,role:"option","aria-selected":s}},highlighted:l,index:m,selected:s,rootRef:g}}function Au(e){let t=ue.useContext(st);if(!t)throw new Error("Option: ListContext was not found.");let{getItemState:o,dispatch:n}=t,{highlighted:r,selected:a,focusable:i}=o(e),l=ue.useCallback(c=>{if(c!==e)throw new Error(["MUI\xA0Base Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return {highlighted:r,selected:a,focusable:i}},[r,a,i,e]);return {contextValue:ue.useMemo(()=>({dispatch:n,getItemState:l}),[n,l])}}function tb(e){let{disabled:t,highlighted:o,selected:n}=e;return _({root:["root",t&&"disabled",o&&"highlighted",n&&"selected"]},Io(ku))}var Bu=ue.forwardRef(function(t,o){let{children:n,disabled:r=false,label:a,slotProps:i={},slots:l={},value:s,...c}=t,u=l.root??"li",d=ue.useRef(null),f=X(d,o),p=a??(typeof n=="string"?n:d.current?.textContent?.trim()),{getRootProps:m,selected:g,highlighted:C,index:x}=ci({disabled:r,label:p,rootRef:f,value:s}),S={...t,disabled:r,highlighted:C,index:x,selected:g},b=tb(S),v=aa({getSlotProps:m,elementType:u,externalSlotProps:i.root,externalForwardedProps:c,className:b.root,ownerState:S});return jsx(u,{...v,children:n})});process.env.NODE_ENV!=="production"&&(Bu.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var ob=ue.memo(Bu),pi=ue.forwardRef(function(t,o){let{value:n}=t,{contextValue:r}=Au(n);return jsx(st.Provider,{value:r,children:jsx(ob,{...t,ref:o})})});process.env.NODE_ENV!=="production"&&(pi.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var lb=e=>e!=="bgColor"&&e!=="fgColor",Ou=wa("div",{shouldForwardProp:lb})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
178
+ white-space: nowrap;`);function Ec({id:e,title:t,subTitle:o,release:n,environment:r,borderTop:a,breadcrumbs:i,actions:l,actionMenu:s,tabs:c,iconTabs:p,returnTo:d,dataQa:f,dataTags:u,titleLocation:m="leftOfTabs"}){let g=b=>`${e??"default"}${b?"-".concat(b):""}`,x=jsx(_h,{titleLocation:m,children:m==="leftOfTabs"?jsxs(Fragment,{children:[jsx(Tc,{id:g("title"),"data-qa":"solace-header-title",hasTabs:!!c,children:jsx(b$1,{title:t,variant:"overflow",children:jsxs(Fragment,{children:[t,o?":":""]})})}),o&&jsx(Vh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",hasTabs:!!c,children:jsx(b$1,{title:o,variant:"overflow",children:o})})]}):jsxs(zh,{id:g("title"),"data-qa":"solace-header-title",children:[t,o&&jsxs(Xh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",children:[": ",o]})]})});return jsxs(Oh,{id:g(),"data-qa":f,"data-tags":u,borderTop:a,children:[jsxs(Dh,{children:[r,d,(r||d)&&(n||i)&&jsx(Nh,{}),n&&jsx(fr,{text:n},"releaseTag"),Array.isArray(i)?jsx(Ia,{id:g("breadcrumbs"),paths:i}):ue.isValidElement(i)&&i]}),m==="topOfTabs"&&x,jsxs(Hh,{titleLocation:m,children:[p&&jsx(Fh,{titleLocation:m,children:p}),m==="leftOfTabs"&&x,c&&jsx(Gh,{children:c}),(l||s)&&jsxs(Wh,{id:g("actions"),children:[l,s]})]})]})}var oe=b(y());function Rc(e){let{rootElementName:t="",componentName:o}=e,[n,r]=ue.useState(t.toUpperCase());process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{t&&n!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${o?`the ${o} component`:"a component"} expected the '${t}' element, but a '${n.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app");},[t,n,o]);let a=ue.useCallback(i=>{r(i?.tagName??"");},[]);return [n,a]}function rn(e={}){let{disabled:t=false,focusableWhenDisabled:o,href:n,rootRef:r,tabIndex:a,to:i,type:l,rootElementName:s}=e,c=ue.useRef(null),[p,d]=ue.useState(false),[f,u]=ue.useState(false);t&&!o&&f&&u(false);let[m,g]=Rc({rootElementName:s??(n||i?"a":void 0),componentName:"Button"}),x=T=>w=>{f&&w.preventDefault(),T.onMouseLeave?.(w);},b=T=>w=>{Y(w.target)||u(false),T.onBlur?.(w);},C=T=>w=>{c.current||(c.current=w.currentTarget),Y(w.target)&&(u(true),T.onFocusVisible?.(w)),T.onFocus?.(w);},S=()=>{let T=c.current;return m==="BUTTON"||m==="INPUT"&&["button","submit","reset"].includes(T?.type)||m==="A"&&T?.href},v=T=>w=>{t||T.onClick?.(w);},P=T=>w=>{t||(d(true),document.addEventListener("mouseup",()=>{d(false);},{once:true})),T.onMouseDown?.(w);},R=T=>w=>{T.onKeyDown?.(w),!w.defaultMuiPrevented&&(w.target===w.currentTarget&&!S()&&w.key===" "&&w.preventDefault(),w.target===w.currentTarget&&w.key===" "&&!t&&d(true),w.target===w.currentTarget&&!S()&&w.key==="Enter"&&!t&&(T.onClick?.(w),w.preventDefault()));},I=T=>w=>{w.target===w.currentTarget&&d(false),T.onKeyUp?.(w),w.target===w.currentTarget&&!S()&&!t&&w.key===" "&&!w.defaultMuiPrevented&&T.onClick?.(w);},M=X(g,r,c),E={};return a!==void 0&&(E.tabIndex=a),m==="BUTTON"?(E.type=l??"button",o?E["aria-disabled"]=t:E.disabled=t):m==="INPUT"?l&&["button","submit","reset"].includes(l)&&(o?E["aria-disabled"]=t:E.disabled=t):m!==""&&(!n&&!i&&(E.role="button",E.tabIndex=a??0),t&&(E["aria-disabled"]=t,E.tabIndex=o?a??0:-1)),{getRootProps:(T={})=>{let w={...$(e),...$(T)},z={type:l,...w,...E,...T,onBlur:b(w),onClick:v(w),onFocus:C(w),onKeyDown:R(w),onKeyUp:I(w),onMouseDown:P(w),onMouseLeave:x(w),ref:M};return delete z.onFocusVisible,z},focusVisible:f,setFocusVisible:u,active:p,rootRef:M}}var Ro={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};var le={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Jh(e,t,o,n,r,a){if(o.length===0||!n&&o.every((l,s)=>r(l,s)))return -1;let i=e;for(;;){if(!a&&t==="next"&&i===o.length||!a&&t==="previous"&&i===-1)return -1;if(n?false:r(o[i],i))i+=t==="next"?1:-1,a&&(i=(i+o.length)%o.length);else return i}}function Ce(e,t,o){let{items:n,isItemDisabled:r,disableListWrap:a,disabledItemsFocusable:i,itemComparer:l,focusManagement:s}=o,c=s==="DOM"?0:-1,p=n.length-1,d=e==null?-1:n.findIndex(x=>l(x,e)),f,u,m=!a;switch(t){case "reset":if(c===-1)return null;f=0,u="next",m=false;break;case "start":f=0,u="next",m=false;break;case "end":f=p,u="previous",m=false;break;default:{let x=d+t;x<0?!m&&d!==-1||Math.abs(t)>1?(f=0,u="next"):(f=p,u="previous"):x>p?!m||Math.abs(t)>1?(f=p,u="previous"):(f=0,u="next"):(f=x,u=t>=0?"next":"previous");}}let g=Jh(f,u,n,i,r,m);return g===-1&&e!==null&&!r(e,d)?e:n[g]??null}function Uh(e,t,o,n){return o==="none"?[]:o==="single"?n(t[0],e)?t:[e]:t.some(r=>n(r,e))?t.filter(r=>!n(r,e)):[...t,e]}function gr(e,t,o){let{itemComparer:n,isItemDisabled:r,selectionMode:a,items:i}=o,{selectedValues:l}=t,s=i.findIndex(p=>n(e,p));if(r(e,s))return t;let c=Uh(e,l,a,n);return {...t,selectedValues:c,highlightedValue:e}}function qh(e,t,o){let n=t.highlightedValue,{orientation:r,pageSize:a}=o;switch(e){case "Home":return {...t,highlightedValue:Ce(n,"start",o)};case "End":return {...t,highlightedValue:Ce(n,"end",o)};case "PageUp":return {...t,highlightedValue:Ce(n,-a,o)};case "PageDown":return {...t,highlightedValue:Ce(n,a,o)};case "ArrowUp":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,-1,o)};case "ArrowDown":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,1,o)};case "ArrowLeft":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?-1:1,o)}}case "ArrowRight":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?1:-1,o)}}case "Enter":case " ":return t.highlightedValue===null?t:gr(t.highlightedValue,t,o);}return t}function Zh(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function Yh(e,t,o){let n=o(e)?.trim().toLowerCase();return !n||n.length===0?false:n.startsWith(t)}function Kh(e,t,o){let{items:n,isItemDisabled:r,disabledItemsFocusable:a,getItemAsString:i}=o,l=t.length>1,s=l?e.highlightedValue:Ce(e.highlightedValue,1,o);for(let c=0;c<n.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(Yh(s,t,i)&&(!r(s,n.indexOf(s))||a))return {...e,highlightedValue:s};s=Ce(s,1,o);}return e}function Qh(e,t,o,n){let{itemComparer:r,focusManagement:a}=n,i=null;o.highlightedValue!=null?i=e.find(c=>r(c,o.highlightedValue))??null:a==="DOM"&&t.length===0&&(i=Ce(null,"reset",n));let s=(o.selectedValues??[]).filter(c=>e.some(p=>r(p,c)));return {...o,highlightedValue:i,selectedValues:s}}function jh(e,t){return {...e,highlightedValue:Ce(null,"reset",t)}}function ex(e,t){return {...e,highlightedValue:Ce(null,"end",t)}}function tx(e,t){return {...e,selectedValues:[],highlightedValue:Ce(null,"reset",t)}}function hr(e,t){let{type:o,context:n}=t;switch(o){case le.keyDown:return qh(t.key,e,n);case le.itemClick:return gr(t.item,e,n);case le.blur:return Zh(e,n);case le.textNavigation:return Kh(e,t.searchString,n);case le.itemsChange:return Qh(t.items,t.previousItems,e,n);case le.resetHighlight:return jh(e,n);case le.highlightLast:return ex(e,n);case le.clearSelection:return tx(e,n);default:return e}}function ox(e,t){return e===t}var Xa={},Pc=()=>{};function Ga(e,t){let o={...e};return Object.keys(t).forEach(n=>{t[n]!==void 0&&(o[n]=t[n]);}),o}function nx(e){let{nextState:t,initialState:o,stateComparers:n,onStateChange:r,controlledProps:a,lastActionRef:i}=e,l=ue.useRef(o);ue.useEffect(()=>{if(i.current===null)return;let s=Ga(l.current,a);Object.keys(t).forEach(c=>{let p=n[c]??ox,d=t[c],f=s[c];(f==null&&d!=null||f!=null&&d==null||f!=null&&d!=null&&!p(d,f))&&r?.(i.current.event??null,c,d,i.current.type??"",t);}),l.current=t,i.current=null;},[l,t,i,r,n,a]);}function Ic(e){let t=ue.useRef(null),{reducer:o,initialState:n,controlledProps:r=Xa,stateComparers:a=Xa,onStateChange:i=Pc,actionContext:l,componentName:s=""}=e,c=ue.useRef(r);process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{Object.keys(r).forEach(m=>{c.current[m]!==void 0&&r[m]===void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing a controlled prop to be uncontrolled: ${m}`),c.current[m]===void 0&&r[m]!==void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing an uncontrolled prop to be controlled: ${m}`);});},[r,s]);let p=ue.useCallback((m,g)=>{t.current=g;let x=Ga(m,r);return o(x,g)},[r,o]),[d,f]=ue.useReducer(p,n),u=ue.useCallback(m=>{f({...m,context:l});},[l]);return nx({nextState:d,initialState:n,stateComparers:a??Xa,onStateChange:i??Pc,controlledProps:r,lastActionRef:t}),[Ga(d,r),u]}function Wa(e,t,o=(n,r)=>n===r){return e.length===t.length&&e.every((n,r)=>o(n,t[r]))}var rx=500;function Lc(e){let t=ue.useRef({searchString:"",lastTime:null});return ue.useCallback(o=>{if(o.key.length===1&&o.key!==" "){let n=t.current,r=o.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>rx?n.searchString=r:(n.searchString.length!==1||r!==n.searchString)&&(n.searchString+=r),n.lastTime=a,e(n.searchString,o);}},[e])}var Mc={},ax=()=>{},ix=(e,t)=>e===t,lx=()=>false,sx=e=>typeof e=="string"?e:String(e),cx=()=>({highlightedValue:null,selectedValues:[]});function Ja(e){let{controlledProps:t=Mc,disabledItemsFocusable:o=false,disableListWrap:n=false,focusManagement:r="activeDescendant",getInitialState:a=cx,getItemDomElement:i,getItemId:l,isItemDisabled:s=lx,rootRef:c,onStateChange:p=ax,items:d,itemComparer:f=ix,getItemAsString:u=sx,onChange:m,onHighlightChange:g,onItemsChange:x,orientation:b="vertical",pageSize:C=5,reducerActionContext:S=Mc,selectionMode:v="single",stateReducer:P,componentName:R="useList"}=e;if(process.env.NODE_ENV!=="production"){if(r==="DOM"&&i==null)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if(r==="activeDescendant"&&l==null)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}let I=ue.useRef(null),M=X(c,I),E=ue.useCallback((j,B,q)=>{g?.(j,B,q),r==="DOM"&&B!=null&&(q===le.itemClick||q===le.keyDown||q===le.textNavigation)&&i?.(B)?.focus();},[i,g,r]),h=ue.useMemo(()=>({highlightedValue:f,selectedValues:(j,B)=>Wa(j,B,f)}),[f]),T=ue.useCallback((j,B,q,k,J)=>{switch(p?.(j,B,q,k,J),B){case "highlightedValue":E(j,q,k);break;case "selectedValues":m?.(j,q,k);break;}},[E,m,p]),w=ue.useMemo(()=>({disabledItemsFocusable:o,disableListWrap:n,focusManagement:r,isItemDisabled:s,itemComparer:f,items:d,getItemAsString:u,onHighlightChange:E,orientation:b,pageSize:C,selectionMode:v,stateComparers:h}),[o,n,r,s,f,d,u,E,b,C,v,h]),z=a(),O=P??hr,H=ue.useMemo(()=>({...S,...w}),[S,w]),[A,W]=Ic({reducer:O,actionContext:H,initialState:z,controlledProps:t,stateComparers:h,onStateChange:T,componentName:R}),{highlightedValue:D,selectedValues:L}=A,Y=Lc((j,B)=>W({type:le.textNavigation,event:B,searchString:j})),K=ue.useRef([]);ue.useEffect(()=>{Wa(K.current,d,f)||(W({type:le.itemsChange,event:null,items:d,previousItems:K.current}),K.current=d,x?.(d));},[d,f,W,x]);let N=j=>B=>{if(j.onKeyDown?.(B),B.defaultMuiPrevented)return;let q=["Home","End","PageUp","PageDown"];b==="vertical"?q.push("ArrowUp","ArrowDown"):q.push("ArrowLeft","ArrowRight"),r==="activeDescendant"&&q.push(" ","Enter"),q.includes(B.key)&&B.preventDefault(),W({type:le.keyDown,key:B.key,event:B}),Y(B);},re=j=>B=>{j.onBlur?.(B),!B.defaultMuiPrevented&&(I.current?.contains(B.relatedTarget)||W({type:le.blur,event:B}));},ye=(j={})=>{let B=$(j);return {...j,"aria-activedescendant":r==="activeDescendant"&&D!=null?l(D):void 0,tabIndex:r==="DOM"?-1:0,ref:M,...B,onBlur:re(B),onKeyDown:N(B)}},he=ue.useCallback(j=>{let B=(L??[]).some(J=>J!=null&&f(j,J)),q=D!=null&&f(j,D);return {focusable:r==="DOM",highlighted:q,selected:B}},[f,L,D,r]),be=ue.useMemo(()=>({dispatch:W,getItemState:he}),[W,he]);return ue.useDebugValue({state:A}),{contextValue:be,dispatch:W,getRootProps:ye,rootRef:M,state:A}}var st=ue.createContext(null);process.env.NODE_ENV!=="production"&&(st.displayName="ListContext");function Ua(e){let{handlePointerOverEvents:t=false,item:o}=e,n=ue.useContext(st);if(!n)throw new Error("useListItem must be used within a ListProvider");let{dispatch:r,getItemState:a}=n,{highlighted:i,selected:l,focusable:s}=a(o),c=ue.useCallback(u=>m=>{if(u.onClick?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
179
+ `));r({type:le.itemClick,item:o,event:m});}},[r,o]),p=ue.useCallback(u=>m=>{if(u.onMouseOver?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
180
+ `));r({type:le.itemHover,item:o,event:m});}},[r,o]),d;return s&&(d=i?0:-1),{getRootProps:(u={})=>{let m=$(u);return {...u,onClick:c(m),onPointerOver:t?p(m):void 0,tabIndex:d}},highlighted:i,selected:l}}var br=e=>{let{label:t,value:o}=e;return typeof t=="string"?t:typeof o=="string"?o:String(e)};var ln=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ln.displayName="CompoundComponentContext");function ux(e){let t=Array.from(e.keys()).map(o=>{let n=e.get(o);return {key:o,subitem:n}});return t.sort((o,n)=>{let r=o.subitem.ref.current,a=n.subitem.ref.current;return r===null||a===null||r===a?0:r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(o=>[o.key,o.subitem]))}function Ac(){let[e,t]=ue.useState(new Map),o=ue.useRef(new Set),n=ue.useCallback(function(c){o.current.delete(c),t(p=>{let d=new Map(p);return d.delete(c),d});},[]),r=ue.useCallback(function(c,p){let d;return typeof c=="function"?d=c(o.current):d=c,o.current.add(d),t(f=>{let u=new Map(f);return u.set(d,p),u}),{id:d,deregister:()=>n(d)}},[n]),a=ue.useMemo(()=>ux(e),[e]),i=ue.useCallback(function(c){return Array.from(a.keys()).indexOf(c)},[a]);return {contextValue:ue.useMemo(()=>({getItemIndex:i,registerItem:r,totalSubitemCount:e.size}),[i,r,e.size]),subitems:a}}function Bc(e,t){let o=ue.useContext(ln);if(o===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=o,[r,a]=ue.useState(typeof e=="function"?void 0:e);return H(()=>{let{id:i,deregister:l}=n(e,t);return a(i),l},[n,t,e]),{id:r,index:r!==void 0?o.getItemIndex(r):-1,totalItemCount:o.totalSubitemCount}}function Oc(e,t){let{open:o}=e,{context:{selectionMode:n}}=t;if(t.type===Ro.buttonClick){let a=e.selectedValues[0]??Ce(null,"start",t.context);return {...e,open:!o,highlightedValue:o?null:a}}if(t.type===Ro.browserAutoFill)return gr(t.item,e,t.context);let r=hr(e,t);switch(t.type){case le.keyDown:if(e.open){if(t.event.key==="Escape")return {...r,open:false}}else {if(t.event.key==="ArrowDown")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"start",t.context)};if(t.event.key==="ArrowUp")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"end",t.context)}}break;case le.itemClick:if(n==="single")return {...r,open:false};break;case le.blur:return {...r,open:false};default:return r}return r}function Po(e,t){return function(n={}){let r={...n,...e(n)};return {...r,...t(r)}}}function px(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function qa(e){let{areOptionsEqual:t,buttonRef:o,defaultOpen:n=false,defaultValue:r,disabled:a=false,listboxId:i,listboxRef:l,multiple:s=false,name:c,required:p,onChange:d,onHighlightChange:f,onOpenChange:u,open:m,options:g,getOptionAsString:x=br,getSerializedValue:b=px,value:C,componentName:S="useSelect"}=e,v=ue.useRef(null),P=X(o,v),R=ue.useRef(null),I=W(i),M;C===void 0&&r===void 0?M=[]:r!==void 0&&(s?M=r:M=r==null?[]:[r]);let E=ue.useMemo(()=>{if(C!==void 0)return s?C:C==null?[]:[C]},[C,s]),{subitems:h,contextValue:T}=Ac(),w=ue.useMemo(()=>g!=null?new Map(g.map((G,Z)=>[G.value,{value:G.value,label:G.label,disabled:G.disabled,ref:ue.createRef(),id:`${I}_${Z}`}])):h,[g,h,I]),z=X(l,R),{getRootProps:O,active:H$1,focusVisible:A,rootRef:W$1}=rn({disabled:a,rootRef:P}),D=ue.useMemo(()=>Array.from(w.keys()),[w]),L=ue.useCallback(G=>{if(t!==void 0){let Z=D.find(pe=>t(pe,G));return w.get(Z)}return w.get(G)},[w,t,D]),Y=ue.useCallback(G=>L(G)?.disabled??false,[L]),K=ue.useCallback(G=>{let Z=L(G);return Z?x(Z):""},[L,x]),N=ue.useMemo(()=>({selectedValues:E,open:m}),[E,m]),re=ue.useCallback(G=>w.get(G)?.id,[w]),ye=ue.useCallback((G,Z)=>{s?d?.(G,Z):d?.(G,Z[0]??null);},[s,d]),he=ue.useCallback((G,Z)=>{f?.(G,Z??null);},[f]),be=ue.useCallback((G,Z,pe)=>{Z==="open"&&(u?.(pe),pe===false&&G?.type!=="blur"&&v.current?.focus());},[u]),j=ue.useCallback(G=>G==null?null:h.get(G)?.ref.current??null,[h]),B={getInitialState:()=>({highlightedValue:null,selectedValues:M??[],open:n}),getItemId:re,controlledProps:N,focusManagement:"DOM",getItemDomElement:j,itemComparer:t,isItemDisabled:Y,rootRef:z,onChange:ye,onHighlightChange:he,onStateChange:be,reducerActionContext:ue.useMemo(()=>({multiple:s}),[s]),items:D,getItemAsString:K,selectionMode:s?"multiple":"single",stateReducer:Oc,componentName:S},{dispatch:q,getRootProps:k,contextValue:J,state:{open:V,highlightedValue:F,selectedValues:Q},rootRef:Ge}=Ja(B),no=ue.useRef(V);H(()=>{if(V&&F!==null){let G=L(F)?.ref;if(!R.current||!G?.current)return;no.current||G.current.focus({preventScroll:true});let Z=R.current.getBoundingClientRect(),pe=G.current.getBoundingClientRect();pe.top<Z.top?R.current.scrollTop-=Z.top-pe.top:pe.bottom>Z.bottom&&(R.current.scrollTop+=pe.bottom-Z.bottom);}},[V,F,L]);let mt=ue.useCallback(G=>L(G),[L]),bn=G=>Z=>{if(G?.onClick?.(Z),!Z.defaultMuiPrevented){let pe={type:Ro.buttonClick,event:Z};q(pe);}},Nr=G=>Z=>{G.onKeyDown?.(Z),!Z.defaultMuiPrevented&&(Z.key==="ArrowDown"||Z.key==="ArrowUp")&&(Z.preventDefault(),q({type:le.keyDown,key:Z.key,event:Z}));},Hr=(G={})=>({onClick:bn(G),onKeyDown:Nr(G)}),Sn=(G={})=>({...G,...Hr(G),role:"combobox","aria-expanded":V,"aria-controls":I}),At=(G={})=>{let Z=$(G),pe=Po(Sn,O);return {...G,...pe(Z)}},gt=G=>Z=>{G.onBlur?.(Z),!Z.defaultMuiPrevented&&(R.current?.contains(Z.relatedTarget)||Z.relatedTarget===v.current)&&(Z.defaultMuiPrevented=true);},Bt=(G={})=>({onBlur:gt(G)}),Do=(G={})=>{let Z=$(G),pe=Po(Bt,k);return {id:I,role:"listbox","aria-multiselectable":s?"true":void 0,...G,...pe(Z)}};ue.useDebugValue({selectedOptions:Q,highlightedOption:F,open:V});let Cn=ue.useMemo(()=>({...J,...T}),[J,T]),ht;e.multiple?ht=Q:ht=Q.length>0?Q[0]:null;let xt;s?xt=ht.map(G=>mt(G)).filter(G=>G!==void 0):xt=mt(ht)??null;let $o=G=>Z=>{if(G?.onChange?.(Z),Z.defaultMuiPrevented)return;let pe=w.get(Z.target.value);Z.target.value===""?q({type:le.clearSelection}):pe!==void 0&&q({type:Ro.browserAutoFill,item:pe.value,event:Z});};return {buttonActive:H$1,buttonFocusVisible:A,buttonRef:W$1,contextValue:Cn,disabled:a,dispatch:q,getButtonProps:At,getHiddenInputProps:(G={})=>{let Z$1=$(G);return {name:c,tabIndex:-1,"aria-hidden":true,required:p?true:void 0,value:b(xt),style:Z,...G,onChange:$o(Z$1)}},getListboxProps:Do,getOptionMetadata:mt,listboxRef:Ge,open:V,options:D,value:ht,highlightedOption:F}}function $c(e){let{value:t,children:o}=e,{dispatch:n,getItemIndex:r,getItemState:a,registerItem:i,totalSubitemCount:l}=t,s=ue.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:r}),[n,r,a]),c=ue.useMemo(()=>({getItemIndex:r,registerItem:i,totalSubitemCount:l}),[i,r,l]);return jsx(ln.Provider,{value:c,children:jsx(st.Provider,{value:s,children:o})})}var dx={disableDefaultClasses:false},Nc=ue.createContext(dx);process.env.NODE_ENV!=="production"&&(Nc.displayName="ClassNameConfiguratorContext");function Io(e){let{disableDefaultClasses:t}=ue.useContext(Nc);return o=>t?"":e(o)}var ne=b(y());var Lo=Math.min,ct=Math.max,un=Math.round,pn=Math.floor,qe=e=>({x:e,y:e}),fx={left:"right",right:"left",bottom:"top",top:"bottom"},mx={start:"end",end:"start"};function Ya(e,t,o){return ct(e,Lo(t,o))}function dn(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function fn(e){return e.split("-")[1]}function Ka(e){return e==="x"?"y":"x"}function Qa(e){return e==="y"?"height":"width"}var gx=new Set(["top","bottom"]);function ut(e){return gx.has(Mt(e))?"y":"x"}function ja(e){return Ka(ut(e))}function _c(e,t,o){o===void 0&&(o=false);let n=fn(e),r=ja(e),a=Qa(r),i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cn(i)),[i,cn(i)]}function Vc(e){let t=cn(e);return [Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>mx[t])}var Hc=["left","right"],Fc=["right","left"],hx=["top","bottom"],xx=["bottom","top"];function bx(e,t,o){switch(e){case "top":case "bottom":return o?t?Fc:Hc:t?Hc:Fc;case "left":case "right":return t?hx:xx;default:return []}}function zc(e,t,o,n){let r=fn(e),a=bx(Mt(e),o==="start",n);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(Cr)))),a}function cn(e){return e.replace(/left|right|bottom|top/g,t=>fx[t])}function Sx(e){return {top:0,right:0,bottom:0,left:0,...e}}function Xc(e){return typeof e!="number"?Sx(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){let{x:t,y:o,width:n,height:r}=e;return {width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Gc(e,t,o){let{reference:n,floating:r}=e,a=ut(t),i=ja(t),l=Qa(i),s=Mt(t),c=a==="y",p=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,f=n[l]/2-r[l]/2,u;switch(s){case "top":u={x:p,y:n.y-r.height};break;case "bottom":u={x:p,y:n.y+n.height};break;case "right":u={x:n.x+n.width,y:d};break;case "left":u={x:n.x-r.width,y:d};break;default:u={x:n.x,y:n.y};}switch(fn(t)){case "start":u[i]-=f*(o&&c?-1:1);break;case "end":u[i]+=f*(o&&c?-1:1);break}return u}async function Wc(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=false,padding:u=0}=dn(t,e),m=Xc(u),x=l[f?d==="floating"?"reference":"floating":d],b=Zt(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(x)))==null||o?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:p,strategy:s})),C=d==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),v=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},P=Zt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:S,strategy:s}):C);return {top:(b.top-P.top+m.top)/v.y,bottom:(P.bottom-b.bottom+m.bottom)/v.y,left:(b.left-P.left+m.left)/v.x,right:(P.right-b.right+m.right)/v.x}}var Jc=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:d}=Gc(c,n,s),f=n,u={},m=0;for(let x=0;x<l.length;x++){var g;let{name:b,fn:C}=l[x],{x:S,y:v,data:P,reset:R}=await C({x:p,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:u,rects:c,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:Wc},elements:{reference:e,floating:t}});p=S??p,d=v??d,u={...u,[b]:{...u[b],...P}},R&&m<=50&&(m++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(c=R.rects===true?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:p,y:d}=Gc(c,f,s)),x=-1);}return {x:p,y:d,placement:f,strategy:r,middlewareData:u}};var Uc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:p=true,crossAxis:d=true,fallbackPlacements:f,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=true,...x}=dn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return {};let b=Mt(r),C=ut(l),S=Mt(l)===l,v=await(s.isRTL==null?void 0:s.isRTL(c.floating)),P=f||(S||!g?[cn(l)]:Vc(l)),R=m!=="none";!f&&R&&P.push(...zc(l,g,m,v));let I=[l,...P],M=await s.detectOverflow(t,x),E=[],h=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&E.push(M[b]),d){let O=_c(r,i,v);E.push(M[O[0]],M[O[1]]);}if(h=[...h,{placement:r,overflows:E}],!E.every(O=>O<=0)){var T,w;let O=(((T=a.flip)==null?void 0:T.index)||0)+1,H=I[O];if(H&&(!(d==="alignment"?C!==ut(H):false)||h.every(D=>ut(D.placement)===C?D.overflows[0]>0:true)))return {data:{index:O,overflows:h},reset:{placement:H}};let A=(w=h.filter(W=>W.overflows[0]<=0).sort((W,D)=>W.overflows[1]-D.overflows[1])[0])==null?void 0:w.placement;if(!A)switch(u){case "bestFit":{var z;let W=(z=h.filter(D=>{if(R){let L=ut(D.placement);return L===C||L==="y"}return true}).map(D=>[D.placement,D.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((D,L)=>D[1]-L[1])[0])==null?void 0:z[0];W&&(A=W);break}case "initialPlacement":A=l;break}if(r!==A)return {reset:{placement:A}}}return {}}}};var Cx=new Set(["left","top"]);async function yx(e,t){let{placement:o,platform:n,elements:r}=e,a=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=Mt(o),l=fn(o),s=ut(o)==="y",c=Cx.has(i)?-1:1,p=a&&s?-1:1,d=dn(t,e),{mainAxis:f,crossAxis:u,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof m=="number"&&(u=l==="end"?m*-1:m),s?{x:u*p,y:f*c}:{x:f*c,y:u*p}}var qc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:a,placement:i,middlewareData:l}=t,s=await yx(t,e);return i===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},Zc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:a}=t,{mainAxis:i=true,crossAxis:l=false,limiter:s={fn:b=>{let{x:C,y:S}=b;return {x:C,y:S}}},...c}=dn(e,t),p={x:o,y:n},d=await a.detectOverflow(t,c),f=ut(Mt(r)),u=Ka(f),m=p[u],g=p[f];if(i){let b=u==="y"?"top":"left",C=u==="y"?"bottom":"right",S=m+d[b],v=m-d[C];m=Ya(S,m,v);}if(l){let b=f==="y"?"top":"left",C=f==="y"?"bottom":"right",S=g+d[b],v=g-d[C];g=Ya(S,g,v);}let x=s.fn({...t,[u]:m,[f]:g});return {...x,data:{x:x.x-o,y:x.y-n,enabled:{[u]:i,[f]:l}}}}}};function yr(){return typeof window<"u"}function Kt(e){return Kc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ae(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ze(e){var t;return (t=(Kc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kc(e){return yr()?e instanceof Node||e instanceof Ae(e).Node:false}function ze(e){return yr()?e instanceof Element||e instanceof Ae(e).Element:false}function Ye(e){return yr()?e instanceof HTMLElement||e instanceof Ae(e).HTMLElement:false}function Yc(e){return !yr()||typeof ShadowRoot>"u"?false:e instanceof ShadowRoot||e instanceof Ae(e).ShadowRoot}var vx=new Set(["inline","contents"]);function Mo(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Xe(e);return /auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!vx.has(r)}var wx=new Set(["table","td","th"]);function Qc(e){return wx.has(Kt(e))}var Tx=[":popover-open",":modal"];function mn(e){return Tx.some(t=>{try{return e.matches(t)}catch{return false}})}var Ex=["transform","translate","scale","rotate","perspective"],Rx=["transform","translate","scale","rotate","perspective","filter"],Px=["paint","layout","strict","content"];function vr(e){let t=wr(),o=ze(e)?Xe(e):e;return Ex.some(n=>o[n]?o[n]!=="none":false)||(o.containerType?o.containerType!=="normal":false)||!t&&(o.backdropFilter?o.backdropFilter!=="none":false)||!t&&(o.filter?o.filter!=="none":false)||Rx.some(n=>(o.willChange||"").includes(n))||Px.some(n=>(o.contain||"").includes(n))}function jc(e){let t=pt(e);for(;Ye(t)&&!Qt(t);){if(vr(t))return t;if(mn(t))return null;t=pt(t);}return null}function wr(){return typeof CSS>"u"||!CSS.supports?false:CSS.supports("-webkit-backdrop-filter","none")}var Ix=new Set(["html","body","#document"]);function Qt(e){return Ix.has(Kt(e))}function Xe(e){return Ae(e).getComputedStyle(e)}function gn(e){return ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Yc(e)&&e.host||Ze(e);return Yc(t)?t.host:t}function eu(e){let t=pt(e);return Qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Mo(t)?t:eu(t)}function Yt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=true);let r=eu(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ae(r);if(a){let l=Tr(i);return t.concat(i,i.visualViewport||[],Mo(r)?r:[],l&&o?Yt(l):[])}return t.concat(r,Yt(r,[],o))}function Tr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ru(e){let t=Xe(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=Ye(e),a=r?e.offsetWidth:o,i=r?e.offsetHeight:n,l=un(o)!==a||un(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function ti(e){return ze(e)?e:e.contextElement}function ko(e){let t=ti(e);if(!Ye(t))return qe(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:a}=ru(t),i=(a?un(o.width):o.width)/n,l=(a?un(o.height):o.height)/r;return (!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}var Lx=qe(0);function au(e){let t=Ae(e);return !wr()||!t.visualViewport?Lx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mx(e,t,o){return t===void 0&&(t=false),!o||t&&o!==Ae(e)?false:t}function jt(e,t,o,n){t===void 0&&(t=false),o===void 0&&(o=false);let r=e.getBoundingClientRect(),a=ti(e),i=qe(1);t&&(n?ze(n)&&(i=ko(n)):i=ko(e));let l=Mx(a,o,n)?au(a):qe(0),s=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,p=r.width/i.x,d=r.height/i.y;if(a){let f=Ae(a),u=n&&ze(n)?Ae(n):n,m=f,g=Tr(m);for(;g&&n&&u!==m;){let x=ko(g),b=g.getBoundingClientRect(),C=Xe(g),S=b.left+(g.clientLeft+parseFloat(C.paddingLeft))*x.x,v=b.top+(g.clientTop+parseFloat(C.paddingTop))*x.y;s*=x.x,c*=x.y,p*=x.x,d*=x.y,s+=S,c+=v,m=Ae(g),g=Tr(m);}}return Zt({width:p,height:d,x:s,y:c})}function Er(e,t){let o=gn(e).scrollLeft;return t?t.left+o:jt(Ze(e)).left+o}function iu(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Er(e,o),r=o.top+t.scrollTop;return {x:n,y:r}}function kx(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,a=r==="fixed",i=Ze(n),l=t?mn(t.floating):false;if(n===i||l&&a)return o;let s={scrollLeft:0,scrollTop:0},c=qe(1),p=qe(0),d=Ye(n);if((d||!d&&!a)&&((Kt(n)!=="body"||Mo(i))&&(s=gn(n)),Ye(n))){let u=jt(n);c=ko(n),p.x=u.x+n.clientLeft,p.y=u.y+n.clientTop;}let f=i&&!d&&!a?iu(i,s):qe(0);return {width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+p.x+f.x,y:o.y*c.y-s.scrollTop*c.y+p.y+f.y}}function Ax(e){return Array.from(e.getClientRects())}function Bx(e){let t=Ze(e),o=gn(e),n=e.ownerDocument.body,r=ct(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ct(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-o.scrollLeft+Er(e),l=-o.scrollTop;return Xe(n).direction==="rtl"&&(i+=ct(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:l}}var tu=25;function Ox(e,t){let o=Ae(e),n=Ze(e),r=o.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(r){a=r.width,i=r.height;let p=wr();(!p||p&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop);}let c=Er(n);if(c<=0){let p=n.ownerDocument,d=p.body,f=getComputedStyle(d),u=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-u);m<=tu&&(a-=m);}else c<=tu&&(a+=c);return {width:a,height:i,x:l,y:s}}var Dx=new Set(["absolute","fixed"]);function $x(e,t){let o=jt(e,true,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=Ye(e)?ko(e):qe(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,s=r*a.x,c=n*a.y;return {width:i,height:l,x:s,y:c}}function ou(e,t,o){let n;if(t==="viewport")n=Ox(e,o);else if(t==="document")n=Bx(Ze(e));else if(ze(t))n=$x(t,o);else {let r=au(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height};}return Zt(n)}function lu(e,t){let o=pt(e);return o===t||!ze(o)||Qt(o)?false:Xe(o).position==="fixed"||lu(o,t)}function Nx(e,t){let o=t.get(e);if(o)return o;let n=Yt(e,[],false).filter(l=>ze(l)&&Kt(l)!=="body"),r=null,a=Xe(e).position==="fixed",i=a?pt(e):e;for(;ze(i)&&!Qt(i);){let l=Xe(i),s=vr(i);!s&&l.position==="fixed"&&(r=null),(a?!s&&!r:!s&&l.position==="static"&&!!r&&Dx.has(r.position)||Mo(i)&&!s&&lu(e,i))?n=n.filter(p=>p!==i):r=l,i=pt(i);}return t.set(e,n),n}function Hx(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,i=[...o==="clippingAncestors"?mn(t)?[]:Nx(t,this._c):[].concat(o),n],l=i[0],s=i.reduce((c,p)=>{let d=ou(t,p,r);return c.top=ct(d.top,c.top),c.right=Lo(d.right,c.right),c.bottom=Lo(d.bottom,c.bottom),c.left=ct(d.left,c.left),c},ou(t,l,r));return {width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Fx(e){let{width:t,height:o}=ru(e);return {width:t,height:o}}function _x(e,t,o){let n=Ye(t),r=Ze(t),a=o==="fixed",i=jt(e,true,a,t),l={scrollLeft:0,scrollTop:0},s=qe(0);function c(){s.x=Er(r);}if(n||!n&&!a)if((Kt(t)!=="body"||Mo(r))&&(l=gn(t)),n){let u=jt(t,true,a,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop;}else r&&c();a&&!n&&r&&c();let p=r&&!n&&!a?iu(r,l):qe(0),d=i.left+l.scrollLeft-s.x-p.x,f=i.top+l.scrollTop-s.y-p.y;return {x:d,y:f,width:i.width,height:i.height}}function ei(e){return Xe(e).position==="static"}function nu(e,t){if(!Ye(e)||Xe(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ze(e)===o&&(o=o.ownerDocument.body),o}function su(e,t){let o=Ae(e);if(mn(e))return o;if(!Ye(e)){let r=pt(e);for(;r&&!Qt(r);){if(ze(r)&&!ei(r))return r;r=pt(r);}return o}let n=nu(e,t);for(;n&&Qc(n)&&ei(n);)n=nu(n,t);return n&&Qt(n)&&ei(n)&&!vr(n)?o:n||jc(e)||o}var Vx=async function(e){let t=this.getOffsetParent||su,o=this.getDimensions,n=await o(e.floating);return {reference:_x(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zx(e){return Xe(e).direction==="rtl"}var cu={convertOffsetParentRelativeRectToViewportRelativeRect:kx,getDocumentElement:Ze,getClippingRect:Hx,getOffsetParent:su,getElementRects:Vx,getClientRects:Ax,getDimensions:Fx,getScale:ko,isElement:ze,isRTL:zx};function uu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xx(e,t){let o=null,n,r=Ze(e);function a(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null;}function i(l,s){l===void 0&&(l=false),s===void 0&&(s=1),a();let c=e.getBoundingClientRect(),{left:p,top:d,width:f,height:u}=c;if(l||t(),!f||!u)return;let m=pn(d),g=pn(r.clientWidth-(p+f)),x=pn(r.clientHeight-(d+u)),b=pn(p),S={rootMargin:-m+"px "+-g+"px "+-x+"px "+-b+"px",threshold:ct(0,Lo(1,s))||1},v=true;function P(R){let I=R[0].intersectionRatio;if(I!==s){if(!v)return i();I?i(false,I):n=setTimeout(()=>{i(false,1e-7);},1e3);}I===1&&!uu(c,e.getBoundingClientRect())&&i(),v=false;}try{o=new IntersectionObserver(P,{...S,root:r.ownerDocument});}catch{o=new IntersectionObserver(P,S);}o.observe(e);}return i(true),a}function Rr(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=true,ancestorResize:a=true,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=n,c=ti(e),p=r||a?[...c?Yt(c):[],...Yt(t)]:[];p.forEach(b=>{r&&b.addEventListener("scroll",o,{passive:true}),a&&b.addEventListener("resize",o);});let d=c&&l?Xx(c,o):null,f=-1,u=null;i&&(u=new ResizeObserver(b=>{let[C]=b;C&&C.target===c&&u&&(u.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=u)==null||S.observe(t);})),o();}),c&&!s&&u.observe(c),u.observe(t));let m,g=s?jt(e):null;s&&x();function x(){let b=jt(e);g&&!uu(g,b)&&o(),g=b,m=requestAnimationFrame(x);}return o(),()=>{var b;p.forEach(C=>{r&&C.removeEventListener("scroll",o),a&&C.removeEventListener("resize",o);}),d?.(),(b=u)==null||b.disconnect(),u=null,s&&cancelAnimationFrame(m);}}var pu=qc;var du=Zc,fu=Uc;var oi=(e,t,o)=>{let n=new Map,r={platform:cu,...o},a={...r.platform,_c:n};return Jc(e,t,{...r,platform:a})};var Wx=typeof document<"u",Jx=function(){},Pr=Wx?useLayoutEffect:Jx;function Ir(e,t){if(e===t)return true;if(typeof e!=typeof t)return false;if(typeof e=="function"&&e.toString()===t.toString())return true;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return false;for(n=o;n--!==0;)if(!Ir(e[n],t[n]))return false;return true}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return false;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return false;for(n=o;n--!==0;){let a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!Ir(e[a],t[a]))return false}return true}return e!==e&&t!==t}function hu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mu(e,t){let o=hu(e);return Math.round(t*o)/o}function ni(e){let t=ue.useRef(e);return Pr(()=>{t.current=e;}),t}function xu(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:a,floating:i}={},transform:l=true,whileElementsMounted:s,open:c}=e,[p,d]=ue.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:false}),[f,u]=ue.useState(n);Ir(f,n)||u(n);let[m,g]=ue.useState(null),[x,b]=ue.useState(null),C=ue.useCallback(D=>{D!==R.current&&(R.current=D,g(D));},[]),S=ue.useCallback(D=>{D!==I.current&&(I.current=D,b(D));},[]),v=a||m,P=i||x,R=ue.useRef(null),I=ue.useRef(null),M=ue.useRef(p),E=s!=null,h=ni(s),T=ni(r),w=ni(c),z=ue.useCallback(()=>{if(!R.current||!I.current)return;let D={placement:t,strategy:o,middleware:f};T.current&&(D.platform=T.current),oi(R.current,I.current,D).then(L=>{let Y={...L,isPositioned:w.current!==false};O.current&&!Ir(M.current,Y)&&(M.current=Y,gu.flushSync(()=>{d(Y);}));});},[f,t,o,T,w]);Pr(()=>{c===false&&M.current.isPositioned&&(M.current.isPositioned=false,d(D=>({...D,isPositioned:false})));},[c]);let O=ue.useRef(false);Pr(()=>(O.current=true,()=>{O.current=false;}),[]),Pr(()=>{if(v&&(R.current=v),P&&(I.current=P),v&&P){if(h.current)return h.current(v,P,z);z();}},[v,P,z,h,E]);let H=ue.useMemo(()=>({reference:R,floating:I,setReference:C,setFloating:S}),[C,S]),A=ue.useMemo(()=>({reference:v,floating:P}),[v,P]),W=ue.useMemo(()=>{let D={position:o,left:0,top:0};if(!A.floating)return D;let L=mu(A.floating,p.x),Y=mu(A.floating,p.y);return l?{...D,transform:"translate("+L+"px, "+Y+"px)",...hu(A.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:L,top:Y}},[o,l,A.floating,p.x,p.y]);return ue.useMemo(()=>({...p,update:z,refs:H,elements:A,floatingStyles:W}),[p,z,H,A,W])}var ri=(e,t)=>({...pu(e),options:[e,t]}),bu=(e,t)=>({...du(e),options:[e,t]});var Su=(e,t)=>({...fu(e),options:[e,t]});var hn=b(y());function Ux(e){return typeof e=="function"?e():e}var Ao=ue.forwardRef(function(t,o){let{children:n,container:r,disablePortal:a=false}=t,[i,l]=ue.useState(null),s=X(ue.isValidElement(n)?ba(n):null,o);return H(()=>{a||l(Ux(r)||document.body);},[r,a]),H(()=>{if(i&&!a)return V(o,i),()=>{V(o,null);}},[o,i,a]),a?ue.isValidElement(n)?ue.cloneElement(n,{ref:s}):n:i&&gu.createPortal(n,i)});process.env.NODE_ENV!=="production"&&(Ao.propTypes={children:hn.default.node,container:hn.default.oneOfType([U,hn.default.func]),disablePortal:hn.default.bool});process.env.NODE_ENV!=="production"&&(Ao.propTypes=T(Ao.propTypes));var yu="base";function qx(e){return `${yu}--${e}`}function Zx(e,t){return `${yu}-${e}-${t}`}function kt(e,t){let o=E[t];return o?qx(o):Zx(e,t)}function Bo(e,t){let o={};return t.forEach(n=>{o[n]=kt(e,n);}),o}var vu="Popup";function wu(e){return kt(vu,e)}Bo(vu,["root","open"]);var ai=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ai.displayName="TransitionContext");function Eu(e){let[t,o]=ue.useState(true),n=ue.useRef(false),r=ue.useRef(0),[a,i]=ue.useState(false),l=ue.useRef(e);ue.useEffect(()=>{!e&&r.current>0&&l.current!==e&&(n.current=true,o(false)),l.current=e;},[e]);let s=ue.useCallback(()=>{n.current=false,o(true);},[]),c=ue.useCallback(()=>(r.current+=1,i(true),()=>{r.current-=1,r.current===0&&i(false);}),[]),p;return a?e?p=false:p=!n.current&&t:p=!e,{contextValue:ue.useMemo(()=>({requestedEnter:e,onExited:s,registerTransition:c,hasExited:p}),[s,e,c,p]),hasExited:p}}var ii=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ii.displayName="PopupContext");function Yx(e){let{open:t}=e;return _({root:["root",t&&"open"]},Io(wu))}function Kx(e){return typeof e=="function"?e():e}var li=ue.forwardRef(function(t,o){let{anchor:n,children:r,container:a,disablePortal:i=false,keepMounted:l=false,middleware:s,offset:c=0,open:p=false,placement:d="bottom",slotProps:f={},slots:u={},strategy:m="absolute",...g}=t,{refs:x,elements:b,floatingStyles:C,update:S,placement:v}=xu({elements:{reference:Kx(n)},open:p,middleware:s??[ri(c??0),Su(),bu()],placement:d,strategy:m,whileElementsMounted:l?void 0:Rr}),P=X(x.setFloating,o);H(()=>{if(l&&p&&b.reference&&b.floating)return Rr(b.reference,b.floating,S)},[l,p,b,S]);let R={...t,disablePortal:i,keepMounted:l,offset:ri,open:p,placement:d,finalPlacement:v,strategy:m},{contextValue:I,hasExited:M}=Eu(p),E=l&&M?"hidden":void 0,h=Yx(R),T=u?.root??"div",w=aa({elementType:T,externalSlotProps:f.root,externalForwardedProps:g,ownerState:R,className:h.root,additionalProps:{ref:P,role:"tooltip",style:{...C,visibility:E}}}),z=ue.useMemo(()=>({placement:v}),[v]);return l||!M?jsx(Ao,{disablePortal:i,container:a,children:jsx(ii.Provider,{value:z,children:jsx(ai.Provider,{value:I,children:jsx(T,{...w,children:r})})})}):null});process.env.NODE_ENV!=="production"&&(li.propTypes={anchor:ne.default.oneOfType([U,ne.default.object,ne.default.func]),children:ne.default.oneOfType([ne.default.node,ne.default.func]),container:ne.default.oneOfType([U,ne.default.func]),disablePortal:ne.default.bool,keepMounted:ne.default.bool,middleware:ne.default.arrayOf(ne.default.oneOfType([ne.default.oneOf([false]),ne.default.shape({fn:ne.default.func.isRequired,name:ne.default.string.isRequired,options:ne.default.any})])),offset:ne.default.oneOfType([ne.default.func,ne.default.number,ne.default.shape({alignmentAxis:ne.default.number,crossAxis:ne.default.number,mainAxis:ne.default.number})]),open:ne.default.bool,placement:ne.default.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),slotProps:ne.default.shape({root:ne.default.oneOfType([ne.default.func,ne.default.object])}),slots:ne.default.shape({root:ne.default.elementType}),strategy:ne.default.oneOf(["absolute","fixed"])});var Pu="Select";function Iu(e){return kt(Pu,e)}var si=Bo(Pu,["root","button","listbox","popup","active","expanded","disabled","focusVisible"]);var Lu;function jx(e){return Array.isArray(e)?jsx(ue.Fragment,{children:e.map(t=>t.label).join(", ")}):e?.label??null}function eb(e){let{active:t,disabled:o,open:n,focusVisible:r}=e;return _({root:["root",o&&"disabled",r&&"focusVisible",t&&"active",n&&"expanded"],listbox:["listbox",o&&"disabled"],popup:["popup"]},Io(Iu))}var kr=ue.forwardRef(function(t,o){let{areOptionsEqual:n,autoComplete:r,autoFocus:a,children:i,defaultValue:l,defaultListboxOpen:s=false,disabled:c,getSerializedValue:p,listboxId:d,listboxOpen:f,multiple:u=false,name:m,required:g=false,onChange:x,onListboxOpenChange:b,getOptionAsString:C=br,renderValue:S,placeholder:v,slotProps:P={},slots:R={},value:I,...M}=t,E=S??jx,[h,T]=ue.useState(false),w=ue.useRef(null),z=ue.useRef(null),O=R.root??"button",H=R.listbox??"ul",A=R.popup??"div",W=ue.useCallback(Ge=>{T(Ge!=null);},[]),D=X(o,w,W);ue.useEffect(()=>{a&&w.current.focus();},[a]);let{buttonActive:L,buttonFocusVisible:Y,contextValue:K,disabled:N,getButtonProps:re,getListboxProps:ye,getHiddenInputProps:he,getOptionMetadata:be,value:j,open:B}=qa({name:m,required:g,getSerializedValue:p,areOptionsEqual:n,buttonRef:D,defaultOpen:s,defaultValue:l,disabled:c,listboxId:d,multiple:u,open:f,onChange:x,onOpenChange:b,getOptionAsString:C,value:I,componentName:"Select"}),q={...t,active:L,defaultListboxOpen:s,disabled:N,focusVisible:Y,open:B,multiple:u,renderValue:E,value:j},k=eb(q),J=aa({elementType:O,getSlotProps:re,externalSlotProps:P.root,externalForwardedProps:M,ownerState:q,className:k.root}),V=aa({elementType:H,getSlotProps:ye,externalSlotProps:P.listbox,additionalProps:{ref:z},ownerState:q,className:k.listbox}),F=aa({elementType:A,externalSlotProps:P.popup,additionalProps:{anchor:w.current,keepMounted:true,open:B,placement:"bottom-start",role:void 0},ownerState:q,className:k.popup}),Q;return u?Q=j.map(Ge=>be(Ge)).filter(Ge=>Ge!==void 0):Q=be(j)??null,jsxs(ue.Fragment,{children:[jsx(O,{...J,children:E(Q)??v??(Lu||(Lu=jsx("span",{className:"notranslate","aria-hidden":true,children:"\u200B"})))}),h&&jsx(li,{slots:{root:A},...F,children:jsx(H,{...V,children:jsx($c,{value:K,children:i})})}),jsx("input",{...he(),autoComplete:r})]})});process.env.NODE_ENV!=="production"&&(kr.propTypes={areOptionsEqual:oe.default.func,autoComplete:oe.default.string,autoFocus:oe.default.bool,children:oe.default.node,className:oe.default.string,defaultListboxOpen:oe.default.bool,defaultValue:oe.default.any,disabled:oe.default.bool,getOptionAsString:oe.default.func,getSerializedValue:oe.default.func,listboxId:oe.default.string,listboxOpen:oe.default.bool,multiple:oe.default.bool,name:oe.default.string,onChange:oe.default.func,onListboxOpenChange:oe.default.func,placeholder:oe.default.node,renderValue:oe.default.func,required:oe.default.bool,slotProps:oe.default.shape({listbox:oe.default.oneOfType([oe.default.func,oe.default.object]),popup:oe.default.oneOfType([oe.default.func,oe.default.object]),root:oe.default.oneOfType([oe.default.func,oe.default.object])}),slots:oe.default.shape({listbox:oe.default.elementType,popup:oe.default.elementType,root:oe.default.elementType}),value:oe.default.any});var fe=b(y());var Mu="Option";function ku(e){return kt(Mu,e)}var to=Bo(Mu,["root","disabled","selected","highlighted"]);function ci(e){let{value:t,label:o,disabled:n,rootRef:r,id:a}=e,{getRootProps:i,highlighted:l,selected:s}=Ua({item:t}),{getRootProps:c,rootRef:p}=rn({disabled:n,focusableWhenDisabled:true}),d=W(a),f=ue.useRef(null),u=ue.useMemo(()=>({disabled:n,label:o,value:t,ref:f,id:d}),[n,o,t,d]),{index:m}=Bc(t,u),g=X(r,f,p),x=C=>S=>{C.onKeyDown?.(S),!S.defaultMuiPrevented&&[" ","Enter"].includes(S.key)&&(S.defaultMuiPrevented=true);},b=(C={})=>({onKeyDown:x(C)});return {getRootProps:(C={})=>{let S=$(C),v=Po(i,Po(c,b));return {...C,...S,...v(S),id:d,ref:g,role:"option","aria-selected":s}},highlighted:l,index:m,selected:s,rootRef:g}}function Au(e){let t=ue.useContext(st);if(!t)throw new Error("Option: ListContext was not found.");let{getItemState:o,dispatch:n}=t,{highlighted:r,selected:a,focusable:i}=o(e),l=ue.useCallback(c=>{if(c!==e)throw new Error(["MUI\xA0Base Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return {highlighted:r,selected:a,focusable:i}},[r,a,i,e]);return {contextValue:ue.useMemo(()=>({dispatch:n,getItemState:l}),[n,l])}}function tb(e){let{disabled:t,highlighted:o,selected:n}=e;return _({root:["root",t&&"disabled",o&&"highlighted",n&&"selected"]},Io(ku))}var Bu=ue.forwardRef(function(t,o){let{children:n,disabled:r=false,label:a,slotProps:i={},slots:l={},value:s,...c}=t,p=l.root??"li",d=ue.useRef(null),f=X(d,o),u=a??(typeof n=="string"?n:d.current?.textContent?.trim()),{getRootProps:m,selected:g,highlighted:x,index:b}=ci({disabled:r,label:u,rootRef:f,value:s}),C={...t,disabled:r,highlighted:x,index:b,selected:g},S=tb(C),v=aa({getSlotProps:m,elementType:p,externalSlotProps:i.root,externalForwardedProps:c,className:S.root,ownerState:C});return jsx(p,{...v,children:n})});process.env.NODE_ENV!=="production"&&(Bu.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var ob=ue.memo(Bu),pi=ue.forwardRef(function(t,o){let{value:n}=t,{contextValue:r}=Au(n);return jsx(st.Provider,{value:r,children:jsx(ob,{...t,ref:o})})});process.env.NODE_ENV!=="production"&&(pi.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var lb=e=>e!=="bgColor"&&e!=="fgColor",Ou=wa("div",{shouldForwardProp:lb})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
181
181
  background-color: ${t};
182
182
  border-color: ${t?.toUpperCase()==="#FFFFFF"?e.palette.ux.secondary.w100:"transparent"};
183
183
  border-style: solid;
@@ -260,7 +260,7 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
260
260
  bottom: 0;
261
261
  display: block;
262
262
  padding-top: ${e.spacing(1)};
263
- position: sticky;`);function bb(e){let t={root:pb,listbox:db,popup:mb,...e.slots},{children:o,...n}=e,r=n.options,a=useCallback(i=>{let l=(r??[]).find(s=>s.value===i?.value);return jsxs(Fragment,{children:[l?.icon&&jsx(gb,{children:l.icon}),jsx(hb,{children:l?.label})]})},[r]);return jsxs(kr,{renderValue:a,...n,slots:t,children:[r.map(({label:i,value:l,fgColor:s,bgColor:c,icon:u})=>jsxs(fb,{value:l,children:[u&&jsx(sb,{fgColor:s,bgColor:c,children:u}),jsx("span",{children:i})]},l)),o]})}function Sb({id:e,name:t,options:o,value:n="",onChange:r,dataQa:a,dataTags:i,children:l}){let[s,c]=useState(n);return useEffect(()=>{c(n);},[n]),jsx(bb,{id:e||t,name:t,options:o,"data-qa":a,"data-tags":i,value:s,onChange:(f,p)=>{c(p??""),r&&r({name:t,value:p??""});},children:jsx(xb,{children:l})})}var Cb=Sb;var $r=wa("div")(({theme:e})=>`
263
+ position: sticky;`);function bb(e){let t={root:pb,listbox:db,popup:mb,...e.slots},{children:o,...n}=e,r=n.options,a=useCallback(i=>{let l=(r??[]).find(s=>s.value===i?.value);return jsxs(Fragment,{children:[l?.icon&&jsx(gb,{children:l.icon}),jsx(hb,{children:l?.label})]})},[r]);return jsxs(kr,{renderValue:a,...n,slots:t,children:[r.map(({label:i,value:l,fgColor:s,bgColor:c,icon:p})=>jsxs(fb,{value:l,children:[p&&jsx(sb,{fgColor:s,bgColor:c,children:p}),jsx("span",{children:i})]},l)),o]})}function Sb({id:e,name:t,options:o,value:n="",onChange:r,dataQa:a,dataTags:i,children:l}){let[s,c]=useState(n);return useEffect(()=>{c(n);},[n]),jsx(bb,{id:e||t,name:t,options:o,"data-qa":a,"data-tags":i,value:s,onChange:(f,u)=>{c(u??""),r&&r({name:t,value:u??""});},children:jsx(xb,{children:l})})}var Cb=Sb;var $r=wa("div")(({theme:e})=>`
264
264
  align-items: center;
265
265
  display: flex;
266
266
  flex-direction: column;
@@ -278,5 +278,5 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
278
278
  width: ${e.spacing(3)};`),Tb=wa("div")(({theme:e})=>`
279
279
  width: 100%;
280
280
  color: ${e.palette.ux.deprecated.secondary.text.wMain};
281
- text-align: center;`),Eb={colors:5,icons:4},Hu=({fgColor:e,bgColor:t})=>`${e},${t}`,Rb=e=>{let[t,o]=e.split(",");return {fgColor:t,bgColor:o}},$u=32,Pb=32,Nu=8,Ib=5,Lb=16,Mb="No Results Found";function kb({id:e,name:t,variant:o="colors",icons:n,iconKeyOrderedList:r,label:a,value:i,helperText:l,title:s,hasErrors:c=false,required:u=false,disabled:d=false,readOnly:f=false,inlineLabel:p=false,displayEmpty:m=false,onChange:g,dataQa:C,dataTags:x,open:S,onOpen:b,onClose:v,menuAnchorOrigin:P,menuTransformOrigin:R,numOfItemsPerRow:I,numOfRowsDisplayed:M=Ib,contentControlPanel:E,getOptionDisplayValue:h,autoFocusItem:T=true,emptyStateMessage:w=Mb}){let z=ua$1(),O=z.palette.ux,[H,A]=useState(i),[W,D]=useState(null);useEffect(()=>{A(i);},[i]);let L=I||Eb[o],Y=useMemo(()=>Pb*L+Nu*(L-1),[L]),K=useMemo(()=>$u*M+Nu*(M-1)+$u/2,[M]),N=useMemo(()=>[{fgColor:O.primary.text.w100,bgColor:O.background.w10},{fgColor:O.primary.text.w100,bgColor:O.accent.n2.w20},{fgColor:O.primary.text.w100,bgColor:O.accent.n1.w20},{fgColor:O.primary.text.w100,bgColor:O.accent.n6.w30},{fgColor:O.primary.text.w100,bgColor:O.accent.n5.w60},{fgColor:O.primary.text.w100,bgColor:O.accent.n7.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n0.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n3.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n4.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n9.wMain}],[O]),re=useMemo(()=>o==="icons"&&E,[E,o]),ye=V=>{A(V.target.value),g&&g({name:t,value:V.target.value});},he=()=>e||t,be=()=>{let V=K;re?V=V+(W?.clientHeight||0):V=V-Lb/2;let F={maxHeight:`min(${V}px, calc(100% - 96px))`,padding:re?z.spacing(0,2,2,2):z.spacing(2)},Q={anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{autoFocusItem:T,className:"SolacePickerGrid",style:{gridTemplateColumns:`repeat(${L}, 1fr)`}},slotProps:{paper:{sx:F}}};return P&&(Q.anchorOrigin=P),R&&(Q.transformOrigin=R),Q},j=useCallback(()=>E?jsx(Yb,{ref:D,sx:{gridColumnStart:1,gridColumnEnd:L+1,padding:z.spacing(2,0,1,0),width:Y,height:"fit-content !important"},children:E}):null,[E,Y,L,z]),B=useCallback(()=>jsx(Yb,{sx:{gridColumnStart:1,gridColumnEnd:L+1,padding:z.spacing(0),width:Y,height:"fit-content !important"},children:jsx(Tb,{children:w})}),[Y,w,L,z]),q=useCallback(()=>o==="colors"?N.map(V=>{let F=Hu(V);return jsx(yf$1,{value:F,disableGutters:true,children:jsx(wb,{bgColor:V.bgColor,fgColor:V.fgColor,children:"Aa"})},F)}):null,[N,o]),k=useCallback(()=>{if(o==="icons"){let V=null;return n&&(r?V=r.map(F=>{let Q=n[F];return Q?jsx(yf$1,{value:F,disableGutters:true,children:jsx($r,{children:Q})},F):null}).filter(F=>F!==null):V=Object.entries(n).map(([F,Q])=>jsx(yf$1,{value:F,disableGutters:true,children:jsx($r,{children:Q})},F))),V?.length?V:B()}return null},[o,n,r,B]),J=()=>jsxs(bg,{id:he(),name:t,"data-qa":C,"data-tags":x,"aria-describedby":l?`${he()}-select-helper-text`:"","aria-labelledby":a?`${he()}-label`:"","aria-readonly":f,className:"SolacePickerGrid",title:s,disabled:d&&!f,readOnly:f,required:u,error:c,value:H,onChange:ye,IconComponent:a$1,MenuProps:be(),SelectDisplayProps:{style:{padding:"4px 40px 4px 4px"}},style:{width:"fit-content"},displayEmpty:m,onOpen:b,onClose:v,open:S,renderValue:h||void 0,children:[re&&j(),q(),k()]});return jsx(b$4,{id:he(),label:a,helperText:l,errorText:c?l:void 0,disabled:d,readOnly:f,required:u,inlineLabel:p,centerInlineLabel:p,children:J()})}var Ab=kb;var Ob=wa("div",{shouldForwardProp:e=>e!=="equalButtonWidth"})(({theme:e,equalButtonWidth:t=false})=>({display:"flex",flexDirection:"column",justifyContent:"stretch",rowGap:e.spacing(1),".MuiToggleButtonGroup-root":{boxSizing:"border-box",display:"grid",gridAutoFlow:"column",gridAutoColumns:t?"1fr":"minmax(0, auto)"}})),Db=wa("div",{shouldForwardProp:e=>e!=="equalButtonWidth"})(({theme:e,equalButtonWidth:t=false})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",columnGap:e.spacing(3),rowGap:e.spacing(1),flexWrap:"wrap",".MuiToggleButtonGroup-root":{boxSizing:"border-box",display:"grid",gridAutoFlow:"column",gridAutoColumns:t?"1fr":"minmax(0, auto)"}})),$b=({id:e,name:t,categoryOptions:o,selectedCategoryValue:n,categoryOptionsWidth:r,onCategoryChange:a,helperText:i,searchValue:l,placeholder:s,searchInputWidth:c,disabled:u=false,autoFocus:d=false,hasErrors:f=false,onSearchValueChange:p,onSearchInputFocus:m,onSearchInputBlur:g,onClearAll:C,layout:x="vertical",equalButtonWidth:S=false,dataQa:b})=>{let v=()=>jsxs(Fragment,{children:[o&&o.length>0&&jsx("div",{style:{width:r||"fit-content"},children:jsx(La,{options:o,activeValue:n,onChange:a,isDisabled:u,dataQa:b?`${b}-`:"solaceCategorizedButtons"})}),jsx(Aa,{id:e,name:t,value:l,onChange:p,type:"search_field",onFocus:m,onBlur:g,onClearAll:C,placeholder:s,width:c,disabled:u,autoFocus:d,hasErrors:f,helperText:i,dataQa:b?`${b}-`:"solaceCategorizedSearchInput"})]});return x==="horizontal"?jsx(Db,{equalButtonWidth:S,className:"solaceCategorizedSearch horizontalLayoutContainer","data-qa":b,children:v()}):jsx(Ob,{equalButtonWidth:S,className:"solaceCategorizedSearch verticalLayoutContainer","data-qa":b,children:v()})},Nb=$b;export{Mp as CHIP_COLORS,Xn as CHIP_PX_BORDER_RADIUS,zn as CHIP_PX_HEIGHTS,Vn as CHIP_VARIANT,jg as CheckCircleIcon,Te as CloseIcon,hg as FIELD_TYPES,Yr as InfoIcon,Dl as MODES,Kg as MoreHorizOutlinedIcon,vl as NoAccess,Ys as PROGRESS_HEIGHT,Nl as STATES,$l as STATUSES,ig as SolaceAccordion,Ol as SolaceAttributeBadge,Rl as SolaceAutoCompleteTextField,Tl as SolaceBackDrop,Ia as SolaceBreadcrumb,Zg as SolaceCard,Na as SolaceCardHeader,Nb as SolaceCategorizedSearch,th as SolaceCategorizedSearchLayout,Tt as SolaceChip,yf as SolaceChipTextArea,Wt as SolaceCircularProgress,yd as SolaceConfirmationDialog,Qd as SolaceDetailMessage,km as SolaceDrawer,lc as SolaceEmptyStateBanner,bc as SolaceEnvironmentChip,Cc as SolaceEnvironmentLabel,Cb as SolaceEnvironmentSelectChip,Np as SolaceErrorBox,fr as SolaceFeatureTag,xc as SolaceFileUploader,Js as SolaceGrid,Ca as SolaceGridList,Wm as SolaceGridListMultiSelect,yc as SolaceIconTabs,ed as SolaceLearningBanner,lr as SolaceLearningButton,Ks as SolaceLinearProgress,yg as SolaceList,Tg as SolaceListItem,Pg as SolaceListItemButton,ho as SolaceMenu,ta as SolaceMenuItem,Up as SolaceMessageBox,Ym as SolaceNotificationCounter,Ec as SolacePageHeader,wm as SolacePagination,jl as SolacePanelPosition,Ab as SolacePicker,$r as SolacePickerIconWrapper,Em as SolacePopover,Cp as SolaceRadio,Pp as SolaceRadioGroup,ua as SolaceResponsiveItemList,Aa as SolaceSearchAndFilter,Nd as SolaceSelectAutocomplete,Gd as SolaceSelectAutocompleteItem,bf as SolaceSelectAutocompleteResponsiveTags,hd as SolaceSidePanelLayout,og as SolaceSplitPane,it as SolaceStack,ic as SolaceStepper,fm as SolaceTable,nt as SolaceTableData,kf as SolaceTableNumberData,qo as SolaceTableSelectionType,da as SolaceTableSortDirection,ud as SolaceTabs,Fl as SolaceTag,Cl as SolaceToasts,Pf as SolaceToggle,La as SolaceToggleButtonGroup,dh as SolaceTruncatableLink,eh as StepContentOverflow,uc as TitleLocation,Hu as color2value,_d as getShowSolaceSelectAutocompleteOptionDivider,zd as getSolaceSelectAutocompleteGroupBy,Fd as getSolaceSelectAutocompleteOptionLabel,Vd as isSolaceSelectAutocompleteOptionEqual,Rb as value2color};//# sourceMappingURL=index.modern.mjs.map
281
+ text-align: center;`),Eb={colors:5,icons:4},Hu=({fgColor:e,bgColor:t})=>`${e},${t}`,Rb=e=>{let[t,o]=e.split(",");return {fgColor:t,bgColor:o}},$u=32,Pb=32,Nu=8,Ib=5,Lb=16,Mb="No Results Found";function kb({id:e,name:t,variant:o="colors",icons:n,iconKeyOrderedList:r,label:a,value:i,helperText:l,title:s,hasErrors:c=false,required:p=false,disabled:d=false,readOnly:f=false,inlineLabel:u=false,displayEmpty:m=false,onChange:g,dataQa:x,dataTags:b,open:C,onOpen:S,onClose:v,menuAnchorOrigin:P,menuTransformOrigin:R,numOfItemsPerRow:I,numOfRowsDisplayed:M=Ib,contentControlPanel:E,getOptionDisplayValue:h,autoFocusItem:T=true,emptyStateMessage:w=Mb}){let z=ua$1(),O=z.palette.ux,[H,A]=useState(i),[W,D]=useState(null);useEffect(()=>{A(i);},[i]);let L=I||Eb[o],Y=useMemo(()=>Pb*L+Nu*(L-1),[L]),K=useMemo(()=>$u*M+Nu*(M-1)+$u/2,[M]),N=useMemo(()=>[{fgColor:O.primary.text.w100,bgColor:O.background.w10},{fgColor:O.primary.text.w100,bgColor:O.accent.n2.w20},{fgColor:O.primary.text.w100,bgColor:O.accent.n1.w20},{fgColor:O.primary.text.w100,bgColor:O.accent.n6.w30},{fgColor:O.primary.text.w100,bgColor:O.accent.n5.w60},{fgColor:O.primary.text.w100,bgColor:O.accent.n7.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n0.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n3.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n4.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n9.wMain}],[O]),re=useMemo(()=>o==="icons"&&E,[E,o]),ye=V=>{A(V.target.value),g&&g({name:t,value:V.target.value});},he=()=>e||t,be=()=>{let V=K;re?V=V+(W?.clientHeight||0):V=V-Lb/2;let F={maxHeight:`min(${V}px, calc(100% - 96px))`,padding:re?z.spacing(0,2,2,2):z.spacing(2)},Q={anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{autoFocusItem:T,className:"SolacePickerGrid",style:{gridTemplateColumns:`repeat(${L}, 1fr)`}},slotProps:{paper:{sx:F}}};return P&&(Q.anchorOrigin=P),R&&(Q.transformOrigin=R),Q},j=useCallback(()=>E?jsx(Yb,{ref:D,sx:{gridColumnStart:1,gridColumnEnd:L+1,padding:z.spacing(2,0,1,0),width:Y,height:"fit-content !important"},children:E}):null,[E,Y,L,z]),B=useCallback(()=>jsx(Yb,{sx:{gridColumnStart:1,gridColumnEnd:L+1,padding:z.spacing(0),width:Y,height:"fit-content !important"},children:jsx(Tb,{children:w})}),[Y,w,L,z]),q=useCallback(()=>o==="colors"?N.map(V=>{let F=Hu(V);return jsx(yf$1,{value:F,disableGutters:true,children:jsx(wb,{bgColor:V.bgColor,fgColor:V.fgColor,children:"Aa"})},F)}):null,[N,o]),k=useCallback(()=>{if(o==="icons"){let V=null;return n&&(r?V=r.map(F=>{let Q=n[F];return Q?jsx(yf$1,{value:F,disableGutters:true,children:jsx($r,{children:Q})},F):null}).filter(F=>F!==null):V=Object.entries(n).map(([F,Q])=>jsx(yf$1,{value:F,disableGutters:true,children:jsx($r,{children:Q})},F))),V?.length?V:B()}return null},[o,n,r,B]),J=()=>jsxs(bg,{id:he(),name:t,"data-qa":x,"data-tags":b,"aria-describedby":l?`${he()}-select-helper-text`:"","aria-labelledby":a?`${he()}-label`:"","aria-readonly":f,className:"SolacePickerGrid",title:s,disabled:d&&!f,readOnly:f,required:p,error:c,value:H,onChange:ye,IconComponent:a$1,MenuProps:be(),SelectDisplayProps:{style:{padding:"4px 40px 4px 4px"}},style:{width:"fit-content"},displayEmpty:m,onOpen:S,onClose:v,open:C,renderValue:h||void 0,children:[re&&j(),q(),k()]});return jsx(b$4,{id:he(),label:a,helperText:l,errorText:c?l:void 0,disabled:d,readOnly:f,required:p,inlineLabel:u,centerInlineLabel:u,children:J()})}var Ab=kb;var Ob=wa("div",{shouldForwardProp:e=>e!=="equalButtonWidth"})(({theme:e,equalButtonWidth:t=false})=>({display:"flex",flexDirection:"column",justifyContent:"stretch",rowGap:e.spacing(1),".MuiToggleButtonGroup-root":{boxSizing:"border-box",display:"grid",gridAutoFlow:"column",gridAutoColumns:t?"1fr":"minmax(0, auto)"}})),Db=wa("div",{shouldForwardProp:e=>e!=="equalButtonWidth"})(({theme:e,equalButtonWidth:t=false})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",columnGap:e.spacing(3),rowGap:e.spacing(1),flexWrap:"wrap",".MuiToggleButtonGroup-root":{boxSizing:"border-box",display:"grid",gridAutoFlow:"column",gridAutoColumns:t?"1fr":"minmax(0, auto)"}})),$b=({id:e,name:t,categoryOptions:o,selectedCategoryValue:n,categoryOptionsWidth:r,onCategoryChange:a,helperText:i,searchValue:l,placeholder:s,searchInputWidth:c,disabled:p=false,autoFocus:d=false,hasErrors:f=false,onSearchValueChange:u,onSearchInputFocus:m,onSearchInputBlur:g,onClearAll:x,layout:b="vertical",equalButtonWidth:C=false,dataQa:S})=>{let v=()=>jsxs(Fragment,{children:[o&&o.length>0&&jsx("div",{style:{width:r||"fit-content"},children:jsx(La,{options:o,activeValue:n,onChange:a,isDisabled:p,dataQa:S?`${S}-`:"solaceCategorizedButtons"})}),jsx(Aa,{id:e,name:t,value:l,onChange:u,type:"search_field",onFocus:m,onBlur:g,onClearAll:x,placeholder:s,width:c,disabled:p,autoFocus:d,hasErrors:f,helperText:i,dataQa:S?`${S}-`:"solaceCategorizedSearchInput"})]});return b==="horizontal"?jsx(Db,{equalButtonWidth:C,className:"solaceCategorizedSearch horizontalLayoutContainer","data-qa":S,children:v()}):jsx(Ob,{equalButtonWidth:C,className:"solaceCategorizedSearch verticalLayoutContainer","data-qa":S,children:v()})},Nb=$b;export{Mp as CHIP_COLORS,Xn as CHIP_PX_BORDER_RADIUS,zn as CHIP_PX_HEIGHTS,Vn as CHIP_VARIANT,jg as CheckCircleIcon,Te as CloseIcon,hg as FIELD_TYPES,Yr as InfoIcon,Dl as MODES,Kg as MoreHorizOutlinedIcon,vl as NoAccess,Ys as PROGRESS_HEIGHT,Nl as STATES,$l as STATUSES,ig as SolaceAccordion,Ol as SolaceAttributeBadge,Rl as SolaceAutoCompleteTextField,Tl as SolaceBackDrop,Ia as SolaceBreadcrumb,Zg as SolaceCard,Na as SolaceCardHeader,Nb as SolaceCategorizedSearch,th as SolaceCategorizedSearchLayout,Tt as SolaceChip,yf as SolaceChipTextArea,Wt as SolaceCircularProgress,yd as SolaceConfirmationDialog,Qd as SolaceDetailMessage,km as SolaceDrawer,lc as SolaceEmptyStateBanner,bc as SolaceEnvironmentChip,Cc as SolaceEnvironmentLabel,Cb as SolaceEnvironmentSelectChip,Np as SolaceErrorBox,fr as SolaceFeatureTag,xc as SolaceFileUploader,Js as SolaceGrid,Ca as SolaceGridList,Wm as SolaceGridListMultiSelect,yc as SolaceIconTabs,ed as SolaceLearningBanner,lr as SolaceLearningButton,Ks as SolaceLinearProgress,yg as SolaceList,Tg as SolaceListItem,Pg as SolaceListItemButton,ho as SolaceMenu,ta as SolaceMenuItem,Up as SolaceMessageBox,Ym as SolaceNotificationCounter,Ec as SolacePageHeader,wm as SolacePagination,jl as SolacePanelPosition,Ab as SolacePicker,$r as SolacePickerIconWrapper,Em as SolacePopover,Cp as SolaceRadio,Pp as SolaceRadioGroup,ua as SolaceResponsiveItemList,Aa as SolaceSearchAndFilter,Nd as SolaceSelectAutocomplete,Gd as SolaceSelectAutocompleteItem,bf as SolaceSelectAutocompleteResponsiveTags,hd as SolaceSidePanelLayout,og as SolaceSplitPane,it as SolaceStack,ic as SolaceStepper,fm as SolaceTable,nt as SolaceTableData,kf as SolaceTableNumberData,qo as SolaceTableSelectionType,da as SolaceTableSortDirection,ud as SolaceTabs,Fl as SolaceTag,Cl as SolaceToasts,Pf as SolaceToggle,La as SolaceToggleButtonGroup,dh as SolaceTruncatableLink,eh as StepContentOverflow,uc as TitleLocation,Hu as color2value,_d as getShowSolaceSelectAutocompleteOptionDivider,zd as getSolaceSelectAutocompleteGroupBy,Fd as getSolaceSelectAutocompleteOptionLabel,Vd as isSolaceSelectAutocompleteOptionEqual,Rb as value2color};//# sourceMappingURL=index.modern.mjs.map
282
282
  //# sourceMappingURL=index.modern.mjs.map