@tap-payments/os-micro-frontend-shared 0.3.289 → 0.3.295
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/build/_chunks/chunk-2I5L7ASP.js +0 -0
- package/build/_chunks/{chunk-72FD3NW2.js → chunk-2MXRHXGS.js} +1 -1
- package/build/_chunks/chunk-2V7P76GA.js +1 -0
- package/build/_chunks/{chunk-7UCD3KUZ.js → chunk-2W2GZUKF.js} +1 -1
- package/build/_chunks/{chunk-2M6UER6N.js → chunk-2WOWP3QA.js} +1 -1
- package/build/_chunks/{chunk-JMPFZOV3.js → chunk-3ANVVXOL.js} +1 -1
- package/build/_chunks/chunk-3LLAL7SZ.js +2 -0
- package/build/_chunks/{chunk-XEYCTDD3.js → chunk-3MRO5CJP.js} +1 -1
- package/build/_chunks/{chunk-XLFVCH5I.js → chunk-45E65P5R.js} +1 -1
- package/build/_chunks/{chunk-LECTWR74.js → chunk-45GQW7K7.js} +1 -1
- package/build/_chunks/{chunk-DN33IHNY.js → chunk-52MTQXHO.js} +1 -1
- package/build/_chunks/{chunk-D52IZHFQ.js → chunk-6X4K2W2E.js} +1 -1
- package/build/_chunks/{chunk-7GJ5PPIY.js → chunk-73SAT4RE.js} +1 -1
- package/build/_chunks/{chunk-MTACYUU3.js → chunk-77K53QY2.js} +1 -1
- package/build/_chunks/chunk-7BA3JMDW.js +2 -0
- package/build/_chunks/{chunk-RTKA6K5L.js → chunk-7CT3QCVP.js} +1 -1
- package/build/_chunks/{chunk-PNRVZNL7.js → chunk-7LWPKOGV.js} +1 -1
- package/build/_chunks/{chunk-W3DEOBBE.js → chunk-7WMSYKS3.js} +1 -1
- package/build/_chunks/{chunk-XHFDGV2F.js → chunk-AJUXDLJF.js} +1 -1
- package/build/_chunks/chunk-AN73YAF5.js +1 -0
- package/build/_chunks/chunk-ANIJPMR3.js +1 -0
- package/build/_chunks/{chunk-ZGY3RIKJ.js → chunk-BAXN7S2I.js} +1 -1
- package/build/_chunks/{chunk-RFA33XQQ.js → chunk-BDW6QQXH.js} +1 -1
- package/build/_chunks/{chunk-CIB4WTBC.js → chunk-BTUNGKV3.js} +1 -1
- package/build/_chunks/chunk-CGGZ367Q.js +1 -0
- package/build/_chunks/chunk-CRSHY7OT.js +1 -0
- package/build/_chunks/{chunk-AE4JYS7U.js → chunk-DD3TYF3Y.js} +1 -1
- package/build/_chunks/{chunk-M64F4XVE.js → chunk-DIW7RMJY.js} +1 -1
- package/build/_chunks/chunk-DJHXUNB6.js +1 -0
- package/build/_chunks/{chunk-MLZ63M2D.js → chunk-DXDJ7ZQI.js} +1 -1
- package/build/_chunks/chunk-E74Q7ILM.js +1 -0
- package/build/_chunks/{chunk-NHAXRGPW.js → chunk-F5H3U3NJ.js} +1 -1
- package/build/_chunks/chunk-FI5H6V55.js +2 -0
- package/build/_chunks/{chunk-AMOFAS7L.js → chunk-H6CKZAJN.js} +1 -1
- package/build/_chunks/chunk-HI2JOLXL.js +1 -0
- package/build/_chunks/{chunk-RK4UGNRY.js → chunk-HWNPJALM.js} +1 -1
- package/build/_chunks/{chunk-L42ISYQY.js → chunk-IEPHBQH7.js} +1 -1
- package/build/_chunks/{chunk-P6WIYEZX.js → chunk-JRQZANGX.js} +1 -1
- package/build/_chunks/{chunk-U5M6TIFS.js → chunk-JZK2QZX3.js} +1 -1
- package/build/_chunks/{chunk-JUEXC7Z2.js → chunk-K67DFHSS.js} +1 -1
- package/build/_chunks/{chunk-TQIWHM5B.js → chunk-L2PULJKK.js} +1 -1
- package/build/_chunks/{chunk-NDRHRXAO.js → chunk-L4KBXHZI.js} +2 -2
- package/build/_chunks/{chunk-HRQGL7NO.js → chunk-LBKOWCCN.js} +1 -1
- package/build/_chunks/chunk-MBZF7BHG.js +1 -0
- package/build/_chunks/chunk-MBZVHLRC.js +1 -0
- package/build/_chunks/{chunk-KFBXVUQ5.js → chunk-MKDL4TYN.js} +1 -1
- package/build/_chunks/{chunk-47BHPSSP.js → chunk-MPIENGJC.js} +1 -1
- package/build/_chunks/{chunk-V5NBU5TE.js → chunk-N5K54WNL.js} +1 -1
- package/build/_chunks/{chunk-OCHPXIEK.js → chunk-NBVOXBIW.js} +1 -1
- package/build/_chunks/{chunk-GVXTYXRO.js → chunk-NIWGDILH.js} +1 -1
- package/build/_chunks/{chunk-TCI6NIBC.js → chunk-OEZIALDT.js} +1 -1
- package/build/_chunks/chunk-OTG5BKW6.js +1 -0
- package/build/_chunks/{chunk-7VUU5WEU.js → chunk-OW3B34TK.js} +1 -1
- package/build/_chunks/{chunk-PUI6B7OY.js → chunk-PF6NDV3G.js} +1 -1
- package/build/_chunks/chunk-PVUGMA6R.js +1 -0
- package/build/_chunks/{chunk-AXJZMO7Q.js → chunk-Q2GI76OF.js} +1 -1
- package/build/_chunks/{chunk-RYHHS7S3.js → chunk-QKUEMUT3.js} +1 -1
- package/build/_chunks/{chunk-6YAUL2OM.js → chunk-TMAA4QIY.js} +1 -1
- package/build/_chunks/{chunk-UGX2ZY27.js → chunk-UBMO65ZL.js} +1 -1
- package/build/_chunks/{chunk-WNQ3ONG2.js → chunk-UKV3UR3X.js} +1 -1
- package/build/_chunks/{chunk-OHN7F4WA.js → chunk-UPUJEOOS.js} +1 -1
- package/build/_chunks/{chunk-HZYY6NMO.js → chunk-VIIDA663.js} +1 -1
- package/build/_chunks/chunk-XXMVSJIM.js +2 -0
- package/build/_chunks/chunk-YWZJZGDA.js +1 -0
- package/build/_chunks/{chunk-HPDPFVUQ.js → chunk-ZLXQBIAQ.js} +1 -1
- package/build/_chunks/chunk-ZQ6WQPET.js +1 -0
- package/build/_chunks/{chunk-DKBPLNEE.js → chunk-ZQFDXQ4J.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/Alert/style.d.ts +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/AvatarStack/style.d.ts +2 -2
- package/build/components/Calender/index.js +1 -1
- package/build/components/Calender/style.d.ts +4 -4
- package/build/components/Card/index.js +1 -1
- package/build/components/Card/style.d.ts +1 -1
- package/build/components/CardList/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColorPicker/style.d.ts +2 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +4 -4
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrenciesMenu/style.d.ts +2 -2
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmount/style.d.ts +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencyAmountInput/style.d.ts +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateFilter/style.d.ts +3 -3
- package/build/components/DateInput/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableChip/index.js +1 -1
- package/build/components/ExpandableChip/style.d.ts +10 -10
- package/build/components/ExportReportButton/index.js +1 -1
- package/build/components/ExportReportButton/style.d.ts +3 -3
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FileDropbox/style.d.ts +2 -2
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterBar/index.js +1 -1
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilterDropdown/style.d.ts +3 -3
- package/build/components/Filters/index.js +1 -1
- package/build/components/Filters/style.d.ts +3 -3
- package/build/components/FlipCard/index.js +1 -1
- package/build/components/FlipCard/style.d.ts +2 -2
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/GroupedSelect/style.d.ts +2 -2
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListHeader/styles.d.ts +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiLevelMenu/index.js +1 -1
- package/build/components/MultiLevelSelect/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RadioGroup/style.d.ts +2 -2
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RatingCount/style.d.ts +2 -2
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/style.d.ts +7 -7
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SearchInput/style.d.ts +2 -2
- package/build/components/Select/index.js +1 -1
- package/build/components/Select/style.d.ts +2 -2
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/SheetViewChip/type.d.ts +2 -2
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/AgreementIcon/style.d.ts +2 -2
- package/build/components/StatusIcons/AuthIcons/style.d.ts +4 -4
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +2 -2
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +12 -12
- package/build/components/StatusIcons/SourceIcons/style.d.ts +2 -2
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +3 -3
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +4 -4
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +4 -4
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +3 -3
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon/style.d.ts +3 -3
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +3 -3
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +10 -10
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +4 -4
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +13 -13
- package/build/components/TableCells/CustomCells/style.d.ts +4 -4
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timeline/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Timepicker/style.d.ts +2 -2
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowServices/index.js +1 -1
- package/build/components/WindowServices/style.d.ts +1 -1
- package/build/components/WindowToolbar/index.js +1 -1
- package/build/components/WindowToolbar/style.d.ts +3 -3
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/components/Content/style.d.ts +2 -2
- package/build/components/modules/JSONViewWindow/components/CopiedIndicator/style.d.ts +3 -3
- package/build/components/modules/JSONViewWindow/components/JSONSearchBar/style.d.ts +12 -12
- package/build/components/modules/JSONViewWindow/index.js +1 -1
- package/build/components/modules/JSONViewWindow/style.d.ts +5 -5
- package/build/components/modules/RangeCalender/components/QuickFilters/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/components/RangeDatepicker/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/RangeCalender/style.d.ts +3 -3
- package/build/components/modules/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/style.d.ts +2 -2
- package/build/components/modules/VirtualTables/components/ErrorList/styles.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/NestedMenu/styles.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/TableFooter/style.d.ts +2 -2
- package/build/components/modules/VirtualTables/components/style.d.ts +3 -3
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/modules/WindowShell/index.js +1 -1
- package/build/components/modules/WindowShell/style.d.ts +4 -4
- package/build/components/modules/index.js +1 -1
- package/build/components/primitives/Backdrop/style.d.ts +1 -1
- package/build/components/primitives/Input/style.d.ts +2 -2
- package/build/components/primitives/Slider/style.d.ts +1 -1
- package/build/components/primitives/Textarea/style.d.ts +2 -2
- package/build/components/primitives/index.js +1 -1
- package/build/constants/assets.d.ts +3 -0
- package/build/constants/index.js +1 -1
- package/build/datetime/components/DateRangeCalendar/TimePicker/style.d.ts +2 -2
- package/build/datetime/components/DateRangeCalendar/style.d.ts +5 -5
- package/build/datetime/components/index.js +1 -1
- package/build/datetime/index.js +1 -1
- package/build/datetime/wirePeriod.d.ts +3 -4
- package/build/hooks/core/index.d.ts +25 -0
- package/build/hooks/core/index.js +1 -0
- package/build/hooks/core/useCountMap.d.ts +12 -0
- package/build/hooks/core/useCountdown.d.ts +19 -0
- package/build/hooks/core/useCustomEventListener.d.ts +7 -0
- package/build/hooks/core/useCustomEventPublisher.d.ts +5 -0
- package/build/hooks/core/useDelayedVisibility.d.ts +6 -0
- package/build/hooks/core/useElementSize.d.ts +19 -0
- package/build/hooks/core/useIntersectionObserver.d.ts +14 -0
- package/build/hooks/core/useKeyDown.d.ts +10 -0
- package/build/hooks/core/useNetworkStatus.d.ts +25 -0
- package/build/hooks/core/useScrollShadow.d.ts +13 -0
- package/build/hooks/core/useScrollState.d.ts +32 -0
- package/build/hooks/core/useThemeMode.d.ts +9 -0
- package/build/hooks/core/useToastController.d.ts +40 -0
- package/build/hooks/core/useViewportSize.d.ts +11 -0
- package/build/hooks/index.js +1 -1
- package/build/hooks/useAppEventListener.d.ts +4 -1
- package/build/hooks/useAppEventPublisher.d.ts +4 -1
- package/build/hooks/useAppsInfo.d.ts +3 -0
- package/build/hooks/useBadgesCount.d.ts +3 -0
- package/build/hooks/useColumnFiltersGate.d.ts +2 -7
- package/build/hooks/useCountdown.d.ts +3 -0
- package/build/hooks/useDelayToSetValue.d.ts +3 -0
- package/build/hooks/useElementSizeObserver.d.ts +3 -14
- package/build/hooks/useFilterKeyDown.d.ts +3 -7
- package/build/hooks/useNetworkState.d.ts +6 -1
- package/build/hooks/useScrollWithShadow.d.ts +5 -2
- package/build/hooks/useScrolledTo.d.ts +6 -3
- package/build/hooks/useSelectedMerchantDetails.d.ts +1 -4
- package/build/hooks/useStickyHeaderShadow.d.ts +8 -2
- package/build/hooks/useTableViews.d.ts +3 -0
- package/build/hooks/useThemeMode.d.ts +4 -1
- package/build/hooks/useToast.d.ts +5 -1
- package/build/hooks/useWindowDimensions.d.ts +4 -4
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +5 -1
- package/build/_chunks/chunk-4NLQZJVN.js +0 -2
- package/build/_chunks/chunk-5KGT5D5O.js +0 -1
- package/build/_chunks/chunk-64OLTOQM.js +0 -1
- package/build/_chunks/chunk-6WI5CW2I.js +0 -2
- package/build/_chunks/chunk-A2SC5BOB.js +0 -1
- package/build/_chunks/chunk-BQ46OLDY.js +0 -1
- package/build/_chunks/chunk-C2RHW4FN.js +0 -1
- package/build/_chunks/chunk-CNYQ4OI5.js +0 -1
- package/build/_chunks/chunk-EP5VELEJ.js +0 -1
- package/build/_chunks/chunk-KMZPFESJ.js +0 -2
- package/build/_chunks/chunk-MSEBSRXG.js +0 -1
- package/build/_chunks/chunk-OSXKJYUX.js +0 -1
- package/build/_chunks/chunk-SO6E7CJM.js +0 -1
- package/build/_chunks/chunk-TXLFAI3O.js +0 -1
- package/build/_chunks/chunk-UVU4YIMS.js +0 -1
- package/build/_chunks/chunk-XTJZTHR6.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1,aa}from'./chunk-4NLQZJVN.js';import {Sc,A as A$1}from'./chunk-XTJZTHR6.js';import {forwardRef}from'react';import r from'@mui/material/Box';import oe from'@mui/material/CircularProgress';import ne from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import v from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n="os-shared-Select",u={root:`${n}-root`,field:`${n}-field`,menu:`${n}-menu`,option:`${n}-option`,clear:`${n}-clear`,feedback:`${n}-feedback`,values:`${n}-values`,value:`${n}-value`,valueOverflow:`${n}-valueOverflow`,search:`${n}-search`,summary:`${n}-summary`},le="Search",ae=8,de=8,l=28,a=36,o=17,se=4,z=256,W=272,B=293,pe=8,E={bottom:"bottom",top:"top"},ce=E.bottom,h={start:"start",end:"end"},xe=h.start,R=48,O=1,G=R-2*O,D=8,ge=10,j=13,N=D+j,Z=4,q=6,ue=G-N-Z-q,S=8,f=4,b=f,c=8,x=16,y=8,g=4,he=g+x+y,me=g+c+b;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${B}px !important`}},ke=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),$e=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),Le=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),A="#F8F8F8",ze=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:s})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:l,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:l},boxSizing:"border-box",borderRadius:4,backgroundColor:i?A:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:A},"&.Mui-disabled":{opacity:.38},...s&&{display:"none !important"}})),We=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Ae=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Te=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ve=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,maxHeight:a,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:l,minHeight:l,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:l,minHeight:l,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var Ee=styled(Q)(({theme:e})=>({width:"100%",height:a,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Re=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:o,minHeight:o,maxHeight:o,padding:0,lineHeight:`${o}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:o,minHeight:o,padding:0,lineHeight:`${o}px`}})),Oe=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:o,minHeight:o,gap:e.spacing(1)})),Ge=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${o}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),De=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:o,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${o}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:o,padding:0,lineHeight:`${o}px`}})),je=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),Ne=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:s,hasFeedback:p,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,s),C=p?"4px 4px 0 0":"4px",m=V===h.end,P=m?g:f,H=w?`18px ${P}px 6px ${S}px !important`:`0 ${P}px 0 ${S}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:p?`1px solid ${s?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:p?"none":void 0,boxShadow:p?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:m?"flex-end !important":"flex-start !important",textAlign:m?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:b,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:y}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...s&&{border:`1px solid ${I}`},...p&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Ze=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),qe=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function et(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function tt(){return jsx(T,{src:A$1,alt:""})}function ot(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var ie=forwardRef((e,i)=>jsx(ne,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));ie.displayName="SelectChevronIcon";function nt(){return jsx(oe,{size:14,sx:{color:"text.secondary"}})}export{ot as $,y as A,g as B,he as C,me as D,Fe as E,ke as F,$e as G,Le as H,ze as I,We as J,Be as K,Ae as L,Te as M,Ve as N,Y as O,_ as P,Ee as Q,Re as R,Oe as S,Ge as T,De as U,je as V,Ne as W,Ze as X,qe as Y,et as Z,tt as _,u as a,ie as aa,le as b,nt as ba,ae as c,de as d,se as e,z as f,W as g,B as h,pe as i,E as j,ce as k,h as l,xe as m,R as n,O as o,D as p,ge as q,j as r,N as s,Z as t,q as u,ue as v,S as w,b as x,c as y,x as z};
|
|
1
|
+
import {f as f$1,aa}from'./chunk-3LLAL7SZ.js';import {Sc,A as A$1}from'./chunk-FI5H6V55.js';import {forwardRef}from'react';import r from'@mui/material/Box';import oe from'@mui/material/CircularProgress';import ne from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import v from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n="os-shared-Select",u={root:`${n}-root`,field:`${n}-field`,menu:`${n}-menu`,option:`${n}-option`,clear:`${n}-clear`,feedback:`${n}-feedback`,values:`${n}-values`,value:`${n}-value`,valueOverflow:`${n}-valueOverflow`,search:`${n}-search`,summary:`${n}-summary`},le="Search",ae=8,de=8,l=28,a=36,o=17,se=4,z=256,W=272,B=293,pe=8,E={bottom:"bottom",top:"top"},ce=E.bottom,h={start:"start",end:"end"},xe=h.start,R=48,O=1,G=R-2*O,D=8,ge=10,j=13,N=D+j,Z=4,q=6,ue=G-N-Z-q,S=8,f=4,b=f,c=8,x=16,y=8,g=4,he=g+x+y,me=g+c+b;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${B}px !important`}},ke=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),$e=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),Le=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),A="#F8F8F8",ze=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:s})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:l,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:l},boxSizing:"border-box",borderRadius:4,backgroundColor:i?A:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:A},"&.Mui-disabled":{opacity:.38},...s&&{display:"none !important"}})),We=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Ae=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Te=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ve=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,maxHeight:a,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:l,minHeight:l,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:l,minHeight:l,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var Ee=styled(Q)(({theme:e})=>({width:"100%",height:a,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Re=styled(v)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:o,minHeight:o,maxHeight:o,padding:0,lineHeight:`${o}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:o,minHeight:o,padding:0,lineHeight:`${o}px`}})),Oe=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:o,minHeight:o,gap:e.spacing(1)})),Ge=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${o}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),De=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:o,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${o}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:o,padding:0,lineHeight:`${o}px`}})),je=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),Ne=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:s,hasFeedback:p,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,s),C=p?"4px 4px 0 0":"4px",m=V===h.end,P=m?g:f,H=w?`18px ${P}px 6px ${S}px !important`:`0 ${P}px 0 ${S}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:p?`1px solid ${s?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:p?"none":void 0,boxShadow:p?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:m?"flex-end !important":"flex-start !important",textAlign:m?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:b,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:y}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...s&&{border:`1px solid ${I}`},...p&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Ze=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),qe=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function et(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function tt(){return jsx(T,{src:A$1,alt:""})}function ot(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var ie=forwardRef((e,i)=>jsx(ne,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));ie.displayName="SelectChevronIcon";function nt(){return jsx(oe,{size:14,sx:{color:"text.secondary"}})}export{ot as $,y as A,g as B,he as C,me as D,Fe as E,ke as F,$e as G,Le as H,ze as I,We as J,Be as K,Ae as L,Te as M,Ve as N,Y as O,_ as P,Ee as Q,Re as R,Oe as S,Ge as T,De as U,je as V,Ne as W,Ze as X,qe as Y,et as Z,tt as _,u as a,ie as aa,le as b,nt as ba,ae as c,de as d,se as e,z as f,W as g,B as h,pe as i,E as j,ce as k,h as l,xe as m,R as n,O as o,D as p,ge as q,j as r,N as s,Z as t,q as u,ue as v,S as w,b as x,c as y,x as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {P as P$1,O}from'./chunk-
|
|
1
|
+
import {P as P$1,O}from'./chunk-3LLAL7SZ.js';import {Hb}from'./chunk-2V7P76GA.js';import {forwardRef,useMemo,useState,memo}from'react';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a="os-shared-Sidebar",e={root:`${a}-root`,header:`${a}-header`,content:`${a}-content`,footer:`${a}-footer`,link:`${a}-link`,group:`${a}-group`,groupSummary:`${a}-groupSummary`,groupSummaryActive:`${a}-groupSummaryActive`,groupSummaryExpanded:`${a}-groupSummaryExpanded`,groupHeader:`${a}-groupHeader`,groupContent:`${a}-groupContent`,groupItem:`${a}-groupItem`,startAdornment:`${a}-startAdornment`,endAdornment:`${a}-endAdornment`};var G=r=>{let{palette:n}=useTheme();return jsx("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:jsx("path",{d:"M9.97437 5.23633C10.0426 5.23465 10.1087 5.25507 10.1648 5.29395C10.2207 5.33278 10.264 5.3876 10.2888 5.45117C10.3136 5.51487 10.3195 5.5852 10.3064 5.65234C10.2934 5.71873 10.2614 5.77954 10.2146 5.82813L7.23608 9.01172C7.17462 9.07723 7.08968 9.11518 6.99976 9.11523C6.90985 9.11523 6.82492 9.07717 6.76343 9.01172L3.78394 5.8291L3.78491 5.82812C3.73877 5.77985 3.70612 5.71999 3.69312 5.6543C3.68007 5.58802 3.68575 5.51818 3.70972 5.45508C3.7337 5.39201 3.77618 5.33717 3.83081 5.29785C3.88553 5.25857 3.95095 5.23732 4.01831 5.2373C4.0635 5.23736 4.10797 5.24702 4.14917 5.26562C4.18997 5.28407 4.2263 5.31071 4.25659 5.34375L6.99878 8.27246L9.74194 5.34375C9.80179 5.27779 9.88521 5.23858 9.97437 5.23633Z",fill:n.text.textSecondary,stroke:n.text.textSecondary,strokeWidth:"0.204167"})})};var E="linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",H=styled("div")(({theme:r})=>{let{base:n}=r.v2.palette;return {backgroundColor:alpha(n.white,.7),backdropFilter:r.v2.blur[16],width:"100%",position:"sticky",padding:`${r.v2.spacing(8)} ${r.v2.spacing(8)}`,height:"100%",overflow:"hidden",display:"flex",flexDirection:"column",gap:r.v2.spacing(8)}}),L=styled("div")({flexShrink:0}),R=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(4),flex:1,minHeight:0,overflow:"auto"})),P=styled("div")({flexShrink:0}),C={border:"none",width:"100%",textAlign:"left",font:"inherit",cursor:"pointer"},f=styled("span")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),x=styled("span")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:"auto"}),F=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,...r.v2.typography.textVariants.body.small.regular,background:n?E:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n?o.white:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}}),V=styled(P$1)(({theme:r})=>({"&&":{background:"transparent",boxShadow:"none"},border:"none !important",borderRadius:"4px !important",[`& .${O.summary}`]:{padding:0,paddingRight:8,minHeight:"24px",height:"24px","&.Mui-expanded":{minHeight:"24px",height:"24px"},borderRadius:"4px !important",background:"transparent",transition:"none"},[`& .${O.summary}.${e.groupSummaryActive}`]:{backgroundColor:r.v2.palette.base.white},[`& .${O.summary}.${e.groupSummaryExpanded}`]:{backgroundColor:r.v2.palette.base.white},[`& .${O.content}`]:{borderTop:"none",padding:0},[`& .${O.labelContent}`]:{flexGrow:1,minWidth:0}})),D=styled("span",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,...r.v2.typography.textVariants.body.small.regular,background:n?o.white:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4),width:"100%",cursor:"pointer"}}),j=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(4),paddingTop:r.v2.spacing(4)})),M=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,...r.v2.typography.textVariants.body.small.regular,background:n?E:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n?o.white:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}});var $=r=>!!r.sections?.length;function T(r,n){let o=n??r?.[0]?.sections?.[0]?.id??r?.[0]?.id,d=r?.find(c=>c.id===o),u=!d||!$(d),l=u?r?.find(c=>c.sections?.some(y=>y.id===o)):d,g=l?.id??d?.id??o,b=l?u?o:l.sections?.[0]?.id:void 0;return {activeId:o,activeGroupId:g,activeLeafId:b}}var B=forwardRef(({sections:r,activeSectionId:n,onSelect:o,defaultExpandedIds:d,header:u,footer:l,id:g,className:b,sx:c},y)=>{let{activeId:h,activeGroupId:A,activeLeafId:k}=useMemo(()=>T(r,n),[r,n]),[O,W]=useState(()=>Object.fromEntries((d??[]).map(t=>[t,true])));return jsxs(H,{ref:y,id:g,"data-testid":g??"Sidebar",className:Hb(e.root,b),sx:c,children:[u?jsx(L,{className:e.header,children:u}):null,jsx(R,{className:e.content,children:r?.map(t=>{if(!$(t))return jsxs(F,{type:"button",$isActive:h===t.id,"aria-current":h===t.id?"true":void 0,onClick:()=>o?.(t,void 0,[t]),className:e.link,children:[t.startAdornment?jsx(f,{className:e.startAdornment,children:t.startAdornment}):null,t.title,t.endAdornment?jsx(x,{className:e.endAdornment,children:t.endAdornment}):null]},t.id);let I=O[t.id]??t.id===A;return jsx(V,{className:e.group,expanded:I,onChange:i=>W(Z=>({...Z,[t.id]:i})),expandIcon:jsx(G,{}),slotProps:{root:{component:"section"},summary:{className:Hb(e.groupSummary,A===t.id&&e.groupSummaryActive,I&&e.groupSummaryExpanded)}},label:jsxs(D,{$isActive:A===t.id,className:e.groupHeader,children:[t.startAdornment?jsx(f,{className:e.startAdornment,children:t.startAdornment}):null,t.title,t.endAdornment?jsx(x,{className:e.endAdornment,children:t.endAdornment}):null]}),content:jsx(j,{className:e.groupContent,children:t.sections?.map(i=>jsxs(M,{type:"button",$isActive:k===i.id,"aria-current":k===i.id?"true":void 0,onClick:()=>o?.(i,t,[t,i]),className:e.groupItem,children:[i.startAdornment?jsx(f,{className:e.startAdornment,children:i.startAdornment}):null,i.title,i.endAdornment?jsx(x,{className:e.endAdornment,children:i.endAdornment}):null]},`${t.id}-${i.id}`))})},t.id)})}),l?jsx(P,{className:e.footer,children:l}):null]})});B.displayName="Sidebar";var X=memo(B);
|
|
2
2
|
export{e as a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Hb}from'./chunk-2V7P76GA.js';import {forwardRef,memo,useMemo,useState,useRef,useCallback,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useReducedMotion,useMotionValue,animate}from'framer-motion';import $e from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var B="os-shared-ExpandableChip",x={root:`${B}-root`,mainGroup:`${B}-mainGroup`,main:`${B}-main`,adornment:`${B}-adornment`,item:`${B}-item`,peek:`${B}-peek`},p=24,ee=3,te=6,v=5,se=.2,de=.18,pe=1e3,le="default",j={default:{duration:.25,stagger:.04,ease:"easeOut",closeDelay:120,chipPaddingX:8},stacked:{duration:.18,stagger:0,ease:"easeOut",closeDelay:120,chipPaddingX:6}},ce={duration:0,stagger:0};function Ee(e,t,n){let a=j[e],o=t||{},r={duration:o.duration??a.duration,stagger:o.stagger??a.stagger,ease:o.ease??a.ease,closeDelay:o.closeDelay??a.closeDelay};return t===false||n?{...r,...ce}:r}function ue(e,t){return e===t?true:e.length!==t.length?false:e.every((n,a)=>n===t[a])}function xe(e,t){return e.mainWidth===t.mainWidth&&e.startAdornmentWidth===t.startAdornmentWidth&&e.endAdornmentWidth===t.endAdornmentWidth&&ue(e.startWidths,t.startWidths)&&ue(e.endWidths,t.endWidths)}function Ce(e,t){return Math.max(p,Math.ceil(e+t*2+2))}function he(e){let t=[],n=0;for(let a of e)n+=a+ee,t.push(n);return t}function me(e,t){return e==="stacked"?te*t:0}function We({expandFrom:e,variant:t,measurements:n,startSpan:a,endSpan:o}){let{startWidths:r,endWidths:c,startAdornmentWidth:S,endAdornmentWidth:I}=n;return e==="start"?S+a-me(t,r.length):e==="end"?me(t,c.length)-I-o:0}function be({expandFrom:e,variant:t,measurements:n}){let{mainWidth:a,startWidths:o,endWidths:r,startAdornmentWidth:c,endAdornmentWidth:S}=n,I=p,M=te,b=ee,X=t==="stacked",u=he(o),f=he(r),W=u[u.length-1]??0,D=f[f.length-1]??0,i=We({expandFrom:e,variant:t,measurements:n,startSpan:W,endSpan:D}),s=i-c,y=i+a+S,h=o.map((m,l)=>({closedX:X?-M*(l+1):0,openX:s-u[l],width:m,zIndex:o.length-l})),A=r.map((m,l)=>({closedX:X?a+M*(l+1)-I:a-m,openX:y+b+(f[l]-m-b),width:m,zIndex:r.length-l})),H=Math.min(s-W,0),P=Math.max(y+D,a);return {start:h,end:A,mainShiftX:i,openSpan:{left:H-b,width:P-H+b*2}}}var Oe={mainWidth:p,startWidths:[],endWidths:[],startAdornmentWidth:0,endAdornmentWidth:0};function ge({main:e,startItems:t=[],endItems:n=[],startAdornment:a,endAdornment:o,expandFrom:r,variant:c=le,transition:S,open:I,defaultOpen:M=false,onOpenChange:b}){let X=useReducedMotion()??false,u=useMemo(()=>Ee(c,S,X),[c,S,X]),f=j[c],[W,D]=useState(M),i=I!==void 0,s=i?I:W,y=useRef(null),h=useCallback(()=>{y.current&&clearTimeout(y.current),y.current=null;},[]),A=useCallback(d=>{i||D(d),b?.(d);},[i,b]),H=useCallback(()=>{h(),s||A(true);},[h,s,A]),P=useCallback(()=>{h(),y.current=setTimeout(()=>A(false),u.closeDelay);},[h,u.closeDelay,A]);useEffect(()=>h,[h]);let m=useRef(null),l=useRef([]),F=useRef([]),z=useRef(null),U=useRef(null),[N,J]=useState(Oe),g=useCallback(()=>{let d=(L,k)=>Array.from({length:k},(G,_)=>Ce(L[_]?.offsetWidth??0,f.chipPaddingX)),T={mainWidth:m.current?.offsetWidth??p,startWidths:d(l.current,t.length),endWidths:d(F.current,n.length),startAdornmentWidth:a?z.current?.scrollWidth??0:0,endAdornmentWidth:o?U.current?.scrollWidth??0:0};J(L=>xe(L,T)?L:T);},[f.chipPaddingX,t.length,n.length,a,o]);useLayoutEffect(()=>{g();},[g,e,t,n,a,o]),useEffect(()=>{if(typeof ResizeObserver>"u")return;let d=null,T=new ResizeObserver(()=>{d&&cancelAnimationFrame(d),d=requestAnimationFrame(g);});return [m.current,z.current,U.current,...l.current,...F.current].forEach(k=>k&&T.observe(k)),()=>{d&&cancelAnimationFrame(d),T.disconnect();}},[g,t.length,n.length]);let Q=useMemo(()=>be({expandFrom:r,variant:c,measurements:N}),[r,c,N]),O=useMotionValue(0),$=useMotionValue(0),R=u.duration===0?0:se;return useEffect(()=>{let d=animate(O,s?N.startAdornmentWidth:0,{duration:R,ease:"easeOut"});return ()=>d.stop()},[s,N.startAdornmentWidth,O,R]),useEffect(()=>{let d=animate($,s?N.endAdornmentWidth:0,{duration:R,ease:"easeOut"});return ()=>d.stop()},[s,N.endAdornmentWidth,$,R]),{isOpen:s,motion:u,variant:c,chipPaddingX:f.chipPaddingX,handleOpen:H,handleClose:P,layout:Q,mainRef:m,startContentRefs:l,endContentRefs:F,startAdornmentRef:z,endAdornmentRef:U,startAdornmentWidth:O,endAdornmentWidth:$}}var V=e=>typeof e=="string"&&!e.startsWith("$")&&e!=="sx"&&e!=="theme"&&e!=="ownerState"&&e!=="as";function Y(e){let{base:t,border:n,foreground:a}=e.v2.palette;return {boxSizing:"border-box",height:e.v2.spacing(p),minWidth:e.v2.spacing(p),display:"inline-flex",alignItems:"center",justifyContent:"center",border:`${e.v2.spacing(1)} solid ${n.default}`,borderRadius:e.v2.radius(p/2),backgroundColor:t.white,color:a.primary,...e.v2.typography.textVariants.body.medium.regular,lineHeight:1,whiteSpace:"nowrap"}}var _e=styled($e,{shouldForwardProp:V})(({$isOpen:e})=>({position:"relative",display:"flex",alignItems:"center",overflow:"visible",zIndex:e?pe:void 0})),Se=styled("div")({position:"relative",display:"inline-flex",alignItems:"center",height:p}),Ie=styled(motion.div)({position:"absolute",top:0,bottom:0,background:"transparent"}),Ne=styled(motion.div)({position:"relative",display:"inline-flex",alignItems:"center"}),Xe=styled("div",{shouldForwardProp:V})(({theme:e,$paddingX:t,$fuseStart:n,$fuseEnd:a,$zIndex:o})=>{let r=e.v2.radius(p/2);return {...Y(e),position:"relative",zIndex:o,flex:"0 0 auto",paddingInline:e.v2.spacing(t),overflow:"hidden",borderTopLeftRadius:n?0:r,borderBottomLeftRadius:n?0:r,borderTopRightRadius:a?0:r,borderBottomRightRadius:a?0:r,...n&&{borderLeftColor:"transparent"},...a&&{borderRightColor:"transparent"}}}),ne=styled(motion.span,{shouldForwardProp:V})(({theme:e,$side:t})=>{let n=e.v2.radius(p/2),a=t==="start";return {...Y(e),position:"absolute",top:0,zIndex:1,minWidth:0,justifyContent:"flex-start",overflow:"hidden",willChange:"width",...a?{right:"100%",borderRight:"none",borderRadius:`${n} 0 0 ${n}`}:{left:"100%",borderLeft:"none",borderRadius:`0 ${n} ${n} 0`}}}),ae=styled("span")({display:"inline-flex",alignItems:"center",height:"100%",whiteSpace:"nowrap"}),ie=styled(motion.div,{shouldForwardProp:V})(({theme:e,$side:t})=>({...Y(e),position:"absolute",top:0,zIndex:0,pointerEvents:"none",...t==="start"?{left:0}:{right:0}})),Re=styled(motion.div,{shouldForwardProp:V})(({theme:e,$paddingX:t})=>({...Y(e),position:"absolute",top:0,left:0,justifyContent:"flex-start",paddingInline:e.v2.spacing(t),overflow:"hidden"})),Te=styled("span",{shouldForwardProp:V})(({$isHidden:e})=>({display:"inline-flex",alignItems:"center",flex:"none",whiteSpace:"nowrap",visibility:e?"hidden":"visible"}));var Ve=forwardRef(function({main:t,startItems:n=[],endItems:a=[],startAdornment:o,endAdornment:r,variant:c,expandFrom:S="center",transition:I,open:M,defaultOpen:b,onOpenChange:X,id:u,className:f,sx:W},D){let{isOpen:i,motion:s,variant:y,chipPaddingX:h,handleOpen:A,handleClose:H,layout:P,mainRef:m,startContentRefs:l,endContentRefs:F,startAdornmentRef:z,endAdornmentRef:U,startAdornmentWidth:N,endAdornmentWidth:J}=ge({main:t,startItems:n,endItems:a,startAdornment:o,endAdornment:r,variant:c,expandFrom:S,transition:I,open:M,defaultOpen:b,onOpenChange:X}),g=y==="stacked",Q=Math.max(n.length,a.length)+2,O={duration:s.duration===0?0:de,ease:"easeOut"},$=(R,d,T,L)=>d.map((k,G)=>{let _=T[G];if(!_)return null;let Le=g?{x:_.closedX,width:p,opacity:1}:{x:_.closedX,opacity:0},ve=g?{x:_.openX,width:_.width,opacity:1}:{x:_.openX,opacity:1};return jsx(Re,{className:x.item,"data-side":R,$paddingX:h,initial:false,animate:i?ve:Le,transition:{duration:s.duration===0?0:s.duration+G*s.stagger,ease:s.ease},style:{zIndex:_.zIndex,pointerEvents:i?"auto":"none"},children:jsx(Te,{ref:Me=>{L.current[G]=Me;},$isHidden:g&&!i,children:k})},`${R}-${G}`)});return jsx(_e,{ref:D,id:u,"data-testid":u??"ExpandableChip","data-open":i,className:Hb(x.root,f),sx:W,$isOpen:i,onMouseLeave:H,children:jsxs(Se,{children:[i&&jsx(Ie,{onMouseEnter:A,style:{left:P.openSpan.left,width:P.openSpan.width}}),jsxs(Ne,{className:x.mainGroup,initial:false,animate:{x:i?P.mainShiftX:0},transition:{duration:s.duration,ease:s.ease},style:{zIndex:Q},children:[!g&&jsxs(AnimatePresence,{initial:false,children:[n.length>0&&jsx(ie,{className:x.peek,$side:"start",initial:{opacity:0,scale:.95,x:-v+1},animate:i?{opacity:0,scale:.9,x:-v-1}:{opacity:1,scale:1,x:-v},exit:{opacity:0,scale:.95},transition:O},"peek-start"),a.length>0&&jsx(ie,{className:x.peek,$side:"end",initial:{opacity:0,scale:.95,x:v-1},animate:i?{opacity:0,scale:.9,x:v+1}:{opacity:1,scale:1,x:v},exit:{opacity:0,scale:.95},transition:O},"peek-end")]}),o&&jsx(ne,{className:x.adornment,"data-side":"start",$side:"start",initial:false,animate:{opacity:i?1:0},transition:{duration:0},style:{width:N,pointerEvents:i?"auto":"none"},children:jsx(ae,{ref:z,children:o})}),jsx(Xe,{ref:m,className:x.main,$paddingX:h,$fuseStart:i&&!!o,$fuseEnd:i&&!!r,$zIndex:2,onMouseEnter:A,children:t}),r&&jsx(ne,{className:x.adornment,"data-side":"end",$side:"end",initial:false,animate:{opacity:i?1:0},transition:{duration:0},style:{width:J,pointerEvents:i?"auto":"none"},children:jsx(ae,{ref:U,children:r})})]}),$("start",n,P.start,l),$("end",a,P.end,F)]})})}),Fe=memo(Ve);export{x as a,Fe as b};
|