solace-ui-components 18.0.0 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +1 -1
- package/dist/charts.modern.mjs +1 -1
- package/dist/{chunk-ULYCLLUO.modern.mjs → chunk-54TEARQI.modern.mjs} +2 -2
- package/dist/{chunk-ULYCLLUO.modern.mjs.map → chunk-54TEARQI.modern.mjs.map} +1 -1
- package/dist/{chunk-2RTZL4CF.modern.mjs → chunk-HQH2WKJP.modern.mjs} +3 -3
- package/dist/{chunk-2RTZL4CF.modern.mjs.map → chunk-HQH2WKJP.modern.mjs.map} +1 -1
- package/dist/{chunk-IHSXSGCC.modern.mjs → chunk-I7OJ5H4U.modern.mjs} +2 -2
- package/dist/{chunk-IHSXSGCC.modern.mjs.map → chunk-I7OJ5H4U.modern.mjs.map} +1 -1
- package/dist/{chunk-HLXBN2OE.modern.mjs → chunk-LGBO373S.modern.mjs} +2 -2
- package/dist/{chunk-HLXBN2OE.modern.mjs.map → chunk-LGBO373S.modern.mjs.map} +1 -1
- package/dist/{chunk-AOKITPX2.js → chunk-PYADJP2I.js} +2 -2
- package/dist/{chunk-AOKITPX2.js.map → chunk-PYADJP2I.js.map} +1 -1
- package/dist/{chunk-ROSPS5NM.modern.mjs → chunk-QKQRCYG4.modern.mjs} +2 -2
- package/dist/{chunk-ROSPS5NM.modern.mjs.map → chunk-QKQRCYG4.modern.mjs.map} +1 -1
- package/dist/{chunk-TSSPQLS6.js → chunk-SKQ7JGO5.js} +3 -3
- package/dist/{chunk-TSSPQLS6.js.map → chunk-SKQ7JGO5.js.map} +1 -1
- package/dist/{chunk-7SKICMGL.js → chunk-SWGQVSXQ.js} +2 -2
- package/dist/{chunk-7SKICMGL.js.map → chunk-SWGQVSXQ.js.map} +1 -1
- package/dist/{chunk-UFDVHFXE.js → chunk-SXQRCXMP.js} +2 -2
- package/dist/{chunk-UFDVHFXE.js.map → chunk-SXQRCXMP.js.map} +1 -1
- package/dist/{chunk-4XH33OL7.js → chunk-V45EFIXB.js} +2 -2
- package/dist/{chunk-4XH33OL7.js.map → chunk-V45EFIXB.js.map} +1 -1
- package/dist/{chunk-QV564WAK.modern.mjs → chunk-VYHLNTMX.modern.mjs} +2 -2
- package/dist/{chunk-QV564WAK.modern.mjs.map → chunk-VYHLNTMX.modern.mjs.map} +1 -1
- package/dist/chunk-YQTPPT5K.js +2 -0
- package/dist/{chunk-GDZZVHFP.js.map → chunk-YQTPPT5K.js.map} +1 -1
- package/dist/code-editor.d.mts +7 -2
- package/dist/code-editor.d.ts +7 -2
- package/dist/code-editor.js +2 -2
- package/dist/code-editor.js.map +1 -1
- package/dist/code-editor.modern.mjs +2 -2
- package/dist/code-editor.modern.mjs.map +1 -1
- package/dist/datepicker.js +1 -1
- package/dist/datepicker.modern.mjs +1 -1
- package/dist/drag-drop.js +1 -1
- package/dist/drag-drop.modern.mjs +1 -1
- package/dist/index.js +58 -58
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +55 -55
- 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/dist/textDiff.js +2 -2
- package/dist/textDiff.modern.mjs +1 -1
- package/migrate-imports.js +85 -75
- package/package.json +12 -5
- package/dist/chunk-GDZZVHFP.js +0 -2
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-2RTZL4CF.modern.mjs';export{a as SelectDropdownIcon,l as SolaceCheckBox,n as SolaceSelect,o as SolaceTextArea,m as SolaceTypography}from'./chunk-2RTZL4CF.modern.mjs';import {b as b$2}from'./chunk-HLXBN2OE.modern.mjs';export{b as SolaceButton,a as initializeDataTrackingApi}from'./chunk-HLXBN2OE.modern.mjs';import {b as b$4,c as c$1,d as d$2}from'./chunk-QV564WAK.modern.mjs';export{a as SolaceLabel,d as SolaceTextField}from'./chunk-QV564WAK.modern.mjs';import {b as b$1,a as a$2,d,e as e$1,f as f$1}from'./chunk-ULYCLLUO.modern.mjs';export{b as SolaceTooltip,a as TooltipVariant}from'./chunk-ULYCLLUO.modern.mjs';export{a as SolaceStackLabel}from'./chunk-ROSPS5NM.modern.mjs';import {a,wa,me,xc as xc$1,_h as _h$1,ni as ni$1,Ic as Ic$1,ec as ec$1,pi,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 as Of$1,Rf as Rf$1,D,le as le$1,Na,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,yf,hf,vf,Pd,Yb,sf as sf$1,kh as kh$1,Nf as Nf$1,Mf,P,kb,yb,qb,Ig,Lc as Lc$1,bi,Oe,Ue as Ue$1,bf as bf$1,Ze,Qc as Qc$1,gh as gh$1,Zg,Wg as Wg$1,Qg as Qg$1,Bg as Bg$1,Wc as Wc$1,dd,ad,bg,Uf as Uf$1,nc as nc$1,nh as nh$1,Ac as Ac$1}from'./chunk-IHSXSGCC.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-IHSXSGCC.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 Nm from'react-dom/server';import {Link}from'react-router-dom';import {ArrowLeft24Icon,ArrowRight24Icon}from'@SolaceDev/maas-icons';import zg from'@emotion/styled';import*as au from'react-dom';var tc=a($a=>{$a.__esModule=true;$a.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 Sl(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 np=wa(me)(()=>({minHeight:"calc(100vh - 108px)"}));function Cl(e){return jsxs(np,{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 rp=wa(xc$1)(({theme:e})=>({zIndex:e.zIndex.drawer+1,color:e.palette.ux.primary.text.w10}));function vl(e){return jsx(rp,{...e,children:jsx(Db,{})})}var ap=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 Tl({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(ap,{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]})})]})}function lp({children:e,bold:t,large:o,disabled:n}){let r=ua$1(),a=o?r.typography.subtitle1:r.typography.body1;return jsx(Ic$1,{component:"span",sx:{fontSize:a.fontSize,lineHeight:"24px",fontWeight:t?"medium":"regular",color:n?r.palette.ux.secondary.text.w50:r.palette.ux.primary.text.wMain},children:e})}function sp({id:e,name:t,label:o,value:n,title:r,subText:a,lightSubText:i=false,checked:l=false,required:s=false,disabled:c=false,largeLabel:u=false,onChange:d,dataQa:f,dataTags:p,readOnly:m=false}){let g=ua$1(),[b,x]=useState(l),T=Of$1();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}),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(lp,{bold:u||a!==void 0,large:u,disabled:c,children:o})})}),a&&jsx(Ic$1,{gridColumn:"2",gridRow:"2",children:jsx(le$1,{id:`${e}-subtext`,disabled:c,className:D({"light-sub-text":i,"radio-btn-label":true}),children:a})})]})}var cp=sp;var mp={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1};function gp({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=mp[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 hp=gp;var xp={xs:12,sm:18,md:24,lg:30},Sp={xs:20,sm:30,md:40,lg:50};function Ll({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:`${Sp[l]}px`,fontWeight:`${c?500:400}`,height:`${xp[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 Ml=(o=>(o.LIGHT_MODE="lightMode",o.DARK_MODE="darkMode",o))(Ml||{});var bp=(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))(bp||{}),Hn=(o=>(o.FILLED="filled",o.OUTLINED="outlined",o))(Hn||{}),Fn={xs:14,sm:18,md:24,lg:30},_n={xs:2,sm:3,md:4,lg:5};var kl=(a=>(a.NO_STATUS="",a.SUCCESS_STATUS="successStatus",a.INFO_STATUS="infoStatus",a.WARN_STATUS="warnStatus",a.ERROR_STATUS="errorStatus",a))(kl||{});var Al=(o=>(o.NOT_SELECTED="notSelectedState",o.ACTIVE="activeState",o))(Al||{});function yt({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:`${_n[l]}px`,fontWeight:`${c?500:400}`,height:`${Fn[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 Ol({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:`${_n.xs}px`,fontWeight:400,height:`${Fn.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,{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 Jr=()=>c$1.GridListItemHeight,Nt=()=>c$1.closeButtonAriaLabel,Nl=()=>c$1.actionMenuAriaLabel;var wp=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})),Tp=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(),padding:e.spacing()}));function Ep({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(wp,{children:[jsxs(Tp,{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 Rp=Ep;function qr({size:e,fill:t}){return jsxs(Na,{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-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
|
|
2
2
|
z M12.6,7h-1.2C11.2,7,11,7.2,11,7.4v1.2C11,8.8,11.2,9,11.4,9h1.2C12.8,9,13,8.8,13,8.6V7.4C13,7.2,12.8,7,12.6,7z M12.6,10h-1.2
|
|
3
|
-
c-0.2,0-0.4,0.2-0.4,0.4v6.2c0,0.2,0.2,0.4,0.4,0.4h1.2c0.2,0,0.4-0.2,0.4-0.4v-6.2C13,10.2,12.8,10,12.6,10z`,fill:t}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:t})]})}function
|
|
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 ld=335,Jl=({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=ld,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(($,re)=>jsx(Jl,{id:`${$.name}-${re}`,name:$.name,itemHeight:f||38,closeOnSelect:d,subText:$?.subText,supplementalText:$?.supplementalText,divider:!!$?.divider,disabled:!!$?.disabled,icon:$?.icon,secondaryAction:$?.secondaryAction,onMenuItemClick:$?.onMenuItemClick,onMenuClose:C,subMenuItems:$?.subMenuItems,subMenuMaxWidth:$.subMenuMaxWidth??m,subMenuDirection:E},`${$.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(wt,{})})]}):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,{})]})},jr=Jl;function Un(){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 fd=9,md=335,Ul=32;function mo(e){let{id:t="solace-menu",buttonProps:o,items:n,header:r,numOfMenuItemDisplayed:a=fd,maxWidth:i=md,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}=Un(),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*Ul+(r?1:0)*Ul+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(jr,{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),$=jsx(b$1,{title:L.disabledMenuItemTooltipContent||"This menuItem is disabled.",children:jsx("span",{children:K})});return L.disabled&&L.disabledMenuItemTooltipContent?$: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":Nl(),...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 gd=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)}})),hd=wa("ul")(()=>({padding:0})),oa=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}})),qn="SolaceSelectAutocomplete";function xd({label:e,error:t}){let o=ua$1();return jsxs(Ic$1,{display:"flex",flexDirection:"column",rowGap:o.spacing(1.5),children:[jsx(Ic$1,{style:{wordBreak:"break-word"},children:e}),jsx(Pd,{}),jsxs(Ic$1,{display:"flex",alignItems:"flex-start",columnGap:o.spacing(.5),children:[jsx(d,{size:18,fill:o.palette.ux.error.w100}),t]})]})}function Sd({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:$=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(""),[ze,to]=useState(null),[pt,gn]=useState(P||[]),[Dr,Nr]=useState(false),[hn,Lt]=useState(false),[dt,Mt]=useState(false),[Bo,xn]=useState(false),[ft,mt]=useState(false),Oo=useRef(""),Sn=useRef(null),[X,Z]=useState(null),pe=useRef(null),$r=useRef(null),bn=useRef(null),[Lu,Mu]=useState(0),[ku,Au]=useState(0),[ui,Hr]=useState(""),Do=useMemo(()=>f&&!$,[$,f]);useEffect(()=>{V(n||null);},[n]),useEffect(()=>{Nr(dt&&hn);},[dt,hn]),useEffect(()=>{F.length>0&&(gn([]),f&&G?.(F)?(Lt(false),Mt(false)):(Lt(true),w(F)));},[F,w,G,f]),useEffect(()=>{gn(P),Lt(false);},[P]),useEffect(()=>{ft&&(Lt(true),w(""),mt(false));},[w,ft]);let Bu=32,Ou=useCallback(_=>{_&&(Sn.current=_,Z(_));},[]),pi=useCallback(_=>_.subText?58:38,[]),Fr=useCallback((_,J,ee,se)=>_+J+ee*Bu+16>=se,[]),di=useCallback((_,J)=>!!(v&&v(_)!==J),[v]),fi=useCallback(_=>_&&v?v(_):"",[v]),Du=_=>{let J=_.match(/[\d.]+|\D+/g);if(Sn.current){let ee=Sn.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},Cn=useMemo(()=>{let _=0,J=0,ee=0,se=0,me="",ce=0;if(!X)return;let ve=Du(re);if(typeof ve=="string")return ve;if(!(!ve||ve<=58||ve>=X.scrollHeight)){for(let Xe=0;Xe<pt.length;Xe++){let gt=pt[Xe];if(J=pi(gt),Fr(_,J,se,ve)){ce=ve-_;break}if(typeof gt=="object"){if(di(gt,me)&&(se++,ee&&Fr(_,J,se,ve))){ce=ve-_;break}me=fi(gt);}_+=J,ee=J;}return ee/2+ce-8-(se===0?0:se*32)}},[pi,X,pt,re,Fr,di,fi]),Nu=(_,J,ee)=>{ee==="clear"&&Do&&F||(V(J||null),p&&p({name:t,value:J}),ee==="selectOption"&&Do&&J&&T&&(Array.isArray(J)&&J.some(me=>T(me))||T(J))&&(Q(""),mt(true)));},$u=(_,J,ee)=>{if(Do&&(ee==="reset"||ee==="selectOption"||ee==="removeOption")&&Oo.current)Q(Oo.current);else if(Oo.current=J,Q(J),J==="")to(null),mt(true);else if(!u&&!d&&f){let se=G?.(J);to(se??null),Mt(!se);}},Hu=()=>{Mt(true),(!f||!F)&&mt(true);},Fu=()=>{C&&C(),Do&&(Q(""),to(null)),Mt(false),xn(false);},_u=()=>{Q(""),to(null),xn(false);},Vu=_=>{let J=W.slice();J.splice(_,1),V(J),p&&p({name:t,value:J});},yn=()=>e||t,zu=_=>{$r.current=_,L&&L(_);},_r=useCallback(()=>{let _=pe.current,J=$r.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);Mu(me),Au(ce);},[]),mi=useCallback(_=>{let J=$r.current;if(!J)return _;let ee=getComputedStyle(J),se=`${ee.fontStyle} ${ee.fontVariant} ${ee.fontWeight} ${ee.fontSize}/${ee.lineHeight} ${ee.fontFamily}`;bn.current||(bn.current=document.createElement("canvas"));let ce=bn.current.getContext("2d");if(!ce)return _;ce.font=se;let ve=J.clientWidth,Xe="...";if(ce.measureText(_).width<=ve)return _;let ht=0,vn=_.length-1,No="",$o="";for(;ht<=vn;){let wn=No+_[ht],Tn=_[vn]+$o;if(ce.measureText(wn+Xe+Tn).width+1<=ve)No=wn,$o=Tn,ht++,vn--;else {let gi=ce.measureText(wn+Xe+$o).width,hi=ce.measureText(No+Xe+Tn).width;if(gi<=ve&&gi>=hi)No=wn,ht++;else if(hi<=ve)$o=Tn,vn--;else break}}return No+Xe+$o},[]),Vr=useCallback(()=>{if(f||U!=="middle")return;let _=W&&!Array.isArray(W)?W:null,J=_?b(g(_)):"";if(!J){Hr("");return}Hr(dt||Bo?"":mi(J));},[mi,Bo,g,f,dt,b,W,U]);useEffect(()=>{_r(),Vr();let _=window.ResizeObserver,J=_?new _(()=>{_r(),Vr();}):void 0;return pe.current&&J&&J.observe(pe.current),()=>{J?.disconnect(),bn.current=null;}},[_r,Vr]);let Xu=_=>v&&y?jsxs("li",{children:[(_.key!==0||_.group)&&jsxs("div",{children:[_.key!==0&&jsx(Pd,{}),_.group&&jsx("div",{className:"MuiAutocomplete-groupLabel",children:_.group})]}),_.children&&jsx(hd,{children:_.children})]},_.key):null,Gu=(_,J)=>jsx(b$1,{variant:a$2.rich,title:jsx(xd,{label:_,error:J}),placement:"bottom-start",children:jsx("span",{children:_})}),Wu=_=>jsx(b$1,{variant:a$2.overflow,title:_,placement:"bottom-start",children:_}),Ju=_=>_.map((J,ee)=>{let se=b(g(J)),me=A?.(J)??null;return jsx(yt,{label:jsx("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:me?Gu(se,me):Wu(se)}),clickable:!d,disabled:u,onDelete:()=>Vu(ee),dataQa:`${I??qn}-${ee}`,status:me?"errorStatus":"",maxWidth:Se===null?void 0:Se},`${I??qn}-${ee}`)}),Uu=()=>jsx(nc$1,{ListboxProps:{style:{maxHeight:typeof Cn=="string"?Cn:`calc(${re} - ${Cn?Cn+"px":"0px"})`},ref:Ou},id:yn(),"data-qa":I??qn,filterOptions:_=>_,onInputChange:$u,options:pt,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:Dr,open:dt,multiple:f,disableCloseOnSelect:K??f,onClose:Fu,openOnFocus:Y,onOpen:Hu,onChange:Nu,onBlur:_u,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,Xe=me?me.icon:null,gt=dt||Bo;return jsxs(Ic$1,{sx:{position:"relative"},ref:pe,children:[jsx(gd,{...se,textEllipsisPosition:U,hideInputText:!gt&&U==="middle",title:a,autoComplete:"off",placeholder:i,error:!!ze||l,inputProps:{...ee,"data-qa":`${I??qn}-input`,"data-tags":R,"aria-describedby":r?`${yn()}-select-helper-text`:"","aria-labelledby":o?`${yn()}-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&&Xe&&jsx(oa,{sx:{padding:k.spacing(0,1,0,0)},children:Xe})]}),endAdornment:jsxs(Fragment,{children:[J.endAdornment,j&&ce&&jsx(oa,{sx:{padding:k.spacing(0,1)},children:ce}),j&&ve&&jsx(oa,{sx:{padding:k.spacing(0,1)},children:ve})]})},inputRef:zu,onKeyDown:ht=>{(ht.key==="Backspace"||ht.key==="Delete")&&ht.stopPropagation();}}),!f&&U==="middle"&&ui&&!gt&&jsx(Ic$1,{"aria-hidden":true,sx:{position:"absolute",pointerEvents:"none",top:0,left:`${Lu}px`,right:`${ku}px`,height:"100%",display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",color:k.palette.ux.primary.text.wMain,padding:0},children:ui})]})},isOptionEqualToValue:z,getOptionDisabled:O,renderTags:M||Ju,limitTags:E,getLimitTagsText:h$1,ChipProps:{deleteIcon:jsx(h,{})},groupBy:v,renderGroup:v&&y?Xu:void 0,fullWidth:ye,sx:{minWidth:he},clearText:Do&&F?"Clear Search":"Clear"});return jsx(b$4,{id:yn(),label:o,helperText:r,errorText:ze||(l?r:void 0),disabled:u,readOnly:d,required:s,inlineLabel:c,centerInlineLabel:c,sx:{width:D},children:Uu()})}var bd=Sd;var yd=e=>e?.name??"",vd=e=>e?.divider??false,wd=(e,t)=>e?.value===t?.value,Td=e=>e?.categoryHeading??"";function Ed({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 Rd=Ed;var Id=wa("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",fontFamily:e.typography.fontFamily})),Ld=wa("div")(()=>({margin:"0px 0px 40px 0px"})),Md=wa("p")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.xl,color:e.palette.ux.primary.text.wMain,textAlign:"center"})),kd=wa("div")(({theme:e})=>({margin:"0px 0px 14px 0px",fontSize:ni$1.sm,color:e.palette.ux.primary.text.wMain})),Ad=wa("div")(()=>({display:"flex",flexDirection:"row",alignItems:"center"}));function Bd({msgImg:e,title:t,details:o,actions:n}){return jsxs(Id,{children:[e&&jsx(Ld,{children:e}),t&&jsx(Md,{children:t}),o&&jsx(kd,{children:o}),n&&jsx(Ad,{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 Od=Bd;function ra(e){let t=useRef(e);return useLayoutEffect(()=>{t.current=e;},[e]),useCallback((...o)=>{if(t.current)return t.current(...o)},[])}var zd=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"})),Xd=wa("div",{shouldForwardProp:e=>e!=="maxHeight"})(({theme:e,maxHeight:t})=>({display:"flex",flexDirection:"column",rowGap:e.spacing(1.5),maxHeight:t,overflowY:"auto"}));function Ql(e,t,o){return e===1&&o?o:t}var Gd=58,Wd=66;function Jd({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=ra(f),h=ra(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(Xd,{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 $=0;$<e.length;$++){D=G;let re=(R.current[e[$].id]??0)+($<e.length-1?o:0);if(G+=re,G>H)if(L===u){Y=true;break}else A.push(e[$].id),D=re,G=re,L++;else A.push(e[$].id),D=G;}let K=e.length-A.length<10?Gd:Wd;if(c&&(K=c),Y&&D+K>H)for(let $=A.length-1;$>=0&&(D-=(R.current[A[$]]??0)+($<e.length-1?o:0),A.splice($,1),!(D+K<=H));$--);v(true),x(A),h?.(e.filter($=>!A.includes($.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(zd,{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} ${Ql(w,l,s)}`})})})}),a!=="popover"&&jsx("span",{style:{whiteSpace:"nowrap"},children:`+ ${w} ${Ql(w,l,s)}`})]})]}):null}var sa=ue__default.memo(Jd);var Kd=wa("div")(()=>({paddingRight:"6px"}));function Qd({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(yt,{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(Kd,{children:jsx(sa,{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 jd=ue__default.memo(Qd);var es=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"}})),ts=wa(Ic$1)(({theme:e})=>({margin:e.spacing(.5),display:"inline-flex",alignItems:"flex-start"})),os=wa("div")({display:"inline-flex",flexGrow:1,minWidth:"50px"}),ns=wa(ec$1)(({theme:e})=>({flex:1,padding:e.spacing(.5,0),"& .MuiInputBase-input":{padding:0,height:"120px"}}));var tf=({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]),$=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(es,{ref:z,onClick:re,className:Se?"error":"",style:{width:T},"data-qa":b,"data-tags":x,children:[y.map(B=>jsx(ts,{"data-chip":"true",onClick:$,children:jsx(yt,{label:B.label,status:B.isValid?"":"errorStatus",onDelete:()=>D(B.id),clickable:true,variant:"filled"})},B.id)),jsx(os,{children:jsx(ns,{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})})]})})},of=tf;function as({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 sf({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(as,{bold:false,large:c,disabled:s,children:`${o}${u?": ":""}`}),u&&jsx(as,{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 cf=sf;var df=({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(mo,{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"}})},is=df;var Wo=(n=>(n.SINGLE="single",n.MULTI="multi",n.NONE="none",n))(Wo||{}),ua=(o=>(o.ASC="asc",o.DCS="desc",o))(ua||{}),xo=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==="solace"?e.palette.ux.brand.w10:e.palette.ux.secondary.w20,"+ tr.expanded.selected":{backgroundColor:pi==="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)}`}})),et=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})),ff=wa(et)(()=>({textAlign:"right"})),ls=wa("tr")(({theme:e})=>({borderCollapse:"collapse",borderBottom:`1px solid ${e.palette.ux.secondary.w20}`,"&.clickable":{cursor:"pointer"}})),ss=wa("td")({borderCollapse:"collapse",padding:0,maxWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:0}),So=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"}})),cs=()=>jsx(So,{className:"icon-column"},"emptyHeaderCell"),us=e=>jsx(et,{},e.id+"_emptyRowCell"),pa=(e,t)=>{let o=t&&t.length>0?t.map(r=>({...r,onMenuItemClick:()=>{r.callback(e);}})):null,n=e.disabledRowActionMenu;return jsx(et,{style:{textAlign:"center",paddingTop:"4px",paddingBottom:"4px"},children:o&&jsx(mo,{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")},ps=({columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})=>jsx(So,{className:"icon-column",children:jsx(is,{id:"column-hiding-control",columns:e,displayedColumnsChangedCallback:t,customContentDefinitions:o,displayedCustomContent:n,customContentDisplayChangeCallback:r,customMenuActions:a})},"column-hiding-control");var ds=({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(et,{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(wt,{className:`cursor-pointer chevron ${w?"expanded":""}`})},`${h.id}_chevron`)}function M(h,w){return w&&T&&jsx(ls,{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(ss,{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(xo,{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 bf="bottom-end",Cf=({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(et,{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?[pa(P,s(P))]:l$1&&l$1.length>0?[pa(P,l$1)]:!l$1&&u?[us(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(et,{children:[w.tooltip&&jsx(b$1,{variant:"overflow",title:P[w.field],placement:bf,children:P[w.field]}),!w.tooltip&&jsx("span",{children:P[w.field]})]},C)}else return}),[i]),I=useCallback(()=>e.map(P=>jsx(xo,{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=ds({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()},fs=Cf;var ms=({fill:e})=>{let t=ua$1().palette.ux.secondary.wMain;return jsx(Na,{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"})})]})})},gs=({fill:e})=>{let t=ua$1().palette.ux.secondary.wMain;return jsx(Na,{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})})]})})},hs=({fill:e})=>{let t=ua$1().palette.ux.secondary.w40;return jsx(Na,{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 fa="bottom-end",wf="Select all on this page",Tf="Deselect all on this page",Ef="Select all pages",Rf="Deselect all pages";function xs(e,t){return e?t?Ef:wf:t?Rf:Tf}var Pf=({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(So,{className:"checkbox-column",children:jsx(b$1,{title:xs(!(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(So,{className:"expand-column"},"expandHeader")},[l$1?.allowToggle]),R=useCallback((M,E)=>M.map(h=>!h.isHidden&&jsx(So,{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:fa,children:h.headerName}),E?.field===h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:fa,children:jsx("div",{children:E.sortDirection==="asc"?jsx(ms,{}):jsx(gs,{})})}),E?.field!==h.field&&h.sortable&&jsx(b$1,{title:"Sort",placement:fa,children:jsx("div",{children:jsx(hs,{})})})]})},h.headerName)),[x,b,t]);return useCallback(()=>{let M=t||b,E=cloneDeep((i||T)??[]);return jsx(xo,{className:"header",onMouseEnter:r?()=>r():void 0,children:[y(),I(),R(E,M),(!!o||n)&&!a&&cs(),a&&ps({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])()},Ss=Pf;var bs=({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([]),$=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(()=>{$||(e.length!==0&&n.length===e.length?O(true):O(false));},[n.length,e?.length,$]),useEffect(()=>{$||(n.length>0&&n.length<e.length?A(true):A(false));},[e?.length,n?.length,$]),useEffect(()=>{if($)if(E>0){let k=h&&w.length===0||!h&&n.length===E;O(k);}else O(h);},[h,$,w.length,n.length,E]),useEffect(()=>{$&&(E>0?A(h&&w.length>0&&w.length<E||!h&&n.length>0&&n.length!==E):A(false));},[h,$,w.length,n.length,E]),useEffect(()=>{if($&&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,$,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))),$?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,$,e,r,a]),j=useCallback(k=>{if($&&!C||!$&&!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(!$)r?.(V),V.length===e.length&&!z&&O(true);else if($&&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(!$)r?.(V),V.length<e.length&&z&&O(false);else if($&&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);}}},[$,C,r,e,n,z,h,w,E]),B=Ss({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:$,selectAll:z,indeterminate:H,handleSelectAllChange:Se,internalSortedColumn:G,handleSort:ye,internalDisplayedColumns:L,handleDisplayColumnsChanged:he}),U=fs({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 Bf={xs:14,sm:24,md:30,lg:42},Of=wa("div")(({theme:e,inline:t})=>({width:"fit-content",display:"flex",flexDirection:t?"row":"column",alignItems:"center",gap:e.spacing(1.5)}));function Xt(e){let{variant:t,value:o,size:n,disableShrink:r,dataQa:a,message:i,inline:l}=e;return jsxs(Of,{"data-qa":a??"loading-spinner",inline:l,children:[jsx(Db,{variant:t??"indeterminate",value:t==="determinate"?o:void 0,size:Bf[n??"sm"],disableShrink:r,sx:{color:ua$1().palette.ux.accent.n2.wMain}}),i&&jsx("div",{children:i})]})}var Nf=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"})),$f=wa("table")(()=>({borderCollapse:"collapse",width:"100%",tableLayout:"fixed"})),Hf=wa("div")(()=>({position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flex:"1"})),Ff=wa("tr")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:20})),_f=wa("tr")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),Vf=wa("div")(({theme:e})=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:e.palette.ux.deprecated.primary.text.w10,zIndex:2})),zf=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})),Xf=wa("div")(({theme:e})=>({fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary})),Gf="No Items Found";function Wf(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 Jf(e){return uniq(e)}function Uf(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 qf({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=Wf(r??[],n),$=Jf(i??[]),re=Uf(L??[],n,A,D),[ye,he]=bs({rows:t,columns:o,selectionType:n,selectedRowIds:K,selectionChangedCallback:a,disabledRowIds:$,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||Gf}function j(){return jsx(Fragment,{children:m?m():Se()})}function B(){return jsxs(zf,{children:[jsx(Xt,{}),E&&jsx(Xf,{children:E})]})}return jsxs(Nf,{maxHeight:z,minHeight:O,className:"tableWrapper",children:[jsxs($f,{"data-qa":e,children:[jsxs("thead",{style:{borderBottom:0,position:"relative"},children:[ye,M&&jsx(Ff,{})]}),jsxs("tbody",{style:{position:"relative"},children:[!!t.length&&he,M&&jsx(_f,{})]})]}),jsxs(Hf,{children:[g!==false&&!t.length&&j(),M&&jsx(Vf,{})]}),M&&B()]})}var Zf=qf;var vs=({className:e=""})=>jsx(Na,{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},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
|
|
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 em=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"})),tm=wa("div")(()=>({margin:"0"})),om=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"})),nm=wa("div")(()=>({position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.45)",zIndex:2}));function rm({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(em,{ref:c,isSmall:u,children:[jsx(tm,{children:jsx(Nf$1,{count:i,shape:"rounded",page:e,boundaryCount:2,onChange:(m,g)=>{m&&g>0&&a&&a(g);},renderItem:m=>jsx(Mf,{slots:{previous:vs,next:wt},...m})})}),jsx(om,{isSmall:u,children:o.replace("${firstItemIndex}",`${l}`).replace("${lastItemIndex}",`${s}`).replace("${pageSize}",`${t}`).replace("${activePage}",`${e}`).replace("${totalResults}",`${n}`)}),r&&jsx(nm,{})]})}var am=rm;var ws=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)};ws.displayName="SolacePopover";var lm=ws;var tr=({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 pm=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 dm({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(pm,{anchor:i,onMouseDown:T,children:jsx(tr,{})}),jsx(Ic$1,{sx:i==="left"?{marginRight:"8px",overflow:"auto"}:{marginLeft:"8px",overflow:"auto"},children:u})]})}var fm=dm;var Ls=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row})),bm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRow})),Cm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.virtualRowContainer})),ym=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.list})),vm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.border}));function Ps({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(bm,{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(Ls,{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 wm({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(Ls,{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}=Un(),I=Jr(),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(vm,{children:[!p&&jsx(ym,{ref:M,style:{backgroundColor:d,maxHeight:f?`${I*f+I/2}px`:"none",maskImage:R(),WebkitMaskImage:R()},children:t?.map((h,w)=>jsx(Ps,{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:Jr(),overscanCount:p.overscanCount??1,useIsScrolling:true,ref:h=>{E.current=h;},children:({index:h,style:w,isScrolling:C})=>jsx(Cm,{style:w,children:jsx(Ps,{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 Sa=wm;var Tm=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.header})),Em=wa("div")(({theme:e})=>({...e.mixins.layoutComponent_ImageList.row}));function Rm({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($=>s.includes($[o]));c([...K,Y]),K.length+1===t.length&&!R&&P(true);}else if(c){let K=t.filter($=>s.includes($[o])&&$[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=$=>{let re=window.getComputedStyle($).backgroundColor;return re!=="rgba(0, 0, 0, 0)"||($.parentElement?re=L($.parentElement):re=h.palette.ux.background.w10),re},K=document.getElementById("listComponent")?.parentElement;if(K){let $=L(K);E($);}},[h.palette.ux.background.w10]);let G=useMemo(()=>a?jsx(Em,{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(Tm,{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(Sa,{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 Pm=Rm;var Lm=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`})),Mm=wa("span")(({theme:e})=>({...e.mixins.component_NotificationCounter.value}));function km({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,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`
|
|
8
8
|
0% {
|
|
9
9
|
transform: scale(1);
|
|
10
10
|
box-shadow: 0 0 0 0 ${P(y.palette.ux.info.w100,.3)};
|
|
@@ -19,13 +19,13 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
19
19
|
transform: scale(1);
|
|
20
20
|
box-shadow: 0 0 0 0 ${P(y.palette.ux.info.w100,0)};
|
|
21
21
|
}
|
|
22
|
-
`;return useEffect(()=>{t!==f&&(t&&(a>0&&!T.current?(g(true),x(true),T.current=setTimeout(()=>{g(false),x(false),T.current=null;},i>0?i*a:a)):g(false)),p(t));},[a,t,i,f]),useEffect(()=>{e!==u&&(e&&a>0&&!v.current&&(x(true),v.current=setTimeout(()=>{x(false),v.current=null;},l>0?l*a:a)),d(e));},[a,l,u,e]),f?jsx(Fragment,{children:jsx(b$1,{title:r,children:jsx(
|
|
22
|
+
`;return useEffect(()=>{t!==f&&(t&&(a>0&&!T.current?(g(true),x(true),T.current=setTimeout(()=>{g(false),x(false),T.current=null;},i>0?i*a:a)):g(false)),p(t));},[a,t,i,f]),useEffect(()=>{e!==u&&(e&&a>0&&!v.current&&(x(true),v.current=setTimeout(()=>{x(false),v.current=null;},l>0?l*a:a)),d(e));},[a,l,u,e]),f?jsx(Fragment,{children:jsx(b$1,{title:r,children:jsx(Dm,{"data-qa":s?s+"-counterBadge":"counterBadge","data-tags":c,size:o,fontSize:n,sx:b&&a>0?{animation:`${I} ${a}ms ease infinite;`}:{},className:"notificationCounter",children:jsx($m,{sx:{opacity:m?0:1},"data-qa":s?s+"-counterValue":"counterValue","data-tags":c,children:e})})})}):jsx(Fragment,{})}var Hm=Nm;var Hs=({fill:e=""})=>{let t=ua$1().palette.ux?.secondary.wMain;return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"8",viewBox:"0 0 24 8",fill:"none",children:[jsx("circle",{cx:"6",cy:"4",r:"2",fill:e||t}),jsx("circle",{cx:"12",cy:"4",r:"2",fill:e||t}),jsx("circle",{cx:"18",cy:"4",r:"2",fill:e||t})]})};function Xm({minSize:e=0,defaultSize:t="50%",maxSize:o=-8,split:n="vertical",allowedResize:r=true,children:a,onDragFinished:i}){let l=ua$1(),s=l.palette.ux.secondary.w40,c=l.palette.ux.secondary.wMain,u=n==="vertical"?"horizontal":"vertical",d=typeof t=="string"?parseInt(t.replace("%","")):t/(typeof window<"u"?window.innerWidth:1e3)*100,f=e>0?e/(typeof window<"u"?window.innerWidth:1e3)*100:10,p=o>0?o/(typeof window<"u"?window.innerWidth:1e3)*100:90,m=x=>{if(i&&x.length>0){let T=x[0]/100*(typeof window<"u"?window.innerWidth:1e3);i(T);}},g=useMemo(()=>{if(!r)return "none";let x=n==="vertical"?jsx(nr,{fill:c}):jsx(Hs,{fill:c}),T=zm.renderToStaticMarkup(x);return `url("data:image/svg+xml;base64,${btoa(T)}")`},[r,c,n]),b=useMemo(()=>({width:n==="vertical"?r?"8px":"0px":"100%",height:n==="horizontal"?r?"8px":"0px":"100%",cursor:r?n==="vertical"?"ew-resize":"ns-resize":"default",borderLeft:n==="vertical"?`solid 1px ${s}`:"",borderRight:n==="vertical"?`solid 1px ${s}`:"",borderTop:n==="horizontal"?`solid 1px ${s}`:"",borderBottom:n==="horizontal"?`solid 1px ${s}`:"",backgroundImage:g,backgroundPosition:"center",backgroundRepeat:"no-repeat",display:r?"block":"none"}),[n,r,s,g]);return jsxs(PanelGroup,{direction:u,onLayout:m,style:{border:`solid 1px ${s}`,width:"100%",height:"100%"},children:[jsx(Panel,{defaultSize:d,minSize:f,maxSize:p,children:jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:a[0]})}),r&&jsx(PanelResizeHandle,{style:b}),jsx(Panel,{children:jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:a[1]})})]})}var Gm=Xm;var Jm=e=>`1px solid ${e}`,Um=({id:e,summary:t,details:o,indicatorVariant:n,disabled:r=false,expanded:a=false,hover:i=false,onChange:l,dataQa:s,dataTags:c,backgroundColor:u,square:d=true,border:f=true,borderColor:p,disablePadding:m=false})=>{let g=ua$1();return jsxs(kb,{id:e,square:d,disableGutters:true,disabled:r,expanded:a,onChange:l,"data-qa":s,"data-tags":c,sx:{backgroundColor:u??"transparent",border:f?Jm((()=>{switch(p){case "error":return g.palette.ux.error.w100;case "warn":return g.palette.ux.warning.w100;case "success":return g.palette.ux.success.w100;case "info":return g.palette.ux.info.w100;default:return g.palette.ux.secondary.w20}})()):"none"},slotProps:{transition:{timeout:350}},children:[jsx(yb,{expandIcon:jsx(Et,{}),className:D({hasHoverEffect:i},n?`indicator-${n}`:""),children:t}),jsx(qb,{sx:{padding:m?0:void 0},children:o})]})},qm=Um;function at(e){let{children:t,spacing:o=2,...n}=e;return jsx(Ig$1,{spacing:o,...n,children:t})}function Vs(e){let{children:t,container:o,...n}=e,{spacing:r}=n;o&&!r&&(r=2);let a=ua$1();return jsx(me,{container:o,spacing:r,color:a.palette.ux.primary.text.wMain,...n,children:t})}var Pa=wa(Re)(()=>({maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),zs=wa("div")(({theme:e})=>({alignItems:"center",columnGap:e.spacing(.5),display:"flex",flexDirection:"row"}));function eg({id:e,paths:t,maxItems:o=8,onRouteClick:n,dataQa:r="breadcrumbs",dataTags:a}){let i=useMemo(()=>t.map(({link:l})=>()=>{n&&n(l);}),[n,t]);return jsx(Lc$1,{id:e,separator:jsx(j,{fontSize:"small"}),maxItems:o,"data-qa":r,"data-tags":a,children:t.map(({title:l,link:s,current:c,tooltip:u,progress:d,progressTooltip:f},p)=>c?jsxs(zs,{children:[jsx(Pa,{underline:"none",component:"span","data-qa":s,children:l}),d&&jsx(b$1,{title:f,children:jsx("div",{children:jsx(Gt,{size:"xs"})})})]},s):jsxs(zs,{children:[jsx(b$1,{title:u,variant:"overflow",children:n?jsx(Pa,{underline:"hover",component:"button",onClick:i[p],"data-qa":s,children:l}):jsx(Pa,{underline:"hover",component:Link,to:s,"data-qa":s,children:l})}),d&&jsx(b$1,{title:f,children:jsx("div",{children:jsx(Gt,{size:"xs"})})})]},s))})}var Ia=eg;var tg=wa(ei$1)(({theme:e})=>{let t={height:e.spacing(4),padding:e.spacing(0,2),color:e.palette.ux.deprecated.secondary.text.wMain,fontWeight:e.typography.fontWeightRegular,textTransform:"none",backgroundColor:e.palette.ux.background.w10,borderColor:e.palette.ux.secondary.w40,"&:hover":{backgroundColor:e.palette.ux.secondary.w10,borderColor:e.palette.ux.secondary.w40,color:pi$1==="solace"?e.palette.ux.deprecated.secondary.text.wMain:e.palette.ux.primary.text.wMain},"&.Mui-selected":{color:e.palette.ux.primary.wMain,fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.ux.brand.w10,"&:hover":{backgroundColor:e.palette.ux.brand.w10},"&.Mui-disabled":{backgroundColor:e.palette.ux.background.w20}},"&:focus-visible, &.Mui-selected:focus-visible":{borderColor:e.palette.ux.deprecated.accent.n2.wMain},"&.Mui-disabled, &.Mui-selected.Mui-disabled":{borderColor:e.palette.ux.secondary.w40,color:e.palette.ux.secondary.text.w50}},o={color:e.palette.ux.secondary.text.wMain,"&.Mui-selected":{color:e.palette.ux.primary.text.wMain,fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.ux.accent.n2.w10,"&:hover":{backgroundColor:e.palette.ux.accent.n2.w10},"&.Mui-disabled":{backgroundColor:e.palette.ux.secondary.w10}}};return {".MuiToggleButtonGroup-grouped:not(:first-of-type)":{marginLeft:0,borderLeft:"none","&:focus-visible":{borderLeftColor:e.palette.ux.deprecated.accent.n2.wMain}},button:{...t,...pi$1==="new-solace"&&o}}});function og({onChange:e,options:t=[],activeValue:o=void 0,isDisabled:n=false}){return jsx(tg,{exclusive:true,onChange:e,disabled:n,size:"small",children:t.map(r=>jsx(bi,{value:r.value,disableRipple:true,disableFocusRipple:true,disabled:r.disabled??false,selected:o===r.value,children:r.label},r.value))})}var La=og;var Ws={xs:4,sm:6,md:10,lg:14};function Js(e){let{variant:t,height:o,value:n,color:r}=e;return jsx(Oe,{variant:t,value:t==="determinate"?n:void 0,className:r??"default",sx:{height:Ws[o??"md"]}})}var rg=(n=>(n.DEFAULT="default_field",n.SEARCH="search_field",n.FILTER="filter_field",n))(rg||{});var Us=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("g",{children:jsx("path",{d:`M20.598,18H16.4c-0.356,0-0.535,0.431-0.283,0.683l2.13,2.2C18.325,20.961,18.428,21,18.53,21
|
|
23
23
|
c0.102,0,0.205-0.039,0.283-0.117l2.068-2.2C21.133,18.431,20.954,18,20.598,18z M17.798,5l-4.522,6L13,11.462V12v3.899L11,17.4V12
|
|
24
24
|
v-0.538L10.723,11L6.201,5H17.798z M20.6,3H3.4C3.067,3,2.801,3.379,3,3.645L9,12v8.6C9,20.84,9.196,21,9.404,21
|
|
25
|
-
c0.088,0,0.178-0.022,0.256-0.087L14.853,17C14.945,16.924,15,16.817,15,16.698V12l6-8.4C21.2,3.334,20.932,3,20.6,3z`,fill:t||o.palette.ux.secondary.wMain})})})};var
|
|
25
|
+
c0.088,0,0.178-0.022,0.256-0.087L14.853,17C14.945,16.924,15,16.817,15,16.698V12l6-8.4C21.2,3.334,20.932,3,20.6,3z`,fill:t||o.palette.ux.secondary.wMain})})})};var qs=({size:e=24,fill:t=""})=>{let o=ua$1();return jsx(Na$1,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:jsx("g",{children:jsx("path",{d:`M10.504,3.13C6.402,3.13,3,6.53,3,10.63S6.402,18,10.504,18c1.701,0,3.202-0.37,4.503-1.37l4.442,4.09
|
|
26
26
|
c0.1,0.1,0.2,0.15,0.3,0.15c0.1,0,0.2-0.05,0.3-0.15l0.8-0.8c0.2-0.2,0.2-0.4,0-0.6l-4.342-4.19c0.901-1.2,1.492-2.8,1.492-4.5
|
|
27
27
|
C18,6.53,14.606,3.13,10.504,3.13L10.504,3.13z M10.504,16c-3.002,0-5.503-2.37-5.503-5.37s2.501-5.5,5.503-5.5S16,7.63,16,10.63
|
|
28
|
-
S13.506,16,10.504,16L10.504,16z`,fill:t||o.palette.ux.secondary.wMain})})})};var Gs=wa("div")(({theme:e})=>({margin:`${e.spacing(1)} ${e.spacing(1)} 0 -${e.spacing(.5)}`,".MuiSvgIcon-root":{fill:e.palette.ux.secondary.wMain}}));function tg({id:e,name:t,label:o,helperText:n,value:r="",placeholder:a,width:i,disabled:l=false,autoFocus:s=false,type:c="default_field",hasErrors:u=false,onChange:d,onFocus:f,onBlur:p,onClearAll:m}){let g=useRef(null),b=useCallback(()=>{let y=()=>{d({name:t,value:""}),m&&m(),g.current?.focus();},I=P=>{switch(P){case "filter_field":return jsx(Gs,{children:jsx(zs,{size:20})},"filterIcon");case "search_field":return jsx(Gs,{children:jsx(Xs,{size:20})},"searchIcon");default:return}},R=[];return r&&r.trim().length>0&&R.push(jsx(b$2,{dataQa:"clearButton",isDisabled:l,variant:"icon",onClick:y,"aria-label":c$1.clearButtonAriaLabel,children:jsx(Te,{size:20},"closeIcon")},"closeIcon")),R.push(I(c)),R},[r,c,d,t,m,l]);return jsx(d$2,{id:e,name:t,label:o,helperText:n,value:r,autoFocus:s,onChange:y=>{d(y);},onFocus:y=>{f&&f(y);},onBlur:y=>{p&&p(y);},width:i,endAdornment:b(),hasErrors:u,disabled:l,dataQa:`searchAndFilter-${e}`,placeholder:a,inputRef:y=>{g.current=y;}})}var Ma=tg;function og({children:e,...t}){return jsx(Ue$1,{...t,children:e})}var ng=og;function ag({children:e,...t}){return jsx(bf$1,{...t,children:e})}var ig=ag;function sg({children:e,...t}){return jsx(Ze,{...t,children:e})}var cg=sg;function pg({id:e,variant:t="call-to-action","aria-label":o,"aria-labelledby":n,isDisabled:r=false,title:a="",component:i="button",type:l="button",startIcon:s,endIcon:c,onClick:u,dataQa:d,dataTags:f,children:p}){let m=g=>{u&&u(g);};if(t==="icon")return jsx(b$1,{title:a,children:jsx(Gb,{"aria-label":o,"aria-labelledby":n,"data-qa":d,"data-tags":f,type:l,id:e,disabled:r,onClick:m,size:"large",className:"icon-button",component:"button",children:p})});{let g;(y=>(y.contained="contained",y.outlined="outlined"))(g||(g={}));let b={learning:"contained","dark-call-to-action":"contained","dark-outline":"outlined"},x="";switch(t){case "dark-call-to-action":x="dark-call-to-action-button";break;case "dark-outline":x="dark-outline-button";break;default:x="call-to-action-button";}return jsx(b$1,{title:a,children:jsx(Qc$1,{id:e,"data-qa":d,"data-tags":f,startIcon:s,endIcon:c,component:i,type:l,disabled:r,variant:b[t],onClick:m,className:x,children:p})})}}var ar=pg;function Ws({size:e,fill:t}){let o=ua$1();return jsxs(Na,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_3499_35806)",children:jsx("path",{d:"M10 5.013L8 7.013L6 5.013C5.8901 4.9031 5.713 4.9031 5.6031 5.013L5.013 5.6038C4.9031 5.7137 4.9031 5.8908 5.013 6.0007L7.013 8L5.013 10C4.9031 10.1099 4.9031 10.287 5.013 10.3969L5.6031 10.987C5.713 11.0969 5.8901 11.0969 6 10.987L8 8.987L10 10.987C10.1099 11.0969 10.287 11.0969 10.3969 10.987L10.987 10.3969C11.0969 10.287 11.0969 10.1099 10.987 10L8.987 8L10.987 6C11.0969 5.8901 11.0969 5.713 10.987 5.6031L10.3969 5.013C10.287 4.9038 10.1092 4.9038 10 5.013ZM8 1C4.15 1 1 4.15 1 8C1 11.85 4.15 15 8 15C11.85 15 15 11.85 15 8C15 4.15 11.85 1 8 1ZM8 2.4C11.08 2.4 13.6 4.92 13.6 8C13.6 11.08 11.08 13.6 8 13.6C4.92 13.6 2.4 11.08 2.4 8C2.4 4.92 4.92 2.4 8 2.4Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_3499_35806",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function Js({size:e,fill:t}){let o=ua$1();return jsxs(Na,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_8332_25903)",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8ZM6.84111 11.404L12.2361 6.00901L11.2933 5.0662L6.84049 9.51904L4.70569 7.38708L3.76351 8.33052L6.84111 11.404Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_8332_25903",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}var mg={width:48,height:48},gg={borderRadius:"50%"};function ka(e){let{active:t,completed:o,icon:n,error:r}=e,a=ua$1(),i=t?a.palette.ux.brand.wMain:r?a.palette.ux.error.wMain:a.palette.ux.secondary.w40,l={border:`${t?"2px":"1px"} solid ${i}`},s=jsx(Ic$1,{component:"span",sx:{border:l,...mg,...gg},display:"flex",alignItems:"center",justifyContent:"center",children:n}),c=o?jsx(Js,{fill:a.palette.ux.success.wMain,size:16}):jsx(Ws,{fill:a.palette.ux.error.wMain,size:16});return jsx(Ac$1,{overlap:"circular",badgeContent:r||o?c:null,children:s})}var Aa={cancel:"Cancel",next:"Next",back:"Back"},Sg=wa(Ic$1)(({theme:e})=>({paddingTop:e.spacing(2),paddingLeft:e.spacing(3),paddingRight:e.spacing(2),display:"flex",flexDirection:"row"})),qs=wa(Ic$1,{shouldForwardProp:e=>e!=="onLastStep"&&e!=="direction"})(({theme:e,direction:t,onLastStep:o})=>({marginRight:t==="left"?e.spacing(1):0,".MuiButtonBase-root":{padding:(()=>{if(t==="left")return "0 16px 0 0";if(!o)return "0 0 0 16px"})()}})),Zs=wa("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)}));function Ba(e){let{steps:t,onClose:o,onSubmit:n,onSecondarySubmit:r,setActiveStep:a,activeStep:i,submitLabel:l,secondarySubmitLabel:s,disableSubmit:c,shouldDisableSecondarySubmit:u}=e,d=i===t.length-1,f=i===0,p=useMemo(()=>{if(i===t.length-1)return i;let v=-1;for(let y=i+1;y<t.length;y++)if(!t[y].disabled){v=y;break}return v===-1?i+1:v},[t,i]),m=useMemo(()=>{if(i===0)return i;let v=-1;for(let y=i-1;y>=0;y--)if(!t[y].disabled){v=y;break}return v===-1?i-1:v},[t,i]),g=ua$1(),b=()=>{if(d){n();return}a(p);},x=()=>{r?.();};return jsxs(Ic$1,{minHeight:"69px",children:[jsx(Pd,{}),jsxs(Sg,{children:[jsx(qs,{direction:"left",children:!f&&jsx(b$2,{variant:"text",onClick:()=>{f||a(m);},isDisabled:t[m].disabled,children:jsxs(Zs,{children:[jsx(ArrowLeft24Icon,{fill:t[m].disabled?g.palette.ux.secondary.w40:g.palette.ux.primary.wMain,sx:{padding:"4px 0px 4px 4px"}}),`${Aa.back}: ${t[m].label}`]})})}),jsx(Ic$1,{sx:{flex:"1 1 auto"}}),jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"text",onClick:o,children:Aa.cancel})}),s&&jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"outline",onClick:x,isDisabled:u?.()||d&&c,children:s})}),jsx(qs,{direction:"right",onLastStep:d,children:jsx(b$2,{variant:"call-to-action",onClick:b,isDisabled:d&&c||!d&&t[p].disabled,children:d?l:jsxs(Zs,{children:[`${Aa.next}: ${t[p]?.label}`,jsx(ArrowRight24Icon,{fill:g.palette.ux.primary.text.w10,sx:{padding:"4px 4px 4px 0px"}})]})})})]})]})}function Ys(e){let{activeStep:t,steps:o,setActiveStep:n,children:r,stepContentOverflow:a,...i}=e,l=ua$1(),s=u=>()=>{n(u);},c=(u,d)=>jsx(ka,{icon:u.icon,completed:u.completed,error:u.error,active:d});return jsxs(Ic$1,{display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,children:[jsx(gh$1,{nonLinear:true,activeStep:t,children:o.map((u,d)=>{let f=t===d?l.palette.ux.primary.text.wMain:l.palette.ux.deprecated.secondary.text.wMain,p=jsx(Zg,{optional:u.hideOptionalLabel?void 0:jsx(m,{sx:{color:f},variant:"caption",children:`Step ${d+1} ${u?.subText??""}`}),color:"inherit",onClick:u.disabled?void 0:s(d),sx:{textAlign:"left",opacity:u.disabled?.35:1,cursor:u.disabled?"default":"pointer","&:hover .MuiTypography-root":{color:u.disabled?void 0:l.palette.ux.primary.text.wMain}},children:jsx(Wg$1,{StepIconComponent:()=>c(u,t===d),children:jsx(m,{variant:"h5",sx:{color:f},children:u.label})})});return jsx(Qg$1,{children:u.disabled&&u.disabledReason?jsx(Bg$1,{title:u.disabledReason,placement:"bottom-start",slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-24]}}]}},children:p}):p},u.label)})}),jsx(Ic$1,{pl:3,pr:3,flexGrow:1,overflow:a??"auto",children:r}),jsx(Ba,{activeStep:t,setActiveStep:n,steps:o,...i})]})}var Cg=wa("div")(({theme:e})=>({padding:`${e.spacing(3)} ${e.spacing(3)} 0px ${e.spacing(3)}`,borderRadius:`${e.spacing(1.25)} ${e.spacing(1.25)} 0 0`,marginBottom:"-6px",border:`solid 1px ${e.palette.ux.learning.w20}`,width:"100%",backgroundColor:e.palette.ux.learning.w10,boxSizing:"border-box"}));function Ks(e){let t=ua$1(),{bannerImage:o,subtitle:n,title:r,description:a,primaryButton:i,secondaryButton:l,dataQa:s}=e,c=t.palette.ux.primary.text.w10,u=()=>{i.onClick();};return jsx(Ic$1,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center","data-qa":"emptyStateBannerWrapper",children:jsxs(Ic$1,{"data-qa":s??"emptyStateBanner",width:825,children:[o&&jsx(Cg,{children:o}),jsx(nt,{spacing:3,children:jsx(Ic$1,{boxSizing:"border-box",padding:5,height:261,borderRadius:2.5,display:"flex",justifyContent:"space-between",sx:{background:`radial-gradient(75.04% 70.41% at 20.32% 70.41%, ${t.palette.ux.learning.wMain} 0%, ${t.palette.ux.learning.w100} 100%)`},children:jsxs(Ic$1,{children:[jsx(m,{variant:"caption",fontWeight:600,sx:{color:t.palette.ux.brand.w30},children:n}),jsxs(nt,{children:[jsx(m,{variant:"h2",width:600,sx:{fontSize:"1.5rem",color:c},children:r}),jsx(m,{width:"100%",sx:{color:c},children:a})]}),jsxs(nt,{direction:"row",alignItems:"center",paddingTop:t.spacing(3),spacing:1.5,children:[jsx(ar,{variant:"call-to-action",onClick:u,dataQa:i?.dataQa??"emptyStateBannerPrimaryButton",children:i.label}),l&&jsx(ar,{variant:"dark-call-to-action",dataQa:l.dataQa??"emptyStateBannerSecondaryButton",onClick:()=>l.onClick(),children:l.label})]})]})})})]})})}var yg=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),width:"100%",boxSizing:"border-box"})),vg=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),wg=wa("div")(()=>({display:"flex",alignSelf:"flex-start",justifyContent:"center",alignItems:"center"})),Tg=wa("div")(()=>({flex:1,display:"flex",flexDirection:"column"})),Eg=wa("div")(({theme:e})=>({display:"flex",alignSelf:"flex-start",alignItems:"center",marginTop:e.spacing(-0.5)}));function Rg({icon:e,title:t,subTitle:o,actionElements:n=null,dataQa:r,dataTags:a}){return jsxs(yg,{"data-qa":r,"data-tags":a,children:[jsxs(vg,{children:[e&&jsx(wg,{children:e}),t&&jsxs(Tg,{children:[jsx(m,{variant:"h3",className:"solaceCardTitle",children:t}),o&&jsx(m,{variant:"body1",children:o})]})]}),n&&jsx(Eg,{children:n})]})}var Da=Rg;function Mg({cardHeaderProps:e,cardContent:t,cardActions:o,width:n,height:r,minWidth:a="250px",padding:i,readOnly:l=false,ariaLabel:s,dataQa:c,dataTags:u,isSelected:d=false,showBorderOnSelect:f=false,onClick:p}){let m=ua$1(),[g,b]=useState(d);useEffect(()=>{b(d);},[d]);let x=useCallback(T=>{!l&&p&&(p(T,!g),b(!g));},[g,p,l]);return jsxs(Wc$1,{className:`solaceCard ${l?"readOnly":""} ${g?"selected":""}`,sx:{width:n,height:r,minWidth:a,padding:i??m.spacing(2),...f&&g&&{border:`1px solid ${m.palette.ux.brand.wMain}`}},"data-qa":c,"data-tags":u,"aria-label":s,role:"article",onClick:l?void 0:x,children:[e&&jsx(Da,{...e}),t&&jsx(dd,{sx:{"&.MuiCardContent-root:last-child":{paddingBottom:m.spacing(0)},padding:m.spacing(0)},children:t}),o&&jsx(ad,{sx:{padding:m.spacing(0)},children:o})]})}var kg=Mg;var Bg=()=>jsx(Na,{width:"24",height:"24",viewBox:"0 0 24 24",children:jsx("path",{fill:"currentColor",d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"})});var Og=({fill:e="#7ED321"})=>jsx(Na,{sx:{width:"20",height:"20",fill:"none"},viewBox:"0 0 20 20",children:jsx("path",{d:"M11.6951 0.140109C4.85411 -0.984891 -0.984891 4.85411 0.140109 11.6951C0.821109 15.8381 4.16311 19.1801 8.30611 19.8611C15.1471 20.9861 20.9861 15.1471 19.8611 8.30611C19.1791 4.16211 15.8381 0.821109 11.6951 0.140109ZM11.5681 17.8501C5.94311 18.9261 1.07411 14.0571 2.15011 8.43211C2.75111 5.28711 5.28711 2.75111 8.43211 2.15011C14.0571 1.07411 18.9261 5.94311 17.8501 11.5681C17.2481 14.7131 14.7131 17.2481 11.5681 17.8501ZM14.0651 6.10511L8.00011 12.1701L5.92211 10.1011C5.76811 9.94711 5.51811 9.94711 5.36411 10.1021L4.51811 10.9481C4.36011 11.1061 4.36011 11.3611 4.51811 11.5191L7.71411 14.8931C7.87211 15.0511 8.12711 15.0511 8.28511 14.8931L15.4761 7.52511C15.6321 7.36911 15.6331 7.11511 15.4771 6.95811L14.6331 6.10811C14.4771 5.94911 14.2221 5.94811 14.0651 6.10511Z",fill:e})}),Dg=Og;var Ng=(r=>(r.Auto="auto",r.Hidden="hidden",r.Scroll="scroll",r.Visible="visible",r))(Ng||{});var $g=(o=>(o.horizontal="horizontal",o.vertical="vertical",o))($g||{});var ec=(o=>(o.TOP_OF_TABS="topOfTabs",o.LEFT_OF_TABS="leftOfTabs",o))(ec||{});var nc=b(tc()),vo={maxFilesErrorMessage:"Maximum files allowed is ",maxSizeErrorMessage:"Maximum fileSize allowed is ",minSizeErrorMessage:"Minimum fileSize allowed is ",defaultSize:"0 kb",sizeInKb:" kb",sizeInMb:" mb"};function Hg(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Fg(e){return /^.*\.[\w]+$/.test(e)}function rc(e){return Object.values(e).reduce((t,o)=>t.concat(o),[]).filter(t=>Hg(t)||Fg(t)).join(",")}var Ha=(e,t,o,n,r)=>{if(e!==0&&o.length>e)return vo.maxFilesErrorMessage+e;let a=null;return o.some(i=>n&&i.size>n?(a=vo.maxSizeErrorMessage+oc(n),true):i.size<t?(a=vo.minSizeErrorMessage+oc(t),true):r&&r.length>0&&!(0, nc.default)(i,r)?(a="File type not supported",true):false),a};function oc(e){let t=vo.defaultSize;if(!e)return t;let o=e/1024;return o>1024?`${(o/1024).toFixed(2)}${vo.sizeInMb}`:`${o.toFixed(2)}${vo.sizeInKb}`}var _g=()=>jsx(Na,{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",sx:{opacity:.5},children:jsx("path",{d:"M11.15 17C10.9291 17 10.75 16.8209 10.75 16.6V6.81253L7.78785 9.77468C7.6297 9.93283 7.3726 9.93057 7.21725 9.76967L6.02301 8.53278C5.87146 8.37582 5.87365 8.12638 6.02792 7.9721L11.7172 2.28287C11.8734 2.12666 12.1266 2.12666 12.2828 2.28287L17.9721 7.9721C18.1264 8.12638 18.1285 8.37582 17.977 8.53278L16.7828 9.76967C16.6274 9.93057 16.3703 9.93283 16.2122 9.77468L13.25 6.81253V16.6C13.25 16.8209 13.0709 17 12.85 17H11.15ZM4.5 22C3.8125 22 3.22396 21.7552 2.73438 21.2656C2.24479 20.7761 2 20.1875 2 19.5V16.15C2 15.9291 2.17909 15.75 2.4 15.75H4.1C4.32091 15.75 4.5 15.9291 4.5 16.15V19.5H19.5V16.15C19.5 15.9291 19.6791 15.75 19.9 15.75H21.6C21.8209 15.75 22 15.9291 22 16.15V19.5C22 20.1875 21.7552 20.7761 21.2656 21.2656C20.776 21.7552 20.1875 22 19.5 22H4.5Z",fill:"black"})}),ic=_g;var Xg=zg("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});function lc(e){let{maxFiles:t=1,readOnly:o=false,fileNames:n=[],onFileChange:r,label:a="Drag and drop file here",errorText:i,dataQa:l,id:s,minSize:c=0,maxSize:u,accept:d}=e,f=ua$1(),[p,m$1]=useState(false),[g,b]=useState(n??[]),[x,T]=useState(""),v=useMemo(()=>{if(d)return rc(d)},[d]),y=E=>jsx(Ic$1,{borderRadius:"4px",width:"125px",height:"1px",bgcolor:f.palette.ux.secondary.w40,mr:E==="left"?1:void 0,ml:E==="right"?1:void 0}),I=E=>{E.stopPropagation(),E.preventDefault(),p||m$1(true);},R=E=>{E.stopPropagation(),E.preventDefault(),m$1(false),x&&T("");let h=[];if(E.dataTransfer.items&&Array.from(E.dataTransfer.items).forEach(w=>{if(w.kind==="file"){let C=w.getAsFile();C&&h.push(C);}}),h.length>0){let w=Ha(t,c,h,u,v);w!==null?T(w):(b([...g,...h]),r&&r([...g,...h]));}},P=E=>{if(E.target.files===null)return;x&&T("");let h=E?.target?.files[0],w=Ha(t,c,[h],u,v);w!==null?T(w):(b([...g,h]),r&&r([...g,h]));},M=(E,h)=>jsxs(Ic$1,{border:`1px solid ${f.palette.ux.secondary.w20}`,display:"flex",alignItems:"center",justifyContent:"space-between",height:"48px",role:"listitem","data-qa":`solaceFileUploaderFileName-${h}`,paddingLeft:2,paddingRight:1,children:[jsx(m,{variant:"h5",children:typeof E=="string"?E:E.name}),!o&&jsx(b$2,{variant:"icon",onClick:()=>{let w=g.filter((C,z)=>z!==h);b(w),r&&r(w);},title:"Remove",children:jsx(Te,{})})]},h);return jsxs(Fragment,{children:[g.length<t&&!o&&jsxs(Ic$1,{onDragEnter:I,onDragOver:I,onDrop:R,onDragLeave:()=>m$1(false),height:"139px",sx:[E=>({border:p?`1px solid ${E.palette.ux.brand.wMain}`:`1px dashed ${E.palette.ux.secondary.w40}`})],alignContent:"center",id:"solaceFileUploaderWrapper","data-qa":l,role:"dropzone",children:[p&&jsx(m,{variant:"body1",textAlign:"center",children:"Drop file here"}),!p&&jsxs(nt,{alignItems:"center",spacing:2,children:[jsxs(Ic$1,{display:"flex",alignItems:"center",children:[jsx(ic,{}),jsx(m,{variant:"body1",sx:{color:f.palette.ux.secondary.text.wMain,marginLeft:f.spacing()},children:a})]}),jsxs(Ic$1,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",children:[y("left"),jsx(m,{sx:{color:f.palette.ux.secondary.text.wMain},variant:"body1",children:"OR"}),y("right")]}),jsxs(Qc$1,{component:"label",role:void 0,variant:"text",tabIndex:-1,children:["Upload File",jsx(Xg,{type:"file",onChange:P})]})]})]}),g.length>0&&jsx(nt,{mt:t>1?2:0,children:g.map((E,h)=>M(E,h))}),(i||x)&&jsx(e$1,{dataQa:"solaceFileUploaderError",children:i||x})]})}var Wg=wa("div")(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),Jg=wa("div")(()=>({display:"flex",button:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%","&.MuiLink-root:hover":{backgroundColor:"inherit"}},a:{overflow:"hidden",maxWidth:"100%",span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"}}}));function Ug({id:e,text:t,onClick:o,dataQa:n,href:r}){return jsxs(Fragment,{children:[(r||o)&&jsx(Jg,{"data-qa":`${e}-link`,children:jsx(b$2,{variant:"link",href:!o&&r?r:void 0,onClick:!r&&o?o:void 0,dense:true,dataQa:n,children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})})},`${e}-link`),!o&&!r&&jsx(Wg,{"data-qa":`${e}-text`,className:"textWrapper",children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})},`${e}-text`)]})}var qg=Ug;var _a=wa("div",{shouldForwardProp:e=>e!=="bgColor"&&e!=="fgColor"})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
|
|
28
|
+
S13.506,16,10.504,16L10.504,16z`,fill:t||o.palette.ux.secondary.wMain})})})};var Zs=wa("div")(({theme:e})=>({margin:`${e.spacing(1)} ${e.spacing(1)} 0 -${e.spacing(.5)}`,".MuiSvgIcon-root":{fill:e.palette.ux.secondary.wMain}}));function lg({id:e,name:t,label:o,helperText:n,value:r="",placeholder:a,width:i,disabled:l=false,autoFocus:s=false,type:c="default_field",hasErrors:u=false,onChange:d,onFocus:f,onBlur:p,onClearAll:m}){let g=useRef(null),b=useCallback(()=>{let y=()=>{d({name:t,value:""}),m&&m(),g.current?.focus();},I=P=>{switch(P){case "filter_field":return jsx(Zs,{children:jsx(Us,{size:20})},"filterIcon");case "search_field":return jsx(Zs,{children:jsx(qs,{size:20})},"searchIcon");default:return}},R=[];return r&&r.trim().length>0&&R.push(jsx(b$2,{dataQa:"clearButton",isDisabled:l,variant:"icon",onClick:y,"aria-label":c$1.clearButtonAriaLabel,children:jsx(Te,{size:20},"closeIcon")},"closeIcon")),R.push(I(c)),R},[r,c,d,t,m,l]);return jsx(d$2,{id:e,name:t,label:o,helperText:n,value:r,autoFocus:s,onChange:y=>{d(y);},onFocus:y=>{f&&f(y);},onBlur:y=>{p&&p(y);},width:i,endAdornment:b(),hasErrors:u,disabled:l,dataQa:`searchAndFilter-${e}`,placeholder:a,inputRef:y=>{g.current=y;}})}var Aa=lg;function sg({children:e,...t}){return jsx(Ue$1,{...t,children:e})}var cg=sg;function pg({children:e,...t}){return jsx(bf$1,{...t,children:e})}var dg=pg;function mg({children:e,...t}){return jsx(Ze$1,{...t,children:e})}var gg=mg;function xg({id:e,variant:t="call-to-action","aria-label":o,"aria-labelledby":n,isDisabled:r=false,title:a="",component:i="button",type:l="button",startIcon:s,endIcon:c,onClick:u,dataQa:d,dataTags:f,children:p}){let m=g=>{u&&u(g);};if(t==="icon")return jsx(b$1,{title:a,children:jsx(Gb,{"aria-label":o,"aria-labelledby":n,"data-qa":d,"data-tags":f,type:l,id:e,disabled:r,onClick:m,size:"large",className:"icon-button",component:"button",children:p})});{let g;(y=>(y.contained="contained",y.outlined="outlined"))(g||(g={}));let b={learning:"contained","dark-call-to-action":"contained","dark-outline":"outlined"},x="";switch(t){case "dark-call-to-action":x="dark-call-to-action-button";break;case "dark-outline":x="dark-outline-button";break;default:x="call-to-action-button";}return jsx(b$1,{title:a,children:jsx(Qc$1,{id:e,"data-qa":d,"data-tags":f,startIcon:s,endIcon:c,component:i,type:l,disabled:r,variant:b[t],onClick:m,className:x,children:p})})}}var lr=xg;function Ys({size:e,fill:t}){let o=ua$1();return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_3499_35806)",children:jsx("path",{d:"M10 5.013L8 7.013L6 5.013C5.8901 4.9031 5.713 4.9031 5.6031 5.013L5.013 5.6038C4.9031 5.7137 4.9031 5.8908 5.013 6.0007L7.013 8L5.013 10C4.9031 10.1099 4.9031 10.287 5.013 10.3969L5.6031 10.987C5.713 11.0969 5.8901 11.0969 6 10.987L8 8.987L10 10.987C10.1099 11.0969 10.287 11.0969 10.3969 10.987L10.987 10.3969C11.0969 10.287 11.0969 10.1099 10.987 10L8.987 8L10.987 6C11.0969 5.8901 11.0969 5.713 10.987 5.6031L10.3969 5.013C10.287 4.9038 10.1092 4.9038 10 5.013ZM8 1C4.15 1 1 4.15 1 8C1 11.85 4.15 15 8 15C11.85 15 15 11.85 15 8C15 4.15 11.85 1 8 1ZM8 2.4C11.08 2.4 13.6 4.92 13.6 8C13.6 11.08 11.08 13.6 8 13.6C4.92 13.6 2.4 11.08 2.4 8C2.4 4.92 4.92 2.4 8 2.4Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_3499_35806",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}function Ks({size:e,fill:t}){let o=ua$1();return jsxs(Na$1,{sx:{width:`${e}px`,height:`${e}px`,background:o.palette.ux.background.w10},viewBox:"0 0 16 16",children:[jsx("g",{clipPath:"url(#clip0_8332_25903)",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8ZM6.84111 11.404L12.2361 6.00901L11.2933 5.0662L6.84049 9.51904L4.70569 7.38708L3.76351 8.33052L6.84111 11.404Z",fill:t})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_8332_25903",children:jsx("rect",{width:"16",height:"16",fill:"white"})})})]})}var Cg={width:48,height:48},yg={borderRadius:"50%"};function Ba(e){let{active:t,completed:o,icon:n,error:r}=e,a=ua$1(),i=t?a.palette.ux.brand.wMain:r?a.palette.ux.error.wMain:a.palette.ux.secondary.w40,l={border:`${t?"2px":"1px"} solid ${i}`},s=jsx(Ic$1,{component:"span",sx:{border:l,...Cg,...yg},display:"flex",alignItems:"center",justifyContent:"center",children:n}),c=o?jsx(Ks,{fill:a.palette.ux.success.wMain,size:16}):jsx(Ys,{fill:a.palette.ux.error.wMain,size:16});return jsx(Ac$1,{overlap:"circular",badgeContent:r||o?c:null,children:s})}var Oa={cancel:"Cancel",next:"Next",back:"Back"},Tg=wa(Ic$1)(({theme:e})=>({paddingTop:e.spacing(2),paddingLeft:e.spacing(3),paddingRight:e.spacing(2),display:"flex",flexDirection:"row"})),js=wa(Ic$1,{shouldForwardProp:e=>e!=="onLastStep"&&e!=="direction"})(({theme:e,direction:t,onLastStep:o})=>({marginRight:t==="left"?e.spacing(1):0,".MuiButtonBase-root":{padding:(()=>{if(t==="left")return "0 16px 0 0";if(!o)return "0 0 0 16px"})()}})),ec=wa("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)}));function Da(e){let{steps:t,onClose:o,onSubmit:n,onSecondarySubmit:r,setActiveStep:a,activeStep:i,submitLabel:l,secondarySubmitLabel:s,disableSubmit:c,shouldDisableSecondarySubmit:u}=e,d=i===t.length-1,f=i===0,p=useMemo(()=>{if(i===t.length-1)return i;let v=-1;for(let y=i+1;y<t.length;y++)if(!t[y].disabled){v=y;break}return v===-1?i+1:v},[t,i]),m=useMemo(()=>{if(i===0)return i;let v=-1;for(let y=i-1;y>=0;y--)if(!t[y].disabled){v=y;break}return v===-1?i-1:v},[t,i]),g=ua$1(),b=()=>{if(d){n();return}a(p);},x=()=>{r?.();};return jsxs(Ic$1,{minHeight:"69px",children:[jsx(Pd$1,{}),jsxs(Tg,{children:[jsx(js,{direction:"left",children:!f&&jsx(b$2,{variant:"text",onClick:()=>{f||a(m);},isDisabled:t[m].disabled,children:jsxs(ec,{children:[jsx(ArrowLeft24Icon,{fill:t[m].disabled?g.palette.ux.secondary.w40:g.palette.ux.primary.wMain,sx:{padding:"4px 0px 4px 4px"}}),`${Oa.back}: ${t[m].label}`]})})}),jsx(Ic$1,{sx:{flex:"1 1 auto"}}),jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"text",onClick:o,children:Oa.cancel})}),s&&jsx(Ic$1,{sx:{mr:1},children:jsx(b$2,{variant:"outline",onClick:x,isDisabled:u?.()||d&&c,children:s})}),jsx(js,{direction:"right",onLastStep:d,children:jsx(b$2,{variant:"call-to-action",onClick:b,isDisabled:d&&c||!d&&t[p].disabled,children:d?l:jsxs(ec,{children:[`${Oa.next}: ${t[p]?.label}`,jsx(ArrowRight24Icon,{fill:g.palette.ux.primary.text.w10,sx:{padding:"4px 4px 4px 0px"}})]})})})]})]})}function tc(e){let{activeStep:t,steps:o,setActiveStep:n,children:r,stepContentOverflow:a,...i}=e,l=ua$1(),s=u=>()=>{n(u);},c=(u,d)=>jsx(Ba,{icon:u.icon,completed:u.completed,error:u.error,active:d});return jsxs(Ic$1,{display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,children:[jsx(gh$1,{nonLinear:true,activeStep:t,children:o.map((u,d)=>{let f=t===d?l.palette.ux.primary.text.wMain:l.palette.ux.deprecated.secondary.text.wMain,p=jsx(Zg$1,{optional:u.hideOptionalLabel?void 0:jsx(m,{sx:{color:f},variant:"caption",children:`Step ${d+1} ${u?.subText??""}`}),color:"inherit",onClick:u.disabled?void 0:s(d),sx:{textAlign:"left",opacity:u.disabled?.35:1,cursor:u.disabled?"default":"pointer","&:hover .MuiTypography-root":{color:u.disabled?void 0:l.palette.ux.primary.text.wMain}},children:jsx(Wg$1,{StepIconComponent:()=>c(u,t===d),children:jsx(m,{variant:"h5",sx:{color:f},children:u.label})})});return jsx(Qg$1,{children:u.disabled&&u.disabledReason?jsx(Bg,{title:u.disabledReason,placement:"bottom-start",slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-24]}}]}},children:p}):p},u.label)})}),jsx(Ic$1,{pl:3,pr:3,flexGrow:1,overflow:a??"auto",children:r}),jsx(Da,{activeStep:t,setActiveStep:n,steps:o,...i})]})}var Rg=wa("div")(({theme:e})=>({padding:`${e.spacing(3)} ${e.spacing(3)} 0px ${e.spacing(3)}`,borderRadius:`${e.spacing(1.25)} ${e.spacing(1.25)} 0 0`,marginBottom:"-6px",border:`solid 1px ${e.palette.ux.learning.w20}`,width:"100%",backgroundColor:e.palette.ux.learning.w10,boxSizing:"border-box"}));function oc(e){let t=ua$1(),{bannerImage:o,subtitle:n,title:r,description:a,primaryButton:i,secondaryButton:l,dataQa:s}=e,c=t.palette.ux.primary.text.w10,u=()=>{i.onClick();};return jsx(Ic$1,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center","data-qa":"emptyStateBannerWrapper",children:jsxs(Ic$1,{"data-qa":s??"emptyStateBanner",width:825,children:[o&&jsx(Rg,{children:o}),jsx(at,{spacing:3,children:jsx(Ic$1,{boxSizing:"border-box",padding:5,height:261,borderRadius:2.5,display:"flex",justifyContent:"space-between",sx:{background:`radial-gradient(75.04% 70.41% at 20.32% 70.41%, ${t.palette.ux.learning.wMain} 0%, ${t.palette.ux.learning.w100} 100%)`},children:jsxs(Ic$1,{children:[jsx(m,{variant:"caption",fontWeight:600,sx:{color:t.palette.ux.brand.w30},children:n}),jsxs(at,{children:[jsx(m,{variant:"h2",width:600,sx:{fontSize:"1.5rem",color:c},children:r}),jsx(m,{width:"100%",sx:{color:c},children:a})]}),jsxs(at,{direction:"row",alignItems:"center",paddingTop:t.spacing(3),spacing:1.5,children:[jsx(lr,{variant:"call-to-action",onClick:u,dataQa:i?.dataQa??"emptyStateBannerPrimaryButton",children:i.label}),l&&jsx(lr,{variant:"dark-call-to-action",dataQa:l.dataQa??"emptyStateBannerSecondaryButton",onClick:()=>l.onClick(),children:l.label})]})]})})})]})})}var Pg=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),width:"100%",boxSizing:"border-box"})),Ig=wa("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),Lg=wa("div")(()=>({display:"flex",alignSelf:"flex-start",justifyContent:"center",alignItems:"center"})),Mg=wa("div")(()=>({flex:1,display:"flex",flexDirection:"column"})),kg=wa("div")(({theme:e})=>({display:"flex",alignSelf:"flex-start",alignItems:"center",marginTop:e.spacing(-0.5)}));function Ag({icon:e,title:t,subTitle:o,actionElements:n=null,dataQa:r,dataTags:a}){return jsxs(Pg,{"data-qa":r,"data-tags":a,children:[jsxs(Ig,{children:[e&&jsx(Lg,{children:e}),t&&jsxs(Mg,{children:[jsx(m,{variant:"h3",className:"solaceCardTitle",children:t}),o&&jsx(m,{variant:"body1",children:o})]})]}),n&&jsx(kg,{children:n})]})}var Na=Ag;function $g({cardHeaderProps:e,cardContent:t,cardActions:o,width:n,height:r,minWidth:a="250px",padding:i,readOnly:l=false,ariaLabel:s,dataQa:c,dataTags:u,isSelected:d=false,showBorderOnSelect:f=false,onClick:p}){let m=ua$1(),[g,b]=useState(d);useEffect(()=>{b(d);},[d]);let x=useCallback(T=>{!l&&p&&(p(T,!g),b(!g));},[g,p,l]);return jsxs(Wc$1,{className:`solaceCard ${l?"readOnly":""} ${g?"selected":""}`,sx:{width:n,height:r,minWidth:a,padding:i??m.spacing(2),...f&&g&&{border:`1px solid ${m.palette.ux.brand.wMain}`}},"data-qa":c,"data-tags":u,"aria-label":s,role:"article",onClick:l?void 0:x,children:[e&&jsx(Na,{...e}),t&&jsx(dd,{sx:{"&.MuiCardContent-root:last-child":{paddingBottom:m.spacing(0)},padding:m.spacing(0)},children:t}),o&&jsx(ad$1,{sx:{padding:m.spacing(0)},children:o})]})}var Ng=$g;var Fg=()=>jsx(Na$1,{width:"24",height:"24",viewBox:"0 0 24 24",children:jsx("path",{fill:"currentColor",d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"})});var _g=({fill:e="#7ED321"})=>jsx(Na$1,{sx:{width:"20",height:"20",fill:"none"},viewBox:"0 0 20 20",children:jsx("path",{d:"M11.6951 0.140109C4.85411 -0.984891 -0.984891 4.85411 0.140109 11.6951C0.821109 15.8381 4.16311 19.1801 8.30611 19.8611C15.1471 20.9861 20.9861 15.1471 19.8611 8.30611C19.1791 4.16211 15.8381 0.821109 11.6951 0.140109ZM11.5681 17.8501C5.94311 18.9261 1.07411 14.0571 2.15011 8.43211C2.75111 5.28711 5.28711 2.75111 8.43211 2.15011C14.0571 1.07411 18.9261 5.94311 17.8501 11.5681C17.2481 14.7131 14.7131 17.2481 11.5681 17.8501ZM14.0651 6.10511L8.00011 12.1701L5.92211 10.1011C5.76811 9.94711 5.51811 9.94711 5.36411 10.1021L4.51811 10.9481C4.36011 11.1061 4.36011 11.3611 4.51811 11.5191L7.71411 14.8931C7.87211 15.0511 8.12711 15.0511 8.28511 14.8931L15.4761 7.52511C15.6321 7.36911 15.6331 7.11511 15.4771 6.95811L14.6331 6.10811C14.4771 5.94911 14.2221 5.94811 14.0651 6.10511Z",fill:e})}),Vg=_g;var zg=(r=>(r.Auto="auto",r.Hidden="hidden",r.Scroll="scroll",r.Visible="visible",r))(zg||{});var Xg=(o=>(o.horizontal="horizontal",o.vertical="vertical",o))(Xg||{});var ac=(o=>(o.TOP_OF_TABS="topOfTabs",o.LEFT_OF_TABS="leftOfTabs",o))(ac||{});var sc=b(ic()),wo={maxFilesErrorMessage:"Maximum files allowed is ",maxSizeErrorMessage:"Maximum fileSize allowed is ",minSizeErrorMessage:"Minimum fileSize allowed is ",defaultSize:"0 kb",sizeInKb:" kb",sizeInMb:" mb"};function Gg(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Wg(e){return /^.*\.[\w]+$/.test(e)}function cc(e){return Object.values(e).reduce((t,o)=>t.concat(o),[]).filter(t=>Gg(t)||Wg(t)).join(",")}var _a=(e,t,o,n,r)=>{if(e!==0&&o.length>e)return wo.maxFilesErrorMessage+e;let a=null;return o.some(i=>n&&i.size>n?(a=wo.maxSizeErrorMessage+lc(n),true):i.size<t?(a=wo.minSizeErrorMessage+lc(t),true):r&&r.length>0&&!(0, sc.default)(i,r)?(a="File type not supported",true):false),a};function lc(e){let t=wo.defaultSize;if(!e)return t;let o=e/1024;return o>1024?`${(o/1024).toFixed(2)}${wo.sizeInMb}`:`${o.toFixed(2)}${wo.sizeInKb}`}var Jg=()=>jsx(Na$1,{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",sx:{opacity:.5},children:jsx("path",{d:"M11.15 17C10.9291 17 10.75 16.8209 10.75 16.6V6.81253L7.78785 9.77468C7.6297 9.93283 7.3726 9.93057 7.21725 9.76967L6.02301 8.53278C5.87146 8.37582 5.87365 8.12638 6.02792 7.9721L11.7172 2.28287C11.8734 2.12666 12.1266 2.12666 12.2828 2.28287L17.9721 7.9721C18.1264 8.12638 18.1285 8.37582 17.977 8.53278L16.7828 9.76967C16.6274 9.93057 16.3703 9.93283 16.2122 9.77468L13.25 6.81253V16.6C13.25 16.8209 13.0709 17 12.85 17H11.15ZM4.5 22C3.8125 22 3.22396 21.7552 2.73438 21.2656C2.24479 20.7761 2 20.1875 2 19.5V16.15C2 15.9291 2.17909 15.75 2.4 15.75H4.1C4.32091 15.75 4.5 15.9291 4.5 16.15V19.5H19.5V16.15C19.5 15.9291 19.6791 15.75 19.9 15.75H21.6C21.8209 15.75 22 15.9291 22 16.15V19.5C22 20.1875 21.7552 20.7761 21.2656 21.2656C20.776 21.7552 20.1875 22 19.5 22H4.5Z",fill:"black"})}),pc=Jg;var Zg=qg("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});function dc(e){let{maxFiles:t=1,readOnly:o=false,fileNames:n=[],onFileChange:r,label:a="Drag and drop file here",errorText:i,dataQa:l,id:s,minSize:c=0,maxSize:u,accept:d}=e,f=ua$1(),[p,m$1]=useState(false),[g,b]=useState(n??[]),[x,T]=useState(""),v=useMemo(()=>{if(d)return cc(d)},[d]),y=E=>jsx(Ic$1,{borderRadius:"4px",width:"125px",height:"1px",bgcolor:f.palette.ux.secondary.w40,mr:E==="left"?1:void 0,ml:E==="right"?1:void 0}),I=E=>{E.stopPropagation(),E.preventDefault(),p||m$1(true);},R=E=>{E.stopPropagation(),E.preventDefault(),m$1(false),x&&T("");let h=[];if(E.dataTransfer.items&&Array.from(E.dataTransfer.items).forEach(w=>{if(w.kind==="file"){let C=w.getAsFile();C&&h.push(C);}}),h.length>0){let w=_a(t,c,h,u,v);w!==null?T(w):(b([...g,...h]),r&&r([...g,...h]));}},P=E=>{if(E.target.files===null)return;x&&T("");let h=E?.target?.files[0],w=_a(t,c,[h],u,v);w!==null?T(w):(b([...g,h]),r&&r([...g,h]));},M=(E,h)=>jsxs(Ic$1,{border:`1px solid ${f.palette.ux.secondary.w20}`,display:"flex",alignItems:"center",justifyContent:"space-between",height:"48px",role:"listitem","data-qa":`solaceFileUploaderFileName-${h}`,paddingLeft:2,paddingRight:1,children:[jsx(m,{variant:"h5",children:typeof E=="string"?E:E.name}),!o&&jsx(b$2,{variant:"icon",onClick:()=>{let w=g.filter((C,z)=>z!==h);b(w),r&&r(w);},title:"Remove",children:jsx(Te,{})})]},h);return jsxs(Fragment,{children:[g.length<t&&!o&&jsxs(Ic$1,{onDragEnter:I,onDragOver:I,onDrop:R,onDragLeave:()=>m$1(false),height:"139px",sx:[E=>({border:p?`1px solid ${E.palette.ux.brand.wMain}`:`1px dashed ${E.palette.ux.secondary.w40}`})],alignContent:"center",id:"solaceFileUploaderWrapper","data-qa":l,role:"dropzone",children:[p&&jsx(m,{variant:"body1",textAlign:"center",children:"Drop file here"}),!p&&jsxs(at,{alignItems:"center",spacing:2,children:[jsxs(Ic$1,{display:"flex",alignItems:"center",children:[jsx(pc,{}),jsx(m,{variant:"body1",sx:{color:f.palette.ux.secondary.text.wMain,marginLeft:f.spacing()},children:a})]}),jsxs(Ic$1,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",children:[y("left"),jsx(m,{sx:{color:f.palette.ux.secondary.text.wMain},variant:"body1",children:"OR"}),y("right")]}),jsxs(Qc$1,{component:"label",role:void 0,variant:"text",tabIndex:-1,children:["Upload File",jsx(Zg,{type:"file",onChange:P})]})]})]}),g.length>0&&jsx(at,{mt:t>1?2:0,children:g.map((E,h)=>M(E,h))}),(i||x)&&jsx(e$1,{dataQa:"solaceFileUploaderError",children:i||x})]})}var Kg=wa("div")(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),Qg=wa("div")(()=>({display:"flex",button:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%","&.MuiLink-root:hover":{backgroundColor:"inherit"}},a:{overflow:"hidden",maxWidth:"100%",span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"}}}));function jg({id:e,text:t,onClick:o,dataQa:n,href:r}){return jsxs(Fragment,{children:[(r||o)&&jsx(Qg,{"data-qa":`${e}-link`,children:jsx(b$2,{variant:"link",href:!o&&r?r:void 0,onClick:!r&&o?o:void 0,dense:true,dataQa:n,children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})})},`${e}-link`),!o&&!r&&jsx(Kg,{"data-qa":`${e}-text`,className:"textWrapper",children:jsx(b$1,{variant:"overflow",title:t,maxWidth:"medium",placement:"bottom-end",children:t})},`${e}-text`)]})}var eh=jg;var za=wa("div",{shouldForwardProp:e=>e!=="bgColor"&&e!=="fgColor"})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
|
|
29
29
|
align-items: center;
|
|
30
30
|
background-color: ${t};
|
|
31
31
|
border-color: ${t?.toUpperCase()==="#FFFFFF"?e.palette.ux.secondary.w100:"transparent"};
|
|
@@ -39,7 +39,7 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
39
39
|
height: ${e.spacing(3)};
|
|
40
40
|
svg {
|
|
41
41
|
fill: ${o};
|
|
42
|
-
}`),
|
|
42
|
+
}`),nh=wa(za,{shouldForwardProp:e=>e!=="maxWidth"&&e!=="iconOnly"&&e!=="removable"})(({theme:e,maxWidth:t,iconOnly:o,removable:n})=>`
|
|
43
43
|
column-gap: ${e.spacing(.5)};
|
|
44
44
|
font-family: ${e.typography.body1.fontFamily};
|
|
45
45
|
font-size: ${e.typography.body1.fontSize};
|
|
@@ -49,17 +49,17 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
49
49
|
padding: ${o||n?e.spacing(0,.5):e.spacing(0,1,0,.5)};
|
|
50
50
|
.MuiIconButton-root:hover {
|
|
51
51
|
background-color: ${e.palette.ux.secondary.w20};
|
|
52
|
-
}`),
|
|
52
|
+
}`),rh=wa("span")`
|
|
53
53
|
display: flex;
|
|
54
|
-
`,
|
|
54
|
+
`,ah=wa("span")`
|
|
55
55
|
flex: 1 0 0%;
|
|
56
56
|
overflow: hidden;
|
|
57
57
|
text-overflow: ellipsis;
|
|
58
58
|
white-space: nowrap;
|
|
59
|
-
`;function
|
|
59
|
+
`;function fc({label:e,bgColor:t,fgColor:o,icon:n,maxWidth:r,dataQa:a,dataTags:i,onDelete:l}){return jsxs(nh,{bgColor:t,fgColor:o,"data-qa":a,"data-tags":i,maxWidth:r??"200px",iconOnly:!e,removable:!!l,children:[n&&jsx(rh,{children:n}),e&&jsx(ah,{children:e}),l&&jsx(Gb,{"data-qa":`${a}-delete`,type:"button",onClick:l,children:jsx(Te,{size:16,fill:o})})]})}var lh=wa(za,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:t})=>`
|
|
60
60
|
opacity: ${t?.38:1}; // Use same opacity for disabled icon container as MUI menu item
|
|
61
61
|
justify-content: center;
|
|
62
|
-
min-width: ${e.spacing(3)};`),
|
|
62
|
+
min-width: ${e.spacing(3)};`),sh=wa("div")(({theme:e})=>`
|
|
63
63
|
align-items: center;
|
|
64
64
|
column-gap: ${e.spacing(2)};
|
|
65
65
|
display: inline-flex;
|
|
@@ -67,16 +67,16 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
67
67
|
font-size: ${e.typography.body1.fontSize};
|
|
68
68
|
font-weight: ${e.typography.body1.fontWeight};
|
|
69
69
|
height: ${e.spacing(3)};
|
|
70
|
-
width: 100%`),
|
|
70
|
+
width: 100%`),ch=wa("span")(`
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
text-overflow: ellipsis;
|
|
73
73
|
white-space: nowrap;
|
|
74
|
-
`),
|
|
74
|
+
`),uh=wa(ch,{shouldForwardProp:e=>e!=="variant"&&e!=="disabled"})(({theme:e,variant:t,disabled:o=false})=>t==="title"?`
|
|
75
75
|
color: ${o?e.palette.ux.deprecated.secondary.text.w50:e.palette.ux.primary.text.wMain};
|
|
76
76
|
font-family: ${e.typography.h1.fontFamily};
|
|
77
77
|
font-size: ${e.typography.h1.fontSize};
|
|
78
78
|
font-weight: ${e.typography.h1.fontWeight};`:`
|
|
79
|
-
color: ${o?e.palette.ux.deprecated.secondary.text.w50:e.palette.ux.primary.text.wMain};`);function
|
|
79
|
+
color: ${o?e.palette.ux.deprecated.secondary.text.w50:e.palette.ux.primary.text.wMain};`);function gc({label:e,bgColor:t,fgColor:o,icon:n,variant:r,dataQa:a,dataTags:i,disabled:l=false}){return jsxs(sh,{"data-qa":a,"data-tags":i,children:[jsx(lh,{bgColor:t,fgColor:o,disabled:l,children:n}),jsx(uh,{variant:r,disabled:l,children:e})]})}var dh=wa("span")(({theme:e})=>`
|
|
80
80
|
border: 2px solid ${e.palette.ux.secondary.text.w50};
|
|
81
81
|
border-radius: ${e.spacing(.5)};
|
|
82
82
|
box-sizing: border-box;
|
|
@@ -89,10 +89,10 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
89
89
|
&.active {
|
|
90
90
|
border-color: ${e.palette.ux.primary.wMain};
|
|
91
91
|
color: ${e.palette.ux.primary.wMain};
|
|
92
|
-
}`);function
|
|
92
|
+
}`);function fr({text:e,active:t,dataQa:o,dataTags:n}){return jsx(dh,{"data-qa":o,"data-tags":n,className:t?"active":"",children:e})}var gh=e=>e!=="active",hh=wa("div")(({theme:e})=>`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-direction: row;
|
|
95
|
-
height: ${e.spacing(5)};`),
|
|
95
|
+
height: ${e.spacing(5)};`),xh=wa("a",{shouldForwardProp:gh})(({theme:e,active:t})=>t?`
|
|
96
96
|
background-color: ${e.palette.ux.background.w10};
|
|
97
97
|
border-inline: 1px solid ${e.palette.ux.secondary.w20};
|
|
98
98
|
box-sizing: border-box;
|
|
@@ -110,23 +110,23 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
110
110
|
&:hover {
|
|
111
111
|
background-color: ${e.palette.ux.secondary.w10};
|
|
112
112
|
color: ${e.palette.ux.primary.text.wMain};
|
|
113
|
-
}`),
|
|
113
|
+
}`),Sh=wa("div")(({theme:e})=>`
|
|
114
114
|
background-color: ${e.palette.ux.accent.n2.wMain};
|
|
115
115
|
height: 2px;
|
|
116
116
|
position: absolute;
|
|
117
|
-
width: 100%;`),
|
|
117
|
+
width: 100%;`),bh=wa("div")(({theme:e})=>`
|
|
118
118
|
padding: ${e.spacing(1,1)};
|
|
119
119
|
> svg {
|
|
120
120
|
vertical-align: top;
|
|
121
|
-
}`);function
|
|
121
|
+
}`);function hc({views:e,activeViewValue:t,onViewClick:o}){let n=useMemo(()=>e.map(({value:r})=>()=>o(r)),[o,e]);return jsx(hh,{role:"tablist",children:e.map(({icon:r,tooltip:a,value:i},l)=>jsx(b$1,{title:a,placement:"bottom-start",children:jsxs(xh,{active:i===t,tabIndex:0,onClick:n[l],role:"tab",children:[i===t&&jsx(Sh,{}),jsx(bh,{children:r})]},i)},`tooltip-${i}`))})}var yh=e=>e?.toUpperCase()==="#FFFFFF"?"#000000":e||"transparent",vh=wa("header",{shouldForwardProp:e=>e!=="borderTop"})(({theme:e,borderTop:t})=>`
|
|
122
122
|
background-color: ${e.palette.background.paper};
|
|
123
123
|
border-bottom: 1px solid ${e.palette.ux.secondary.w40};
|
|
124
|
-
border-top: 2px solid ${
|
|
124
|
+
border-top: 2px solid ${yh(t)};
|
|
125
125
|
box-sizing: border-box;
|
|
126
126
|
display: flex;
|
|
127
127
|
flex-direction: column;
|
|
128
128
|
min-height: ${e.spacing(10)};
|
|
129
|
-
padding: ${e.spacing(0,3)};`),
|
|
129
|
+
padding: ${e.spacing(0,3)};`),wh=wa("div")(({theme:e})=>`
|
|
130
130
|
align-items: center;
|
|
131
131
|
column-gap: ${e.spacing(1)};
|
|
132
132
|
display: flex;
|
|
@@ -134,50 +134,50 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
134
134
|
flex-direction: row;
|
|
135
135
|
font-size: ${e.typography.body1.fontSize};
|
|
136
136
|
font-weight: ${e.typography.body1.fontWeight};
|
|
137
|
-
padding: ${e.spacing(.5)} 0`),
|
|
137
|
+
padding: ${e.spacing(.5)} 0`),Th=wa("div")(({theme:e})=>`
|
|
138
138
|
display: flex;
|
|
139
|
-
height: ${e.spacing(3)};`),
|
|
140
|
-
border-right: 1px solid ${e.palette.ux.secondary.w40};`),
|
|
139
|
+
height: ${e.spacing(3)};`),Eh=wa(Th)(({theme:e})=>`
|
|
140
|
+
border-right: 1px solid ${e.palette.ux.secondary.w40};`),Rh=wa("div",{shouldForwardProp:e=>e!=="titleLocation"})(({theme:e,titleLocation:t})=>`
|
|
141
141
|
align-items: center;
|
|
142
142
|
color: ${e.palette.ux.primary.text.wMain};
|
|
143
143
|
column-gap: ${e.spacing(2)};
|
|
144
144
|
display: flex;
|
|
145
145
|
flex-direction: row;
|
|
146
146
|
height: ${t==="leftOfTabs"?e.spacing(5.25):"auto"};
|
|
147
|
-
margin-bottom: ${t==="topOfTabs"?"-1px":0}`),
|
|
147
|
+
margin-bottom: ${t==="topOfTabs"?"-1px":0}`),Ph=wa("div",{shouldForwardProp:e=>e!=="titleLocation"})(({titleLocation:e})=>`
|
|
148
148
|
align-self: flex-end;
|
|
149
|
-
margin-bottom: ${e==="leftOfTabs"?"-1px":0}`),
|
|
149
|
+
margin-bottom: ${e==="leftOfTabs"?"-1px":0}`),Ih=wa("div",{shouldForwardProp:e=>e!=="titleLocation"})(({theme:e,titleLocation:t})=>`
|
|
150
150
|
column-gap: ${e.spacing(1)};
|
|
151
151
|
display: flex;
|
|
152
152
|
flex-direction: row;
|
|
153
|
-
margin: ${t==="topOfTabs"?e.spacing(1,0,1,0):0};`),
|
|
153
|
+
margin: ${t==="topOfTabs"?e.spacing(1,0,1,0):0};`),bc=wa("div",{shouldForwardProp:e=>e!=="hasTabs"})(({theme:e,hasTabs:t})=>`
|
|
154
154
|
font-family: ${e.typography.h2.fontFamily};
|
|
155
155
|
font-size: ${e.typography.h2.fontSize};
|
|
156
156
|
font-weight: ${e.typography.h2.fontWeight};
|
|
157
157
|
max-width: ${t?"35vw":"50vw"};
|
|
158
|
-
text-wrap: nowrap;`),
|
|
158
|
+
text-wrap: nowrap;`),Lh=wa(bc)(({theme:e})=>`
|
|
159
159
|
font-family: ${e.typography.h1.fontFamily};
|
|
160
160
|
font-size: ${e.typography.h1.fontSize};
|
|
161
|
-
font-weight: ${e.typography.h1.fontWeight};`),
|
|
161
|
+
font-weight: ${e.typography.h1.fontWeight};`),Mh=wa("div")(({theme:e})=>`
|
|
162
162
|
font-family: ${e.typography.h2.fontFamily};
|
|
163
163
|
font-size: ${e.typography.h2.fontSize};
|
|
164
164
|
font-weight: ${e.typography.h2.fontWeight};
|
|
165
|
-
line-height: ${e.typography.h2.lineHeight};`),
|
|
165
|
+
line-height: ${e.typography.h2.lineHeight};`),kh=wa("span")(({theme:e})=>`
|
|
166
166
|
font-family: ${e.typography.h1.fontFamily};
|
|
167
167
|
font-size: ${e.typography.h1.fontSize};
|
|
168
|
-
font-weight: ${e.typography.h1.fontWeight};`),
|
|
168
|
+
font-weight: ${e.typography.h1.fontWeight};`),Ah=wa("div")(({theme:e})=>`
|
|
169
169
|
.MuiTabs-root, .MuiTab-root {
|
|
170
170
|
min-height: ${e.spacing(5.25)};
|
|
171
171
|
}
|
|
172
|
-
flex: 0 0 auto`),
|
|
172
|
+
flex: 0 0 auto`),Bh=wa("div")(({theme:e})=>`
|
|
173
173
|
align-items: center;
|
|
174
174
|
flex: 1 0 0%;
|
|
175
175
|
column-gap: ${e.spacing(1)};
|
|
176
176
|
display: flex;
|
|
177
177
|
justify-content: end;
|
|
178
|
-
white-space: nowrap;`);function gc({id:e,title:t,subTitle:o,release:n,environment:r,borderTop:a,breadcrumbs:i,actions:l,actionMenu:s,tabs:c,iconTabs:u,returnTo:d,dataQa:f,dataTags:p,titleLocation:m="leftOfTabs"}){let g=x=>`${e??"default"}${x?"-".concat(x):""}`,b=jsx(vh,{titleLocation:m,children:m==="leftOfTabs"?jsxs(Fragment,{children:[jsx(mc,{id:g("title"),"data-qa":"solace-header-title",hasTabs:!!c,children:jsx(b$1,{title:t,variant:"overflow",children:jsxs(Fragment,{children:[t,o?":":""]})})}),o&&jsx(wh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",hasTabs:!!c,children:jsx(b$1,{title:o,variant:"overflow",children:o})})]}):jsxs(Th,{id:g("title"),"data-qa":"solace-header-title",children:[t,o&&jsxs(Eh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",children:[": ",o]})]})});return jsxs(hh,{id:g(),"data-qa":f,"data-tags":p,borderTop:a,children:[jsxs(xh,{children:[r,d,(r||d)&&(n||i)&&jsx(bh,{}),n&&jsx(pr,{text:n},"releaseTag"),Array.isArray(i)?jsx(Ra,{id:g("breadcrumbs"),paths:i}):ue.isValidElement(i)&&i]}),m==="topOfTabs"&&b,jsxs(Ch,{titleLocation:m,children:[u&&jsx(yh,{titleLocation:m,children:u}),m==="leftOfTabs"&&b,c&&jsx(Rh,{children:c}),(l||s)&&jsxs(Ph,{id:g("actions"),children:[l,s]})]})]})}var te=b(y());function hc(e){let{rootElementName:t="",componentName:o}=e,[n,r]=ue.useState(t.toUpperCase());process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{t&&n!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${o?`the ${o} component`:"a component"} expected the '${t}' element, but a '${n.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app");},[t,n,o]);let a=ue.useCallback(i=>{r(i?.tagName??"");},[]);return [n,a]}function tn(e={}){let{disabled:t=false,focusableWhenDisabled:o,href:n,rootRef:r,tabIndex:a,to:i,type:l,rootElementName:s}=e,c=ue.useRef(null),[u,d]=ue.useState(false),[f,p]=ue.useState(false);t&&!o&&f&&p(false);let[m,g]=hc({rootElementName:s??(n||i?"a":void 0),componentName:"Button"}),b=w=>C=>{f&&C.preventDefault(),w.onMouseLeave?.(C);},x=w=>C=>{Y(C.target)||p(false),w.onBlur?.(C);},T=w=>C=>{c.current||(c.current=C.currentTarget),Y(C.target)&&(p(true),w.onFocusVisible?.(C)),w.onFocus?.(C);},v=()=>{let w=c.current;return m==="BUTTON"||m==="INPUT"&&["button","submit","reset"].includes(w?.type)||m==="A"&&w?.href},y=w=>C=>{t||w.onClick?.(C);},I=w=>C=>{t||(d(true),document.addEventListener("mouseup",()=>{d(false);},{once:true})),w.onMouseDown?.(C);},R=w=>C=>{w.onKeyDown?.(C),!C.defaultMuiPrevented&&(C.target===C.currentTarget&&!v()&&C.key===" "&&C.preventDefault(),C.target===C.currentTarget&&C.key===" "&&!t&&d(true),C.target===C.currentTarget&&!v()&&C.key==="Enter"&&!t&&(w.onClick?.(C),C.preventDefault()));},P=w=>C=>{C.target===C.currentTarget&&d(false),w.onKeyUp?.(C),C.target===C.currentTarget&&!v()&&!t&&C.key===" "&&!C.defaultMuiPrevented&&w.onClick?.(C);},M=X(g,r,c),E={};return a!==void 0&&(E.tabIndex=a),m==="BUTTON"?(E.type=l??"button",o?E["aria-disabled"]=t:E.disabled=t):m==="INPUT"?l&&["button","submit","reset"].includes(l)&&(o?E["aria-disabled"]=t:E.disabled=t):m!==""&&(!n&&!i&&(E.role="button",E.tabIndex=a??0),t&&(E["aria-disabled"]=t,E.tabIndex=o?a??0:-1)),{getRootProps:(w={})=>{let C={...$(e),...$(w)},z={type:l,...C,...E,...w,onBlur:x(C),onClick:y(C),onFocus:T(C),onKeyDown:R(C),onKeyUp:P(C),onMouseDown:I(C),onMouseLeave:b(C),ref:M};return delete z.onFocusVisible,z},focusVisible:f,setFocusVisible:p,active:u,rootRef:M}}var To={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};var le={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Ih(e,t,o,n,r,a){if(o.length===0||!n&&o.every((l,s)=>r(l,s)))return -1;let i=e;for(;;){if(!a&&t==="next"&&i===o.length||!a&&t==="previous"&&i===-1)return -1;if(n?false:r(o[i],i))i+=t==="next"?1:-1,a&&(i=(i+o.length)%o.length);else return i}}function Ce(e,t,o){let{items:n,isItemDisabled:r,disableListWrap:a,disabledItemsFocusable:i,itemComparer:l,focusManagement:s}=o,c=s==="DOM"?0:-1,u=n.length-1,d=e==null?-1:n.findIndex(b=>l(b,e)),f,p,m=!a;switch(t){case "reset":if(c===-1)return null;f=0,p="next",m=false;break;case "start":f=0,p="next",m=false;break;case "end":f=u,p="previous",m=false;break;default:{let b=d+t;b<0?!m&&d!==-1||Math.abs(t)>1?(f=0,p="next"):(f=u,p="previous"):b>u?!m||Math.abs(t)>1?(f=u,p="previous"):(f=0,p="next"):(f=b,p=t>=0?"next":"previous");}}let g=Ih(f,p,n,i,r,m);return g===-1&&e!==null&&!r(e,d)?e:n[g]??null}function Lh(e,t,o,n){return o==="none"?[]:o==="single"?n(t[0],e)?t:[e]:t.some(r=>n(r,e))?t.filter(r=>!n(r,e)):[...t,e]}function fr(e,t,o){let{itemComparer:n,isItemDisabled:r,selectionMode:a,items:i}=o,{selectedValues:l}=t,s=i.findIndex(u=>n(e,u));if(r(e,s))return t;let c=Lh(e,l,a,n);return {...t,selectedValues:c,highlightedValue:e}}function Mh(e,t,o){let n=t.highlightedValue,{orientation:r,pageSize:a}=o;switch(e){case "Home":return {...t,highlightedValue:Ce(n,"start",o)};case "End":return {...t,highlightedValue:Ce(n,"end",o)};case "PageUp":return {...t,highlightedValue:Ce(n,-a,o)};case "PageDown":return {...t,highlightedValue:Ce(n,a,o)};case "ArrowUp":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,-1,o)};case "ArrowDown":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,1,o)};case "ArrowLeft":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?-1:1,o)}}case "ArrowRight":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?1:-1,o)}}case "Enter":case " ":return t.highlightedValue===null?t:fr(t.highlightedValue,t,o);}return t}function kh(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function Ah(e,t,o){let n=o(e)?.trim().toLowerCase();return !n||n.length===0?false:n.startsWith(t)}function Bh(e,t,o){let{items:n,isItemDisabled:r,disabledItemsFocusable:a,getItemAsString:i}=o,l=t.length>1,s=l?e.highlightedValue:Ce(e.highlightedValue,1,o);for(let c=0;c<n.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(Ah(s,t,i)&&(!r(s,n.indexOf(s))||a))return {...e,highlightedValue:s};s=Ce(s,1,o);}return e}function Oh(e,t,o,n){let{itemComparer:r,focusManagement:a}=n,i=null;o.highlightedValue!=null?i=e.find(c=>r(c,o.highlightedValue))??null:a==="DOM"&&t.length===0&&(i=Ce(null,"reset",n));let s=(o.selectedValues??[]).filter(c=>e.some(u=>r(u,c)));return {...o,highlightedValue:i,selectedValues:s}}function Dh(e,t){return {...e,highlightedValue:Ce(null,"reset",t)}}function Nh(e,t){return {...e,highlightedValue:Ce(null,"end",t)}}function $h(e,t){return {...e,selectedValues:[],highlightedValue:Ce(null,"reset",t)}}function mr(e,t){let{type:o,context:n}=t;switch(o){case le.keyDown:return Mh(t.key,e,n);case le.itemClick:return fr(t.item,e,n);case le.blur:return kh(e,n);case le.textNavigation:return Bh(e,t.searchString,n);case le.itemsChange:return Oh(t.items,t.previousItems,e,n);case le.resetHighlight:return Dh(e,n);case le.highlightLast:return Nh(e,n);case le.clearSelection:return $h(e,n);default:return e}}function Hh(e,t){return e===t}var Va={},xc=()=>{};function za(e,t){let o={...e};return Object.keys(t).forEach(n=>{t[n]!==void 0&&(o[n]=t[n]);}),o}function Fh(e){let{nextState:t,initialState:o,stateComparers:n,onStateChange:r,controlledProps:a,lastActionRef:i}=e,l=ue.useRef(o);ue.useEffect(()=>{if(i.current===null)return;let s=za(l.current,a);Object.keys(t).forEach(c=>{let u=n[c]??Hh,d=t[c],f=s[c];(f==null&&d!=null||f!=null&&d==null||f!=null&&d!=null&&!u(d,f))&&r?.(i.current.event??null,c,d,i.current.type??"",t);}),l.current=t,i.current=null;},[l,t,i,r,n,a]);}function Sc(e){let t=ue.useRef(null),{reducer:o,initialState:n,controlledProps:r=Va,stateComparers:a=Va,onStateChange:i=xc,actionContext:l,componentName:s=""}=e,c=ue.useRef(r);process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{Object.keys(r).forEach(m=>{c.current[m]!==void 0&&r[m]===void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing a controlled prop to be uncontrolled: ${m}`),c.current[m]===void 0&&r[m]!==void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing an uncontrolled prop to be controlled: ${m}`);});},[r,s]);let u=ue.useCallback((m,g)=>{t.current=g;let b=za(m,r);return o(b,g)},[r,o]),[d,f]=ue.useReducer(u,n),p=ue.useCallback(m=>{f({...m,context:l});},[l]);return Fh({nextState:d,initialState:n,stateComparers:a??Va,onStateChange:i??xc,controlledProps:r,lastActionRef:t}),[za(d,r),p]}function Xa(e,t,o=(n,r)=>n===r){return e.length===t.length&&e.every((n,r)=>o(n,t[r]))}var _h=500;function bc(e){let t=ue.useRef({searchString:"",lastTime:null});return ue.useCallback(o=>{if(o.key.length===1&&o.key!==" "){let n=t.current,r=o.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>_h?n.searchString=r:(n.searchString.length!==1||r!==n.searchString)&&(n.searchString+=r),n.lastTime=a,e(n.searchString,o);}},[e])}var Cc={},Vh=()=>{},zh=(e,t)=>e===t,Xh=()=>false,Gh=e=>typeof e=="string"?e:String(e),Wh=()=>({highlightedValue:null,selectedValues:[]});function Ga(e){let{controlledProps:t=Cc,disabledItemsFocusable:o=false,disableListWrap:n=false,focusManagement:r="activeDescendant",getInitialState:a=Wh,getItemDomElement:i,getItemId:l,isItemDisabled:s=Xh,rootRef:c,onStateChange:u=Vh,items:d,itemComparer:f=zh,getItemAsString:p=Gh,onChange:m,onHighlightChange:g,onItemsChange:b,orientation:x="vertical",pageSize:T=5,reducerActionContext:v=Cc,selectionMode:y="single",stateReducer:I,componentName:R="useList"}=e;if(process.env.NODE_ENV!=="production"){if(r==="DOM"&&i==null)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if(r==="activeDescendant"&&l==null)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}let P=ue.useRef(null),M=X(c,P),E=ue.useCallback((j,B,U)=>{g?.(j,B,U),r==="DOM"&&B!=null&&(U===le.itemClick||U===le.keyDown||U===le.textNavigation)&&i?.(B)?.focus();},[i,g,r]),h=ue.useMemo(()=>({highlightedValue:f,selectedValues:(j,B)=>Xa(j,B,f)}),[f]),w=ue.useCallback((j,B,U,k,W)=>{switch(u?.(j,B,U,k,W),B){case "highlightedValue":E(j,U,k);break;case "selectedValues":m?.(j,U,k);break;}},[E,m,u]),C=ue.useMemo(()=>({disabledItemsFocusable:o,disableListWrap:n,focusManagement:r,isItemDisabled:s,itemComparer:f,items:d,getItemAsString:p,onHighlightChange:E,orientation:x,pageSize:T,selectionMode:y,stateComparers:h}),[o,n,r,s,f,d,p,E,x,T,y,h]),z=a(),O=I??mr,H=ue.useMemo(()=>({...v,...C}),[v,C]),[A,G]=Sc({reducer:O,actionContext:H,initialState:z,controlledProps:t,stateComparers:h,onStateChange:w,componentName:R}),{highlightedValue:D,selectedValues:L}=A,Y=bc((j,B)=>G({type:le.textNavigation,event:B,searchString:j})),K=ue.useRef([]);ue.useEffect(()=>{Xa(K.current,d,f)||(G({type:le.itemsChange,event:null,items:d,previousItems:K.current}),K.current=d,b?.(d));},[d,f,G,b]);let $$1=j=>B=>{if(j.onKeyDown?.(B),B.defaultMuiPrevented)return;let U=["Home","End","PageUp","PageDown"];x==="vertical"?U.push("ArrowUp","ArrowDown"):U.push("ArrowLeft","ArrowRight"),r==="activeDescendant"&&U.push(" ","Enter"),U.includes(B.key)&&B.preventDefault(),G({type:le.keyDown,key:B.key,event:B}),Y(B);},re=j=>B=>{j.onBlur?.(B),!B.defaultMuiPrevented&&(P.current?.contains(B.relatedTarget)||G({type:le.blur,event:B}));},ye=(j={})=>{let B=$(j);return {...j,"aria-activedescendant":r==="activeDescendant"&&D!=null?l(D):void 0,tabIndex:r==="DOM"?-1:0,ref:M,...B,onBlur:re(B),onKeyDown:$$1(B)}},he=ue.useCallback(j=>{let B=(L??[]).some(W=>W!=null&&f(j,W)),U=D!=null&&f(j,D);return {focusable:r==="DOM",highlighted:U,selected:B}},[f,L,D,r]),Se=ue.useMemo(()=>({dispatch:G,getItemState:he}),[G,he]);return ue.useDebugValue({state:A}),{contextValue:Se,dispatch:G,getRootProps:ye,rootRef:M,state:A}}var at=ue.createContext(null);process.env.NODE_ENV!=="production"&&(at.displayName="ListContext");function Wa(e){let{handlePointerOverEvents:t=false,item:o}=e,n=ue.useContext(at);if(!n)throw new Error("useListItem must be used within a ListProvider");let{dispatch:r,getItemState:a}=n,{highlighted:i,selected:l,focusable:s}=a(o),c=ue.useCallback(p=>m=>{if(p.onClick?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
|
|
178
|
+
white-space: nowrap;`);function Cc({id:e,title:t,subTitle:o,release:n,environment:r,borderTop:a,breadcrumbs:i,actions:l,actionMenu:s,tabs:c,iconTabs:u,returnTo:d,dataQa:f,dataTags:p,titleLocation:m="leftOfTabs"}){let g=x=>`${e??"default"}${x?"-".concat(x):""}`,b=jsx(Ih,{titleLocation:m,children:m==="leftOfTabs"?jsxs(Fragment,{children:[jsx(bc,{id:g("title"),"data-qa":"solace-header-title",hasTabs:!!c,children:jsx(b$1,{title:t,variant:"overflow",children:jsxs(Fragment,{children:[t,o?":":""]})})}),o&&jsx(Lh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",hasTabs:!!c,children:jsx(b$1,{title:o,variant:"overflow",children:o})})]}):jsxs(Mh,{id:g("title"),"data-qa":"solace-header-title",children:[t,o&&jsxs(kh,{id:g("subtitle"),"data-qa":"solace-header-subtitle",children:[": ",o]})]})});return jsxs(vh,{id:g(),"data-qa":f,"data-tags":p,borderTop:a,children:[jsxs(wh,{children:[r,d,(r||d)&&(n||i)&&jsx(Eh,{}),n&&jsx(fr,{text:n},"releaseTag"),Array.isArray(i)?jsx(Ia,{id:g("breadcrumbs"),paths:i}):ue.isValidElement(i)&&i]}),m==="topOfTabs"&&b,jsxs(Rh,{titleLocation:m,children:[u&&jsx(Ph,{titleLocation:m,children:u}),m==="leftOfTabs"&&b,c&&jsx(Ah,{children:c}),(l||s)&&jsxs(Bh,{id:g("actions"),children:[l,s]})]})]})}var te=b(y());function yc(e){let{rootElementName:t="",componentName:o}=e,[n,r]=ue.useState(t.toUpperCase());process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{t&&n!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${o?`the ${o} component`:"a component"} expected the '${t}' element, but a '${n.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app");},[t,n,o]);let a=ue.useCallback(i=>{r(i?.tagName??"");},[]);return [n,a]}function nn(e={}){let{disabled:t=false,focusableWhenDisabled:o,href:n,rootRef:r,tabIndex:a,to:i,type:l,rootElementName:s}=e,c=ue.useRef(null),[u,d]=ue.useState(false),[f,p]=ue.useState(false);t&&!o&&f&&p(false);let[m,g]=yc({rootElementName:s??(n||i?"a":void 0),componentName:"Button"}),b=w=>C=>{f&&C.preventDefault(),w.onMouseLeave?.(C);},x=w=>C=>{Y(C.target)||p(false),w.onBlur?.(C);},T=w=>C=>{c.current||(c.current=C.currentTarget),Y(C.target)&&(p(true),w.onFocusVisible?.(C)),w.onFocus?.(C);},v=()=>{let w=c.current;return m==="BUTTON"||m==="INPUT"&&["button","submit","reset"].includes(w?.type)||m==="A"&&w?.href},y=w=>C=>{t||w.onClick?.(C);},I=w=>C=>{t||(d(true),document.addEventListener("mouseup",()=>{d(false);},{once:true})),w.onMouseDown?.(C);},R=w=>C=>{w.onKeyDown?.(C),!C.defaultMuiPrevented&&(C.target===C.currentTarget&&!v()&&C.key===" "&&C.preventDefault(),C.target===C.currentTarget&&C.key===" "&&!t&&d(true),C.target===C.currentTarget&&!v()&&C.key==="Enter"&&!t&&(w.onClick?.(C),C.preventDefault()));},P=w=>C=>{C.target===C.currentTarget&&d(false),w.onKeyUp?.(C),C.target===C.currentTarget&&!v()&&!t&&C.key===" "&&!C.defaultMuiPrevented&&w.onClick?.(C);},M=X(g,r,c),E={};return a!==void 0&&(E.tabIndex=a),m==="BUTTON"?(E.type=l??"button",o?E["aria-disabled"]=t:E.disabled=t):m==="INPUT"?l&&["button","submit","reset"].includes(l)&&(o?E["aria-disabled"]=t:E.disabled=t):m!==""&&(!n&&!i&&(E.role="button",E.tabIndex=a??0),t&&(E["aria-disabled"]=t,E.tabIndex=o?a??0:-1)),{getRootProps:(w={})=>{let C={...$(e),...$(w)},z={type:l,...C,...E,...w,onBlur:x(C),onClick:y(C),onFocus:T(C),onKeyDown:R(C),onKeyUp:P(C),onMouseDown:I(C),onMouseLeave:b(C),ref:M};return delete z.onFocusVisible,z},focusVisible:f,setFocusVisible:p,active:u,rootRef:M}}var Eo={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};var le={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Oh(e,t,o,n,r,a){if(o.length===0||!n&&o.every((l,s)=>r(l,s)))return -1;let i=e;for(;;){if(!a&&t==="next"&&i===o.length||!a&&t==="previous"&&i===-1)return -1;if(n?false:r(o[i],i))i+=t==="next"?1:-1,a&&(i=(i+o.length)%o.length);else return i}}function Ce(e,t,o){let{items:n,isItemDisabled:r,disableListWrap:a,disabledItemsFocusable:i,itemComparer:l,focusManagement:s}=o,c=s==="DOM"?0:-1,u=n.length-1,d=e==null?-1:n.findIndex(b=>l(b,e)),f,p,m=!a;switch(t){case "reset":if(c===-1)return null;f=0,p="next",m=false;break;case "start":f=0,p="next",m=false;break;case "end":f=u,p="previous",m=false;break;default:{let b=d+t;b<0?!m&&d!==-1||Math.abs(t)>1?(f=0,p="next"):(f=u,p="previous"):b>u?!m||Math.abs(t)>1?(f=u,p="previous"):(f=0,p="next"):(f=b,p=t>=0?"next":"previous");}}let g=Oh(f,p,n,i,r,m);return g===-1&&e!==null&&!r(e,d)?e:n[g]??null}function Dh(e,t,o,n){return o==="none"?[]:o==="single"?n(t[0],e)?t:[e]:t.some(r=>n(r,e))?t.filter(r=>!n(r,e)):[...t,e]}function gr(e,t,o){let{itemComparer:n,isItemDisabled:r,selectionMode:a,items:i}=o,{selectedValues:l}=t,s=i.findIndex(u=>n(e,u));if(r(e,s))return t;let c=Dh(e,l,a,n);return {...t,selectedValues:c,highlightedValue:e}}function $h(e,t,o){let n=t.highlightedValue,{orientation:r,pageSize:a}=o;switch(e){case "Home":return {...t,highlightedValue:Ce(n,"start",o)};case "End":return {...t,highlightedValue:Ce(n,"end",o)};case "PageUp":return {...t,highlightedValue:Ce(n,-a,o)};case "PageDown":return {...t,highlightedValue:Ce(n,a,o)};case "ArrowUp":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,-1,o)};case "ArrowDown":if(r!=="vertical")break;return {...t,highlightedValue:Ce(n,1,o)};case "ArrowLeft":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?-1:1,o)}}case "ArrowRight":{if(r==="vertical")break;return {...t,highlightedValue:Ce(n,r==="horizontal-ltr"?1:-1,o)}}case "Enter":case " ":return t.highlightedValue===null?t:gr(t.highlightedValue,t,o);}return t}function Nh(e,t){return t.focusManagement==="DOM"?e:{...e,highlightedValue:null}}function Hh(e,t,o){let n=o(e)?.trim().toLowerCase();return !n||n.length===0?false:n.startsWith(t)}function Fh(e,t,o){let{items:n,isItemDisabled:r,disabledItemsFocusable:a,getItemAsString:i}=o,l=t.length>1,s=l?e.highlightedValue:Ce(e.highlightedValue,1,o);for(let c=0;c<n.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(Hh(s,t,i)&&(!r(s,n.indexOf(s))||a))return {...e,highlightedValue:s};s=Ce(s,1,o);}return e}function _h(e,t,o,n){let{itemComparer:r,focusManagement:a}=n,i=null;o.highlightedValue!=null?i=e.find(c=>r(c,o.highlightedValue))??null:a==="DOM"&&t.length===0&&(i=Ce(null,"reset",n));let s=(o.selectedValues??[]).filter(c=>e.some(u=>r(u,c)));return {...o,highlightedValue:i,selectedValues:s}}function Vh(e,t){return {...e,highlightedValue:Ce(null,"reset",t)}}function zh(e,t){return {...e,highlightedValue:Ce(null,"end",t)}}function Xh(e,t){return {...e,selectedValues:[],highlightedValue:Ce(null,"reset",t)}}function hr(e,t){let{type:o,context:n}=t;switch(o){case le.keyDown:return $h(t.key,e,n);case le.itemClick:return gr(t.item,e,n);case le.blur:return Nh(e,n);case le.textNavigation:return Fh(e,t.searchString,n);case le.itemsChange:return _h(t.items,t.previousItems,e,n);case le.resetHighlight:return Vh(e,n);case le.highlightLast:return zh(e,n);case le.clearSelection:return Xh(e,n);default:return e}}function Gh(e,t){return e===t}var Xa={},vc=()=>{};function Ga(e,t){let o={...e};return Object.keys(t).forEach(n=>{t[n]!==void 0&&(o[n]=t[n]);}),o}function Wh(e){let{nextState:t,initialState:o,stateComparers:n,onStateChange:r,controlledProps:a,lastActionRef:i}=e,l=ue.useRef(o);ue.useEffect(()=>{if(i.current===null)return;let s=Ga(l.current,a);Object.keys(t).forEach(c=>{let u=n[c]??Gh,d=t[c],f=s[c];(f==null&&d!=null||f!=null&&d==null||f!=null&&d!=null&&!u(d,f))&&r?.(i.current.event??null,c,d,i.current.type??"",t);}),l.current=t,i.current=null;},[l,t,i,r,n,a]);}function wc(e){let t=ue.useRef(null),{reducer:o,initialState:n,controlledProps:r=Xa,stateComparers:a=Xa,onStateChange:i=vc,actionContext:l,componentName:s=""}=e,c=ue.useRef(r);process.env.NODE_ENV!=="production"&&ue.useEffect(()=>{Object.keys(r).forEach(m=>{c.current[m]!==void 0&&r[m]===void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing a controlled prop to be uncontrolled: ${m}`),c.current[m]===void 0&&r[m]!==void 0&&console.error(`useControllableReducer: ${s?`The ${s} component`:"A component"} is changing an uncontrolled prop to be controlled: ${m}`);});},[r,s]);let u=ue.useCallback((m,g)=>{t.current=g;let b=Ga(m,r);return o(b,g)},[r,o]),[d,f]=ue.useReducer(u,n),p=ue.useCallback(m=>{f({...m,context:l});},[l]);return Wh({nextState:d,initialState:n,stateComparers:a??Xa,onStateChange:i??vc,controlledProps:r,lastActionRef:t}),[Ga(d,r),p]}function Wa(e,t,o=(n,r)=>n===r){return e.length===t.length&&e.every((n,r)=>o(n,t[r]))}var Jh=500;function Tc(e){let t=ue.useRef({searchString:"",lastTime:null});return ue.useCallback(o=>{if(o.key.length===1&&o.key!==" "){let n=t.current,r=o.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>Jh?n.searchString=r:(n.searchString.length!==1||r!==n.searchString)&&(n.searchString+=r),n.lastTime=a,e(n.searchString,o);}},[e])}var Ec={},Uh=()=>{},qh=(e,t)=>e===t,Zh=()=>false,Yh=e=>typeof e=="string"?e:String(e),Kh=()=>({highlightedValue:null,selectedValues:[]});function Ja(e){let{controlledProps:t=Ec,disabledItemsFocusable:o=false,disableListWrap:n=false,focusManagement:r="activeDescendant",getInitialState:a=Kh,getItemDomElement:i,getItemId:l,isItemDisabled:s=Zh,rootRef:c,onStateChange:u=Uh,items:d,itemComparer:f=qh,getItemAsString:p=Yh,onChange:m,onHighlightChange:g,onItemsChange:b,orientation:x="vertical",pageSize:T=5,reducerActionContext:v=Ec,selectionMode:y="single",stateReducer:I,componentName:R="useList"}=e;if(process.env.NODE_ENV!=="production"){if(r==="DOM"&&i==null)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if(r==="activeDescendant"&&l==null)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}let P=ue.useRef(null),M=X(c,P),E=ue.useCallback((j,B,U)=>{g?.(j,B,U),r==="DOM"&&B!=null&&(U===le.itemClick||U===le.keyDown||U===le.textNavigation)&&i?.(B)?.focus();},[i,g,r]),h=ue.useMemo(()=>({highlightedValue:f,selectedValues:(j,B)=>Wa(j,B,f)}),[f]),w=ue.useCallback((j,B,U,k,W)=>{switch(u?.(j,B,U,k,W),B){case "highlightedValue":E(j,U,k);break;case "selectedValues":m?.(j,U,k);break;}},[E,m,u]),C=ue.useMemo(()=>({disabledItemsFocusable:o,disableListWrap:n,focusManagement:r,isItemDisabled:s,itemComparer:f,items:d,getItemAsString:p,onHighlightChange:E,orientation:x,pageSize:T,selectionMode:y,stateComparers:h}),[o,n,r,s,f,d,p,E,x,T,y,h]),z=a(),O=I??hr,H=ue.useMemo(()=>({...v,...C}),[v,C]),[A,G]=wc({reducer:O,actionContext:H,initialState:z,controlledProps:t,stateComparers:h,onStateChange:w,componentName:R}),{highlightedValue:D,selectedValues:L}=A,Y=Tc((j,B)=>G({type:le.textNavigation,event:B,searchString:j})),K=ue.useRef([]);ue.useEffect(()=>{Wa(K.current,d,f)||(G({type:le.itemsChange,event:null,items:d,previousItems:K.current}),K.current=d,b?.(d));},[d,f,G,b]);let N=j=>B=>{if(j.onKeyDown?.(B),B.defaultMuiPrevented)return;let U=["Home","End","PageUp","PageDown"];x==="vertical"?U.push("ArrowUp","ArrowDown"):U.push("ArrowLeft","ArrowRight"),r==="activeDescendant"&&U.push(" ","Enter"),U.includes(B.key)&&B.preventDefault(),G({type:le.keyDown,key:B.key,event:B}),Y(B);},re=j=>B=>{j.onBlur?.(B),!B.defaultMuiPrevented&&(P.current?.contains(B.relatedTarget)||G({type:le.blur,event:B}));},ye=(j={})=>{let B=$(j);return {...j,"aria-activedescendant":r==="activeDescendant"&&D!=null?l(D):void 0,tabIndex:r==="DOM"?-1:0,ref:M,...B,onBlur:re(B),onKeyDown:N(B)}},he=ue.useCallback(j=>{let B=(L??[]).some(W=>W!=null&&f(j,W)),U=D!=null&&f(j,D);return {focusable:r==="DOM",highlighted:U,selected:B}},[f,L,D,r]),Se=ue.useMemo(()=>({dispatch:G,getItemState:he}),[G,he]);return ue.useDebugValue({state:A}),{contextValue:Se,dispatch:G,getRootProps:ye,rootRef:M,state:A}}var lt=ue.createContext(null);process.env.NODE_ENV!=="production"&&(lt.displayName="ListContext");function Ua(e){let{handlePointerOverEvents:t=false,item:o}=e,n=ue.useContext(lt);if(!n)throw new Error("useListItem must be used within a ListProvider");let{dispatch:r,getItemState:a}=n,{highlighted:i,selected:l,focusable:s}=a(o),c=ue.useCallback(p=>m=>{if(p.onClick?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
|
|
179
179
|
`));r({type:le.itemClick,item:o,event:m});}},[r,o]),u=ue.useCallback(p=>m=>{if(p.onMouseOver?.(m),!m.defaultPrevented){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
|
|
180
|
-
`));r({type:le.itemHover,item:o,event:m});}},[r,o]),d;return s&&(d=i?0:-1),{getRootProps:(p={})=>{let m=$(p);return {...p,onClick:c(m),onPointerOver:t?u(m):void 0,tabIndex:d}},highlighted:i,selected:l}}var hr=e=>{let{label:t,value:o}=e;return typeof t=="string"?t:typeof o=="string"?o:String(e)};var nn=ue.createContext(null);process.env.NODE_ENV!=="production"&&(nn.displayName="CompoundComponentContext");function Jh(e){let t=Array.from(e.keys()).map(o=>{let n=e.get(o);return {key:o,subitem:n}});return t.sort((o,n)=>{let r=o.subitem.ref.current,a=n.subitem.ref.current;return r===null||a===null||r===a?0:r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(o=>[o.key,o.subitem]))}function vc(){let[e,t]=ue.useState(new Map),o=ue.useRef(new Set),n=ue.useCallback(function(c){o.current.delete(c),t(u=>{let d=new Map(u);return d.delete(c),d});},[]),r=ue.useCallback(function(c,u){let d;return typeof c=="function"?d=c(o.current):d=c,o.current.add(d),t(f=>{let p=new Map(f);return p.set(d,u),p}),{id:d,deregister:()=>n(d)}},[n]),a=ue.useMemo(()=>Jh(e),[e]),i=ue.useCallback(function(c){return Array.from(a.keys()).indexOf(c)},[a]);return {contextValue:ue.useMemo(()=>({getItemIndex:i,registerItem:r,totalSubitemCount:e.size}),[i,r,e.size]),subitems:a}}function wc(e,t){let o=ue.useContext(nn);if(o===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=o,[r,a]=ue.useState(typeof e=="function"?void 0:e);return H(()=>{let{id:i,deregister:l}=n(e,t);return a(i),l},[n,t,e]),{id:r,index:r!==void 0?o.getItemIndex(r):-1,totalItemCount:o.totalSubitemCount}}function Tc(e,t){let{open:o}=e,{context:{selectionMode:n}}=t;if(t.type===To.buttonClick){let a=e.selectedValues[0]??Ce(null,"start",t.context);return {...e,open:!o,highlightedValue:o?null:a}}if(t.type===To.browserAutoFill)return fr(t.item,e,t.context);let r=mr(e,t);switch(t.type){case le.keyDown:if(e.open){if(t.event.key==="Escape")return {...r,open:false}}else {if(t.event.key==="ArrowDown")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"start",t.context)};if(t.event.key==="ArrowUp")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"end",t.context)}}break;case le.itemClick:if(n==="single")return {...r,open:false};break;case le.blur:return {...r,open:false};default:return r}return r}function Eo(e,t){return function(n={}){let r={...n,...e(n)};return {...r,...t(r)}}}function Uh(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function Ja(e){let{areOptionsEqual:t,buttonRef:o,defaultOpen:n=false,defaultValue:r,disabled:a=false,listboxId:i,listboxRef:l,multiple:s=false,name:c,required:u,onChange:d,onHighlightChange:f,onOpenChange:p,open:m,options:g,getOptionAsString:b=hr,getSerializedValue:x=Uh,value:T,componentName:v="useSelect"}=e,y=ue.useRef(null),I=X(o,y),R=ue.useRef(null),P=W(i),M;T===void 0&&r===void 0?M=[]:r!==void 0&&(s?M=r:M=r==null?[]:[r]);let E=ue.useMemo(()=>{if(T!==void 0)return s?T:T==null?[]:[T]},[T,s]),{subitems:h,contextValue:w}=vc(),C=ue.useMemo(()=>g!=null?new Map(g.map((X,Z)=>[X.value,{value:X.value,label:X.label,disabled:X.disabled,ref:ue.createRef(),id:`${P}_${Z}`}])):h,[g,h,P]),z=X(l,R),{getRootProps:O,active:H$1,focusVisible:A,rootRef:G}=tn({disabled:a,rootRef:I}),D=ue.useMemo(()=>Array.from(C.keys()),[C]),L=ue.useCallback(X=>{if(t!==void 0){let Z=D.find(pe=>t(pe,X));return C.get(Z)}return C.get(X)},[C,t,D]),Y=ue.useCallback(X=>L(X)?.disabled??false,[L]),K=ue.useCallback(X=>{let Z=L(X);return Z?b(Z):""},[L,b]),$$1=ue.useMemo(()=>({selectedValues:E,open:m}),[E,m]),re=ue.useCallback(X=>C.get(X)?.id,[C]),ye=ue.useCallback((X,Z)=>{s?d?.(X,Z):d?.(X,Z[0]??null);},[s,d]),he=ue.useCallback((X,Z)=>{f?.(X,Z??null);},[f]),Se=ue.useCallback((X,Z,pe)=>{Z==="open"&&(p?.(pe),pe===false&&X?.type!=="blur"&&y.current?.focus());},[p]),j=ue.useCallback(X=>X==null?null:h.get(X)?.ref.current??null,[h]),B={getInitialState:()=>({highlightedValue:null,selectedValues:M??[],open:n}),getItemId:re,controlledProps:$$1,focusManagement:"DOM",getItemDomElement:j,itemComparer:t,isItemDisabled:Y,rootRef:z,onChange:ye,onHighlightChange:he,onStateChange:Se,reducerActionContext:ue.useMemo(()=>({multiple:s}),[s]),items:D,getItemAsString:K,selectionMode:s?"multiple":"single",stateReducer:Tc,componentName:v},{dispatch:U,getRootProps:k,contextValue:W$1,state:{open:V,highlightedValue:F,selectedValues:Q},rootRef:ze}=Ga(B),to=ue.useRef(V);H(()=>{if(V&&F!==null){let X=L(F)?.ref;if(!R.current||!X?.current)return;to.current||X.current.focus({preventScroll:true});let Z=R.current.getBoundingClientRect(),pe=X.current.getBoundingClientRect();pe.top<Z.top?R.current.scrollTop-=Z.top-pe.top:pe.bottom>Z.bottom&&(R.current.scrollTop+=pe.bottom-Z.bottom);}},[V,F,L]);let pt=ue.useCallback(X=>L(X),[L]),gn=X=>Z=>{if(X?.onClick?.(Z),!Z.defaultMuiPrevented){let pe={type:To.buttonClick,event:Z};U(pe);}},Dr=X=>Z=>{X.onKeyDown?.(Z),!Z.defaultMuiPrevented&&(Z.key==="ArrowDown"||Z.key==="ArrowUp")&&(Z.preventDefault(),U({type:le.keyDown,key:Z.key,event:Z}));},Nr=(X={})=>({onClick:gn(X),onKeyDown:Dr(X)}),hn=(X={})=>({...X,...Nr(X),role:"combobox","aria-expanded":V,"aria-controls":P}),Lt=(X={})=>{let Z=$(X),pe=Eo(hn,O);return {...X,...pe(Z)}},dt=X=>Z=>{X.onBlur?.(Z),!Z.defaultMuiPrevented&&(R.current?.contains(Z.relatedTarget)||Z.relatedTarget===y.current)&&(Z.defaultMuiPrevented=true);},Mt=(X={})=>({onBlur:dt(X)}),Bo=(X={})=>{let Z=$(X),pe=Eo(Mt,k);return {id:P,role:"listbox","aria-multiselectable":s?"true":void 0,...X,...pe(Z)}};ue.useDebugValue({selectedOptions:Q,highlightedOption:F,open:V});let xn=ue.useMemo(()=>({...W$1,...w}),[W$1,w]),ft;e.multiple?ft=Q:ft=Q.length>0?Q[0]:null;let mt;s?mt=ft.map(X=>pt(X)).filter(X=>X!==void 0):mt=pt(ft)??null;let Oo=X=>Z=>{if(X?.onChange?.(Z),Z.defaultMuiPrevented)return;let pe=C.get(Z.target.value);Z.target.value===""?U({type:le.clearSelection}):pe!==void 0&&U({type:To.browserAutoFill,item:pe.value,event:Z});};return {buttonActive:H$1,buttonFocusVisible:A,buttonRef:G,contextValue:xn,disabled:a,dispatch:U,getButtonProps:Lt,getHiddenInputProps:(X={})=>{let Z$1=$(X);return {name:c,tabIndex:-1,"aria-hidden":true,required:u?true:void 0,value:x(mt),style:Z,...X,onChange:Oo(Z$1)}},getListboxProps:Bo,getOptionMetadata:pt,listboxRef:ze,open:V,options:D,value:ft,highlightedOption:F}}function Rc(e){let{value:t,children:o}=e,{dispatch:n,getItemIndex:r,getItemState:a,registerItem:i,totalSubitemCount:l}=t,s=ue.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:r}),[n,r,a]),c=ue.useMemo(()=>({getItemIndex:r,registerItem:i,totalSubitemCount:l}),[i,r,l]);return jsx(nn.Provider,{value:c,children:jsx(at.Provider,{value:s,children:o})})}var qh={disableDefaultClasses:false},Pc=ue.createContext(qh);process.env.NODE_ENV!=="production"&&(Pc.displayName="ClassNameConfiguratorContext");function Ro(e){let{disableDefaultClasses:t}=ue.useContext(Pc);return o=>t?"":e(o)}var ne=b(y());var Po=Math.min,it=Math.max,ln=Math.round,sn=Math.floor,Je=e=>({x:e,y:e}),Zh={left:"right",right:"left",bottom:"top",top:"bottom"},Yh={start:"end",end:"start"};function qa(e,t,o){return it(e,Po(t,o))}function cn(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function Za(e){return e==="x"?"y":"x"}function Ya(e){return e==="y"?"height":"width"}var Kh=new Set(["top","bottom"]);function lt(e){return Kh.has(Pt(e))?"y":"x"}function Ka(e){return Za(lt(e))}function Mc(e,t,o){o===void 0&&(o=false);let n=un(e),r=Ka(e),a=Ya(r),i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=an(i)),[i,an(i)]}function kc(e){let t=an(e);return [Sr(e),t,Sr(t)]}function Sr(e){return e.replace(/start|end/g,t=>Yh[t])}var Ic=["left","right"],Lc=["right","left"],Qh=["top","bottom"],jh=["bottom","top"];function ex(e,t,o){switch(e){case "top":case "bottom":return o?t?Lc:Ic:t?Ic:Lc;case "left":case "right":return t?Qh:jh;default:return []}}function Ac(e,t,o,n){let r=un(e),a=ex(Pt(e),o==="start",n);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(Sr)))),a}function an(e){return e.replace(/left|right|bottom|top/g,t=>Zh[t])}function tx(e){return {top:0,right:0,bottom:0,left:0,...e}}function Bc(e){return typeof e!="number"?tx(e):{top:e,right:e,bottom:e,left:e}}function Ut(e){let{x:t,y:o,width:n,height:r}=e;return {width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Oc(e,t,o){let{reference:n,floating:r}=e,a=lt(t),i=Ka(t),l=Ya(i),s=Pt(t),c=a==="y",u=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,f=n[l]/2-r[l]/2,p;switch(s){case "top":p={x:u,y:n.y-r.height};break;case "bottom":p={x:u,y:n.y+n.height};break;case "right":p={x:n.x+n.width,y:d};break;case "left":p={x:n.x-r.width,y:d};break;default:p={x:n.x,y:n.y};}switch(un(t)){case "start":p[i]-=f*(o&&c?-1:1);break;case "end":p[i]+=f*(o&&c?-1:1);break}return p}async function Dc(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=false,padding:p=0}=cn(t,e),m=Bc(p),b=l[f?d==="floating"?"reference":"floating":d],x=Ut(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(b)))==null||o?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),T=d==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},I=Ut(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:T,offsetParent:v,strategy:s}):T);return {top:(x.top-I.top+m.top)/y.y,bottom:(I.bottom-x.bottom+m.bottom)/y.y,left:(x.left-I.left+m.left)/y.x,right:(I.right-x.right+m.right)/y.x}}var Nc=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Oc(c,n,s),f=n,p={},m=0;for(let b=0;b<l.length;b++){var g;let{name:x,fn:T}=l[b],{x:v,y,data:I,reset:R}=await T({x:u,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:p,rects:c,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:Dc},elements:{reference:e,floating:t}});u=v??u,d=y??d,p={...p,[x]:{...p[x],...I}},R&&m<=50&&(m++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(c=R.rects===true?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:d}=Oc(c,f,s)),b=-1);}return {x:u,y:d,placement:f,strategy:r,middlewareData:p}};var $c=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=true,crossAxis:d=true,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=true,...b}=cn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return {};let x=Pt(r),T=lt(l),v=Pt(l)===l,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),I=f||(v||!g?[an(l)]:kc(l)),R=m!=="none";!f&&R&&I.push(...Ac(l,g,m,y));let P=[l,...I],M=await s.detectOverflow(t,b),E=[],h=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&E.push(M[x]),d){let O=Mc(r,i,y);E.push(M[O[0]],M[O[1]]);}if(h=[...h,{placement:r,overflows:E}],!E.every(O=>O<=0)){var w,C;let O=(((w=a.flip)==null?void 0:w.index)||0)+1,H=P[O];if(H&&(!(d==="alignment"?T!==lt(H):false)||h.every(D=>lt(D.placement)===T?D.overflows[0]>0:true)))return {data:{index:O,overflows:h},reset:{placement:H}};let A=(C=h.filter(G=>G.overflows[0]<=0).sort((G,D)=>G.overflows[1]-D.overflows[1])[0])==null?void 0:C.placement;if(!A)switch(p){case "bestFit":{var z;let G=(z=h.filter(D=>{if(R){let L=lt(D.placement);return L===T||L==="y"}return true}).map(D=>[D.placement,D.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((D,L)=>D[1]-L[1])[0])==null?void 0:z[0];G&&(A=G);break}case "initialPlacement":A=l;break}if(r!==A)return {reset:{placement:A}}}return {}}}};var ox=new Set(["left","top"]);async function nx(e,t){let{placement:o,platform:n,elements:r}=e,a=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=Pt(o),l=un(o),s=lt(o)==="y",c=ox.has(i)?-1:1,u=a&&s?-1:1,d=cn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}var Hc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:a,placement:i,middlewareData:l}=t,s=await nx(t,e);return i===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},Fc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:a}=t,{mainAxis:i=true,crossAxis:l=false,limiter:s={fn:x=>{let{x:T,y:v}=x;return {x:T,y:v}}},...c}=cn(e,t),u={x:o,y:n},d=await a.detectOverflow(t,c),f=lt(Pt(r)),p=Za(f),m=u[p],g=u[f];if(i){let x=p==="y"?"top":"left",T=p==="y"?"bottom":"right",v=m+d[x],y=m-d[T];m=qa(v,m,y);}if(l){let x=f==="y"?"top":"left",T=f==="y"?"bottom":"right",v=g+d[x],y=g-d[T];g=qa(v,g,y);}let b=s.fn({...t,[p]:m,[f]:g});return {...b,data:{x:b.x-o,y:b.y-n,enabled:{[p]:i,[f]:l}}}}}};function br(){return typeof window<"u"}function Zt(e){return Vc(e)?(e.nodeName||"").toLowerCase():"#document"}function Me(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){var t;return (t=(Vc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vc(e){return br()?e instanceof Node||e instanceof Me(e).Node:false}function _e(e){return br()?e instanceof Element||e instanceof Me(e).Element:false}function qe(e){return br()?e instanceof HTMLElement||e instanceof Me(e).HTMLElement:false}function _c(e){return !br()||typeof ShadowRoot>"u"?false:e instanceof ShadowRoot||e instanceof Me(e).ShadowRoot}var rx=new Set(["inline","contents"]);function Io(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Ve(e);return /auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!rx.has(r)}var ax=new Set(["table","td","th"]);function zc(e){return ax.has(Zt(e))}var ix=[":popover-open",":modal"];function pn(e){return ix.some(t=>{try{return e.matches(t)}catch{return false}})}var lx=["transform","translate","scale","rotate","perspective"],sx=["transform","translate","scale","rotate","perspective","filter"],cx=["paint","layout","strict","content"];function Cr(e){let t=yr(),o=_e(e)?Ve(e):e;return lx.some(n=>o[n]?o[n]!=="none":false)||(o.containerType?o.containerType!=="normal":false)||!t&&(o.backdropFilter?o.backdropFilter!=="none":false)||!t&&(o.filter?o.filter!=="none":false)||sx.some(n=>(o.willChange||"").includes(n))||cx.some(n=>(o.contain||"").includes(n))}function Xc(e){let t=st(e);for(;qe(t)&&!Yt(t);){if(Cr(t))return t;if(pn(t))return null;t=st(t);}return null}function yr(){return typeof CSS>"u"||!CSS.supports?false:CSS.supports("-webkit-backdrop-filter","none")}var ux=new Set(["html","body","#document"]);function Yt(e){return ux.has(Zt(e))}function Ve(e){return Me(e).getComputedStyle(e)}function dn(e){return _e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function st(e){if(Zt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_c(e)&&e.host||Ue(e);return _c(t)?t.host:t}function Gc(e){let t=st(e);return Yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:qe(t)&&Io(t)?t:Gc(t)}function qt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=true);let r=Gc(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Me(r);if(a){let l=vr(i);return t.concat(i,i.visualViewport||[],Io(r)?r:[],l&&o?qt(l):[])}return t.concat(r,qt(r,[],o))}function vr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qc(e){let t=Ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=qe(e),a=r?e.offsetWidth:o,i=r?e.offsetHeight:n,l=ln(o)!==a||ln(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function ja(e){return _e(e)?e:e.contextElement}function Lo(e){let t=ja(e);if(!qe(t))return Je(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:a}=qc(t),i=(a?ln(o.width):o.width)/n,l=(a?ln(o.height):o.height)/r;return (!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}var px=Je(0);function Zc(e){let t=Me(e);return !yr()||!t.visualViewport?px:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dx(e,t,o){return t===void 0&&(t=false),!o||t&&o!==Me(e)?false:t}function Kt(e,t,o,n){t===void 0&&(t=false),o===void 0&&(o=false);let r=e.getBoundingClientRect(),a=ja(e),i=Je(1);t&&(n?_e(n)&&(i=Lo(n)):i=Lo(e));let l=dx(a,o,n)?Zc(a):Je(0),s=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(a){let f=Me(a),p=n&&_e(n)?Me(n):n,m=f,g=vr(m);for(;g&&n&&p!==m;){let b=Lo(g),x=g.getBoundingClientRect(),T=Ve(g),v=x.left+(g.clientLeft+parseFloat(T.paddingLeft))*b.x,y=x.top+(g.clientTop+parseFloat(T.paddingTop))*b.y;s*=b.x,c*=b.y,u*=b.x,d*=b.y,s+=v,c+=y,m=Me(g),g=vr(m);}}return Ut({width:u,height:d,x:s,y:c})}function wr(e,t){let o=dn(e).scrollLeft;return t?t.left+o:Kt(Ue(e)).left+o}function Yc(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-wr(e,o),r=o.top+t.scrollTop;return {x:n,y:r}}function fx(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,a=r==="fixed",i=Ue(n),l=t?pn(t.floating):false;if(n===i||l&&a)return o;let s={scrollLeft:0,scrollTop:0},c=Je(1),u=Je(0),d=qe(n);if((d||!d&&!a)&&((Zt(n)!=="body"||Io(i))&&(s=dn(n)),qe(n))){let p=Kt(n);c=Lo(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop;}let f=i&&!d&&!a?Yc(i,s):Je(0);return {width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-s.scrollTop*c.y+u.y+f.y}}function mx(e){return Array.from(e.getClientRects())}function gx(e){let t=Ue(e),o=dn(e),n=e.ownerDocument.body,r=it(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=it(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-o.scrollLeft+wr(e),l=-o.scrollTop;return Ve(n).direction==="rtl"&&(i+=it(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:l}}var Wc=25;function hx(e,t){let o=Me(e),n=Ue(e),r=o.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(r){a=r.width,i=r.height;let u=yr();(!u||u&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop);}let c=wr(n);if(c<=0){let u=n.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-p);m<=Wc&&(a-=m);}else c<=Wc&&(a+=c);return {width:a,height:i,x:l,y:s}}var xx=new Set(["absolute","fixed"]);function Sx(e,t){let o=Kt(e,true,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=qe(e)?Lo(e):Je(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,s=r*a.x,c=n*a.y;return {width:i,height:l,x:s,y:c}}function Jc(e,t,o){let n;if(t==="viewport")n=hx(e,o);else if(t==="document")n=gx(Ue(e));else if(_e(t))n=Sx(t,o);else {let r=Zc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height};}return Ut(n)}function Kc(e,t){let o=st(e);return o===t||!_e(o)||Yt(o)?false:Ve(o).position==="fixed"||Kc(o,t)}function bx(e,t){let o=t.get(e);if(o)return o;let n=qt(e,[],false).filter(l=>_e(l)&&Zt(l)!=="body"),r=null,a=Ve(e).position==="fixed",i=a?st(e):e;for(;_e(i)&&!Yt(i);){let l=Ve(i),s=Cr(i);!s&&l.position==="fixed"&&(r=null),(a?!s&&!r:!s&&l.position==="static"&&!!r&&xx.has(r.position)||Io(i)&&!s&&Kc(e,i))?n=n.filter(u=>u!==i):r=l,i=st(i);}return t.set(e,n),n}function Cx(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,i=[...o==="clippingAncestors"?pn(t)?[]:bx(t,this._c):[].concat(o),n],l=i[0],s=i.reduce((c,u)=>{let d=Jc(t,u,r);return c.top=it(d.top,c.top),c.right=Po(d.right,c.right),c.bottom=Po(d.bottom,c.bottom),c.left=it(d.left,c.left),c},Jc(t,l,r));return {width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function yx(e){let{width:t,height:o}=qc(e);return {width:t,height:o}}function vx(e,t,o){let n=qe(t),r=Ue(t),a=o==="fixed",i=Kt(e,true,a,t),l={scrollLeft:0,scrollTop:0},s=Je(0);function c(){s.x=wr(r);}if(n||!n&&!a)if((Zt(t)!=="body"||Io(r))&&(l=dn(t)),n){let p=Kt(t,true,a,t);s.x=p.x+t.clientLeft,s.y=p.y+t.clientTop;}else r&&c();a&&!n&&r&&c();let u=r&&!n&&!a?Yc(r,l):Je(0),d=i.left+l.scrollLeft-s.x-u.x,f=i.top+l.scrollTop-s.y-u.y;return {x:d,y:f,width:i.width,height:i.height}}function Qa(e){return Ve(e).position==="static"}function Uc(e,t){if(!qe(e)||Ve(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ue(e)===o&&(o=o.ownerDocument.body),o}function Qc(e,t){let o=Me(e);if(pn(e))return o;if(!qe(e)){let r=st(e);for(;r&&!Yt(r);){if(_e(r)&&!Qa(r))return r;r=st(r);}return o}let n=Uc(e,t);for(;n&&zc(n)&&Qa(n);)n=Uc(n,t);return n&&Yt(n)&&Qa(n)&&!Cr(n)?o:n||Xc(e)||o}var wx=async function(e){let t=this.getOffsetParent||Qc,o=this.getDimensions,n=await o(e.floating);return {reference:vx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Tx(e){return Ve(e).direction==="rtl"}var jc={convertOffsetParentRelativeRectToViewportRelativeRect:fx,getDocumentElement:Ue,getClippingRect:Cx,getOffsetParent:Qc,getElementRects:wx,getClientRects:mx,getDimensions:yx,getScale:Lo,isElement:_e,isRTL:Tx};function eu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ex(e,t){let o=null,n,r=Ue(e);function a(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null;}function i(l,s){l===void 0&&(l=false),s===void 0&&(s=1),a();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let m=sn(d),g=sn(r.clientWidth-(u+f)),b=sn(r.clientHeight-(d+p)),x=sn(u),v={rootMargin:-m+"px "+-g+"px "+-b+"px "+-x+"px",threshold:it(0,Po(1,s))||1},y=true;function I(R){let P=R[0].intersectionRatio;if(P!==s){if(!y)return i();P?i(false,P):n=setTimeout(()=>{i(false,1e-7);},1e3);}P===1&&!eu(c,e.getBoundingClientRect())&&i(),y=false;}try{o=new IntersectionObserver(I,{...v,root:r.ownerDocument});}catch{o=new IntersectionObserver(I,v);}o.observe(e);}return i(true),a}function Tr(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=true,ancestorResize:a=true,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=n,c=ja(e),u=r||a?[...c?qt(c):[],...qt(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",o,{passive:true}),a&&x.addEventListener("resize",o);});let d=c&&l?Ex(c,o):null,f=-1,p=null;i&&(p=new ResizeObserver(x=>{let[T]=x;T&&T.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t);})),o();}),c&&!s&&p.observe(c),p.observe(t));let m,g=s?Kt(e):null;s&&b();function b(){let x=Kt(e);g&&!eu(g,x)&&o(),g=x,m=requestAnimationFrame(b);}return o(),()=>{var x;u.forEach(T=>{r&&T.removeEventListener("scroll",o),a&&T.removeEventListener("resize",o);}),d?.(),(x=p)==null||x.disconnect(),p=null,s&&cancelAnimationFrame(m);}}var tu=Hc;var ou=Fc,nu=$c;var ei=(e,t,o)=>{let n=new Map,r={platform:jc,...o},a={...r.platform,_c:n};return Nc(e,t,{...r,platform:a})};var Px=typeof document<"u",Ix=function(){},Er=Px?useLayoutEffect:Ix;function Rr(e,t){if(e===t)return true;if(typeof e!=typeof t)return false;if(typeof e=="function"&&e.toString()===t.toString())return true;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return false;for(n=o;n--!==0;)if(!Rr(e[n],t[n]))return false;return true}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return false;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return false;for(n=o;n--!==0;){let a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!Rr(e[a],t[a]))return false}return true}return e!==e&&t!==t}function iu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ru(e,t){let o=iu(e);return Math.round(t*o)/o}function ti(e){let t=ue.useRef(e);return Er(()=>{t.current=e;}),t}function lu(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:a,floating:i}={},transform:l=true,whileElementsMounted:s,open:c}=e,[u,d]=ue.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:false}),[f,p]=ue.useState(n);Rr(f,n)||p(n);let[m,g]=ue.useState(null),[b,x]=ue.useState(null),T=ue.useCallback(D=>{D!==R.current&&(R.current=D,g(D));},[]),v=ue.useCallback(D=>{D!==P.current&&(P.current=D,x(D));},[]),y=a||m,I=i||b,R=ue.useRef(null),P=ue.useRef(null),M=ue.useRef(u),E=s!=null,h=ti(s),w=ti(r),C=ti(c),z=ue.useCallback(()=>{if(!R.current||!P.current)return;let D={placement:t,strategy:o,middleware:f};w.current&&(D.platform=w.current),ei(R.current,P.current,D).then(L=>{let Y={...L,isPositioned:C.current!==false};O.current&&!Rr(M.current,Y)&&(M.current=Y,au.flushSync(()=>{d(Y);}));});},[f,t,o,w,C]);Er(()=>{c===false&&M.current.isPositioned&&(M.current.isPositioned=false,d(D=>({...D,isPositioned:false})));},[c]);let O=ue.useRef(false);Er(()=>(O.current=true,()=>{O.current=false;}),[]),Er(()=>{if(y&&(R.current=y),I&&(P.current=I),y&&I){if(h.current)return h.current(y,I,z);z();}},[y,I,z,h,E]);let H=ue.useMemo(()=>({reference:R,floating:P,setReference:T,setFloating:v}),[T,v]),A=ue.useMemo(()=>({reference:y,floating:I}),[y,I]),G=ue.useMemo(()=>{let D={position:o,left:0,top:0};if(!A.floating)return D;let L=ru(A.floating,u.x),Y=ru(A.floating,u.y);return l?{...D,transform:"translate("+L+"px, "+Y+"px)",...iu(A.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:L,top:Y}},[o,l,A.floating,u.x,u.y]);return ue.useMemo(()=>({...u,update:z,refs:H,elements:A,floatingStyles:G}),[u,z,H,A,G])}var oi=(e,t)=>({...tu(e),options:[e,t]}),su=(e,t)=>({...ou(e),options:[e,t]});var cu=(e,t)=>({...nu(e),options:[e,t]});var fn=b(y());function Lx(e){return typeof e=="function"?e():e}var Mo=ue.forwardRef(function(t,o){let{children:n,container:r,disablePortal:a=false}=t,[i,l]=ue.useState(null),s=X(ue.isValidElement(n)?ba(n):null,o);return H(()=>{a||l(Lx(r)||document.body);},[r,a]),H(()=>{if(i&&!a)return V(o,i),()=>{V(o,null);}},[o,i,a]),a?ue.isValidElement(n)?ue.cloneElement(n,{ref:s}):n:i&&au.createPortal(n,i)});process.env.NODE_ENV!=="production"&&(Mo.propTypes={children:fn.default.node,container:fn.default.oneOfType([U,fn.default.func]),disablePortal:fn.default.bool});process.env.NODE_ENV!=="production"&&(Mo.propTypes=T(Mo.propTypes));var pu="base";function Mx(e){return `${pu}--${e}`}function kx(e,t){return `${pu}-${e}-${t}`}function It(e,t){let o=E[t];return o?Mx(o):kx(e,t)}function ko(e,t){let o={};return t.forEach(n=>{o[n]=It(e,n);}),o}var du="Popup";function fu(e){return It(du,e)}ko(du,["root","open"]);var ni=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ni.displayName="TransitionContext");function gu(e){let[t,o]=ue.useState(true),n=ue.useRef(false),r=ue.useRef(0),[a,i]=ue.useState(false),l=ue.useRef(e);ue.useEffect(()=>{!e&&r.current>0&&l.current!==e&&(n.current=true,o(false)),l.current=e;},[e]);let s=ue.useCallback(()=>{n.current=false,o(true);},[]),c=ue.useCallback(()=>(r.current+=1,i(true),()=>{r.current-=1,r.current===0&&i(false);}),[]),u;return a?e?u=false:u=!n.current&&t:u=!e,{contextValue:ue.useMemo(()=>({requestedEnter:e,onExited:s,registerTransition:c,hasExited:u}),[s,e,c,u]),hasExited:u}}var ri=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ri.displayName="PopupContext");function Ax(e){let{open:t}=e;return _({root:["root",t&&"open"]},Ro(fu))}function Bx(e){return typeof e=="function"?e():e}var ai=ue.forwardRef(function(t,o){let{anchor:n,children:r,container:a,disablePortal:i=false,keepMounted:l=false,middleware:s,offset:c=0,open:u=false,placement:d="bottom",slotProps:f={},slots:p={},strategy:m="absolute",...g}=t,{refs:b,elements:x,floatingStyles:T,update:v,placement:y}=lu({elements:{reference:Bx(n)},open:u,middleware:s??[oi(c??0),cu(),su()],placement:d,strategy:m,whileElementsMounted:l?void 0:Tr}),I=X(b.setFloating,o);H(()=>{if(l&&u&&x.reference&&x.floating)return Tr(x.reference,x.floating,v)},[l,u,x,v]);let R={...t,disablePortal:i,keepMounted:l,offset:oi,open:u,placement:d,finalPlacement:y,strategy:m},{contextValue:P,hasExited:M}=gu(u),E=l&&M?"hidden":void 0,h=Ax(R),w=p?.root??"div",C=aa({elementType:w,externalSlotProps:f.root,externalForwardedProps:g,ownerState:R,className:h.root,additionalProps:{ref:I,role:"tooltip",style:{...T,visibility:E}}}),z=ue.useMemo(()=>({placement:y}),[y]);return l||!M?jsx(Mo,{disablePortal:i,container:a,children:jsx(ri.Provider,{value:z,children:jsx(ni.Provider,{value:P,children:jsx(w,{...C,children:r})})})}):null});process.env.NODE_ENV!=="production"&&(ai.propTypes={anchor:ne.default.oneOfType([U,ne.default.object,ne.default.func]),children:ne.default.oneOfType([ne.default.node,ne.default.func]),container:ne.default.oneOfType([U,ne.default.func]),disablePortal:ne.default.bool,keepMounted:ne.default.bool,middleware:ne.default.arrayOf(ne.default.oneOfType([ne.default.oneOf([false]),ne.default.shape({fn:ne.default.func.isRequired,name:ne.default.string.isRequired,options:ne.default.any})])),offset:ne.default.oneOfType([ne.default.func,ne.default.number,ne.default.shape({alignmentAxis:ne.default.number,crossAxis:ne.default.number,mainAxis:ne.default.number})]),open:ne.default.bool,placement:ne.default.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),slotProps:ne.default.shape({root:ne.default.oneOfType([ne.default.func,ne.default.object])}),slots:ne.default.shape({root:ne.default.elementType}),strategy:ne.default.oneOf(["absolute","fixed"])});var xu="Select";function Su(e){return It(xu,e)}var ii=ko(xu,["root","button","listbox","popup","active","expanded","disabled","focusVisible"]);var bu;function Dx(e){return Array.isArray(e)?jsx(ue.Fragment,{children:e.map(t=>t.label).join(", ")}):e?.label??null}function Nx(e){let{active:t,disabled:o,open:n,focusVisible:r}=e;return _({root:["root",o&&"disabled",r&&"focusVisible",t&&"active",n&&"expanded"],listbox:["listbox",o&&"disabled"],popup:["popup"]},Ro(Su))}var Lr=ue.forwardRef(function(t,o){let{areOptionsEqual:n,autoComplete:r,autoFocus:a,children:i,defaultValue:l,defaultListboxOpen:s=false,disabled:c,getSerializedValue:u,listboxId:d,listboxOpen:f,multiple:p=false,name:m,required:g=false,onChange:b,onListboxOpenChange:x,getOptionAsString:T=hr,renderValue:v,placeholder:y,slotProps:I={},slots:R={},value:P,...M}=t,E=v??Dx,[h,w]=ue.useState(false),C=ue.useRef(null),z=ue.useRef(null),O=R.root??"button",H=R.listbox??"ul",A=R.popup??"div",G=ue.useCallback(ze=>{w(ze!=null);},[]),D=X(o,C,G);ue.useEffect(()=>{a&&C.current.focus();},[a]);let{buttonActive:L,buttonFocusVisible:Y,contextValue:K,disabled:$,getButtonProps:re,getListboxProps:ye,getHiddenInputProps:he,getOptionMetadata:Se,value:j,open:B}=Ja({name:m,required:g,getSerializedValue:u,areOptionsEqual:n,buttonRef:D,defaultOpen:s,defaultValue:l,disabled:c,listboxId:d,multiple:p,open:f,onChange:b,onOpenChange:x,getOptionAsString:T,value:P,componentName:"Select"}),U={...t,active:L,defaultListboxOpen:s,disabled:$,focusVisible:Y,open:B,multiple:p,renderValue:E,value:j},k=Nx(U),W=aa({elementType:O,getSlotProps:re,externalSlotProps:I.root,externalForwardedProps:M,ownerState:U,className:k.root}),V=aa({elementType:H,getSlotProps:ye,externalSlotProps:I.listbox,additionalProps:{ref:z},ownerState:U,className:k.listbox}),F=aa({elementType:A,externalSlotProps:I.popup,additionalProps:{anchor:C.current,keepMounted:true,open:B,placement:"bottom-start",role:void 0},ownerState:U,className:k.popup}),Q;return p?Q=j.map(ze=>Se(ze)).filter(ze=>ze!==void 0):Q=Se(j)??null,jsxs(ue.Fragment,{children:[jsx(O,{...W,children:E(Q)??y??(bu||(bu=jsx("span",{className:"notranslate","aria-hidden":true,children:"\u200B"})))}),h&&jsx(ai,{slots:{root:A},...F,children:jsx(H,{...V,children:jsx(Rc,{value:K,children:i})})}),jsx("input",{...he(),autoComplete:r})]})});process.env.NODE_ENV!=="production"&&(Lr.propTypes={areOptionsEqual:te.default.func,autoComplete:te.default.string,autoFocus:te.default.bool,children:te.default.node,className:te.default.string,defaultListboxOpen:te.default.bool,defaultValue:te.default.any,disabled:te.default.bool,getOptionAsString:te.default.func,getSerializedValue:te.default.func,listboxId:te.default.string,listboxOpen:te.default.bool,multiple:te.default.bool,name:te.default.string,onChange:te.default.func,onListboxOpenChange:te.default.func,placeholder:te.default.node,renderValue:te.default.func,required:te.default.bool,slotProps:te.default.shape({listbox:te.default.oneOfType([te.default.func,te.default.object]),popup:te.default.oneOfType([te.default.func,te.default.object]),root:te.default.oneOfType([te.default.func,te.default.object])}),slots:te.default.shape({listbox:te.default.elementType,popup:te.default.elementType,root:te.default.elementType}),value:te.default.any});var fe=b(y());var Cu="Option";function yu(e){return It(Cu,e)}var jt=ko(Cu,["root","disabled","selected","highlighted"]);function li(e){let{value:t,label:o,disabled:n,rootRef:r,id:a}=e,{getRootProps:i,highlighted:l,selected:s}=Wa({item:t}),{getRootProps:c,rootRef:u}=tn({disabled:n,focusableWhenDisabled:true}),d=W(a),f=ue.useRef(null),p=ue.useMemo(()=>({disabled:n,label:o,value:t,ref:f,id:d}),[n,o,t,d]),{index:m}=wc(t,p),g=X(r,f,u),b=T=>v=>{T.onKeyDown?.(v),!v.defaultMuiPrevented&&[" ","Enter"].includes(v.key)&&(v.defaultMuiPrevented=true);},x=(T={})=>({onKeyDown:b(T)});return {getRootProps:(T={})=>{let v=$(T),y=Eo(i,Eo(c,x));return {...T,...v,...y(v),id:d,ref:g,role:"option","aria-selected":s}},highlighted:l,index:m,selected:s,rootRef:g}}function vu(e){let t=ue.useContext(at);if(!t)throw new Error("Option: ListContext was not found.");let{getItemState:o,dispatch:n}=t,{highlighted:r,selected:a,focusable:i}=o(e),l=ue.useCallback(c=>{if(c!==e)throw new Error(["MUI\xA0Base Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return {highlighted:r,selected:a,focusable:i}},[r,a,i,e]);return {contextValue:ue.useMemo(()=>({dispatch:n,getItemState:l}),[n,l])}}function $x(e){let{disabled:t,highlighted:o,selected:n}=e;return _({root:["root",t&&"disabled",o&&"highlighted",n&&"selected"]},Ro(yu))}var wu=ue.forwardRef(function(t,o){let{children:n,disabled:r=false,label:a,slotProps:i={},slots:l={},value:s,...c}=t,u=l.root??"li",d=ue.useRef(null),f=X(d,o),p=a??(typeof n=="string"?n:d.current?.textContent?.trim()),{getRootProps:m,selected:g,highlighted:b,index:x}=li({disabled:r,label:p,rootRef:f,value:s}),T={...t,disabled:r,highlighted:b,index:x,selected:g},v=$x(T),y=aa({getSlotProps:m,elementType:u,externalSlotProps:i.root,externalForwardedProps:c,className:v.root,ownerState:T});return jsx(u,{...y,children:n})});process.env.NODE_ENV!=="production"&&(wu.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var Hx=ue.memo(wu),ci=ue.forwardRef(function(t,o){let{value:n}=t,{contextValue:r}=vu(n);return jsx(at.Provider,{value:r,children:jsx(Hx,{...t,ref:o})})});process.env.NODE_ENV!=="production"&&(ci.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var Xx=e=>e!=="bgColor"&&e!=="fgColor",Tu=wa("div",{shouldForwardProp:Xx})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
|
|
180
|
+
`));r({type:le.itemHover,item:o,event:m});}},[r,o]),d;return s&&(d=i?0:-1),{getRootProps:(p={})=>{let m=$(p);return {...p,onClick:c(m),onPointerOver:t?u(m):void 0,tabIndex:d}},highlighted:i,selected:l}}var Sr=e=>{let{label:t,value:o}=e;return typeof t=="string"?t:typeof o=="string"?o:String(e)};var an=ue.createContext(null);process.env.NODE_ENV!=="production"&&(an.displayName="CompoundComponentContext");function Qh(e){let t=Array.from(e.keys()).map(o=>{let n=e.get(o);return {key:o,subitem:n}});return t.sort((o,n)=>{let r=o.subitem.ref.current,a=n.subitem.ref.current;return r===null||a===null||r===a?0:r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(o=>[o.key,o.subitem]))}function Pc(){let[e,t]=ue.useState(new Map),o=ue.useRef(new Set),n=ue.useCallback(function(c){o.current.delete(c),t(u=>{let d=new Map(u);return d.delete(c),d});},[]),r=ue.useCallback(function(c,u){let d;return typeof c=="function"?d=c(o.current):d=c,o.current.add(d),t(f=>{let p=new Map(f);return p.set(d,u),p}),{id:d,deregister:()=>n(d)}},[n]),a=ue.useMemo(()=>Qh(e),[e]),i=ue.useCallback(function(c){return Array.from(a.keys()).indexOf(c)},[a]);return {contextValue:ue.useMemo(()=>({getItemIndex:i,registerItem:r,totalSubitemCount:e.size}),[i,r,e.size]),subitems:a}}function Ic(e,t){let o=ue.useContext(an);if(o===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=o,[r,a]=ue.useState(typeof e=="function"?void 0:e);return H(()=>{let{id:i,deregister:l}=n(e,t);return a(i),l},[n,t,e]),{id:r,index:r!==void 0?o.getItemIndex(r):-1,totalItemCount:o.totalSubitemCount}}function Lc(e,t){let{open:o}=e,{context:{selectionMode:n}}=t;if(t.type===Eo.buttonClick){let a=e.selectedValues[0]??Ce(null,"start",t.context);return {...e,open:!o,highlightedValue:o?null:a}}if(t.type===Eo.browserAutoFill)return gr(t.item,e,t.context);let r=hr(e,t);switch(t.type){case le.keyDown:if(e.open){if(t.event.key==="Escape")return {...r,open:false}}else {if(t.event.key==="ArrowDown")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"start",t.context)};if(t.event.key==="ArrowUp")return {...e,open:true,highlightedValue:e.selectedValues[0]??Ce(null,"end",t.context)}}break;case le.itemClick:if(n==="single")return {...r,open:false};break;case le.blur:return {...r,open:false};default:return r}return r}function Ro(e,t){return function(n={}){let r={...n,...e(n)};return {...r,...t(r)}}}function jh(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function qa(e){let{areOptionsEqual:t,buttonRef:o,defaultOpen:n=false,defaultValue:r,disabled:a=false,listboxId:i,listboxRef:l,multiple:s=false,name:c,required:u,onChange:d,onHighlightChange:f,onOpenChange:p,open:m,options:g,getOptionAsString:b=Sr,getSerializedValue:x=jh,value:T,componentName:v="useSelect"}=e,y=ue.useRef(null),I=X(o,y),R=ue.useRef(null),P=W(i),M;T===void 0&&r===void 0?M=[]:r!==void 0&&(s?M=r:M=r==null?[]:[r]);let E=ue.useMemo(()=>{if(T!==void 0)return s?T:T==null?[]:[T]},[T,s]),{subitems:h,contextValue:w}=Pc(),C=ue.useMemo(()=>g!=null?new Map(g.map((X,Z)=>[X.value,{value:X.value,label:X.label,disabled:X.disabled,ref:ue.createRef(),id:`${P}_${Z}`}])):h,[g,h,P]),z=X(l,R),{getRootProps:O,active:H$1,focusVisible:A,rootRef:G}=nn({disabled:a,rootRef:I}),D=ue.useMemo(()=>Array.from(C.keys()),[C]),L=ue.useCallback(X=>{if(t!==void 0){let Z=D.find(pe=>t(pe,X));return C.get(Z)}return C.get(X)},[C,t,D]),Y=ue.useCallback(X=>L(X)?.disabled??false,[L]),K=ue.useCallback(X=>{let Z=L(X);return Z?b(Z):""},[L,b]),N=ue.useMemo(()=>({selectedValues:E,open:m}),[E,m]),re=ue.useCallback(X=>C.get(X)?.id,[C]),ye=ue.useCallback((X,Z)=>{s?d?.(X,Z):d?.(X,Z[0]??null);},[s,d]),he=ue.useCallback((X,Z)=>{f?.(X,Z??null);},[f]),Se=ue.useCallback((X,Z,pe)=>{Z==="open"&&(p?.(pe),pe===false&&X?.type!=="blur"&&y.current?.focus());},[p]),j=ue.useCallback(X=>X==null?null:h.get(X)?.ref.current??null,[h]),B={getInitialState:()=>({highlightedValue:null,selectedValues:M??[],open:n}),getItemId:re,controlledProps:N,focusManagement:"DOM",getItemDomElement:j,itemComparer:t,isItemDisabled:Y,rootRef:z,onChange:ye,onHighlightChange:he,onStateChange:Se,reducerActionContext:ue.useMemo(()=>({multiple:s}),[s]),items:D,getItemAsString:K,selectionMode:s?"multiple":"single",stateReducer:Lc,componentName:v},{dispatch:U,getRootProps:k,contextValue:W$1,state:{open:V,highlightedValue:F,selectedValues:Q},rootRef:Xe}=Ja(B),oo=ue.useRef(V);H(()=>{if(V&&F!==null){let X=L(F)?.ref;if(!R.current||!X?.current)return;oo.current||X.current.focus({preventScroll:true});let Z=R.current.getBoundingClientRect(),pe=X.current.getBoundingClientRect();pe.top<Z.top?R.current.scrollTop-=Z.top-pe.top:pe.bottom>Z.bottom&&(R.current.scrollTop+=pe.bottom-Z.bottom);}},[V,F,L]);let ft=ue.useCallback(X=>L(X),[L]),xn=X=>Z=>{if(X?.onClick?.(Z),!Z.defaultMuiPrevented){let pe={type:Eo.buttonClick,event:Z};U(pe);}},Nr=X=>Z=>{X.onKeyDown?.(Z),!Z.defaultMuiPrevented&&(Z.key==="ArrowDown"||Z.key==="ArrowUp")&&(Z.preventDefault(),U({type:le.keyDown,key:Z.key,event:Z}));},Hr=(X={})=>({onClick:xn(X),onKeyDown:Nr(X)}),Sn=(X={})=>({...X,...Hr(X),role:"combobox","aria-expanded":V,"aria-controls":P}),kt=(X={})=>{let Z=$(X),pe=Ro(Sn,O);return {...X,...pe(Z)}},mt=X=>Z=>{X.onBlur?.(Z),!Z.defaultMuiPrevented&&(R.current?.contains(Z.relatedTarget)||Z.relatedTarget===y.current)&&(Z.defaultMuiPrevented=true);},At=(X={})=>({onBlur:mt(X)}),Oo=(X={})=>{let Z=$(X),pe=Ro(At,k);return {id:P,role:"listbox","aria-multiselectable":s?"true":void 0,...X,...pe(Z)}};ue.useDebugValue({selectedOptions:Q,highlightedOption:F,open:V});let bn=ue.useMemo(()=>({...W$1,...w}),[W$1,w]),gt;e.multiple?gt=Q:gt=Q.length>0?Q[0]:null;let ht;s?ht=gt.map(X=>ft(X)).filter(X=>X!==void 0):ht=ft(gt)??null;let Do=X=>Z=>{if(X?.onChange?.(Z),Z.defaultMuiPrevented)return;let pe=C.get(Z.target.value);Z.target.value===""?U({type:le.clearSelection}):pe!==void 0&&U({type:Eo.browserAutoFill,item:pe.value,event:Z});};return {buttonActive:H$1,buttonFocusVisible:A,buttonRef:G,contextValue:bn,disabled:a,dispatch:U,getButtonProps:kt,getHiddenInputProps:(X={})=>{let Z$1=$(X);return {name:c,tabIndex:-1,"aria-hidden":true,required:u?true:void 0,value:x(ht),style:Z,...X,onChange:Do(Z$1)}},getListboxProps:Oo,getOptionMetadata:ft,listboxRef:Xe,open:V,options:D,value:gt,highlightedOption:F}}function kc(e){let{value:t,children:o}=e,{dispatch:n,getItemIndex:r,getItemState:a,registerItem:i,totalSubitemCount:l}=t,s=ue.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:r}),[n,r,a]),c=ue.useMemo(()=>({getItemIndex:r,registerItem:i,totalSubitemCount:l}),[i,r,l]);return jsx(an.Provider,{value:c,children:jsx(lt.Provider,{value:s,children:o})})}var ex={disableDefaultClasses:false},Ac=ue.createContext(ex);process.env.NODE_ENV!=="production"&&(Ac.displayName="ClassNameConfiguratorContext");function Po(e){let{disableDefaultClasses:t}=ue.useContext(Ac);return o=>t?"":e(o)}var ne=b(y());var Io=Math.min,st=Math.max,cn=Math.round,un=Math.floor,Ue=e=>({x:e,y:e}),tx={left:"right",right:"left",bottom:"top",top:"bottom"},ox={start:"end",end:"start"};function Ya(e,t,o){return st(e,Io(t,o))}function pn(e,t){return typeof e=="function"?e(t):e}function Lt(e){return e.split("-")[0]}function dn(e){return e.split("-")[1]}function Ka(e){return e==="x"?"y":"x"}function Qa(e){return e==="y"?"height":"width"}var nx=new Set(["top","bottom"]);function ct(e){return nx.has(Lt(e))?"y":"x"}function ja(e){return Ka(ct(e))}function Dc(e,t,o){o===void 0&&(o=false);let n=dn(e),r=ja(e),a=Qa(r),i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=sn(i)),[i,sn(i)]}function $c(e){let t=sn(e);return [Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>ox[t])}var Bc=["left","right"],Oc=["right","left"],rx=["top","bottom"],ax=["bottom","top"];function ix(e,t,o){switch(e){case "top":case "bottom":return o?t?Oc:Bc:t?Bc:Oc;case "left":case "right":return t?rx:ax;default:return []}}function Nc(e,t,o,n){let r=dn(e),a=ix(Lt(e),o==="start",n);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(Cr)))),a}function sn(e){return e.replace(/left|right|bottom|top/g,t=>tx[t])}function lx(e){return {top:0,right:0,bottom:0,left:0,...e}}function Hc(e){return typeof e!="number"?lx(e):{top:e,right:e,bottom:e,left:e}}function qt(e){let{x:t,y:o,width:n,height:r}=e;return {width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Fc(e,t,o){let{reference:n,floating:r}=e,a=ct(t),i=ja(t),l=Qa(i),s=Lt(t),c=a==="y",u=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,f=n[l]/2-r[l]/2,p;switch(s){case "top":p={x:u,y:n.y-r.height};break;case "bottom":p={x:u,y:n.y+n.height};break;case "right":p={x:n.x+n.width,y:d};break;case "left":p={x:n.x-r.width,y:d};break;default:p={x:n.x,y:n.y};}switch(dn(t)){case "start":p[i]-=f*(o&&c?-1:1);break;case "end":p[i]+=f*(o&&c?-1:1);break}return p}async function _c(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=false,padding:p=0}=pn(t,e),m=Hc(p),b=l[f?d==="floating"?"reference":"floating":d],x=qt(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(b)))==null||o?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),T=d==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},I=qt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:T,offsetParent:v,strategy:s}):T);return {top:(x.top-I.top+m.top)/y.y,bottom:(I.bottom-x.bottom+m.bottom)/y.y,left:(x.left-I.left+m.left)/y.x,right:(I.right-x.right+m.right)/y.x}}var Vc=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=a.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Fc(c,n,s),f=n,p={},m=0;for(let b=0;b<l.length;b++){var g;let{name:x,fn:T}=l[b],{x:v,y,data:I,reset:R}=await T({x:u,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:p,rects:c,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:_c},elements:{reference:e,floating:t}});u=v??u,d=y??d,p={...p,[x]:{...p[x],...I}},R&&m<=50&&(m++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(c=R.rects===true?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:d}=Fc(c,f,s)),b=-1);}return {x:u,y:d,placement:f,strategy:r,middlewareData:p}};var zc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=true,crossAxis:d=true,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=true,...b}=pn(e,t);if((o=a.arrow)!=null&&o.alignmentOffset)return {};let x=Lt(r),T=ct(l),v=Lt(l)===l,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),I=f||(v||!g?[sn(l)]:$c(l)),R=m!=="none";!f&&R&&I.push(...Nc(l,g,m,y));let P=[l,...I],M=await s.detectOverflow(t,b),E=[],h=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&E.push(M[x]),d){let O=Dc(r,i,y);E.push(M[O[0]],M[O[1]]);}if(h=[...h,{placement:r,overflows:E}],!E.every(O=>O<=0)){var w,C;let O=(((w=a.flip)==null?void 0:w.index)||0)+1,H=P[O];if(H&&(!(d==="alignment"?T!==ct(H):false)||h.every(D=>ct(D.placement)===T?D.overflows[0]>0:true)))return {data:{index:O,overflows:h},reset:{placement:H}};let A=(C=h.filter(G=>G.overflows[0]<=0).sort((G,D)=>G.overflows[1]-D.overflows[1])[0])==null?void 0:C.placement;if(!A)switch(p){case "bestFit":{var z;let G=(z=h.filter(D=>{if(R){let L=ct(D.placement);return L===T||L==="y"}return true}).map(D=>[D.placement,D.overflows.filter(L=>L>0).reduce((L,Y)=>L+Y,0)]).sort((D,L)=>D[1]-L[1])[0])==null?void 0:z[0];G&&(A=G);break}case "initialPlacement":A=l;break}if(r!==A)return {reset:{placement:A}}}return {}}}};var sx=new Set(["left","top"]);async function cx(e,t){let{placement:o,platform:n,elements:r}=e,a=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=Lt(o),l=dn(o),s=ct(o)==="y",c=sx.has(i)?-1:1,u=a&&s?-1:1,d=pn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}var Xc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:a,placement:i,middlewareData:l}=t,s=await cx(t,e);return i===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},Gc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:a}=t,{mainAxis:i=true,crossAxis:l=false,limiter:s={fn:x=>{let{x:T,y:v}=x;return {x:T,y:v}}},...c}=pn(e,t),u={x:o,y:n},d=await a.detectOverflow(t,c),f=ct(Lt(r)),p=Ka(f),m=u[p],g=u[f];if(i){let x=p==="y"?"top":"left",T=p==="y"?"bottom":"right",v=m+d[x],y=m-d[T];m=Ya(v,m,y);}if(l){let x=f==="y"?"top":"left",T=f==="y"?"bottom":"right",v=g+d[x],y=g-d[T];g=Ya(v,g,y);}let b=s.fn({...t,[p]:m,[f]:g});return {...b,data:{x:b.x-o,y:b.y-n,enabled:{[p]:i,[f]:l}}}}}};function yr(){return typeof window<"u"}function Yt(e){return Jc(e)?(e.nodeName||"").toLowerCase():"#document"}function ke(e){var t;return (e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qe(e){var t;return (t=(Jc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jc(e){return yr()?e instanceof Node||e instanceof ke(e).Node:false}function Ve(e){return yr()?e instanceof Element||e instanceof ke(e).Element:false}function Ze(e){return yr()?e instanceof HTMLElement||e instanceof ke(e).HTMLElement:false}function Wc(e){return !yr()||typeof ShadowRoot>"u"?false:e instanceof ShadowRoot||e instanceof ke(e).ShadowRoot}var ux=new Set(["inline","contents"]);function Lo(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=ze(e);return /auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!ux.has(r)}var px=new Set(["table","td","th"]);function Uc(e){return px.has(Yt(e))}var dx=[":popover-open",":modal"];function fn(e){return dx.some(t=>{try{return e.matches(t)}catch{return false}})}var fx=["transform","translate","scale","rotate","perspective"],mx=["transform","translate","scale","rotate","perspective","filter"],gx=["paint","layout","strict","content"];function vr(e){let t=wr(),o=Ve(e)?ze(e):e;return fx.some(n=>o[n]?o[n]!=="none":false)||(o.containerType?o.containerType!=="normal":false)||!t&&(o.backdropFilter?o.backdropFilter!=="none":false)||!t&&(o.filter?o.filter!=="none":false)||mx.some(n=>(o.willChange||"").includes(n))||gx.some(n=>(o.contain||"").includes(n))}function qc(e){let t=ut(e);for(;Ze(t)&&!Kt(t);){if(vr(t))return t;if(fn(t))return null;t=ut(t);}return null}function wr(){return typeof CSS>"u"||!CSS.supports?false:CSS.supports("-webkit-backdrop-filter","none")}var hx=new Set(["html","body","#document"]);function Kt(e){return hx.has(Yt(e))}function ze(e){return ke(e).getComputedStyle(e)}function mn(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(Yt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Wc(e)&&e.host||qe(e);return Wc(t)?t.host:t}function Zc(e){let t=ut(e);return Kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ze(t)&&Lo(t)?t:Zc(t)}function Zt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=true);let r=Zc(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=ke(r);if(a){let l=Tr(i);return t.concat(i,i.visualViewport||[],Lo(r)?r:[],l&&o?Zt(l):[])}return t.concat(r,Zt(r,[],o))}function Tr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jc(e){let t=ze(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=Ze(e),a=r?e.offsetWidth:o,i=r?e.offsetHeight:n,l=cn(o)!==a||cn(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function ti(e){return Ve(e)?e:e.contextElement}function Mo(e){let t=ti(e);if(!Ze(t))return Ue(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:a}=jc(t),i=(a?cn(o.width):o.width)/n,l=(a?cn(o.height):o.height)/r;return (!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}var xx=Ue(0);function eu(e){let t=ke(e);return !wr()||!t.visualViewport?xx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sx(e,t,o){return t===void 0&&(t=false),!o||t&&o!==ke(e)?false:t}function Qt(e,t,o,n){t===void 0&&(t=false),o===void 0&&(o=false);let r=e.getBoundingClientRect(),a=ti(e),i=Ue(1);t&&(n?Ve(n)&&(i=Mo(n)):i=Mo(e));let l=Sx(a,o,n)?eu(a):Ue(0),s=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(a){let f=ke(a),p=n&&Ve(n)?ke(n):n,m=f,g=Tr(m);for(;g&&n&&p!==m;){let b=Mo(g),x=g.getBoundingClientRect(),T=ze(g),v=x.left+(g.clientLeft+parseFloat(T.paddingLeft))*b.x,y=x.top+(g.clientTop+parseFloat(T.paddingTop))*b.y;s*=b.x,c*=b.y,u*=b.x,d*=b.y,s+=v,c+=y,m=ke(g),g=Tr(m);}}return qt({width:u,height:d,x:s,y:c})}function Er(e,t){let o=mn(e).scrollLeft;return t?t.left+o:Qt(qe(e)).left+o}function tu(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Er(e,o),r=o.top+t.scrollTop;return {x:n,y:r}}function bx(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,a=r==="fixed",i=qe(n),l=t?fn(t.floating):false;if(n===i||l&&a)return o;let s={scrollLeft:0,scrollTop:0},c=Ue(1),u=Ue(0),d=Ze(n);if((d||!d&&!a)&&((Yt(n)!=="body"||Lo(i))&&(s=mn(n)),Ze(n))){let p=Qt(n);c=Mo(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop;}let f=i&&!d&&!a?tu(i,s):Ue(0);return {width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-s.scrollTop*c.y+u.y+f.y}}function Cx(e){return Array.from(e.getClientRects())}function yx(e){let t=qe(e),o=mn(e),n=e.ownerDocument.body,r=st(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=st(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-o.scrollLeft+Er(e),l=-o.scrollTop;return ze(n).direction==="rtl"&&(i+=st(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:l}}var Yc=25;function vx(e,t){let o=ke(e),n=qe(e),r=o.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(r){a=r.width,i=r.height;let u=wr();(!u||u&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop);}let c=Er(n);if(c<=0){let u=n.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-p);m<=Yc&&(a-=m);}else c<=Yc&&(a+=c);return {width:a,height:i,x:l,y:s}}var wx=new Set(["absolute","fixed"]);function Tx(e,t){let o=Qt(e,true,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=Ze(e)?Mo(e):Ue(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,s=r*a.x,c=n*a.y;return {width:i,height:l,x:s,y:c}}function Kc(e,t,o){let n;if(t==="viewport")n=vx(e,o);else if(t==="document")n=yx(qe(e));else if(Ve(t))n=Tx(t,o);else {let r=eu(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height};}return qt(n)}function ou(e,t){let o=ut(e);return o===t||!Ve(o)||Kt(o)?false:ze(o).position==="fixed"||ou(o,t)}function Ex(e,t){let o=t.get(e);if(o)return o;let n=Zt(e,[],false).filter(l=>Ve(l)&&Yt(l)!=="body"),r=null,a=ze(e).position==="fixed",i=a?ut(e):e;for(;Ve(i)&&!Kt(i);){let l=ze(i),s=vr(i);!s&&l.position==="fixed"&&(r=null),(a?!s&&!r:!s&&l.position==="static"&&!!r&&wx.has(r.position)||Lo(i)&&!s&&ou(e,i))?n=n.filter(u=>u!==i):r=l,i=ut(i);}return t.set(e,n),n}function Rx(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,i=[...o==="clippingAncestors"?fn(t)?[]:Ex(t,this._c):[].concat(o),n],l=i[0],s=i.reduce((c,u)=>{let d=Kc(t,u,r);return c.top=st(d.top,c.top),c.right=Io(d.right,c.right),c.bottom=Io(d.bottom,c.bottom),c.left=st(d.left,c.left),c},Kc(t,l,r));return {width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Px(e){let{width:t,height:o}=jc(e);return {width:t,height:o}}function Ix(e,t,o){let n=Ze(t),r=qe(t),a=o==="fixed",i=Qt(e,true,a,t),l={scrollLeft:0,scrollTop:0},s=Ue(0);function c(){s.x=Er(r);}if(n||!n&&!a)if((Yt(t)!=="body"||Lo(r))&&(l=mn(t)),n){let p=Qt(t,true,a,t);s.x=p.x+t.clientLeft,s.y=p.y+t.clientTop;}else r&&c();a&&!n&&r&&c();let u=r&&!n&&!a?tu(r,l):Ue(0),d=i.left+l.scrollLeft-s.x-u.x,f=i.top+l.scrollTop-s.y-u.y;return {x:d,y:f,width:i.width,height:i.height}}function ei(e){return ze(e).position==="static"}function Qc(e,t){if(!Ze(e)||ze(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return qe(e)===o&&(o=o.ownerDocument.body),o}function nu(e,t){let o=ke(e);if(fn(e))return o;if(!Ze(e)){let r=ut(e);for(;r&&!Kt(r);){if(Ve(r)&&!ei(r))return r;r=ut(r);}return o}let n=Qc(e,t);for(;n&&Uc(n)&&ei(n);)n=Qc(n,t);return n&&Kt(n)&&ei(n)&&!vr(n)?o:n||qc(e)||o}var Lx=async function(e){let t=this.getOffsetParent||nu,o=this.getDimensions,n=await o(e.floating);return {reference:Ix(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Mx(e){return ze(e).direction==="rtl"}var ru={convertOffsetParentRelativeRectToViewportRelativeRect:bx,getDocumentElement:qe,getClippingRect:Rx,getOffsetParent:nu,getElementRects:Lx,getClientRects:Cx,getDimensions:Px,getScale:Mo,isElement:Ve,isRTL:Mx};function au(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kx(e,t){let o=null,n,r=qe(e);function a(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null;}function i(l,s){l===void 0&&(l=false),s===void 0&&(s=1),a();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let m=un(d),g=un(r.clientWidth-(u+f)),b=un(r.clientHeight-(d+p)),x=un(u),v={rootMargin:-m+"px "+-g+"px "+-b+"px "+-x+"px",threshold:st(0,Io(1,s))||1},y=true;function I(R){let P=R[0].intersectionRatio;if(P!==s){if(!y)return i();P?i(false,P):n=setTimeout(()=>{i(false,1e-7);},1e3);}P===1&&!au(c,e.getBoundingClientRect())&&i(),y=false;}try{o=new IntersectionObserver(I,{...v,root:r.ownerDocument});}catch{o=new IntersectionObserver(I,v);}o.observe(e);}return i(true),a}function Rr(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=true,ancestorResize:a=true,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=false}=n,c=ti(e),u=r||a?[...c?Zt(c):[],...Zt(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",o,{passive:true}),a&&x.addEventListener("resize",o);});let d=c&&l?kx(c,o):null,f=-1,p=null;i&&(p=new ResizeObserver(x=>{let[T]=x;T&&T.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t);})),o();}),c&&!s&&p.observe(c),p.observe(t));let m,g=s?Qt(e):null;s&&b();function b(){let x=Qt(e);g&&!au(g,x)&&o(),g=x,m=requestAnimationFrame(b);}return o(),()=>{var x;u.forEach(T=>{r&&T.removeEventListener("scroll",o),a&&T.removeEventListener("resize",o);}),d?.(),(x=p)==null||x.disconnect(),p=null,s&&cancelAnimationFrame(m);}}var iu=Xc;var lu=Gc,su=zc;var oi=(e,t,o)=>{let n=new Map,r={platform:ru,...o},a={...r.platform,_c:n};return Vc(e,t,{...r,platform:a})};var Bx=typeof document<"u",Ox=function(){},Pr=Bx?useLayoutEffect:Ox;function Ir(e,t){if(e===t)return true;if(typeof e!=typeof t)return false;if(typeof e=="function"&&e.toString()===t.toString())return true;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return false;for(n=o;n--!==0;)if(!Ir(e[n],t[n]))return false;return true}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return false;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return false;for(n=o;n--!==0;){let a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!Ir(e[a],t[a]))return false}return true}return e!==e&&t!==t}function pu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cu(e,t){let o=pu(e);return Math.round(t*o)/o}function ni(e){let t=ue.useRef(e);return Pr(()=>{t.current=e;}),t}function du(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:a,floating:i}={},transform:l=true,whileElementsMounted:s,open:c}=e,[u,d]=ue.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:false}),[f,p]=ue.useState(n);Ir(f,n)||p(n);let[m,g]=ue.useState(null),[b,x]=ue.useState(null),T=ue.useCallback(D=>{D!==R.current&&(R.current=D,g(D));},[]),v=ue.useCallback(D=>{D!==P.current&&(P.current=D,x(D));},[]),y=a||m,I=i||b,R=ue.useRef(null),P=ue.useRef(null),M=ue.useRef(u),E=s!=null,h=ni(s),w=ni(r),C=ni(c),z=ue.useCallback(()=>{if(!R.current||!P.current)return;let D={placement:t,strategy:o,middleware:f};w.current&&(D.platform=w.current),oi(R.current,P.current,D).then(L=>{let Y={...L,isPositioned:C.current!==false};O.current&&!Ir(M.current,Y)&&(M.current=Y,uu.flushSync(()=>{d(Y);}));});},[f,t,o,w,C]);Pr(()=>{c===false&&M.current.isPositioned&&(M.current.isPositioned=false,d(D=>({...D,isPositioned:false})));},[c]);let O=ue.useRef(false);Pr(()=>(O.current=true,()=>{O.current=false;}),[]),Pr(()=>{if(y&&(R.current=y),I&&(P.current=I),y&&I){if(h.current)return h.current(y,I,z);z();}},[y,I,z,h,E]);let H=ue.useMemo(()=>({reference:R,floating:P,setReference:T,setFloating:v}),[T,v]),A=ue.useMemo(()=>({reference:y,floating:I}),[y,I]),G=ue.useMemo(()=>{let D={position:o,left:0,top:0};if(!A.floating)return D;let L=cu(A.floating,u.x),Y=cu(A.floating,u.y);return l?{...D,transform:"translate("+L+"px, "+Y+"px)",...pu(A.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:L,top:Y}},[o,l,A.floating,u.x,u.y]);return ue.useMemo(()=>({...u,update:z,refs:H,elements:A,floatingStyles:G}),[u,z,H,A,G])}var ri=(e,t)=>({...iu(e),options:[e,t]}),fu=(e,t)=>({...lu(e),options:[e,t]});var mu=(e,t)=>({...su(e),options:[e,t]});var gn=b(y());function Dx(e){return typeof e=="function"?e():e}var ko=ue.forwardRef(function(t,o){let{children:n,container:r,disablePortal:a=false}=t,[i,l]=ue.useState(null),s=X(ue.isValidElement(n)?ba(n):null,o);return H(()=>{a||l(Dx(r)||document.body);},[r,a]),H(()=>{if(i&&!a)return V(o,i),()=>{V(o,null);}},[o,i,a]),a?ue.isValidElement(n)?ue.cloneElement(n,{ref:s}):n:i&&uu.createPortal(n,i)});process.env.NODE_ENV!=="production"&&(ko.propTypes={children:gn.default.node,container:gn.default.oneOfType([U,gn.default.func]),disablePortal:gn.default.bool});process.env.NODE_ENV!=="production"&&(ko.propTypes=T(ko.propTypes));var hu="base";function $x(e){return `${hu}--${e}`}function Nx(e,t){return `${hu}-${e}-${t}`}function Mt(e,t){let o=E[t];return o?$x(o):Nx(e,t)}function Ao(e,t){let o={};return t.forEach(n=>{o[n]=Mt(e,n);}),o}var xu="Popup";function Su(e){return Mt(xu,e)}Ao(xu,["root","open"]);var ai=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ai.displayName="TransitionContext");function Cu(e){let[t,o]=ue.useState(true),n=ue.useRef(false),r=ue.useRef(0),[a,i]=ue.useState(false),l=ue.useRef(e);ue.useEffect(()=>{!e&&r.current>0&&l.current!==e&&(n.current=true,o(false)),l.current=e;},[e]);let s=ue.useCallback(()=>{n.current=false,o(true);},[]),c=ue.useCallback(()=>(r.current+=1,i(true),()=>{r.current-=1,r.current===0&&i(false);}),[]),u;return a?e?u=false:u=!n.current&&t:u=!e,{contextValue:ue.useMemo(()=>({requestedEnter:e,onExited:s,registerTransition:c,hasExited:u}),[s,e,c,u]),hasExited:u}}var ii=ue.createContext(null);process.env.NODE_ENV!=="production"&&(ii.displayName="PopupContext");function Hx(e){let{open:t}=e;return _({root:["root",t&&"open"]},Po(Su))}function Fx(e){return typeof e=="function"?e():e}var li=ue.forwardRef(function(t,o){let{anchor:n,children:r,container:a,disablePortal:i=false,keepMounted:l=false,middleware:s,offset:c=0,open:u=false,placement:d="bottom",slotProps:f={},slots:p={},strategy:m="absolute",...g}=t,{refs:b,elements:x,floatingStyles:T,update:v,placement:y}=du({elements:{reference:Fx(n)},open:u,middleware:s??[ri(c??0),mu(),fu()],placement:d,strategy:m,whileElementsMounted:l?void 0:Rr}),I=X(b.setFloating,o);H(()=>{if(l&&u&&x.reference&&x.floating)return Rr(x.reference,x.floating,v)},[l,u,x,v]);let R={...t,disablePortal:i,keepMounted:l,offset:ri,open:u,placement:d,finalPlacement:y,strategy:m},{contextValue:P,hasExited:M}=Cu(u),E=l&&M?"hidden":void 0,h=Hx(R),w=p?.root??"div",C=aa({elementType:w,externalSlotProps:f.root,externalForwardedProps:g,ownerState:R,className:h.root,additionalProps:{ref:I,role:"tooltip",style:{...T,visibility:E}}}),z=ue.useMemo(()=>({placement:y}),[y]);return l||!M?jsx(ko,{disablePortal:i,container:a,children:jsx(ii.Provider,{value:z,children:jsx(ai.Provider,{value:P,children:jsx(w,{...C,children:r})})})}):null});process.env.NODE_ENV!=="production"&&(li.propTypes={anchor:ne.default.oneOfType([U,ne.default.object,ne.default.func]),children:ne.default.oneOfType([ne.default.node,ne.default.func]),container:ne.default.oneOfType([U,ne.default.func]),disablePortal:ne.default.bool,keepMounted:ne.default.bool,middleware:ne.default.arrayOf(ne.default.oneOfType([ne.default.oneOf([false]),ne.default.shape({fn:ne.default.func.isRequired,name:ne.default.string.isRequired,options:ne.default.any})])),offset:ne.default.oneOfType([ne.default.func,ne.default.number,ne.default.shape({alignmentAxis:ne.default.number,crossAxis:ne.default.number,mainAxis:ne.default.number})]),open:ne.default.bool,placement:ne.default.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),slotProps:ne.default.shape({root:ne.default.oneOfType([ne.default.func,ne.default.object])}),slots:ne.default.shape({root:ne.default.elementType}),strategy:ne.default.oneOf(["absolute","fixed"])});var vu="Select";function wu(e){return Mt(vu,e)}var si=Ao(vu,["root","button","listbox","popup","active","expanded","disabled","focusVisible"]);var Tu;function Vx(e){return Array.isArray(e)?jsx(ue.Fragment,{children:e.map(t=>t.label).join(", ")}):e?.label??null}function zx(e){let{active:t,disabled:o,open:n,focusVisible:r}=e;return _({root:["root",o&&"disabled",r&&"focusVisible",t&&"active",n&&"expanded"],listbox:["listbox",o&&"disabled"],popup:["popup"]},Po(wu))}var kr=ue.forwardRef(function(t,o){let{areOptionsEqual:n,autoComplete:r,autoFocus:a,children:i,defaultValue:l,defaultListboxOpen:s=false,disabled:c,getSerializedValue:u,listboxId:d,listboxOpen:f,multiple:p=false,name:m,required:g=false,onChange:b,onListboxOpenChange:x,getOptionAsString:T=Sr,renderValue:v,placeholder:y,slotProps:I={},slots:R={},value:P,...M}=t,E=v??Vx,[h,w]=ue.useState(false),C=ue.useRef(null),z=ue.useRef(null),O=R.root??"button",H=R.listbox??"ul",A=R.popup??"div",G=ue.useCallback(Xe=>{w(Xe!=null);},[]),D=X(o,C,G);ue.useEffect(()=>{a&&C.current.focus();},[a]);let{buttonActive:L,buttonFocusVisible:Y,contextValue:K,disabled:N,getButtonProps:re,getListboxProps:ye,getHiddenInputProps:he,getOptionMetadata:Se,value:j,open:B}=qa({name:m,required:g,getSerializedValue:u,areOptionsEqual:n,buttonRef:D,defaultOpen:s,defaultValue:l,disabled:c,listboxId:d,multiple:p,open:f,onChange:b,onOpenChange:x,getOptionAsString:T,value:P,componentName:"Select"}),U={...t,active:L,defaultListboxOpen:s,disabled:N,focusVisible:Y,open:B,multiple:p,renderValue:E,value:j},k=zx(U),W=aa({elementType:O,getSlotProps:re,externalSlotProps:I.root,externalForwardedProps:M,ownerState:U,className:k.root}),V=aa({elementType:H,getSlotProps:ye,externalSlotProps:I.listbox,additionalProps:{ref:z},ownerState:U,className:k.listbox}),F=aa({elementType:A,externalSlotProps:I.popup,additionalProps:{anchor:C.current,keepMounted:true,open:B,placement:"bottom-start",role:void 0},ownerState:U,className:k.popup}),Q;return p?Q=j.map(Xe=>Se(Xe)).filter(Xe=>Xe!==void 0):Q=Se(j)??null,jsxs(ue.Fragment,{children:[jsx(O,{...W,children:E(Q)??y??(Tu||(Tu=jsx("span",{className:"notranslate","aria-hidden":true,children:"\u200B"})))}),h&&jsx(li,{slots:{root:A},...F,children:jsx(H,{...V,children:jsx(kc,{value:K,children:i})})}),jsx("input",{...he(),autoComplete:r})]})});process.env.NODE_ENV!=="production"&&(kr.propTypes={areOptionsEqual:te.default.func,autoComplete:te.default.string,autoFocus:te.default.bool,children:te.default.node,className:te.default.string,defaultListboxOpen:te.default.bool,defaultValue:te.default.any,disabled:te.default.bool,getOptionAsString:te.default.func,getSerializedValue:te.default.func,listboxId:te.default.string,listboxOpen:te.default.bool,multiple:te.default.bool,name:te.default.string,onChange:te.default.func,onListboxOpenChange:te.default.func,placeholder:te.default.node,renderValue:te.default.func,required:te.default.bool,slotProps:te.default.shape({listbox:te.default.oneOfType([te.default.func,te.default.object]),popup:te.default.oneOfType([te.default.func,te.default.object]),root:te.default.oneOfType([te.default.func,te.default.object])}),slots:te.default.shape({listbox:te.default.elementType,popup:te.default.elementType,root:te.default.elementType}),value:te.default.any});var fe=b(y());var Eu="Option";function Ru(e){return Mt(Eu,e)}var eo=Ao(Eu,["root","disabled","selected","highlighted"]);function ci(e){let{value:t,label:o,disabled:n,rootRef:r,id:a}=e,{getRootProps:i,highlighted:l,selected:s}=Ua({item:t}),{getRootProps:c,rootRef:u}=nn({disabled:n,focusableWhenDisabled:true}),d=W(a),f=ue.useRef(null),p=ue.useMemo(()=>({disabled:n,label:o,value:t,ref:f,id:d}),[n,o,t,d]),{index:m}=Ic(t,p),g=X(r,f,u),b=T=>v=>{T.onKeyDown?.(v),!v.defaultMuiPrevented&&[" ","Enter"].includes(v.key)&&(v.defaultMuiPrevented=true);},x=(T={})=>({onKeyDown:b(T)});return {getRootProps:(T={})=>{let v=$(T),y=Ro(i,Ro(c,x));return {...T,...v,...y(v),id:d,ref:g,role:"option","aria-selected":s}},highlighted:l,index:m,selected:s,rootRef:g}}function Pu(e){let t=ue.useContext(lt);if(!t)throw new Error("Option: ListContext was not found.");let{getItemState:o,dispatch:n}=t,{highlighted:r,selected:a,focusable:i}=o(e),l=ue.useCallback(c=>{if(c!==e)throw new Error(["MUI\xA0Base Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return {highlighted:r,selected:a,focusable:i}},[r,a,i,e]);return {contextValue:ue.useMemo(()=>({dispatch:n,getItemState:l}),[n,l])}}function Xx(e){let{disabled:t,highlighted:o,selected:n}=e;return _({root:["root",t&&"disabled",o&&"highlighted",n&&"selected"]},Po(Ru))}var Iu=ue.forwardRef(function(t,o){let{children:n,disabled:r=false,label:a,slotProps:i={},slots:l={},value:s,...c}=t,u=l.root??"li",d=ue.useRef(null),f=X(d,o),p=a??(typeof n=="string"?n:d.current?.textContent?.trim()),{getRootProps:m,selected:g,highlighted:b,index:x}=ci({disabled:r,label:p,rootRef:f,value:s}),T={...t,disabled:r,highlighted:b,index:x,selected:g},v=Xx(T),y=aa({getSlotProps:m,elementType:u,externalSlotProps:i.root,externalForwardedProps:c,className:v.root,ownerState:T});return jsx(u,{...y,children:n})});process.env.NODE_ENV!=="production"&&(Iu.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var Gx=ue.memo(Iu),pi=ue.forwardRef(function(t,o){let{value:n}=t,{contextValue:r}=Pu(n);return jsx(lt.Provider,{value:r,children:jsx(Gx,{...t,ref:o})})});process.env.NODE_ENV!=="production"&&(pi.propTypes={children:fe.default.node,className:fe.default.string,disabled:fe.default.bool,label:fe.default.string,slotProps:fe.default.shape({root:fe.default.oneOfType([fe.default.func,fe.default.object])}),slots:fe.default.shape({root:fe.default.elementType}),value:fe.default.any.isRequired});var Zx=e=>e!=="bgColor"&&e!=="fgColor",Lu=wa("div",{shouldForwardProp:Zx})(({theme:e,bgColor:t="#FFFFFF",fgColor:o="#000000"})=>`
|
|
181
181
|
background-color: ${t};
|
|
182
182
|
border-color: ${t?.toUpperCase()==="#FFFFFF"?e.palette.ux.secondary.w100:"transparent"};
|
|
183
183
|
border-style: solid;
|
|
@@ -185,9 +185,9 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
185
185
|
border-radius: ${e.spacing(.5)};
|
|
186
186
|
box-sizing: border-box;
|
|
187
187
|
color: ${o};
|
|
188
|
-
fill: ${o};`),
|
|
188
|
+
fill: ${o};`),Yx=wa(Lu)(({theme:e})=>`
|
|
189
189
|
display: flex;
|
|
190
|
-
padding: ${e.spacing(.5)};`),
|
|
190
|
+
padding: ${e.spacing(.5)};`),Kx=wa("div")(({theme:e})=>`
|
|
191
191
|
align-items: center;
|
|
192
192
|
column-gap: ${e.spacing(1)};
|
|
193
193
|
display: flex;
|
|
@@ -200,7 +200,7 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
200
200
|
}
|
|
201
201
|
& > svg {
|
|
202
202
|
vertical-align: middle;
|
|
203
|
-
}`),
|
|
203
|
+
}`),Qx=ue__default.forwardRef(function(t,o){let{ownerState:n,options:r,children:a,...i}=t,l=(r??[]).find(s=>s.value===n.value);return jsx("button",{type:"button",...i,ref:o,children:jsx(Lu,{bgColor:l?.bgColor,fgColor:l?.fgColor,children:jsxs(Kx,{className:"state-layer",children:[a,jsx(a$1,{})]})})})}),jx=wa(Qx,{shouldForwardProp:()=>true})(({theme:e})=>`
|
|
204
204
|
border: none;
|
|
205
205
|
border-radius: ${e.spacing(.5)};
|
|
206
206
|
cursor: pointer;
|
|
@@ -208,12 +208,12 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
208
208
|
font-weight: ${e.typography.body1.fontWeight};
|
|
209
209
|
padding: 0;
|
|
210
210
|
text-align: left;
|
|
211
|
-
&.${
|
|
211
|
+
&.${si.expanded} .state-layer {
|
|
212
212
|
background-color: ${e.palette.ux.stateLayer.w20};
|
|
213
213
|
}
|
|
214
|
-
&.${
|
|
214
|
+
&.${si.focusVisible} {
|
|
215
215
|
outline: 0;
|
|
216
|
-
}`),
|
|
216
|
+
}`),eS=wa("ul")(({theme:e})=>`
|
|
217
217
|
background-color: ${e.palette.ux.background.w10};
|
|
218
218
|
border-radius: ${e.spacing(.5)};
|
|
219
219
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
|
|
@@ -225,7 +225,7 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
225
225
|
max-height: min(${e.spacing(52)}, calc(100vh - ${e.spacing(10)}));
|
|
226
226
|
min-height: ${e.spacing(10)};
|
|
227
227
|
padding: ${e.spacing(1,0,0,0)};
|
|
228
|
-
will-change: transform;`),
|
|
228
|
+
will-change: transform;`),tS=wa(pi)(({theme:e})=>`
|
|
229
229
|
align-items: center;
|
|
230
230
|
column-gap: ${e.spacing(2)};
|
|
231
231
|
cursor: default;
|
|
@@ -236,37 +236,37 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
236
236
|
&:last-of-type {
|
|
237
237
|
border-bottom: none;
|
|
238
238
|
}
|
|
239
|
-
&.${
|
|
240
|
-
&.${
|
|
241
|
-
&.${
|
|
239
|
+
&.${eo.selected},
|
|
240
|
+
&.${eo.highlighted},
|
|
241
|
+
&.${eo.highlighted}.${eo.selected} {
|
|
242
242
|
background-color: ${e.palette.ux.brand.w10};
|
|
243
243
|
}
|
|
244
|
-
&.${
|
|
244
|
+
&.${eo.disabled} {
|
|
245
245
|
color: ${e.palette.ux.secondary.w40};
|
|
246
246
|
}
|
|
247
|
-
&:hover:not(.${
|
|
247
|
+
&:hover:not(.${eo.disabled}) {
|
|
248
248
|
background-color: ${e.palette.ux.deprecated.secondary.w10};
|
|
249
|
-
}`),
|
|
249
|
+
}`),oS=wa("div")`
|
|
250
250
|
z-index: 1;
|
|
251
|
-
`,
|
|
251
|
+
`,nS=wa("span")`
|
|
252
252
|
display: flex;
|
|
253
|
-
`,
|
|
253
|
+
`,rS=wa("span")`
|
|
254
254
|
max-width: 134px;
|
|
255
255
|
overflow: hidden;
|
|
256
256
|
text-overflow: ellipsis;
|
|
257
257
|
white-space: nowrap;
|
|
258
|
-
`,
|
|
258
|
+
`,aS=wa("div")(({theme:e})=>`
|
|
259
259
|
background-color: ${e.palette.ux.background.w10};
|
|
260
260
|
bottom: 0;
|
|
261
261
|
display: block;
|
|
262
262
|
padding-top: ${e.spacing(1)};
|
|
263
|
-
position: sticky;`);function
|
|
263
|
+
position: sticky;`);function iS(e){let t={root:jx,listbox:eS,popup:oS,...e.slots},{children:o,...n}=e,r=n.options,a=useCallback(i=>{let l=(r??[]).find(s=>s.value===i?.value);return jsxs(Fragment,{children:[l?.icon&&jsx(nS,{children:l.icon}),jsx(rS,{children:l?.label})]})},[r]);return jsxs(kr,{renderValue:a,...n,slots:t,children:[r.map(({label:i,value:l,fgColor:s,bgColor:c,icon:u})=>jsxs(tS,{value:l,children:[u&&jsx(Yx,{fgColor:s,bgColor:c,children:u}),jsx("span",{children:i})]},l)),o]})}function lS({id:e,name:t,options:o,value:n="",onChange:r,dataQa:a,dataTags:i,children:l}){let[s,c]=useState(n);return useEffect(()=>{c(n);},[n]),jsx(iS,{id:e||t,name:t,options:o,"data-qa":a,"data-tags":i,value:s,onChange:(f,p)=>{c(p??""),r&&r({name:t,value:p??""});},children:jsx(aS,{children:l})})}var sS=lS;var $r=wa("div")(({theme:e})=>`
|
|
264
264
|
align-items: center;
|
|
265
265
|
display: flex;
|
|
266
266
|
flex-direction: column;
|
|
267
267
|
height: ${e.spacing(3)};
|
|
268
268
|
justify-content: center;
|
|
269
|
-
width: ${e.spacing(3)};`),
|
|
269
|
+
width: ${e.spacing(3)};`),pS=wa($r,{shouldForwardProp:e=>e!=="bgColor"&&e!=="fgColor"})(({theme:e,bgColor:t,fgColor:o})=>`
|
|
270
270
|
background-color: ${t};
|
|
271
271
|
border: ${t==="#FFFFFF"?"1px solid #000":"none"};
|
|
272
272
|
border-radius: ${e.spacing(.5)};
|
|
@@ -275,8 +275,8 @@ export{a as SolaceDatePickerVariant,b as variantConfig}from'./chunk-NWTC7FRW.mod
|
|
|
275
275
|
font-size: ${e.typography.caption.fontSize};
|
|
276
276
|
font-weight: ${e.typography.caption.fontWeight};
|
|
277
277
|
height: ${e.spacing(3)};
|
|
278
|
-
width: ${e.spacing(3)};`),
|
|
278
|
+
width: ${e.spacing(3)};`),dS=wa("div")(({theme:e})=>`
|
|
279
279
|
width: 100%;
|
|
280
280
|
color: ${e.palette.ux.deprecated.secondary.text.wMain};
|
|
281
|
-
text-align: center;`),
|
|
281
|
+
text-align: center;`),fS={colors:5,icons:4},Bu=({fgColor:e,bgColor:t})=>`${e},${t}`,mS=e=>{let[t,o]=e.split(",");return {fgColor:t,bgColor:o}},ku=32,gS=32,Au=8,hS=5,xS=16,SS="No Results Found";function bS({id:e,name:t,variant:o="colors",icons:n,iconKeyOrderedList:r,label:a,value:i,helperText:l,title:s,hasErrors:c=false,required:u=false,disabled:d=false,readOnly:f=false,inlineLabel:p=false,displayEmpty:m=false,onChange:g,dataQa:b,dataTags:x,open:T,onOpen:v,onClose:y,menuAnchorOrigin:I,menuTransformOrigin:R,numOfItemsPerRow:P,numOfRowsDisplayed:M=hS,contentControlPanel:E,getOptionDisplayValue:h,autoFocusItem:w=true,emptyStateMessage:C=SS}){let z=ua$1(),O=z.palette.ux,[H,A]=useState(i),[G,D]=useState(null);useEffect(()=>{A(i);},[i]);let L=P||fS[o],Y=useMemo(()=>gS*L+Au*(L-1),[L]),K=useMemo(()=>ku*M+Au*(M-1)+ku/2,[M]),N=useMemo(()=>[{fgColor:O.primary.text.w100,bgColor:O.background.w10},{fgColor:O.primary.text.w100,bgColor:O.accent.n2.w20},{fgColor:O.primary.text.w100,bgColor:O.accent.n1.w20},{fgColor:O.primary.text.w100,bgColor:O.accent.n6.w30},{fgColor:O.primary.text.w100,bgColor:O.accent.n5.w60},{fgColor:O.primary.text.w100,bgColor:O.accent.n7.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n0.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n3.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n4.wMain},{fgColor:O.primary.text.w10,bgColor:O.accent.n9.wMain}],[O]),re=useMemo(()=>o==="icons"&&E,[E,o]),ye=V=>{A(V.target.value),g&&g({name:t,value:V.target.value});},he=()=>e||t,Se=()=>{let V=K;re?V=V+(G?.clientHeight||0):V=V-xS/2;let F={maxHeight:`min(${V}px, calc(100% - 96px))`,padding:re?z.spacing(0,2,2,2):z.spacing(2)},Q={anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{autoFocusItem:w,className:"SolacePickerGrid",style:{gridTemplateColumns:`repeat(${L}, 1fr)`}},slotProps:{paper:{sx:F}}};return I&&(Q.anchorOrigin=I),R&&(Q.transformOrigin=R),Q},j=useCallback(()=>E?jsx(Yb,{ref:D,sx:{gridColumnStart:1,gridColumnEnd:L+1,padding:z.spacing(2,0,1,0),width:Y,height:"fit-content !important"},children:E}):null,[E,Y,L,z]),B=useCallback(()=>jsx(Yb,{sx:{gridColumnStart:1,gridColumnEnd:L+1,padding:z.spacing(0),width:Y,height:"fit-content !important"},children:jsx(dS,{children:C})}),[Y,C,L,z]),U=useCallback(()=>o==="colors"?N.map(V=>{let F=Bu(V);return jsx(yf,{value:F,disableGutters:true,children:jsx(pS,{bgColor:V.bgColor,fgColor:V.fgColor,children:"Aa"})},F)}):null,[N,o]),k=useCallback(()=>{if(o==="icons"){let V=null;return n&&(r?V=r.map(F=>{let Q=n[F];return Q?jsx(yf,{value:F,disableGutters:true,children:jsx($r,{children:Q})},F):null}).filter(F=>F!==null):V=Object.entries(n).map(([F,Q])=>jsx(yf,{value:F,disableGutters:true,children:jsx($r,{children:Q})},F))),V?.length?V:B()}return null},[o,n,r,B]),W=()=>jsxs(bg,{id:he(),name:t,"data-qa":b,"data-tags":x,"aria-describedby":l?`${he()}-select-helper-text`:"","aria-labelledby":a?`${he()}-label`:"","aria-readonly":f,className:"SolacePickerGrid",title:s,disabled:d&&!f,readOnly:f,required:u,error:c,value:H,onChange:ye,IconComponent:a$1,MenuProps:Se(),SelectDisplayProps:{style:{padding:"4px 40px 4px 4px"}},style:{width:"fit-content"},displayEmpty:m,onOpen:v,onClose:y,open:T,renderValue:h||void 0,children:[re&&j(),U(),k()]});return jsx(b$4,{id:he(),label:a,helperText:l,errorText:c?l:void 0,disabled:d,readOnly:f,required:u,inlineLabel:p,centerInlineLabel:p,children:W()})}var CS=bS;var vS=wa("div",{shouldForwardProp:e=>e!=="equalButtonWidth"})(({theme:e,equalButtonWidth:t=false})=>({display:"flex",flexDirection:"column",justifyContent:"stretch",rowGap:e.spacing(1),".MuiToggleButtonGroup-root":{boxSizing:"border-box",display:"grid",gridAutoFlow:"column",gridAutoColumns:t?"1fr":"minmax(0, auto)"}})),wS=wa("div",{shouldForwardProp:e=>e!=="equalButtonWidth"})(({theme:e,equalButtonWidth:t=false})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",columnGap:e.spacing(3),rowGap:e.spacing(1),flexWrap:"wrap",".MuiToggleButtonGroup-root":{boxSizing:"border-box",display:"grid",gridAutoFlow:"column",gridAutoColumns:t?"1fr":"minmax(0, auto)"}})),TS=({id:e,name:t,categoryOptions:o,selectedCategoryValue:n,categoryOptionsWidth:r,onCategoryChange:a,helperText:i,searchValue:l,placeholder:s,searchInputWidth:c,disabled:u=false,autoFocus:d=false,hasErrors:f=false,onSearchValueChange:p,onSearchInputFocus:m,onSearchInputBlur:g,onClearAll:b,layout:x="vertical",equalButtonWidth:T=false,dataQa:v})=>{let y=()=>jsxs(Fragment,{children:[o&&o.length>0&&jsx("div",{style:{width:r||"fit-content"},children:jsx(La,{options:o,activeValue:n,onChange:a,isDisabled:u,dataQa:v?`${v}-`:"solaceCategorizedButtons"})}),jsx(Aa,{id:e,name:t,value:l,onChange:p,type:"search_field",onFocus:m,onBlur:g,onClearAll:b,placeholder:s,width:c,disabled:u,autoFocus:d,hasErrors:f,helperText:i,dataQa:v?`${v}-`:"solaceCategorizedSearchInput"})]});return x==="horizontal"?jsx(wS,{equalButtonWidth:T,className:"solaceCategorizedSearch horizontalLayoutContainer","data-qa":v,children:y()}):jsx(vS,{equalButtonWidth:T,className:"solaceCategorizedSearch verticalLayoutContainer","data-qa":v,children:y()})},ES=TS;export{Ep as CHIP_COLORS,zn as CHIP_PX_BORDER_RADIUS,Vn as CHIP_PX_HEIGHTS,_n as CHIP_VARIANT,Vg as CheckCircleIcon,Te as CloseIcon,rg as FIELD_TYPES,Yr as InfoIcon,Dl as MODES,Fg as MoreHorizOutlinedIcon,vl as NoAccess,Ws as PROGRESS_HEIGHT,Nl as STATES,$l as STATUSES,qm as SolaceAccordion,Ol as SolaceAttributeBadge,Rl as SolaceAutoCompleteTextField,Tl as SolaceBackDrop,Ia as SolaceBreadcrumb,Ng as SolaceCard,Na as SolaceCardHeader,ES as SolaceCategorizedSearch,Xg as SolaceCategorizedSearchLayout,wt as SolaceChip,cf as SolaceChipTextArea,Gt as SolaceCircularProgress,cd as SolaceConfirmationDialog,_d as SolaceDetailMessage,bm as SolaceDrawer,oc as SolaceEmptyStateBanner,fc as SolaceEnvironmentChip,gc as SolaceEnvironmentLabel,sS as SolaceEnvironmentSelectChip,Ap as SolaceErrorBox,fr as SolaceFeatureTag,dc as SolaceFileUploader,Vs as SolaceGrid,Ca as SolaceGridList,Bm as SolaceGridListMultiSelect,hc as SolaceIconTabs,Zp as SolaceLearningBanner,lr as SolaceLearningButton,Js as SolaceLinearProgress,cg as SolaceList,dg as SolaceListItem,gg as SolaceListItemButton,go as SolaceMenu,ta as SolaceMenuItem,zp as SolaceMessageBox,Hm as SolaceNotificationCounter,Cc as SolacePageHeader,pm as SolacePagination,ql as SolacePanelPosition,CS as SolacePicker,$r as SolacePickerIconWrapper,fm as SolacePopover,gp as SolaceRadio,vp as SolaceRadioGroup,ua as SolaceResponsiveItemList,Aa as SolaceSearchAndFilter,Ed as SolaceSelectAutocomplete,Ad as SolaceSelectAutocompleteItem,af as SolaceSelectAutocompleteResponsiveTags,ad as SolaceSidePanelLayout,Gm as SolaceSplitPane,at as SolaceStack,tc as SolaceStepper,tm as SolaceTable,ot as SolaceTableData,bf as SolaceTableNumberData,Uo as SolaceTableSelectionType,da as SolaceTableSortDirection,jp as SolaceTabs,Fl as SolaceTag,Cl as SolaceToasts,gf as SolaceToggle,La as SolaceToggleButtonGroup,eh as SolaceTruncatableLink,zg as StepContentOverflow,ac as TitleLocation,Bu as color2value,Id as getShowSolaceSelectAutocompleteOptionDivider,Md as getSolaceSelectAutocompleteGroupBy,Pd as getSolaceSelectAutocompleteOptionLabel,Ld as isSolaceSelectAutocompleteOptionEqual,mS as value2color};//# sourceMappingURL=index.modern.mjs.map
|
|
282
282
|
//# sourceMappingURL=index.modern.mjs.map
|