@tap-payments/os-micro-frontend-shared 0.3.240-test.31 → 0.3.241
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-MYQ54BZG.js → chunk-3T7G4PAY.js} +1 -1
- package/build/_chunks/{chunk-BS7VRTAV.js → chunk-3Z6ULCGA.js} +1 -1
- package/build/_chunks/{chunk-PJXOFZPW.js → chunk-52SSIU72.js} +1 -1
- package/build/_chunks/{chunk-EXLFOMSC.js → chunk-5H7MD7LO.js} +1 -1
- package/build/_chunks/{chunk-YO27LSWX.js → chunk-5WL77ZBM.js} +1 -1
- package/build/_chunks/{chunk-VBNMIWI4.js → chunk-6ASQZ2RI.js} +1 -1
- package/build/_chunks/{chunk-CSCIVTMM.js → chunk-6E2SGPTJ.js} +1 -1
- package/build/_chunks/{chunk-WL4X5KGY.js → chunk-6JLKJPL3.js} +1 -1
- package/build/_chunks/{chunk-3GXTVG5R.js → chunk-6RTZSBSD.js} +1 -1
- package/build/_chunks/{chunk-DJE254UH.js → chunk-6USHHZAA.js} +1 -1
- package/build/_chunks/{chunk-2MPXMNN4.js → chunk-7DMSRKG7.js} +1 -1
- package/build/_chunks/{chunk-HTLVX3G5.js → chunk-7FWE55BT.js} +1 -1
- package/build/_chunks/{chunk-YNKTXBPM.js → chunk-7PLZT2KW.js} +1 -1
- package/build/_chunks/{chunk-WGDRJVXR.js → chunk-7R6GKSYQ.js} +1 -1
- package/build/_chunks/{chunk-KO4LEPWI.js → chunk-7THWDMHL.js} +1 -1
- package/build/_chunks/chunk-AVTZV3J7.js +1 -0
- package/build/_chunks/{chunk-5QFR3DWY.js → chunk-B5TZKBR5.js} +1 -1
- package/build/_chunks/{chunk-4WDB6GQY.js → chunk-BA5OFEBT.js} +1 -1
- package/build/_chunks/{chunk-UQYYABJO.js → chunk-BMSJV3FH.js} +1 -1
- package/build/_chunks/{chunk-XCJECLRL.js → chunk-BQWD3KO4.js} +1 -1
- package/build/_chunks/{chunk-WD56ABUM.js → chunk-BUPWQI3W.js} +1 -1
- package/build/_chunks/{chunk-ZTP3WQBJ.js → chunk-CWNHOUN5.js} +1 -1
- package/build/_chunks/{chunk-5I5M4Y2L.js → chunk-D23EYDCG.js} +1 -1
- package/build/_chunks/{chunk-NOW327WP.js → chunk-ECBP7JZ6.js} +1 -1
- package/build/_chunks/{chunk-QDQKI2OP.js → chunk-EGFHFXWK.js} +1 -1
- package/build/_chunks/{chunk-P4MC3PFJ.js → chunk-EJ2GRPAY.js} +1 -1
- package/build/_chunks/{chunk-GZUDPTKY.js → chunk-FWPVRT34.js} +1 -1
- package/build/_chunks/{chunk-6KP3OKV3.js → chunk-G3QKYZM2.js} +1 -1
- package/build/_chunks/{chunk-SJDVKG2Q.js → chunk-GEJI7SEX.js} +1 -1
- package/build/_chunks/{chunk-Z4JLH4XB.js → chunk-GLTYG62E.js} +1 -1
- package/build/_chunks/{chunk-KLSGCSDA.js → chunk-GP7PBSOF.js} +1 -1
- package/build/_chunks/{chunk-KID3D7KU.js → chunk-GRKRA3TP.js} +1 -1
- package/build/_chunks/chunk-GUXJEFPL.js +2 -0
- package/build/_chunks/{chunk-XKDYZ4ZM.js → chunk-HWDODLOQ.js} +1 -1
- package/build/_chunks/{chunk-YL3FUXQI.js → chunk-I6RRJ7ME.js} +1 -1
- package/build/_chunks/{chunk-6PWHIZFE.js → chunk-I7KBFAH7.js} +1 -1
- package/build/_chunks/chunk-J7R6JFXM.js +1 -0
- package/build/_chunks/{chunk-LA7X2KPG.js → chunk-JCFOE4DQ.js} +1 -1
- package/build/_chunks/{chunk-WDZGN64W.js → chunk-JG5OM35T.js} +1 -1
- package/build/_chunks/{chunk-3QTAQRMI.js → chunk-JI5U3KGK.js} +1 -1
- package/build/_chunks/{chunk-YICDAFBX.js → chunk-KDRRRYZL.js} +1 -1
- package/build/_chunks/{chunk-BTR5PD6Y.js → chunk-KTFIN54Q.js} +1 -1
- package/build/_chunks/{chunk-GMQ53XVP.js → chunk-KVC3QSDQ.js} +1 -1
- package/build/_chunks/chunk-L7L22FDR.js +1 -0
- package/build/_chunks/chunk-LFBTKZ3V.js +1 -0
- package/build/_chunks/{chunk-M4DEHVYL.js → chunk-LOFKIY7J.js} +1 -1
- package/build/_chunks/{chunk-6CXB2LE2.js → chunk-LXD5Y42H.js} +1 -1
- package/build/_chunks/{chunk-4TXOJ4LP.js → chunk-MFZ3F3JQ.js} +1 -1
- package/build/_chunks/{chunk-JCOZG4PE.js → chunk-MXQFATMM.js} +1 -1
- package/build/_chunks/{chunk-MVKLLCHM.js → chunk-NPCTL2R7.js} +1 -1
- package/build/_chunks/{chunk-6KU44WGR.js → chunk-OBK62FOF.js} +1 -1
- package/build/_chunks/{chunk-4E4TCT4G.js → chunk-OMISGJLX.js} +1 -1
- package/build/_chunks/{chunk-TKYWVFNH.js → chunk-QDW7GZN6.js} +1 -1
- package/build/_chunks/{chunk-K473J5UJ.js → chunk-QHK62NO3.js} +1 -1
- package/build/_chunks/{chunk-5IWE2PGQ.js → chunk-QLF4C46U.js} +1 -1
- package/build/_chunks/{chunk-7DIB47I7.js → chunk-QLXQSDL7.js} +1 -1
- package/build/_chunks/{chunk-UVDVSMDQ.js → chunk-QWWU4QAA.js} +1 -1
- package/build/_chunks/{chunk-7PWNYYUK.js → chunk-R6Y42OPH.js} +1 -1
- package/build/_chunks/chunk-RE3HH2T6.js +2 -0
- package/build/_chunks/{chunk-R4CAXMKG.js → chunk-S4ZHXBPB.js} +1 -1
- package/build/_chunks/{chunk-CXPYYHID.js → chunk-SR3UFTU3.js} +1 -1
- package/build/_chunks/{chunk-EGWCKYZW.js → chunk-SYEHTDS6.js} +1 -1
- package/build/_chunks/{chunk-A5QRZLTA.js → chunk-TDFNWFK7.js} +1 -1
- package/build/_chunks/{chunk-GMOL7KWH.js → chunk-U2PXB4YH.js} +1 -1
- package/build/_chunks/{chunk-BT4OV2QN.js → chunk-V4YG7AP4.js} +1 -1
- package/build/_chunks/chunk-VNHVDZKL.js +1 -0
- package/build/_chunks/{chunk-3D6B42L2.js → chunk-VV5IC3DP.js} +1 -1
- package/build/_chunks/{chunk-UEXZDSF2.js → chunk-WZQR2LCT.js} +1 -1
- package/build/_chunks/{chunk-3HWDXRKR.js → chunk-X5HJKL6O.js} +1 -1
- package/build/_chunks/{chunk-BMBJPVOW.js → chunk-YNOCNDOA.js} +1 -1
- package/build/_chunks/{chunk-JEVXGACR.js → chunk-ZEQDF7FG.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/style.d.ts +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/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/AvatarStack/style.d.ts +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/DateFilter.d.ts +6 -15
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/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/FlippingCard/style.d.ts +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +2 -2
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +4 -4
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/JSONViewer/style.d.ts +2 -2
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +3 -3
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListHeader/types.d.ts +4 -15
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/RangeCalender.d.ts +1 -1
- package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +6 -6
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +5 -5
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +5 -5
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RangeCalender/type.d.ts +4 -27
- package/build/components/RangeCalender/utils.d.ts +1 -11
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +13 -13
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/styles.d.ts +2 -2
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/AuthIcons/style.d.ts +2 -2
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +6 -6
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +1 -8
- package/build/components/TableCells/CustomCells/DateCell/DateViewer.d.ts +1 -5
- package/build/components/TableCells/CustomCells/DueDateCell/DueDateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/type.d.ts +0 -6
- package/build/components/TableCells/CustomCells/DueDateCell/utils.d.ts +3 -4
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/InvoiceStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/type.d.ts +0 -6
- package/build/components/TableCells/CustomCells/PayoutDateCell/PayoutDateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +5 -5
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/RefundStatusCell/RefundStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatus.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/RefundStatusCell/type.d.ts +2 -6
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +6 -6
- package/build/components/TableCells/CustomCells/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/type.d.ts +2 -8
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableReports/style.d.ts +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/style.d.ts +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/index.d.ts +0 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/Backdrop/style.d.ts +1 -0
- package/build/components/primitives/Backdrop/type.d.ts +15 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/timezones.d.ts +0 -12
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/appConfig.d.ts +0 -4
- package/build/types/day.d.ts +0 -2
- package/build/utils/date.d.ts +16 -33
- package/build/utils/index.js +1 -1
- package/build/utils/localStorage.d.ts +0 -2
- package/build/utils/payout.d.ts +3 -4
- package/build/utils/timezone.d.ts +0 -7
- package/package.json +2 -8
- package/build/_chunks/chunk-2NGD5ZN6.js +0 -1
- package/build/_chunks/chunk-4PIM52J3.js +0 -2
- package/build/_chunks/chunk-5FBYWZ3H.js +0 -2
- package/build/_chunks/chunk-O7HXFCBN.js +0 -1
- package/build/_chunks/chunk-OWIQBLU3.js +0 -1
- package/build/_chunks/chunk-OY44HMKS.js +0 -1
- package/build/_chunks/chunk-YAYRJE52.js +0 -1
- package/build/_chunks/chunk-ZKTR2WPD.js +0 -1
- package/build/components/CustomBackdrop/CustomBackdrop.d.ts +0 -5
- package/build/components/CustomBackdrop/index.d.ts +0 -2
- package/build/components/CustomBackdrop/index.js +0 -1
- package/build/components/CustomBackdrop/style.d.ts +0 -4
- package/build/components/TableCells/CustomCells/ZonedDateCell/ZonedDateCell.d.ts +0 -33
- package/build/components/TableCells/CustomCells/ZonedDateCell/index.d.ts +0 -2
- package/build/components/TableCells/CustomCells/utils.d.ts +0 -6
- package/build/datetime/index.d.ts +0 -9
- package/build/datetime/index.js +0 -1
- package/build/datetime/instant.d.ts +0 -73
- package/build/datetime/zone.d.ts +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,f,p}from'./chunk-
|
|
1
|
+
import {j,f,p}from'./chunk-GUXJEFPL.js';import {Bc}from'./chunk-L7L22FDR.js';import {vb}from'./chunk-GCJPCGH3.js';import {memo,useRef,useState,useEffect,useMemo,useId}from'react';import se from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var k=styled(j)(({theme:e})=>({fontWeight:e.v2.typography.fontWeightMedium,fontSize:"0.6875rem",color:e.v2.palette.grey[500],paddingInlineStart:e.v2.spacing(16),paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),paddingInlineEnd:e.v2.spacing(8)})),R=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:n})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:n?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),z=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})),H=styled(f)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),$=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1,minWidth:0,overflow:"hidden"})),A=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",minWidth:0,overflow:"hidden"})),O=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",flexShrink:0,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),_=styled(Box)(()=>({position:"relative",zIndex:999999}));function q(e){return e.scrollWidth-e.clientWidth>1}function oe({children:e}){let n=useRef(null),[r,t]=useState(false);return jsx(p,{arrow:true,placement:"top",title:e,open:r,onOpen:()=>{let u=n.current;u&&q(u)&&t(true);},onClose:()=>t(false),componentsProps:{tooltip:{sx:{maxWidth:280,whiteSpace:"normal",wordBreak:"break-word"}}},wrapperProps:{sx:{flex:1,minWidth:0,display:"block",overflow:"hidden"}},children:jsx(B,{ref:n,sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})})}var K=memo(oe);function ie({label:e,icon:n,name:r,menuItems:t,setSelected:u,onSelect:C,selected:s,displayChildrenCount:I,disabled:i,placement:h="right",sx:g,menuSx:P}){let[f,S]=useState(null),l=useRef(null),[a,p]=useState(false),w=o=>{!i&&s!==void 0&&(u({name:o,selected:!s}),s||p(false));};return useEffect(()=>{p(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(R,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${f?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!f&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{f&&S(null);},onClick:o=>{i||(o.stopPropagation(),w(r));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[s!==void 0&&jsx(H,{size:"small",indeterminate:a,checked:s,disabled:i}),jsxs($,{children:[n&&n,jsxs(A,{children:[e&&jsx(K,{children:e}),!!t?.length&&jsxs(G,{children:[I&&jsx(O,{children:t.length}),jsx("img",{src:vb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(se,{open:!!(f&&t?.length),anchorEl:f,placement:h==="left"?"left-start":"right-start",sx:{zIndex:99999,...P},children:jsx(b,{className:"child-dropdown",menuItems:t,placement:h,sx:P,onChildrenChange:o=>{let y=o.every(d=>d.selected);s!==void 0&&!i&&(y&&u({name:r,selected:true}),o.every(d=>!d.selected)&&u({name:r,selected:false}),p(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!y));},onSelect:o=>{C(o,r);}})})]})}var M=memo(ie);function ae({title:e,menuItems:n,onChildrenChange:r,onSelect:t,className:u,updatedList:C,footer:s,header:I,placement:i="right",...h}){let[g,P]=useState({name:"",selected:false}),[f,S]=useState();return useEffect(()=>{S(n);},[n]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,p=[],w=d=>d?.map(m=>(p.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:w(m.menuItems)}})),y=(d=>d.map(m=>m.name===l?(p.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:w(m.menuItems)}}):m))(f);S(y),C&&C(y),r&&r(y),t&&t(p);}},[g]),jsxs(z,{component:"article",className:`tap-dropdown ${u||""}`,...h,children:[jsx(_,{children:e&&jsx(k,{component:"p",children:e})}),I,jsx(F,{children:f?.map((l,a)=>jsx(M,{setSelected:({name:p,selected:w})=>{P({name:p,selected:w});},onSelect:p=>{t&&t(p);},placement:i,...l},`${l.name}-${a}`))}),s&&s]})}var b=memo(ae);var Y=(e,{menuItemSx:n,menuSx:r})=>(e.forEach(t=>{t.sx={...n,...t.sx},t.menuSx={...r,...t.menuSx},t.menuItems?.length&&Y(t.menuItems,{menuItemSx:n,menuSx:r});}),e);function he({title:e,menuItems:n,onSelect:r,updatedList:t,header:u,placement:C="right",menuItemSx:s={},menuSx:I={},...i}){let h=useMemo(()=>Y(n,{menuItemSx:s,menuSx:I}),[n,s,I]),[g,P]=useState(h),f=Bc(useId(),"nested-dropdown");useEffect(()=>{P(h);},[h]);let S=l=>{let a=w=>w.map(o=>({...o,selected:l.find(y=>o.name===y.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),p=a(g);P(p),t&&t(p);};return jsx(b,{id:f,"data-testid":"NestedDropdown",placement:C,menuItems:g,title:e,header:u,onSelect:l=>{r&&r(l),S(l);},...i})}var Z=memo(he);var Qe=Z;export{M as a,b,Qe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,j as j$1,V,U,n,R,d as d$1}from'./chunk-
|
|
1
|
+
import {b,j as j$1,V,U,n,R,d as d$1}from'./chunk-GUXJEFPL.js';import {nc}from'./chunk-L7L22FDR.js';import {Nj,m}from'./chunk-GCJPCGH3.js';import {memo,forwardRef,useState,useMemo,useCallback}from'react';import Fe from'@mui/material/ClickAwayListener';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import Pe from'@mui/material/SvgIcon';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';var c="os-shared-CurrenciesMenu",r={root:`${c}-root`,trigger:`${c}-trigger`,triggerInfo:`${c}-triggerInfo`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,static:`${c}-static`,flag:`${c}-flag`,category:`${c}-category`,categoryLabel:`${c}-categoryLabel`,option:`${c}-option`,optionLabel:`${c}-optionLabel`};function $e({currency:e,className:o,sx:t}){let i=u=>{u.currentTarget.src!==Nj&&(u.currentTarget.src=Nj);};return jsx(d$1,{src:e?m(e):Nj,alt:e||"flag",onError:i,className:nc(r.flag,o),sx:t??{width:14,height:14}})}var C=memo($e);var j=e=>jsx(Pe,{viewBox:"0 0 8 5",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"})});function Se({currency:e,selected:o,renderOption:t}){return t?jsx(Fragment,{children:t(e,{selected:o})}):jsxs(Fragment,{children:[jsx(C,{currency:e}),jsx(j$1,{sx:{fontSize:11},className:r.optionLabel,children:e})]})}var re=memo(Se);var y=styled(d)(()=>({display:"inline-block"})),S=styled(b,{shouldForwardProp:e=>e!=="$open"})(({theme:e,$open:o=false})=>{let{base:t,border:i,brand:u}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"space-between",height:32,border:`1px solid ${i.default}`,borderRadius:e.v2.radius(4),backgroundColor:t.white,minWidth:74,padding:e.v2.spacing(8),color:t.black,...Re(o,u[500]),"&.Mui-disabled":{opacity:.7,border:`1px solid ${i.default}`,backgroundColor:t.white,color:t.black}}});function Re(e,o){return e?{borderColor:o}:{}}var O=styled(d)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0})),M=styled(j$1)(()=>({fontSize:"11px",fontWeight:500,lineHeight:1.1})),F=styled(d,{shouldForwardProp:e=>e!=="$open"})(({$open:e=false})=>({display:"flex",alignItems:"center",flexShrink:0,transition:"transform 200ms cubic-bezier(0.4, 0, 0.2, 1)",...e&&{transform:"rotate(180deg)"}})),te=styled(d)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0,padding:e.v2.spacing(8)})),oe=styled(d)(({theme:e})=>({borderBottom:`1px solid ${e.v2.palette.border.default}`,paddingBottom:e.v2.spacing(8),"&:last-child":{borderBottom:"none",paddingBottom:0}})),ne=styled(j$1)(({theme:e})=>({color:e.v2.palette.grey[500],fontSize:"10px",fontWeight:500,lineHeight:"100%",padding:e.v2.spacing(8)})),se=styled(V)({gap:"4px",borderTop:"none !important",height:24,[`& .${U.indicator}`]:{fontSize:11},"&:hover":{boxShadow:"7px 0px 8px 0px #F2F2F2"}});function Ae({currency:e,selected:o,onSelect:t,renderOption:i}){return jsx(se,{isSelected:o,startAdornment:null,onClick:()=>t(e),className:nc(r.option),children:jsx(re,{currency:e,selected:o,renderOption:i})})}var ae=memo(Ae);function z(e){if(!e)return "";for(let o of e){if(typeof o=="string")return o;let t=o.items??[];if(t.length>0)return t[0]}return ""}function le(e){if(!e||e.length===0)return [];let o=[],t=[],i=0,u=()=>{t.length>0&&(o.push({key:`flat-${i++}`,items:t}),t=[]);};for(let m of e)if(typeof m=="string")t.push(m);else {u();let l=m.items??[];if(l.length===0)continue;o.push({key:`group-${i++}`,label:m.label,items:l});}return u(),o}function ce(e){if(!e)return 0;let o=0;for(let t of e)typeof t=="string"?o+=1:o+=t.items?.length??0;return o}var pe=forwardRef(({value:e,defaultValue:o,onChange:t,options:i,isLoading:u=false,disabled:m=false,id:l,className:b,sx:x,menuPlacement:me,menuProps:ge,placeholder:h="",triggerIcon:D,renderOption:fe,renderSelected:N,...I},L)=>{let[G,V]=useState(null),[Ce,de]=useState(()=>o??z(i)),B=e!==void 0,v=B?e:Ce,$=!!G,ye=useMemo(()=>le(i),[i]),Z=useMemo(()=>ce(i),[i]),Me=useCallback(a=>{m||V(a.currentTarget);},[m]),A=useCallback(()=>{V(null);},[]),be=useCallback(a=>{B||de(a),t?.(a),A();},[B,t,A]),w=D===void 0?jsx(j,{}):D,{placement:xe,sx:P,...he}=ge??{},Ne=xe??me,Ie=useMemo(()=>[{margin:"8px 0",minWidth:74},...Array.isArray(P)?P:[P]],[P]);if(u)return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsxs(S,{variant:"secondary",disabled:true,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:jsx(M,{className:nc(r.triggerLabel),children:h})}),jsx(n,{size:12})]})});if(Z===0)return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsxs(S,{variant:"secondary",disabled:true,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:jsx(M,{className:nc(r.triggerLabel),children:h})}),w?jsx(F,{$open:false,className:nc(r.triggerArrow),children:w}):null]})});if(Z===1){let a=z(i);return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsx(te,{className:nc(r.static),children:N?jsx(Fragment,{children:N(a)}):jsxs(Fragment,{children:[jsx(C,{currency:a}),jsx(M,{className:nc(r.triggerLabel),children:a||h})]})})})}return jsx(Fe,{onClickAway:A,children:jsxs(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:[jsxs(S,{variant:"secondary",$open:$,disabled:m,onClick:Me,"aria-haspopup":"listbox","aria-expanded":$,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:N?jsx(Fragment,{children:N(v)}):jsxs(Fragment,{children:[jsx(C,{currency:v}),jsx(M,{className:nc(r.triggerLabel),children:v||h})]})}),w?jsx(F,{$open:$,className:nc(r.triggerArrow),children:w}):null]}),jsx(R,{open:$,anchorEl:G,placement:Ne,sx:Ie,...he,children:ye.map(a=>jsxs(oe,{className:nc(r.category),children:[a.label?jsx(ne,{className:nc(r.categoryLabel),children:a.label}):null,a.items.map((T,Le)=>jsx(ae,{currency:T,selected:T===v,onSelect:be,renderOption:fe},`${a.key}:${T}-${Le}`))]},a.key))})]})})});pe.displayName="CurrenciesMenu";var ze=memo(pe);export{r as a,ze as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {nc}from'./chunk-
|
|
1
|
+
import {nc}from'./chunk-L7L22FDR.js';import {forwardRef,memo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled}from'@mui/material/styles';var o="os-shared-MaskedText",t={root:`${o}-root`,start:`${o}-start`,mask:`${o}-mask`,end:`${o}-end`};var p=()=>jsxs("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,children:[jsx("circle",{cx:"3",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"8",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"13",cy:"4",r:"1.5",fill:"currentColor"})]});var k=styled("span")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.v2.spacing(2),minWidth:0,color:"inherit",font:"inherit",lineHeight:1,whiteSpace:"nowrap"})),m=styled("span")({minWidth:0}),c=styled("span")({display:"inline-flex",alignItems:"center",flexShrink:0,lineHeight:0,"& svg":{display:"block",width:16,height:8}});function M(e,d,n){let s=Math.max(0,d),a=Math.max(0,n);return !e||s+a>=e.length?{start:e,end:"",isMasked:false}:{start:e.slice(0,s),end:e.slice(e.length-a),isMasked:true}}var T=forwardRef(({className:e,sx:d,text:n,startLength:s=8,endLength:a=4,separator:y,id:h,...g},S)=>{let{start:C,end:N,isMasked:u}=M(n,s,a);return jsxs(k,{ref:S,id:h??"MaskedText",className:nc(t.root,e),sx:d,"data-testid":"MaskedText",...g,children:[jsx(m,{className:t.start,children:C}),u&&jsxs(Fragment,{children:[jsx(c,{className:t.mask,children:y??jsx(p,{})}),jsx(m,{className:t.end,children:N})]})]})});T.displayName="MaskedText";var P=memo(T);
|
|
2
2
|
export{t as a,P as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-6E2SGPTJ.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:l,buttonSx:S}){let{t:I}=useTranslation(),d=f??false,b$1=useCallback(s=>s===e&&!d?"active":"inActive",[e,d]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:v?.map(({render:s,...a},o)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:o})},`custom-status-slot-${o}`);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:S});if(!a.status)return null;let n=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&n.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:n.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},n[0]?.value??`status-group-${o}`)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {P,O as O$1}from'./chunk-
|
|
1
|
+
import {P,O as O$1}from'./chunk-GUXJEFPL.js';import {nc}from'./chunk-L7L22FDR.js';import {vn}from'./chunk-GCJPCGH3.js';import {forwardRef,useState,useEffect,memo}from'react';import {styled,alpha}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var d="os-shared-Sidebar",s={root:`${d}-root`,content:`${d}-content`,link:`${d}-link`,group:`${d}-group`,groupHeader:`${d}-groupHeader`,groupContent:`${d}-groupContent`,subLink:`${d}-subLink`};var k="linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",C=styled("div",{shouldForwardProp:r=>r!=="$isMaximized"})(({theme:r,$isMaximized:a=false})=>{let{base:i}=r.v2.palette;return {backgroundColor:alpha(i.white,.7),backdropFilter:r.v2.blur[8],width:183,position:"sticky",padding:`${r.v2.spacing(16)} ${r.v2.spacing(8)}`,paddingTop:a?vn:r.v2.spacing(16),height:"100%",overflow:"auto"}}),N=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(8)})),f={border:"none",width:"100%",textAlign:"left",font:"inherit",cursor:"pointer"},A=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:a=false})=>{let{base:i,foreground:n}=r.v2.palette;return {...f,...r.v2.typography.textVariants.body.small.regular,background:a?k:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:a?i.white:n.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}}),R=styled(P)(()=>({background:"transparent",border:"none !important",borderRadius:"4px !important",[`& .${O$1.summary}`]:{padding:0,paddingRight:8,minHeight:"40px",height:"40px","&.Mui-expanded":{minHeight:"40px",height:"40px"},marginBottom:4,borderRadius:"4px !important"},[`& .${O$1.content}`]:{borderTop:"none",padding:0}})),w=styled("span",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:a=false})=>{let{base:i,foreground:n}=r.v2.palette;return {...f,...r.v2.typography.textVariants.body.small.semibold,background:a?i.white:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4),width:"100%",cursor:"pointer"}}),h=styled("div")({display:"flex",flexDirection:"column"}),H=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:a=false})=>{let{base:i,foreground:n}=r.v2.palette;return {...f,...r.v2.typography.textVariants.body.small.semibold,background:a?k:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:a?i.white:n.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}});var m=r=>!!r.subSections?.length,G=forwardRef(({sections:r,activeSection:a,activeSubSection:i,onSelect:n,isMaximized:I=false,id:x,className:P,sx:D},E)=>{let e=a??r?.[0]?.id,T=r?.find(o=>o.id===e),v=i??T?.subSections?.[0]?.id??r?.[0]?.subSections?.[0]?.id,[F,g]=useState({});return useEffect(()=>{r?.length&&g(o=>{let t=false,u={...o};for(let c of r)m(c)&&(c.id in u||(u[c.id]=e===c.id,t=true));return t?u:o});},[r,e]),useEffect(()=>{e&&g(o=>!r?.some(t=>t.id===e&&m(t))||o[e]?o:{...o,[e]:true});},[e,r]),jsx(C,{ref:E,id:x,"data-testid":x??"Sidebar",className:nc(s.root,P),sx:D,$isMaximized:I,children:jsx(N,{className:s.content,children:r?.map(o=>m(o)?jsx(R,{className:s.group,expanded:F[o.id]??false,onChange:t=>g(u=>({...u,[o.id]:t})),slotProps:{root:{component:"section"}},label:jsx(w,{$isActive:e===o.id,onClick:()=>n?.(o,o.subSections?.[0]),className:s.groupHeader,children:o.title}),content:jsx(h,{className:s.groupContent,children:o.subSections?.map(t=>jsx(H,{type:"button",$isActive:v===t.id,"aria-current":v===t.id?"true":void 0,onClick:()=>n?.(o,t),className:s.subLink,children:t.title},`${o.id}-${t.id}`))})},o.id):jsx(A,{type:"button",$isActive:e===o.id,"aria-current":e===o.id?"true":void 0,onClick:()=>n?.(o),className:s.link,children:o.title},o.id))})})});G.displayName="Sidebar";var O=memo(G);export{s as a,O as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ZONDSLTR.js';import {p}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ZONDSLTR.js';import {p}from'./chunk-GUXJEFPL.js';import {Bc,f as f$1}from'./chunk-L7L22FDR.js';import {mb}from'./chunk-GCJPCGH3.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs}from'react/jsx-runtime';var m=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}});var d=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function f({value:t,index:e}){let s=Bc(useId(),"rating-count"),{t:u}=useTranslation();return jsx(p,{title:u("totalPaymentCount",{amount:f$1(t)}),wrapperProps:{display:"inline-flex"},children:jsx(a,{id:s,order:e,variants:m(e),"data-testid":"RatingCount",children:jsxs(d,{children:[jsx("img",{src:mb,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,P as P$1,O,V as V$1,R as R$1,d}from'./chunk-
|
|
1
|
+
import {j,P as P$1,O,V as V$1,R as R$1,d}from'./chunk-GUXJEFPL.js';import {nc,mc}from'./chunk-L7L22FDR.js';import {Pc}from'./chunk-GCJPCGH3.js';import {forwardRef,useRef,useState,memo}from'react';import Te from'@mui/material/ClickAwayListener';import Le from'@mui/material/CircularProgress';import Ce from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var i="os-shared-GroupedSelect",r={root:`${i}-root`,trigger:`${i}-trigger`,hasLabel:`${i}-hasLabel`,triggerIcon:`${i}-triggerIcon`,menu:`${i}-menu`,groups:`${i}-groups`,group:`${i}-group`,groupLabel:`${i}-groupLabel`,option:`${i}-option`,optionCheck:`${i}-optionCheck`};function P({open:e}){return jsx(Ce,{viewBox:"0 0 8 5",sx:{width:8,height:5,transform:e?"rotate(180deg)":"none",transition:"transform 0.2s ease"},children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})})}var W=styled(m,{shouldForwardProp:e=>e!=="open"&&e!=="disabled"})(({disabled:e})=>({display:"flex",alignItems:"center",cursor:e?"not-allowed":"pointer",position:"relative",maxWidth:"100%"})),A=styled(m,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:t})=>({flex:1,minWidth:0,height:32,maxHeight:32,borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],cursor:t?"default":"pointer",position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 28px 0 8px",[`&:where(.${r.hasLabel})`]:{height:40,maxHeight:40,justifyContent:"flex-end"}})),R=styled(j,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t})=>({fontSize:"10px",fontWeight:500,lineHeight:"10px",color:t?e.palette.text.disabled:e.palette.grey[700],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:8})),B=styled(m,{shouldForwardProp:e=>e!=="$placeholder"&&e!=="$disabled"})(({theme:e,$placeholder:t,$disabled:S})=>({fontSize:"11px",lineHeight:"11px",color:S?e.palette.text.disabled:t?e.palette.text.secondary:"#000",height:22,display:"flex",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"})),D=styled(m,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t})=>({position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:t?e.palette.action.disabledOpacity:1})),F=styled(m)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"})),z=styled(P$1)(({theme:e})=>{let t=`1px solid ${alpha(e.palette.common.black,.1)}`;return {flexShrink:0,border:0,borderRadius:0,"&.Mui-expanded:not(:last-of-type)":{borderBottom:t},[`&:last-of-type .${O.summary}`]:{borderBottom:"none"},[`&.Mui-expanded:last-of-type .${O.summary}`]:{borderBottom:t},[`& .${O.summary}`]:{backgroundColor:e.palette.common.white,borderBottom:t,minHeight:28,height:"auto","& .MuiAccordionSummary-content":{margin:"auto"},"&.Mui-expanded":{backgroundColor:"#F8F8F8",minHeight:28,height:"auto"}},[`& .${O.content}`]:{borderTop:"none"}}}),K=styled(j)(({theme:e})=>({fontSize:"10px",color:e.v2.palette.grey[500],fontWeight:600,lineHeight:"10px"})),V=styled(V$1)(()=>({fontSize:"10px",fontWeight:500,textTransform:"none",justifyContent:"space-between",padding:"8px 20px"}));function Ee(e,t){return e?.id===t?.id}var Y=forwardRef(({id:e,label:t,placeholder:S,renderValue:Z,IconComponent:J,isLoading:Q=false,options:U,value:f,onChange:X,isOptionEqualToValue:_=Ee,renderOption:ee,renderGroupLabel:oe,open:te,onOpenChange:re,expandedGroupIndex:b,defaultExpandedGroupIndex:le=0,onExpandedGroupChange:ne,disabled:p=false,sx:ae,menuSx:ie,className:de},se)=>{let C=useRef(null),[G,pe]=useState(null),[ce,ue]=useState(le),s=te??G!==null,c=G??C.current,me=b??ce,w=useRef(void 0);s&&c&&c.clientWidth>0&&(w.current=c.clientWidth);let ge=w.current,h=(o,l)=>{pe(l),re?.(o);},Se=o=>{if(p)return;let l=!s;h(l,l?o.currentTarget:null);},$=()=>{s&&h(false,null);},fe=o=>{o.key==="Escape"&&$();},he=(o,l)=>{let a=l?o:null;b===void 0&&ue(a),ne?.(a);},ye=o=>{o.disabled||(X?.(o),h(false,null));},T=Z?.(f)??f?.label??null,L=J,E=!!t;return jsx(Te,{onClickAway:$,children:jsxs(W,{ref:se,id:e,"data-testid":"GroupedSelect",className:nc(r.root,de),sx:ae,open:s,disabled:p,onClick:Se,onKeyDown:fe,children:[jsxs(A,{ref:C,className:nc(r.trigger,E&&r.hasLabel),disabled:p,children:[E&&jsx(R,{$disabled:p,children:t}),jsx(B,{$placeholder:T==null,$disabled:p,children:T??S??""}),jsx(D,{className:r.triggerIcon,$disabled:p,children:Q?jsx(Le,{size:14,sx:{color:"text.secondary"}}):L?jsx(L,{className:nc(s&&"MuiSelect-iconOpen")}):jsx(P,{open:s})})]}),jsx(R$1,{open:s,anchorEl:c,placement:"bottom-start",className:r.menu,sx:mc({width:ge??c?.clientWidth,marginTop:"4px"},ie),children:jsx(F,{className:r.groups,onClick:o=>o.stopPropagation(),onMouseDown:o=>o.stopPropagation(),children:(U??[]).map((o,l)=>jsx(z,{className:r.group,expanded:me===l,onChange:a=>he(l,a),slotProps:{root:{square:true}},label:oe?.(o.group,l)??jsx(K,{variant:"caption",className:r.groupLabel,children:o.group}),content:(o?.options||[]).map((a,xe)=>{let be=_(a,f);return jsxs(V,{className:r.option,startAdornment:null,isDisabled:a.disabled,onClick:()=>ye(a),children:[ee?.(a)??a.label,be&&jsx(d,{src:Pc,alt:"selected",sx:{width:14,height:10},className:r.optionCheck})]},`${l}-${xe}`)})},`${l}`))})})]})})});Y.displayName="GroupedSelect";var ke=memo(Y);export{r as a,ke as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {$,Fb,A,wc,xc}from'./chunk-
|
|
1
|
+
import {$,Fb,A,wc,xc}from'./chunk-L7L22FDR.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function H(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function ge(){let[e,n]=useState(H);return useEffect(()=>{let t;function o(){cancelAnimationFrame(t),t=requestAnimationFrame(()=>{n(H());});}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),cancelAnimationFrame(t);}},[]),e}var Te=()=>{let[e,n]=useState(false),[t,o]=useState(false),r=useCallback(()=>{n(true);},[]),s=useCallback(()=>{n(false);},[]),i=useCallback(()=>{o(true);},[]),a=useCallback(()=>{o(false);},[]);return {onMouseContentEnter:i,onMouseContentLeave:a,isHovered:e,isContentHovered:t,onMouseEnter:r,onMouseLeave:s}};function be({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let r;return e?o(e):r=setTimeout(()=>{o(e);},n),()=>{clearTimeout(r);}},[e]),t}function Me(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(s=>({...s,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(s=>s?t[s]:"",[t])}}var ke=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{$()||(window.location.href="/login");},[e]);};function He(e){return {isParameterSelected:(o,r)=>r?.map(s=>Fb(e,o,s)),getColumnOrder:o=>{let r=e.findIndex(s=>s.name?.toLowerCase()===o?.toLowerCase());return r===-1?100:r}}}var De=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=e?.current;if(!o)return;let r=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});return r.observe(o),()=>r.disconnect()},[e]),{showShadow:n}};var Pe=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function ze(){let[e,n]=useState(0),t=useRef(null),o=A(e),r=()=>{t.current&&(clearInterval(t.current),t.current=null);},s=()=>{r(),n(0);},i=a=>{a<=0||(t.current&&r(),n(a),t.current=setInterval(()=>{n(c=>{let u=c-1;return u<=0&&r(),u});},1e3));};return useEffect(()=>()=>{r();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:r,resetTimer:s}}var Ne=e=>{let n=useMemo(()=>new Map(e.map(i=>[i.code.toLowerCase(),i])),[e]),t=useCallback(i=>n.get(i.toLowerCase()),[n]),o=useCallback(({appCode:i,serviceCode:a})=>t(i)?.app_services.find(({code:c})=>c.toLowerCase()===a.toLowerCase()),[t]),r=useCallback(({appCode:i,serviceCode:a})=>o({appCode:i,serviceCode:a})?.functions??[],[o]),s=useCallback(({appCode:i,serviceCode:a,functionCode:c})=>r({appCode:i,serviceCode:a}).find(({code:u})=>u?.toLowerCase()===c.toLowerCase()),[r]);return {getAppInfo:t,getServiceInfo:o,getServiceFunctions:r,getFunctionInfo:s}};function F(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Xe(e,n){let t=useRef(n);t.current=n,useEffect(()=>{let o=r=>{let s=r;t.current(...s.detail||[]);};return window.addEventListener(e,o),()=>{window.removeEventListener(e,o);}},[e]);}var et=(e,n)=>{let{selectedEntity:t,selectedMerchant:o,displayName:r}=useMemo(()=>{let s=n?.entities.find(c=>c.id===e?.entityId),i=s?.merchants?.find(c=>c.id===e?.merchantId),a=i?.display_name??i?.legacy_id??"Select";return {selectedEntity:s,selectedMerchant:i,displayName:a}},[n,e?.entityId,e?.merchantId]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:r}};var se=()=>crypto.randomUUID();function rt(){let e=F("on-toast"),n=useCallback(t=>(o,r)=>{let s=r?.id??se();return e({action:"show",variant:t,message:o,options:{...r,id:s}}),s},[e]);return useMemo(()=>{let t=n("default");return t.success=n("success"),t.error=n("error"),t.loading=n("loading"),t.custom=n("custom"),t.dismiss=o=>{e({action:"dismiss",variant:"dismiss",toastId:o});},t.remove=o=>{e({action:"remove",variant:"remove",toastId:o});},t},[n,e])}var ae=10;function at({threshold:e=ae,containerRef:n}={}){let[t,o]=useState(true),[r,s]=useState(false),[i,a]=useState(false),c=useCallback(l=>{let{scrollTop:m,scrollHeight:p,clientHeight:f}=l;a(p>f+e),o(m<=e),s(p-(m+f)<=e);},[e]),u=useCallback(l=>{if(l){if("currentTarget"in l){c(l.currentTarget);return}c(l);}},[c]);return useEffect(()=>{if(!n?.current)return;let l=n.current;u(l);let m=new ResizeObserver(()=>{u(l);});return m.observe(l),()=>{m.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:r,scrollable:i}}var lt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:r=5e3}=e,s=typeof window<"u"&&typeof navigator<"u",[i,a]=useState(s?navigator.onLine:true),[c,u]=useState(false),[l,m]=useState(null),p=useRef(null),f=useRef(null),g=useCallback(d=>{p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{a(d),p.current=null;},o);},[o]);return useEffect(()=>{if(!s)return;let d=null,w=()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null);},v=async()=>{u(true),m(null),d?.abort(),d=new AbortController;try{let M=window.setTimeout(()=>{d?.abort();},r),y=await fetch(n,{method:"GET",cache:"no-store",signal:d.signal});window.clearTimeout(M);let x=y.ok;g(x),x?w():m(`Health check failed with status ${y.status}`);}catch{g(false),m("Unable to reach network");}finally{u(false);}},S=()=>{w(),g(true);},C=()=>{g(false),w(),v(),f.current=window.setInterval(v,t);};return window.addEventListener("online",S),window.addEventListener("offline",C),navigator.onLine||(v(),f.current=window.setInterval(v,t)),()=>{window.removeEventListener("online",S),window.removeEventListener("offline",C),p.current!==null&&window.clearTimeout(p.current),w(),d?.abort();}},[s,n,t,o,r,g]),s?{isOnline:i,isChecking:c,error:l}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var dt=(e={},n,t)=>{let o=wc(e,t.requiredFilterKeys);return {columns:useMemo(()=>xc(n,o,t),[n,o])}};function ht(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}function Ct(){let[e,n]=useState(true);return {onScrollHandler:useCallback(o=>{let{scrollTop:r,scrollHeight:s,clientHeight:i}=o.currentTarget,a=r===0||i<s-r-1;n(c=>c===a?c:a);},[]),showShadow:e}}export{ge as a,Te as b,be as c,Me as d,ke as e,He as f,De as g,Pe as h,ze as i,Ne as j,F as k,Xe as l,et as m,rt as n,at as o,lt as p,dt as q,ht as r,Ct as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,d,n}from'./chunk-
|
|
1
|
+
import {j,d,n}from'./chunk-GUXJEFPL.js';import {Wb,nc}from'./chunk-L7L22FDR.js';import {Bj,Ij,Oe}from'./chunk-GCJPCGH3.js';import {forwardRef,useState,useCallback,useImperativeHandle,useEffect,useMemo,memo}from'react';import {useDropzone}from'react-dropzone';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var i="os-shared-FileDropbox",e={root:`${i}-root`,header:`${i}-header`,title:`${i}-title`,format:`${i}-format`,zone:`${i}-zone`,content:`${i}-content`,textWrapper:`${i}-textWrapper`,maximum:`${i}-maximum`,upload:`${i}-upload`,uploadAgain:`${i}-uploadAgain`};var y=styled("div")(({theme:o})=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:o.v2.spacing(32)})),f=styled("div")(()=>({paddingInline:"40px"})),s=styled(j,{shouldForwardProp:o=>o!=="$isError"})(({theme:o,$isError:l})=>{let{base:n,error:b}=o.v2.palette;return {color:l?b[500]:n.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:o.v2.spacing(8)}});styled(j)(({theme:o})=>{let{base:l}=o.v2.palette;return {color:alpha(l.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"}});var u=styled("div",{shouldForwardProp:o=>o!=="$width"})(({theme:o,$width:l})=>{let{grey:n}=o.v2.palette;return {width:l||431,minHeight:176,border:"1px dashed #DDDDDD",borderRadius:o.v2.radius(8),padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n[50]}}),g=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(24),color:"inherit",fontSize:"14px",lineHeight:"20px",cursor:"default"})),I=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(8),color:"inherit"})),w=styled("div")(({theme:o})=>{let{base:l}=o.v2.palette;return {color:alpha(l.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"}}),O=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),Q=styled("button")(({theme:o})=>{let{base:l,grey:n}=o.v2.palette;return {color:l.black,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:o.v2.radius(4),border:`1px solid ${n[100]}`,backgroundColor:l.white,cursor:"pointer"}});var _=forwardRef(function({accept:l,footer:n$1,options:b,isLoading:S,progress:ee,error:P,errorHint:oe,subtitle:h,isSuccess:T,action:te,title:a,width:N,progressVariant:re,className:C,sx:$,id:d$1,invalidFileTypeText:R="Invalid file type",fileTooLargePrefix:j="File is larger than",uploadingText:le="Uploading...",waitText:ae="Please wait",uploadBulkFileText:ie="Upload bulk file",uploadAgainText:pe="Upload again",clickToUploadText:ne="Click to upload",orDragAndDropText:se="or drag and drop",maximumFileSizePrefix:de="Maximum file size",supportedFormatsPrefix:A="Supported formats"},xe){let[x,M]=useState([]),{getRootProps:ce,getInputProps:me,open:D,acceptedFiles:Z,isDragReject:E,fileRejections:m}=useDropzone(b),B=useCallback(()=>{M([]);},[]);useImperativeHandle(xe,()=>({open:D,clear:B}),[D,B]),useEffect(()=>{M(Z);},[Z]);let v=Wb(b?.maxSize||0,0).toUpperCase(),c=useMemo(()=>{let be=m.length>0&&m[0].errors.some(W=>W.code==="file-invalid-type"),De=m.length>0&&m[0].errors.some(W=>W.code==="file-too-large");return E||be?R:De?`${j} ${v}`:P},[E,P,m,v,R,j]),z=useMemo(()=>x.length?jsxs(I,{className:e.textWrapper,children:[jsx("span",{children:x[0].name}),jsx(w,{className:e.maximum,children:Wb(x[0].size)})]}):null,[x]);return T&&x.length&&!S?jsxs(y,{id:d$1,"data-testid":d$1??"FileDropbox",className:nc(e.root,C),sx:$,children:[jsxs(f,{className:e.header,children:[typeof a=="string"?jsx(s,{className:e.title,children:a}):a??jsx(s,{className:e.title,children:"File uploaded"}),h]}),jsx(u,{className:e.zone,$width:N,children:jsxs(g,{"data-slot":"content",className:e.content,children:[T&&jsx(d,{src:Bj,alt:"Upload complete",sx:{width:56,height:56}}),z]})}),n$1]}):S&&x.length?jsxs(y,{id:d$1,"data-testid":d$1??"FileDropbox",className:nc(e.root,C),sx:$,children:[jsxs(f,{className:e.header,children:[a&&typeof a!="string"?a:jsxs(Fragment,{children:[jsx(s,{className:e.title,children:typeof a=="string"?a:le}),jsx("span",{className:e.format,children:ae})]}),h]}),jsx(u,{className:e.zone,$width:N,children:jsxs(g,{"data-slot":"content",className:e.content,children:[S&&jsx(n,{size:56,value:ee,variant:re??"determinate"}),z]})}),n$1]}):jsxs(y,{id:d$1,"data-testid":d$1??"FileDropbox",className:nc(e.root,C),sx:$,children:[jsxs(f,{className:e.header,children:[c?jsx(s,{$isError:true,className:e.title,children:c}):typeof a=="string"?jsx(s,{className:e.title,children:a}):a??jsx(s,{className:e.title,children:ie}),h||!!c&&jsx("span",{className:e.format,children:`${A}: xls, xlsx`})]}),jsxs(u,{className:e.zone,$width:N,...ce(),children:[jsx("input",{...me()}),jsxs(g,{"data-slot":"content",className:e.content,children:[jsx(d,{src:c?Ij:Oe,alt:c?"Upload error":"Upload file",sx:{width:56,height:56}}),oe,z,te??jsx(Fragment,{children:c?jsx(Q,{type:"button",className:e.uploadAgain,onClick:D,children:pe}):jsxs(I,{className:e.textWrapper,children:[jsxs("span",{children:[jsx(O,{className:e.upload,onClick:D,children:ne})," ",se]}),jsxs(w,{className:e.maximum,children:[de," ",v]}),l&&jsxs("span",{className:e.format,children:[A," ",l]})]})})]})]}),n$1]})});_.displayName="FileDropbox";var L=memo(_);export{e as a,L as b};
|