@tap-payments/os-micro-frontend-shared 0.3.42-test.2 → 0.3.42
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-I4COPQ4C.js → chunk-2FGR5JN5.js} +1 -1
- package/build/_chunks/{chunk-I6R25FMR.js → chunk-2S4H2JAL.js} +1 -1
- package/build/_chunks/{chunk-4P6ZZQ2G.js → chunk-33FKJNP7.js} +1 -1
- package/build/_chunks/{chunk-OKHBXELR.js → chunk-3YCKU4DK.js} +1 -1
- package/build/_chunks/{chunk-BOS3ADYY.js → chunk-4VE2IHOS.js} +1 -1
- package/build/_chunks/{chunk-UZOMSWKV.js → chunk-57YKBEB5.js} +1 -1
- package/build/_chunks/{chunk-VZXQLYN4.js → chunk-5LTIUQ6U.js} +1 -1
- package/build/_chunks/{chunk-L24M3I4M.js → chunk-6B2TVK4P.js} +1 -1
- package/build/_chunks/{chunk-PAA7NADC.js → chunk-6GSJDWNN.js} +1 -1
- package/build/_chunks/{chunk-XHPSU6QF.js → chunk-6HOOLWML.js} +1 -1
- package/build/_chunks/{chunk-QPLIPMD4.js → chunk-6YRFKIM7.js} +1 -1
- package/build/_chunks/{chunk-RVI7KSZF.js → chunk-6ZME25MK.js} +1 -1
- package/build/_chunks/{chunk-DMP6PHCI.js → chunk-75FN7OGX.js} +1 -1
- package/build/_chunks/{chunk-CBVDZEYY.js → chunk-7EZN7SFG.js} +1 -1
- package/build/_chunks/{chunk-DP5CASXJ.js → chunk-7TBUKG3Y.js} +1 -1
- package/build/_chunks/{chunk-Y57MN2VG.js → chunk-A4MQRSHS.js} +1 -1
- package/build/_chunks/{chunk-5XAHXIM7.js → chunk-AIJZLNPI.js} +1 -1
- package/build/_chunks/{chunk-4YB3HAGO.js → chunk-AMOIQYUU.js} +1 -1
- package/build/_chunks/{chunk-XW2J2KPJ.js → chunk-AQA6RN6Y.js} +1 -1
- package/build/_chunks/{chunk-3LVVUROK.js → chunk-BF2DJR5D.js} +1 -1
- package/build/_chunks/{chunk-6DNSIR65.js → chunk-BK5NFLW7.js} +1 -1
- package/build/_chunks/{chunk-COUV25ZZ.js → chunk-BVTUE34T.js} +1 -1
- package/build/_chunks/{chunk-OFNQIWKK.js → chunk-CRSKENK6.js} +1 -1
- package/build/_chunks/{chunk-EIUQOFPN.js → chunk-CTG5VDVB.js} +1 -1
- package/build/_chunks/{chunk-TPJXSVEG.js → chunk-D5P76S72.js} +1 -1
- package/build/_chunks/{chunk-6BYQUTWJ.js → chunk-DBVAJTKI.js} +1 -1
- package/build/_chunks/{chunk-SLCEJSNT.js → chunk-DDB6CB22.js} +1 -1
- package/build/_chunks/{chunk-L7ENYZ4X.js → chunk-DU4X4ALS.js} +1 -1
- package/build/_chunks/{chunk-PRXWB7K5.js → chunk-EASE36J7.js} +1 -1
- package/build/_chunks/{chunk-TYBQ6RW6.js → chunk-EDIWEYQ4.js} +1 -1
- package/build/_chunks/{chunk-XYVDOUJ4.js → chunk-EP2L6DGB.js} +1 -1
- package/build/_chunks/{chunk-DTOLSBEQ.js → chunk-ET5LSSLL.js} +1 -1
- package/build/_chunks/{chunk-ICS5JCCG.js → chunk-EXWXESV7.js} +1 -1
- package/build/_chunks/{chunk-EGDHQFV6.js → chunk-F7XWU75S.js} +1 -1
- package/build/_chunks/{chunk-ONZUOEKN.js → chunk-FNMIWM7I.js} +1 -1
- package/build/_chunks/{chunk-ZP6ZMVEN.js → chunk-FV2HUFG3.js} +1 -1
- package/build/_chunks/{chunk-NXJK5ISC.js → chunk-FXUM6ZPN.js} +1 -1
- package/build/_chunks/{chunk-PTKVI6RN.js → chunk-GAZSB4NT.js} +1 -1
- package/build/_chunks/{chunk-5NOT6WBJ.js → chunk-GE2AYPVJ.js} +1 -1
- package/build/_chunks/{chunk-JL7U6RTK.js → chunk-GFBZZPAX.js} +1 -1
- package/build/_chunks/{chunk-YSABXZRO.js → chunk-GGWMFLHD.js} +1 -1
- package/build/_chunks/{chunk-4EIC55Y7.js → chunk-GWPVHXGP.js} +1 -1
- package/build/_chunks/{chunk-UN6NUVKS.js → chunk-H7OBDGNY.js} +1 -1
- package/build/_chunks/{chunk-H75GQBML.js → chunk-HA4SCDXB.js} +1 -1
- package/build/_chunks/{chunk-MU432PD7.js → chunk-HJSNHIVV.js} +1 -1
- package/build/_chunks/{chunk-KE4SIIU4.js → chunk-HKZZH2DT.js} +1 -1
- package/build/_chunks/{chunk-EF656GMZ.js → chunk-HTYDHOCS.js} +1 -1
- package/build/_chunks/{chunk-EHVZJOPW.js → chunk-I6XJZLNU.js} +1 -1
- package/build/_chunks/{chunk-36BWU3VK.js → chunk-IBJEZA6H.js} +1 -1
- package/build/_chunks/{chunk-QZLB2AS7.js → chunk-J55PXUY6.js} +1 -1
- package/build/_chunks/{chunk-LDNK5TID.js → chunk-J5YM4YWV.js} +1 -1
- package/build/_chunks/{chunk-IV3UUSTK.js → chunk-JD67NQAY.js} +1 -1
- package/build/_chunks/{chunk-EUZTTEGQ.js → chunk-JIYK2XMC.js} +1 -1
- package/build/_chunks/{chunk-OWVQMVBC.js → chunk-JR4YXYBK.js} +1 -1
- package/build/_chunks/{chunk-NRJVNTJV.js → chunk-K5DBEMK6.js} +1 -1
- package/build/_chunks/{chunk-W4L5VQ72.js → chunk-KEADEWRD.js} +1 -1
- package/build/_chunks/{chunk-4KPFQBOK.js → chunk-KJMLNM3O.js} +1 -1
- package/build/_chunks/{chunk-QHS2HCRM.js → chunk-KJRRR733.js} +1 -1
- package/build/_chunks/{chunk-SBXFCUC3.js → chunk-KKPJBJXQ.js} +1 -1
- package/build/_chunks/{chunk-HW7YG7K5.js → chunk-KMVGZT23.js} +1 -1
- package/build/_chunks/{chunk-XSJFF5KG.js → chunk-L4Y5FTH2.js} +1 -1
- package/build/_chunks/{chunk-XK562EV3.js → chunk-MX2AUKUS.js} +1 -1
- package/build/_chunks/{chunk-XTLQWFPK.js → chunk-MY3L6GZJ.js} +1 -1
- package/build/_chunks/{chunk-XSTXDNH4.js → chunk-NLQY3IAL.js} +1 -1
- package/build/_chunks/{chunk-57SJLRVF.js → chunk-NN3INIAF.js} +1 -1
- package/build/_chunks/{chunk-4G5SSZ3Q.js → chunk-NY7PXVCY.js} +1 -1
- package/build/_chunks/{chunk-BXH3UXOG.js → chunk-OD7YPYI5.js} +1 -1
- package/build/_chunks/{chunk-HAG3DW4Z.js → chunk-OGJWRYYE.js} +1 -1
- package/build/_chunks/{chunk-AUJWBT3G.js → chunk-P35YCZ6B.js} +1 -1
- package/build/_chunks/{chunk-7ZQKQZUX.js → chunk-P5I5FBSS.js} +1 -1
- package/build/_chunks/{chunk-P7YWBL6K.js → chunk-QEE24Q3W.js} +1 -1
- package/build/_chunks/chunk-QTMXRP5D.js +1 -0
- package/build/_chunks/{chunk-W2P2AATE.js → chunk-R2OULJT3.js} +1 -1
- package/build/_chunks/{chunk-KHEVP3L2.js → chunk-RUBR4YVB.js} +1 -1
- package/build/_chunks/{chunk-NYNUYX7U.js → chunk-RZI3N2D7.js} +1 -1
- package/build/_chunks/{chunk-FS6ZUWYB.js → chunk-S2MWRP2M.js} +1 -1
- package/build/_chunks/{chunk-E75TSDB7.js → chunk-S3KAMDO2.js} +1 -1
- package/build/_chunks/{chunk-FWUNB3G6.js → chunk-SY6GOOE2.js} +1 -1
- package/build/_chunks/{chunk-75W5XHYT.js → chunk-TDAVC6AT.js} +1 -1
- package/build/_chunks/{chunk-5E6IHMY3.js → chunk-TIS56IRC.js} +1 -1
- package/build/_chunks/{chunk-R4ETRK4G.js → chunk-TOXZN6EN.js} +1 -1
- package/build/_chunks/{chunk-VSPAXZMX.js → chunk-TWLOW2T6.js} +1 -1
- package/build/_chunks/{chunk-3ZLPPGNQ.js → chunk-UEY7IFWU.js} +1 -1
- package/build/_chunks/{chunk-LDYKBLL2.js → chunk-UJN2GDCY.js} +1 -1
- package/build/_chunks/{chunk-U7KYBG7C.js → chunk-UKWJIU6L.js} +1 -1
- package/build/_chunks/{chunk-KP7E2ZAB.js → chunk-UL4DMVZ2.js} +1 -1
- package/build/_chunks/{chunk-WUJQUFA7.js → chunk-UVKN54PV.js} +1 -1
- package/build/_chunks/{chunk-WMTM7P54.js → chunk-V3FGAZIP.js} +1 -1
- package/build/_chunks/{chunk-4ZMVLFYI.js → chunk-V6C4PPHV.js} +1 -1
- package/build/_chunks/{chunk-4WTSXQI2.js → chunk-VEC7AB34.js} +1 -1
- package/build/_chunks/{chunk-GJWTBV3R.js → chunk-VIKBEOTO.js} +1 -1
- package/build/_chunks/chunk-VXU2Q5WC.js +1 -0
- package/build/_chunks/{chunk-VMJGS5NO.js → chunk-W4FLY2D5.js} +1 -1
- package/build/_chunks/{chunk-SP4SFO6G.js → chunk-WBKIVY5T.js} +1 -1
- package/build/_chunks/{chunk-IYBMEG4S.js → chunk-WBLUFV62.js} +1 -1
- package/build/_chunks/{chunk-SNEOP4YW.js → chunk-WPWIV6CS.js} +1 -1
- package/build/_chunks/{chunk-6QNQLKVY.js → chunk-X75DZAOH.js} +1 -1
- package/build/_chunks/{chunk-44FMNVOZ.js → chunk-XIWAUYVI.js} +1 -1
- package/build/_chunks/{chunk-Y7YP7H2M.js → chunk-XKL54NXB.js} +1 -1
- package/build/_chunks/{chunk-X3Z67QIG.js → chunk-YAB26XPH.js} +1 -1
- package/build/_chunks/{chunk-L4KHQER7.js → chunk-YF3HXA7E.js} +1 -1
- package/build/_chunks/{chunk-LQXZOJSM.js → chunk-YRCD3OQ2.js} +1 -1
- package/build/_chunks/{chunk-JTZ73KUX.js → chunk-ZKX5SBCB.js} +1 -1
- package/build/_chunks/{chunk-4YSJLUOD.js → chunk-ZQ64A5IO.js} +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/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/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/FlagDetails/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/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/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/SimpleDialog/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/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/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/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/_v2/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +3 -3
- package/build/_chunks/chunk-AXGOXFMZ.js +0 -1
- package/build/_chunks/chunk-HMBBJSKR.js +0 -1
- package/build/utils/tempSingletonTest.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,d,b,c,j as j$1,e}from'./chunk-
|
|
1
|
+
import {a,d,b,c,j as j$1,e}from'./chunk-R2OULJT3.js';import {Jc}from'./chunk-QTMXRP5D.js';import {bc,cc}from'./chunk-GXQZ4NVY.js';import {memo,useId,useState}from'react';import ee from'@mui/material/ClickAwayListener';import te from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {DateObject,Calendar}from'react-multi-date-picker';import i from'@mui/material/Box';import l from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var O=styled(l)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),z=styled(i)(()=>({position:"relative"})),H=styled(i,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({display:t?"flex":"none",flexDirection:"column",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),top:37,color:e.palette.text.primary,fontSize:"11px",margin:"8px 0",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"}})),j=styled(l,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,padding:e.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,textTransform:"none",height:32,...t&&{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),A=styled(i)(({theme:t})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,padding:"16px",borderTop:`1px solid ${t.palette.divider}`})),E=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:t.palette.text.primary,border:"1px solid",borderColor:t.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:t.palette.text.primary}})),Y=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:t.palette.info.dark,"&:hover":{background:t.palette.info.dark}})),F=styled(i)(()=>({display:"flex",gap:"8px"}));var ne=["Su","Mo","Tu","We","Th","Fr","Sa"];function ae({isAr:t=false,value:e$1,setValue:y,enableTimePicker:p,placement:L,sx:R,...N}){let V=Jc(useId(),"calender"),[w,k]=useState(null),[C,$]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),[D,g]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),q=e$1?.hour?a(e$1.hour):d(),G=e$1?.hour?b(e$1.hour):b(new Date().getHours()),[a$1,J]=useState({hour:q,minute:e$1?.minute??c(),period:G}),{t:B}=useTranslation(),u=!!w,K=r=>r==="right"?t?bc:cc:t?cc:bc,Q=r=>{k(r.currentTarget);},f=()=>{k(null);},U=()=>{let r=a$1.hour;p&&(r=e(a$1.hour,a$1.period||"AM"));let d=p?D.setHour(r).setMinute(a$1.minute):D;$(d),y&&y(d),f();},X=r=>{J(r);};return jsx(ee,{onClickAway:f,children:jsxs(z,{sx:{...R},id:V,"data-testid":"Calender",children:[jsx(j,{onClick:Q,open:u,className:"date-button",children:C.format("MMM D, YYYY")}),jsx(te,{open:u,anchorEl:w,placement:L,children:jsxs(H,{className:"calender-content",open:u,children:[jsx(Calendar,{numberOfMonths:1,format:"MMM DD YYYY",monthYearSeparator:" ",renderButton:(r,d)=>jsx(O,{onClick:d,children:jsx("img",{src:K(r),alt:"arrow"})}),onMonthChange:r=>{g(r);},onYearChange:r=>{g(r);},onChange:r=>{g(r);},weekDays:t?void 0:ne,minDate:new Date,value:C,...N}),jsxs(A,{sx:{...p&&{justifyContent:"space-between"}},children:[p&&jsx(j$1,{enableRealTimeChange:true,onChange:X,defaultTime:a$1}),jsxs(F,{children:[jsx(E,{variant:"contained",onClick:f,children:B("cancel")}),jsx(Y,{variant:"contained",onClick:U,children:B("okay")})]})]})]})})]})})}var I=memo(ae);var Te=I;export{Te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-6GSJDWNN.js';import {memo}from'react';import t from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(t)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(t)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var l=styled(t)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),p=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:r})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...r&&{cursor:"move"},margin:0})),I=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),s=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:r})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...r&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),f=styled(p)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));function v({onMouseEnter:o,onMouseLeave:r,isMaximized:g,isHovered:m,children:w,rightActions:x,leftActions:a$1,title:b,icon:y,...u}){return jsx(s,{onMouseEnter:o,onMouseLeave:r,maximized:g,id:"toolbar","data-testid":"Toolbar",isHovered:m,...u,children:jsxs(l,{className:"toolbar-wrapper",children:[a$1?jsx(d,{className:"action-box",children:a$1}):jsx("div",{}),jsx(a,{title:b,icon:y}),x||jsx("div",{})]})})}var c=memo(v);var D=c;export{p as a,I as b,f as c,D as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,Ra}from'./chunk-
|
|
1
|
+
import {Jc,Ra}from'./chunk-QTMXRP5D.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=Jc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ra(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-QTMXRP5D.js';import {useId,useState,useEffect}from'react';import {LazyLoadImage}from'react-lazy-load-image-component';import {jsx}from'react/jsx-runtime';var l=LazyLoadImage,r={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')},u=f=>{let m=Jc(useId(),"lazy-image"),{wrapperProps:t,...o}=f,{effect:e}=o,{style:p}=t||{},[c,a]=useState(!!e);return useEffect(()=>{if(!e||!(e in r))return;let i=r[e];a(true),i().finally(()=>{a(false);});},[e]),c?null:jsx(l,{...o,id:m,"data-testid":"LazyImage",wrapperProps:{...t,style:{display:"flex",justifyContent:"center",alignItems:"center",...p}}})},n=u;var A=n;export{A as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-XKL54NXB.js';import {a}from'./chunk-KJRRR733.js';import {Jc}from'./chunk-QTMXRP5D.js';import {Cb,A as A$1}from'./chunk-GXQZ4NVY.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=Jc(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 {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-QTMXRP5D.js';import {Kc}from'./chunk-GXQZ4NVY.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=Jc(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 {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-QTMXRP5D.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {Box,Typography}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:r=>!["value","isDecimal"].includes(r)})(({value:r,isDecimal:e,theme:o})=>({width:`${r}%`,minWidth:r>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:o.palette.background.gradient.darkShadedBlue,display:"flex",alignItems:"center",justifyContent:r>10?"flex-end":"center",paddingInlineEnd:r>10?"2px":"0px",...r===0&&{background:"#20232B1A"},...e&&{minWidth:r>=10?"40px":"36px"}})),d=styled(Box,{shouldForwardProp:r=>r!=="value"})(({value:r})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:"#20232B1A",borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...r===0&&{background:"#20232B00"}})),p=styled(Typography,{shouldForwardProp:r=>r!=="value"})(({value:r})=>({fontSize:"8px",fontWeight:700,color:"#FFF",padding:"2px 4px",...r===0&&{color:"#8D8D9480"}}));function s({value:r}){let e=Jc(useId(),"progress-bar"),o=!Number.isInteger(r);return jsx(a,{id:e,"data-testid":"ProgressBar",value:r,isDecimal:o,children:jsx(d,{value:r,children:jsxs(p,{value:r,children:[Number(r.toFixed(2)),"%"]})})})}var I=s;export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-DU4X4ALS.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-GNY2VGGW.js';import {r}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-GNY2VGGW.js';import {r}from'./chunk-QTMXRP5D.js';import F from'react';import {useTranslation}from'react-i18next';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var y="37px",f=styled(a,{shouldForwardProp:o=>o!=="showBackDrop"&&o!=="areTotalRowsNotFillingHeight"&&o!=="sandboxMode"&&o!=="maximized"})(({theme:o,showBackDrop:i,areTotalRowsNotFillingHeight:r,sandboxMode:n,maximized:p})=>({minHeight:y,...!p&&{borderBottomLeftRadius:o.spacing(1.5),borderBottomRightRadius:o.spacing(1.5)},display:"flex",alignItems:"center",border:"none",justifyContent:"space-between",padding:"6px 32px",background:n?o.palette.common.lightOrange:o.palette.grey[300],backdropFilter:"blur(32px)",boxShadow:i?o.shadows[24]:"none",borderTop:r?`1px outset ${o.palette.grey[800]}`:"none",width:"100%",marginTop:"auto",flexShrink:0,cursor:"move"})),u=styled("div")(({theme:o})=>({position:"absolute",top:0,left:0,right:0,height:"1.5px",backgroundColor:o.palette.grey[300],boxShadow:`inset 0 1px 0 0 ${o.palette.grey[300]}`})),d=styled(a)(({theme:o})=>({borderRadius:"37.5px",border:"0.75px solid rgba(242, 242, 242, 0.70)",backgroundColor:o.palette.common.white,opacity:1,paddingInline:o.spacing(1),display:"flex",alignItems:"center",height:24,gap:"7px",maxWidth:"max-content"})),x=styled(a$1)(()=>({fontSize:"9px",fontWeight:400,lineHeight:"10.8px"})),g=styled(a$1)(()=>({fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px"}));styled(a)(()=>({display:"flex",gap:"3px",alignItems:"center"}));styled(a)(()=>({display:"flex",gap:"6px"}));styled("span")(()=>({fontWeight:400}));function R({totalCount:o,showBackDrop:i=false,showSeparator:r$1,sandboxMode:n,maximized:p,selectedCount:m,...T}){let{t:b}=useTranslation();return jsxs(f,{component:"footer","data-testid":"TableFooter",maximized:p??false,sandboxMode:n,showBackDrop:i,areTotalRowsNotFillingHeight:!!r$1,...T,children:[r$1&&jsx(u,{}),m?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("selected")}),jsx(g,{children:r(m)})]}):null,o||o===0?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("count")}),jsx(g,{children:r(o||0)})]}):null]})}var h=F.memo(R);var M=h;export{y as a,h as b,M as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-QTMXRP5D.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=Jc(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-ZKX5SBCB.js';import {Jc}from'./chunk-QTMXRP5D.js';import {rh}from'./chunk-GXQZ4NVY.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=Jc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:rh,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ga,Jc}from'./chunk-
|
|
1
|
+
import {Ga,Jc}from'./chunk-QTMXRP5D.js';import I,{useId}from'react';import h from'@mui/material/Box';import y from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var w=Ga();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},m){let f=Jc(useId(),"input-number"),b=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}w&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(h,{id:f,"data-testid":"InputNumber",sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(a,{...t,ref:m,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:b,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var d=I.forwardRef(l);var H=d;export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-JD67NQAY.js';import {s}from'./chunk-OD7YPYI5.js';import {memo,useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import S from'@mui/material/Box';import F from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var q=styled(S)(({theme:o})=>({background:o.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),K=styled(S)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),L=styled(F)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),b=styled(F)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}}));function N({onCloseDropdown:o,filter:i,styles:x,header:O,searchable:u}){let[E,V]=useState([]),{t:f}=useTranslation(),p=useRef([]),B=i?.options?.map(e=>e.value).join(",")??"";useEffect(()=>{let e=r=>{let n=i?.data?.[i.apiKey]??[];if(Array.isArray(n)&&n.length)return new Set(n).has(r)},s=r=>r.map(({placeholder:n,value:t,isSelected:a,icon:l,options:d})=>{let y;if(u){let c=p.current.find(C=>C.apiKey===t);y=c!==void 0?c.isSelected??false:(a||e(t)||d?.every(({value:C})=>e(C)))??false;}else y=(a||e(t)||d?.every(({value:c})=>e(c)))??false;return {...n&&{label:n},name:t,selected:y,...l&&{icon:l},...d?.length&&{menuItems:s(d)}}});i.options&&V(s(i.options));},[i?.data,B,u]);let h=()=>{p.current=[];},R=e=>{h(),o(e);},w=()=>{if(u){let e=new Set(i?.data?.[i.apiKey]??[]);p.current.forEach(({apiKey:s,options:r,isSelected:n})=>{r?r.forEach(({apiKey:t,isSelected:a})=>{a?e.add(t):e.delete(t);}):n?e.add(s):e.delete(s);}),i?.onConfirm?.({[i.apiKey]:[...e]});}else {let e=p.current.reduce((s,{options:r,apiKey:n,isSelected:t})=>{if(r){let a=r.filter(({isSelected:l})=>l);a.length&&s.push(...a.map(({apiKey:l})=>l));}else t&&s.push(n);return s},[]);p.current.length&&i?.onConfirm?.({[i.apiKey]:[...new Set(e)]});}h();},M=s(w,o),P=e=>{w(),o(e);},T=e=>{let s=n=>n.map(({name:t,selected:a,menuItems:l,label:d})=>({...d&&{placeholder:d},apiKey:t,isSelected:a,...l?.length&&{options:s(l)}})),r=s(e);if(u){let n=new Set(r.map(t=>t.apiKey));p.current=[...p.current.filter(t=>!n.has(t.apiKey)),...r];}else p.current=r;};return jsx(c,{"data-testid":"ColumnFilter_List",title:f("filterBy")||"Filter by",menuItems:E,style:x,sx:e=>({marginTop:"10px",textAlign:"left",boxShadow:e.shadows[3],".nested-menu-item":{height:41,zIndex:9999},...x}),updatedList:T,header:O,onKeyDown:M,footer:jsxs(K,{sx:{position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999},children:[jsx(b,{onClick:R,children:f("cancel")},"nested-dropdown-cancel"),jsx(L,{onClick:P,children:f("okay")},"nested-dropdown-ok")]})})}var v=memo(N);var se=v;export{q as a,K as b,L as c,b as d,se as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-HJSNHIVV.js';import {Jc}from'./chunk-QTMXRP5D.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=Jc(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
|