@tap-payments/os-micro-frontend-shared 0.3.90 → 0.3.92
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-HYLNOMXW.js → chunk-2QNM7IM2.js} +1 -1
- package/build/_chunks/{chunk-PMHLK2PT.js → chunk-2R6P6DU4.js} +1 -1
- package/build/_chunks/{chunk-377S3PZH.js → chunk-2VTSAHJM.js} +1 -1
- package/build/_chunks/{chunk-OS6PJ6ZY.js → chunk-33TLLLA5.js} +2 -2
- package/build/_chunks/{chunk-IXW6CXFF.js → chunk-3CQIT722.js} +1 -1
- package/build/_chunks/{chunk-QGC2MB6V.js → chunk-3XARCT5A.js} +1 -1
- package/build/_chunks/{chunk-B4PSQ7XM.js → chunk-4GKMDC6K.js} +1 -1
- package/build/_chunks/chunk-4YOBVV3E.js +1 -0
- package/build/_chunks/{chunk-4QILQQSY.js → chunk-4ZS26SCI.js} +1 -1
- package/build/_chunks/{chunk-MM6WDJ3N.js → chunk-52BKJ3WT.js} +1 -1
- package/build/_chunks/{chunk-4BITWE32.js → chunk-6QJAAXTE.js} +1 -1
- package/build/_chunks/{chunk-QQA6W4GZ.js → chunk-6QPZCZW3.js} +1 -1
- package/build/_chunks/{chunk-4GXW5U2G.js → chunk-6X7XULAL.js} +1 -1
- package/build/_chunks/{chunk-RKPQ5VR7.js → chunk-7IYOIKEE.js} +1 -1
- package/build/_chunks/{chunk-X5YTORYF.js → chunk-7WI47NLK.js} +1 -1
- package/build/_chunks/{chunk-24247WX3.js → chunk-7XKECAO5.js} +1 -1
- package/build/_chunks/{chunk-2RUGRHL4.js → chunk-A5SYP7KH.js} +1 -1
- package/build/_chunks/{chunk-UME7ZRC5.js → chunk-AHBFVTBR.js} +1 -1
- package/build/_chunks/{chunk-VWHLCW72.js → chunk-ARZK7WOR.js} +1 -1
- package/build/_chunks/chunk-AYKYAW5X.js +1 -0
- package/build/_chunks/{chunk-YY2OBWYE.js → chunk-AZMPU7LJ.js} +1 -1
- package/build/_chunks/{chunk-O3YKHA5T.js → chunk-B2YHRQFN.js} +1 -1
- package/build/_chunks/{chunk-4TPT6JTM.js → chunk-BF3LIYX5.js} +1 -1
- package/build/_chunks/{chunk-7KY6BDBZ.js → chunk-BR6DDNGN.js} +1 -1
- package/build/_chunks/{chunk-WS3WBAXS.js → chunk-CH2MG5SR.js} +1 -1
- package/build/_chunks/{chunk-PKBKS36T.js → chunk-D37WEL4S.js} +1 -1
- package/build/_chunks/{chunk-IQERDMX3.js → chunk-DIBYVRXO.js} +1 -1
- package/build/_chunks/{chunk-AUUCVIPA.js → chunk-DPBUMSG7.js} +1 -1
- package/build/_chunks/{chunk-VFOXHNHC.js → chunk-E26HLISU.js} +1 -1
- package/build/_chunks/{chunk-SCRNRHPS.js → chunk-E2QCGXWP.js} +1 -1
- package/build/_chunks/{chunk-H6RLRNGU.js → chunk-E2ZEEVOW.js} +1 -1
- package/build/_chunks/{chunk-ILEH4ZCX.js → chunk-E3RFYIF4.js} +1 -1
- package/build/_chunks/{chunk-Q5HUWB37.js → chunk-E5UYGUQI.js} +1 -1
- package/build/_chunks/{chunk-KSKVPXRQ.js → chunk-EGYAEG3S.js} +1 -1
- package/build/_chunks/{chunk-S4NV2NDC.js → chunk-EJ2YK4JG.js} +1 -1
- package/build/_chunks/{chunk-DI3R4DGT.js → chunk-EROFIJEB.js} +1 -1
- package/build/_chunks/chunk-ETCFQM4S.js +2 -0
- package/build/_chunks/{chunk-I6OQJHGY.js → chunk-F2UUKCKC.js} +1 -1
- package/build/_chunks/{chunk-D3TT7Q43.js → chunk-G4B2COJS.js} +1 -1
- package/build/_chunks/{chunk-6SBRJQ6B.js → chunk-GWOACUYR.js} +1 -1
- package/build/_chunks/{chunk-Z7K7C63D.js → chunk-HHXTWSA7.js} +1 -1
- package/build/_chunks/{chunk-VPJMDSPZ.js → chunk-HJIXBSS4.js} +1 -1
- package/build/_chunks/{chunk-GPTSL3RR.js → chunk-HLAFVGLC.js} +1 -1
- package/build/_chunks/{chunk-SDICYJG6.js → chunk-HOGQVKRI.js} +1 -1
- package/build/_chunks/{chunk-IO2GG65C.js → chunk-HT4WS7Z2.js} +1 -1
- package/build/_chunks/{chunk-6WYKHPWU.js → chunk-HUSU7XIY.js} +1 -1
- package/build/_chunks/{chunk-KNXNOJAZ.js → chunk-HVSA3A7H.js} +1 -1
- package/build/_chunks/chunk-HZEMOGFU.js +1 -0
- package/build/_chunks/{chunk-F5WQ6KES.js → chunk-IBXW3QPT.js} +1 -1
- package/build/_chunks/{chunk-P7VTNEAV.js → chunk-IDASX3FT.js} +1 -1
- package/build/_chunks/{chunk-XX6W34G6.js → chunk-IMAGISQZ.js} +1 -1
- package/build/_chunks/{chunk-SAZOJUTQ.js → chunk-IRBNCFCG.js} +1 -1
- package/build/_chunks/{chunk-UGN63WB2.js → chunk-IUF75SVM.js} +1 -1
- package/build/_chunks/chunk-IUQS2RHF.js +1 -0
- package/build/_chunks/{chunk-AMX3QV5M.js → chunk-IUZTPFV7.js} +1 -1
- package/build/_chunks/{chunk-C7MSR26B.js → chunk-IXQQI44U.js} +1 -1
- package/build/_chunks/{chunk-QPPNXH6W.js → chunk-JAL624HY.js} +1 -1
- package/build/_chunks/{chunk-7TERDFGH.js → chunk-JUKLFJQB.js} +1 -1
- package/build/_chunks/{chunk-JJHDAMUT.js → chunk-K3EQAK7G.js} +1 -1
- package/build/_chunks/{chunk-6I7AKXXA.js → chunk-KON2OXDU.js} +1 -1
- package/build/_chunks/{chunk-TCQ6OI7B.js → chunk-KPDHUUAN.js} +1 -1
- package/build/_chunks/{chunk-A3WCIQVK.js → chunk-KPSB6TOX.js} +1 -1
- package/build/_chunks/{chunk-2LMOC67R.js → chunk-KRAXTVV6.js} +1 -1
- package/build/_chunks/{chunk-OLJMFVTC.js → chunk-KTOJBKJU.js} +1 -1
- package/build/_chunks/{chunk-Y5IUA3MQ.js → chunk-LLCS4L25.js} +1 -1
- package/build/_chunks/{chunk-6P2F3ZMG.js → chunk-LSGWHMP3.js} +1 -1
- package/build/_chunks/{chunk-UN3YOTN2.js → chunk-M27ZTOOT.js} +1 -1
- package/build/_chunks/{chunk-6ZQ4BPAO.js → chunk-MKIJRZVH.js} +1 -1
- package/build/_chunks/{chunk-RNMXNMBK.js → chunk-MKU56XQU.js} +1 -1
- package/build/_chunks/{chunk-QJP5C6WC.js → chunk-MSKV7WGK.js} +1 -1
- package/build/_chunks/{chunk-JXYXAWCE.js → chunk-MTSPU7DE.js} +1 -1
- package/build/_chunks/{chunk-TBRZVNZL.js → chunk-N7K5AYOU.js} +1 -1
- package/build/_chunks/{chunk-OXVIXOO4.js → chunk-NS6TYTQB.js} +1 -1
- package/build/_chunks/{chunk-OV67AWDJ.js → chunk-OIRRGP2Q.js} +1 -1
- package/build/_chunks/{chunk-F53IA65K.js → chunk-P4DF2UNP.js} +1 -1
- package/build/_chunks/{chunk-SOPBN7BO.js → chunk-PGEZ4PLA.js} +1 -1
- package/build/_chunks/{chunk-ZSRAZXDZ.js → chunk-PTTQO6FS.js} +1 -1
- package/build/_chunks/{chunk-SZAW6CJB.js → chunk-PWBCBQDD.js} +1 -1
- package/build/_chunks/{chunk-WKU44ZYD.js → chunk-QJKNT55A.js} +1 -1
- package/build/_chunks/{chunk-D5OSASRI.js → chunk-QO6HHPQ2.js} +1 -1
- package/build/_chunks/{chunk-7657ALXY.js → chunk-QT3JFVSU.js} +1 -1
- package/build/_chunks/{chunk-X7O4IZTW.js → chunk-QU6CDB3S.js} +1 -1
- package/build/_chunks/{chunk-ODIPTPTE.js → chunk-RNODEDAU.js} +1 -1
- package/build/_chunks/{chunk-4V4V6ROC.js → chunk-RW2YU6WS.js} +1 -1
- package/build/_chunks/chunk-RZ3IAVXL.js +2 -0
- package/build/_chunks/{chunk-GP7VBH2M.js → chunk-SKKU43MT.js} +1 -1
- package/build/_chunks/{chunk-ZYZ2UVUM.js → chunk-TCO6KQVC.js} +1 -1
- package/build/_chunks/chunk-TKV75GFJ.js +1 -0
- package/build/_chunks/{chunk-Y3YDLYTR.js → chunk-U2OS74L3.js} +1 -1
- package/build/_chunks/{chunk-XBHS3IRV.js → chunk-U6NVSXII.js} +1 -1
- package/build/_chunks/{chunk-2FHGLBCD.js → chunk-U7D6FRCA.js} +1 -1
- package/build/_chunks/{chunk-3HWBXYVC.js → chunk-U7VSW2TH.js} +1 -1
- package/build/_chunks/chunk-UCDJY6XI.js +2 -0
- package/build/_chunks/{chunk-EAIKBTKT.js → chunk-UDQKATXD.js} +1 -1
- package/build/_chunks/{chunk-W4A3JZ7E.js → chunk-UEBY5H6U.js} +1 -1
- package/build/_chunks/{chunk-BBBRWJGK.js → chunk-UEKI3BKF.js} +1 -1
- package/build/_chunks/{chunk-LPOTVTYZ.js → chunk-ULODM6GK.js} +1 -1
- package/build/_chunks/{chunk-S5R6XTGV.js → chunk-VQUB4N5H.js} +1 -1
- package/build/_chunks/{chunk-AWUU6Z3Q.js → chunk-VW7WFFY3.js} +1 -1
- package/build/_chunks/{chunk-NQYOESW4.js → chunk-W5HUJVZ6.js} +1 -1
- package/build/_chunks/{chunk-6N3EEA4U.js → chunk-W7IQPI6F.js} +1 -1
- package/build/_chunks/{chunk-NKQ46NHH.js → chunk-WCPA5T5O.js} +1 -1
- package/build/_chunks/{chunk-NRUU54AF.js → chunk-WGKAMY4Q.js} +1 -1
- package/build/_chunks/{chunk-SZPF2F7C.js → chunk-WIE6M7QX.js} +1 -1
- package/build/_chunks/{chunk-B7TZPAFY.js → chunk-WOXDIHLC.js} +1 -1
- package/build/_chunks/{chunk-7WHTYGZT.js → chunk-WR3UZZDU.js} +1 -1
- package/build/_chunks/{chunk-AJWYXGWY.js → chunk-XDHDMRFK.js} +1 -1
- package/build/_chunks/{chunk-B5JDPAHW.js → chunk-XWXZCZT5.js} +1 -1
- package/build/_chunks/{chunk-A5AZR6U3.js → chunk-Y3K5QLGR.js} +1 -1
- package/build/_chunks/{chunk-ZPR7O5XM.js → chunk-Y4RSYIQG.js} +1 -1
- package/build/_chunks/{chunk-24C7X5EX.js → chunk-YMRHZK3W.js} +1 -1
- package/build/_v2/components/primitives/Accordion/icons.d.ts +3 -0
- package/build/_v2/components/primitives/Accordion/style.d.ts +6 -0
- package/build/_v2/components/primitives/Accordion/type.d.ts +14 -6
- package/build/_v2/components/primitives/Badge/index.d.ts +1 -1
- package/build/_v2/components/primitives/Badge/style.d.ts +2 -2
- package/build/_v2/components/primitives/Badge/type.d.ts +4 -4
- package/build/_v2/components/primitives/Button/constants.d.ts +4 -3
- package/build/_v2/components/primitives/Button/style.d.ts +1 -0
- package/build/_v2/components/primitives/CircularProgress/style.d.ts +1 -1
- package/build/_v2/components/primitives/CopyButton/CopyButton.d.ts +1 -1
- package/build/_v2/components/primitives/CopyButton/constants.d.ts +4 -0
- package/build/_v2/components/primitives/CopyButton/style.d.ts +3 -2
- package/build/_v2/components/primitives/CopyButton/type.d.ts +2 -2
- package/build/_v2/components/primitives/Menu/type.d.ts +1 -1
- package/build/_v2/components/primitives/index.d.ts +1 -1
- 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/CircularProgressWithLabel.d.ts +2 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/CircularProgressWithLabel/style.d.ts +3 -3
- 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/CountBadge/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/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/LazyRemote/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/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/RemoteFallback/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/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.js +1 -1
- package/build/constants/apps.d.ts +3 -0
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/index.js +1 -1
- package/build/constants/moduleFederation.d.ts +3 -0
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-46OV7IMB.js +0 -2
- package/build/_chunks/chunk-6LXNFUE6.js +0 -2
- package/build/_chunks/chunk-CGXZNOIQ.js +0 -1
- package/build/_chunks/chunk-KM3ZAYLF.js +0 -1
- package/build/_chunks/chunk-KYLLP7I3.js +0 -1
- package/build/_chunks/chunk-OBZVFXWP.js +0 -2
- package/build/_chunks/chunk-X3FYDVDM.js +0 -1
- package/build/_chunks/chunk-ZS2GMVTG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1,g,a as a$3}from'./chunk-
|
|
1
|
+
import {b as b$1,g,a as a$3}from'./chunk-AYKYAW5X.js';import {a as a$2}from'./chunk-ULODM6GK.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Lc}from'./chunk-W5HUJVZ6.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=Lc(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-RW2YU6WS.js';import {e}from'./chunk-HZEMOGFU.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {Bh}from'./chunk-RZ3IAVXL.js';import {memo,useId}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(Box,{shouldForwardProp:t=>t!=="isLongLabel"})(({theme:t,isLongLabel:i})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:i?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));function u({ids:t,visible:i,label:o,onDismiss:d,dismissible:m=true}){let c=Lc(useId(),"active-filter-chip");return i?jsxs(l,{id:c,"data-testid":"ActiveFilterChip",isLongLabel:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),m&&jsx(e,{pointer:true,round:true,onClick:d,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:Bh,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var N=s;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Lc}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {yj}from'./chunk-RZ3IAVXL.js';import {memo,useId}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(r)(({theme:t})=>({border:`1px solid ${t.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:t})=>({padding:"8px 12px",borderBottom:`1px solid ${t.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40})),f=styled(a)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),g=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),I=styled(r)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(r)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(r)(()=>({margin:"12px "}));function N({children:t,...e}){let i=Lc(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...e,children:t})}var S=memo(N);function P({children:t,action:e,...i}){let d=Lc(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:t}),e&&e]})}var T=memo(P);function A({allowShadow:t=true,children:e,...i}){let d=Lc(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=a$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[e,L&&t&&jsx(r,{component:"img",src:yj,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var E=memo(A);function G({children:t,icon:e,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[e&&e,jsx(f,{noWrap:true,className:"content",children:t})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ut=S;export{T as a,E as b,J as c,ut as d};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {a}from'./chunk-KHM5KW53.js';import {Lc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-KHM5KW53.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {li}from'./chunk-RZ3IAVXL.js';import {useState,useId}from'react';import T from'@mui/material/Skeleton';import i from'@mui/material/Box';import {styled,Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var h=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),c=styled(Box)`
|
|
2
2
|
position: absolute;
|
|
3
|
-
`;function d({mainIcon:B,overlayIcon:p,mainIconAlt:u="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:b={top:10,left:17},borderColor:w="#F2F2F2",label:y="",sx:I,onError:W,containerSx:C}){let[e,s]=useState(true),F=Lc(useId(),"icon-with-badge");return jsx(a,{title:y,children:jsx(i,{id:F,"data-testid":"IconWithBadge",display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(h,{style:{borderColor:w,width:a$1,height:a$1},children:[t&&e&&jsx(i,{width:t,height:t,children:e&&jsx(T,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[p&&jsx(c,{sx:b,children:p}),jsx(i,{width:t,height:t,component:"img",src:B||
|
|
3
|
+
`;function d({mainIcon:B,overlayIcon:p,mainIconAlt:u="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:b={top:10,left:17},borderColor:w="#F2F2F2",label:y="",sx:I,onError:W,containerSx:C}){let[e,s]=useState(true),F=Lc(useId(),"icon-with-badge");return jsx(a,{title:y,children:jsx(i,{id:F,"data-testid":"IconWithBadge",display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(h,{style:{borderColor:w,width:a$1,height:a$1},children:[t&&e&&jsx(i,{width:t,height:t,children:e&&jsx(T,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[p&&jsx(c,{sx:b,children:p}),jsx(i,{width:t,height:t,component:"img",src:B||li,alt:u,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:e?0:1,...I},onError:n=>{s(false),n.currentTarget.src=li,W?.(n);},onLoad:()=>{s(false);}})]})]})})})}var M=d;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-JAL624HY.js';import {Lc,pb}from'./chunk-W5HUJVZ6.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=Lc(useId(),"progress-ring"),m=t==null||t==="",F=pb(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {memo,useId}from'react';import {styled,Switch}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(Switch)(({theme:i})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:i.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:i.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:i.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.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:i.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function r(i){let d=Lc(useId(),"ios-switch");return jsx(o,{id:d,"data-testid":"IOSSwitch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...i})}r.displayName="IOSSwitch";var a=memo(r);var f=a;export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {t,s}from'./chunk-RZ3IAVXL.js';import {useId}from'react';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var c=styled(S)(()=>({height:10}));styled("span")(({theme:o})=>({fontSize:o.typography.body2.fontSize,lineHeight:"17px",fontWeight:"700"}));styled("span")(()=>({fontWeight:"400"}));var l=styled("span")(({symbol:o,fontSize:e,color:t})=>({display:"inline-block",height:e,width:e,backgroundColor:t,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var u={SAR:s,AED:t};function g({currency:o,fontSize:e,color:t,sx:m={}}){let a=Lc(useId(),"currency-symbol"),n=u[o];return n?t?jsx(l,{id:a,"data-testid":"CurrencySymbol",symbol:n,fontSize:e,color:t,"aria-label":o,role:"img",sx:m}):jsx(c,{id:a,"data-testid":"CurrencySymbol",component:"img",src:n,alt:o,sx:{height:e,...m}}):jsx(Fragment,{children:o})}var b=g;var B=b;export{B as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {zj,j,m as m$1}from'./chunk-RZ3IAVXL.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {jsx}from'react/jsx-runtime';function g({countryCode:o,currencyCode:t,...n}){let l=Lc(useId(),"country-flag");return jsx(d,{...n,id:l,"data-testid":"CountryFlag",component:"img",src:o&&j(o)||t&&m$1(t)||zj,width:n.width||16,alt:o??t??"flag",loading:"lazy",onError:u=>{u.currentTarget.src=zj;}})}g.displayName="CountryFlag";var m=memo(g);var h=m;export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {Ea,Da}from'./chunk-ETCFQM4S.js';import {memo,useId}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function p(o){let m=Lc(useId(),"checkbox");return jsx(Checkbox,{id:m,"data-testid":"Checkbox",disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"16px !important",height:"16px !important"}}),checkedIcon:o.disabled?Ea:Da,...o})}p.displayName="CheckboxInput";var d=memo(p);var u=d;export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {dc}from'./chunk-RZ3IAVXL.js';import {useId}from'react';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var e=styled(motion.img,{shouldForwardProp:n=>n!=="width"&&n!=="height"})(({width:n,height:i})=>({width:n||"16px",height:i||"16px"}));var h=({width:n,height:i,sx:p}={})=>{let m=Lc(useId(),"animated-spinner-icon");return jsx(e,{id:m,"data-testid":"AnimatedSpinnerIcon",src:dc,alt:"Loading",className:"spinner-loader",width:n,height:i,sx:p,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}})},r=h;var u=r;export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-ULODM6GK.js';import {a as a$2}from'./chunk-IUQS2RHF.js';import {a as a$3}from'./chunk-NS6TYTQB.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-4ZS26SCI.js';import {tb,Cb,A,Ab,Nc}from'./chunk-RZ3IAVXL.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:tb,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:tb,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?Cb: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:Ab,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:Nc,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:Nc,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:Nc,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:Cb,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 {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-PGEZ4PLA.js';import {d}from'./chunk-EJ2YK4JG.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {memo,useState,useId}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';var c=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),C=styled(l)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(l)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),h=styled(l)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function p({children:o,index:e,dialogRef:a,height:t,onClick:r,order:s,dragControls:d,style:m}){let n=Lc(useId(),"dialog");return jsx(c,{id:n,"data-testid":"Dialog",drag:true,dragListener:false,dragMomentum:false,dragControls:d,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+s},onClick:r,ref:a,style:m,children:o})}function L({title:o,onCloseDialog:e,...a$1}){let[t,r]=useState(false);return jsx(d,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:n=>{n.stopPropagation(),e();}}),...a$1})}var M=memo(L);var K=p;export{C as a,b,h as c,M as d,K as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-JAL624HY.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {useId}from'react';import i from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(i)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gridTemplateRows:`repeat(${e}, 1fr)`,gap:"6px"})),g=styled(i)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0"})),$=styled(i)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),M=styled(g)(()=>({fontSize:"9px"})),O=styled(i)(()=>({display:"flex",flexDirection:"row",gap:"10px",padding:"22px 12px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:m,tooltip:l}){let s=Lc(useId(),"heat-map"),c=e.labels,d=t.labels;return jsxs(O,{id:s,"data-testid":"HeatMap",children:[jsxs(u,{rows:d.length,columns:1,children:[jsx("span",{}),d.map((r,o)=>jsx(M,{sx:{minWidth:"25px"},children:t.render?t.render(r):r},`${o}-${r}`))]}),jsxs(u,{rows:d.length,columns:c.length,children:[c.map((r,o)=>jsx(g,{children:e.render?e.render(r):r},`${o}-${r}`)),d.map(r=>c.map((o,h)=>{if(m)return jsx(a,{variant:"rectangular",width:"24px",height:"8px"},`${o}-${h}`);let f=n?.[o]?.[r]??{};return jsx(a$1,{title:l?.render&&f?.value?l.render(f,o,r):null,children:jsx($,{percentage:f?.colorOpacityDegree})},`${o}-${h}`)}))]})]})}var k=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let m=n-t,l=(e-t)/m,s=Math.floor(l*10);return k[Math.max(0,Math.min(10,s))]}var B=x;export{D as a,B as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,c as c$1,d as d$1}from'./chunk-
|
|
1
|
+
import {a,c as c$1,d as d$1}from'./chunk-PGEZ4PLA.js';import {c,d}from'./chunk-EJ2YK4JG.js';import {b,a as a$1}from'./chunk-E3RFYIF4.js';import {Lc,Ha}from'./chunk-W5HUJVZ6.js';import {Bf}from'./chunk-RZ3IAVXL.js';import {createContext,memo,useRef,useId,useContext,useCallback,useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import Ue from'@mui/material/Box';import {Resizable}from're-resizable';import Xe from'react-draggable';import {motion}from'framer-motion';var O=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{}});var ye=555,Te=545;function q({children:e,isOpen:o,onClose:i,defaultWindowHeight:r,defaultWindowWidth:a,initialPosition:s,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}){let{height:n,width:f}=a$1(),u=a||ye,t=r||Te,[b,z]=useState({x:s?.x??f/2+u/2,y:s?.y??n/2-t/2}),[I,c]=useState(false),[v,P]=useState(false),[S,C]=useState(false),[h,R]=useState(true),w=useRef(),[E,W]=useState({width:a??0,height:r??0}),x=useCallback(g=>{w?.current?.updateSize(g);},[]),D=useCallback(g=>{w.current?.updateSize(g),W(B=>({width:g.width??B.width,height:g.height??B.height}));},[]),U=useMemo(()=>({position:b,setPosition:z,resizableRef:w,windowZIndex:1,isOpen:o,setIsMaximized:c,setIsSidebarExpanded:R,setIsToolbarAnimationDisabled:C,setIsResized:P,isMaximized:I,isToolbarAnimationDisabled:S,isSidebarExpanded:h,isResized:v,dimensions:E,setNewDimensions:W,viewerDefaultWidth:u,viewerDefaultHeight:t,onClose:i,fullWindowWidth:f,fullWindowHeight:n,updateRefSize:x,updateSize:D,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}),[b,z,w,o,c,R,C,P,I,S,h,v,E,W,f,n,u,t,x,D,i,l,d,p,m]);return jsx(O.Provider,{value:U,children:e})}var A=.5,de=183,pe=287,se=840,le=545,Y=35;function Pe({title:e,onClose:o,onMaximize:i,maximized:r=false,id:a$1,onRequestClick:s,isSidebarExpanded:l=false,isHovered:d$2=false,onMouseHover:p,onMouseLeave:m,showSectionsButton:n,rightActions:f,icon:u}){return jsx(c,{id:a$1,"data-testid":"UserTitleBar",maximized:r||false,children:jsx(d,{onMouseEnter:p,onMouseLeave:m,isMaximized:r,isHovered:d$2,title:e,icon:u||Bf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:o}),jsx(c$1,{isMaximized:r,onClick:i}),n&&jsx(d$1,{onClick:s,isExpanded:!l,isHovered:d$2,children:"Sidebar"})]}),rightActions:f})})}var me=memo(Pe);var $=me;function ke({isMaximized:e,setIsToolbarAnimationDisabled:o,setIsMaximized:i,onClose:r,isSidebarExpanded:a,setIsSidebarExpanded:s,isToolbarAnimationDisabled:l,title:d,showSectionsButton:p,rightActions:m,icon:n}){let{isHovered:f,onMouseEnter:u,onMouseLeave:t}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx($,{title:d||"Users",showSectionsButton:p,onClose:r,onMaximize:()=>{i?.(b=>!b),o?.(true),setTimeout(()=>{o?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{o?.(false),s(!a);},isSidebarExpanded:a,isHovered:f,onMouseHover:u,onMouseLeave:t,rightActions:m,icon:n})})}var ue=memo(ke);var xe=ue;function qe({children:e,titleBar:o,titleBarText:i,mainAppOrder:r,mainAppIsMinimized:a,showSectionsButton:s=true,rightActions:l,titleBarIcon:d}){let p=useRef(null),m=Lc(useId(),"app-window"),{dimensions:n,position:f,resizableRef:u,isMaximized:t,isOpen:b,onClose:z,viewerDefaultWidth:I,viewerDefaultHeight:c,windowZIndex:v,setPosition:P,setNewDimensions:S,isToolbarAnimationDisabled:C,fullWindowWidth:h,fullWindowHeight:R,setIsMaximized:w,setIsResized:E,isResized:W,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:D,isSidebarExpanded:U,minWidth:g,maxWidth:B,minHeight:He,maxHeight:Ae}=useContext(O),j=Ha(),Ie=useCallback((Z,X,ee)=>{E(true),S({width:ee.offsetWidth,height:ee.offsetHeight});},[S,E]),M=n.width||I;return createPortal(jsx(Xe,{nodeRef:p,disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:h/2-M/2,y:R/2-c/2},position:{x:h-f.x,y:f.y},onStop:(Z,X)=>{P({x:h-X.x,y:X.y});},bounds:{top:10},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",zIndex:Number(r||0)+v,...a&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:j?M:"fit-content",height:j?c:"fit-content"},...t&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:W?"fit-content":M,height:W?"fit-content":"100%",...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{w(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:b,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,left:true,right:true,bottomRight:true,bottom:true,top:true},size:{width:n.width,height:n.height},maxHeight:Ae??R-40,maxWidth:B??h,minWidth:t?"100vw":g??I,minHeight:t?"100vh":He??c,ref:Z=>{u.current=Z;},onResizeStart:()=>{x(true);},onResizeStop:()=>{x(false);},onResize:Ie,defaultSize:{width:M,height:c},style:{background:"transparent",height:n.height,overflow:"hidden",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ue,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[o??jsx(xe,{setIsToolbarAnimationDisabled:x,onClose:z,setIsMaximized:w,isToolbarAnimationDisabled:C,setIsSidebarExpanded:D,isSidebarExpanded:U,title:i,isMaximized:t,showSectionsButton:s,rightActions:l,icon:d}),e]})})})}),document.body)}var ce=memo(qe);var Je=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:o?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Ke=styled(Button)(({theme:e,disabled:o})=>({background:o?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Qe=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),je=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),eo=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var K=ce;function oo({children:e,windowProps:o,...i}){return i.isOpen?jsx(q,{...i,children:jsx(K,{...o,children:e})}):null}var ge=oo;function io({title:e,maximized:o=false,id:i,isHovered:r=false,onMouseHover:a,onMouseLeave:s,leftActions:l,titleIconSrc:d$1,sx:p,...m}){return jsx(c,{className:"header-wrapper",id:i,maximized:o||false,sx:p,...m,children:jsx(d,{onMouseEnter:a,onMouseLeave:s,isMaximized:o,isHovered:r,title:e||"",icon:d$1,leftActions:l})})}var Q=memo(io);function ao({isMaximized:e,id:o,isToolbarAnimationDisabled:i,title:r,leftActions:a$1,onClose:s,onMaximize:l,sx:d}){let{isHovered:p,onMouseEnter:m,onMouseLeave:n}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(Q,{title:r,maximized:e,id:o||"draggable-dialog-title",isHovered:p,onMouseHover:m,onMouseLeave:n,leftActions:a$1||jsxs(Fragment,{children:[jsx(a,{onClick:s}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:d})})}var We=memo(ao);var lo=We;var Rt=ge;export{O as a,q as b,A as c,de as d,pe as e,se as f,le as g,Y as h,$ as i,Je as j,Ke as k,Qe as l,je as m,eo as n,K as o,Q as p,lo as q,Rt as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {Lc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {Rd,Bi,Ci,Di,Ei,Fi}from'./chunk-RZ3IAVXL.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(a)(({theme:t})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:t.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),w=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var g=new Map([["json",Rd],["brand",Bi],["entity",Ci],["bank",Di],["individual",Ei],["password",Fi]]);function W({title:t,icon:n}){let x=Lc(useId(),"window-app-icon"),e=g.get(n||"")??(g.get(t?.toLowerCase())||n);return jsxs(w,{id:x,className:"action-box","data-testid":"WindowAppIcon",children:[e&&jsx(I,{src:e,alt:"icon"}),jsx(m,{className:"title",children:t})]})}var y=W;var z=y;export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-EROFIJEB.js';import {a}from'./chunk-AHBFVTBR.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {Cb,A as A$1}from'./chunk-RZ3IAVXL.js';import {useId,useMemo,useState}from'react';import d from'@mui/material/Box';import R from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var b=styled(d)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),k=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),v=styled(d,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),y=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(d$1,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({$hasSearchValue:e})=>({cursor:e?"pointer":"default",width:"100%",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(a)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),A=styled(a)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),L=styled(R)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:h,filteredOptions:a,isLoading:P,initialSalesChannels:m,initialSalesChannelsSearch:V}){let B=Lc(useId(),"sales-channel-filter"),o=useMemo(()=>m||[],[m]),[l,u]=useState(V||""),S=t=>o.some(i=>i.id===t),s=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(k,{id:B,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(v,{$active:!!l,children:jsx(y,{src:l?Cb:A$1,alt:"search",$isClear:!!l,onClick:()=>{u(""),h("");}})}),disabled:x,onChange:t=>{u(t.target.value),h(t.target.value);},value:l,disableUnderline:true}),jsx(b,{children:P?Array.from({length:9}).map((t,i)=>jsx(L,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:s,isIndeterminate:!s&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(s?[]:a);},children:s?"Deselect All":"Select All"}),a.map(t=>jsx(A,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let O=S(t.id)?o?.filter(D=>D.id!==t.id):[...o??[],t];e(O);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-KPSB6TOX.js';import {a as a$2}from'./chunk-NS6TYTQB.js';import {a}from'./chunk-GNY2VGGW.js';import {Lc,Ua}from'./chunk-W5HUJVZ6.js';import {Pk,Qk}from'./chunk-RZ3IAVXL.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var L=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),B=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),d=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),S=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),z=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),$=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),h=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=e=>e===0?12:e<=12?e:e-12,ue=e=>e>=12?"PM":"AM",j=()=>new Date().getMinutes(),F=()=>{let e=new Date().getHours();return _(e)},ce=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var N=["AM","PM"],f=12,g=59;function R({onChange:e,defaultTime:o,enableRealTimeChange:p,size:O="large"}){let U=Lc(useId(),"time-picker"),[A,y]=useState(null),[a$1,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[s,w]=useState(o?.hour??F()),[u,C]=useState(o?.minute??j()),H=!!A;useEffect(()=>{p&&e?.({hour:s,minute:u,period:a$1});},[s,u,a$1,p]);let G=r=>{y(r.currentTarget);},J=()=>{y(null),e?.({hour:s,minute:u,period:a$1});},K=r=>{q(r);},i=r=>r<10?`0${r}`:r.toString(),Q=r=>{let c=Ua(i(Number(r.target.value)));if(c>12){r.preventDefault();return}w(c);},I=()=>{w(r=>r===12?1:r+1);},v=()=>{w(r=>r===1?12:r-1);},V=r=>{let c=Ua(i(Number(r.target.value)));if(c>59){r.preventDefault();return}C(c);},X=()=>{C(r=>r===59?(I(),0):r+1);},Y=()=>{C(r=>r===0?(v(),59):r-1);};return jsx(te,{onClickAway:J,children:jsxs(m,{id:U,"data-testid":"TimePicker",children:[jsx(B,{size:O,open:H,onClick:G,children:`${i(s)}:${i(u)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(L,{children:[jsxs($,{children:[jsxs(k,{children:[jsx(d,{onClick:I,children:jsx("img",{src:Pk,alt:"arrow"})}),jsx(h,{value:i(s),onChange:Q}),jsx(d,{onClick:v,children:jsx("img",{src:Qk,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:Pk,alt:"arrow"})}),jsx(h,{value:i(u),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:Qk,alt:"arrow"})})]})]}),jsx(z,{children:N.map(r=>jsx(S,{onClick:()=>{K(r);},selected:a$1===r,children:r},r))})]})})]})})}var ve=R;export{_ as a,ue as b,j as c,F as d,ce as e,N as f,f as g,g as h,R as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-4ZS26SCI.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {memo,useId}from'react';import f from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(f,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",color:"#20232B"})),r=styled(a$1)(({theme:e})=>({padding:0,width:"14px !important",svg:{width:"14px !important",height:"14px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}}));function g({isSelected:e,isDisabled:o,isIndeterminate:l,hideCheckbox:p,onClick:s,children:c,className:t,...x}){let b=Lc(useId(),"menu-item"),n=o?"disabled menu-item":"menu-item",u=t?`${n} ${t}`:n;return jsxs(a,{id:b,"data-testid":"MenuItem",className:u,onClick:s,disabled:o,...x,children:[!p&&jsx(r,{size:"small",checked:e,indeterminate:l,disabled:o}),c]})}var N=memo(g);export{N as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {h,g,a,f,e as e$1,d,c}from'./chunk-
|
|
1
|
+
import {h,g,a,f,e as e$1,d,c}from'./chunk-RW2YU6WS.js';import {e}from'./chunk-HZEMOGFU.js';import {Lc,Ua,r}from'./chunk-W5HUJVZ6.js';import {jl,ha,Ra,zg,Vk,Wa,Qa,Ig,Hg,Jg,Gg,Lg,xb,wb,lk,Vj,eb,gk,B,w,A,D,Eh,Uj,u,mk}from'./chunk-RZ3IAVXL.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:o}){let[s,C]=useState(false),c=useTheme(),e=()=>{o||C(true);},i=()=>{C(false);},I=p?c.palette.common.white:c.palette.grey[700],u=s?c.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:I})]})})}var vt={inProgress:mk,initiated:mk,abandoned:u,cancelled:Uj,reversed:Eh,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:gk,unCaptured:eb,captured:Vj,authorized:lk,openFlag:wb,closedFlag:xb,unauthenticated:Lg,authenticated:Gg,paidOut:Jg,scheduled:Hg,checked:Ig,dashedChecked:Qa,deactivated:Wa,destination:Vk,destinationReversed:zg,outstanding:Ra,active:ha,inactive:jl};var Nt=memo(p=>{let{variant:o="inActive",badgeCount:s,icon:C,label:c$1,dropdownOptions:e$2,selectedStatus:i,onButtonBodyClick:I,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=Lc(useId(),"status-button"),[Lt,M]=useState(0),{t:E}=useTranslation(),y=useRef(null),[T,f$1]=useState(null),[n,A]=useState(i??e$2?.[0]?.status);useEffect(()=>{i!==void 0&&A(i);},[i]);let d$1=useMemo(()=>!!e$2?.length,[e$2]),h$1=!!T&&Lt>1,l=o==="active",x=useMemo(()=>l?"active":"inActive",[l]),m=useMemo(()=>n?e$2?.find(t=>t.status===n):null,[n,e$2]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:o,children:m.icon});let t=n&&u[n]?n:C;if(t&&u[t])return jsx(g,{icon:t,variant:o,src:u[t],alt:`${t}-icon`})},[m,n,u,C,o]),wt=useMemo(()=>!s||Number.isNaN(Ua(s))?null:jsx(e,{variant:x,children:r(Number(s))}),[s,x]),H=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);},[]),P=useCallback(()=>{d$1&&f$1(h$1?null:y.current);},[d$1,h$1]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),I?.(n||e$2?.[0]?.status||"all"),P(),M(B=>B+1);},[p,I,n,e$2,P]),D=useCallback(t=>B=>{t?.onClick?.(B),A(t.status),g$1();},[g$1]),Et=useMemo(()=>e$2?.map(t=>({...t,onClick:D(t)}))||[],[e$2,D]),yt=a[o],Tt=useMemo(()=>m?.label||(n?E(n):c$1),[m,n,E,c$1]);return jsxs(Fragment,{children:[jsx(yt,{id:St,"data-testid":"StatusButton",...bt,ref:y,onClick:Mt,statusVariant:o,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e$1,{variant:o,children:[kt,Tt,wt]}),H&&jsx(d,{children:H})]})}),h$1&&d$1&&jsx(c,{open:h$1,onClose:g$1,anchorEl:T,menuItems:Et})]})}),gt=Nt;var en=gt;
|
|
2
2
|
export{L as a,en as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {lk,jk,hk,ek,Wj,Yj,mk,Vj,Uj,kk,xh,qb,Zj,ob,_j,ak,bk,gk,fk,$j}from'./chunk-RZ3IAVXL.js';var b={ABANDONED:xh,IN_PROGRESS:mk,VOID:kk,CANCELLED:Uj,CAPTURED:Vj,INITIATED:mk,FAILED:Yj,DECLINED:Wj,RESTRICTED:ek,TIMEDOUT:hk,UNKNOWN:jk,AUTHORIZED:lk},C={UNKNOWN:{gatewayIcon:Zj,acquirerIcon:qb,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:Zj,acquirerIcon:qb,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:Zj,acquirerIcon:qb,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:_j,acquirerIcon:ob,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:_j,acquirerIcon:ob,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:Zj,acquirerIcon:qb,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:Zj,acquirerIcon:qb,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:Zj,acquirerIcon:qb}},R={PENDING:bk,REFUNDED:ak},S={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},O={PAID_OUT:$j,SETTLED:fk,PENDING:gk},k={AUTHORIZED:lk},w={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};export{b as a,C as b,R as c,S as d,O as e,k as f,w as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-QO6HHPQ2.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {mj}from'./chunk-RZ3IAVXL.js';import {memo,useId}from'react';import f from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var d=styled(f,{shouldForwardProp:t=>t!=="variant"&&t!=="size"&&t!=="width"&&t!=="height"})(({theme:t,variant:o="confirm",size:e="default",width:n,height:r})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%",gap:"8px","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"},...n!==void 0&&{width:n},...r!==void 0&&{height:r}}));function u({children:t,sx:o,...e}){let n=Lc(useId(),"button");return jsx(d,{id:n,"data-testid":"Button",sx:o,...e,children:t})}u.displayName="Button";var p=memo(u);function s({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:mj,alt:"Plus Button",width:24,height:24})})}s.displayName="PlusButton";var l=memo(s);var y=l;var q=p;export{y as a,q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-SKKU43MT.js';import {Lc,mc}from'./chunk-W5HUJVZ6.js';import {ni,kk,ha,Sd,Fj,E,Zk,C,tb}from'./chunk-RZ3IAVXL.js';import {useId,useMemo,useState,useCallback}from'react';import {useTranslation}from'react-i18next';import b from'@mui/material/Box';import V from'@mui/material/Popper';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var L=styled(b)(({theme:n})=>({background:n.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:148,width:"max-content",marginTop:"8px"})),l=styled(b,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:s})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",fontSize:"11px",fontWeight:500,color:n.palette.text.primary,"&:hover":{boxShadow:n.shadows[3]},...s&&{boxShadow:n.shadows[3]}})),u=styled(b)(()=>({display:"flex",alignItems:"center",gap:"8px"})),d=styled("img")(()=>({width:16,height:16,objectFit:"contain"})),$=styled(b)(()=>({height:27,display:"flex",alignItems:"center",padding:"0 12px",fontFamily:"Tap Sans",fontWeight:500,fontSize:"11px",lineHeight:"100%",letterSpacing:"0%",color:"#8D8D94",pointerEvents:"none",userSelect:"none"}));var F={refund:Zk,flag:E,viewReceipt:Fj,viewApi:Sd,capture:ha,void:kk,clipboard:ni};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=Lc(useId(),"actions-dropdown-menu"),{t:E}=useTranslation(),I=!!n,f=useMemo(()=>h.filter(e=>e.isShown!==false),[h]),g=useMemo(()=>M.filter(e=>e.isShown!==false),[M]);return I?jsxs(b,{id:v,"data-testid":"ActionsDropdownMenu",children:[jsx(a,{onClick:s}),jsx(V,{open:I,anchorEl:n,placement:"bottom-end",sx:{zIndex:1e3},children:jsxs(L,{children:[f.map((e,r)=>jsx(l,{onClick:p=>{p.stopPropagation(),e.onClick?.(p);},sx:r===f.length-1&&g.length>0?{borderBottom:"1px solid",borderColor:"divider"}:void 0,children:jsxs(u,{children:[jsx(d,{src:F[e.icon]??e.icon??C,alt:"action-icon"}),jsx("span",{children:e.label})]})},`direct-${r}`)),g.length>0&&jsx($,{children:E("linkedActions")}),g.map(({render:e,icon:r,label:p,onClick:T,onRightClick:i},c)=>{let m=e?.();return e&&!m?null:m?jsx(b,{children:m},`linked-${c}`):jsxs(l,{onClick:a=>{a.stopPropagation(),T?.(a),s();},onContextMenu:i?a=>{i(a);}:void 0,children:[jsxs(u,{children:[r&&jsx(d,{src:r,alt:"linked-action-icon"}),jsx("span",{children:p})]}),jsx("img",{src:tb,alt:""})]},`linked-${c}`)})]})})]}):null};var ne=({appCode:n,appIcon:s,appName:h,appInfo:M,menuItems:v})=>{let[E,I]=useState(null),f=!!E,g=useCallback(i=>{let c=i.currentTarget.firstElementChild;I(c);},[]),e=useCallback(()=>{I(null);},[]),r=useMemo(()=>v?.filter(({isShown:i=true})=>i),[v]);if(!r?.length)return null;let p=M?.iconUrl??s,T=mc(M?.name)??h;return jsxs(b,{onMouseEnter:g,onMouseLeave:e,children:[jsxs(l,{open:f,children:[jsxs(u,{children:[p&&jsx(d,{src:p,alt:"app"}),jsx("span",{children:T})]}),jsx("img",{src:tb,alt:""})]}),jsx(V,{open:f,anchorEl:E,placement:"left-start",sx:{zIndex:1301},children:jsx(L,{sx:{marginTop:0},children:r.map(({render:i,label:c,icon:m,onClick:a,onContextMenu:k},J)=>jsx(b,{children:i?.()??jsx(l,{onClick:C=>{C.stopPropagation(),a?.(C);},onContextMenu:k?C=>{k(C);}:void 0,children:jsxs(u,{children:[m&&jsx(d,{src:m,alt:"icon"}),jsx("span",{children:c})]})})},`app-${J}`))})})]})};export{X as a,ne as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-4ZS26SCI.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {useId}from'react';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),g=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),h=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),x=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),D=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),z=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),A=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),W=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),B=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),S=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function H({open:t,menuItems:n,anchorEl:a,onClose:d,footer:I,selected:f,multiple:w,allowShadows:p=true,...M}){let k=Lc(useId(),"dropdown-menu"),l=useTheme();return jsxs(g,{id:k,"data-testid":"DropdownMenu",open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...M,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(m,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:C=>{o.onClick&&o.onClick(C);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===f&&{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none"},...o.sx},children:[w&&jsx(S,{size:"small",checked:o.selected}),o.icon&&jsx(h,{children:o.icon}),jsx(x,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),I]})}var b=H;var Y=b;export{D as a,z as b,A as c,W as d,B as e,Y as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {Lf,Kf,Nf,Jf}from'./chunk-RZ3IAVXL.js';import {useId}from'react';import {styled,alpha}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var C=new Map([["warning",Kf],["success",Nf],["info",Jf],["error",Lf]]),c=styled("img")(()=>({width:"12px",height:"12px",flexShrink:0,marginTop:"2px"})),i=e=>e?.message===void 0||e.message===null||e.message===""?null:{...e,message:e.message,type:e.type??"error"},a=(e,o)=>{switch(o??"error"){case "warning":return {borderColor:alpha(e.palette.custom[500],.15),backgroundColor:alpha(e.palette.custom[500],.15),textColor:e.palette.custom[500]};case "success":return {borderColor:alpha(e.palette.success.dark,.15),backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark};case "info":return {borderColor:alpha(e.palette.info.dark,.12),backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark};default:return {borderColor:"#F7D9D9",backgroundColor:"#F7D9D9",textColor:"#CC0000"}}},p=e=>C.get(e??"error")??Lf;var n=styled("div",{shouldForwardProp:e=>e!=="type"})(({theme:e,type:o})=>{let{backgroundColor:d}=a(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:d,borderRadius:"0 0 4px 4px"}}),s=styled("div",{shouldForwardProp:e=>e!=="type"})(({theme:e,type:o})=>{let{textColor:d}=a(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:d,wordBreak:"break-word"}});function F({type:e,message:o,icon:d}){let x=Lc(useId(),"field-feedback"),r=i({type:e,message:o,icon:d});return r?jsxs(n,{id:x,"data-testid":"FieldFeedback",type:r.type,children:[r.icon??jsx(c,{src:p(r.type),alt:""}),jsx(s,{type:r.type,children:r.message})]}):null}export{c as a,i as b,a as c,p as d,n as e,s as f,F as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {Kc}from'./chunk-RZ3IAVXL.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var e=styled(d)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function l({error:r,...i}){let n=Lc(useId(),"error");return jsxs(e,{...i,id:n,"data-testid":"Error",children:[jsx("img",{src:Kc,alt:"w"}),r]})}var p=memo(l);var k=p;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-G4B2COJS.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {cf}from'./chunk-RZ3IAVXL.js';import {useId}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=({text:t,startLength:r=8,endLength:d=4,chipIndex:a,copyText:i,selectionProps:m})=>{let n=Lc(useId(),"masked-text"),c=t.slice(0,r),x=t.slice(t.length-d);return jsxs(b,{id:n,"data-testid":"MaskedText",chipIndex:a,copyText:i,selectionProps:m,children:[c,jsx("img",{src:cf,alt:"passwordDots"}),x]})},p=T;var g=p;export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-IUQS2RHF.js';import {a}from'./chunk-NS6TYTQB.js';import {a as a$2}from'./chunk-SKKU43MT.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {Ab}from'./chunk-RZ3IAVXL.js';import {Box}from'@mui/material';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useId,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(r,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),w=styled(r)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(r)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),v=styled(r)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function i({defaultValue:o,label:a$3,onChange:D,options:l}){let M=Lc(useId(),"dropdown2"),[d,s]=useState(null),[y,E]=useState(o),t=!!d,W=e=>{t||s(e.currentTarget);},m=()=>{t&&s(null);},k=e=>{E(e),D?.(e),m();};return jsxs(h,{onClick:W,open:t,id:M,"data-testid":"Dropdown2",children:[jsxs(w,{children:[jsx(b,{children:a$3}),jsx(v,{children:y})]}),jsx(Box,{component:"img",src:Ab,alt:"down arrow",sx:{width:15,...t&&{transform:"rotate(180deg)"}}}),jsx(a,{open:t,anchorEl:d,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:l.map((e,B)=>jsx(a$1,{onClick:()=>{k(e.value);},sx:T=>({...B!==l.length-1&&{borderBottom:`1px solid ${T.palette.divider}`}}),children:e.label},e.value))}),t&&jsx(a$2,{onClick:m})]})}var Q=i;export{Q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-G4B2COJS.js';import {Lc}from'./chunk-W5HUJVZ6.js';import {sa}from'./chunk-ETCFQM4S.js';import {memo,useId}from'react';import {jsx}from'react/jsx-runtime';var n={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...sa}},"Device Biometric":{text:"Biometric"}};function u({title:t,ref:r,...s}){let c=Lc(useId(),"authentication-type-chip"),i=n[t];return jsx(b,{id:c,"data-testid":"AuthenticationTypeChip",chipStyles:i?.styles,ref:r,...s,children:i?.text||t})}var h=memo(u);var W=h;export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc}from'./chunk-
|
|
1
|
+
import {Lc}from'./chunk-W5HUJVZ6.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import f from'@mui/material/Radio';import {jsx}from'react/jsx-runtime';var e={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},n={small:{iconSize:15,maxWidth:"24px"}},g=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)"})),l=styled(g)({backgroundColor:e.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),c=styled(f,{shouldForwardProp:o=>!["iconSize","checkedColor","disabledColor","hoverColor"].includes(o)})(({iconSize:o,checkedColor:d,disabledColor:t,hoverColor:r})=>({"& .MuiSvgIcon-root":{fontSize:o||n.small.iconSize},maxWidth:n.small.maxWidth,cursor:"pointer",color:e.color,"&.Mui-checked":{color:d||e.checkedColor},"&:hover":r?{backgroundColor:"transparent",color:r}:void 0,"&.Mui-disabled":{color:t||e.disabledColor}}));function p({size:o="small",customCheckedIcon:d,checkedColor:t,disabledColor:r,hoverColor:m,iconSize:u,showRipple:h=false,sx:C,...x}){let b=Lc(useId(),"radio-button");return jsx(c,{id:b,"data-testid":"RadioButton",size:o==="large"?"medium":o,disableRipple:!h,checkedIcon:d||jsx(l,{}),iconSize:u,checkedColor:t,disabledColor:r,hoverColor:m,sx:C,...x})}p.displayName="RadioButton";var k=memo(p);export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc,qc}from'./chunk-
|
|
1
|
+
import {Lc,qc}from'./chunk-W5HUJVZ6.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import x from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1,Avatar}from'@mui/material';import {motion}from'framer-motion';var p=styled(x,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var h=forwardRef(({children:e,...o},r)=>{let d=Lc(useId(),"table-cell");return jsx(p,{id:d,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),a=memo(h);var W=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?qc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),A=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),F=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),$=styled$1("img")(()=>({width:"12px",height:"12px"})),z=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),G=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),L=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),O=styled$1(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),l=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),V=styled$1(l)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),E=styled$1(l)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),H=styled$1(a)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),M=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Z=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),q=styled$1("img")(()=>({width:"36px",height:"24px"})),D=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{a,W as b,A as c,F as d,$ as e,z as f,G as g,L as h,O as i,l as j,V as k,E as l,H as m,M as n,Z as o,q as p,D as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ja,Rb,L,Gc,Hc}from'./chunk-
|
|
1
|
+
import {ja,Rb,L,Gc,Hc}from'./chunk-W5HUJVZ6.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function D(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function ge(){let[e,n]=useState(D);return useEffect(()=>{let t;function o(){cancelAnimationFrame(t),t=requestAnimationFrame(()=>{n(D());});}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);},[]),c=useCallback(()=>{o(false);},[]);return {onMouseContentEnter:i,onMouseContentLeave:c,isHovered:e,isContentHovered:t,onMouseEnter:r,onMouseLeave:s}};function Ee({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}var Ae=()=>{let[e,n]=useState(null),[t,o]=useState(void 0),[r,s]=useState(void 0),[i,c]=useState(false),[a,u]=useState(true),l=useCallback(()=>{u(false),setTimeout(()=>{u(true);},100);},[]),p=useCallback(m=>{if(m&&e?.getBoundingClientRect()){let{pageX:d,pageY:g}=m,f=e.getBoundingClientRect(),{left:v,right:w,bottom:h,top:M}=f;if(d>v&&d<w&&g>M&&g<h){c(true),setTimeout(()=>{c(false);},2e3);return}}n(null),o(void 0),s(void 0);},[e]);return {actionMenuAnchor:e,actionMenuOptions:t,selectedActionMenuId:r,isActionMenuCheckMarkHighlighted:i,setActionMenuAnchor:n,setActionMenuOptions:o,setSelectedActionMenuId:s,setIsActionMenuCheckMarkHighlighted:c,handleCloseActionMenu:p,hideDropdown:l,showActionsDropdown:a}};function Ie(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 Fe=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{ja()||(window.location.href="/login");},[e]);};function Ge(e){return {isParameterSelected:(o,r)=>r?.map(s=>Rb(e,o,s)),getColumnOrder:o=>{let r=e.findIndex(s=>s.name?.toLowerCase()===o?.toLowerCase());return r===-1?100:r}}}var _e=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 We=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function Je(){let[e,n]=useState(0),t=useRef(null),o=L(e),r=()=>{t.current&&(clearInterval(t.current),t.current=null);},s=()=>{r(),n(0);},i=c=>{c<=0||(t.current&&r(),n(c),t.current=setInterval(()=>{n(a=>{let u=a-1;return u<=0&&r(),u});},1e3));};return useEffect(()=>()=>{r();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:r,resetTimer:s}}var $e=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:c})=>t(i)?.app_services.find(({code:a})=>a.toLowerCase()===c.toLowerCase()),[t]),r=useCallback(({appCode:i,serviceCode:c})=>o({appCode:i,serviceCode:c})?.functions??[],[o]),s=useCallback(({appCode:i,serviceCode:c,functionCode:a})=>r({appCode:i,serviceCode:c}).find(({code:u})=>u?.toLowerCase()===a.toLowerCase()),[r]);return {getAppInfo:t,getServiceInfo:o,getServiceFunctions:r,getFunctionInfo:s}};function U(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function nt(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 st=(e,n)=>{let{selectedEntity:t,selectedMerchant:o,displayName:r}=useMemo(()=>{let s=n?.entities.find(a=>a.id===e?.entityId),i=s?.merchants?.find(a=>a.id===e?.merchantId),c=i?.display_name??i?.legacy_id??"Select";return {selectedEntity:s,selectedMerchant:i,displayName:c}},[n,e?.entityId,e?.merchantId]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:r}};var ce=()=>crypto.randomUUID();function ut(){let e=U("on-toast"),n=useCallback(t=>(o,r)=>{let s=r?.id??ce();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 ue=10;function pt({threshold:e=ue,containerRef:n}={}){let[t,o]=useState(true),[r,s]=useState(false),[i,c]=useState(false),a=useCallback(l=>{let{scrollTop:p,scrollHeight:m,clientHeight:d}=l;c(m>d+e),o(p<=e),s(m-(p+d)<=e);},[e]),u=useCallback(l=>{if(l){if("currentTarget"in l){a(l.currentTarget);return}a(l);}},[a]);return useEffect(()=>{if(!n?.current)return;let l=n.current;u(l);let p=new ResizeObserver(()=>{u(l);});return p.observe(l),()=>{p.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:r,scrollable:i}}var gt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:r=5e3}=e,s=typeof window<"u"&&typeof navigator<"u",[i,c]=useState(s?navigator.onLine:true),[a,u]=useState(false),[l,p]=useState(null),m=useRef(null),d=useRef(null),g=useCallback(f=>{m.current!==null&&window.clearTimeout(m.current),m.current=window.setTimeout(()=>{c(f),m.current=null;},o);},[o]);return useEffect(()=>{if(!s)return;let f=null,v=()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null);},w=async()=>{u(true),p(null),f?.abort(),f=new AbortController;try{let C=window.setTimeout(()=>{f?.abort();},r),A=await fetch(n,{method:"GET",cache:"no-store",signal:f.signal});window.clearTimeout(C);let x=A.ok;g(x),x?v():p(`Health check failed with status ${A.status}`);}catch{g(false),p("Unable to reach network");}finally{u(false);}},h=()=>{v(),g(true);},M=()=>{g(false),v(),w(),d.current=window.setInterval(w,t);};return window.addEventListener("online",h),window.addEventListener("offline",M),navigator.onLine||(w(),d.current=window.setInterval(w,t)),()=>{window.removeEventListener("online",h),window.removeEventListener("offline",M),m.current!==null&&window.clearTimeout(m.current),v(),f?.abort();}},[s,n,t,o,r,g]),s?{isOnline:i,isChecking:a,error:l}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var ht=(e={},n,t)=>{let o=Gc(e,t.requiredFilterKeys);return {columns:useMemo(()=>Hc(n,o,t),[n,o])}};function St(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}export{ge as a,Te as b,Ee as c,Ae as d,Ie as e,Fe as f,Ge as g,_e as h,We as i,Je as j,$e as k,U as l,nt as m,st as n,ut as o,pt as p,gt as q,ht as r,St as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-4YOBVV3E.js';import {rc,Lc,I,Sa}from'./chunk-W5HUJVZ6.js';import {aa}from'./chunk-ETCFQM4S.js';import {useId,useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import L from'dayjs';import V from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var b=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),w=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),K=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),B=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),S=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var W=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===aa.AMOUNT?`${Sa(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),$=(t,i,r=0)=>{let a=L(t).add(r,"hour").format(),n=new Date,e=L(a).isSame(n,"year");return I(a,i?void 0:{sameDay:`[Today] ${e?"":"YYYY"}`,nextDay:`[Tomorrow] ${e?"":"YYYY"}`,lastDay:`[Yesterday] ${e?"":"YYYY"}`,sameElse:`MMM DD ${e?"":", YYYY"}`,lastWeek:`MMM DD ${e?"":", YYYY"}`,nextWeek:`MMM DD ${e?"":", YYYY"}`},void 0,void 0,r!==void 0)};var G=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),e=L(r?.[0]),l=L(r?.[1]),f=e?.isSame(l,"day");if(t&&i?.length){let o=i[0],m=rc(o?.dataKey,o?.value),y=o?.payload?.date&&$(o?.payload?.date,f,o?.payload?.hour);return jsxs(b,{className:"chart-tooltip",children:[jsx(w,{children:y??o?.payload?.date}),jsxs(K,{children:[o?.dataKey===aa.AMOUNT&&jsxs(B,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(S,{children:a$1})]}),jsx(V,{children:`${W(o,n(m),a$1)}`})]})]})}return null},x=G;var _=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],q=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:_,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=q;var rt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let e=Lc(useId(),"activity-area-chart"),l=useTheme(),[f,o]=useState(false),[m,y]=useState({x:0,y:0}),I=t?.length===0,O=h=>{h.activeCoordinate&&h.isTooltipActive&&y(h.activeCoordinate);},R=useMemo(()=>jsx(x,{position:m,dateRange:a,selectedCurrency:n}),[m,a,n]);return r||I?jsx(T,{}):jsx(ResponsiveContainer,{id:e,"data-testid":"ActivityAreaChart",children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:O,children:[t.length>0&&jsx(Tooltip,{content:R,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:l.palette.success.dark,activeDot:{r:5,fill:l.palette.success.dark,strokeWidth:2,stroke:"white",cursor:f?"pointer":"default",onMouseOver:()=>o(true),onMouseLeave:()=>o(false)}})]})})},P=rt;var Ft=P;export{x as a,T as b,Ft as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Lc,Sa}from'./chunk-
|
|
1
|
+
import {Lc,Sa}from'./chunk-W5HUJVZ6.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=Lc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Sa(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
|