@tap-payments/os-micro-frontend-shared 0.3.119 → 0.3.120-test.1
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/build/_chunks/chunk-2KAW45Y4.js +2 -0
- package/build/_chunks/{chunk-VOOWZL55.js → chunk-3CW2T352.js} +1 -1
- package/build/_chunks/{chunk-VKECM4IP.js → chunk-3VWM3S3B.js} +1 -1
- package/build/_chunks/chunk-42HKBQEF.js +2 -0
- package/build/_chunks/{chunk-6FPYQFPH.js → chunk-744TLPDI.js} +1 -1
- package/build/_chunks/{chunk-RQ5ZSIJX.js → chunk-DWA6JRDZ.js} +1 -1
- package/build/_chunks/{chunk-P5APGUZP.js → chunk-E5ZKSGN3.js} +1 -1
- package/build/_chunks/{chunk-JNEH63T5.js → chunk-H6NKUV6N.js} +1 -1
- package/build/_chunks/chunk-JGEAPDHW.js +1 -0
- package/build/_chunks/{chunk-EKZJZCEY.js → chunk-KTKRO74G.js} +1 -1
- package/build/_chunks/{chunk-Q345NKIZ.js → chunk-NEZBBBPJ.js} +1 -1
- package/build/_chunks/chunk-NIIEPAQ5.js +2 -0
- package/build/_chunks/{chunk-ANTAEEHJ.js → chunk-OXIPQ5HS.js} +1 -1
- package/build/_chunks/chunk-P6UBW7IS.js +1 -0
- package/build/_chunks/{chunk-CXICQWGC.js → chunk-QBNPVJXG.js} +1 -1
- package/build/_chunks/{chunk-D7B4PKKG.js → chunk-SE7IBNXR.js} +1 -1
- package/build/_chunks/chunk-TTJGYZV6.js +1 -0
- package/build/_chunks/{chunk-HQMITYSZ.js → chunk-U2HELEYP.js} +1 -1
- package/build/_chunks/{chunk-OHACT7ZD.js → chunk-UFXSJUWC.js} +1 -1
- package/build/_chunks/{chunk-QMYF2D76.js → chunk-VWSQS7GB.js} +1 -1
- package/build/_chunks/chunk-WO5OCZPF.js +1 -0
- package/build/_chunks/{chunk-YSIUO3AT.js → chunk-ZKBYUELX.js} +1 -1
- package/build/_chunks/chunk-ZONDSLTR.js +1 -0
- package/build/components/Accordion/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +264 -0
- package/build/components/ImageWrapper/index.d.ts +1 -0
- package/build/components/ImageWrapper/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LazyImage/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/{CountBadge/CountBadgeAnimated.d.ts → PaymentCountBadge/PaymentCountBadge.d.ts} +1 -1
- package/build/components/PaymentCountBadge/index.d.ts +1 -0
- package/build/components/PaymentCountBadge/index.js +1 -0
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/ScrollLoader/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/Skeleton/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +2 -2
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +18 -0
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +18 -0
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +3 -2
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -2
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/appEvents.d.ts +25 -19
- package/build/types/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +3 -3
- package/build/_chunks/chunk-7DRHV6TP.js +0 -1
- package/build/_chunks/chunk-7V2CGUGW.js +0 -1
- package/build/_chunks/chunk-IUFKJCKO.js +0 -1
- package/build/_chunks/chunk-OIZ25T4T.js +0 -1
- package/build/_chunks/chunk-U53U2SFP.js +0 -2
- package/build/_chunks/chunk-WN5DXLHY.js +0 -1
- package/build/_chunks/chunk-XBZHOUSF.js +0 -2
- package/build/components/CountBadge/CountBadge.d.ts +0 -6
- package/build/components/CountBadge/index.d.ts +0 -5
- package/build/components/CountBadge/index.js +0 -1
- package/build/components/CountBadge/style.d.ts +0 -284
- package/build/components/CountBadge/type.d.ts +0 -21
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {yc,lc,Ia as Ia$1,xc,ob}from'./chunk-6PFNZ34W.js';import {ra as ra$1,ta as ta$1,x,Mf,Qf,Nf,Of}from'./chunk-YEPPVZXT.js';import {forwardRef,memo,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Y from'@mui/material/Box';import ha,{circularProgressClasses}from'@mui/material/CircularProgress';import xa from'@mui/material/ButtonBase';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Ia from'@mui/material/Checkbox';import wa from'@mui/material/FormControlLabel';import $a from'@mui/material/Switch';import Da from'@mui/material/Typography';import Oa from'@mui/material/Radio';import es,{tooltipClasses}from'@mui/material/Tooltip';import ns from'@mui/material/Skeleton';import cs from'@mui/material/Avatar';import Cs from'@mui/material/Divider';import Bs from'@mui/material/Collapse';import {createPortal}from'react-dom';import sn from'@mui/material/Slider';import cn from'@mui/material/FormControl';import fn from'@mui/material/InputLabel';import un from'@mui/material/Input';import bn from'@mui/material/InputBase';import Bn from'@mui/material/Accordion';import In from'@mui/material/AccordionDetails';import wn from'@mui/material/AccordionSummary';import Fn from'@mui/material/Popper';import jn from'@mui/material/DialogActions';import Un from'@mui/material/DialogTitle';import Wn from'@mui/material/Dialog';import Hn from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import bi from'@mui/material/Stack';var z="os-shared-Button",k={root:`${z}-root`,content:`${z}-content`,startIcon:`${z}-startIcon`,endIcon:`${z}-endIcon`,loading:`${z}-loading`,loadingSpinner:`${z}-loadingSpinner`},Jo={sm:{height:24,padding:"8px 16px",fontSize:"10px",fontWeight:600},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px",fontWeight:700},lg:{height:40,padding:"8px 32px",fontSize:"12px",fontWeight:700}},Qo={sm:12,md:12,lg:14};var oe=styled(xa,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...Jo[t],...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...e==="primary"&&{background:o.palette.info.dark,color:o.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...e==="secondary"&&{backgroundColor:o.palette.common.white,color:o.palette.grey[700],border:`1px solid ${o.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:o.palette.grey[100]}},...e==="ghost"&&{backgroundColor:"transparent",color:o.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:o.palette.info.light}},...e==="danger"&&{backgroundColor:o.palette.error.main,color:o.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:o.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var te=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:l=false,disabled:i,className:p,sx:m,...d},c)=>jsxs(oe,{ref:c,className:yc(k.root,p),$variant:e,$size:t,$fullWidth:l,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:m,...d,children:[jsxs(Y,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Y,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),o,s&&jsx(Y,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Y,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(ha,{className:k.loadingSpinner,size:Qo[t],color:"inherit"})})]}));te.displayName="Button";var re=memo(te);var ba="os-shared-Icon",J={root:`${ba}-root`};var ae=styled("img")(({theme:o})=>({width:o.spacing(2),height:o.spacing(2),verticalAlign:"middle",flexShrink:0}));var se=forwardRef(({className:o,sx:e,...t},r)=>jsx(ae,{className:yc(J.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));se.displayName="Icon";var ne=memo(se);var Bo="os-shared-Checkbox",T={root:`${Bo}-root`,control:`${Bo}-control`,label:`${Bo}-label`};var ie=({disabled:o})=>jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:"#1F88D0"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:o?"#D2D5D8":"white"})]}),le=({disabled:o})=>jsx("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:o?"#FAFBFB":"white",stroke:o?"#D2D5D8":"#8C9196",strokeWidth:"1.2"})}),pe=({disabled:o})=>jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:"#1F88D0"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:o?"#D2D5D8":"#FAFBFB"})]});var ce=styled(Ia)(({theme:o})=>({padding:o.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),fe=styled(wa)(({theme:o})=>({marginLeft:0,gap:o.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:o.palette.grey[700]}}));var ue=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},l)=>{let i=jsx(ce,{ref:l,disableRipple:true,disabled:t,checkedIcon:jsx(ie,{disabled:t}),icon:jsx(le,{disabled:t}),indeterminateIcon:jsx(pe,{disabled:t}),"data-testid":"Checkbox",className:yc(o?T.control:T.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(fe,{className:yc(T.root,a),sx:r,control:i,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:T.label}}}):i});ue.displayName="Checkbox";var xe=memo(ue);var va="os-shared-Switch",Q={root:`${va}-root`};var ye=styled($a)(({theme:o})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:o.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:o.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:o.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:o.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:o.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:o.transitions.create(["background-color"],{duration:500})}}));var ge=forwardRef(({className:o,sx:e,...t},r)=>jsx(ye,{ref:r,className:yc(Q.root,o),sx:e,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));ge.displayName="Switch";var Ce=memo(ge);var Ra="os-shared-Typography",oo={root:`${Ra}-root`},he={regular:400,medium:500,semibold:600,bold:700};var be=styled(Da)(({theme:o})=>({color:o.palette.text.primary}));var Ne=forwardRef(({variant:o="body1",weight:e,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...l},i)=>{let p=e!==void 0?typeof e=="number"?e:he[e]:void 0,m=Array.isArray(s)?s:[s];return jsx(be,{ref:i,className:yc(oo.root,a),variant:o,sx:[p!==void 0&&{fontWeight:p},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...m],"data-testid":"Typography",...l})});Ne.displayName="Typography";var Se=memo(Ne);var Va="os-shared-RadioButton",eo={root:`${Va}-root`},R={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},ke={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var Ka=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),Be=styled(Ka)({backgroundColor:R.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:R.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),Ie=styled(Oa,{shouldForwardProp:o=>o!=="$iconSize"&&o!=="$checkedColor"&&o!=="$disabledColor"&&o!=="$hoverColor"&&o!=="$maxWidth"})(({$iconSize:o,$checkedColor:e,$disabledColor:t,$hoverColor:r,$maxWidth:a})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:a,cursor:"pointer",color:R.color,"&.Mui-checked":{color:e??R.checkedColor},...r&&{"&:hover":{backgroundColor:"transparent",color:r}},"&.Mui-disabled":{color:t??R.disabledColor}}));function we(o="sm"){return ke[o]}var Te=forwardRef(({size:o="sm",customCheckedIcon:e,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:l,sx:i,disableRipple:p=true,...m},d)=>{let c=we(o);return jsx(Ie,{ref:d,className:yc(eo.root,l),"data-testid":"RadioButton",size:c.muiSize,disableRipple:p,checkedIcon:e??jsx(Be,{}),$iconSize:s??c.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:c.maxWidth,sx:i,...m})});Te.displayName="RadioButton";var ve=memo(Te);var to="os-shared-CircularProgress",v={root:`${to}-root`,progress:`${to}-progress`,labelOverlay:`${to}-labelOverlay`,labelText:`${to}-labelText`};var Me=styled(ha)(({theme:o})=>({color:o.palette.common.blue??o.palette.primary.main,background:alpha(o.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Fe=styled(Y)(()=>({position:"relative",display:"inline-flex"})),Le=styled(Y)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ze=styled(Da)(()=>({fontSize:"14px",fontWeight:700,color:"#3B4152"}));var Re=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},l)=>{let i=o==="determinate"&&e;return jsxs(Fe,{className:yc(v.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Me,{ref:l,variant:o,value:t,className:v.progress,...s}),i&&jsx(Le,{className:v.labelOverlay,children:jsx(ze,{className:v.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Re.displayName="CircularProgress";var De=memo(Re);var Qa="os-shared-Tooltip",ao={wrapper:`${Qa}-wrapper`};var We=styled(({className:o,...e})=>createElement(es,{...e,classes:{popper:o}}))(({theme:o})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(o.palette.text.primary,.13)}`},color:o.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:o.palette.common.white,color:o.palette.text.secondary,boxShadow:o.shadows[1],fontSize:12,border:`0.97px solid ${alpha(o.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function Ve({className:o,title:e,placement:t="top",children:r,wrapperProps:a,sx:s,...l}){return jsx(We,{className:o,title:e,placement:t,arrow:true,sx:s,...l,children:jsx(Y,{display:"flex",alignItems:"center",className:ao.wrapper,...a,children:r})})}Ve.displayName="Tooltip";var Oe=memo(Ve);var ss="os-shared-Skeleton",so={root:`${ss}-root`},Ke="rounded",je=16;var Ue=styled(ns)(()=>({}));var Ze=forwardRef(({className:o,sx:e,variant:t=Ke,height:r=je,...a},s)=>jsx(Ue,{ref:s,className:yc(so.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));Ze.displayName="Skeleton";var _e=memo(Ze);var ds="os-shared-Avatar",no={root:`${ds}-root`},Ge={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var Xe=styled(cs,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e="md"})=>{let{dimension:t,fontSize:r}=Ge[e];return {width:t,height:t,fontSize:r,fontWeight:600,backgroundColor:o.palette.info.dark,color:o.palette.common.white}});var Ye=forwardRef(({className:o,sx:e,size:t="md",shape:r="circular",...a},s)=>jsx(Xe,{ref:s,className:yc(no.root,o),sx:e,"data-testid":"Avatar",$size:t,variant:r,...a}));Ye.displayName="Avatar";var qe=memo(Ye);var gs="os-shared-Divider",io={root:`${gs}-root`};var Je=styled(Cs)(()=>({}));var Qe=forwardRef(({className:o,sx:e,orientation:t="horizontal",...r},a)=>jsx(Je,{ref:a,className:yc(io.root,o),sx:e,"data-testid":"Divider",orientation:t,...r}));Qe.displayName="Divider";var ot=memo(Qe);var ks="os-shared-Collapse",lo={root:`${ks}-root`},et=true,tt=300;var rt=styled(Bs)(()=>({}));var at=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=et,timeout:a=tt,...s},l)=>jsx(rt,{ref:l,className:yc(lo.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));at.displayName="Collapse";var st=memo(at);var vs="os-shared-Badge",po={root:`${vs}-root`},nt={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503",red:"#FF0000"},it=["primary","secondary","neutral","dark"];var Fs={default:o=>o.palette.info.main,inactive:o=>o.palette.grey[100],active:o=>alpha(o.palette.text.primary,.1),dark:o=>o.palette.info.dark},Ls={default:o=>o.palette.common.white,inactive:o=>o.palette.text.primary,active:o=>o.palette.common.white,dark:o=>o.palette.common.white};function zs(o,e){let t=nt[o];return t||(Fs[o]?.(e)??e.palette.common.white)}function Rs(o,e){return it.includes(o)?e.palette.common.white:Ls[o]?.(e)??e.palette.common.white}var lt=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?o.spacing(.5):o.spacing(2),backgroundColor:zs(e,o),color:Rs(e,o),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var pt=forwardRef(({className:o,sx:e,color:t="default",compact:r,round:a,pointer:s,children:l,...i},p)=>jsx(lt,{ref:p,className:yc(po.root,o),sx:e,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:l}));pt.displayName="Badge";var mt=memo(pt);var Ws="os-shared-Backdrop",mo={root:`${Ws}-root`};var dt=styled(Y)(({theme:o})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(o.palette.common.black,.3)}));var ct=forwardRef(({className:o,sx:e,open:t=true,onClose:r,onClick:a,...s},l)=>{if(!t)return null;let i=p=>{r?.(),a?.(p);};return createPortal(jsx(dt,{ref:l,className:yc(mo.root,o),sx:e,"data-testid":"Backdrop",onClick:i,...s}),document.body)});ct.displayName="Backdrop";var ft=memo(ct);var co="os-shared-CopyButton",I={root:`${co}-root`,icon:`${co}-icon`,copyIcon:`${co}-copyIcon`,copiedIcon:`${co}-copiedIcon`},ut=2e3,xt=200,yt=ra$1,gt=ta$1;var ht=styled("span")({position:"relative",display:"inline-flex",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Po=styled("img",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"contain",pointerEvents:"none",opacity:o?1:0,transition:`opacity ${xt}ms ease`}));var Nt=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=ut,onClick:a,...s},l)=>{let[i,p]=useState(false),m=d=>{d.stopPropagation(),ob(t),p(true),setTimeout(()=>p(false),r),a?.(d);};return jsxs(ht,{ref:l,className:yc(I.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:m,...s,children:[jsx(Po,{className:yc(I.icon,I.copyIcon),src:yt,alt:"copy",$visible:!i}),jsx(Po,{className:yc(I.icon,I.copiedIcon),src:gt,alt:"copied",$visible:i})]})});Nt.displayName="CopyButton";var St=memo(Nt);var To="os-shared-ProgressBar",D={root:`${To}-root`,fill:`${To}-fill`,text:`${To}-text`};var Bt=styled(Y,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>({width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:o.palette.background.gradient?.darkShadedBlue,display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?"2px":"0px",...e===0&&{background:"#20232B1A"},...t&&{minWidth:e>=10?"40px":"36px"}})),It=styled(Y,{shouldForwardProp:o=>o!=="$value"})(({$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:"#20232B1A",borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:"#20232B00"}})),wt=styled(Da,{shouldForwardProp:o=>o!=="$value"})(({$value:o})=>({fontSize:"8px",fontWeight:700,color:"#FFF",padding:"2px 4px",...o===0&&{color:"#8D8D9480"}}));var Tt=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Bt,{ref:r,className:yc(D.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(It,{className:D.fill,$value:t,children:jsxs(wt,{className:D.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Tt.displayName="ProgressBar";var vt=memo(Tt);var fo="os-shared-Chip",w={root:`${fo}-root`,text:`${fo}-text`,copyButton:`${fo}-copyButton`,icon:`${fo}-icon`},$t=2e3,Mt=ra$1,Ft=ta$1;var uo=styled(Y,{shouldForwardProp:o=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?o.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper,...e==="text"&&{padding:`${o.spacing(.75)} ${o.spacing(1)}`,minHeight:"30px"},...e==="circular"&&{minHeight:24,minWidth:24,padding:o.spacing(.5),aspectRatio:"1 / 1"},...e==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${o.spacing(.25)} ${o.spacing(.75)}`},...r&&{boxShadow:"white 7px 0px 8px 2px"},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Mo=styled(Y)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),zt=styled("img",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({width:12,height:12,flexShrink:0,cursor:"pointer",objectFit:"contain",opacity:o?1:.6,transition:"opacity 0.15s ease","&:hover":{opacity:1}}));var Dt=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:l=false,copyText:i,unknownText:p="Unknown",disableAnimation:m=false,...d},c)=>{let[u,x]=useState(false),g=y=>{y.stopPropagation(),i&&(ob(i),x(true),setTimeout(()=>x(false),$t));},C={$variant:a,$hasIcon:r!=null,$isSelected:l,$disableAnimation:m},f=yc(w.root,o,`CustomVariant_${a}`),S=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(e)?e:e?[e]:[]];return t?i?jsxs(uo,{ref:c,className:f,sx:[{gap:"4px"},...S],"data-testid":"Chip",...C,...d,children:[jsx(Mo,{className:w.text,"data-is-arabic":typeof t=="string"&&lc(t),children:t}),jsx(zt,{className:w.copyButton,src:u?Ft:Mt,alt:u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g})]}):jsxs(uo,{ref:c,className:f,sx:S,"data-testid":"Chip",...C,...d,children:[r!=null&&jsx("span",{className:w.icon,children:r}),jsx(Mo,{className:w.text,children:t})]}):jsx(uo,{className:f,sx:S,"data-testid":"Chip",...C,...d,children:p})});Dt.displayName="Chip";var At=memo(Dt);var an="os-shared-Slider",xo={root:`${an}-root`},Fo=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");var Et=styled(sn)(({theme:o})=>({color:o.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.palette.common.white,border:"none",backgroundImage:`url(${x})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",boxShadow:Fo,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Fo}}}));var Wt=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:l,onChange:i,...p},m)=>{let d=useCallback((c,u)=>{i(u);},[i]);return jsx(Et,{ref:m,className:yc(xo.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:l,onChange:d,...p})});Wt.displayName="Slider";var Ht=memo(Wt);var Lo="os-shared-Input",A={root:`${Lo}-root`,label:`${Lo}-label`,input:`${Lo}-input`},Vt={sm:28,md:32,labelled:40},Ot=["e","E","+","-"],Kt=/^[0-9.]$/,jt=Ia$1();var Ut=(o,e)=>Vt[o?"labelled":e],Zt=styled(un,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>({height:Ut(e,r),padding:e?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:500,color:o.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:o.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:o.palette.grey[700],fontWeight:400,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.palette.text.primary,caretColor:o.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),_t=styled(fn)(({theme:o})=>({fontSize:"11px",color:`${o.palette.grey[700]} !important`})),Gt=styled(cn,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:Ut(a,s),margin:0,border:`1px solid ${t?o.palette.error.main:o.palette.divider}`,borderRadius:"4px",backgroundColor:e?o.palette.grey[100]:o.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?o.palette.error.main:o.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:o.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${o.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var Yt=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:l=false,type:i,id:p,className:m,sx:d,onKeyDown:c,onWheel:u,...x},g)=>{let C=!!o,f=i==="number",N=y=>{let L=y.metaKey||y.ctrlKey||y.altKey,ko=y.key.length===1;(Ot.includes(y.key)||jt&&ko&&!L&&!Kt.test(y.key))&&y.preventDefault(),c?.(y);},S=y=>{y.target instanceof HTMLElement&&y.target.blur(),u?.(y);};return jsxs(Gt,{className:yc(A.root,m),sx:d,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:e,children:[C&&jsx(_t,{className:A.label,htmlFor:p,children:o}),jsx(Zt,{id:p,inputRef:g,className:A.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:l,$size:e,onKeyDown:f?N:c,onWheel:f?S:u,...x})]})});Yt.displayName="Input";var qt=memo(Yt);var Ro="os-shared-Textarea",E={root:`${Ro}-root`,label:`${Ro}-label`,textarea:`${Ro}-textarea`},Do=20;var Jt=styled(bn,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:e?"8px":"8px 12px",fontSize:"11px",fontWeight:500,lineHeight:1.5,color:o.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:o.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Do,60)}px`,padding:0},"& textarea::placeholder":{color:o.palette.grey[700],fontWeight:400,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:o.palette.text.primary,caretColor:o.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),Qt=styled(fn)(({theme:o})=>({fontSize:"11px",color:`${o.palette.grey[700]} !important`})),or=styled(cn,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Do:void 0,margin:0,border:`1px solid ${t?o.palette.error.main:o.palette.divider}`,borderRadius:"4px",backgroundColor:e?o.palette.grey[100]:o.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?o.palette.error.main:o.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:o.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${o.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var tr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:l,id:i,className:p,sx:m,...d},c)=>{let u=!!o;return jsxs(or,{className:yc(E.root,p),sx:m,error:e,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:u,$minRows:s,children:[u&&jsx(Qt,{className:E.label,htmlFor:i,children:o}),jsx(Jt,{id:i,inputRef:c,className:E.textarea,multiline:true,minRows:s,maxRows:l,disabled:t,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:u,$minRows:s,...d})]})});tr.displayName="Textarea";var rr=memo(tr);var $="os-shared-Accordion",b={root:`${$}-root`,summary:`${$}-summary`,content:`${$}-content`,labelStartAdornment:`${$}-labelStartAdornment`,labelContent:`${$}-labelContent`,labelEndAdornment:`${$}-labelEndAdornment`,expandIcon:`${$}-expandIcon`};var sr=jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})});var ir=styled(Bn)(({theme:o,square:e})=>({overflow:"hidden",border:`1px solid ${o.palette.divider}`,...!e&&{borderRadius:o.shape.borderRadius},margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),lr=styled(wn)(({theme:o})=>({background:o.palette.grey[50],minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),pr=styled(In)(({theme:o})=>({padding:0,borderTop:`1px solid ${o.palette.divider}`})),mr=styled(Y)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),dr=styled(Y)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var ur=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:l,slotProps:i={},disabled:p=false,expandIcon:m,className:d,sx:c,...u},x)=>{let g=o!==void 0,[C,f]=useState(e),N=g?o:C,S=(wi,jo)=>{g||f(jo),t?.(jo);},{showArrow:y=true,...L}=i.label??{},{className:ko,sx:da,...ca}=i.root??{},fa=m??(y?jsx(mr,{component:"span",className:b.expandIcon,children:sr}):null),ua=jsxs(Fragment,{children:[s!=null&&jsx(Y,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:xc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(dr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),l!=null&&jsx(Y,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:xc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:l})]});return jsxs(ir,{ref:x,"data-testid":"Accordion",disabled:p,expanded:N,onChange:S,className:yc(b.root,d,ko),sx:xc(c??{},da),...ca,...u,children:[jsx(lr,{className:b.summary,expandIcon:fa,"aria-expanded":N,...L,children:ua}),jsx(pr,{className:b.content,...i.content,children:a})]})});ur.displayName="Accordion";var xr=memo(ur);var yr="os-shared-Menu",U={popper:`${yr}-popper`,panel:`${yr}-panel`},gr=12;var hr=styled(Fn)({}),br=styled(Y,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>({borderRadius:o.spacing(.5),background:o.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:o.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o.palette.divider}`},"&::after":{content:e?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${o.palette.common.white} 100%)`}}));var Sr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:l,sx:i,...p},m)=>{let[d,c]=useState(false),x=useMemo(()=>Children.count(t),[t])>gr&&d,{onScroll:g,className:C,sx:f,...N}=s??{},S=useCallback(L=>{c((L.currentTarget.scrollTop??0)>0),g?.(L);},[g]),y=yc(U.panel,C,"MuiPopper-dropdown");return jsx(hr,{ref:m,className:yc(U.popper,l),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(br,{$showShadow:x,onScroll:S,className:y,sx:xc(i??{},f),...N,children:t})})});Sr.displayName="Menu";var kr=memo(Sr);var yo="os-shared-Dialog",M={root:`${yo}-root`,title:`${yo}-title`,content:`${yo}-content`,actions:`${yo}-actions`};var Ir=styled(Wn)(({theme:o})=>({"& .MuiDialog-paper":{boxShadow:o.shadows[13],borderRadius:o.spacing(1)},"& .MuiModal-backdrop":{background:alpha(o.palette.common.black,.2)}})),wr=styled(Hn)(({theme:o})=>({padding:o.spacing(2)}));var Pr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,className:s,sx:l,...i},p)=>jsxs(Ir,{ref:p,"data-testid":"Dialog",open:a,onClose:r,className:yc(M.root,s),sx:l,...i,children:[o&&jsx(Un,{className:M.title,children:o}),jsx(wr,{className:M.content,children:t}),e&&jsx(jn,{className:M.actions,children:e})]}));Pr.displayName="Dialog";var Tr=memo(Pr);var go="os-shared-MenuItem",P={root:`${go}-root`,indicator:`${go}-indicator`,content:`${go}-content`,disabled:`${go}-disabled`},F={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var vr=jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#1F88D0"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:"white"})]}),$r=jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),Mr=jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:"#1F88D0",stroke:"#1F88D0",strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]});var zr=styled(Y,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>({padding:o.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",opacity:e?.5:1,color:o.palette.text.primary})),Wo=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Yn(o,e){return e?F.indeterminate:o?F.checked:F.unchecked}var qn={[F.unchecked]:$r,[F.checked]:vr,[F.indeterminate]:Mr};function Jn(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(Wo,{className:P.indicator,"aria-hidden":true,children:o});let r=Yn(e,t);return jsx(Wo,{className:P.indicator,"aria-hidden":true,children:qn[r]})}var Rr=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:l,sx:i,...p},m)=>{let d=yc(P.root,"menu-item",e&&P.disabled,l);return jsxs(zr,{ref:m,"data-testid":"MenuItem",className:d,sx:i,onClick:e?void 0:a,$isDisabled:e,...p,children:[Jn(r,o,t),jsx("span",{className:P.content,children:s})]})});Rr.displayName="MenuItem";var Dr=memo(Rr);var Ar="os-shared-ToggleButtons",Z={root:`${Ar}-root`,button:`${Ar}-button`};var Hr=styled(Y)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),ei=o=>({backgroundColor:o.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(o.palette.common.black,.2)}`}),Vr=styled(Y,{shouldForwardProp:o=>o!=="$isActive"})(({theme:o,$isActive:e=false})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...e?ei(o):{backgroundColor:"transparent",boxShadow:"none"}}));function Kr({options:o,activeKey:e,onChange:t,containerProps:r,buttonProps:a,id:s,className:l,sx:i},p){let{className:m,sx:d,...c}=r??{},u=yc(Z.root,l,m);return jsx(Hr,{ref:p,id:s,"data-testid":"ToggleButtons",className:u,sx:xc(i??{},d),...c,children:o.map(x=>jsx(Vr,{className:Z.button,$isActive:e===x.key,onClick:()=>t(x.key),...a,children:x.content},x.key))})}var ai=forwardRef(Kr);Kr.displayName="ToggleButtons";var jr=memo(ai);var si="os-shared-LazyImage",Co={root:`${si}-root`},Ur={display:"flex",justifyContent:"center",alignItems:"center"},ho={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Zr=styled(Y)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function bo(o){return o!=null&&o in ho}var fi=LazyLoadImage,Gr=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...l},i)=>{let[p,m]=useState(bo(o));if(useEffect(()=>{if(!bo(o)){m(false);return}m(true),ho[o]().finally(()=>{m(false);});},[o]),p)return null;let{className:d,sx:c,style:u,...x}=e??{},g=bo(o)||!!s||u!=null;return jsx(Zr,{component:"span",...x,className:yc(Co.root,d??r),sx:c!=null?xc(a??{},c):a,children:jsx(fi,{...l,ref:i,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...Ur,...u}}:void 0})})});Gr.displayName="LazyImage";var Xr=memo(Gr);var Vo="os-shared-FieldFeedback",V={root:`${Vo}-root`,icon:`${Vo}-icon`,message:`${Vo}-message`},ui={error:Of,warning:Nf,success:Qf,info:Mf};function Yr(o){return ui[o]}function qr(o,e){return {warning:{backgroundColor:alpha(o.palette.custom[500],.15),textColor:o.palette.custom[500]},success:{backgroundColor:alpha(o.palette.success.dark,.15),textColor:o.palette.success.dark},info:{backgroundColor:alpha(o.palette.info.dark,.12),textColor:o.palette.info.dark},error:{backgroundColor:alpha(o.palette.error.main,.15),textColor:o.palette.error.main}}[e]}var Jr=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t}=qr(o,e);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),Qr=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=qr(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),oa=styled("img")({width:12,height:12,flexShrink:0,marginTop:"2px",objectFit:"contain"});function gi(o){return o!=null&&o!==""}var ta=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!gi(e))return null;let l=o;return jsxs(Jr,{ref:s,"data-testid":"FieldFeedback",className:yc(V.root,r),sx:a,$feedbackType:l,children:[t??jsx(oa,{className:V.icon,src:Yr(l),alt:""}),jsx(Qr,{className:V.message,$feedbackType:l,children:e})]})});ta.displayName="FieldFeedback";var ra=memo(ta);var hi="os-shared-ScrollLoader",So={root:`${hi}-root`},aa=50;var sa=styled(bi)({overflow:"auto",height:"100%",maxHeight:"100%"});function Ko(o,e=aa){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var pa=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:l,id:i,...p},m)=>{let[d,c]=useState(false),u=useRef(o),x=useRef(null);u.current=o;let g=useCallback(()=>{e&&!r&&u.current();},[e,r]),C=useCallback(()=>{let f=x.current;f&&Ko(f)&&g();},[g]);return useEffect(()=>{let f=x.current;if(f)return f.addEventListener("scroll",C),()=>f.removeEventListener("scroll",C)},[C]),useEffect(()=>{let f=x.current;if(!f||t||d)return;let N=window.setTimeout(()=>{c(true),Ko(f)&&g();},1e3);return ()=>window.clearTimeout(N)},[t,g,d]),jsx(sa,{ref:f=>{x.current=f,typeof m=="function"?m(f):m&&(m.current=f);},id:i,"data-testid":"ScrollLoader",className:yc(So.root,s),sx:l,...p,children:a})});pa.displayName="ScrollLoader";var ma=memo(pa);
|
|
2
|
+
export{ra as $,mo as A,ft as B,I as C,St as D,D as E,vt as F,w as G,At as H,xo as I,Ht as J,A as K,qt as L,E as M,rr as N,b as O,xr as P,U as Q,kr as R,M as S,Tr as T,P as U,Dr as V,Z as W,jr as X,Co as Y,Xr as Z,V as _,k as a,So as aa,re as b,ma as ba,J as c,ne as d,T as e,xe as f,Q as g,Ce as h,oo as i,Se as j,eo as k,ve as l,v as m,De as n,ao as o,Oe as p,so as q,_e as r,no as s,qe as t,io as u,ot as v,lo as w,st as x,po as y,mt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-VXLOOVIX.js';import {a as a$3}from'./chunk-IGQDCGU7.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-VXLOOVIX.js';import {a as a$3}from'./chunk-IGQDCGU7.js';import {a as a$1}from'./chunk-ENS6X2R3.js';import {a}from'./chunk-GNY2VGGW.js';import {Mc}from'./chunk-6PFNZ34W.js';import {Pc}from'./chunk-YEPPVZXT.js';import {useId,useState,useCallback,useMemo,createElement}from'react';import c from'@mui/material/Box';import ne from'@mui/material/Typography';import O from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import ee from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var xe=styled(a)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"})),fe=styled(a)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200})),Se=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),D=styled(O)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}})),ge=styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}})),F=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),Ce=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),Ie=styled(c)(({theme:e})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),g=styled(a)(({theme:e,selected:n})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...n&&{backgroundColor:"#F8F8F8"}}));var te="M4.83332 0C2.16987 0 0 2.16988 0 4.83334C0 7.4968 2.16987 9.66668 4.83332 9.66668C5.98544 9.66668 7.04455 9.2597 7.87628 8.58335L11.1465 11.8535C11.1925 11.9015 11.2477 11.9398 11.3088 11.9662C11.3698 11.9926 11.4356 12.0066 11.5021 12.0072C11.5686 12.0079 11.6346 11.9953 11.6962 11.9702C11.7578 11.945 11.8137 11.9078 11.8607 11.8608C11.9078 11.8138 11.945 11.7578 11.9701 11.6962C11.9953 11.6346 12.0079 11.5686 12.0072 11.5021C12.0065 11.4356 11.9926 11.3699 11.9662 11.3088C11.9398 11.2478 11.9015 11.1926 11.8535 11.1465L8.58331 7.87632C9.25966 7.04458 9.66664 5.98546 9.66664 4.83334C9.66664 2.16988 7.49677 0 4.83332 0ZM4.83332 1C6.95633 1 8.66665 2.71032 8.66665 4.83334C8.66665 5.86755 8.25871 6.80192 7.59699 7.49025C7.5562 7.52023 7.5202 7.55623 7.49022 7.59702C6.80189 8.25875 5.86752 8.66668 4.83332 8.66668C2.71031 8.66668 0.999997 6.95636 0.999997 4.83334C0.999997 2.71032 2.71031 1 4.83332 1Z";function oe({size:e=12,sx:n,className:r,...d}){return jsx(ee,{viewBox:"0 0 12 12",inheritViewBox:true,className:`${r??""} MUISvgIcon__search-icon`,sx:{width:e,height:e,color:"text.primary",...n},...d,children:jsx("path",{d:te,fill:"currentColor"})})}var N=oe;function pe({options:e,onChangeOption:n,selectedOption:r,placeholder:d,label:A,isLoading:R,renderOption:C,iconUrl:h,disabled:u,onClearValue:m,slotProps:V={},hideSelectedCheckmark:$,listWrapperSx:Z={},name:U,...q}){let G=Mc(useId(),"select-with-search"),{selectInput:I={},searchInput:J={},dropdownContainer:v={},item:b={}}=V,[w,y]=useState(null),[a,x]=useState(""),K=useCallback(()=>{m!==void 0?m():n(null);},[m,n]),f=!!w,Q=t=>{u||y(f?null:t.currentTarget);},S=()=>{y(null),x("");},X=R?jsx(CircularProgress,{size:16}):jsx(N,{onClick:()=>{a&&x("");},role:"button"}),W=useMemo(()=>a?e.filter(t=>{let p=t?.label?.toLowerCase(),j=t?.value?.toLowerCase();return p?.includes(a.toLowerCase())||j?.includes(a.toLowerCase())}):e,[e,a]),Y=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:h,alt:"icon",sx:{maxWidth:12,height:12}})}),[h]);return jsx(a$2,{id:G,"data-testid":"SelectWithSearch",disabled:u,open:f,anchorEl:w,onOpen:Q,onClose:S,hasValue:!!r?.value,onClear:K,trigger:jsx(a$3,{className:"SelectWithSearch_input",name:U,placeholder:"Please Select",label:A,sx:{cursor:"pointer"},value:r?.label||"",InputLabelProps:{filled:!!r?.label},disabled:u,...I,InputProps:{readOnly:true,disableUnderline:true,...!!h&&{startAdornment:Y},...I.InputProps}}),listWrapperSx:{height:"100%",overflow:"hidden",...Z},slotProps:{popover:{slotProps:{paper:{sx:{overflow:"hidden"}}}}},...q,children:jsxs(F,{...v,className:`SelectWithSearch_container ${v?.className??""}`,children:[jsx(D,{className:"SelectWithSearch_input",placeholder:d||"Select",endAdornment:X,onClick:t=>{t.stopPropagation();},value:a,onChange:t=>{x(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...e.length&&{marginBottom:"4px"},...a&&{cursor:"pointer"}},...J}),jsxs(c,{className:"SelectWithSearch_options",overflow:"auto",maxHeight:400,children:[W.length===0&&a&&jsx(g,{selected:false,...b,children:jsx(ne,{component:"span",fontSize:"10px",fontWeight:500,color:"#8D8D94",children:"No results found"})}),W.map(t=>C?C(t,{closeDropdown:S,open:f}):createElement(g,{...b,className:`SelectWithSearch_item ${r?.value===t.value?"SelectWithSearch_item-selected":""}`,key:t.value,selected:r?.value===t.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),r?.value===t.value?n(null):n(t),S();}},jsx("span",{children:t.label}),!$&&r?.value===t?.value&&jsx(c,{component:"img",src:Pc,alt:"close",sx:{width:10,height:7.5}})))]})]})})}var H=pe;var Ve=H;export{xe as a,fe as b,Se as c,D as d,ge as e,F as f,Ce as g,Ie as h,g as i,Ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-ENS6X2R3.js';import {a}from'./chunk-GNY2VGGW.js';import {Mc}from'./chunk-6PFNZ34W.js';import {vb}from'./chunk-YEPPVZXT.js';import {memo,useState,useRef,useEffect,useMemo,useId}from'react';import Z from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var z=styled(a)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1)})),L=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:r})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:r?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),k=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),R=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),H=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),$=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),A=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),O=styled(Box)(()=>({position:"relative",zIndex:999999}));function j({label:e,icon:r,name:s,menuItems:t,setSelected:y,onSelect:P,selected:p,displayChildrenCount:C,disabled:i,placement:x="right",sx:g,menuSx:I}){let[u,S]=useState(null),l=useRef(null),[a,n]=useState(false),h=o=>{!i&&p!==void 0&&(y({name:o,selected:!p}),p||n(false));};return useEffect(()=>{n(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(L,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${u?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!u&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{u&&S(null);},onClick:o=>{i||(o.stopPropagation(),h(s));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[p!==void 0&&jsx(R,{size:"small",indeterminate:a,checked:p,disabled:i}),jsxs(H,{children:[r&&r,jsxs($,{children:[e&&jsx(B,{children:e}),!!t?.length&&jsxs(G,{children:[C&&jsx(A,{children:t.length}),jsx("img",{src:vb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(Z,{open:!!(u&&t?.length),anchorEl:u,placement:x==="left"?"left-start":"right-start",sx:{zIndex:99999,...I},children:jsx(V,{className:"child-dropdown",menuItems:t,placement:x,onChildrenChange:o=>{let w=o.every(d=>d.selected);p!==void 0&&!i&&(w&&y({name:s,selected:true}),o.every(d=>!d.selected)&&y({name:s,selected:false}),n(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!w));},onSelect:o=>{P(o,s);}})})]})}var M=memo(j);function te({title:e,menuItems:r,onChildrenChange:s,onSelect:t,className:y,updatedList:P,footer:p,header:C,placement:i="right",...x}){let[g,I]=useState({name:"",selected:false}),[u,S]=useState();return useEffect(()=>{S(r);},[r]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,n=[],h=d=>d?.map(m=>(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}})),w=(d=>d.map(m=>m.name===l?(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}}):m))(u);S(w),P&&P(w),s&&s(w),t&&t(n);}},[g]),jsxs(k,{component:"article",className:`tap-dropdown ${y||""}`,...x,children:[jsx(O,{children:e&&jsx(z,{component:"p",children:e})}),C,jsx(F,{children:u?.map((l,a)=>jsx(M,{setSelected:({name:n,selected:h})=>{I({name:n,selected:h});},onSelect:n=>{t&&t(n);},placement:i,...l},`${l.name}-${a}`))}),p&&p]})}var V=memo(te);var K=(e,{menuItemSx:r,menuSx:s})=>(e.forEach(t=>{t.sx={...r,...t.sx},t.menuSx={...s,...t.menuSx},t.menuItems?.length&&K(t.menuItems,{menuItemSx:r,menuSx:s});}),e);function le({title:e,menuItems:r,onSelect:s,updatedList:t,header:y,placement:P="right",menuItemSx:p={},menuSx:C={},...i}){let x=useMemo(()=>K(r,{menuItemSx:p,menuSx:C}),[r,p,C]),[g,I]=useState(x),u=Mc(useId(),"nested-dropdown");useEffect(()=>{I(x);},[x]);let S=l=>{let a=h=>h.map(o=>({...o,selected:l.find(w=>o.name===w.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),n=a(g);I(n),t&&t(n);};return jsx(V,{id:u,"data-testid":"NestedDropdown",placement:P,menuItems:g,title:e,header:y,onSelect:l=>{s&&s(l),S(l);},...i})}var Q=memo(le);var Ne=Q;export{M as a,V as b,Ne as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {h,g,a,f,e,d,c}from'./chunk-UGZAGYGR.js';import {z}from'./chunk-2KAW45Y4.js';import {Mc,Va,r}from'./chunk-6PFNZ34W.js';import {pl,ja,Ta,Fg,$k,Ya,Sa,Og,Ng,Pg,Mg,Rg,zb,yb,rk,$j,gb,mk,B,w,A,D,Kh,_j,u,sk}from'./chunk-YEPPVZXT.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:n}){let[c,C]=useState(false),s=useTheme(),e=()=>{n||C(true);},i=()=>{C(false);},h=p?s.palette.common.white:s.palette.grey[700],u=c?s.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:h})]})})}var vt={inProgress:sk,initiated:sk,abandoned:u,cancelled:_j,reversed:Kh,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:mk,unCaptured:gb,captured:$j,authorized:rk,openFlag:yb,closedFlag:zb,unauthenticated:Rg,authenticated:Mg,paidOut:Pg,scheduled:Ng,checked:Og,dashedChecked:Sa,deactivated:Ya,destination:$k,destinationReversed:Fg,outstanding:Ta,active:ja,inactive:pl};var Nt=memo(p=>{let{variant:n="inActive",badgeCount:c$1,icon:C,label:s,dropdownOptions:e$1,selectedStatus:i,onButtonBodyClick:h$1,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=Mc(useId(),"status-button"),[Lt,M]=useState(0),{t:y}=useTranslation(),E=useRef(null),[x,f$1]=useState(null),[o,H]=useState(i??e$1?.[0]?.status);useEffect(()=>{i!==void 0&&H(i);},[i]);let d$1=useMemo(()=>!!e$1?.length,[e$1]),I=!!x&&Lt>1,l=n==="active",P=useMemo(()=>l?"active":"inactive",[l]),m=useMemo(()=>o?e$1?.find(t=>t.status===o):null,[o,e$1]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:n,children:m.icon});let t=o&&u[o]?o:C;if(t&&u[t])return jsx(g,{icon:t,variant:n,src:u[t],alt:`${t}-icon`})},[m,o,u,C,n]),wt=useMemo(()=>!c$1||Number.isNaN(Va(c$1))?null:jsx(z,{color:P,children:r(Number(c$1))}),[c$1,P]),T=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$1=useCallback(()=>{f$1(null);},[]),A=useCallback(()=>{d$1&&f$1(I?null:E.current);},[d$1,I]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),h$1?.(o||e$1?.[0]?.status||"all"),A(),M(B=>B+1);},[p,h$1,o,e$1,A]),D=useCallback(t=>B=>{t?.onClick?.(B),H(t.status),g$1();},[g$1]),yt=useMemo(()=>e$1?.map(t=>({...t,onClick:D(t)}))||[],[e$1,D]),Et=a[n],xt=useMemo(()=>m?.label||(o?y(o):s),[m,o,y,s]);return jsxs(Fragment,{children:[jsx(Et,{id:St,"data-testid":"StatusButton",...bt,ref:E,onClick:Mt,statusVariant:n,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e,{variant:n,children:[kt,xt,wt]}),T&&jsx(d,{children:T})]})}),I&&d$1&&jsx(c,{open:I,onClose:g$1,anchorEl:x,menuItems:yt})]})}),gt=Nt;var oo=gt;
|
|
2
|
+
export{L as a,oo as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {b}from'./chunk-ZONDSLTR.js';import {Mc}from'./chunk-6PFNZ34W.js';import c,{forwardRef,useId,useMemo,useState,useRef,useEffect}from'react';import {styled,Box,useTheme}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=styled(forwardRef((t,o)=>{let{className:r,variant:n="text",...e}=t,i=`${r||""} CustomVariant_${n}`;return jsx(Box,{ref:o,...e,className:i})}),{shouldForwardProp:t=>t!=="icon"})(({theme:t,variant:o="text",icon:r})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"30px",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",...r&&{justifyContent:"flex-start",gap:t.spacing(1)},...o==="text"&&{padding:`${t.spacing(.75)} ${t.spacing(1)}`,height:"30px",maxWidth:"150px"},...o==="circular"&&{height:24,width:24},...o==="pill-icon"&&{height:24,width:36}})),C=styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)})),h=styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:"transparent",borderRadius:"16px"})),x=t=>{let{index:o,xDelta:r=39,shadow:n,itemsCount:e=0,expandDirection:i="RIGHT"}=t,a=(e-1)*6;return {start:{x:o*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:i==="RIGHT"?o*r:a+-1*((e-1-o)*r),transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:n}}};var $=forwardRef(({children:t,...o},r)=>{let n=Mc(useId(),"chip"),{icon:e}=o;return jsxs(f,{ref:r,id:n,"data-testid":"Chip",...o,children:[jsx(Fragment,{children:e}),t]})}),H=$;var F=({order:t,children:o,getSourceAnimation:r,sourceCount:n,expandDirection:e})=>{let i=r||x,a=useTheme(),p=useMemo(()=>i({index:t,shadow:a.shadows[4],itemsCount:n,expandDirection:e}),[t,a.shadows,i,n,e]);return jsx(b,{order:t,variants:p,children:o})},u=F;var g=({children:t,className:o,getSourceAnimation:r,expandDirection:n})=>{let e=c.Children.count(t),[i,a]=useState({width:0,height:0}),p=useRef(null);useEffect(()=>{if(!p.current)return;let s=p.current;a({width:s.clientWidth,height:s.clientHeight});},[]);let y=useMemo(()=>c.Children.map(t,s=>!c.isValidElement(s)||s.type!==u?(console.error(`\u26A0\uFE0F WARNING: "${g.name}" must contains only children of type "${u.name}"`),s):c.cloneElement(s,{...s.props,sourceCount:e,getSourceAnimation:r,expandDirection:n})),[t,r,e,n]);return jsx(C,{"data-testid":"styled-source-cell",sx:{...i},children:jsx(h,{ref:p,layout:true,className:o,whileHover:"animate",animate:"start",sourcesCount:e,variants:{animate:{width:e*38,zIndex:50}},style:{zIndex:29},children:y})})},L=g;export{H as a,u as b,L as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-QJAANEOT.js';import {a as a$2}from'./chunk-WJXW7VPB.js';import {a as a$3}from'./chunk-LOFINKQZ.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-QJAANEOT.js';import {a as a$2}from'./chunk-WJXW7VPB.js';import {a as a$3}from'./chunk-LOFINKQZ.js';import {a as a$1}from'./chunk-ENS6X2R3.js';import {a}from'./chunk-GNY2VGGW.js';import {vb,Eb,A,Cb,Pc}from'./chunk-YEPPVZXT.js';import me,{useState,useRef,useMemo}from'react';import {Box,CircularProgress,Typography}from'@mui/material';import xe from'@mui/material/ClickAwayListener';import h from'@mui/material/Box';import le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';styled(a)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));styled(h)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"}));var H=styled(le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}}));var D=styled(h)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),I=styled(h)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"})),M=styled(h)(({theme:e,maxWidth:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...o&&{maxWidth:`${o}%`}}));styled(a)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:8}));var N=styled(h)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400],minWidth:"89px",position:"relative"})),z=styled(h)(()=>({position:"absolute",right:8,bottom:13.5,width:15,height:15}));var R=e=>e.length===0?true:"value"in e[0],$=(e,o,p)=>o?e.filter(r=>p.some(a=>r?.[a]?.toLowerCase().includes(o.toLowerCase()))):e,G=(e,o,p)=>e.map(r=>{let a=r?.options.map(l=>{let S=l?.options?.filter(n=>p.some(d=>n?.[d]?.toLowerCase().includes(o.toLowerCase())));return {...l,options:S}}).filter(l=>l?.options?.length>0);return {...r,options:a}}).filter(r=>r?.options?.length>0);function X({childOption:e,selectedOptions:o,onChangeOptions:p}){let[r,a]=useState(null),l=n=>{p([...o||[],n]);},S=n=>{p(o?.filter(d=>d.value!==n.value)||[]);};return jsxs(a$2,{onMouseEnter:n=>{e.options?.length>0&&a(n.currentTarget);},onMouseLeave:()=>{r&&a(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"220px",minWidth:"89px"},children:[e.label,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(a$3,{sx:{maxHeight:"450px",overflow:"auto"},open:!!r,anchorEl:r,placement:"right-start",children:e.options?.map(n=>{let w=!!o?.find(s=>s.value===n.value);return jsx(a$2,{isSelected:w,onClick:s=>{s.stopPropagation(),s.preventDefault(),w?S(n):l(n);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:n.label})},n.value)})})]})}function J({parentOption:e,selectedOptions:o,onChangeOptions:p}){let[r,a]=useState(null);return jsxs(a$2,{onMouseEnter:l=>{e.options?.length>0&&a(l.currentTarget);},onMouseLeave:()=>{r&&a(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"340px",minWidth:"89px"},children:[e.label,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(a$3,{sx:{maxHeight:"450px",overflow:"auto"},open:!!r,anchorEl:r,placement:"right-start",children:e.options?.map(l=>jsx(X,{childOption:l,selectedOptions:o,onChangeOptions:p},l.label))})]})}function Q({option:e,selectedOptions:o,onChangeOptions:p}){let r=o?.some(a=>a.value===e.value)??false;return jsx(a$2,{isSelected:r,onClick:a=>{if(a.stopPropagation(),a.preventDefault(),r){p(o?.filter(l=>l.value!==e.value)||[]);return}p([...o||[],e]);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:e.label})})}function ge({options:e,onChangeOptions:o,selectedOptions:p,placeholder:r,isLoading:a,searchBy:l=["label"],disabled:S}){let n=R(e),[d,w]=useState(null),[s,E]=useState(""),ee=useRef(null),b=!!d,te=t=>{w(b?null:t.currentTarget);},oe=()=>{w(null);},re=()=>{s&&E("");},T=useMemo(()=>{if(n)return $(e,s,l)},[n,e,s,l]),F=useMemo(()=>{if(!n)return s?G(e,s,l):e},[n,e,s,l]),ne=!!(n?T:F)?.length,ie=a?jsx(CircularProgress,{size:16}):jsx(a$4,{src:s?Eb:A,alt:s?"close":"search",onClick:re,sx:{width:12,height:12}}),f=Number(p?.length??0);return jsx(xe,{onClickAway:()=>{b&&oe();},children:jsxs(N,{id:"TriggerWrapper","data-testid":"MultiSelectWithSearch",onClick:t=>!S&&te(t),ref:ee,children:[jsx(Typography,{color:"grey",sx:{cursor:"pointer",fontSize:"10px",padding:"4px"},component:"label",children:r}),f===0&&jsx(Typography,{sx:{fontWeight:500,fontSize:"11px",padding:"0px 4px 4px"},component:"p",children:"Please Select"}),jsx(z,{component:"img",src:Cb,alt:"down arrow",sx:{...b&&{transform:"rotate(180deg)"}}}),!!f&&jsx(I,{id:"SelectedBadgesWrapper",children:f>0&&f<=2?p?.map(t=>jsxs(M,{maxWidth:90,children:[jsx(a$4,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]},t.value)):f>2&&p?.slice(0,2)?.map((t,y)=>jsxs(me.Fragment,{children:[jsxs(M,{maxWidth:90,children:[jsx(a$4,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]}),y===1&&jsx(M,{maxWidth:90,children:jsxs("span",{children:["+",f-2]})})]},t.value))}),jsx(a$3,{open:b,anchorEl:d,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},children:jsxs(D,{children:[jsx(H,{placeholder:r||"Select",endAdornment:ie,onClick:t=>{t.stopPropagation();},value:s,onChange:t=>{E(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...ne&&{marginBottom:"4px"},...s&&{cursor:"pointer"}}}),jsx(I,{children:p?.map(t=>jsxs(M,{sx:{maxWidth:"150px"},onClick:y=>{y.stopPropagation(),y.preventDefault(),o(p?.filter(pe=>pe.value!==t.value)||[]);},children:[jsx(a$4,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),jsx(a$4,{src:Eb,alt:"close",sx:{width:9,height:9}})]},t.value))}),n?T?.map(t=>jsx(Q,{option:t,selectedOptions:p,onChangeOptions:o},t.value)):F?.map(t=>jsx(J,{parentOption:t,selectedOptions:p,onChangeOptions:o},t.label))]})})]})})}var j=ge;var st=j;export{X as a,J as b,Q as c,st as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-42HKBQEF.js';import {Mc}from'./chunk-6PFNZ34W.js';import {mi}from'./chunk-YEPPVZXT.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=Mc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:mi,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-744TLPDI.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var i=styled(a)(({theme:t})=>({color:t.palette.text.primary,"&.CustomVariant_text":{height:24},display:"inline-flex"}));var n=({title:t,slotProps:e={},children:l})=>{let{chip:h={},tooltip:a={}}=e,{sx:s,...c}=h;return jsx(a$1,{...a,title:t,children:jsx(i,{...c,sx:{height:24,display:"inline-flex",color:"text.primary",...s},children:l})})},C=n;export{C as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f,b as b$2,g,a as a$4,e,d,c as c$1}from'./chunk-CD7ZXAKA.js';import {a as a$6}from'./chunk-P6UBW7IS.js';import {a as a$3}from'./chunk-QJAANEOT.js';import {c}from'./chunk-H2LG3V2L.js';import {z}from'./chunk-2KAW45Y4.js';import {a as a$2}from'./chunk-ZONDSLTR.js';import {o,j,k as k$1,l,p}from'./chunk-XSXCEA5X.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a as a$5}from'./chunk-3PCHBA7X.js';import {b as b$1}from'./chunk-UWJFWBXG.js';import {gb,hb,eb,Mc,Sa,Ta,pc,q as q$1}from'./chunk-6PFNZ34W.js';import {r}from'./chunk-JEYHEF5M.js';import {T,oi,qi,pi,ni,ui,Ug,Lg,Tg,Hj,Ij,tb,Yj,$j,qk,Zj,ub,va,ua,ik,h,Kg}from'./chunk-YEPPVZXT.js';import {a,b}from'./chunk-YRT7GXGY.js';import {useId,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {styled,Box,useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion}from'framer-motion';import {styled as styled$1,useTheme as useTheme$1}from'@mui/material/styles';import dr from'@mui/material/Box';var V=a((bi,zo)=>{var Je=gb(),Xe=hb(),Ye=Xe(function(t,o,e){return o=o.toLowerCase(),t+(e?Je(o):o)});zo.exports=Ye;});var ct={ORDER:{label:"order",icon:ni,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:pi,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:qi,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:oi,color:"#32ADE6"}},mt={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)}));styled("img")(()=>({width:"35px",height:"16px",display:"block"}));styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled("img")(()=>({maxWidth:"100%",width:"100%"}));var ut=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),ft=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function We({type:t,hasSavedCard:o,totalPaymentsCount:e,isTextShown:r}){let l=Mc(useId(),"agreement-icon"),p=useTheme(),{t:a}=useTranslation(),n=useMemo(()=>[...o?[mt.SAVED_TOKEN]:[],...(e||0)>0?[mt.COUNT]:[],...t&&ct[t]?[ct[t]]:[]],[o,e,t]),d=c=>r?jsx(a$2,{"data-testid":"AgreementCell_countBadge",children:jsx(a$1,{title:a("totalPaymentCount",{amount:q$1(e)}),children:jsx(ft,{children:jsxs(ut,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:mt.COUNT.color},children:["x",e]})})})},c):jsx(a$6,{totalPaymentsCount:e,index:c},c),s=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(a$1,{title:a(c.label),children:jsx(a$2,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:a(c.label)})}):jsx(a$3,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(a$1,{title:"No agreement",children:jsx(a$2,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:p.palette.text.secondary},children:"No agreement"})}):jsx(a$3,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:ui,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:s?.length>0?s:f})}var Ao=We;var Re=Ao;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));styled("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var Wo=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),vo=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var Ro=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var Et={"3DS":{tooltip:"3DS",icon:Ij,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Hj,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:Tg,borderColor:"rgba(31, 136, 208, 0.10)"}},ko={FAILED:{tooltip:"Failed",icon:Lg,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:Ug,borderColor:"rgba(255, 61, 0, 0.10)"}};function Be({transactionStatus:t,eci:o,authType:e,isTextShown:r}){let l=Mc(useId(),"auth-icons"),p=useMemo(()=>{let n=t?ko[t]:null,d=n?.tooltip,s=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:s,type:r?"text":"icon"},...e?[{tooltip:e,content:r?Et[e]?.tooltip:Et[e]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:o?`ECI ${o}`:"",type:"text"}]},[t,r,e,o]),a=useMemo(()=>p.filter(n=>!!n.content).map((n,d)=>{let s=n.type==="text"?jsx(vo,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(Wo,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$3,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(a$1,{title:n.tooltip,children:s},`${n.tooltip}-${d}`)}),[p]);return jsx(Ro,{id:l,"data-testid":"AuthIcons",children:a})}var Lo=Be;var Le=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:e?t*e:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o,...t>0&&{opacity:1}}});var De=Lo;var et={VOID:{icon:Zj},CAPTURED:{icon:Yj}};var xt=styled$1(motion.div)(({theme:t,isCapture:o})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:o?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),gt=styled$1("div")(({theme:t,percentage:o,isCapture:e})=>({border:`0.6px ${[0,100].includes(o)?"solid":"dashed"} ${e?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:e?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),It=styled$1("div")(({percentage:t,isCapture:o,theme:e})=>({background:`conic-gradient(${o?e.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?e.palette.info.dark:"#656565"}`})),ht=styled$1("img")({width:"14px",height:"14px"}),q=styled$1(o)({width:"16px",height:"16px"}),F=styled$1("img")({width:"16px",height:"16px"}),Do=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function Ct(t){return t<5?5:t===100?95:t}function Ge({voidPercentage:t,capturePercentage:o,captureCount:e,autoType:r,captureAmount:l,voidAmount:p,currency:a,isTextShown:n,remainingAmount:d,isSheetViewShown:s,selectionProps:f={}}){let c=Number(o)+Number(t)===100||d<=0,g=Mc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Sa(d||0),D=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),Y=useCallback(C=>{let Q=C==="Capture"?l:p,{integerAmount:E,decimalAmount:v}=Ta(Q,a);return `Partial ${C} - ${a} ${E}.${v}`},[l,p,a]),x=o>0?jsx(a$1,{title:Y("Capture"),children:jsxs(xt,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(ht,{src:tb,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(gt,{isCapture:true,percentage:o,children:[o,"% ",jsx(It,{isCapture:true,percentage:Ct(o)})]}),e>1&&jsxs(z,{compact:true,color:"dark",children:[e,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(a$1,{title:D("Capture"),children:jsx(q,{children:jsx(F,{src:et.CAPTURED?.icon,alt:"auto"})})}):jsx(a$1,{title:D("Capture"),children:jsx(q,{children:jsx(F,{src:et.CAPTURED?.icon,alt:"auto"})})}),I=o===100?jsx(a$1,{title:A("captured"),children:jsx(Do,{children:jsx(F,{src:$j,alt:"captured"})})}):x,W=useMemo(()=>s&&I?jsx(b$1,{chipIndex:4,copyText:A("captured"),selectionProps:f,children:A("captured")}):n&&I?jsx(k$1,{children:A("captured")}):I,[n,I,s,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var $o=Ge;function qe({voidPercentage:t,capturePercentage:o,voidCount:e,autoType:r,captureAmount:l$1,voidAmount:p,currency:a,isTextShown:n,isSheetViewShown:d,selectionProps:s={},remainingAmount:f}){let c=Number(o)+Number(t)===100||f<=0,g=Mc(useId(),"void-auto-icon"),T=useTheme$1(),{t:A}=useTranslation(),P=Sa(f||0),D=useCallback(C=>`Auto ${C} - ${a} ${P.integerAmount}.${P.decimalAmount}`,[a,P.decimalAmount,P.integerAmount]),Y=useCallback(C=>{let Q=C==="Capture"?l$1:p,{integerAmount:E,decimalAmount:v}=Ta(Q,a);return `Partial ${C} - ${a} ${E}.${v}`},[l$1,p,a]),x=t>0||p?jsx(a$1,{title:Y("Void"),children:jsxs(xt,{isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:T.palette.common.white,border:`0.75px solid ${T.palette.grey[600]}1A`},variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(ht,{src:qk,alt:"void"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(gt,{percentage:t,children:[t,"% ",jsx(It,{percentage:Ct(t)})]}),e>0&&jsxs(z,{compact:true,color:"neutral",children:[e,"x"]})]})]})}):r==="VOID"&&!c?jsx(a$1,{title:D("Void"),children:jsx(q,{children:jsx(F,{src:et.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(a$1,{title:A("void"),children:jsx(q,{children:jsx(F,{src:qk,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b$1,{chipIndex:5,copyText:A("void"),selectionProps:s,children:A("void")}):n&&I?jsx(l,{children:A("void")}):I,[n,I,d,s]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var Vo=qe;var Ke=$o;var Mo=b(V(),1);var tr=({authorizedStatus:t,isTextShown:o,iconStyles:e,tableMode:r,chipIndex:l=0,selectionProps:p={}})=>{let{t:a}=useTranslation(),n=useTheme$1(),d=a((0, Mo.default)(t));return eb(r)?jsx(b$1,{copyText:d,chipIndex:l,selectionProps:p,children:d}):jsx(a$1,{title:d,children:o?jsx(j,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$3,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:e})})};var k=b(V(),1);var No=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,display:"block",fontWeight:t.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:t.spacing(.45)})),Go=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),$t=styled$1("img")(()=>({width:"10px",height:"10px"})),_t=styled$1(motion.span)(({theme:t})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),Vt=styled$1(motion.div,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!t&&{padding:"0 !important"}})),Fo=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Uo=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Oo={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},jo={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},Ho={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},qo={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},zt={fadeIn:{duration:.3},animate:{duration:.1}},Ko={fadeIn:{opacity:1}},Jo=styled$1(j)(()=>({width:"88px",height:"100%"})),Mt=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function ir({chargeStatus:t,gatewayTooltip:o$1,acquirerTooltip:e,chargeTooltip:r$1,errorCode:l,isTextShown:p$1,gatewayCode:a,acquirerCode:n,unCapturedStyles:d,iconStyles:s,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:A=true,isSheetViewShown:P=false,selectionProps:D={},chipIndex:Y=0}){let x=t?b$2[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),Q=Mc(useId(),"charge-status-icon"),E=r$1&&jsx(Fragment,{children:jsx("div",{children:r$1})}),v=e&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:e})]}),Z=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:o$1})]}),Ot=t&&a$4[t]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:x?"50%":"",...f},children:jsx(p,{src:a$4[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...s}})});return P?jsxs(Mt,{children:[jsxs(b$1,{copyText:C((0, k.default)(t)),chipIndex:Y,selectionProps:D,children:[C((0, k.default)(t))," ",l]}),x&&jsxs(Fragment,{children:[a&&jsxs(b$1,{copyText:"Gateway",chipIndex:1,selectionProps:D,children:["Gateway ",a]}),n&&jsxs(b$1,{copyText:"Acquirer",chipIndex:2,selectionProps:D,children:["Acquirer ",n]})]})]}):p$1?jsxs(Mt,{children:[jsx(a$1,{title:E,children:jsxs(Jo,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark,borderColor:`${x?.color||I?.color||W.palette.info.dark}1A`},children:[C((0, k.default)(t))," ",l]})}),x&&jsxs(Fragment,{children:[a&&jsx(a$1,{title:Z,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",a]})}),n&&jsx(a$1,{title:v,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:Q,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:r?.includes(t||"")&&(E||v||Z)?jsxs(Uo,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...A&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Fo,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(a$1,{title:E??C((0, k.default)(t)),children:jsxs(Fragment,{children:[Ot,jsx(Go,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:qo,style:{...l&&{padding:"0 !important"}},children:jsx(No,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:Oo,variants:Ko,initial:{opacity:0},children:l})})]})})}),jsx(Vt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:zt,variants:jo,style:g$1,isVisible:!!Z,children:Z&&jsx(a$1,{title:Z,children:jsx(_t,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx($t,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx(Vt,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:zt,variants:Ho,style:g$1,isVisible:!!v,children:v&&jsx(a$1,{title:v,children:jsx(_t,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx($t,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(a$1,{title:E??C((0, k.default)(t)),children:jsx(o,{children:Ot})})})}var sr=()=>{let{t}=useTranslation(),o=Mc(useId(),"customer-initiated-icon");return jsx(a$1,{title:t("merchantInitiated"),children:jsx("img",{id:o,"data-testid":"merchantInitiatedIcon",src:ub,alt:"merchant",style:{width:"16px",height:"16px"}})})};var lr={G:"Global",R:"Regional",L:"Local"},rt=({geographyVariant:t,countryCode:o,isTextShown:e})=>{let r=t?lr[t]:void 0,l=r||o?`${r||""} ${r&&o?"-":""} ${o?`Country - ${o}`:""}`:void 0;return e||!o?null:jsx(a$1,{title:l,children:jsx(a$5,{countryCode:o})})};var mr=({geographyVariant:t,isTextShown:o,deviceCountry:e,deviceType:r,tableMode:l})=>{let p=Mc(useId(),"device-icon-chip");return jsxs(dr,{id:p,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...eb(l)&&{height:"18px"}},children:[jsx(rt,{geographyVariant:t,isTextShown:o,countryCode:e}),jsx(c,{type:r,isTextShown:o,tableMode:l})]})};var xr=({isDisputeOpen:t,iconStyles:o})=>{let e=Mc(useId(),"dispute-icon");return jsx(p,{id:e,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?va:ua,alt:"dispute-icon",style:o})};var te=styled$1(dr,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:o})=>({display:"flex",gap:t.spacing(.5),...eb(o)&&{height:"18px"},alignItems:"center"})),oe=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Gt({countryCode:t,isTextShown:o,cardNumber:e,bankName:r,tableMode:l}){let p=Mc(useId(),"issuer-icon"),a=e?.slice(0,4),n=e?.slice(-4);return jsxs(te,{id:p,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(rt,{countryCode:t,isTextShown:o}),jsx(a$1,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(oe,{children:`${a||""} ${n||""}`})})]})}var yr=Gt;var ee=b(V(),1);styled(motion.div)(({theme:t,background:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:o,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Va=styled("img")(()=>({height:"13.125px",width:"12px"})),Tt=styled("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"})),za=styled("div")(({theme:t})=>({color:t.palette.common.white,background:t.palette.error.main,fontSize:"0.6rem",fontWeight:600,borderRadius:"16px",padding:"2px 8px",display:"flex",alignItems:"center",justifyContent:"center"})),Ma=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var wr=({payoutStatus:t="PENDING",isTextShown:o,payoutTooltip:e$1,iconStyles:r,isSheetViewShown:l,chipIndex:p$1=0,selectionProps:a={}})=>{let{t:n}=useTranslation(),d=Mc(useId(),"payout-icon"),s=n((0, ee.default)(t)),f=e$1||s;return l?jsx(b$1,{chipIndex:p$1,copyText:s,selectionProps:a,children:s}):jsx(a$1,{title:f,children:o?jsx(Tt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:s}):jsx(p,{id:d,src:e[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var ie=b(V(),1);var re=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),ne=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,borderRadius:t.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:t.palette.secondary.main})),Ft=styled$1(motion.div)(({theme:t})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${t.palette.secondary.main}1A`,paddingInline:t.spacing(.5),borderRadius:"56px"})),tp=(t,o,e)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:e?t*e:t*49,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:o}}),op=styled$1(motion.span)(({isTextShown:t,theme:o})=>({border:`1px solid ${o.palette.divider}`,borderRadius:"12px",backgroundColor:o.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),ep=styled$1(motion.div,{shouldForwardProp:t=>t!=="order"})(({order:t=0})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:0,left:0,zIndex:t+6,width:"fit-content",height:"24px",cursor:"pointer",borderRadius:"16px","&:hover":{zIndex:200}})),rp=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t=1})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",minWidth:`${t*6+36}px`,height:"24px",cursor:"pointer",borderRadius:"16px",overflow:"visible"})),np=styled$1("div")(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var vr=({isTextShown:t,refundStatus:o="PENDING",refundTooltip:e="",refundCount:r,iconStyles:l,isSheetViewShown:p$1,chipIndex:a=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),s=useTheme$1(),f=Mc(useId(),"refund-icon"),c=(r||0)>1,g=d$1((0, ie.default)(o));if(p$1)return jsxs(b$1,{chipIndex:a,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(ne,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return t?jsx(a$1,{title:jsx("div",{children:jsx("div",{children:e})}),children:jsx(Tt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[o].color,backgroundColor:d[o].backgroundColor,width:"90px"},children:jsxs(Ft,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(a$1,{title:jsx("div",{children:jsx("div",{children:e})}),children:c?jsxs(Ft,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:s.shadows[4],gap:s.spacing(.5)}},children:[jsx(re,{src:ik,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p,{id:f,src:c$1[o],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},ae=vr;var Rr=ae;var vt=b(V(),1);var kr={american_express:"AMEX",debit:"card",credit:"card",unionpay:"UnionPay",jaywan:"JAYWAN"},L=t=>kr[t?.toLowerCase()||""]||t;var ce=b(V(),1);styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var pe=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${o*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var se=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),le=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var de=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Wt({source:t,isTextShown:o,title:e,width:r,height:l,imgSx:p}){let{t:a}=useTranslation(),n=h(t);return jsx(a$1,{title:e,children:o?jsx(le,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(se,{"data-testid":"SourceCell_TextLabel","data-source":t,children:a((0, ce.default)(t))})}):jsx(pe,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:p})})}function Vr({payment:t,card:o,isTextShown:e,firstIcon:r}){let l=Mc(useId(),"source-icons"),{t:p}=useTranslation(),a=useCallback(()=>{let s=[],f=pc(t),c=t?.method,g=t?.scheme;return L(c)?.toLowerCase()===L(g)?.toLowerCase()?s.push(L(c),L(f)):s.push(L(c),L(f),L(g)),s},[t]),n=useMemo(()=>jsx(Wt,{source:r,isTextShown:e,title:p((0, vt.default)(r))},r),[r,e,p]),d=useMemo(()=>a()?.filter(s=>!!s&&s!==r)?.map((s,f,c)=>{let g=t?.wallet===p("sv_wallet")?p("storedValueWallet"):p("passThruWallet"),T=f===c.length-1&&o?.last_four?`${p((0, vt.default)(s))} - ${o?.last_four}`:p((0, vt.default)(s));return jsx(Wt,{source:s,isTextShown:e,title:f===0&&s==="Wallet"?g:T},`${s}-${f}`)}),[a,t,o,e,p,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,o?.last_four&&jsxs(de,{children:["\xB7\xB7\xB7 ",o?.last_four]})]})}var it={PROCESSED:Kg,FAILED:""};var xe=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),ge=styled("img")(()=>({width:"16px",height:"16px"})),Ie=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));var Rt=b(V(),1);function he({status:t,isTextShown:o,isSheetViewShown:e,chipIndex:r=0,selectionProps:l={}}){let p=useTheme(),{t:a}=useTranslation(),n=Mc(useId(),"destination-icon"),d=a((0, Rt.default)(t));return e&&it[t]?jsx(b$1,{copyText:d,chipIndex:r,selectionProps:l,children:d}):o&&it[t]?jsx(xe,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, Rt.default)(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?p.palette.info.dark:p.palette.common.black},children:d}):jsx(Ie,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&it[t]&&jsx(a$1,{title:a((0, Rt.default)(t)),children:jsx(ge,{src:it[t],alt:"destination-icon"})})})}export{he as A,tp as a,op as b,ep as c,rp as d,np as e,Re as f,Le as g,De as h,Vo as i,Ke as j,V as k,tr as l,ir as m,sr as n,rt as o,mr as p,xr as q,yr as r,Va as s,za as t,Ma as u,wr as v,Rr as w,L as x,Wt as y,Vr as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1,g,a as a$3}from'./chunk-CD7ZXAKA.js';import {a as a$2}from'./chunk-QJAANEOT.js';import {a}from'./chunk-
|
|
1
|
+
import {b as b$1,g,a as a$3}from'./chunk-CD7ZXAKA.js';import {a as a$2}from'./chunk-QJAANEOT.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a}from'./chunk-GNY2VGGW.js';import {Mc}from'./chunk-6PFNZ34W.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Mc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-42HKBQEF.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
|