@tap-payments/os-micro-frontend-shared 0.3.150 → 0.3.152
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-JHIPGNC2.js → chunk-26M2HXR5.js} +1 -1
- package/build/_chunks/{chunk-RBCDAZB4.js → chunk-2CIV4TII.js} +1 -1
- package/build/_chunks/{chunk-XZQENYCJ.js → chunk-2HOISDAH.js} +1 -1
- package/build/_chunks/{chunk-4YIPQAS5.js → chunk-2NZGAW6S.js} +1 -1
- package/build/_chunks/{chunk-JQ6FKHTQ.js → chunk-2U6YCW6N.js} +1 -1
- package/build/_chunks/{chunk-KWBCIIK4.js → chunk-2VUZLBHU.js} +1 -1
- package/build/_chunks/{chunk-4PJI6O5J.js → chunk-2YUYBTYF.js} +1 -1
- package/build/_chunks/{chunk-3LNOZKKV.js → chunk-3L2BA4XQ.js} +1 -1
- package/build/_chunks/{chunk-RS5TVJ7R.js → chunk-3VOBVZFJ.js} +1 -1
- package/build/_chunks/chunk-4DSO4G5S.js +1 -0
- package/build/_chunks/{chunk-N3IRDIUC.js → chunk-4XDOS6NM.js} +1 -1
- package/build/_chunks/{chunk-ZAYD5F7Y.js → chunk-6PJ62FDJ.js} +1 -1
- package/build/_chunks/{chunk-TLZLKR7U.js → chunk-6ZDUY6EO.js} +1 -1
- package/build/_chunks/{chunk-DOT5ZDI2.js → chunk-767TZTOZ.js} +1 -1
- package/build/_chunks/{chunk-HMGDQO2F.js → chunk-7CK3VXHJ.js} +2 -2
- package/build/_chunks/{chunk-OFCF6G2S.js → chunk-7MI55RIT.js} +1 -1
- package/build/_chunks/{chunk-EF4ASBGX.js → chunk-7U4TEMF7.js} +1 -1
- package/build/_chunks/chunk-7UD2S336.js +1 -0
- package/build/_chunks/{chunk-INEO72VG.js → chunk-AMSY5XTV.js} +1 -1
- package/build/_chunks/{chunk-WXZAKC23.js → chunk-AVIDTGY5.js} +1 -1
- package/build/_chunks/{chunk-G7NWZUZ3.js → chunk-BDSQ6RE4.js} +1 -1
- package/build/_chunks/{chunk-ODWWMBLG.js → chunk-BM6KX6IL.js} +1 -1
- package/build/_chunks/{chunk-LXK6RPQQ.js → chunk-BWTZKVL5.js} +1 -1
- package/build/_chunks/{chunk-QCMIRJFM.js → chunk-BXKWTLZF.js} +1 -1
- package/build/_chunks/chunk-BXMBE224.js +1 -0
- package/build/_chunks/{chunk-YPGVUZUZ.js → chunk-CWBSYHQB.js} +1 -1
- package/build/_chunks/{chunk-EKMLYUWT.js → chunk-DLHTKK6K.js} +1 -1
- package/build/_chunks/{chunk-4FNSHIAS.js → chunk-DXJJ34JD.js} +1 -1
- package/build/_chunks/{chunk-3UHLQWRW.js → chunk-DYLJN3W4.js} +1 -1
- package/build/_chunks/{chunk-TGKCKZOV.js → chunk-DYNS62II.js} +1 -1
- package/build/_chunks/{chunk-Y6KG2IWI.js → chunk-EH6DS7Z7.js} +1 -1
- package/build/_chunks/{chunk-XH5AY5UF.js → chunk-F44NMQ5K.js} +1 -1
- package/build/_chunks/{chunk-WZM4DBSN.js → chunk-F6UETIKM.js} +1 -1
- package/build/_chunks/{chunk-25H25Q54.js → chunk-FKYLAEBS.js} +1 -1
- package/build/_chunks/{chunk-ZZHAYV5P.js → chunk-FYOVM5SL.js} +1 -1
- package/build/_chunks/{chunk-UAHUS5PL.js → chunk-FZJGVE3N.js} +1 -1
- package/build/_chunks/{chunk-S3OR26U4.js → chunk-G3EN2K4T.js} +1 -1
- package/build/_chunks/{chunk-M5MYK5ZE.js → chunk-GIJKKRNG.js} +1 -1
- package/build/_chunks/{chunk-2Z4YOMWE.js → chunk-GIWRSAQ2.js} +1 -1
- package/build/_chunks/{chunk-EDJGLQW3.js → chunk-GWT72RF2.js} +1 -1
- package/build/_chunks/{chunk-OLRRHASW.js → chunk-GYI5NSQ5.js} +1 -1
- package/build/_chunks/{chunk-EGQ7DSVR.js → chunk-H37QSJDD.js} +1 -1
- package/build/_chunks/{chunk-5ZAUKWVJ.js → chunk-H6HHXYRL.js} +1 -1
- package/build/_chunks/{chunk-IGIVQ5NH.js → chunk-HBTIZDBD.js} +1 -1
- package/build/_chunks/{chunk-B4AATE4F.js → chunk-HEVN6IWL.js} +1 -1
- package/build/_chunks/{chunk-JQRIG5FB.js → chunk-HIILTBHV.js} +2 -2
- package/build/_chunks/chunk-IJAAE7RQ.js +2 -0
- package/build/_chunks/{chunk-6UOULENE.js → chunk-JYTLSEW2.js} +1 -1
- package/build/_chunks/chunk-K5MU74T4.js +1 -0
- package/build/_chunks/chunk-KCEYICHJ.js +2 -0
- package/build/_chunks/{chunk-CCQTVHAD.js → chunk-KPR7PEDZ.js} +1 -1
- package/build/_chunks/{chunk-HJ4J56OP.js → chunk-KZZ4GNLK.js} +1 -1
- package/build/_chunks/{chunk-QRGXADXK.js → chunk-LA3XKVYQ.js} +1 -1
- package/build/_chunks/chunk-LDLGBNMM.js +1 -0
- package/build/_chunks/{chunk-VSXBLD2E.js → chunk-M5XBR2HX.js} +1 -1
- package/build/_chunks/{chunk-MYPSQEJ5.js → chunk-MINGPVVR.js} +1 -1
- package/build/_chunks/{chunk-IKUDFCXC.js → chunk-MVTU6CC5.js} +1 -1
- package/build/_chunks/{chunk-S4RT3VB6.js → chunk-N2Q6HRNZ.js} +1 -1
- package/build/_chunks/{chunk-LIIULUSD.js → chunk-N3FCB33M.js} +1 -1
- package/build/_chunks/{chunk-2AWDKWKY.js → chunk-NA72WEHU.js} +1 -1
- package/build/_chunks/{chunk-NP25LI2M.js → chunk-NBGDT62B.js} +1 -1
- package/build/_chunks/{chunk-TEGPKTJ6.js → chunk-NJFK5TAC.js} +1 -1
- package/build/_chunks/chunk-NTJZ733T.js +1 -0
- package/build/_chunks/{chunk-WQXW2YTH.js → chunk-O2SPQA5J.js} +1 -1
- package/build/_chunks/{chunk-2VW4TETV.js → chunk-O5KFJKRT.js} +1 -1
- package/build/_chunks/{chunk-54QYUSHQ.js → chunk-OMFYODPG.js} +1 -1
- package/build/_chunks/{chunk-QBAIMI2A.js → chunk-P2DG6H76.js} +1 -1
- package/build/_chunks/{chunk-ZI2427WJ.js → chunk-PB4RPRX3.js} +1 -1
- package/build/_chunks/{chunk-CHBYSMFC.js → chunk-PPC5EHKW.js} +1 -1
- package/build/_chunks/{chunk-RZDTMTLU.js → chunk-PUIZRXVZ.js} +1 -1
- package/build/_chunks/{chunk-HA4UOJIP.js → chunk-PVUEYH5J.js} +1 -1
- package/build/_chunks/{chunk-AWXRPX7U.js → chunk-QRU7WDPB.js} +2 -2
- package/build/_chunks/{chunk-25TBIK37.js → chunk-QZR2EPAG.js} +1 -1
- package/build/_chunks/{chunk-65ROHES3.js → chunk-R4GFBLY3.js} +1 -1
- package/build/_chunks/{chunk-XONJTPVT.js → chunk-R7TZPC2K.js} +1 -1
- package/build/_chunks/chunk-RBF2Y4OM.js +1 -0
- package/build/_chunks/{chunk-KC4HCR3X.js → chunk-RBUKY72C.js} +1 -1
- package/build/_chunks/{chunk-MBQCD5AC.js → chunk-RHUTFOWS.js} +1 -1
- package/build/_chunks/{chunk-BFHCHIY3.js → chunk-RMTT4FOG.js} +1 -1
- package/build/_chunks/{chunk-7W7ZXZDB.js → chunk-RSZUTATX.js} +1 -1
- package/build/_chunks/{chunk-VSVL2PNY.js → chunk-RW3NBL6C.js} +1 -1
- package/build/_chunks/{chunk-M2OAS36B.js → chunk-RWIFX3JL.js} +1 -1
- package/build/_chunks/{chunk-TMKPQNTQ.js → chunk-SBWGLI2Z.js} +1 -1
- package/build/_chunks/{chunk-BU7IMNX6.js → chunk-SE2Y4QWD.js} +1 -1
- package/build/_chunks/{chunk-YO3V43XF.js → chunk-T4QOBOJ6.js} +1 -1
- package/build/_chunks/{chunk-DLGM747U.js → chunk-TKEWLZ3T.js} +1 -1
- package/build/_chunks/{chunk-2GUSQI3N.js → chunk-TNJNIJJH.js} +1 -1
- package/build/_chunks/{chunk-WAQHJCE2.js → chunk-UC7E3QT2.js} +1 -1
- package/build/_chunks/{chunk-T3XQWHTK.js → chunk-UJ4IYIJH.js} +1 -1
- package/build/_chunks/{chunk-H7HCLGNO.js → chunk-UJ5BJK35.js} +1 -1
- package/build/_chunks/chunk-UJJZLXUT.js +1 -0
- package/build/_chunks/chunk-UXZDRDII.js +1 -0
- package/build/_chunks/{chunk-3VUNIEDW.js → chunk-VSJHH432.js} +1 -1
- package/build/_chunks/{chunk-2IK5GP7X.js → chunk-WFIDLFYJ.js} +1 -1
- package/build/_chunks/{chunk-JZCM7T3M.js → chunk-WLBPY6QG.js} +1 -1
- package/build/_chunks/{chunk-4YOQZXWJ.js → chunk-WPZRME3K.js} +1 -1
- package/build/_chunks/{chunk-5DQPJCQP.js → chunk-XEEGI3DA.js} +1 -1
- package/build/_chunks/{chunk-UFH7CDWV.js → chunk-XNKXDDNN.js} +1 -1
- package/build/_chunks/{chunk-AMHTC5C2.js → chunk-YLDK4XKQ.js} +1 -1
- package/build/_chunks/{chunk-UPUPMXR3.js → chunk-YYWTZ25R.js} +1 -1
- package/build/_chunks/{chunk-2VCDJEGW.js → chunk-Z66FPFEW.js} +1 -1
- package/build/_chunks/{chunk-VH2A4PRP.js → chunk-ZGLDEF2J.js} +1 -1
- package/build/_chunks/{chunk-XOVRZTNZ.js → chunk-ZMUDRI5J.js} +1 -1
- package/build/_chunks/chunk-ZPGWJ5RD.js +2 -0
- 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/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/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/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/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/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/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/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/Backdrop/style.d.ts +2 -2
- package/build/components/primitives/Backdrop/type.d.ts +2 -4
- package/build/components/primitives/index.js +1 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/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 +1 -1
- package/build/_chunks/chunk-2B3IVXKZ.js +0 -1
- package/build/_chunks/chunk-2SGS6G77.js +0 -2
- package/build/_chunks/chunk-6T5KBRSU.js +0 -1
- package/build/_chunks/chunk-6ZEXMPHP.js +0 -1
- package/build/_chunks/chunk-7H5XBVPX.js +0 -1
- package/build/_chunks/chunk-DYTDDHJN.js +0 -1
- package/build/_chunks/chunk-GOYUV7YE.js +0 -1
- package/build/_chunks/chunk-P2ESF6CK.js +0 -1
- package/build/_chunks/chunk-PAEWONDM.js +0 -2
- package/build/_chunks/chunk-PWJAM3H7.js +0 -1
- package/build/_chunks/chunk-R3NBSKNX.js +0 -2
- package/build/_chunks/chunk-TVAZADLI.js +0 -1
- package/build/_chunks/chunk-UKJ66LPD.js +0 -1
- package/build/components/WindowBackdrop/WindowBackdrop.d.ts +0 -6
- package/build/components/WindowBackdrop/index.d.ts +0 -1
- package/build/components/WindowBackdrop/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {memo,useId,useState,useRef}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p=styled(l)(({theme:e})=>({position:"absolute",color:e.palette.grey[700],zIndex:0})),u=styled(l)(()=>({position:"relative",flexGrow:1,fontSize:"11px"}));function D({value:e,updateValue:m,placeholder:f,sx:g,maxLength:r}){let x=yc(useId(),"resizable-height-input"),[h,i]=useState(false),n=useRef(null);return jsxs(u,{id:x,"data-testid":"ResizableHeightInput",sx:g,onClick:()=>{n.current&&n.current.focus(),i(true);},children:[!h&&!e&&jsx(p,{children:f}),jsx(l,{contentEditable:true,suppressContentEditableWarning:true,sx:{outline:"none",flexGrow:1},onBlur:t=>{let o=t.target;m(o.innerText),i(false);},ref:n,onKeyDown:t=>{let o=t.target;r&&o.innerText.length>=r&&t.preventDefault();},children:e})]})}var c=memo(D);var k=c;export{k as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c,b,g}from'./chunk-M5XBR2HX.js';import {a}from'./chunk-RWIFX3JL.js';import {yc}from'./chunk-2CIV4TII.js';import {Db,B,Rf}from'./chunk-KCEYICHJ.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import L from'@mui/material/Box';import ve from'@mui/material/ClickAwayListener';import Be from'@mui/material/Popper';import W from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var K=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),y=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:a,hideArrows:t})=>{let{borderColor:i}=c(e,o),l=a?"4px 4px 0 0":"4px",m="#F2F2F2";return o&&(m=i),n&&!o&&(m=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${m}`,borderBottom:a?"none":void 0,borderRadius:l,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),U=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var V=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(y)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function P(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(V,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Ce=P;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(L)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(L)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(L)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:a,countries:t=[],isLoading:i=false}){let l=yc(useId(),"countries-dropdown"),[m,g]=useState(null),[b,u]=useState([]),[S,D]=useState(),ue=()=>{if(t&&e){let r=t.find(c=>c.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A=!!m,ce=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),D(void 0);},xe=r=>{o?.(r),N(),u(t);},fe=r=>{let c=Number(r.target.value);if(D(c),!c){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(c.toString())));};return i?jsx(W,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(ve,{onClickAway:N,children:jsxs(L,{id:l,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:ce,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),a&&jsx(ee,{component:"span",children:"*"}),jsx(L,{component:"img",src:Db,alt:"d",className:"arrow",sx:{...A&&{transform:"rotate(180deg)"}}})]}),jsx(Be,{open:A,anchorEl:m,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:B,alt:"arrow"}),onChange:fe,value:S,hideArrows:true}),jsx(Y,{children:b.map(r=>jsxs(Z,{onClick:()=>{xe(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>{let i=e.feedback!==void 0&&e.feedback!==null,l=b(e.feedback),m=e.label??e.placeholder,g$1=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b$1=t?.message??e.helperText,u=!i&&b$1?jsx(U,{children:b$1}):null,S=l?jsx(g,{...l}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(K,{id:n,"data-testid":"InputWrapper",children:jsx(y,{rows:1,hasError:(!!t?.message||!!e.error)&&!i,hasFeedback:!!l,feedbackType:l?.type,...a,variant:"standard",label:m,placeholder:g$1,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:l?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),u,S]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function T({showSearchIcon:e=true,error:n,errorMessage:o,feedback:a,...t}){let i=yc(useId(),"search-input"),l=!!(n&&o&&!a);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:B,alt:"search"}),sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:a,error:n,...t}),l&&jsxs(le,{children:[jsx(pe,{src:Rf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=T;function z(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...a,value:a.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=z;export{Ce as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var n="https://cdn.tap.company/tap-assets",o=`${n}/icons/dashboard/light`,t=`${o}/other`,i=`${o}/function`,s=`${n}/videos`,r=`${n}/files`,a=`${r}/templates`,p=e=>`${o}/${e}.svg`,g=e=>`${o}/payment-method/v2/${e}.svg`,v=e=>`${o}/payment-issuer/${e}.svg`,I=e=>`${o}/country/v3/${e}.svg`,d=e=>`${o}/function/${e}.svg`,l=e=>`${o}/statusIcons/${e}.svg`,x=e=>`${n}/currency/v3/light/${e}.svg`,$=e=>{let c=e.replace(/\s/g,"");return `${n}/icons/dashboard/light/authority/v2/${c}.svg`},u=e=>`${o}/browsers/${e}.svg`,h=e=>`${o}/payment-initiator/${e}.svg`,m=e=>`${o}/payment-gateways/${e}.svg`,w=e=>`${o}/aging/${e}.svg`,b=`${o}/currency/sar.svg`,y=`${o}/currency/dirham.svg`,S=`${o}/abandoned.svg`,k=`${o}/abandonedYellow.svg`,A=`${o}/chevron-down.svg`,B=`${o}/sliderThumb.svg`,f=`${o}/removeIcon.svg`,C=`${o}/reversed.svg`,P=`${o}/destinationSolid.svg`,D=`${o}/search.svg`,T=`${o}/unauthorized.svg`,W=`${o}/view.svg`,N=`${o}/reports.svg`,G=`${o}/flag.svg`,L=`${o}/dispute.svg`,F=`${o}/timezone.svg`,O=`${o}/greyTimezone.svg`,R=`${o}/subscription.svg`,_=`${o}/savedCard.svg`,E=`${o}/egypt.svg`,z=`${o}/saudiArabia.svg`,M=`${o}/jordan.svg`,U=`${o}/lebanon.svg`,V=`${o}/kuwait.svg`,q=`${o}/unitedArabEmirates.svg`,H=`${o}/europe.svg`,Y=`${o}/bahrain.svg`,j=`${o}/america.svg`,Z=`${o}/payment-method/v2/card.svg`,Q=`${o}/payment-method/v2/UnionPay.svg`,X=`${o}/payment-method/v2/JAYWAN.svg`,J=`${o}/device.svg`,K=`${o}/expressCheckout.svg`,oo=`${o}/applePay.svg`,to=`${o}/cash.svg`,eo=`${o}/passThruWallet.svg`,no=`${o}/storedValueWallet.svg`,co=`${o}/buyNowPayLater.svg`,so=`${o}/openBanking.svg`,ro=`${o}/FrictionlessIcon.svg`,ao=`${o}/ChallengeIcon.svg`,io=`${o}/visa.svg`,po=`${o}/redArrowDownIcon.svg`,go=`${o}/completed.svg`,vo=`${o}/chargebackRequested.svg`,Io=`${o}/chargeback.svg`,lo=`${t}/captureDropdown.svg`,xo=`${o}/disputeResolved.svg`,$o=`${o}/reversePayout.svg`,uo=`${o}/ellipsisHorizontal.svg`,ho=`${o}/3ds.svg`,mo=`${o}/invoiceIdIcon3.svg`,wo=`${o}/idIcon3.svg`,bo=`${o}/id.svg`,yo=`${t}/copyIcon.svg`,So=`${t}/codeIcon.svg`,ko=`${t}/GreenCheckMark2.svg`,Ao=`${o}/closedDispute.svg`,Bo=`${o}/openDispute.svg`,fo=`${o}/desktop.svg`,Co=`${o}/mobile.svg`,Po=`${o}/tablet.svg`,Do=`${o}/invoice.svg`,To=`${o}/cancelledInvoiceIcon.svg`,Wo=`${o}/expiredInvoiceIcon.svg`,No=`${o}/invoiceNumberIcon.svg`,Go=`${o}/column.svg`,Lo=`${o}/sortAz.svg`,Fo=`${o}/sortZa.svg`,Oo=`${o}/zipFile.svg`,Ro=`${o}/successWhiteBg.svg`,_o=`${o}/failedWhiteBgIcon.svg`,Eo=`${o}/exclamationGreyIcon.svg`,zo=`${o}/exclamationDarkGreyIcon.svg`,Mo=`${o}/percentage0.svg`,Uo=`${o}/percentage50.svg`,Vo=`${o}/percentage75.svg`,qo=`${o}/percentage100.svg`,Ho=`${o}/maximize.svg`,Yo=`${o}/minimize.svg`,jo=`${o}/close.svg`,Zo=`${o}/dashedCheckIcon.svg`,Qo=`${o}/outstandingIcon.svg`,Xo=`${o}/cancelledStatusIcon.svg`,Jo=`${o}/expiredStatusIcon.svg`,Ko=`${o}/paidStatusIcon.svg`,ot=`${o}/refundedStatusIcon.svg`,tt=`${o}/deactivatedIcon.svg`,et=`${o}/topup.svg`,nt=`${o}/AIOverviewIcon.svg`,ct=`${t}/demaximize.svg`,st=`${o}/pendingFlag.svg`,rt=`${o}/ibanIcon.svg`,at=`${o}/payoutIcon.svg`,it=`${o}/releasedFlag.svg`,pt=`${o}/acceptedFlag.svg`,gt=`${o}/clearIcon.svg`,vt=`${o}/status/unCaptured.svg`,It=`${t}/newWindow.svg`,dt=`${t}/viewAll.svg`,lt=`${t}/allApps.svg`,xt=`${t}/hide.svg`,$t=`${t}/close.svg`,ut=`${t}/star.svg`,ht=`${t}/closeCircle.svg`,mt=`${t}/acquirer.svg`,wt=`${o}/GenericIconNew.svg`,bt=`${t}/acquirerRed.svg`,yt=`${t}/gateway.svg`,St=`${t}/acquirerOrange.svg`,kt=`${o}/status/capturedAuthorize.svg`,At=`${t}/merchantInitiated.svg`,Bt=`${t}/rightArow.svg`,ft=`${o}/blackRightArrow.svg`,Ct=`${t}/orangeFlag.svg`,Pt=`${t}/openFlag.svg`,Dt=`${t}/closedFlag.svg`,Tt=`${t}/redFlag.svg`,Wt=`${t}/grayFlag.svg`,Nt=`${t}/downArrow.svg`,Gt=`${t}/check.svg`,Lt=`${t}/closeX.svg`,Ft=`${t}/drag.svg`,Ot=`${t}/checkboxIcon.svg`,Rt=`${o}/plusWhite.svg`,_t=`${t}/checkboxIcon.svg`,Et=`${o}/Uniso.svg`,zt=`${o}/addidas.svg`,Mt=`${o}/radioButtonChecked.svg`,Ut=`${o}/radioButtonUnchecked.svg`,Vt=`${o}/Mac.svg`,qt=`${o}/blueCheckIconZigzag.svg`,Ht=`${o}/greenCheckIconZigzag.svg`,Yt=`${o}/dimmedCheckIconZigzag.svg`,jt=`${o}/marketPlaceBlue.svg`,Zt=`${o}/marketplaceBlackIcon.svg`,Qt=`${o}/marketPlaceDimmed.svg`,Xt=`${o}/moneyOut.svg`,Jt=`${o}/moneyOutDimmed.svg`,Kt=`${o}/moneyIn.svg`,oe=`${o}/moneyInDimmed.svg`,te=`${o}/message.svg`,ee=`${o}/pending.svg`,ne=`${o}/payStream.svg`,ce=`${o}/clearCoin.svg`,se=`${t}/walletSmall.svg`,re=`${t}/bank.svg`,ae=`${t}/hijri.svg`,ie=`${t}/darkLeftArrow.svg`,pe=`${t}/darkRightArrow.svg`,ge=`${t}/spinnerLoading.svg`,ve=`${t}/spinnerLoadingAnimated.svg`,Ie=`${t}/actionFail.svg`,de=`${t}/actionSuccess.svg`,le=`${t}/checkMark.svg`,xe=`${t}/logout.svg`,$e=`${t}/preferences.svg`,ue=`${t}/transform.svg`,he=`${t}/token.svg`,me=`${t}/billing.svg`,we=`${t}/receiptBill.svg`,be=`${o}/newReceiptIcon.svg`,ye=`${t}/acceptance.svg`,Se=`${o}/acceptanceEnabled.svg`,ke=`${o}/acceptanceBlue.svg`,Ae=`${o}/payoutsGreen.svg`,Be=`${t}/acceptanceAppIconDisabled.svg`,fe=`${t}/payoutsAppIconDisabled.svg`,Ce=`${o}/payoutEnabled.svg`,Pe=`${o}/payoutAppGreenIcon.svg`,De=`${o}/payoutDisabledRounded.svg`,Te=`${o}/acceptanceDisabledRounded.svg`,We=`${t}/AuthenticationApp.svg`,Ne=`${t}/walletApp.svg`,Ge=`${t}/payouts.svg`,Le=`${t}/protect.svg`,Fe=`${t}/customers.svg`,Oe=`${t}/business.svg`,Re=`${t}/account.svg`,_e=`${t}/disableCheck.svg`,Ee=`${t}/wifiOff.svg`,ze=`${t}/SandboxHovered.svg`,Me=`${t}/Sandbox.svg`,Ue=`${t}/ExclamationError.svg`,Ve=`${t}/greyCheck.svg`,qe=`${t}/greyCross.svg`,He=`${t}/blueCheck.svg`,Ye=`${t}/disabledCheck.svg`,je=`${t}/darkCheck.svg`,Ze=`${t}/collapseArrow.svg`,Qe=`${t}/world.svg`,Xe=`${t}/grayUpArrow.svg`,Je=`${t}/blackHeadingDownArrowIcon.svg`,Ke=`${t}/blueHeadingDropdownArrow.svg`,on=`${t}/dropdownArrow.svg`,tn=`${t}/greyDropdownIcon.svg`,en=`${t}/business2.svg`,nn=`${t}/development.svg`,cn=`${t}/financial.svg`,sn=`${t}/light_master_orchestrator.svg`,rn=`${t}/platform.svg`,an=`${t}/provider.svg`,pn=`${t}/appPlatform.svg`,gn=`${t}/authenticationGateway.svg`,vn=`${t}/billingPlatform.svg`,In=`${t}/commercePlatform.svg`,dn=`${t}/commercialRegulator.svg`,ln=`${t}/merchantServiceProvider.svg`,xn=`${t}/paymentAcquirer.svg`,$n=`${t}/paymentFacilitator.svg`,un=`${t}/paymentGatewayProvider.svg`,hn=`${t}/paymentIssuer.svg`,mn=`${t}/paymentMethod.svg`,wn=`${t}/paymentProcessor.svg`,bn=`${t}/paymentScheme.svg`,yn=`${t}/paymentTechnologyV2.svg`,Sn=`${t}/paymentTerminalProvider.svg`,kn=`${t}/retailPlatform.svg`,An=`${t}/retailer.svg`,Bn=`${t}/light_business.svg`,fn=`${t}/light_development.svg`,Cn=`${t}/financial.svg`,Pn=`${t}/light_master_orchestrator.svg`,Dn=`${t}/light_platform.svg`,Tn=`${t}/provider.svg`,Wn=`${t}/light_app_platform.svg`,Nn=`${t}/light_authentication_gateway.svg`,Gn=`${t}/light_billing_platform.svg`,Ln=`${t}/light_commerce_platform.svg`,Fn=`${t}/light_commercial_regulator.svg`,On=`${t}/light_merchant_service_provider.svg`,Rn=`${t}/light_payment_acquirer.svg`,_n=`${t}/light_payment_facilitator.svg`,En=`${t}/light_payment_gateway_provider.svg`,zn=`${t}/light_payment_issuer.svg`,Mn=`${t}/light_payment_method.svg`,Un=`${t}/light_payment_processor.svg`,Vn=`${t}/light_payment_scheme.svg`,qn=`${t}/light_payment_technology_v2.svg`,Hn=`${t}/light_payment_terminal_provider.svg`,Yn=`${t}/light_retail_platform.svg`,jn=`${t}/light_retailer.svg`,Zn=`${t}/brandGray.svg`,Qn=`${o}/grayCircleIcon.svg`,Xn=`${t}/json.svg`,Jn=`${t}/jsonBlackIcon.svg`,Kn=`${t}/sort1.svg`,oc=`${t}/SandboxHoveredLight.svg`,tc=`${t}/emailColoured.svg`,ec=`${o}/OrderIcon.svg`,nc=`${o}/TransactionIcon.svg`,cc=`${o}/GenericIcon.svg`,sc=`${t}/smsColoured.svg`,rc=`${t}/whatsAppColored.svg`,ac=`${t}/dueDateBlue.svg`,ic=`${t}/dueDateOrange.svg`,pc=`${t}/dueDateYellow.svg`,gc=`${t}/dueDateRed.svg`,vc=`${t}/dueDateBlack.svg`,Ic=`${t}/dueDateGray.svg`,dc=`${t}/timerBlue.svg`,lc=`${t}/expiredIcon.svg`,xc=`${t}/remindedRed.svg`,$c=`${t}/chevronWhite.svg`,uc=`${t}/chevronGray.svg`,hc=`${t}/notVerified.svg`,mc=`${t}/verified.svg`,wc=`${t}/verifyReview.svg`,bc=`${o}/window/attention.svg`,yc=`${o}/window/initalAcceptance.svg`,Sc=`${o}/window/completedAcceptance.svg`,kc=`${o}/window/initalPayouts.svg`,Ac=`${o}/window/completedPayouts.svg`,Bc=`${t}/collapseArrowsIcon.svg`,fc=`${t}/expandArrowsIcon.svg`,Cc=`${t}/greenArrowRight.svg`,Pc=`${t}/greenArrowLeft1.svg`,Dc=`${t}/greenIconWithArrowUp.svg`,Tc=`${t}/whiteArrowRight.svg`,Wc=`${t}/whiteArrowLeft.svg`,Nc=`${o}/HSBCBank.svg`,Gc=`${o}/shopifyIcon.svg`,Lc=`${o}/verifiedGreenBadge.svg`,Fc=`${o}/backButtonLeft.svg`,Oc=`${o}/eyeHideIcon.svg`,Rc=`${o}/eyeShowIcon.svg`,_c=`${t}/uploadIcon.svg`,Ec=`${o}/window/uploadGreyIcon.svg`,zc=`${o}/uploadAppIcon.svg`,Mc=`${o}/window/paylinkGreyIcon.svg`,Uc=`${o}/paylinkAppIcon.svg`,Vc=`${o}/inprogressIcon.svg`,qc=`${o}/redCloseCircleIcon.svg`,Hc=`${t}/uploadBlueIcon.svg`,Yc=`${t}/SandboxHovered.svg`,jc=`${t}/sandboxDefaultIcon.svg`,Zc=`${t}/SandboxIcon.svg`,Qc=`${t}/clock.svg`,Xc=`${t}/RedClose.svg`,Jc=`${t}/xls.svg`,Kc=`${t}/csv.svg`,os=`${t}/pdf.svg`,ts=`${t}/Download.svg`,es=`${t}/reportsIconOutlined.svg`,ns=`${t}/Done.svg`,cs=`${t}/reportApps.svg`,ss=`${o}/window/ReportsApp.svg`,rs=`${o}/window/leadApp.svg`,as=`${o}/window/leadTitleIcon.svg`,is=`${t}/OrderApp.svg`,ps=`${t}/OrderTitleIcon.svg`,gs=`${o}/dottedLine.svg`,vs=`${o}/passwordDots.svg`,Is=`${o}/dollarSign.svg`,ds=`${o}/reload.svg`,ls=`${t}/deletedStatus1.svg`,xs=`${t}/draftedStatus1.svg`,$s=`${t}/createdStatus1.svg`,us=`${t}/cancelledStatus1.svg`,hs=`${t}/expiredStatus1.svg`,ms=`${t}/paidStatus1.svg`,ws=`${t}/deliveredStatus1.svg`,bs=`${t}/viewedStatus1.svg`,ys=`${t}/savedStatus1.svg`,Ss=`${t}/scheduledStatus1.svg`,ks=`${t}/invoicePendingStatus2.svg`,As=`${t}/invoiceRefundedStatus2.svg`,Bs=`${o}/activeLeadStatus.svg`,fs=`${o}/completedLeadStatus.svg`,Cs=`${o}/closedLeadStatus.svg`,Ps=`${o}/expiredLeadStatus.svg`,Ds=`${o}/readyLeadStatus.svg`,Ts=`${o}/fileIcon.svg`,Ws=`${o}/clipboardFileGrayIcon.svg`,Ns=`${o}/newFileIcon.svg`,Gs=`${o}/downloadFileIcon.svg`,Ls=`${o}/progressFileIcon.svg`,Fs=`${o}/successFileIcon.svg`,Os=`${o}/whiteArrowDownIcon.svg`,Rs=`${o}/teamWindowIcon.svg`,_s=`${o}/blueAppsIcon.svg`,Es=`${o}/disabledCardIcon.svg`,zs=`${o}/disabledCodeIcon.svg`,Ms=`${o}/layersIcon.svg`,Us=`${o}/status/pendingOnTapIcon.svg`,Vs=`${o}/leadWhiteIcon.svg`,qs=`${t}/chatDisabledIcon.svg`,Hs=`${o}/exclamationDarkIcon.svg`,Ys=`${t}/exclamationWarning.svg`,js=`${o}/exclamationError.svg`,Zs=`${o}/exclamationOrangeIcon.svg`,Qs=`${t}/greenCheckV2.svg`,Xs=`${o}/iosIcon1.svg`,Js=`${o}/androidIcon.svg`,Ks=`${o}/websiteIcon.svg`,or=`${t}/greyApple.svg`,tr=`${t}/greyLocationIcon.svg`,er=`${t}/greyDesktopIcon.svg`,nr=`${t}/greyTimezone.svg`,cr=`${t}/safariBrowser.svg`,sr=`${t}/chromeBrowser.svg`,rr=`${t}/firefoxBrowser.svg`,ar=`${t}/microsoftBrowser.svg`,ir=`${t}/operaBrowser.svg`,pr=`${t}/braveBrowser.svg`,gr=`${t}/arcBrowser.svg`,vr=`${t}/chromiumBrowser.svg`,Ir=`${t}/userIcon.svg`,dr=`${t}/slaProcess.svg`,lr=`${o}/window/slaProcess.svg`,xr=`${o}/orchestrationApp.svg`,$r=`${o}/window/orchestration.svg`,ur=`${o}/window/orchestrationWindowBg.svg`,hr=`${o}/lendingApp.svg`,mr=`${o}/window/lending.svg`,wr=`${o}/lendingProviderApp.svg`,br=`${o}/deemaApp.svg`,yr=`${o}/window/deema.svg`,Sr=`${o}/fast.svg`,kr=`${o}/bankBlue.svg`,Ar=`${o}/mosque.svg`,Br=`${o}/corporateLoan.svg`,fr=`${o}/corporateLoanBlack.svg`,Cr=`${o}/platformApp.svg`,Pr=`${o}/window/platform.svg`,Dr=`${o}/osApp.svg`,Tr=`${o}/window/osApp.svg`,Wr=`${o}/riskApp.svg`,Nr=`${o}/window/riskApp.svg`,Gr=`${o}/status/table/abandoned.svg`,Lr=`${o}/status/table/cancelled.svg`,Fr=`${o}/status/table/captured.svg`,Or=`${o}/status/table/chargeBack.svg`,Rr=`${o}/status/table/chargeBackRequested.svg`,_r=`${o}/status/table/completed.svg`,Er=`${o}/status/table/declined.svg`,zr=`${o}/status/table/destinationReversed.svg`,Mr=`${t}/DestinationWithoutBackground.svg`,Ur=`${o}/status/table/disputeResolved.svg`,Vr=`${o}/status/table/failed.svg`,qr=`${o}/status/table/failedNoBG.svg`,Hr=`${o}/status/table/declinedNoBg.svg`,Yr=`${t}/destinationSuccess.svg`,jr=`${o}/status/authenticationFailed.svg`,Zr=`${o}/status/table/authenticated.svg`,Qr=`${o}/paidOutFilterIcon.svg`,Xr=`${o}/completedBlackIcon.svg`,Jr=`${o}/scheduledFilterIcon.svg`,Kr=`${o}/saveTokenIcon.svg`,oa=`${o}/status/unauthenticated.svg`,ta=`${o}/status/authenticationAttempted.svg`,ea=`${o}/status/authenticationNoAuth.svg`,na=`${o}/status/authenticationDeclined.svg`,ca=`${o}/status/authenticationExemptedWithoutTransaction1.svg`,sa=`${o}/status/authenticationExemptedWithTransaction2.svg`,ra=`${o}/status/authenticationFailed1.svg`,aa=`${o}/status/authenticationInitiated.svg`,ia=`${o}/status/authenticationUnavailable.svg`,pa=`${o}/status/authenticationUndetermined.svg`,ga=`${o}/status/AuthenticationWithoutTransaction1.svg`,va=`${o}/status/authenticationWithTransaction1 2.svg`,Ia=`${o}/status/AuthenticationAuthenticated.svg`,da=`${o}/status/authenticationPending2.svg`,la=`${o}/authenticationFailedNoBg.svg`,xa=`${o}/authenticationPendingNoBg.svg`,$a=`${o}/authenticationNoAuthNoBg.svg`,ua=`${o}/authenticationAttemptedNoBg.svg`,ha=`${o}/authenticationExemptedWithTransactionNoBg.svg`,ma=`${o}/authenticationExemptedWithoutTransactionNoBg.svg`,wa=`${o}/authenticationDeclinedNoBg.svg`,ba=`${o}/authenticationUnavailableNoBg.svg`,ya=`${o}/authenticationUndeterminedNoBg.svg`,Sa=`${o}/authenticatedSuccessNoBg.svg`,ka=`${o}/authenticationWithTransactionNoBg.svg`,Aa=`${o}/authenticationWithoutTransactionNoBg.svg`,Ba=`${o}/greyPlusIcon.svg`,fa=`${o}/greyMinusIcon.svg`,Ca=`${o}/noPreviewIcon.svg`,Pa=`${o}/other/editIcon.svg`,Da=`${t}/viewInvoice.svg`,Ta=`${t}/checkoutStatus.svg`,Wa=`${t}/checkStatusOutBlue.svg`,Na=`${t}/checkoutWithMarkStatus.svg`,Ga=`${t}/intentExpiredStatus.svg`,La=`${t}/intentInitiatedStatus.svg`,Fa=`${t}/intentCancelledStatus.svg`,Oa=`${t}/intentTransactedStatus.svg`,Ra=`${o}/SheetViewUnionIcon.svg`,_a=`${o}/sheetView.svg`,Ea=`${o}/abandonedNoBG.svg`,za=`${o}/status/table/paidOut.svg`,Ma=`${o}/status/table/reversePayout.svg`,Ua=`${o}/status/pendingPayout.svg`,Va=`${t}/whiteCloseIcon.svg`,qa=`${o}/window/empty.svg`,Ha=`${o}/loaderWhiteIcon.svg`,Ya=`${t}/reverseActionIcon.svg`,ja=`${o}/status/authenticationWallet.svg`,Za=`${o}/status/authenticationApp.svg`,Qa=`${o}/status/authenticationBiometric.svg`,Xa=`${o}/status/authenticationDevice.svg`,Ja=`${o}/status/authenticationIssuer.svg`,Ka=`${o}/status/authenticationScheme.svg`,oi=`${o}/pin.svg`,ti=`${o}/unpin.svg`,ei=`${t}/switcher.svg`,ni=`${o}/closedStatusIcon.svg`,ci=`${o}/verticalLine.svg`,si=`${o}/previewModeIcon.svg`,ri=`${o}/status/table/tokensSaved.svg`,ai=`${o}/status/table/tokensTransacted.svg`,ii=`${o}/status/table/tokensExpired.svg`,pi=`${o}/status/table/tokensPending.svg`,gi=`${o}/status/table/tokenCardIcon.svg`,vi=`${t}/TableloadingSpinner.svg`,Ii=`${t}/loadingSpinnerWhite.svg`,di=`${o}/spinnerLoadingBlue.svg`,li=`${o}/backgroundLoader.svg`,xi=`${t}/arrowUpBlue1.svg`,$i=`${t}/BlueCheckMarkShadowed1.svg`,ui=`${t}/cardViewButton.svg`,hi=`${t}/listViewButton1.svg`,mi=`${o}/BlueArrowUpIcon.svg`,wi=`${o}/BlueCircleLoaderIcon.svg`,bi=`${o}/appsGridIcon2.svg`,yi=`${o}/whiteFilter.svg`,Si=`${o}/grayCloseIcon.svg`,ki=`${o}/status/OrderAgreementIcon.svg`,Ai=`${o}/status/InstallmentAgreementIcon.svg`,Bi=`${o}/status/CardAgreementIcon.svg`,fi=`${o}/status/SubscriptionAgreementIcon.svg`,Ci=`${o}/brandPlaceholder.svg`,Pi=`${o}/users-icons.svg`,Di=`${o}/Board-Icons.svg`,Ti=`${t}/No Agreement.svg`,Wi=`${o}/window/acceptance.svg`,Ni=`${o}/window/wallet.svg`,Gi=`${o}/window/billing.svg`,Li=`${o}/window/customers.svg`,Fi=`${o}/window/payout.svg`,Oi=`${o}/window/protect.svg`,Ri=`${o}/window/tokens.svg`,_i=`${o}/window/account.svg`,Ei=`${o}/window/businesses.svg`,zi=`${o}/window/authentication.svg`,Mi=`${t}/reportsIcon.svg`,Ui=`${o}/window/tokensReports.svg`,Vi=`${o}/window/brand.svg`,qi=`${o}/window/entity.svg`,Hi=`${o}/window/bank.svg`,Yi=`${o}/window/individual.svg`,ji=`${o}/window/password.svg`,Zi=`${o}/actionsIcon.svg`,Qi=`${o}/addItem.svg`,Xi=`${o}/attachIcon.svg`,Ji=`${o}/CollapseArrows.svg`,Ki=`${o}/customerIcon.svg`,op=`${o}/discountIcon.svg`,tp=`${o}/emailIcon.svg`,ep=`${o}/emailBlackIcon.svg`,np=`${o}/linkTiltedIcon.svg`,cp=`${o}/ExpandArrows.svg`,sp=`${o}/feeIcon.svg`,rp=`${o}/minusIcon.svg`,ap=`${o}/noteIcon.svg`,ip=`${o}/pdfGrayIcon.svg`,pp=`${o}/productLabel.svg`,gp=`${o}/quantityIcon.svg`,vp=`${o}/removeItem.svg`,Ip=`${t}/removeItem2.svg`,dp=`${o}/smsIcon.svg`,lp=`${o}/taxIcon.svg`,xp=`${o}/totalAmountIcon.svg`,$p=`${o}/unfocusRemoveItem.svg`,up=`${o}/whatsappIcon1.svg`,hp=`${o}/whiteArrow2.svg`,mp=`${o}/newInvoice.svg`,wp=`${o}/activeActionIcon.svg`,bp=`${o}/grayProductLabel.svg`,yp=`${o}/plusQty.svg`,Sp=`${t}/downArrow3.svg`,kp=`${o}/customer.svg`,Ap=`${t}/note.svg`,Bp=`${o}/blueNoteIcon.svg`,fp=`${t}/attach.svg`,Cp=`${o}/lateFee.svg`,Pp=`${o}/addItemIcon.svg`,Dp=`${o}/blueCheckIcon.svg`,Tp=`${t}/trash-bin.svg`,Wp=`${o}/redTrashBin.svg`,Np=`${o}/blueVerifyIcon.svg`,Gp=`${o}/verificationDarkBlue.svg`,Lp=`${o}/grayVerifyIcon.svg`,Fp=`${o}/greenVerifyIcon.svg`,Op=`${o}/redVerifyIcon.svg`,Rp=`${o}/closedVerifyIcon.svg`,_p=`${o}/archivedVerifyIcon.svg`,Ep=`${o}/penIcon.svg`,zp=`${t}/listShadow.svg`,Mp=`${o}/defaultCountryIcon.svg`,Up=`${o}/defaultDeviceIcon.svg`,Vp=`${o}/biometric.svg`,qp=`${o}/3dsBlue.svg`,Hp=`${t}/createCharge.svg`,Yp=`${t}/successCheck.svg`,jp=`${t}/receipt.svg`,Zp=`${t}/browserTimezone.svg`,Qp=`${t}/entityTimezone.svg`,Xp=`${t}/historyTimezone.svg`,Jp=`${t}/smallBlueCheck.svg`,Kp=`${t}/fileDownloadBlue.svg`,og=`${t}/fileDownloadGrey.svg`,tg=`${o}/meta.svg`,eg=`${o}/darkFilterIcon.svg`,ng=`${o}/resize-icon.svg`,cg=`${o}/home.svg`,sg=`${o}/lockIcon.svg`,rg=`${o}/Calendar.svg`,ag=`${o}/status-v2/autoCapturedNoBG.svg`,ig=`${o}/status-v2/autoVoidNoBG.svg`,pg=`${o}/status-v2/cancelledNoBG.svg`,gg=`${o}/status-v2/capturedNoBG.svg`,vg=`${o}/status-v2/declinedNoBG.svg`,Ig=`${o}/status-v2/destinationsNoBG.svg`,dg=`${o}/status-v2/failedNoBG.svg`,lg=`${o}/status-v2/gatewayOrange.svg`,xg=`${o}/status-v2/gatewayRedNoBG.svg`,$g=`${o}/status-v2/paidoutNoBG.svg`,ug=`${o}/status-v2/refundedIconNoBG2.svg`,hg=`${o}/status-v2/refundInitiatedNoBG.svg`,mg=`${o}/status-v2/refundSettledNoBG.svg`,wg=`${o}/status-v2/refundNotSettledNoBG.svg`,bg=`${o}/status-v2/restrictedNoBG.svg`,yg=`${o}/status-v2/settledNoBG.svg`,Sg=`${o}/status-v2/settlementInitiatedNoBG.svg`,kg=`${o}/status-v2/timeoutNoBG.svg`,Ag=`${o}/status-v2/unavailableNoBG.svg`,Bg=`${o}/status-v2/unknownNoBG.svg`,fg=`${o}/status-v2/void.svg`,Cg=`${o}/status-v2/authorizeNoBG.svg`,Pg=`${o}/status-v2/initiatedNoBG.svg`,Dg=`${o}/websiteBlueIcon.svg`,Tg=`${o}/androidAppIcon.svg`,Wg=`${o}/iOSAppIcon.svg`,Ng=`${o}/physicalLocationIcon.svg`,Gg=`${o}/socialLinksIcon.svg`,Lg=`${o}/smallLeftArrow.svg`,Fg=`${o}/searchBlueIcon.svg`,Og=`${t}/rightLightArrow.svg`,Rg=`${t}/segmentInstitution.svg`,_g=`${t}/segmentTechnology.svg`,Eg=`${t}/segmentDevelopmentHouse.svg`,zg=`${t}/terminal.svg`,Mg=`${o}/window/terminal.svg`,Ug=`${o}/terminalCardPhone.svg`,Vg=`${o}/ToastPOS.svg`,qg=`${o}/terminalTypeIcon.svg`,Hg=`${o}/terminalBrush.svg`,Yg=`${o}/terminalBrushMuted.svg`,jg=`${o}/navigationIcon.svg`,Zg=`${o}/babyBlueCheckIcon.svg`,Qg=`${o}/digitalReceiptIcon.svg`,Xg=`${o}/bankNoteIcon.svg`,Jg=`${o}/terminalDeviceFrame.svg`,Kg=`${o}/blackBrushIcon.svg`,ov=`${o}/mutedOutlinedCheckIcon.svg`,tv=`${o}/outlinedPlatformIcon.svg`,ev=`${o}/navigationPointerBlack.svg`,nv=`${o}/addIconWhite.svg`,cv=`${o}/greyUpArrow.svg`,sv=`${o}/greyDownArrow.svg`,rv=`${o}/services/brandService.svg`,av=`${o}/services/authorizationService.svg`,iv=`${o}/services/chargebacksService.svg`,pv=`${o}/services/chargesService.svg`,gv=`${o}/services/destinationsService.svg`,vv=`${o}/services/entityService.svg`,Iv=`${o}/services/invoiceService.svg`,dv=`${o}/services/payoutService.svg`,lv=`${o}/services/refundsService.svg`,xv=`${o}/services/usersService.svg`,$v=`${o}/services/walletService.svg`,uv=`${o}/services/intentsService.svg`,hv=`${o}/services/insightsService.svg`,mv=`${o}/services/retailersService.svg`,wv=`${o}/services/terminalService.svg`,bv=`${o}/services/createLead.svg`,yv=`${o}/services/viewLead.svg`,Sv=`${o}/archievedOutlined.svg`,kv=`${o}/closeOutlinedCircle.svg`,Av=`${o}/dashedOutlinedCircle.svg`,Bv=`${o}/deactivatedCircle.svg`,fv=`${o}/deactivatedOutlinedCircleV2.svg`,Cv=`${o}/exclamationOutlinedCircle.svg`,Pv=`${o}/questionOutlinedCircle.svg`,Dv=`${o}/outlinedCircle.svg`,Tv=`${o}/greenCheck2ACE00.svg`,Wv=`${o}/blueCopyIcon.svg`,Nv=`${o}/blackLinkIcon.svg`,Gv=`${o}/blackSettingsIcon.svg`,Lv=`${o}/blackWallet.svg`,Fv=`${o}/blueGradientBrushIcon.svg`,Ov=`${o}/gadientLink.svg`,Rv=`${o}/blackDeviceIcon.svg`,_v=`${o}/gradientDeviceIcon.svg`,Ev=`${o}/gradientSettings.svg`,zv=`${o}/gradientWallet.svg`,Mv=`${o}/codeIcon.svg`,Uv=`${o}/manyCurrencyCoin.svg`,Vv=`${o}/manyCurrencyCoinGradient.svg`,qv=`${o}/blackMobileBatteryIcon.svg`,Hv=`${o}/blackMobileSignalIcon.svg`,Yv=`${o}/emptyMobileWifiIcon.svg`,jv=`${o}/deemaWithLabel.svg`,Zv=`${o}/chargeBackWhiteIcon.svg`,Qv=`${o}/blackUnLinkIcon.svg`,Xv=`${o}/sortDescArrowIcon.svg`,Jv=`${o}/sortAscArrowIcon.svg`,Kv=`${o}/closedOutlinedYellowCircle.svg`,oI=`${o}/deactivatedOrangeCircle.svg`,tI=`${o}/deactivatedCircleV2.svg`,eI=`${o}/exclamationOutlinedOrangeCircle.svg`,nI=`${o}/activeGreenIcon.svg`,cI=`${o}/activeBlue.svg`,sI=`${o}/inActiveGreyIcon.svg`,rI=`${s}/terminal_link.mp4`,aI=`${o}/bluePlusIcon.svg`,iI=`${o}/blackSettingsVariant2Icon.svg`,pI=`${o}/exclamationWhite.svg`,gI=`${t}/blueCircleWithWhiteCheck.svg`,vI=`${o}/externalLink.svg`,II=`${o}/settingsIcon.svg`,dI=`${o}/flipIcon.svg`,lI=`${o}/shoppingCart.svg`,xI=`${o}/verifyAvatar.svg`,$I=`${o}/helpCircle.svg`,uI=`${o}/provider/CYBERSOURCE.svg`,hI=`${o}/provider/MPGS.svg`,mI=`${o}/provider/NETCETERA.svg`,wI=`${o}/provider/TAP3DS.svg`,bI=`${o}/provider/BENEFIT_PAY.svg`,yI=`${o}/provider/BENEFIT.svg`,SI=`${o}/provider/CAREEM_PAY.svg`,kI=`${o}/provider/DEEMA.svg`,AI=`${o}/provider/FAWRY.svg`,BI=`${o}/provider/FSS.svg`,fI=`${o}/provider/KNET.svg`,CI=`${o}/provider/MEEZA.svg`,PI=`${o}/provider/NGENIUS.svg`,DI=`${o}/provider/NPG.svg`,TI=`${o}/provider/OMAN_NET.svg`,WI=`${o}/provider/PAYPAL.svg`,NI=`${o}/provider/POSTPAY.svg`,GI=`${o}/provider/QPAY.svg`,LI=`${o}/provider/SPG.svg`,FI=`${o}/provider/STC_PAY.svg`,OI=`${o}/provider/TABBY.svg`,RI=`${o}/provider/TAMARA.svg`,_I=`${o}/provider/TPAY.svg`,EI=`${o}/provider/TPG.svg`,zI=`${o}/downloadBlue.svg`,MI=`${o}/eyeBlue.svg`,UI=`${o}/fastBlack.svg`,VI=`${o}/repeat.svg`,qI=`${o}/shield.svg`,HI=`${o}/fileMinus.svg`,YI=`${o}/percent.svg`,jI=`${o}/cardUpload.svg`,ZI=`${o}/startConnector.svg`,QI=`${o}/endConnector.svg`,XI=`${o}/filledConnector.svg`,JI=`${o}/dottedConnector.svg`,KI=`${o}/play.svg`,od=`${o}/merchantAttributes.svg`,td=`${o}/issuerAttributes.svg`,ed=`${o}/refresh.svg`,nd=`${o}/riskAttributes.svg`,cd=`${o}/exclude.svg`,sd=`${o}/earlySettlements.svg`,rd=`${o}/financedBy.svg`,ad=`${o}/financeFeatures.svg`,id=`${o}/loanAmount.svg`,pd=`${o}/murabhaFinance.svg`,gd=`${o}/testimonial.svg`,vd=`${a}/bulk-refund-template.xlsx`,Id=`${o}/emptyCopyIcon.svg`,dd=`${o}/deactiveIcon.svg`,ld=`${o}/disableIcon.svg`,xd=`${o}/extendIcon.svg`,$d=`${o}/payers.svg`,ud=`${o}/gatewayIcon.svg`;
|
|
2
|
+
export{eo as $,nt as $a,ne as $b,nn as $c,cc as $d,cs as $e,cr as $f,ca as $g,ci as $h,cp as $i,cg as $j,cv as $k,cI as $l,cd as $m,P as A,Do as Aa,Dt as Ab,De as Ac,Tn as Ad,Tc as Ae,Ts as Af,Tr as Ag,Ta as Ah,Ti as Ai,Tp as Aj,Tg as Ak,Tv as Al,TI as Am,D as B,To as Ba,Tt as Bb,Te as Bc,Wn as Bd,Wc as Be,Ws as Bf,Wr as Bg,Wa as Bh,Wi as Bi,Wp as Bj,Wg as Bk,Wv as Bl,WI as Bm,T as C,Wo as Ca,Wt as Cb,We as Cc,Nn as Cd,Nc as Ce,Ns as Cf,Nr as Cg,Na as Ch,Ni as Ci,Np as Cj,Ng as Ck,Nv as Cl,NI as Cm,W as D,No as Da,Nt as Db,Ne as Dc,Gn as Dd,Gc as De,Gs as Df,Gr as Dg,Ga as Dh,Gi as Di,Gp as Dj,Gg as Dk,Gv as Dl,GI as Dm,N as E,Go as Ea,Gt as Eb,Ge as Ec,Ln as Ed,Lc as Ee,Ls as Ef,Lr as Eg,La as Eh,Li as Ei,Lp as Ej,Lg as Ek,Lv as El,LI as Em,G as F,Lo as Fa,Lt as Fb,Le as Fc,Fn as Fd,Fc as Fe,Fs as Ff,Fr as Fg,Fa as Fh,Fi,Fp as Fj,Fg as Fk,Fv as Fl,FI as Fm,L as G,Fo as Ga,Ft as Gb,Fe as Gc,On as Gd,Oc as Ge,Os as Gf,Or as Gg,Oa as Gh,Oi as Gi,Op as Gj,Og as Gk,Ov as Gl,OI as Gm,F as H,Oo as Ha,Ot as Hb,Oe as Hc,Rn as Hd,Rc as He,Rs as Hf,Rr as Hg,Ra as Hh,Ri as Hi,Rp as Hj,Rg as Hk,Rv as Hl,RI as Hm,O as I,Ro as Ia,Rt as Ib,Re as Ic,_n as Id,_c as Ie,_s as If,_r as Ig,_a as Ih,_i as Ii,_p as Ij,_g as Ik,_v as Il,_I as Im,R as J,_o as Ja,_t as Jb,_e as Jc,En as Jd,Ec as Je,Es as Jf,Er as Jg,Ea as Jh,Ei as Ji,Ep as Jj,Eg as Jk,Ev as Jl,EI as Jm,_ as K,Eo as Ka,Et as Kb,Ee as Kc,zn as Kd,zc as Ke,zs as Kf,zr as Kg,za as Kh,zi as Ki,zp as Kj,zg as Kk,zv as Kl,zI as Km,E as L,zo as La,zt as Lb,ze as Lc,Mn as Ld,Mc as Le,Ms as Lf,Mr as Lg,Ma as Lh,Mi as Li,Mp as Lj,Mg as Lk,Mv as Ll,MI as Lm,z as M,Mo as Ma,Mt as Mb,Me as Mc,Un as Md,Uc as Me,Us as Mf,Ur as Mg,Ua as Mh,Ui as Mi,Up as Mj,Ug as Mk,Uv as Ml,UI as Mm,M as N,Uo as Na,Ut as Nb,Ue as Nc,Vn as Nd,Vc as Ne,Vs as Nf,Vr as Ng,Va as Nh,Vi as Ni,Vp as Nj,Vg as Nk,Vv as Nl,VI as Nm,U as O,Vo as Oa,Vt as Ob,Ve as Oc,qn as Od,qc as Oe,qs as Of,qr as Og,qa as Oh,qi as Oi,qp as Oj,qg as Ok,qv as Ol,qI as Om,V as P,qo as Pa,qt as Pb,qe as Pc,Hn as Pd,Hc as Pe,Hs as Pf,Hr as Pg,Ha as Ph,Hi as Pi,Hp as Pj,Hg as Pk,Hv as Pl,HI as Pm,q as Q,Ho as Qa,Ht as Qb,He as Qc,Yn as Qd,Yc as Qe,Ys as Qf,Yr as Qg,Ya as Qh,Yi as Qi,Yp as Qj,Yg as Qk,Yv as Ql,YI as Qm,H as R,Yo as Ra,Yt as Rb,Ye as Rc,jn as Rd,jc as Re,js as Rf,jr as Rg,ja as Rh,ji as Ri,jp as Rj,jg as Rk,jv as Rl,jI as Rm,Y as S,jo as Sa,jt as Sb,je as Sc,Zn as Sd,Zc as Se,Zs as Sf,Zr as Sg,Za as Sh,Zi as Si,Zp as Sj,Zg as Sk,Zv as Sl,ZI as Sm,j as T,Zo as Ta,Zt as Tb,Ze as Tc,Qn as Td,Qc as Te,Qs as Tf,Qr as Tg,Qa as Th,Qi as Ti,Qp as Tj,Qg as Tk,Qv as Tl,QI as Tm,Z as U,Qo as Ua,Qt as Ub,Qe as Uc,Xn as Ud,Xc as Ue,Xs as Uf,Xr as Ug,Xa as Uh,Xi as Ui,Xp as Uj,Xg as Uk,Xv as Ul,XI as Um,Q as V,Xo as Va,Xt as Vb,Xe as Vc,Jn as Vd,Jc as Ve,Js as Vf,Jr as Vg,Ja as Vh,Ji as Vi,Jp as Vj,Jg as Vk,Jv as Vl,JI as Vm,X as W,Jo as Wa,Jt as Wb,Je as Wc,Kn as Wd,Kc as We,Ks as Wf,Kr as Wg,Ka as Wh,Ki as Wi,Kp as Wj,Kg as Wk,Kv as Wl,KI as Wm,J as X,Ko as Xa,Kt as Xb,Ke as Xc,oc as Xd,os as Xe,or as Xf,oa as Xg,oi as Xh,op as Xi,og as Xj,ov as Xk,oI as Xl,od as Xm,K as Y,ot as Ya,oe as Yb,on as Yc,tc as Yd,ts as Ye,tr as Yf,ta as Yg,ti as Yh,tp as Yi,tg as Yj,tv as Yk,tI as Yl,td as Ym,oo as Z,tt as Za,te as Zb,tn as Zc,ec as Zd,es as Ze,er as Zf,ea as Zg,ei as Zh,ep as Zi,eg as Zj,ev as Zk,eI as Zl,ed as Zm,to as _,et as _a,ee as _b,en as _c,nc as _d,ns as _e,nr as _f,na as _g,ni as _h,np as _i,ng as _j,nv as _k,nI as _l,nd as _m,o as a,no as aa,ct as ab,ce as ac,cn as ad,sc as ae,ss as af,sr as ag,sa as ah,si as ai,sp as aj,sg as ak,sv as al,sI as am,sd as an,t as b,co as ba,st as bb,se as bc,sn as bd,rc as be,rs as bf,rr as bg,ra as bh,ri as bi,rp as bj,rg as bk,rv as bl,rI as bm,rd as bn,i as c,so as ca,rt as cb,re as cc,rn as cd,ac as ce,as as cf,ar as cg,aa as ch,ai as ci,ap as cj,ag as ck,av as cl,aI as cm,ad as cn,s as d,ro as da,at as db,ae as dc,an as dd,ic as de,is as df,ir as dg,ia as dh,ii as di,ip as dj,ig as dk,iv as dl,iI as dm,id as dn,r as e,ao as ea,it as eb,ie as ec,pn as ed,pc as ee,ps as ef,pr as eg,pa as eh,pi as ei,pp as ej,pg as ek,pv as el,pI as em,pd as en,a as f,io as fa,pt as fb,pe as fc,gn as fd,gc as fe,gs as ff,gr as fg,ga as fh,gi as fi,gp as fj,gg as fk,gv as fl,gI as fm,gd as fn,p as g,po as ga,gt as gb,ge as gc,vn as gd,vc as ge,vs as gf,vr as gg,va as gh,vi as gi,vp as gj,vg as gk,vv as gl,vI as gm,vd as gn,g as h,go as ha,vt as hb,ve as hc,In as hd,Ic as he,Is as hf,Ir as hg,Ia as hh,Ii as hi,Ip as hj,Ig as hk,Iv as hl,II as hm,Id as hn,v as i,vo as ia,It as ib,Ie as ic,dn as id,dc as ie,ds as if,dr as ig,da as ih,di as ii,dp as ij,dg as ik,dv as il,dI as im,dd as in,I as j,Io as ja,dt as jb,de as jc,ln as jd,lc as je,ls as jf,lr as jg,la as jh,li as ji,lp as jj,lg as jk,lv as jl,lI as jm,ld as jn,d as k,lo as ka,lt as kb,le as kc,xn as kd,xc as ke,xs as kf,xr as kg,xa as kh,xi as ki,xp as kj,xg as kk,xv as kl,xI as km,xd as kn,l,xo as la,xt as lb,xe as lc,$n as ld,$c as le,$s as lf,$r as lg,$a as lh,$i as li,$p as lj,$g as lk,$v as ll,$I as lm,$d as ln,x as m,$o as ma,$t as mb,$e as mc,un as md,uc as me,us as mf,ur as mg,ua as mh,ui as mi,up as mj,ug as mk,uv as ml,uI as mm,ud as mn,$ as n,uo as na,ut as nb,ue as nc,hn as nd,hc as ne,hs as nf,hr as ng,ha as nh,hi as ni,hp as nj,hg as nk,hv as nl,hI as nm,u as o,ho as oa,ht as ob,he as oc,mn as od,mc as oe,ms as of,mr as og,ma as oh,mi as oi,mp as oj,mg as ok,mv as ol,mI as om,h as p,mo as pa,mt as pb,me as pc,wn as pd,wc as pe,ws as pf,wr as pg,wa as ph,wi as pi,wp as pj,wg as pk,wv as pl,wI as pm,m as q,wo as qa,wt as qb,we as qc,bn as qd,bc as qe,bs as qf,br as qg,ba as qh,bi as qi,bp as qj,bg as qk,bv as ql,bI as qm,w as r,bo as ra,bt as rb,be as rc,yn as rd,yc as re,ys as rf,yr as rg,ya as rh,yi as ri,yp as rj,yg as rk,yv as rl,yI as rm,b as s,yo as sa,yt as sb,ye as sc,Sn as sd,Sc as se,Ss as sf,Sr as sg,Sa as sh,Si as si,Sp as sj,Sg as sk,Sv as sl,SI as sm,y as t,So as ta,St as tb,Se as tc,kn as td,kc as te,ks as tf,kr as tg,ka as th,ki as ti,kp as tj,kg as tk,kv as tl,kI as tm,S as u,ko as ua,kt as ub,ke as uc,An as ud,Ac as ue,As as uf,Ar as ug,Aa as uh,Ai as ui,Ap as uj,Ag as uk,Av as ul,AI as um,k as v,Ao as va,At as vb,Ae as vc,Bn as vd,Bc as ve,Bs as vf,Br as vg,Ba as vh,Bi as vi,Bp as vj,Bg as vk,Bv as vl,BI as vm,A as w,Bo as wa,Bt as wb,Be as wc,fn as wd,fc as we,fs as wf,fr as wg,fa as wh,fi as wi,fp as wj,fg as wk,fv as wl,fI as wm,B as x,fo as xa,ft as xb,fe as xc,Cn as xd,Cc as xe,Cs as xf,Cr as xg,Ca as xh,Ci as xi,Cp as xj,Cg as xk,Cv as xl,CI as xm,f as y,Co as ya,Ct as yb,Ce as yc,Pn as yd,Pc as ye,Ps as yf,Pr as yg,Pa as yh,Pi as yi,Pp as yj,Pg as yk,Pv as yl,PI as ym,C as z,Po as za,Pt as zb,Pe as zc,Dn as zd,Dc as ze,Ds as zf,Dr as zg,Da as zh,Di as zi,Dp as zj,Dg as zk,Dv as zl,DI as zm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2U6YCW6N.js';import {yc}from'./chunk-2CIV4TII.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var p=styled(b)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),i=styled("span")(()=>({display:"flex",alignItems:"center"}));function C({amount:s,currency:t,...a}){let u=yc(useId(),"amount-status-chip");return jsx(p,{id:u,"data-testid":"AmountStatusChip",disableAnimation:true,expandDirection:"left",...a,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(i,{children:t}),s]})})}var m=memo(C);var L=m;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Dialog,DialogContent,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(Dialog)(({theme:o})=>({"& .MuiDialog-paper":{boxShadow:o.shadows[13],borderRadius:o.spacing(1)},"& .MuiModal-backdrop":{background:"rgba(0, 0, 0, 0.20)"}})),u=styled(DialogContent)(({theme:o})=>({padding:o.spacing(2)})),y=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),h=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})),R=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 a=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function K({children:o}){let[i,r]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),n=useMemo(()=>[i,r],[i]);return jsxs(a.Provider,{value:n,children:[o,jsx(b,{})]})}var S=()=>{let[o,i]=useContext(a);return {...o,isConfirmed:({message:n,title:l,confirmText:p,cancelText:s,style:m})=>new Promise((f,v)=>{i({...o,open:true,message:n,title:l,cancelText:s,confirmText:p,style:m,onConfirm:f,onCancel:v});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=yc(useId(),"confirm-dialog"),{open:i,onClose:r,onConfirm:n,onCancel:l,confirmText:p,cancelText:s,message:m,title:g,style:f}=S();return jsx(x,{open:i,onClose:r,sx:f,id:o,"data-testid":"ConfirmDialog",children:jsxs(u,{children:[g&&jsx(h,{className:"title",children:g}),jsxs(y,{children:[jsx(P,{className:"message",children:m}),jsxs(R,{children:[jsx(c,{className:"cancel",onClick:l,children:s||"No"}),jsx(c,{className:"confirm",onClick:n,children:p||"Yes"})]})]})]})})}var b=d;export{a,K as b,S as c,b as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {gc}from'./chunk-KCEYICHJ.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=yc(useId(),"animated-spinner-icon");return jsx(e,{id:m,"data-testid":"AnimatedSpinnerIcon",src:gc,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {xk,vk,tk,qk,gk,ik,yk,fk,ek,wk,Jh,tb,jk,rb,kk,mk,nk,sk,rk,lk}from'./chunk-KCEYICHJ.js';var b={ABANDONED:Jh,IN_PROGRESS:yk,VOID:wk,CANCELLED:ek,CAPTURED:fk,INITIATED:yk,FAILED:ik,DECLINED:gk,RESTRICTED:qk,TIMEDOUT:tk,UNKNOWN:vk,AUTHORIZED:xk},C={UNKNOWN:{gatewayIcon:jk,acquirerIcon:tb,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:jk,acquirerIcon:tb,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:jk,acquirerIcon:tb,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:kk,acquirerIcon:rb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:kk,acquirerIcon:rb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:jk,acquirerIcon:tb,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:jk,acquirerIcon:tb,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:jk,acquirerIcon:tb}},R={PENDING:nk,REFUNDED:mk},S={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},O={PAID_OUT:lk,SETTLED:rk,PENDING:sk},k={AUTHORIZED:xk},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 {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {Rf,Qf,Tf,Pf}from'./chunk-KCEYICHJ.js';import {useId}from'react';import {styled,alpha}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var C=new Map([["warning",Qf],["success",Tf],["info",Pf],["error",Rf]]),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")??Rf;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=yc(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 {a,d,b,c,j as j$1,e}from'./chunk-
|
|
1
|
+
import {a,d,b,c,j as j$1,e}from'./chunk-UJ5BJK35.js';import {yc}from'./chunk-2CIV4TII.js';import {ec,fc}from'./chunk-KCEYICHJ.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=yc(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?ec:fc:t?fc:ec,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 {yc,ab,Zb}from'./chunk-
|
|
1
|
+
import {yc,ab,Zb}from'./chunk-2CIV4TII.js';import {wa}from'./chunk-BXMBE224.js';import {ua,sa}from'./chunk-KCEYICHJ.js';import {useId,useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:a,textColor:n=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:s=false,padding:i,minWidth:r,maxWidth:d,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:n,cursor:s?"not-allowed":"pointer",opacity:s?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:r||"67px",maxWidth:d||"none",width:"fit-content",overflow:"hidden",textOverflow:d?"ellipsis":"unset",boxSizing:"border-box",...a&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),y=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),k=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var q=({children:o,unknownText:a,copyText:n,expandDirection:e="right",chipStyles:c,containerStyles:s,fullWidth:i=false,...r})=>{let d=yc(useId(),"status-chip"),[l,C]=useState(false),{t:g}=useTranslation(),p=r.isSelected,w=p&&n,S=useCallback(x=>{if(x.stopPropagation(),n){C(true),ab(n);let B=setTimeout(()=>{C(false);},2e3);return ()=>{clearTimeout(B);}}},[n]),b=useMemo(()=>jsx(k,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:S,src:l?ua:sa,style:{height:12,width:12,objectFit:"contain"}})}),[l,S,e]),v=w&&e==="right",P=w&&e==="left";return o?jsxs(motion.div,{id:d,"data-testid":"StatusChip",style:{position:"relative",...s,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...r,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(y,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...r,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...v&&{paddingRight:12},...P&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:P&&b}),jsx(y,{"data-is-arabic":typeof o=="string"&&Zb(o),children:o}),jsx(AnimatePresence,{children:v&&b})]})})})]}):jsx(m,{...wa,...r,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:g(a||"unknown")})},j=q;var et=j;export{et as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.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=yc(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 {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(d)(()=>({color:"#1F88D0",backgroundColor:"#1F88D00D",padding:"8px 12px",borderRadius:"4px",fontSize:"11px",display:"flex",alignItems:"center",gap:"2px"})),r=styled("span")(()=>({fontWeight:700})),a=styled("span")(()=>({fontWeight:500}));function t(){let i=yc(useId(),"beta-banner");return jsxs(n,{id:i,"data-testid":"BetaBanner",children:[jsx(r,{children:"Insights is in beta -"}),jsx(a,{children:"improvements are ongoing, thanks for your patience."})]})}var C=t;export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc,Ia}from'./chunk-
|
|
1
|
+
import {yc,Ia}from'./chunk-2CIV4TII.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=yc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Ia(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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-GNY2VGGW.js';import {g as g$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-GNY2VGGW.js';import {g as g$1}from'./chunk-2CIV4TII.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,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,...T,children:[r&&jsx(u,{}),m?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("selected")}),jsx(g,{children:g$1(m)})]}):null,o||o===0?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("count")}),jsx(g,{children:g$1(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 {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {memo,useId}from'react';import s from'react-dom';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled(Box)(()=>({position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:999}));function a(m){let p=yc(useId(),"custom-backdrop");return s.createPortal(jsx(t,{...m,id:p,"data-testid":"CustomBackdrop"}),document.body)}var r=memo(a);var b=r;export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-NJFK5TAC.js';import {yc,$b}from'./chunk-2CIV4TII.js';import {zi,wk,ka,Vd,Rj,F as F$1,jl,D,wb}from'./chunk-KCEYICHJ.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:jl,flag:F$1,viewReceipt:Rj,viewApi:Vd,capture:ka,void:wk,clipboard:zi};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=yc(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??D,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:wb,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=$b(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:wb,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 {t}from'./chunk-
|
|
1
|
+
import {t}from'./chunk-O5KFJKRT.js';import {yc}from'./chunk-2CIV4TII.js';import {forwardRef,useId,useMemo,Children,useCallback,memo}from'react';import C from'@mui/material/Popper';import y from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{shouldForwardProp:o=>o!=="showShadow"})(({theme:o,showShadow:e})=>({borderRadius:o.spacing(.5),background:o.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:o.shadows[11],display:"flex",flexDirection:"column",overflowY:"scroll",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o.palette.divider}`},"&::after":{content:'""',width:"100%",height:"34px",position:"fixed",bottom:0,pointerEvents:"none",zIndex:999999,background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",transition:o.transitions.create("opacity",{duration:250}),...e?{opacity:1}:{opacity:0}}}));var R=forwardRef(({open:o,anchorEl:e,children:r,sx:c,placement:m,popperSx:u,dropdownProps:w,...f},h)=>{let x=yc(useId(),"menu"),{onScrollHandler:t$1,showShadow:S}=t(),{onScroll:n,...P}=w||{},b=useMemo(()=>Children.count(r),[r])>12&&S,g=useCallback(p=>{t$1(p),n?.(p);},[t$1,n]);return jsx(C,{ref:h,id:x,"data-testid":"Menu",open:o,anchorEl:e,placement:m||"bottom-start",sx:u,...f,children:jsx(a,{showShadow:b,onScroll:g,className:"MuiPopper-dropdown",sx:c,...P,children:r})},"menu")}),l=memo(R);var K=l;export{K as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {$,Eb,A,tc,uc}from'./chunk-
|
|
1
|
+
import {$,Eb,A,tc,uc}from'./chunk-2CIV4TII.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function U(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function ve(){let[e,n]=useState(U);return useEffect(()=>{let t;function o(){cancelAnimationFrame(t),t=requestAnimationFrame(()=>{n(U());});}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),cancelAnimationFrame(t);}},[]),e}var Ee=()=>{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 Ce({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 ke=()=>{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);},[]),d=useCallback(m=>{if(m&&e?.getBoundingClientRect()){let{pageX:p,pageY:g}=m,f=e.getBoundingClientRect(),{left:w,right:v,bottom:T,top:E}=f;if(p>w&&p<v&&g>E&&g<T){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:d,hideDropdown:l,showActionsDropdown:a}};function Oe(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 Re=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{$()||(window.location.href="/login");},[e]);};function Be(e){return {isParameterSelected:(o,r)=>r?.map(s=>Eb(e,o,s)),getColumnOrder:o=>{let r=e.findIndex(s=>s.name?.toLowerCase()===o?.toLowerCase());return r===-1?100:r}}}var ze=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 Ne=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function Ye(){let[e,n]=useState(0),t=useRef(null),o=A(e),r=()=>{t.current&&(clearInterval(t.current),t.current=null);},s=()=>{r(),n(0);},i=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 Ze=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 R(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function rt(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 ct=(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 mt(){let e=R("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 ft({threshold:e=ue,containerRef:n}={}){let[t,o]=useState(true),[r,s]=useState(false),[i,c]=useState(false),a=useCallback(l=>{let{scrollTop:d,scrollHeight:m,clientHeight:p}=l;c(m>p+e),o(d<=e),s(m-(d+p)<=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 d=new ResizeObserver(()=>{u(l);});return d.observe(l),()=>{d.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:r,scrollable:i}}var vt=(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,d]=useState(null),m=useRef(null),p=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,w=()=>{p.current!==null&&(window.clearInterval(p.current),p.current=null);},v=async()=>{u(true),d(null),f?.abort(),f=new AbortController;try{let C=window.setTimeout(()=>{f?.abort();},r),x=await fetch(n,{method:"GET",cache:"no-store",signal:f.signal});window.clearTimeout(C);let A=x.ok;g(A),A?w():d(`Health check failed with status ${x.status}`);}catch{g(false),d("Unable to reach network");}finally{u(false);}},T=()=>{w(),g(true);},E=()=>{g(false),w(),v(),p.current=window.setInterval(v,t);};return window.addEventListener("online",T),window.addEventListener("offline",E),navigator.onLine||(v(),p.current=window.setInterval(v,t)),()=>{window.removeEventListener("online",T),window.removeEventListener("offline",E),m.current!==null&&window.clearTimeout(m.current),w(),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 Mt=(e={},n,t)=>{let o=tc(e,t.requiredFilterKeys);return {columns:useMemo(()=>uc(n,o,t),[n,o])}};function xt(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}function Lt(){let[e,n]=useState(true);return {onScrollHandler:useCallback(o=>{let{scrollTop:r,scrollHeight:s,clientHeight:i}=o.currentTarget,c=r===0||i<s-r-1;n(a=>a===c?a:c);},[]),showShadow:e}}export{ve as a,Ee as b,Ce as c,ke as d,Oe as e,Re as f,Be as g,ze as h,Ne as i,Ye as j,Ze as k,R as l,rt as m,ct as n,mt as o,ft as p,vt as q,Mt as r,xt as s,Lt as t};
|
|
@@ -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-LDLGBNMM.js';import {a as a$2}from'./chunk-H6HHXYRL.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-2CIV4TII.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=yc(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 {
|
|
1
|
+
import {Nc,jc}from'./chunk-KCEYICHJ.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:jc,error:Nc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.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=yc(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 {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GIJKKRNG.js';import {memo}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(r)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(r)(({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(r)(({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:t})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...t&&{cursor:"move"},margin:0})),H=styled(r,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},position:"relative",zIndex:1,margin:0})),s=styled(r,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:t})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...t&&{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:t,isMaximized:g,isHovered:x,children:w,rightActions:m,leftActions:a$1,title:b,icon:y,...u}){return jsx(s,{onMouseEnter:o,onMouseLeave:t,maximized:g,id:"toolbar","data-testid":"Toolbar",isHovered:x,...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}),m||jsx("div",{})]})})}var c=memo(v);var D=c;export{p as a,H as b,f as c,D as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {t,s}from'./chunk-KCEYICHJ.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=yc(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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-ZI2427WJ.js';import {a as a$3}from'./chunk-WXZAKC23.js';import {j,a as a$5}from'./chunk-H7HCLGNO.js';import {a}from'./chunk-WQXW2YTH.js';import {a as a$2}from'./chunk-TEGPKTJ6.js';import {a as a$1}from'./chunk-P2ESF6CK.js';import {lc,yc,o}from'./chunk-RBCDAZB4.js';import {U}from'./chunk-UKJ66LPD.js';import {Uc,Vc,Rj,Sj,Tj,dc,ec,Uj,cc}from'./chunk-R3NBSKNX.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import Rt from'@mui/material/Collapse';import xt from'@mui/material/Popper';import Pt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import No from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import et from'react-date-object/calendars/arabic';import ot from'react-date-object/calendars/gregorian';import tt from'react-date-object/locales/arabic_ar';import rt from'react-date-object/locales/arabic_en';import nt from'react-date-object/locales/gregorian_ar';import it from'react-date-object/locales/gregorian_en';var Ue=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ne=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),Ke=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),_e=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Ze={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function _o({sx:e,groupBy:o,isCalenderOpen:a$1,onUpdate:t}){let[n,p]=useState(null),l=!!n&&a$1,{t:m}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},s=d=>{t?.(d),c();};return jsx(No,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ue,{children:m("groupedBy")}),jsxs(Ne,{onClick:u,open:l,children:[jsx("span",{children:Ze[o]}),jsx(S,{component:"img",src:Vc,alt:"arrow",sx:{...l&&{transform:"rotate(180deg)"}}})]}),jsx(a,{open:l,anchorEl:n,children:jsx(Ke,{sx:{width:n?.clientWidth},children:Object.entries(Ze).map(([d,i])=>jsx(_e,{onClick:()=>{s(d);},className:o===d?"active":"",children:i},`${d}-groupedBy`))})})]})})}var Xe=memo(_o);var Ve=Xe;var eo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function le({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(eo,{children:[jsxs(S,{children:[jsx("img",{src:cc,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(a$4,{checked:e,onChange:t})]})})}var ro=le;var io=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),ao=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var Z=({isHijri:e,isAr:o=false})=>e?o?tt:rt:o?nt:it,J=e=>e?et:ot,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),X=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o$1,a]=o();return [new q(o$1),new q(a)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:a=false}){let t={locale:Z({isHijri:o,isAr:a}),calendar:J(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,a]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(ao,{children:n.map(l=>jsx(io,{onClick:m=>{m.preventDefault(),e(l.value);},children:p(l.id)},l.id))})})}var po=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ut=["Su","Mo","Tu","We","Th","Fr","Sa"];function ft({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:n=2,...p},l){let m=c=>c==="right"?e?dc:ec:e?ec:dc;return jsx(Calendar,{ref:l,numberOfMonths:n,value:a,onChange:t,calendar:J(o),locale:Z({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:m(c),alt:"arrow"})}),weekDays:e?void 0:ut,maxDate:new Date,...p})}var lo=forwardRef(ft);var mo=lo;var co=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),uo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),W=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:a,defaultCountryTimezone:t}){let[n,p]=useState(null),l=i=>{n||p(i.currentTarget);},m=()=>{n&&p(null);},c=(i,D)=>{i.stopPropagation(),o(D);},u=useMemo(()=>a?.map(i=>lc(i)),[a]),s=useMemo(()=>u?.some(i=>e?.timezone===i?.timezone),[u,e]),d=useMemo(()=>e&&s?e:t,[e,t,s]);return jsxs(L,{onMouseEnter:l,onMouseLeave:m,onClick:()=>{e&&o(d);},children:[s?jsx("img",{src:Uj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Sj,alt:"entity-timezone"}),jsx(a$1,{countryCode:d?.countryCode}),jsx(W,{className:s?"selected":"",children:s?e?.label:t?.label}),jsx(xt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((i,D)=>{let j=i?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,i);},sx:{gap:"4px"},children:[j?jsx("img",{src:Uj,alt:"icon"}):jsx(A,{}),jsx(a$1,{countryCode:i?.countryCode}),jsx(W,{className:j?"selected":"",children:i?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:a}){let t=useMemo(()=>U.find(({timezone:l})=>l===a),[a]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Uj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Rj,alt:"user-timezone"}),jsx(a$1,{countryCode:t?.countryCode}),jsx(W,{className:p?"selected":"",children:t?.label})]})}function zt({onChange:e,selectedTimezone:o,browserTimezone:a,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,l]=useState(null),m=!!p,c=()=>{l(null);},u=i=>{e(i),c();},s=i=>{l(i.currentTarget);},d=useMemo(()=>a===o?.timezone?Rj:o?.timezone===t.timezone?Sj:Tj,[a,t.timezone,o?.timezone]);return jsx(No,{onClickAway:c,children:jsxs(co,{"data-testid":"CustomTimezone",children:[jsxs(uo,{open:m,onClick:s,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a$1,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(xt,{open:m,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:a})]})})]})})}var go=memo(zt);var xo=go;var bo=styled(S)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".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"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),ho=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),wo=styled(S)(()=>({display:"flex",gap:8})),Co=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),To=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),ko=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),zo=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),So=styled(S)(()=>({position:"relative"})),vo=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Do=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Mo=styled(S)(()=>({width:235})),Bo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Uc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Dt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,l]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),m=({period:s,hour:d})=>s==="PM"&&d!==12?d+12:s==="AM"&&d===12?0:d,c=({hour:s,minute:d,period:i})=>{o([t.setHour(m({hour:s,period:i})).setMinute(d).setSecond(0),n]);},u=({hour:s,minute:d,period:i})=>{o([t,n.setHour(m({hour:s,period:i})).setMinute(d).setSecond(59)]);};return jsx(Mo,{children:jsxs(Eo,{children:[jsxs(Do,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(a$4,{checked:p,onChange:s=>{l(!p),s.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Bo,{children:[jsx(j,{defaultTime:{hour:a$5(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$5(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Ro=Dt;var Io=Ro;function At({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:l,maxDateRange:m,onCalendarGroupChange:c,groupBy:u,timezone:s,onChangeTimezone:d,browserTimezone:i,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Ao,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(X(e)),[x,C]=useState(w),[ze,Se]=useState(s??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),I=useRef(null),Fo=yc(useId(),"range-calender"),ne=a==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(X(e));}},[y]),useEffect(()=>{if(e){let r=X(e);ke(r),C(r),I.current&&I.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(s??null);},[s,y]);let Re=()=>{ke(x),Y();let r;x[0].dayOfYear===x[1].dayOfYear?r=[x[0],x[1]]:r=[M(x[0]),B(x[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},Ho=useCallback(()=>{let r=w[0].format("MMM D"),G=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===G&&!p?r:`${r} - ${G}`},[w,p]),jo=r=>{if(r.length<2||!m){C(r);return}let G=M(r[0]).toDate(),$o=B(r[1]).toDate(),Ie=Pt($o).diff(G,"day");if(Ie<=m){C(r);return}Ee(true),C([r[0],r[1].subtract(Ie-m,"d")]),setTimeout(()=>{Ee(false);},3e3);},Yo=r=>{C([M(r[0]),B(r[1])]),I.current&&I.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(So,{id:Fo,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(Co,{onClick:Oe,open:y,children:(w[0]||w[1])&&Ho()}),y&&jsx(a$2,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(xt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(bo,{onKeyDown:Go,children:[!l&&jsxs(ko,{children:[jsx(po,{onChange:Yo,isHijri:ne}),jsxs(vo,{children:[u&&jsx(Ve,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(ro,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(mo,{values:x,onChange:jo,isHijri:ne,ref:I,numberOfMonths:n,...Ao}),jsx(Rt,{in:Be&&!!m,children:jsx(a$3,{error:re("dateRangeError",{number:m}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(To,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&i&&Te?jsx(zo,{children:jsx(xo,{onChange:Se,selectedTimezone:ze,browserTimezone:i,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}):jsx("div",{}),new DateObject(x[0]).dayOfYear===new DateObject(x[1]).dayOfYear&&jsx(Io,{values:x,setValues:C}),jsxs(wo,{children:[jsx(ho,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(yo,{variant:"contained",onClick:Re,disabled:!x[1],children:re("okay")})]})]})]})]})})]})}var Lo=At;var xi=Lo;export{xi as a};
|
|
1
|
+
import {a as a$4}from'./chunk-PB4RPRX3.js';import {a as a$3}from'./chunk-AVIDTGY5.js';import {j,a as a$5}from'./chunk-UJ5BJK35.js';import {a}from'./chunk-O2SPQA5J.js';import {a as a$2}from'./chunk-NJFK5TAC.js';import {a as a$1}from'./chunk-4DSO4G5S.js';import {lc,yc,o}from'./chunk-2CIV4TII.js';import {U}from'./chunk-BXMBE224.js';import {Vc,Wc,Sj,Tj,Uj,ec,fc,Vj,dc}from'./chunk-KCEYICHJ.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import Rt from'@mui/material/Collapse';import xt from'@mui/material/Popper';import Pt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import No from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import et from'react-date-object/calendars/arabic';import ot from'react-date-object/calendars/gregorian';import tt from'react-date-object/locales/arabic_ar';import rt from'react-date-object/locales/arabic_en';import nt from'react-date-object/locales/gregorian_ar';import it from'react-date-object/locales/gregorian_en';var Ue=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ne=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),Ke=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),_e=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Ze={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function _o({sx:e,groupBy:o,isCalenderOpen:a$1,onUpdate:t}){let[n,p]=useState(null),l=!!n&&a$1,{t:m}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},s=d=>{t?.(d),c();};return jsx(No,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ue,{children:m("groupedBy")}),jsxs(Ne,{onClick:u,open:l,children:[jsx("span",{children:Ze[o]}),jsx(S,{component:"img",src:Wc,alt:"arrow",sx:{...l&&{transform:"rotate(180deg)"}}})]}),jsx(a,{open:l,anchorEl:n,children:jsx(Ke,{sx:{width:n?.clientWidth},children:Object.entries(Ze).map(([d,i])=>jsx(_e,{onClick:()=>{s(d);},className:o===d?"active":"",children:i},`${d}-groupedBy`))})})]})})}var Xe=memo(_o);var Ve=Xe;var eo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function le({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(eo,{children:[jsxs(S,{children:[jsx("img",{src:dc,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(a$4,{checked:e,onChange:t})]})})}var ro=le;var io=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),ao=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var Z=({isHijri:e,isAr:o=false})=>e?o?tt:rt:o?nt:it,J=e=>e?et:ot,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),X=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o$1,a]=o();return [new q(o$1),new q(a)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:a=false}){let t={locale:Z({isHijri:o,isAr:a}),calendar:J(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,a]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(ao,{children:n.map(l=>jsx(io,{onClick:m=>{m.preventDefault(),e(l.value);},children:p(l.id)},l.id))})})}var po=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ut=["Su","Mo","Tu","We","Th","Fr","Sa"];function ft({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:n=2,...p},l){let m=c=>c==="right"?e?ec:fc:e?fc:ec;return jsx(Calendar,{ref:l,numberOfMonths:n,value:a,onChange:t,calendar:J(o),locale:Z({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:m(c),alt:"arrow"})}),weekDays:e?void 0:ut,maxDate:new Date,...p})}var lo=forwardRef(ft);var mo=lo;var co=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),uo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),W=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:a,defaultCountryTimezone:t}){let[n,p]=useState(null),l=i=>{n||p(i.currentTarget);},m=()=>{n&&p(null);},c=(i,D)=>{i.stopPropagation(),o(D);},u=useMemo(()=>a?.map(i=>lc(i)),[a]),s=useMemo(()=>u?.some(i=>e?.timezone===i?.timezone),[u,e]),d=useMemo(()=>e&&s?e:t,[e,t,s]);return jsxs(L,{onMouseEnter:l,onMouseLeave:m,onClick:()=>{e&&o(d);},children:[s?jsx("img",{src:Vj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Tj,alt:"entity-timezone"}),jsx(a$1,{countryCode:d?.countryCode}),jsx(W,{className:s?"selected":"",children:s?e?.label:t?.label}),jsx(xt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((i,D)=>{let j=i?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,i);},sx:{gap:"4px"},children:[j?jsx("img",{src:Vj,alt:"icon"}):jsx(A,{}),jsx(a$1,{countryCode:i?.countryCode}),jsx(W,{className:j?"selected":"",children:i?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:a}){let t=useMemo(()=>U.find(({timezone:l})=>l===a),[a]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Vj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Sj,alt:"user-timezone"}),jsx(a$1,{countryCode:t?.countryCode}),jsx(W,{className:p?"selected":"",children:t?.label})]})}function zt({onChange:e,selectedTimezone:o,browserTimezone:a,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,l]=useState(null),m=!!p,c=()=>{l(null);},u=i=>{e(i),c();},s=i=>{l(i.currentTarget);},d=useMemo(()=>a===o?.timezone?Sj:o?.timezone===t.timezone?Tj:Uj,[a,t.timezone,o?.timezone]);return jsx(No,{onClickAway:c,children:jsxs(co,{"data-testid":"CustomTimezone",children:[jsxs(uo,{open:m,onClick:s,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a$1,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(xt,{open:m,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:a})]})})]})})}var go=memo(zt);var xo=go;var bo=styled(S)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".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"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),ho=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),wo=styled(S)(()=>({display:"flex",gap:8})),Co=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),To=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),ko=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),zo=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),So=styled(S)(()=>({position:"relative"})),vo=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Do=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Mo=styled(S)(()=>({width:235})),Bo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Vc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Dt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,l]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),m=({period:s,hour:d})=>s==="PM"&&d!==12?d+12:s==="AM"&&d===12?0:d,c=({hour:s,minute:d,period:i})=>{o([t.setHour(m({hour:s,period:i})).setMinute(d).setSecond(0),n]);},u=({hour:s,minute:d,period:i})=>{o([t,n.setHour(m({hour:s,period:i})).setMinute(d).setSecond(59)]);};return jsx(Mo,{children:jsxs(Eo,{children:[jsxs(Do,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(a$4,{checked:p,onChange:s=>{l(!p),s.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Bo,{children:[jsx(j,{defaultTime:{hour:a$5(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$5(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Ro=Dt;var Io=Ro;function At({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:l,maxDateRange:m,onCalendarGroupChange:c,groupBy:u,timezone:s,onChangeTimezone:d,browserTimezone:i,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Ao,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(X(e)),[x,C]=useState(w),[ze,Se]=useState(s??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),I=useRef(null),Fo=yc(useId(),"range-calender"),ne=a==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(X(e));}},[y]),useEffect(()=>{if(e){let r=X(e);ke(r),C(r),I.current&&I.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(s??null);},[s,y]);let Re=()=>{ke(x),Y();let r;x[0].dayOfYear===x[1].dayOfYear?r=[x[0],x[1]]:r=[M(x[0]),B(x[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},Ho=useCallback(()=>{let r=w[0].format("MMM D"),G=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===G&&!p?r:`${r} - ${G}`},[w,p]),jo=r=>{if(r.length<2||!m){C(r);return}let G=M(r[0]).toDate(),$o=B(r[1]).toDate(),Ie=Pt($o).diff(G,"day");if(Ie<=m){C(r);return}Ee(true),C([r[0],r[1].subtract(Ie-m,"d")]),setTimeout(()=>{Ee(false);},3e3);},Yo=r=>{C([M(r[0]),B(r[1])]),I.current&&I.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(So,{id:Fo,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(Co,{onClick:Oe,open:y,children:(w[0]||w[1])&&Ho()}),y&&jsx(a$2,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(xt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(bo,{onKeyDown:Go,children:[!l&&jsxs(ko,{children:[jsx(po,{onChange:Yo,isHijri:ne}),jsxs(vo,{children:[u&&jsx(Ve,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(ro,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(mo,{values:x,onChange:jo,isHijri:ne,ref:I,numberOfMonths:n,...Ao}),jsx(Rt,{in:Be&&!!m,children:jsx(a$3,{error:re("dateRangeError",{number:m}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(To,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&i&&Te?jsx(zo,{children:jsx(xo,{onChange:Se,selectedTimezone:ze,browserTimezone:i,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}):jsx("div",{}),new DateObject(x[0]).dayOfYear===new DateObject(x[1]).dayOfYear&&jsx(Io,{values:x,setValues:C}),jsxs(wo,{children:[jsx(ho,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(yo,{variant:"contained",onClick:Re,disabled:!x[1],children:re("okay")})]})]})]})]})})]})}var Lo=At;var xi=Lo;export{xi as a};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {b}from'./chunk-MUR4ILTY.js';import {yc}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-MUR4ILTY.js';import {yc}from'./chunk-2CIV4TII.js';import {xb}from'./chunk-KCEYICHJ.js';import {useId,useCallback}from'react';import v,{autocompleteClasses}from'@mui/material/Autocomplete';import y from'@mui/material/Box';import M from'@mui/material/TextField';import R from'@mui/material/Popper';import {keyframes,styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var T=keyframes`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(-90deg);
|
|
4
4
|
}
|
|
5
5
|
100% {
|
|
6
6
|
transform: rotate(270deg);
|
|
7
7
|
}
|
|
8
|
-
`,u=styled(y)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${T} 2s linear infinite`}),m=styled(M)({"& .MuiInputBase-root":{paddingTop:13,paddingBottom:13,borderRadius:4,"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderStyle:"solid",borderColor:"#F2F2F2"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#F2F2F2"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0"}}},[`& .${autocompleteClasses.input}`]:{fontSize:11,paddingTop:0,paddingBottom:0,paddingLeft:0},[`& .${autocompleteClasses.endAdornment}`]:{marginRight:8}}}),c=styled(R)({fontSize:11,borderRadius:"8px",border:"1px solid #F2F2F2",boxShadow:"0px 2px 56px 0px #20232B24"});var D=f=>{let{options:x,value:b$1,onChange:g,label:n,renderInput:P,slotProps:p,textFieldProps:o,loading:l,popupIcon:F,...I}=f,h=yc(useId(),"auto-complete"),C=useCallback(r=>{let A=typeof o=="function"?o(r):o;return jsx(m,{...r,...A,label:n})},[o,n]);return jsx(v,{id:h,"data-testid":"AutoComplete",options:x,value:b$1,onChange:g,loading:l,popupIcon:l?jsx(u,{"aria-hidden":true,children:jsx(b,{})}):F??jsx(y,{component:"img",src:
|
|
8
|
+
`,u=styled(y)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${T} 2s linear infinite`}),m=styled(M)({"& .MuiInputBase-root":{paddingTop:13,paddingBottom:13,borderRadius:4,"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderStyle:"solid",borderColor:"#F2F2F2"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#F2F2F2"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0"}}},[`& .${autocompleteClasses.input}`]:{fontSize:11,paddingTop:0,paddingBottom:0,paddingLeft:0},[`& .${autocompleteClasses.endAdornment}`]:{marginRight:8}}}),c=styled(R)({fontSize:11,borderRadius:"8px",border:"1px solid #F2F2F2",boxShadow:"0px 2px 56px 0px #20232B24"});var D=f=>{let{options:x,value:b$1,onChange:g,label:n,renderInput:P,slotProps:p,textFieldProps:o,loading:l,popupIcon:F,...I}=f,h=yc(useId(),"auto-complete"),C=useCallback(r=>{let A=typeof o=="function"?o(r):o;return jsx(m,{...r,...A,label:n})},[o,n]);return jsx(v,{id:h,"data-testid":"AutoComplete",options:x,value:b$1,onChange:g,loading:l,popupIcon:l?jsx(u,{"aria-hidden":true,children:jsx(b,{})}):F??jsx(y,{component:"img",src:xb,sx:{transform:"rotate(90deg)"},width:8,alt:"close"}),renderInput:P||C,PopperComponent:c,...I,slotProps:{...p,popper:{modifiers:[{name:"offset",options:{offset:[0,4]}}],...p?.popper}}})},Y=D;export{Y as a};
|