solace-ui-components 18.0.3 → 18.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-VYHLNTMX.modern.mjs → chunk-2KEJ5AH7.modern.mjs} +2 -2
- package/dist/chunk-2KEJ5AH7.modern.mjs.map +1 -0
- package/dist/chunk-BZZXLG3M.modern.mjs +4 -0
- package/dist/chunk-BZZXLG3M.modern.mjs.map +1 -0
- package/dist/{chunk-SXQRCXMP.js → chunk-JDGMAWN5.js} +2 -2
- package/dist/chunk-JDGMAWN5.js.map +1 -0
- package/dist/chunk-YEEQBFPE.js +4 -0
- package/dist/chunk-YEEQBFPE.js.map +1 -0
- package/dist/drag-drop.js +1 -1
- package/dist/drag-drop.modern.mjs +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -3
- package/dist/index.modern.mjs.map +1 -1
- package/dist/json-schema-form.js +1 -1
- package/dist/json-schema-form.modern.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-HQH2WKJP.modern.mjs +0 -4
- package/dist/chunk-HQH2WKJP.modern.mjs.map +0 -1
- package/dist/chunk-SKQ7JGO5.js +0 -4
- package/dist/chunk-SKQ7JGO5.js.map +0 -1
- package/dist/chunk-SXQRCXMP.js.map +0 -1
- package/dist/chunk-VYHLNTMX.modern.mjs.map +0 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -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-HQH2WKJP.modern.mjs';export{a as SelectDropdownIcon,l as SolaceCheckBox,n as SolaceSelect,o as SolaceTextArea,m as SolaceTypography}from'./chunk-HQH2WKJP.modern.mjs';import {b as b$2}from'./chunk-LGBO373S.modern.mjs';export{b as SolaceButton,a as initializeDataTrackingApi}from'./chunk-LGBO373S.modern.mjs';import {b as b$4,c as c$1,d as d$2}from'./chunk-VYHLNTMX.modern.mjs';export{a as SolaceLabel,d as SolaceTextField}from'./chunk-VYHLNTMX.modern.mjs';import {b as b$1,a as a$2,d,e as e$1,f as f$1}from'./chunk-54TEARQI.modern.mjs';export{b as SolaceTooltip,a as TooltipVariant}from'./chunk-54TEARQI.modern.mjs';export{a as SolaceStackLabel}from'./chunk-QKQRCYG4.modern.mjs';import {a,wa,me,xc,_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,E,Y,ug,Hb,Kb,Db,Le,he,Of,Rf as Rf$1,D,le as le$1,Na as Na$1,Xh as Xh$1,Td as Td$1,Gb,Ad as Ad$1,Md as Md$1,Id as Id$1,Ld as Ld$1,Dd as Dd$1,yf,hf,vf,Pd as Pd$1,Yb,sf as sf$1,kh as kh$1,Nf,Mf as Mf$1,P,kb,yb,qb,Ig as Ig$1,Lc as Lc$1,bi,Oe,Ue as Ue$1,bf as bf$1,Ze as Ze$1,Qc as Qc$1,gh as gh$1,Zg as Zg$1,Wg as Wg$1,Qg as Qg$1,Bg,Wc as Wc$1,dd,ad as ad$1,bg,Uf as Uf$1,nc,nh as nh$1,Ac as Ac$1}from'./chunk-I7OJ5H4U.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-I7OJ5H4U.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,Fragment as Fragment$1}from'react';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 zm from'react-dom/server';import {Link}from'react-router-dom';import {ArrowLeft24Icon,ArrowRight24Icon}from'@SolaceDev/maas-icons';import qg from'@emotion/styled';import*as uu from'react-dom';var ic=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:"toast",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 sp=wa(me)(()=>({minHeight:"calc(100vh - 108px)"}));function vl(e){return jsxs(sp,{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 cp=wa(xc)(({theme:e})=>({zIndex:e.zIndex.drawer+1,color:e.palette.ux.primary.text.w10}));function Tl(e){return jsx(cp,{...e,children:jsx(Db,{})})}var up=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(up,{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 Me=24;function Pl(){return jsx("circle",{className:"SolaceRadioContainer",cx:Me/2,cy:Me/2,r:Me/2-2})}function Il(){return jsx(Na$1,{width:Me,height:Me,viewBox:`0 0 ${Me} ${Me}`,children:jsx(Pl,{})})}function Ll(){return jsxs(Na$1,{width:Me,height:Me,viewBox:`0 0 ${Me} ${Me}`,children:[jsx(Pl,{}),jsx("circle",{className:"SolaceRadioSelection",cx:Me/2,cy:Me/2,r:Me/4})]})}function fp({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 mp({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(),[b,x]=useState(l),T=Of();useEffect(()=>{x(l);},[l]),useEffect(()=>{T&&x(T.value===n);},[T,n]);let v=y=>{x(y.target.checked),d&&y.target.checked&&d({name:t,value:y.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:{"aria-labelledby":o?`${e}-label`:"","data-qa":f,"data-tags":p},role:"radio",title:r,className:D({readOnly:m}),disabled:c||m,disableRipple:true,checked:b,onChange:v,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(fp,{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 gp=mp;var Cp={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1};function yp({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 b=ua$1(),[x,T]=useState(i),v=useRef(null);useEffect(()=>{T(i);},[i]);let y=M=>{T(M.target.value),m&&m({name:t,value:M.target.value});};e||(e=t),useEffect(()=>{let M=v.current;if(!M)return;let E=M.querySelector(`input[value="${x}"]`)??M.querySelector("input");E&&E instanceof HTMLElement&&E.focus();},[x]);let I=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||I.length===0)return;let E=Cp[M.key]??0;if(E===0)return;M.preventDefault();let h=x?I.indexOf(x):0,w=(h+E+I.length)%I.length;if(w!==h){let C=I[w];T(C),m?.({name:t,value:C});}},P=()=>{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$1,{"aria-label":t,name:t,role:"radiogroup",value:x,onChange:y,onKeyDown:R,ref:v,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:b.spacing(1),marginBottom:s?b.spacing(1.25):0},children:P()})})}var vp=yp;var wp={xs:12,sm:18,md:24,lg:30},Tp={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 b=ua$1().palette.ux.deprecated.chip;return jsx($b,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&b[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${Tp[l]}px`,fontWeight:`${c?500:400}`,height:`${wp[u]}px`,backgroundColor:`${s&&b[s]}`,color:`${i&&b[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 Ep=(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))(Ep||{}),_n=(o=>(o.FILLED="filled",o.OUTLINED="outlined",o))(_n||{}),Vn={xs:14,sm:18,md:24,lg:30},zn={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 wt({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:b="",state:x="notSelectedState",icon:T,onDelete:v,onClick:y}){let I=ua$1().palette.ux.deprecated.chip,R=ua$1();return jsx($b,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&I[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${zn[l]}px`,fontWeight:`${c?500:400}`,height:`${Vn[u]}px`,backgroundColor:`${s&&I[s]}`,color:`${i&&I[i]}`,paddingLeft:`${p?"0px":"2px"}`,paddingRight:`${p?"0px":"2px"}`},label:e,variant:t,size:p?"small":"medium",disabled:o,clickable:m,onDelete:v,deleteIcon:jsx(h,{}),"data-qa":d$1,className:`solaceChip ${g} ${b} ${x}`,onClick:y,icon:jsxs(Fragment,{children:[T&&jsx("span",{className:"leadingIcon",children:T}),b==="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,{sx:{maxWidth:typeof o=="number"?`${o}px`:o,fontSize:`${ni$1.xs}px`,borderColor:`${r&&c[r]} !important`,borderRadius:`${zn.xs}px`,fontWeight:400,height:`${Vn.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,Nt=()=>c$1.closeButtonAriaLabel,Vl=()=>c$1.actionMenuAriaLabel;var Lp=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})),Mp=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(),padding:e.spacing()}));function kp({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(Lp,{children:[jsxs(Mp,{children:[t&&jsx(d,{size:20,fill:r.palette.ux.error.w100}),e]}),o&&jsx(b$2,{"aria-label":Nt(),variant:"icon",onClick:l,children:jsx(Te,{size:24})})]}):null}var Ap=kp;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-BZZXLG3M.modern.mjs';export{a as SelectDropdownIcon,l as SolaceCheckBox,n as SolaceSelect,o as SolaceTextArea,m as SolaceTypography}from'./chunk-BZZXLG3M.modern.mjs';import {b as b$2}from'./chunk-LGBO373S.modern.mjs';export{b as SolaceButton,a as initializeDataTrackingApi}from'./chunk-LGBO373S.modern.mjs';import {b as b$4,c as c$1,d as d$2}from'./chunk-2KEJ5AH7.modern.mjs';export{a as SolaceLabel,d as SolaceTextField}from'./chunk-2KEJ5AH7.modern.mjs';import {b as b$1,a as a$2,d,e as e$1,f as f$1}from'./chunk-54TEARQI.modern.mjs';export{b as SolaceTooltip,a as TooltipVariant}from'./chunk-54TEARQI.modern.mjs';export{a as SolaceStackLabel}from'./chunk-QKQRCYG4.modern.mjs';import {a,wa,me,xc,_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,E,Y,ug,Hb,Kb,Db,Le,he,Of,Rf as Rf$1,D,le as le$1,Na as Na$1,Xh as Xh$1,Td as Td$1,Gb,Ad as Ad$1,Md as Md$1,Id as Id$1,Ld as Ld$1,Dd as Dd$1,yf,hf,vf,Pd as Pd$1,Yb,sf as sf$1,kh as kh$1,Nf,Mf as Mf$1,P,kb,yb,qb,Ig as Ig$1,Lc as Lc$1,bi,Oe,Ue as Ue$1,bf as bf$1,Ze as Ze$1,Qc as Qc$1,gh as gh$1,Zg as Zg$1,Wg as Wg$1,Qg as Qg$1,Bg,Wc as Wc$1,dd,ad as ad$1,bg,Uf as Uf$1,nc,nh as nh$1,Ac as Ac$1}from'./chunk-I7OJ5H4U.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-I7OJ5H4U.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,Fragment as Fragment$1}from'react';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 zm from'react-dom/server';import {Link}from'react-router-dom';import {ArrowLeft24Icon,ArrowRight24Icon}from'@SolaceDev/maas-icons';import qg from'@emotion/styled';import*as uu from'react-dom';var ic=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 sp=wa(me)(()=>({minHeight:"calc(100vh - 108px)"}));function vl(e){return jsxs(sp,{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 cp=wa(xc)(({theme:e})=>({zIndex:e.zIndex.drawer+1,color:e.palette.ux.primary.text.w10}));function Tl(e){return jsx(cp,{...e,children:jsx(Db,{})})}var up=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(up,{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 Me=24;function Pl(){return jsx("circle",{className:"SolaceRadioContainer",cx:Me/2,cy:Me/2,r:Me/2-2})}function Il(){return jsx(Na$1,{width:Me,height:Me,viewBox:`0 0 ${Me} ${Me}`,children:jsx(Pl,{})})}function Ll(){return jsxs(Na$1,{width:Me,height:Me,viewBox:`0 0 ${Me} ${Me}`,children:[jsx(Pl,{}),jsx("circle",{className:"SolaceRadioSelection",cx:Me/2,cy:Me/2,r:Me/4})]})}function fp({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 mp({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(),[b,x]=useState(l),T=Of();useEffect(()=>{x(l);},[l]),useEffect(()=>{T&&x(T.value===n);},[T,n]);let v=y=>{x(y.target.checked),d&&y.target.checked&&d({name:t,value:y.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:{"aria-labelledby":o?`${e}-label`:"","data-qa":f,"data-tags":p},title:r,className:D({readOnly:m}),disabled:c||m,disableRipple:true,checked:b,onChange:v,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(fp,{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 gp=mp;var Cp={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1};function yp({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 b=ua$1(),[x,T]=useState(i),v=useRef(null);useEffect(()=>{T(i);},[i]);let y=M=>{T(M.target.value),m&&m({name:t,value:M.target.value});};e||(e=t),useEffect(()=>{let M=v.current;if(!M)return;let E=M.querySelector(`input[value="${x}"]`)??M.querySelector("input");E&&E instanceof HTMLElement&&E.focus();},[x]);let I=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||I.length===0)return;let E=Cp[M.key]??0;if(E===0)return;M.preventDefault();let h=x?I.indexOf(x):0,w=(h+E+I.length)%I.length;if(w!==h){let C=I[w];T(C),m?.({name:t,value:C});}},P=()=>{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$1,{"aria-label":t,name:t,role:"radiogroup",value:x,onChange:y,onKeyDown:R,ref:v,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:b.spacing(1),marginBottom:s?b.spacing(1.25):0},children:P()})})}var vp=yp;var wp={xs:12,sm:18,md:24,lg:30},Tp={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 b=ua$1().palette.ux.deprecated.chip;return jsx($b,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&b[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${Tp[l]}px`,fontWeight:`${c?500:400}`,height:`${wp[u]}px`,backgroundColor:`${s&&b[s]}`,color:`${i&&b[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 Ep=(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))(Ep||{}),_n=(o=>(o.FILLED="filled",o.OUTLINED="outlined",o))(_n||{}),Vn={xs:14,sm:18,md:24,lg:30},zn={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 wt({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:b="",state:x="notSelectedState",icon:T,onDelete:v,onClick:y}){let I=ua$1().palette.ux.deprecated.chip,R=ua$1();return jsx($b,{sx:{maxWidth:typeof n=="number"?`${n}px`:n,fontSize:ni$1[f],borderColor:`${a&&I[a]}`,borderStyle:`${r&&"dashed"}`,borderRadius:`${zn[l]}px`,fontWeight:`${c?500:400}`,height:`${Vn[u]}px`,backgroundColor:`${s&&I[s]}`,color:`${i&&I[i]}`,paddingLeft:`${p?"0px":"2px"}`,paddingRight:`${p?"0px":"2px"}`},label:e,variant:t,size:p?"small":"medium",disabled:o,clickable:m,onDelete:v,deleteIcon:jsx(h,{}),"data-qa":d$1,className:`solaceChip ${g} ${b} ${x}`,onClick:y,icon:jsxs(Fragment,{children:[T&&jsx("span",{className:"leadingIcon",children:T}),b==="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,{sx:{maxWidth:typeof o=="number"?`${o}px`:o,fontSize:`${ni$1.xs}px`,borderColor:`${r&&c[r]} !important`,borderRadius:`${zn.xs}px`,fontWeight:400,height:`${Vn.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,Nt=()=>c$1.closeButtonAriaLabel,Vl=()=>c$1.actionMenuAriaLabel;var Lp=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})),Mp=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(),padding:e.spacing()}));function kp({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(Lp,{children:[jsxs(Mp,{children:[t&&jsx(d,{size:20,fill:r.palette.ux.error.w100}),e]}),o&&jsx(b$2,{"aria-label":Nt(),variant:"icon",onClick:l,children:jsx(Te,{size:24})})]}):null}var Ap=kp;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
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 Op=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.container})),Dp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.messageContainer})),$p=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.detailsContainer})),Np=wa("div",{shouldForwardProp:e=>e!=="color"})(({theme:e,color:t})=>({...e.mixins.component_MessageBox.messageTextContainer,color:t})),Hp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.iconContainer})),Fp=wa("div")(({theme:e})=>({...e.mixins.component_MessageBox.message}));function _p(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 Vp({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(Op,{className:r,"data-qa":s,"data-tags":c,children:[jsxs(Dp,{children:[jsxs(Fp,{className:`${i?"dense":""}`,children:[t&&jsx(Hp,{className:`iconContainer ${i?"dense":""}`,children:_p(f,r)}),jsx(Np,{color:m(),children:e})]}),o&&jsx(b$2,{"aria-label":Nt(),variant:"icon",onClick:p,children:jsx(Te,{size:24})})]}),!!l&&jsx($p,{children:l})]})}):null}var zp=Vp;var Wp=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)})),Jp=wa("div")({display:"flex",justifyContent:"space-between",alignItems:"center"}),Up=wa("div")(({theme:e})=>({fontSize:e.typography.subtitle1.fontSize,fontWeight:e.typography.fontWeightMedium}));function qp({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(Wp,{backgroundColor:r,hasTitle:!!e,"data-qa":a,"data-tags":i,children:[e&&jsxs(Fragment,{children:[jsxs(Jp,{children:[isValidElement(e)?e:jsx(Up,{children:e}),o&&jsx(b$2,{"aria-label":Nt(),variant:"icon",onClick:c,children:jsx(Te,{size:24})})]}),t]}),!e&&jsxs(Fragment,{children:[t,o&&jsx("div",{children:jsx(b$2,{"aria-label":Nt(),variant:"icon",onClick:c,children:jsx(Te,{size:24})})})]})]}):null}var Zp=qp;var Yp=(e,t)=>({height:"100%",fontSize:ni$1[t],"&.Mui-focusVisible":{padding:"11px 15px 13px 15px",border:`1px solid ${e.palette.ux.accent.n2.wMain}`}});function Kp(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=>Yp(a,o),...n})}function Qp({tabs:e,activeTabValue:t,onTabClick:o,size:n="sm",variant:r="standard"}){let[a,i]=ue.useState(()=>e.findIndex(c=>c.value===t));ue.useEffect(()=>{let c=e.findIndex(u=>u.value===t);c!==-1&&i(c);},[t,e]);let l=(c,u)=>{o?.(u);},s=c=>{let{key:u}=c;if(["ArrowRight","ArrowDown"].includes(u)){c.preventDefault();let d=(a+1)%e.length;i(d);}else if(["ArrowLeft","ArrowUp"].includes(u)){c.preventDefault();let d=(a-1+e.length)%e.length;i(d);}else (u===" "||u==="Enter")&&(c.preventDefault(),o?.(e[a].value));};return jsx(Ic$1,{sx:{width:"100%",fontSize:ni$1[n]},children:jsx(Xh$1,{value:t,onChange:l,onKeyDown:s,className:e.length===1?"singleTab":"",variant:r,children:e.map(c=>createElement(Kp,{...c,key:`anchorTab-${c.value}`,size:n,tabIndex:c.value===t?0:-1}))})})}var jp=Qp;var ql=(o=>(o.LEFT="left",o.RIGHT="right",o))(ql||{}),nd=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 rd({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$1,{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(nd,{showSidePanel:d,sidePanelPosition:r,sidePanelWidth:n,overlayContent:a,children:e})]})}var ad=rd;var id=wa("div")(({theme:e})=>({marginRight:"auto",paddingRight:e.spacing(1)})),ld=wa("div")(({theme:e})=>({margin:`${e.spacing(2)} -${e.spacing(3)} -${e.spacing(3)}`}));function sd({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}){return jsxs(Ad$1,{open:a,maxWidth:i,className:`${s?"linearProgressIndicator":""} ${r?"disableDefaultPadding":""}`,children:[jsx(Md$1,{children:jsx("div",{"data-qa":"title",style:{wordBreak:"break-word"},children:e})}),jsxs(Id$1,{"data-qa":"content",sx:{display:l},children:[t&&jsx(Ld$1,{children:t}),c]}),(n||o&&o.length>0)&&jsxs(Dd$1,{children:[n&&jsx(id,{children:n}),o?.map(p=>jsx(b$2,{dataQa:p.dataQa,onClick:p.onClick,variant:p.variant??"text",isDisabled:p.isDisabled,endIcon:p.endIcon,children:p.label},p.label))]}),u&&jsx(ld,{children:u})]})}var cd=sd;var Et=({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 fd=335,Kl=({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=fd,subMenuDirection:g="right",dataQa:b,dataTags:x})=>{let T=ua$1(),[v,y]=useState(null),[I,R]=useState(null),[P,M]=useState(false),[E,h]=useState("right"),w=!!v,C=A=>{A.stopPropagation(),y(null),M(false),R(null),l&&l(A);},z=A=>{let G=A.currentTarget;y(G);},O=()=>{y(null),M(false),R(null);};useEffect(()=>{if(I&&v){let A=I.offsetWidth,G=v.getBoundingClientRect(),D=window.innerWidth-G.right,L=G.left,Y;g==="left"?Y=L>=A||L>D:Y=D<A,h(Y?"left":"right"),M(true);}else v||(M(false),h("right"));},[I,v,g]);let H=()=>{if(!u||u.length===0)return null;let A=groupBy(u,D=>D.categoryHeading),G=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(Kl,{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:C,subMenuItems:N?.subMenuItems,subMenuMaxWidth:N.subMenuMaxWidth??m,subMenuDirection:E},`${N.name}-${re}`));return L.push(K),L});return flatten(G)};return jsxs(Fragment,{children:[jsxs(yf,{id:e,"data-qa":b,"data-tags":x,onClick:A=>{A.stopPropagation(),d&&C(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,{className:"menuItemIcon",style:{paddingRight:T.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:T.spacing(3)}`,width:"auto"},justifyContent:"end",alignItems:"center",className:"menuItemIcon",children:a}),u&&u.length>0&&jsx(me,{container:true,sx:{marginLeft:T.spacing(3),width:"auto"},alignItems:"center",children:jsx(Et,{})})]}):t,u&&u.length>0&&jsx(vf,{id:e,"data-qa":`${b}-subMenu-${e}`,"data-tags":`${x}-subMenu-${e}`,anchorEl:v,open:w,anchorOrigin:{vertical:"top",horizontal:E==="left"?"left":"right"},transformOrigin:{vertical:"top",horizontal:E==="left"?"right":"left"},onClose:C,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:P?1:0,transition:"opacity 0.1s ease-in-out"},children:jsx("div",{style:{pointerEvents:P?"auto":"none"},children:H()})},`key-${e}`)]},e),!!s&&jsx(Pd$1,{})]})},ta=Kl;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%)",b="none";return f==="isTop"?b=m:f==="isBetween"?b=g:f==="isBottom"&&(b=p),b},[u])(),scrollPosition:u(),resetScrollPosition:c,onScrollHandler:s}}var bd=9,Cd=335,Ql=32;function go(e){let{id:t="solace-menu",buttonProps:o,items:n,header:r,numOfMenuItemDisplayed:a=bd,maxWidth:i=Cd,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:b}=Zn(),x=l?58:38,[T,v]=useState(null),[y,I]=useState(null),[R,P]=useState(),M=H=>{P(H.currentTarget.classList),s||H.stopPropagation(),n?.length&&v(H.currentTarget),H.currentTarget.classList.toggle("pressed"),o.onClick&&o.onClick(H);},E=H=>{R?.remove("pressed"),P(R),H.stopPropagation(),v(null),b();},h=groupBy(n,H=>H.categoryHeading),w=useMemo(()=>Object.keys(h).filter(H=>H!=="undefined").length,[h]),C=useMemo(()=>x*a+x/2+w*Ql+(r?1:0)*Ql+8,[w,r,x,a]),z=useMemo(()=>n?n.length>a:false,[n,a]),O=Object.keys(h).map(H=>{let A=[],G=H==="undefined"?null:jsx(Yb,{className:"categoryHeader",children:H},H);A.push(G);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=y;return H?.addEventListener("scroll",g),()=>{H?.removeEventListener("scroll",g);}},[y,g]),jsxs(Fragment$1,{children:[jsx(b$2,{"aria-label":Vl(),...o,onClick:M}),z&&jsx(sf$1,{anchorEl:T,open:!!T,anchorOrigin:u,transformOrigin:d,onClose:E,className:"SolaceMenuPopover",PaperProps:{style:{width:y?.offsetWidth,height:y?.offsetHeight}},transitionDuration:303}),jsxs(vf,{id:t,"data-qa":f,"data-tags":p,anchorEl:T,open:!!T,anchorOrigin:u,transformOrigin:d,onClose:E,slotProps:{paper:{style:{maxHeight:`${C}px`,maskImage:z?m:"none",WebkitMaskImage:z?m:"none",maxWidth:`${i}px`},ref:H=>{I(H);},onClick:H=>{H.stopPropagation();}}},className:"SolaceMenu",children:[r&&jsx(Yb,{children:r}),flatten(O)]},`key-${t}`)]})}var yd=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)}})),vd=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 wd({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$1,{}),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 Td({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:b,getShowOptionDividerCallback:x,shouldClearSearchOnSelectCallback:T,groupByCallback:v,showGroupDivider:y=false,dataQa:I,dataTags:R,options:P,renderTags:M,limitTags:E,getLimitTagsText:h$1,fetchOptionsCallback:w,onCloseCallback:C,isOptionEqualToValueCallback:z,getOptionDisabledCallback:O,getOptionKeyCallback:H,getOptionValidationErrorCallback:A,validateInputCallback:G,width:D,inputRef:L,openOnFocus:Y=false,disableCloseOnSelect:K,clearSearchOnSelect:N=false,maxHeight:re="40vh",fullWidth:ye=false,minWidth:he,tagMaxWidth:Se="200px",showSupplementalTextOrSecondaryAction:j=false,showLeftIcon:B=false,textEllipsisPosition:U="end"}){let k=ua$1(),[W,V]=useState(n||null),[F,Q]=useState(""),[Xe,oo]=useState(null),[ft,xn]=useState(P||[]),[Nr,Hr]=useState(false),[Sn,kt]=useState(false),[mt,At]=useState(false),[Oo,bn]=useState(false),[gt,ht]=useState(false),Do=useRef(""),Cn=useRef(null),[X,Z]=useState(null),pe=useRef(null),Fr=useRef(null),yn=useRef(null),[Ou,Du]=useState(0),[$u,Nu]=useState(0),[di,_r]=useState(""),$o=useMemo(()=>f&&!N,[N,f]);useEffect(()=>{V(n||null);},[n]),useEffect(()=>{Hr(mt&&Sn);},[mt,Sn]),useEffect(()=>{F.length>0&&(xn([]),f&&G?.(F)?(kt(false),At(false)):(kt(true),w(F)));},[F,w,G,f]),useEffect(()=>{xn(P),kt(false);},[P]),useEffect(()=>{gt&&(kt(true),w(""),ht(false));},[w,gt]);let Hu=32,Fu=useCallback(_=>{_&&(Cn.current=_,Z(_));},[]),fi=useCallback(_=>_.subText?58:38,[]),Vr=useCallback((_,J,ee,se)=>_+J+ee*Hu+16>=se,[]),mi=useCallback((_,J)=>!!(v&&v(_)!==J),[v]),gi=useCallback(_=>_&&v?v(_):"",[v]),_u=_=>{let J=_.match(/[\d.]+|\D+/g);if(Cn.current){let ee=Cn.current;if(!J||J.length<2)return _;let[se,me]=J,ce=parseFloat(se);if(isNaN(ce))return null;switch(me){case "px":return ce;case "em":return ee?ce*parseFloat(getComputedStyle(ee).fontSize):null;case "rem":return ce*parseFloat(getComputedStyle(document.documentElement).fontSize);case "%":return ee?ce*ee.clientHeight/100:null;case "vh":return ce*window.innerHeight/100;case "vw":return ce*window.innerWidth/100;default:return null}}return null},vn=useMemo(()=>{let _=0,J=0,ee=0,se=0,me="",ce=0;if(!X)return;let ve=_u(re);if(typeof ve=="string")return ve;if(!(!ve||ve<=58||ve>=X.scrollHeight)){for(let Ge=0;Ge<ft.length;Ge++){let xt=ft[Ge];if(J=fi(xt),Vr(_,J,se,ve)){ce=ve-_;break}if(typeof xt=="object"){if(mi(xt,me)&&(se++,ee&&Vr(_,J,se,ve))){ce=ve-_;break}me=gi(xt);}_+=J,ee=J;}return ee/2+ce-8-(se===0?0:se*32)}},[fi,X,ft,re,Vr,mi,gi]),Vu=(_,J,ee)=>{ee==="clear"&&$o&&F||(V(J||null),p&&p({name:t,value:J}),ee==="selectOption"&&$o&&J&&T&&(Array.isArray(J)&&J.some(me=>T(me))||T(J))&&(Q(""),ht(true)));},zu=(_,J,ee)=>{if($o&&(ee==="reset"||ee==="selectOption"||ee==="removeOption")&&Do.current)Q(Do.current);else if(Do.current=J,Q(J),J==="")oo(null),ht(true);else if(!u&&!d&&f){let se=G?.(J);oo(se??null),At(!se);}},Xu=()=>{At(true),(!f||!F)&&ht(true);},Gu=()=>{C&&C(),$o&&(Q(""),oo(null)),At(false),bn(false);},Wu=()=>{Q(""),oo(null),bn(false);},Ju=_=>{let J=W.slice();J.splice(_,1),V(J),p&&p({name:t,value:J});},wn=()=>e||t,Uu=_=>{Fr.current=_,L&&L(_);},zr=useCallback(()=>{let _=pe.current,J=Fr.current;if(!_||!J)return;let ee=_.getBoundingClientRect(),se=J.getBoundingClientRect(),me=Math.max(0,se.left-ee.left),ce=Math.max(0,ee.right-se.right);Du(me),Nu(ce);},[]),hi=useCallback(_=>{let J=Fr.current;if(!J)return _;let ee=getComputedStyle(J),se=`${ee.fontStyle} ${ee.fontVariant} ${ee.fontWeight} ${ee.fontSize}/${ee.lineHeight} ${ee.fontFamily}`;yn.current||(yn.current=document.createElement("canvas"));let ce=yn.current.getContext("2d");if(!ce)return _;ce.font=se;let ve=J.clientWidth,Ge="...";if(ce.measureText(_).width<=ve)return _;let St=0,Tn=_.length-1,No="",Ho="";for(;St<=Tn;){let En=No+_[St],Rn=_[Tn]+Ho;if(ce.measureText(En+Ge+Rn).width+1<=ve)No=En,Ho=Rn,St++,Tn--;else {let xi=ce.measureText(En+Ge+Ho).width,Si=ce.measureText(No+Ge+Rn).width;if(xi<=ve&&xi>=Si)No=En,St++;else if(Si<=ve)Ho=Rn,Tn--;else break}}return No+Ge+Ho},[]),Xr=useCallback(()=>{if(f||U!=="middle")return;let _=W&&!Array.isArray(W)?W:null,J=_?b(g(_)):"";if(!J){_r("");return}_r(mt||Oo?"":hi(J));},[hi,Oo,g,f,mt,b,W,U]);useEffect(()=>{zr(),Xr();let _=window.ResizeObserver,J=_?new _(()=>{zr(),Xr();}):void 0;return pe.current&&J&&J.observe(pe.current),()=>{J?.disconnect(),yn.current=null;}},[zr,Xr]);let qu=_=>v&&y?jsxs("li",{children:[(_.key!==0||_.group)&&jsxs("div",{children:[_.key!==0&&jsx(Pd$1,{}),_.group&&jsx("div",{className:"MuiAutocomplete-groupLabel",children:_.group})]}),_.children&&jsx(vd,{children:_.children})]},_.key):null,Zu=(_,J)=>jsx(b$1,{variant:a$2.rich,title:jsx(wd,{label:_,error:J}),placement:"bottom-start",children:jsx("span",{children:_})}),Yu=_=>jsx(b$1,{variant:a$2.overflow,title:_,placement:"bottom-start",children:_}),Ku=_=>_.map((J,ee)=>{let se=b(g(J)),me=A?.(J)??null;return jsx(wt,{label:jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:me?Zu(se,me):Yu(se)}),clickable:!d,disabled:u,onDelete:()=>Ju(ee),dataQa:`${I??Yn}-${ee}`,status:me?"errorStatus":"",maxWidth:Se===null?void 0:Se},`${I??Yn}-${ee}`)}),Qu=()=>jsx(nc,{ListboxProps:{style:{maxHeight:typeof vn=="string"?vn:`calc(${re} - ${vn?vn+"px":"0px"})`},ref:Fu},id:wn(),"data-qa":I??Yn,filterOptions:_=>_,onInputChange:zu,options:ft,autoHighlight:true,value:W,inputValue:F,getOptionLabel:_=>{let J=g(_);return b(J)},renderOption:(_,J)=>{if(J){let ee=g(J),se=x?.(J)??false,me=b(g(J)),ce=H?.(J)??me;return createElement(Ic$1,{component:"li",..._,key:ce,style:{borderBottom:se?`1px solid ${k.palette.ux.secondary.w20}`:"none"}},m(ee))}return null},disabled:u||d,loading:Nr,open:mt,multiple:f,disableCloseOnSelect:K??f,onClose:Gu,openOnFocus:Y,onOpen:Xu,onChange:Vu,onBlur:Wu,popupIcon:jsx(a$1,{}),renderInput:_=>{let{InputProps:J,inputProps:ee,...se}=_,me=W&&!Array.isArray(W)?W:null,ce=me?me.supplementalText:null,ve=me?me.secondaryAction:null,Ge=me?me.icon:null,xt=mt||Oo;return jsxs(Ic$1,{sx:{position:"relative"},ref:pe,children:[jsx(yd,{...se,textEllipsisPosition:U,hideInputText:!xt&&U==="middle",title:a,autoComplete:"off",placeholder:i,error:!!Xe||l,inputProps:{...ee,"data-qa":`${I??Yn}-input`,"data-tags":R,"aria-describedby":r?`${wn()}-select-helper-text`:"","aria-labelledby":o?`${wn()}-label`:"","aria-readonly":d,title:a},InputProps:{...J,sx:{height:k.spacing(4)},className:d?"readOnlySelect":"",disabled:u,readOnly:d,required:s,startAdornment:jsxs(Fragment,{children:[J.startAdornment,B&&Ge&&jsx(ra,{sx:{padding:k.spacing(0,1,0,0)},children:Ge})]}),endAdornment:jsxs(Fragment,{children:[J.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:Uu,onKeyDown:St=>{(St.key==="Backspace"||St.key==="Delete")&&St.stopPropagation();}}),!f&&U==="middle"&&di&&!xt&&jsx(Ic$1,{"aria-hidden":true,sx:{position:"absolute",pointerEvents:"none",top:0,left:`${Ou}px`,right:`${$u}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||Ku,limitTags:E,getLimitTagsText:h$1,ChipProps:{deleteIcon:jsx(h,{})},groupBy:v,renderGroup:v&&y?qu:void 0,fullWidth:ye,sx:{minWidth:he},clearText:$o&&F?"Clear Search":"Clear"});return jsx(b$4,{id:wn(),label:o,helperText:r,errorText:Xe||(l?r:void 0),disabled:u,readOnly:d,required:s,inlineLabel:c,centerInlineLabel:c,sx:{width:D},children:Qu()})}var Ed=Td;var Pd=e=>e?.name??"",Id=e=>e?.divider??false,Ld=(e,t)=>e?.value===t?.value,Md=e=>e?.categoryHeading??"";function kd({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,{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 Ad=kd;var Od=wa("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",fontFamily:e.typography.fontFamily})),Dd=wa("div")(()=>({margin:"0px 0px 40px 0px"})),$d=wa("p")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.xl,color:e.palette.ux.primary.text.wMain,textAlign:"center"})),Nd=wa("div")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.sm,color:e.palette.ux.primary.text.wMain})),Hd=wa("div")(()=>({display:"flex",flexDirection:"row",alignItems:"center"}));function Fd({msgImg:e,title:t,details:o,actions:n}){return jsxs(Od,{children:[e&&jsx(Dd,{children:e}),t&&jsx($d,{children:t}),o&&jsx(Nd,{children:o}),n&&jsx(Hd,{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 _d=Fd;function ia(e){let t=useRef(e);return useLayoutEffect(()=>{t.current=e;},[e]),useCallback((...o)=>{if(t.current)return t.current(...o)},[])}var qd=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"})),Zd=wa("div",{shouldForwardProp:e=>e!=="maxHeight"})(({theme:e,maxHeight:t})=>({display:"flex",flexDirection:"column",rowGap:e.spacing(1.5),maxHeight:t,overflowY:"auto"}));function ns(e,t,o){return e===1&&o?o:t}var Yd=58,Kd=66;function Qd({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[b,x]=useState(null),[T,v]=useState(false),[y,I]=useState(false),R=useRef({}),P=useRef(24),M=useRef(null),E=ia(f),h=ia(p),w=useMemo(()=>{let H=e?.length??0,A=b?.length??0;return H-A},[e?.length,b?.length]),C=useMemo(()=>{if(e&&b){let H=w>d?`${(P.current+12)*d-6}px`:"unset";return jsx(Zd,{maxHeight:H,children:e.filter(A=>!b.includes(A.id)).map(A=>jsx("div",{children:A.content},`popoverItem-${A.id}`))})}else return},[e,w,b,d]),z=useMemo(()=>e?e.map(H=>H.id):null,[e]),O=useCallback(()=>{if(r===void 0||!e)return;let H=r,A=[],G=0,D=0,L=1,Y=false;for(let N=0;N<e.length;N++){D=G;let re=(R.current[e[N].id]??0)+(N<e.length-1?o:0);if(G+=re,G>H)if(L===u){Y=true;break}else A.push(e[N].id),D=re,G=re,L++;else A.push(e[N].id),D=G;}let K=e.length-A.length<10?Yd:Kd;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--);v(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(G=>G.id),A=H.join(",");M.current!==A&&(M.current=null,R.current={},I(false)),t?(x(H),v(true),E?.()):x(H);}},[e,t,E]),useEffect(()=>{y&&!t&&O();},[y,O,t]),z?jsxs(qd,{multiline:t||u>1,maxHeight:t?void 0:`${u*P.current+(u-1)*n}px`,columnGap:o+"px",rowGap:n+"px",show:T,"data-qa":g,children:[e.map(H=>b?.includes(H.id)&&jsx("span",{"data-qa":`${g}-listItem`,ref:A=>{if(A&&!R.current[H.id]&&(R.current[H.id]=A.offsetWidth,P.current=A.offsetHeight,!t)){let G=difference(z,Object.keys(R.current)),D=z.join(",");G.length===0&&M.current!==D&&(M.current=D,setTimeout(()=>{I(true);},0));}},children:H.content},`listItem-${H.id}`)),!t&&w>0&&jsxs(Fragment,{children:[a==="popover"&&jsx(b$1,{title:C,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:`+ ${w} ${ns(w,l,s)}`})})})}),a!=="popover"&&jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${w} ${ns(w,l,s)}`})]})]}):null}var ua=ue__default.memo(Qd);var nf=wa("div")(()=>({paddingRight:"6px"}));function rf({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(wt,{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(nf,{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 af=ue__default.memo(rf);var as=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"}})),is=wa(Ic$1)(({theme:e})=>({margin:e.spacing(.5),display:"inline-flex",alignItems:"flex-start"})),ls=wa("div")({display:"inline-flex",flexGrow:1,minWidth:"50px"}),ss=wa(ec$1)(({theme:e})=>({flex:1,padding:e.spacing(.5,0),"& .MuiInputBase-input":{padding:0,height:"120px"}}));var sf=({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:b,dataTags:x,width:T,validateChip:v})=>{let[y,I]=useState([]),[R,P]=useState(""),[M,E]=useState(void 0),[h,w]=useState(true),C=useRef(null),z=useRef(null);useEffect(()=>{if(n!==void 0){let U=H(n).map(k=>{let W=v?v(k):void 0;return {id:O(),label:k,isValid:!W,errorMessage:W}});I(U);}},[n,v]);let O=()=>`chip-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,H=B=>B.split(/[\s,;]+/).map(U=>U.trim()).filter(U=>U.length>0),A=B=>B.map(U=>U.label).join(","),G=useCallback(B=>{let U=F=>{if(F&&v)return v(F)},k=B.trim();if(!k)return;let W=U(k),V={id:O(),label:k,isValid:!W,errorMessage:W};I(F=>{let Q=[...F,V];return d&&d({name:t,value:R,chips:Q,allValues:A(Q)}),Q}),P(""),W&&E(W);},[R,t,d,v]),D=useCallback(B=>{I(U=>{let k=U.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 U=B.target.value,k=U;if(E(void 0),/[\s,;]/.test(U)){let W=H(U);W.length>1&&(W.slice(0,-1).forEach(V=>G(V)),k=W[W.length-1]);}P(k),d&&d({name:t,value:U,chips:y,allValues:A(y)});},[G,y,t,d]),Y=useCallback(B=>{if((B.key==="Enter"||B.key===" "||B.key===","||B.key===";")&&R.trim()&&(B.preventDefault(),G(R)),(B.key==="Backspace"||B.key==="Delete")&&R.length===0){B.preventDefault();let U=y[y.length-1];U&&D(U.id);}B.key==="Space"&&B.preventDefault(),p&&p(B);},[G,y,D,R,p]),K=useCallback(B=>{B.preventDefault();let U=B.clipboardData.getData("text"),k=H(U);k.length>0&&k.forEach(W=>G(W));},[G]),N=useCallback(B=>{B.stopPropagation(),w(false),C.current&&C.current.blur();},[]),re=useCallback(B=>{C.current&&(B.target.closest('[data-chip="true"]')||(w(true),C.current.focus()));},[]),ye=M??r,he=y.some(B=>!B.isValid),Se=!!M||s||he,j=()=>e??t;return jsx(b$4,{id:j(),label:o,helperText:ye,errorText:Se?ye:void 0,disabled:false,readOnly:false,required:c,inlineLabel:u,sx:{width:T},children:jsxs(as,{ref:z,onClick:re,className:Se?"error":"",style:{width:T},"data-qa":b,"data-tags":x,children:[y.map(B=>jsx(is,{"data-chip":"true",onClick:N,children:jsx(wt,{label:B.label,status:B.isValid?"":"errorStatus",onDelete:()=>D(B.id),clickable:true,variant:"filled"})},B.id)),jsx(ls,{children:jsx(ss,{inputRef:C,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":b,"data-tags":x},autoFocus:l,multiline:true,rows:4,maxRows:4,fullWidth:true})})]})})},cf=sf;function us({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 mf({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,b]=useState(i);useEffect(()=>{b(i);},[i]);let x=I=>{b(I.target.checked),d&&d({name:t,value:I.target.checked});},T=()=>jsxs(Ic$1,{display:"flex",children:[a&&jsx(g,{sx:{marginRight:m.spacing()}}),r]}),v=I=>I?"On":"Off",y=()=>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:`${y()}-toggle`,name:t,size:"small",inputProps:{"aria-labelledby":o?`${y()}-label`:"","data-qa":f,"data-tags":p},role:"switch",title:n,disabled:s,disableRipple:true,checked:g$1,onChange:x}),o&&jsx(Fragment,{children:jsxs(Le,{id:`${e}-label`,htmlFor:`${e}-toggle`,required:l,disabled:s,sx:{color:m.palette.ux.primary.text.wMain,cursor:s?"auto":"pointer"},children:[jsx(us,{bold:false,large:c,disabled:s,children:`${o}${u?": ":""}`}),u&&jsx(us,{bold:true,large:c,disabled:s,children:v(g$1)})]})})]}),r&&jsx(he,{error:a,component:"div",sx:{marginLeft:m.spacing(.4)},children:T()})]})}var gf=mf;var Sf=({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(go,{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"}})},ps=Sf;var Uo=(n=>(n.SINGLE="single",n.MULTI="multi",n.NONE="none",n))(Uo||{}),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)}`}})),ot=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})),bf=wa(ot)(()=>({textAlign:"right"})),ds=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.clickable":{cursor:"pointer"}})),fs=wa("td")({borderCollapse:"collapse",padding:0,maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0}),bo=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"}})),ms=()=>jsx(bo,{className:"icon-column"},"emptyHeaderCell"),gs=e=>jsx(ot,{},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(ot,{style:{textAlign:"center",paddingTop:"4px",paddingBottom:"4px"},children:o&&jsx(go,{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")},hs=({columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})=>jsx(bo,{className:"icon-column",children:jsx(ps,{id:"column-hiding-control",columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})},"column-hiding-control");var xs=({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:b=true,selectRowWhenClickOnChildren:x=true,renderChildren:T,expandedRowIds:v,setExpandedRowIds:y})=>{let[I,R]=useState();useEffect(()=>{if(!e)return;let h=0,w=o||n;if(w&&w.length>0){w.forEach(z=>{z.isHidden||h++;});let C=0;b&&C++,r==="multi"&&C++,d&&C++,R(h+C);}},[t,e,o,n,g,m,b,r,d]);function P(h){if(!b)return;let w=v&&v?.findIndex(C=>C===h.id)>=0;return jsx(ot,{className:"expand-icon",onClick:C=>{if(C.stopPropagation(),v){let z=v.findIndex(O=>O===h.id);if(z>=0){let O=v.slice(0);O.splice(z,1),y?.(O);}else y?.([...v,h.id]);}},children:jsx(Et,{className:`cursor-pointer chevron ${w?"expanded":""}`})},`${h.id}_chevron`)}function M(h,w){return w&&T&&jsx(ds,{className:D({selected:r==="multi"&&l?s===h.id:a?.includes(h.id),clickable:r==="multi"||r==="single",expanded:w}),onClick:()=>{x&&i(h);},children:jsx(fs,{colSpan:I,children:T(h)},`${h.id}_childrenTd_${I}`)},`${h.id}_childrenTr`)}function E(){return t.map(h=>{let w=!b||!!v?.find(C=>C===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:w}),"data-qa":h.id,children:[r==="multi"&&c(h),P(h),...u(h,o,n),...f(h)].filter(Boolean)},h.id),M(h,w)]},`${h.id}_wrapper`)})}return {createRowNodes:E}};var Ef="bottom-end",Rf=({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:b})=>{let x=useCallback(P=>jsx(ot,{className:"checkbox",onClick:M=>M.stopPropagation(),children:jsx(l,{name:`${P.id}`,onChange:g,checked:o.includes(P.id),disabled:n?.includes(P.id)})},`${P.id}_rowCheckbox`),[o,n,g]),T=useCallback(P=>s?[fa(P,s(P))]:l$1&&l$1.length>0?[fa(P,l$1)]:!l$1&&u?[gs(P)]:[],[u,s,l$1]),v=useMemo(()=>!!s||l$1&&l$1.length>0||!l$1&&u,[u,s,l$1]),y=useCallback((P,M,E)=>i?i(P):((M||E)??[]).map(w=>{if(!w.hasNoCell&&!w.isHidden){let C=P.id+"_"+w.field;return jsxs(ot,{children:[w.tooltip&&jsx(b$1,{variant:"overflow",title:P[w.field],placement:Ef,children:P[w.field]}),!w.tooltip&&jsx("span",{children:P[w.field]})]},C)}else return}),[i]),I=useCallback(()=>e.map(P=>jsx(So,{onMouseEnter:c?()=>c(P):void 0,onClick:()=>b(P),className:D({selected:t==="multi"&&r?a===P.id:o.includes(P.id),clickable:(t==="multi"||t==="single")&&!n?.includes(P.id),disabled:n?.includes(P.id)}),"data-qa":P.id,children:[t==="multi"&&x(P),...y(P,d,p),...T(P)]},P.id)),[e,c,t,r,a,o,n,x,y,d,p,T,b]),R=xs({enabled:f!=null,rows:e,displayedColumns:d,internalDisplayedColumns:p,selectionType:t,handleRowClick:b,selectedRowIds:o,independentRowHighlight:r,highlightedRowId:a,addCheckBoxToRows:x,renderConfiguredRowCells:y,hasRowActionItems:v,renderRowActionItems:T,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():I()},Ss=Rf;var bs=({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"})})]})})},Cs=({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})})]})})},ys=({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",Lf="Select all on this page",Mf="Deselect all on this page",kf="Select all pages",Af="Deselect all pages";function vs(e,t){return e?t?kf:Lf:t?Af:Mf}var Bf=({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:b,handleSort:x,internalDisplayedColumns:T,handleDisplayColumnsChanged:v})=>{let y=useCallback(()=>{if(e==="multi")return jsx(bo,{className:"checkbox-column",children:jsx(b$1,{title:vs(!(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]),I=useCallback(()=>{if(l$1?.allowToggle)return jsx(bo,{className:"expand-column"},"expandHeader")},[l$1?.allowToggle]),R=useCallback((M,E)=>M.map(h=>!h.isHidden&&jsx(bo,{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,b):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(bs,{}):jsx(Cs,{})})}),E?.field!==h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:ga,children:jsx("div",{children:jsx(ys,{})})})]})},h.headerName)),[x,b,t]);return useCallback(()=>{let M=t||b,E=cloneDeep((i||T)??[]);return jsx(So,{className:"header",onMouseEnter:r?()=>r():void 0,children:[y(),I(),R(E,M),(!!o||n)&&!a&&ms(),a&&hs({columns:E,displayedColumnsChangedCallback:v,customContentDefinitions:s,displayedCustomContent:c,customContentDisplayChangeCallback:u,customMenuActions:d})].filter(Boolean)},"headerRow")},[t,b,i,T,r,y,I,R,o,n,a,v,s,c,u,d])()},ws=Bf;var Ts=({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:b,displayedColumns:x,displayedColumnsChangedCallback:T,expandableRowOptions:v,customContentDefinitions:y,displayedCustomContent:I,customContentDisplayChangeCallback:R,customMenuActions:P,crossPageRowSelectionSupported:M=false,totalObjectCount:E=0,allPagesSelectedByDefault:h=false,deselectedRowIds:w,crossPageSelectionChangedCallback:C})=>{let[z,O]=useState(false),[H,A]=useState(false),[G,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(W=>W.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&&w.length===0||!h&&n.length===E;O(k);}else O(h);},[h,N,w.length,n.length,E]),useEffect(()=>{N&&(E>0?A(h&&w.length>0&&w.length<E||!h&&n.length>0&&n.length!==E):A(false));},[h,N,w.length,n.length,E]),useEffect(()=>{if(N&&h&&C){let k=[...n],W=[];e.forEach(V=>{if(!w.includes(V.id))k.includes(V.id)||k.push(V.id),W.push(V);else if(n.includes(V.id)){let F=k.indexOf(V.id);F>=0&&k.splice(F,1);}}),isEqual(n,k)||C(W,true,k,w);}},[C,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(C)if(n.includes(k.id)){let W=e.filter(Q=>n.includes(Q.id)&&Q.id!==k.id),V=n.filter(Q=>Q!==k.id),F=h?[...w,k.id]:w;C(W,h,V,F);}else C([k],false,[k.id],[]);}else if(r)if(n.includes(k.id)){let W=e.filter(V=>n.includes(V.id)&&V.id!==k.id);r(W),W.length<e.length&&z&&O(false);}else r([k]),O(e.length===1);}},[h,M,C,w,a,l,i,s,e,z,n,r,o]),ye=useCallback((k,W,V)=>{let F=K.current.find(Q=>Q.field===k.field);F&&F.sortable&&(W?(W.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((W,V)=>{k&&k[V]&&(W.isHidden=k[V].isHidden);}),Y(k),T?.(k);},[T]),Se=useCallback(k=>{let W=e;a&&a.length>0&&(W=e.filter(F=>!a.includes(F.id))),N?C&&(k.value?(O(!(W.length<e.length)),C(W,true,W.map(F=>F.id),[])):(O(false),C([],false,[],[]))):r&&(k.value?(O(true),r(W)):(O(false),r([])));},[C,N,e,r,a]),j=useCallback(k=>{if(N&&!C||!N&&!r)return;let W=e.find(V=>V.id===k.name);if(W)if(k.value){if(!n.includes(k.name)){let V=[...e.filter(F=>n.includes(F.id)&&F.id!==k.name),W];if(!N)r?.(V),V.length===e.length&&!z&&O(true);else if(N&&C){let F=[...n,k.name];h?C(V,true,F,w.filter(Q=>Q!==k.name)):C(V,false,F,w);}}}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&&C){let F=n.filter(Q=>Q!==k.name);if(h){let Q=[...w,k.name];Q.length===E?C([],false,[],[]):C(V,true,F,Q);}else C(V,false,F,w);}}},[N,C,r,e,n,z,h,w,E]),B=ws({selectionType:o,sortedColumn:c,rowActionMenuItems:f,renderCustomRowActionItem:p,headerHoverCallback:m,hasColumnHiding:b,displayedColumns:x,expandableRowOptions:v,customContentDefinitions:y,displayedCustomContent:I,customContentDisplayChangeCallback:R,customMenuActions:P,crossPageSelectionEnabled:N,selectAll:z,indeterminate:H,handleSelectAllChange:Se,internalSortedColumn:G,handleSort:ye,internalDisplayedColumns:L,handleDisplayColumnsChanged:he}),U=Ss({rows:e,selectionType:o,selectedRowIds:n,disabledRowIds:a,independentRowHighlight:i,highlightedRowId:l,renderCustomRowCells:d,rowActionMenuItems:f,renderCustomRowActionItem:p,rowHoverCallback:g,hasColumnHiding:b,displayedColumns:x,expandableRowOptions:v,internalDisplayedColumns:L,handleDisplayColumnsChanged:he,handleRowSelectionChange:j,handleRowClick:re});return [B,U]};var Ff={xs:14,sm:24,md:30,lg:42},_f=wa("div")(({theme:e,inline:t})=>({width:"fit-content",display:"flex",flexDirection:t?"row":"column",alignItems:"center",gap:e.spacing(1.5)}));function Gt(e){let{variant:t,value:o,size:n,disableShrink:r,dataQa:a,message:i,inline:l}=e;return jsxs(_f,{"data-qa":a??"loading-spinner",inline:l,children:[jsx(Db,{variant:t??"indeterminate",value:t==="determinate"?o:void 0,size:Ff[n??"sm"],disableShrink:r,sx:{color:ua$1().palette.ux.accent.n2.wMain}}),i&&jsx("div",{children:i})]})}var zf=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"})),Xf=wa("table")(()=>({borderCollapse:"collapse",width:"100%",tableLayout:"fixed"})),Gf=wa("div")(()=>({position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flex:"1"})),Wf=wa("tr")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:20})),Jf=wa("tr")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),Uf=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),qf=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})),Zf=wa("div")(({theme:e})=>({fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary})),Yf="No Items Found";function Kf(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 Qf(e){return uniq(e)}function jf(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 em({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:b,renderCustomRowActionItem:x,headerHoverCallback:T,rowHoverCallback:v,hasColumnHiding:y,displayedColumns:I,displayedColumnsChangedCallback:R,expandableRowOptions:P,loading:M,loadingMessage:E,customContentDefinitions:h,displayedCustomContent:w,customContentDisplayChangeCallback:C,maxHeight:z,minHeight:O,customMenuActions:H,crossPageRowSelectionSupported:A=false,totalObjectCount:G=0,allPagesSelectedByDefault:D=false,deselectedRowIds:L,crossPageSelectionChangedCallback:Y}){let K=Kf(r??[],n),N=Qf(i??[]),re=jf(L??[],n,A,D),[ye,he]=Ts({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:b,renderCustomRowActionItem:x,headerHoverCallback:T,rowHoverCallback:v,hasColumnHiding:y,displayedColumns:I,displayedColumnsChangedCallback:R,expandableRowOptions:P,customContentDefinitions:h,displayedCustomContent:w,customContentDisplayChangeCallback:C,customMenuActions:H,crossPageRowSelectionSupported:A,totalObjectCount:G,allPagesSelectedByDefault:D,deselectedRowIds:re,crossPageSelectionChangedCallback:Y});function Se(){return p||Yf}function j(){return jsx(Fragment,{children:m?m():Se()})}function B(){return jsxs(qf,{children:[jsx(Gt,{}),E&&jsx(Zf,{children:E})]})}return jsxs(zf,{maxHeight:z,minHeight:O,className:"tableWrapper",children:[jsxs(Xf,{"data-qa":e,children:[jsxs("thead",{style:{borderBottom:0,position:"relative"},children:[ye,M&&jsx(Wf,{})]}),jsxs("tbody",{style:{position:"relative"},children:[!!t.length&&he,M&&jsx(Jf,{})]})]}),jsxs(Gf,{children:[g!==false&&!t.length&&j(),M&&jsx(Uf,{})]}),M&&B()]})}var tm=em;var Ps=({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 fd=335,Kl=({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=fd,subMenuDirection:g="right",dataQa:b,dataTags:x})=>{let T=ua$1(),[v,y]=useState(null),[I,R]=useState(null),[P,M]=useState(false),[E,h]=useState("right"),w=!!v,C=A=>{A.stopPropagation(),y(null),M(false),R(null),l&&l(A);},z=A=>{let G=A.currentTarget;y(G);},O=()=>{y(null),M(false),R(null);};useEffect(()=>{if(I&&v){let A=I.offsetWidth,G=v.getBoundingClientRect(),D=window.innerWidth-G.right,L=G.left,Y;g==="left"?Y=L>=A||L>D:Y=D<A,h(Y?"left":"right"),M(true);}else v||(M(false),h("right"));},[I,v,g]);let H=()=>{if(!u||u.length===0)return null;let A=groupBy(u,D=>D.categoryHeading),G=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(Kl,{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:C,subMenuItems:N?.subMenuItems,subMenuMaxWidth:N.subMenuMaxWidth??m,subMenuDirection:E},`${N.name}-${re}`));return L.push(K),L});return flatten(G)};return jsxs(Fragment,{children:[jsxs(yf,{id:e,"data-qa":b,"data-tags":x,onClick:A=>{A.stopPropagation(),d&&C(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,{className:"menuItemIcon",style:{paddingRight:T.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:T.spacing(3)}`,width:"auto"},justifyContent:"end",alignItems:"center",className:"menuItemIcon",children:a}),u&&u.length>0&&jsx(me,{container:true,sx:{marginLeft:T.spacing(3),width:"auto"},alignItems:"center",children:jsx(Et,{})})]}):t,u&&u.length>0&&jsx(vf,{id:e,"data-qa":`${b}-subMenu-${e}`,"data-tags":`${x}-subMenu-${e}`,anchorEl:v,open:w,anchorOrigin:{vertical:"top",horizontal:E==="left"?"left":"right"},transformOrigin:{vertical:"top",horizontal:E==="left"?"right":"left"},onClose:C,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:P?1:0,transition:"opacity 0.1s ease-in-out"},children:jsx("div",{style:{pointerEvents:P?"auto":"none"},children:H()})},`key-${e}`)]},e),!!s&&jsx(Pd$1,{})]})},ta=Kl;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%)",b="none";return f==="isTop"?b=m:f==="isBetween"?b=g:f==="isBottom"&&(b=p),b},[u])(),scrollPosition:u(),resetScrollPosition:c,onScrollHandler:s}}var bd=9,Cd=335,Ql=32;function go(e){let{id:t="solace-menu",buttonProps:o,items:n,header:r,numOfMenuItemDisplayed:a=bd,maxWidth:i=Cd,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:b}=Zn(),x=l?58:38,[T,v]=useState(null),[y,I]=useState(null),[R,P]=useState(),M=H=>{P(H.currentTarget.classList),s||H.stopPropagation(),n?.length&&v(H.currentTarget),H.currentTarget.classList.toggle("pressed"),o.onClick&&o.onClick(H);},E=H=>{R?.remove("pressed"),P(R),H.stopPropagation(),v(null),b();},h=groupBy(n,H=>H.categoryHeading),w=useMemo(()=>Object.keys(h).filter(H=>H!=="undefined").length,[h]),C=useMemo(()=>x*a+x/2+w*Ql+(r?1:0)*Ql+8,[w,r,x,a]),z=useMemo(()=>n?n.length>a:false,[n,a]),O=Object.keys(h).map(H=>{let A=[],G=H==="undefined"?null:jsx(Yb,{className:"categoryHeader",children:H},H);A.push(G);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=y;return H?.addEventListener("scroll",g),()=>{H?.removeEventListener("scroll",g);}},[y,g]),jsxs(Fragment$1,{children:[jsx(b$2,{"aria-label":Vl(),...o,onClick:M}),z&&jsx(sf$1,{anchorEl:T,open:!!T,anchorOrigin:u,transformOrigin:d,onClose:E,className:"SolaceMenuPopover",PaperProps:{style:{width:y?.offsetWidth,height:y?.offsetHeight}},transitionDuration:303}),jsxs(vf,{id:t,"data-qa":f,"data-tags":p,anchorEl:T,open:!!T,anchorOrigin:u,transformOrigin:d,onClose:E,slotProps:{paper:{style:{maxHeight:`${C}px`,maskImage:z?m:"none",WebkitMaskImage:z?m:"none",maxWidth:`${i}px`},ref:H=>{I(H);},onClick:H=>{H.stopPropagation();}}},className:"SolaceMenu",children:[r&&jsx(Yb,{children:r}),flatten(O)]},`key-${t}`)]})}var yd=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)}})),vd=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 wd({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$1,{}),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 Td({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:b,getShowOptionDividerCallback:x,shouldClearSearchOnSelectCallback:T,groupByCallback:v,showGroupDivider:y=false,dataQa:I,dataTags:R,options:P,renderTags:M,limitTags:E,getLimitTagsText:h$1,fetchOptionsCallback:w,onCloseCallback:C,isOptionEqualToValueCallback:z,getOptionDisabledCallback:O,getOptionKeyCallback:H,getOptionValidationErrorCallback:A,validateInputCallback:G,width:D,inputRef:L,openOnFocus:Y=false,disableCloseOnSelect:K,clearSearchOnSelect:N=false,maxHeight:re="40vh",fullWidth:ye=false,minWidth:he,tagMaxWidth:Se="200px",showSupplementalTextOrSecondaryAction:j=false,showLeftIcon:B=false,textEllipsisPosition:U="end"}){let k=ua$1(),[W,V]=useState(n||null),[F,Q]=useState(""),[Xe,oo]=useState(null),[ft,xn]=useState(P||[]),[Nr,Hr]=useState(false),[Sn,kt]=useState(false),[mt,At]=useState(false),[Oo,bn]=useState(false),[gt,ht]=useState(false),Do=useRef(""),Cn=useRef(null),[X,Z]=useState(null),pe=useRef(null),Fr=useRef(null),yn=useRef(null),[Ou,Du]=useState(0),[$u,Nu]=useState(0),[di,_r]=useState(""),$o=useMemo(()=>f&&!N,[N,f]);useEffect(()=>{V(n||null);},[n]),useEffect(()=>{Hr(mt&&Sn);},[mt,Sn]),useEffect(()=>{F.length>0&&(xn([]),f&&G?.(F)?(kt(false),At(false)):(kt(true),w(F)));},[F,w,G,f]),useEffect(()=>{xn(P),kt(false);},[P]),useEffect(()=>{gt&&(kt(true),w(""),ht(false));},[w,gt]);let Hu=32,Fu=useCallback(_=>{_&&(Cn.current=_,Z(_));},[]),fi=useCallback(_=>_.subText?58:38,[]),Vr=useCallback((_,J,ee,se)=>_+J+ee*Hu+16>=se,[]),mi=useCallback((_,J)=>!!(v&&v(_)!==J),[v]),gi=useCallback(_=>_&&v?v(_):"",[v]),_u=_=>{let J=_.match(/[\d.]+|\D+/g);if(Cn.current){let ee=Cn.current;if(!J||J.length<2)return _;let[se,me]=J,ce=parseFloat(se);if(isNaN(ce))return null;switch(me){case "px":return ce;case "em":return ee?ce*parseFloat(getComputedStyle(ee).fontSize):null;case "rem":return ce*parseFloat(getComputedStyle(document.documentElement).fontSize);case "%":return ee?ce*ee.clientHeight/100:null;case "vh":return ce*window.innerHeight/100;case "vw":return ce*window.innerWidth/100;default:return null}}return null},vn=useMemo(()=>{let _=0,J=0,ee=0,se=0,me="",ce=0;if(!X)return;let ve=_u(re);if(typeof ve=="string")return ve;if(!(!ve||ve<=58||ve>=X.scrollHeight)){for(let Ge=0;Ge<ft.length;Ge++){let xt=ft[Ge];if(J=fi(xt),Vr(_,J,se,ve)){ce=ve-_;break}if(typeof xt=="object"){if(mi(xt,me)&&(se++,ee&&Vr(_,J,se,ve))){ce=ve-_;break}me=gi(xt);}_+=J,ee=J;}return ee/2+ce-8-(se===0?0:se*32)}},[fi,X,ft,re,Vr,mi,gi]),Vu=(_,J,ee)=>{ee==="clear"&&$o&&F||(V(J||null),p&&p({name:t,value:J}),ee==="selectOption"&&$o&&J&&T&&(Array.isArray(J)&&J.some(me=>T(me))||T(J))&&(Q(""),ht(true)));},zu=(_,J,ee)=>{if($o&&(ee==="reset"||ee==="selectOption"||ee==="removeOption")&&Do.current)Q(Do.current);else if(Do.current=J,Q(J),J==="")oo(null),ht(true);else if(!u&&!d&&f){let se=G?.(J);oo(se??null),At(!se);}},Xu=()=>{At(true),(!f||!F)&&ht(true);},Gu=()=>{C&&C(),$o&&(Q(""),oo(null)),At(false),bn(false);},Wu=()=>{Q(""),oo(null),bn(false);},Ju=_=>{let J=W.slice();J.splice(_,1),V(J),p&&p({name:t,value:J});},wn=()=>e||t,Uu=_=>{Fr.current=_,L&&L(_);},zr=useCallback(()=>{let _=pe.current,J=Fr.current;if(!_||!J)return;let ee=_.getBoundingClientRect(),se=J.getBoundingClientRect(),me=Math.max(0,se.left-ee.left),ce=Math.max(0,ee.right-se.right);Du(me),Nu(ce);},[]),hi=useCallback(_=>{let J=Fr.current;if(!J)return _;let ee=getComputedStyle(J),se=`${ee.fontStyle} ${ee.fontVariant} ${ee.fontWeight} ${ee.fontSize}/${ee.lineHeight} ${ee.fontFamily}`;yn.current||(yn.current=document.createElement("canvas"));let ce=yn.current.getContext("2d");if(!ce)return _;ce.font=se;let ve=J.clientWidth,Ge="...";if(ce.measureText(_).width<=ve)return _;let St=0,Tn=_.length-1,No="",Ho="";for(;St<=Tn;){let En=No+_[St],Rn=_[Tn]+Ho;if(ce.measureText(En+Ge+Rn).width+1<=ve)No=En,Ho=Rn,St++,Tn--;else {let xi=ce.measureText(En+Ge+Ho).width,Si=ce.measureText(No+Ge+Rn).width;if(xi<=ve&&xi>=Si)No=En,St++;else if(Si<=ve)Ho=Rn,Tn--;else break}}return No+Ge+Ho},[]),Xr=useCallback(()=>{if(f||U!=="middle")return;let _=W&&!Array.isArray(W)?W:null,J=_?b(g(_)):"";if(!J){_r("");return}_r(mt||Oo?"":hi(J));},[hi,Oo,g,f,mt,b,W,U]);useEffect(()=>{zr(),Xr();let _=window.ResizeObserver,J=_?new _(()=>{zr(),Xr();}):void 0;return pe.current&&J&&J.observe(pe.current),()=>{J?.disconnect(),yn.current=null;}},[zr,Xr]);let qu=_=>v&&y?jsxs("li",{children:[(_.key!==0||_.group)&&jsxs("div",{children:[_.key!==0&&jsx(Pd$1,{}),_.group&&jsx("div",{className:"MuiAutocomplete-groupLabel",children:_.group})]}),_.children&&jsx(vd,{children:_.children})]},_.key):null,Zu=(_,J)=>jsx(b$1,{variant:a$2.rich,title:jsx(wd,{label:_,error:J}),placement:"bottom-start",children:jsx("span",{children:_})}),Yu=_=>jsx(b$1,{variant:a$2.overflow,title:_,placement:"bottom-start",children:_}),Ku=_=>_.map((J,ee)=>{let se=b(g(J)),me=A?.(J)??null;return jsx(wt,{label:jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:me?Zu(se,me):Yu(se)}),clickable:!d,disabled:u,onDelete:()=>Ju(ee),dataQa:`${I??Yn}-${ee}`,status:me?"errorStatus":"",maxWidth:Se===null?void 0:Se},`${I??Yn}-${ee}`)}),Qu=()=>jsx(nc,{ListboxProps:{style:{maxHeight:typeof vn=="string"?vn:`calc(${re} - ${vn?vn+"px":"0px"})`},ref:Fu},id:wn(),"data-qa":I??Yn,filterOptions:_=>_,onInputChange:zu,options:ft,autoHighlight:true,value:W,inputValue:F,getOptionLabel:_=>{let J=g(_);return b(J)},renderOption:(_,J)=>{if(J){let ee=g(J),se=x?.(J)??false,me=b(g(J)),ce=H?.(J)??me;return createElement(Ic$1,{component:"li",..._,key:ce,style:{borderBottom:se?`1px solid ${k.palette.ux.secondary.w20}`:"none"}},m(ee))}return null},disabled:u||d,loading:Nr,open:mt,multiple:f,disableCloseOnSelect:K??f,onClose:Gu,openOnFocus:Y,onOpen:Xu,onChange:Vu,onBlur:Wu,popupIcon:jsx(a$1,{}),renderInput:_=>{let{InputProps:J,inputProps:ee,...se}=_,me=W&&!Array.isArray(W)?W:null,ce=me?me.supplementalText:null,ve=me?me.secondaryAction:null,Ge=me?me.icon:null,xt=mt||Oo;return jsxs(Ic$1,{sx:{position:"relative"},ref:pe,children:[jsx(yd,{...se,textEllipsisPosition:U,hideInputText:!xt&&U==="middle",title:a,autoComplete:"off",placeholder:i,error:!!Xe||l,inputProps:{...ee,"data-qa":`${I??Yn}-input`,"data-tags":R,"aria-describedby":r?`${wn()}-select-helper-text`:"","aria-labelledby":o?`${wn()}-label`:"","aria-readonly":d,title:a},InputProps:{...J,sx:{height:k.spacing(4)},className:d?"readOnlySelect":"",disabled:u,readOnly:d,required:s,startAdornment:jsxs(Fragment,{children:[J.startAdornment,B&&Ge&&jsx(ra,{sx:{padding:k.spacing(0,1,0,0)},children:Ge})]}),endAdornment:jsxs(Fragment,{children:[J.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:Uu,onKeyDown:St=>{(St.key==="Backspace"||St.key==="Delete")&&St.stopPropagation();}}),!f&&U==="middle"&&di&&!xt&&jsx(Ic$1,{"aria-hidden":true,sx:{position:"absolute",pointerEvents:"none",top:0,left:`${Ou}px`,right:`${$u}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||Ku,limitTags:E,getLimitTagsText:h$1,ChipProps:{deleteIcon:jsx(h,{})},groupBy:v,renderGroup:v&&y?qu:void 0,fullWidth:ye,sx:{minWidth:he},clearText:$o&&F?"Clear Search":"Clear"});return jsx(b$4,{id:wn(),label:o,helperText:r,errorText:Xe||(l?r:void 0),disabled:u,readOnly:d,required:s,inlineLabel:c,centerInlineLabel:c,sx:{width:D},children:Qu()})}var Ed=Td;var Pd=e=>e?.name??"",Id=e=>e?.divider??false,Ld=(e,t)=>e?.value===t?.value,Md=e=>e?.categoryHeading??"";function kd({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,{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 Ad=kd;var Od=wa("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",fontFamily:e.typography.fontFamily})),Dd=wa("div")(()=>({margin:"0px 0px 40px 0px"})),$d=wa("p")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.xl,color:e.palette.ux.primary.text.wMain,textAlign:"center"})),Nd=wa("div")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.sm,color:e.palette.ux.primary.text.wMain})),Hd=wa("div")(()=>({display:"flex",flexDirection:"row",alignItems:"center"}));function Fd({msgImg:e,title:t,details:o,actions:n}){return jsxs(Od,{children:[e&&jsx(Dd,{children:e}),t&&jsx($d,{children:t}),o&&jsx(Nd,{children:o}),n&&jsx(Hd,{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 _d=Fd;function ia(e){let t=useRef(e);return useLayoutEffect(()=>{t.current=e;},[e]),useCallback((...o)=>{if(t.current)return t.current(...o)},[])}var qd=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"})),Zd=wa("div",{shouldForwardProp:e=>e!=="maxHeight"})(({theme:e,maxHeight:t})=>({display:"flex",flexDirection:"column",rowGap:e.spacing(1.5),maxHeight:t,overflowY:"auto"}));function ns(e,t,o){return e===1&&o?o:t}var Yd=58,Kd=66;function Qd({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[b,x]=useState(null),[T,v]=useState(false),[y,I]=useState(false),R=useRef({}),P=useRef(24),M=useRef(null),E=ia(f),h=ia(p),w=useMemo(()=>{let H=e?.length??0,A=b?.length??0;return H-A},[e?.length,b?.length]),C=useMemo(()=>{if(e&&b){let H=w>d?`${(P.current+12)*d-6}px`:"unset";return jsx(Zd,{maxHeight:H,children:e.filter(A=>!b.includes(A.id)).map(A=>jsx("div",{children:A.content},`popoverItem-${A.id}`))})}else return},[e,w,b,d]),z=useMemo(()=>e?e.map(H=>H.id):null,[e]),O=useCallback(()=>{if(r===void 0||!e)return;let H=r,A=[],G=0,D=0,L=1,Y=false;for(let N=0;N<e.length;N++){D=G;let re=(R.current[e[N].id]??0)+(N<e.length-1?o:0);if(G+=re,G>H)if(L===u){Y=true;break}else A.push(e[N].id),D=re,G=re,L++;else A.push(e[N].id),D=G;}let K=e.length-A.length<10?Yd:Kd;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--);v(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(G=>G.id),A=H.join(",");M.current!==A&&(M.current=null,R.current={},I(false)),t?(x(H),v(true),E?.()):x(H);}},[e,t,E]),useEffect(()=>{y&&!t&&O();},[y,O,t]),z?jsxs(qd,{multiline:t||u>1,maxHeight:t?void 0:`${u*P.current+(u-1)*n}px`,columnGap:o+"px",rowGap:n+"px",show:T,"data-qa":g,children:[e.map(H=>b?.includes(H.id)&&jsx("span",{"data-qa":`${g}-listItem`,ref:A=>{if(A&&!R.current[H.id]&&(R.current[H.id]=A.offsetWidth,P.current=A.offsetHeight,!t)){let G=difference(z,Object.keys(R.current)),D=z.join(",");G.length===0&&M.current!==D&&(M.current=D,setTimeout(()=>{I(true);},0));}},children:H.content},`listItem-${H.id}`)),!t&&w>0&&jsxs(Fragment,{children:[a==="popover"&&jsx(b$1,{title:C,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:`+ ${w} ${ns(w,l,s)}`})})})}),a!=="popover"&&jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${w} ${ns(w,l,s)}`})]})]}):null}var ua=ue__default.memo(Qd);var nf=wa("div")(()=>({paddingRight:"6px"}));function rf({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(wt,{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(nf,{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 af=ue__default.memo(rf);var as=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"}})),is=wa(Ic$1)(({theme:e})=>({margin:e.spacing(.5),display:"inline-flex",alignItems:"flex-start"})),ls=wa("div")({display:"inline-flex",flexGrow:1,minWidth:"50px"}),ss=wa(ec$1)(({theme:e})=>({flex:1,padding:e.spacing(.5,0),"& .MuiInputBase-input":{padding:0,height:"120px"}}));var sf=({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:b,dataTags:x,width:T,validateChip:v})=>{let[y,I]=useState([]),[R,P]=useState(""),[M,E]=useState(void 0),[h,w]=useState(true),C=useRef(null),z=useRef(null);useEffect(()=>{if(n!==void 0){let U=H(n).map(k=>{let W=v?v(k):void 0;return {id:O(),label:k,isValid:!W,errorMessage:W}});I(U);}},[n,v]);let O=()=>`chip-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,H=B=>B.split(/[\s,;]+/).map(U=>U.trim()).filter(U=>U.length>0),A=B=>B.map(U=>U.label).join(","),G=useCallback(B=>{let U=F=>{if(F&&v)return v(F)},k=B.trim();if(!k)return;let W=U(k),V={id:O(),label:k,isValid:!W,errorMessage:W};I(F=>{let Q=[...F,V];return d&&d({name:t,value:R,chips:Q,allValues:A(Q)}),Q}),P(""),W&&E(W);},[R,t,d,v]),D=useCallback(B=>{I(U=>{let k=U.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 U=B.target.value,k=U;if(E(void 0),/[\s,;]/.test(U)){let W=H(U);W.length>1&&(W.slice(0,-1).forEach(V=>G(V)),k=W[W.length-1]);}P(k),d&&d({name:t,value:U,chips:y,allValues:A(y)});},[G,y,t,d]),Y=useCallback(B=>{if((B.key==="Enter"||B.key===" "||B.key===","||B.key===";")&&R.trim()&&(B.preventDefault(),G(R)),(B.key==="Backspace"||B.key==="Delete")&&R.length===0){B.preventDefault();let U=y[y.length-1];U&&D(U.id);}B.key==="Space"&&B.preventDefault(),p&&p(B);},[G,y,D,R,p]),K=useCallback(B=>{B.preventDefault();let U=B.clipboardData.getData("text"),k=H(U);k.length>0&&k.forEach(W=>G(W));},[G]),N=useCallback(B=>{B.stopPropagation(),w(false),C.current&&C.current.blur();},[]),re=useCallback(B=>{C.current&&(B.target.closest('[data-chip="true"]')||(w(true),C.current.focus()));},[]),ye=M??r,he=y.some(B=>!B.isValid),Se=!!M||s||he,j=()=>e??t;return jsx(b$4,{id:j(),label:o,helperText:ye,errorText:Se?ye:void 0,disabled:false,readOnly:false,required:c,inlineLabel:u,sx:{width:T},children:jsxs(as,{ref:z,onClick:re,className:Se?"error":"",style:{width:T},"data-qa":b,"data-tags":x,children:[y.map(B=>jsx(is,{"data-chip":"true",onClick:N,children:jsx(wt,{label:B.label,status:B.isValid?"":"errorStatus",onDelete:()=>D(B.id),clickable:true,variant:"filled"})},B.id)),jsx(ls,{children:jsx(ss,{inputRef:C,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":b,"data-tags":x},autoFocus:l,multiline:true,rows:4,maxRows:4,fullWidth:true})})]})})},cf=sf;function us({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 mf({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,b]=useState(i);useEffect(()=>{b(i);},[i]);let x=I=>{b(I.target.checked),d&&d({name:t,value:I.target.checked});},T=()=>jsxs(Ic$1,{display:"flex",children:[a&&jsx(g,{sx:{marginRight:m.spacing()}}),r]}),v=I=>I?"On":"Off",y=()=>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:`${y()}-toggle`,name:t,size:"small",inputProps:{"aria-labelledby":o?`${y()}-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:`${e}-label`,htmlFor:`${e}-toggle`,required:l,disabled:s,sx:{color:m.palette.ux.primary.text.wMain,cursor:s?"auto":"pointer"},children:[jsx(us,{bold:false,large:c,disabled:s,children:`${o}${u?": ":""}`}),u&&jsx(us,{bold:true,large:c,disabled:s,children:v(g$1)})]})})]}),r&&jsx(he,{error:a,component:"div",sx:{marginLeft:m.spacing(.4)},children:T()})]})}var gf=mf;var Sf=({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(go,{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"}})},ps=Sf;var Uo=(n=>(n.SINGLE="single",n.MULTI="multi",n.NONE="none",n))(Uo||{}),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)}`}})),ot=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})),bf=wa(ot)(()=>({textAlign:"right"})),ds=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.clickable":{cursor:"pointer"}})),fs=wa("td")({borderCollapse:"collapse",padding:0,maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0}),bo=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"}})),ms=()=>jsx(bo,{className:"icon-column"},"emptyHeaderCell"),gs=e=>jsx(ot,{},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(ot,{style:{textAlign:"center",paddingTop:"4px",paddingBottom:"4px"},children:o&&jsx(go,{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")},hs=({columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})=>jsx(bo,{className:"icon-column",children:jsx(ps,{id:"column-hiding-control",columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})},"column-hiding-control");var xs=({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:b=true,selectRowWhenClickOnChildren:x=true,renderChildren:T,expandedRowIds:v,setExpandedRowIds:y})=>{let[I,R]=useState();useEffect(()=>{if(!e)return;let h=0,w=o||n;if(w&&w.length>0){w.forEach(z=>{z.isHidden||h++;});let C=0;b&&C++,r==="multi"&&C++,d&&C++,R(h+C);}},[t,e,o,n,g,m,b,r,d]);function P(h){if(!b)return;let w=v&&v?.findIndex(C=>C===h.id)>=0;return jsx(ot,{className:"expand-icon",onClick:C=>{if(C.stopPropagation(),v){let z=v.findIndex(O=>O===h.id);if(z>=0){let O=v.slice(0);O.splice(z,1),y?.(O);}else y?.([...v,h.id]);}},children:jsx(Et,{className:`cursor-pointer chevron ${w?"expanded":""}`})},`${h.id}_chevron`)}function M(h,w){return w&&T&&jsx(ds,{className:D({selected:r==="multi"&&l?s===h.id:a?.includes(h.id),clickable:r==="multi"||r==="single",expanded:w}),onClick:()=>{x&&i(h);},children:jsx(fs,{colSpan:I,children:T(h)},`${h.id}_childrenTd_${I}`)},`${h.id}_childrenTr`)}function E(){return t.map(h=>{let w=!b||!!v?.find(C=>C===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:w}),"data-qa":h.id,children:[r==="multi"&&c(h),P(h),...u(h,o,n),...f(h)].filter(Boolean)},h.id),M(h,w)]},`${h.id}_wrapper`)})}return {createRowNodes:E}};var Ef="bottom-end",Rf=({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:b})=>{let x=useCallback(P=>jsx(ot,{className:"checkbox",onClick:M=>M.stopPropagation(),children:jsx(l,{name:`${P.id}`,onChange:g,checked:o.includes(P.id),disabled:n?.includes(P.id)})},`${P.id}_rowCheckbox`),[o,n,g]),T=useCallback(P=>s?[fa(P,s(P))]:l$1&&l$1.length>0?[fa(P,l$1)]:!l$1&&u?[gs(P)]:[],[u,s,l$1]),v=useMemo(()=>!!s||l$1&&l$1.length>0||!l$1&&u,[u,s,l$1]),y=useCallback((P,M,E)=>i?i(P):((M||E)??[]).map(w=>{if(!w.hasNoCell&&!w.isHidden){let C=P.id+"_"+w.field;return jsxs(ot,{children:[w.tooltip&&jsx(b$1,{variant:"overflow",title:P[w.field],placement:Ef,children:P[w.field]}),!w.tooltip&&jsx("span",{children:P[w.field]})]},C)}else return}),[i]),I=useCallback(()=>e.map(P=>jsx(So,{onMouseEnter:c?()=>c(P):void 0,onClick:()=>b(P),className:D({selected:t==="multi"&&r?a===P.id:o.includes(P.id),clickable:(t==="multi"||t==="single")&&!n?.includes(P.id),disabled:n?.includes(P.id)}),"data-qa":P.id,children:[t==="multi"&&x(P),...y(P,d,p),...T(P)]},P.id)),[e,c,t,r,a,o,n,x,y,d,p,T,b]),R=xs({enabled:f!=null,rows:e,displayedColumns:d,internalDisplayedColumns:p,selectionType:t,handleRowClick:b,selectedRowIds:o,independentRowHighlight:r,highlightedRowId:a,addCheckBoxToRows:x,renderConfiguredRowCells:y,hasRowActionItems:v,renderRowActionItems:T,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():I()},Ss=Rf;var bs=({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"})})]})})},Cs=({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})})]})})},ys=({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",Lf="Select all on this page",Mf="Deselect all on this page",kf="Select all pages",Af="Deselect all pages";function vs(e,t){return e?t?kf:Lf:t?Af:Mf}var Bf=({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:b,handleSort:x,internalDisplayedColumns:T,handleDisplayColumnsChanged:v})=>{let y=useCallback(()=>{if(e==="multi")return jsx(bo,{className:"checkbox-column",children:jsx(b$1,{title:vs(!(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]),I=useCallback(()=>{if(l$1?.allowToggle)return jsx(bo,{className:"expand-column"},"expandHeader")},[l$1?.allowToggle]),R=useCallback((M,E)=>M.map(h=>!h.isHidden&&jsx(bo,{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,b):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(bs,{}):jsx(Cs,{})})}),E?.field!==h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:ga,children:jsx("div",{children:jsx(ys,{})})})]})},h.headerName)),[x,b,t]);return useCallback(()=>{let M=t||b,E=cloneDeep((i||T)??[]);return jsx(So,{className:"header",onMouseEnter:r?()=>r():void 0,children:[y(),I(),R(E,M),(!!o||n)&&!a&&ms(),a&&hs({columns:E,displayedColumnsChangedCallback:v,customContentDefinitions:s,displayedCustomContent:c,customContentDisplayChangeCallback:u,customMenuActions:d})].filter(Boolean)},"headerRow")},[t,b,i,T,r,y,I,R,o,n,a,v,s,c,u,d])()},ws=Bf;var Ts=({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:b,displayedColumns:x,displayedColumnsChangedCallback:T,expandableRowOptions:v,customContentDefinitions:y,displayedCustomContent:I,customContentDisplayChangeCallback:R,customMenuActions:P,crossPageRowSelectionSupported:M=false,totalObjectCount:E=0,allPagesSelectedByDefault:h=false,deselectedRowIds:w,crossPageSelectionChangedCallback:C})=>{let[z,O]=useState(false),[H,A]=useState(false),[G,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(W=>W.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&&w.length===0||!h&&n.length===E;O(k);}else O(h);},[h,N,w.length,n.length,E]),useEffect(()=>{N&&(E>0?A(h&&w.length>0&&w.length<E||!h&&n.length>0&&n.length!==E):A(false));},[h,N,w.length,n.length,E]),useEffect(()=>{if(N&&h&&C){let k=[...n],W=[];e.forEach(V=>{if(!w.includes(V.id))k.includes(V.id)||k.push(V.id),W.push(V);else if(n.includes(V.id)){let F=k.indexOf(V.id);F>=0&&k.splice(F,1);}}),isEqual(n,k)||C(W,true,k,w);}},[C,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(C)if(n.includes(k.id)){let W=e.filter(Q=>n.includes(Q.id)&&Q.id!==k.id),V=n.filter(Q=>Q!==k.id),F=h?[...w,k.id]:w;C(W,h,V,F);}else C([k],false,[k.id],[]);}else if(r)if(n.includes(k.id)){let W=e.filter(V=>n.includes(V.id)&&V.id!==k.id);r(W),W.length<e.length&&z&&O(false);}else r([k]),O(e.length===1);}},[h,M,C,w,a,l,i,s,e,z,n,r,o]),ye=useCallback((k,W,V)=>{let F=K.current.find(Q=>Q.field===k.field);F&&F.sortable&&(W?(W.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((W,V)=>{k&&k[V]&&(W.isHidden=k[V].isHidden);}),Y(k),T?.(k);},[T]),Se=useCallback(k=>{let W=e;a&&a.length>0&&(W=e.filter(F=>!a.includes(F.id))),N?C&&(k.value?(O(!(W.length<e.length)),C(W,true,W.map(F=>F.id),[])):(O(false),C([],false,[],[]))):r&&(k.value?(O(true),r(W)):(O(false),r([])));},[C,N,e,r,a]),j=useCallback(k=>{if(N&&!C||!N&&!r)return;let W=e.find(V=>V.id===k.name);if(W)if(k.value){if(!n.includes(k.name)){let V=[...e.filter(F=>n.includes(F.id)&&F.id!==k.name),W];if(!N)r?.(V),V.length===e.length&&!z&&O(true);else if(N&&C){let F=[...n,k.name];h?C(V,true,F,w.filter(Q=>Q!==k.name)):C(V,false,F,w);}}}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&&C){let F=n.filter(Q=>Q!==k.name);if(h){let Q=[...w,k.name];Q.length===E?C([],false,[],[]):C(V,true,F,Q);}else C(V,false,F,w);}}},[N,C,r,e,n,z,h,w,E]),B=ws({selectionType:o,sortedColumn:c,rowActionMenuItems:f,renderCustomRowActionItem:p,headerHoverCallback:m,hasColumnHiding:b,displayedColumns:x,expandableRowOptions:v,customContentDefinitions:y,displayedCustomContent:I,customContentDisplayChangeCallback:R,customMenuActions:P,crossPageSelectionEnabled:N,selectAll:z,indeterminate:H,handleSelectAllChange:Se,internalSortedColumn:G,handleSort:ye,internalDisplayedColumns:L,handleDisplayColumnsChanged:he}),U=Ss({rows:e,selectionType:o,selectedRowIds:n,disabledRowIds:a,independentRowHighlight:i,highlightedRowId:l,renderCustomRowCells:d,rowActionMenuItems:f,renderCustomRowActionItem:p,rowHoverCallback:g,hasColumnHiding:b,displayedColumns:x,expandableRowOptions:v,internalDisplayedColumns:L,handleDisplayColumnsChanged:he,handleRowSelectionChange:j,handleRowClick:re});return [B,U]};var Ff={xs:14,sm:24,md:30,lg:42},_f=wa("div")(({theme:e,inline:t})=>({width:"fit-content",display:"flex",flexDirection:t?"row":"column",alignItems:"center",gap:e.spacing(1.5)}));function Gt(e){let{variant:t,value:o,size:n,disableShrink:r,dataQa:a,message:i,inline:l}=e;return jsxs(_f,{"data-qa":a??"loading-spinner",inline:l,children:[jsx(Db,{variant:t??"indeterminate",value:t==="determinate"?o:void 0,size:Ff[n??"sm"],disableShrink:r,sx:{color:ua$1().palette.ux.accent.n2.wMain}}),i&&jsx("div",{children:i})]})}var zf=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"})),Xf=wa("table")(()=>({borderCollapse:"collapse",width:"100%",tableLayout:"fixed"})),Gf=wa("div")(()=>({position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flex:"1"})),Wf=wa("tr")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:20})),Jf=wa("tr")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),Uf=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),qf=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})),Zf=wa("div")(({theme:e})=>({fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary})),Yf="No Items Found";function Kf(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 Qf(e){return uniq(e)}function jf(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 em({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:b,renderCustomRowActionItem:x,headerHoverCallback:T,rowHoverCallback:v,hasColumnHiding:y,displayedColumns:I,displayedColumnsChangedCallback:R,expandableRowOptions:P,loading:M,loadingMessage:E,customContentDefinitions:h,displayedCustomContent:w,customContentDisplayChangeCallback:C,maxHeight:z,minHeight:O,customMenuActions:H,crossPageRowSelectionSupported:A=false,totalObjectCount:G=0,allPagesSelectedByDefault:D=false,deselectedRowIds:L,crossPageSelectionChangedCallback:Y}){let K=Kf(r??[],n),N=Qf(i??[]),re=jf(L??[],n,A,D),[ye,he]=Ts({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:b,renderCustomRowActionItem:x,headerHoverCallback:T,rowHoverCallback:v,hasColumnHiding:y,displayedColumns:I,displayedColumnsChangedCallback:R,expandableRowOptions:P,customContentDefinitions:h,displayedCustomContent:w,customContentDisplayChangeCallback:C,customMenuActions:H,crossPageRowSelectionSupported:A,totalObjectCount:G,allPagesSelectedByDefault:D,deselectedRowIds:re,crossPageSelectionChangedCallback:Y});function Se(){return p||Yf}function j(){return jsx(Fragment,{children:m?m():Se()})}function B(){return jsxs(qf,{children:[jsx(Gt,{}),E&&jsx(Zf,{children:E})]})}return jsxs(zf,{maxHeight:z,minHeight:O,className:"tableWrapper",children:[jsxs(Xf,{"data-qa":e,children:[jsxs("thead",{style:{borderBottom:0,position:"relative"},children:[ye,M&&jsx(Wf,{})]}),jsxs("tbody",{style:{position:"relative"},children:[!!t.length&&he,M&&jsx(Jf,{})]})]}),jsxs(Gf,{children:[g!==false&&!t.length&&j(),M&&jsx(Uf,{})]}),M&&B()]})}var tm=em;var Ps=({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 im=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"})),lm=wa("div")(()=>({margin:"0"})),sm=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"})),cm=wa("div")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:2}));function um({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(im,{ref:c,isSmall:u,children:[jsx(lm,{children:jsx(Nf,{count:i,shape:"rounded",page:e,boundaryCount:2,onChange:(m,g)=>{m&&g>0&&a&&a(g);},renderItem:m=>jsx(Mf$1,{slots:{previous:Ps,next:Et},...m})})}),jsx(sm,{isSmall:u,children:o.replace("${firstItemIndex}",`${l}`).replace("${lastItemIndex}",`${s}`).replace("${pageSize}",`${t}`).replace("${activePage}",`${e}`).replace("${totalResults}",`${n}`)}),r&&jsx(cm,{})]})}var pm=um;var Is=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)};Is.displayName="SolacePopover";var fm=Is;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 xm=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 Sm({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 b=useCallback(y=>{y.preventDefault();let I=y.clientX-f.current,R=i==="right"?p-I:p+I;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",b,true),f.current=0,n?.(g.current);},[b,n]),T=useCallback(y=>{y.preventDefault(),f.current===0&&(f.current=y.clientX),document.addEventListener("mouseup",x,true),document.addEventListener("mousemove",b,true);},[b,x]),v=()=>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$1,{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:v()},BackdropProps:{style:v()},variant:"persistent",anchor:i,open:e,children:[o&&jsx(xm,{anchor:i,onMouseDown:T,children:jsx(nr,{})}),jsx(Ic$1,{sx:i==="left"?{marginRight:"8px",overflow:"auto"}:{marginLeft:"8px",overflow:"auto"},children:u})]})}var bm=Sm;var Os=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row})),Em=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRow})),Rm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRowContainer})),Pm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.list})),Im=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.border}));function As({id:e,index:t,items:o,gridTemplate:n,selected:r,indicatorVariant:a,emphasized:i,onClick:l,dataQa:s,virtualRow:c=false,isLoading:u=false,contentPlaceholder:d}){let f=p=>{p.key==="Enter"&&l(e);};return c?jsx(Em,{className:`${r?"selected":""} ${a?"indicator-"+a:""} ${i?"emphasized":""}`,onClick:()=>l(e),onKeyPress:p=>f(p),style:{gridTemplateColumns:n},tabIndex:t,"data-qa":`${s}-row-${e}`,children:u&&d?d:o},`row-${e}`):jsx(Os,{className:`${r?"selected":""} ${a?"indicator-"+a:""} ${i?"emphasized":""}`,onClick:()=>l(e),onKeyPress:p=>f(p),style:{gridTemplateColumns:n},tabIndex:t,"data-qa":`${s}-row-${e}`,children:o},`row-${e}`)}function Lm({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(""),b=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=b.palette.ux.background.w10),O},C=document.getElementById("listComponent")?.parentElement;if(C){let z=h(C);g(z);}},[b.palette.ux.background.w10]);let x=useMemo(()=>a?jsx(Os,{className:"headerRow",style:{gridTemplateColumns:c,backgroundColor:m,color:b.palette.ux.secondary.text.wMain},children:a.map((h,w)=>jsx("span",{children:h},w))},"headerRow"):null,[c,m,a,b.palette.ux.secondary.text.wMain]),T=useCallback(h=>{if(l){let w=t.find(C=>C[o]===h);w&&w[o]!==i&&l(w);}},[t,o,l,i]),{maskImage:v,onScrollHandler:y}=Zn(),I=qr(),R=()=>f&&t&&t.length>f?v:"none",[P,M]=useState(null);useEffect(()=>{let h=P;return h?.addEventListener("scroll",y),()=>{h?.removeEventListener("scroll",y);}},[P,y]);let E=useRef(null);return useEffect(()=>{if(i&&E.current&&t){let h=t.findIndex(w=>w[o]===i);h>=0&&E.current.scrollToItem(h);}},[t,o,i]),jsxs("div",{id:"listComponent","data-qa":u,style:{color:b.palette.ux.primary.text.wMain},children:[a&&x,jsxs(Im,{children:[!p&&jsx(Pm,{ref:M,style:{backgroundColor:d,maxHeight:f?`${I*f+I/2}px`:"none",maskImage:R(),WebkitMaskImage:R()},children:t?.map((h,w)=>jsx(As,{id:h[o]??w,index:w+1,items:s(h,w),selected:i?h[o]===i:false,indicatorVariant:h[n],emphasized:h[r],gridTemplate:c,onClick:T,dataQa:u},`solaceGridListRow-${h[o]??w}`))}),p&&t?.length>0&&jsx(FixedSizeList,{className:"List",style:{backgroundColor:d},height:p.height?p.height:f?I*f+I/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:w,isScrolling:C})=>jsx(Rm,{style:w,children:jsx(As,{id:t[h][o]??h,index:h+1,items:s(t[h],h),selected:i?t[h][o]===i:false,indicatorVariant:t[h][n],emphasized:t[h][r],gridTemplate:c,onClick:T,dataQa:u,virtualRow:true,isLoading:C,contentPlaceholder:p.contentPlaceholder},`solaceGridListRow-${t[h][o]??h}`)})})]})]},e)}var Ca=Lm;var Mm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.header})),km=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row}));function Am({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:b,showCount:x=false,itemsType:T="",virtualizedListOption:v}){let y="min(17px)",I="49px",[R,P]=useState(false),[M,E]=useState(""),h=ua$1(),[w,C]=useState(false),z=useMemo(()=>y.concat(" ",d),[d]);useEffect(()=>{s.length>0&&s.length<t.length?C(true):C(false);},[t?.length,s?.length]),useEffect(()=>{t.length!==0&&s.length===t.length?P(true):P(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&&P(true);}else if(c){let K=t.filter(N=>s.includes(N[o])&&N[o]!==L.name);c(K),K.length<t.length&&R&&P(false);}}},[R,t,o,c,s]),H=useCallback(L=>{c&&(L.value?(P(true),c(t)):(P(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 G=useMemo(()=>a?jsx(km,{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:v?void 0:{height:D?`calc(100% - ${I})`:"100%"},children:[G,D&&jsxs(Mm,{children:[p&&jsxs("div",{className:"selectAll",children:[jsx(l,{name:"ImageListSelectAllCheckbox",onChange:H,checked:R||w,indeterminate:w,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} ${T} 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:b,virtualizedListOption:v})]})}var Bm=Am;var Dm=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`})),$m=wa("span")(({theme:e})=>({...e.mixins.component_NotificationCounter.value}));function Nm({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),[b,x]=useState(false),T=useRef(null),v=useRef(null),y=ua$1(),I=keyframes`
|
|
7
|
+
C13.857,5.961,14.114,5.961,14.27,6.117z`})});var im=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"})),lm=wa("div")(()=>({margin:"0"})),sm=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"})),cm=wa("div")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:2}));function um({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(im,{ref:c,isSmall:u,children:[jsx(lm,{children:jsx(Nf,{count:i,shape:"rounded",page:e,boundaryCount:2,onChange:(m,g)=>{m&&g>0&&a&&a(g);},renderItem:m=>jsx(Mf$1,{slots:{previous:Ps,next:Et},...m})})}),jsx(sm,{isSmall:u,children:o.replace("${firstItemIndex}",`${l}`).replace("${lastItemIndex}",`${s}`).replace("${pageSize}",`${t}`).replace("${activePage}",`${e}`).replace("${totalResults}",`${n}`)}),r&&jsx(cm,{})]})}var pm=um;var Is=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)};Is.displayName="SolacePopover";var fm=Is;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 xm=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 Sm({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 b=useCallback(y=>{y.preventDefault();let I=y.clientX-f.current,R=i==="right"?p-I:p+I;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",b,true),f.current=0,n?.(g.current);},[b,n]),T=useCallback(y=>{y.preventDefault(),f.current===0&&(f.current=y.clientX),document.addEventListener("mouseup",x,true),document.addEventListener("mousemove",b,true);},[b,x]),v=()=>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$1,{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:v()},BackdropProps:{style:v()},variant:"persistent",anchor:i,open:e,children:[o&&jsx(xm,{anchor:i,onMouseDown:T,children:jsx(nr,{})}),jsx(Ic$1,{sx:i==="left"?{marginRight:"8px",overflow:"auto"}:{marginLeft:"8px",overflow:"auto"},children:u})]})}var bm=Sm;var Os=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row})),Em=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRow})),Rm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRowContainer})),Pm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.list})),Im=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.border}));function As({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(Em,{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(Os,{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 Lm({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(""),b=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=b.palette.ux.background.w10),O},C=document.getElementById("listComponent")?.parentElement;if(C){let z=h(C);g(z);}},[b.palette.ux.background.w10]);let x=useMemo(()=>a?jsx(Os,{className:"headerRow",style:{gridTemplateColumns:c,backgroundColor:m,color:b.palette.ux.secondary.text.wMain},children:a.map((h,w)=>jsx("span",{children:h},w))},"headerRow"):null,[c,m,a,b.palette.ux.secondary.text.wMain]),T=useCallback(h=>{if(l){let w=t.find(C=>C[o]===h);w&&w[o]!==i&&l(w);}},[t,o,l,i]),{maskImage:v,onScrollHandler:y}=Zn(),I=qr(),R=()=>f&&t&&t.length>f?v:"none",[P,M]=useState(null);useEffect(()=>{let h=P;return h?.addEventListener("scroll",y),()=>{h?.removeEventListener("scroll",y);}},[P,y]);let E=useRef(null);return useEffect(()=>{if(i&&E.current&&t){let h=t.findIndex(w=>w[o]===i);h>=0&&E.current.scrollToItem(h);}},[t,o,i]),jsxs("div",{id:"listComponent","data-qa":u,style:{color:b.palette.ux.primary.text.wMain},children:[a&&x,jsxs(Im,{children:[!p&&jsx(Pm,{ref:M,style:{backgroundColor:d,maxHeight:f?`${I*f+I/2}px`:"none",maskImage:R(),WebkitMaskImage:R()},children:t?.map((h,w)=>jsx(As,{id:h[o]??w,items:s(h,w),selected:i?h[o]===i:false,indicatorVariant:h[n],emphasized:h[r],gridTemplate:c,onClick:T,dataQa:u},`solaceGridListRow-${h[o]??w}`))}),p&&t?.length>0&&jsx(FixedSizeList,{className:"List",style:{backgroundColor:d},height:p.height?p.height:f?I*f+I/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:w,isScrolling:C})=>jsx(Rm,{style:w,children:jsx(As,{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:T,dataQa:u,virtualRow:true,isLoading:C,contentPlaceholder:p.contentPlaceholder},`solaceGridListRow-${t[h][o]??h}`)})})]})]},e)}var Ca=Lm;var Mm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.header})),km=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row}));function Am({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:b,showCount:x=false,itemsType:T="",virtualizedListOption:v}){let y="min(17px)",I="49px",[R,P]=useState(false),[M,E]=useState(""),h=ua$1(),[w,C]=useState(false),z=useMemo(()=>y.concat(" ",d),[d]);useEffect(()=>{s.length>0&&s.length<t.length?C(true):C(false);},[t?.length,s?.length]),useEffect(()=>{t.length!==0&&s.length===t.length?P(true):P(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&&P(true);}else if(c){let K=t.filter(N=>s.includes(N[o])&&N[o]!==L.name);c(K),K.length<t.length&&R&&P(false);}}},[R,t,o,c,s]),H=useCallback(L=>{c&&(L.value?(P(true),c(t)):(P(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 G=useMemo(()=>a?jsx(km,{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:v?void 0:{height:D?`calc(100% - ${I})`:"100%"},children:[G,D&&jsxs(Mm,{children:[p&&jsxs("div",{className:"selectAll",children:[jsx(l,{name:"ImageListSelectAllCheckbox",onChange:H,checked:R||w,indeterminate:w,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} ${T} 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:b,virtualizedListOption:v})]})}var Bm=Am;var Dm=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`})),$m=wa("span")(({theme:e})=>({...e.mixins.component_NotificationCounter.value}));function Nm({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),[b,x]=useState(false),T=useRef(null),v=useRef(null),y=ua$1(),I=keyframes`
|
|
8
8
|
0% {
|
|
9
9
|
transform: scale(1);
|
|
10
10
|
box-shadow: 0 0 0 0 ${P(y.palette.ux.info.w100,.3)};
|