@tap-payments/os-micro-frontend-shared 0.3.67 → 0.3.68
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-IA3KT5KN.js → chunk-2ACC7E2D.js} +1 -1
- package/build/_chunks/{chunk-EACF7BID.js → chunk-2B3PDSRZ.js} +1 -1
- package/build/_chunks/{chunk-OZMCGQL5.js → chunk-2R4AJCHF.js} +1 -1
- package/build/_chunks/{chunk-4IOYLJ5U.js → chunk-2YPZ5SFL.js} +1 -1
- package/build/_chunks/{chunk-PH2ZY7ZU.js → chunk-346UWREM.js} +1 -1
- package/build/_chunks/{chunk-ZD3JWH3P.js → chunk-43QDLDPG.js} +1 -1
- package/build/_chunks/{chunk-2H2LJL4F.js → chunk-47ZRUJFI.js} +1 -1
- package/build/_chunks/{chunk-ATNY2LPI.js → chunk-4VLIH5YX.js} +1 -1
- package/build/_chunks/{chunk-764VR23Y.js → chunk-55JPH7AB.js} +1 -1
- package/build/_chunks/{chunk-UMKD7WPP.js → chunk-5BLMSN42.js} +1 -1
- package/build/_chunks/{chunk-BYB2TJ24.js → chunk-5FNDQU3R.js} +1 -1
- package/build/_chunks/{chunk-TANTFJSX.js → chunk-5HBH7HFR.js} +1 -1
- package/build/_chunks/{chunk-AYIKMAN7.js → chunk-5JDM2OHR.js} +1 -1
- package/build/_chunks/{chunk-R7YGGX5F.js → chunk-66KB36KX.js} +1 -1
- package/build/_chunks/{chunk-SW5ZXNRC.js → chunk-6DJZR6DT.js} +1 -1
- package/build/_chunks/{chunk-XAGR5WQP.js → chunk-6HFXNELS.js} +1 -1
- package/build/_chunks/{chunk-WJRRBCIT.js → chunk-6KSZMOFB.js} +1 -1
- package/build/_chunks/chunk-6MPSFN4G.js +1 -0
- package/build/_chunks/{chunk-QQS2GEQN.js → chunk-6NJALO76.js} +1 -1
- package/build/_chunks/{chunk-ISG5DFBU.js → chunk-6OSEDUDN.js} +1 -1
- package/build/_chunks/{chunk-JWLOOVO2.js → chunk-77E7FMPY.js} +1 -1
- package/build/_chunks/{chunk-TEVO5QLL.js → chunk-7SBZNLSY.js} +1 -1
- package/build/_chunks/{chunk-ANMHKZOI.js → chunk-7UPV7K3Y.js} +1 -1
- package/build/_chunks/{chunk-RVJYNC6F.js → chunk-AMSVJBGD.js} +1 -1
- package/build/_chunks/{chunk-SDOPMVGM.js → chunk-AR64QIOP.js} +1 -1
- package/build/_chunks/{chunk-YQ4QVMV4.js → chunk-B45LLXB2.js} +1 -1
- package/build/_chunks/{chunk-MDFWWFT5.js → chunk-BFSA5L5Z.js} +1 -1
- package/build/_chunks/chunk-BI555NOS.js +1 -0
- package/build/_chunks/{chunk-D4NZTMT5.js → chunk-BOCI55GN.js} +1 -1
- package/build/_chunks/{chunk-EUHTPAPD.js → chunk-BQIH2BOK.js} +1 -1
- package/build/_chunks/chunk-C6RYKVKW.js +1 -0
- package/build/_chunks/{chunk-UBQX4DMM.js → chunk-CEZORDNW.js} +1 -1
- package/build/_chunks/{chunk-73WKW7YD.js → chunk-CMDBF33G.js} +1 -1
- package/build/_chunks/{chunk-MCV7YQYC.js → chunk-CMOFC5SW.js} +1 -1
- package/build/_chunks/{chunk-DL2LBZ5Y.js → chunk-CPOSZ3EH.js} +1 -1
- package/build/_chunks/{chunk-7JMAMJNE.js → chunk-CSRKMSDK.js} +1 -1
- package/build/_chunks/{chunk-KB7ZTJAY.js → chunk-DBRJHYVN.js} +1 -1
- package/build/_chunks/{chunk-LZXTN22L.js → chunk-DELIWRGO.js} +1 -1
- package/build/_chunks/{chunk-MK5G3IMK.js → chunk-DZY3V62F.js} +1 -1
- package/build/_chunks/{chunk-MZYSUSSH.js → chunk-ELL2VCGP.js} +1 -1
- package/build/_chunks/{chunk-HCSTVLWZ.js → chunk-ETSNG4XO.js} +1 -1
- package/build/_chunks/{chunk-JAJ5265D.js → chunk-FI5CR4W5.js} +1 -1
- package/build/_chunks/chunk-GVSL3HWN.js +1 -0
- package/build/_chunks/{chunk-6KJ6CHWL.js → chunk-H2DSVSAE.js} +1 -1
- package/build/_chunks/{chunk-IG2IXY2B.js → chunk-H62OG6KW.js} +1 -1
- package/build/_chunks/{chunk-BG2HSP35.js → chunk-HAOTU5DE.js} +1 -1
- package/build/_chunks/{chunk-7APCULZS.js → chunk-HQ7YLNI5.js} +1 -1
- package/build/_chunks/{chunk-NEI4KSW5.js → chunk-I3HYEGSI.js} +1 -1
- package/build/_chunks/{chunk-V26DL2MP.js → chunk-IPWFGPPG.js} +1 -1
- package/build/_chunks/chunk-IQKHU3XP.js +1 -0
- package/build/_chunks/{chunk-W2B46SCX.js → chunk-IXPRQJFF.js} +1 -1
- package/build/_chunks/{chunk-27KHBOEV.js → chunk-J22GDBBE.js} +1 -1
- package/build/_chunks/chunk-J4QSOF5Y.js +1 -0
- package/build/_chunks/{chunk-HCZBZTHK.js → chunk-JND4XH3U.js} +1 -1
- package/build/_chunks/{chunk-WW5TOO2I.js → chunk-JUSTPI24.js} +1 -1
- package/build/_chunks/chunk-K4BR7FG4.js +1 -0
- package/build/_chunks/{chunk-JPNY4T2X.js → chunk-KBCTRX65.js} +1 -1
- package/build/_chunks/{chunk-Q7552UF6.js → chunk-KDM7NNGS.js} +1 -1
- package/build/_chunks/{chunk-ZSL2ERF4.js → chunk-KLP3RHLG.js} +1 -1
- package/build/_chunks/{chunk-P26WGX7M.js → chunk-KOEYEHSY.js} +1 -1
- package/build/_chunks/chunk-KZMCX534.js +1 -0
- package/build/_chunks/{chunk-4DSYCKXL.js → chunk-LDBE3FOT.js} +1 -1
- package/build/_chunks/{chunk-7XNJMJAY.js → chunk-LFLINYCK.js} +1 -1
- package/build/_chunks/{chunk-BMKJYNYK.js → chunk-LKUKKVZ4.js} +1 -1
- package/build/_chunks/chunk-LSYUKVPD.js +2 -0
- package/build/_chunks/{chunk-LKOKRT4C.js → chunk-M7KPGXBF.js} +1 -1
- package/build/_chunks/{chunk-CIBPWJVX.js → chunk-M7UZPJWT.js} +1 -1
- package/build/_chunks/{chunk-3LTDIC5X.js → chunk-MDK2NPHG.js} +1 -1
- package/build/_chunks/{chunk-3QFKDGRN.js → chunk-MDSO6FCJ.js} +1 -1
- package/build/_chunks/{chunk-XHUQPWOG.js → chunk-MGJLU6IG.js} +1 -1
- package/build/_chunks/{chunk-BNOBAPA7.js → chunk-MJKU37OI.js} +1 -1
- package/build/_chunks/{chunk-Z22XG4XN.js → chunk-MK36AKOL.js} +1 -1
- package/build/_chunks/{chunk-TQFHKPDH.js → chunk-MPLZL76D.js} +1 -1
- package/build/_chunks/{chunk-UP5KPJCN.js → chunk-MQ3TZ2GQ.js} +1 -1
- package/build/_chunks/{chunk-LH6KMKRH.js → chunk-MQ6AMFP4.js} +1 -1
- package/build/_chunks/{chunk-YZEAJGUJ.js → chunk-NJ2F6342.js} +1 -1
- package/build/_chunks/{chunk-6YGAPBP4.js → chunk-NWS7VJY6.js} +1 -1
- package/build/_chunks/{chunk-J3TIUQ5M.js → chunk-OEM7QW2A.js} +1 -1
- package/build/_chunks/{chunk-XGI2MOK6.js → chunk-OJHGFPHF.js} +1 -1
- package/build/_chunks/chunk-OVZMW7LA.js +2 -0
- package/build/_chunks/{chunk-6JOISCUJ.js → chunk-P2YTFHOG.js} +1 -1
- package/build/_chunks/{chunk-CDONIFLM.js → chunk-P76XLU3U.js} +1 -1
- package/build/_chunks/{chunk-JRWSLIFR.js → chunk-PQFS3XBC.js} +1 -1
- package/build/_chunks/{chunk-LLKTXUEO.js → chunk-Q7NBCUSF.js} +1 -1
- package/build/_chunks/{chunk-LUEKQ7GS.js → chunk-QEHZ5MS5.js} +1 -1
- package/build/_chunks/{chunk-555ZEZNM.js → chunk-QIOPDN2Y.js} +1 -1
- package/build/_chunks/{chunk-DSIGGVQE.js → chunk-R3ZLBBCE.js} +1 -1
- package/build/_chunks/{chunk-ZIMZBUVO.js → chunk-RCINZGWW.js} +1 -1
- package/build/_chunks/{chunk-HUEARGE6.js → chunk-RFYR4WE5.js} +1 -1
- package/build/_chunks/{chunk-M7CFTCNU.js → chunk-RHUIIFXT.js} +1 -1
- package/build/_chunks/{chunk-CUXBPB6G.js → chunk-RINZ5A3K.js} +1 -1
- package/build/_chunks/{chunk-UVWEJZFZ.js → chunk-RIX3K2WP.js} +1 -1
- package/build/_chunks/{chunk-QKTYXRDI.js → chunk-S3STTXQ5.js} +1 -1
- package/build/_chunks/{chunk-RYK5CCWU.js → chunk-STIRHX3F.js} +1 -1
- package/build/_chunks/{chunk-ZDHD72GJ.js → chunk-SYJ4BJZ2.js} +1 -1
- package/build/_chunks/{chunk-JANHYNGN.js → chunk-T2U7I6TF.js} +1 -1
- package/build/_chunks/chunk-TMCWI7CN.js +1 -0
- package/build/_chunks/{chunk-BOMLR7JS.js → chunk-U4YQQ6RO.js} +1 -1
- package/build/_chunks/{chunk-XVZ4GZKR.js → chunk-U66EQATC.js} +1 -1
- package/build/_chunks/{chunk-FLAHJLXX.js → chunk-VKEFADQU.js} +1 -1
- package/build/_chunks/{chunk-57XJWGTB.js → chunk-VTU6JWHB.js} +1 -1
- package/build/_chunks/{chunk-EDUHSV6A.js → chunk-WIQZF7V7.js} +1 -1
- package/build/_chunks/{chunk-UWRTO6RB.js → chunk-WQ6SVIPH.js} +1 -1
- package/build/_chunks/chunk-WTHQXJUX.js +2 -0
- package/build/_chunks/{chunk-4LRVQEZH.js → chunk-WVXNMIFE.js} +1 -1
- package/build/_chunks/chunk-WWXOBVLS.js +1 -0
- package/build/_chunks/chunk-XNFKZZAS.js +1 -0
- package/build/_chunks/{chunk-J323OWW6.js → chunk-XWQ52OH6.js} +1 -1
- package/build/_chunks/{chunk-HPAY7TIX.js → chunk-Y2PLX7HJ.js} +1 -1
- package/build/_chunks/{chunk-N6AJG3N6.js → chunk-YLRYR2ZA.js} +1 -1
- package/build/_chunks/{chunk-C6K7UNZC.js → chunk-Z4UI23PC.js} +1 -1
- package/build/_v2/components/primitives/Slider/style.d.ts +1 -1
- package/build/components/Accordion/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionMenu/style.d.ts +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountBadge/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/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/components/JSONSearchBar/styles.d.ts +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LazyImage/index.js +1 -1
- package/build/components/LazyRemote/index.d.ts +1 -0
- package/build/components/LazyRemote/index.js +1 -0
- package/build/{moduleFederation/components → components/LazyRemote}/lazyRemote.d.ts +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RemoteFallback/RemoteFallback.d.ts +7 -0
- package/build/components/RemoteFallback/index.d.ts +2 -0
- package/build/components/RemoteFallback/index.js +1 -0
- 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/SearchButton/styles.d.ts +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/Slider/style.d.ts +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/_v2/index.js +2 -2
- package/build/components/index.d.ts +2 -0
- package/build/components/index.js +1 -1
- package/build/constants/index.d.ts +1 -1
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/accountWidget.d.ts +1 -3
- package/build/types/index.d.ts +1 -0
- package/build/types/index.js +1 -1
- package/build/{moduleFederation/types.d.ts → types/moduleFederation.d.ts} +2 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -1
- package/build/{moduleFederation/utils.d.ts → utils/moduleFederation.d.ts} +1 -1
- package/package.json +1 -5
- package/build/_chunks/chunk-6EH7LVBA.js +0 -1
- package/build/_chunks/chunk-6LH4XJTL.js +0 -2
- package/build/_chunks/chunk-6OBS7WRS.js +0 -1
- package/build/_chunks/chunk-AKJKJP6C.js +0 -1
- package/build/_chunks/chunk-ARL3R4Y2.js +0 -2
- package/build/_chunks/chunk-AYZX6OZ5.js +0 -1
- package/build/_chunks/chunk-GIWVIX7C.js +0 -1
- package/build/_chunks/chunk-NHMTWJBL.js +0 -1
- package/build/_chunks/chunk-NYR3PWRQ.js +0 -1
- package/build/_chunks/chunk-V74IUKZ5.js +0 -1
- package/build/_chunks/chunk-YLT5MRX2.js +0 -1
- package/build/constants/remoteModules.d.ts +0 -1
- package/build/moduleFederation/components/RemoteFallback.d.ts +0 -5
- package/build/moduleFederation/components/index.d.ts +0 -2
- package/build/moduleFederation/index.d.ts +0 -4
- package/build/moduleFederation/index.js +0 -1
- /package/build/_chunks/{chunk-5NA6NVWL.js → chunk-ZXT2FT26.js} +0 -0
- /package/build/{moduleFederation/components → components/RemoteFallback}/style.d.ts +0 -0
- /package/build/{moduleFederation/constants.d.ts → constants/moduleFederation.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-KHM5KW53.js';import {fb,db,Kc,ob}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-KHM5KW53.js';import {fb,db,Kc,ob}from'./chunk-IQKHU3XP.js';import {Ak,wa,va,ua,yj}from'./chunk-WTHQXJUX.js';import {b as b$1}from'./chunk-YRT7GXGY.js';import {memo,useId}from'react';import M from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b=b$1(fb(),1);var D=styled(M,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:db(t)?"18px":"24px"}));var e={DESKTOP:ua,PHONE:va,TABLET:wa,TERMINAL:Ak};var i=o=>!!e[o];function P({type:o,isTextShown:t,tableMode:E,...v}){let p=Kc(useId(),"device-icon"),{t:C}=useTranslation(),m=i(o)?e[o]:null;return jsx(a,{title:m?`Device - ${ob((o??"").toLowerCase())}`:C("unKnown"),children:t?jsx(D,{id:p,"data-testid":"DeviceIcon",tableMode:E,children:o?(0, b.default)(o):"Unknown"}):jsx(M,{...v,id:p,"data-testid":"DeviceIcon",component:"img",src:o?m||yj:yj,alt:o})})}var T=memo(P);var Y=T;export{e as a,i as b,Y as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {memo,useId}from'react';import {createPortal}from'react-dom';import e from'@mui/material/Backdrop';import {alpha}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';function n(r){let p=Kc(useId(),"window-backdrop");return createPortal(jsx(e,{id:p,sx:{zIndex:1,backgroundColor:d=>alpha(d.palette.common.black,.3)},...r}),document.body)}var i=memo(n);export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import f from'@mui/material/Radio';import {jsx}from'react/jsx-runtime';var e={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},n={small:{iconSize:15,maxWidth:"24px"}},g=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),l=styled(g)({backgroundColor:e.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),c=styled(f,{shouldForwardProp:o=>!["iconSize","checkedColor","disabledColor","hoverColor"].includes(o)})(({iconSize:o,checkedColor:d,disabledColor:t,hoverColor:r})=>({"& .MuiSvgIcon-root":{fontSize:o||n.small.iconSize},maxWidth:n.small.maxWidth,cursor:"pointer",color:e.color,"&.Mui-checked":{color:d||e.checkedColor},"&:hover":r?{backgroundColor:"transparent",color:r}:void 0,"&.Mui-disabled":{color:t||e.disabledColor}}));function p({size:o="small",customCheckedIcon:d,checkedColor:t,disabledColor:r,hoverColor:m,iconSize:u,showRipple:h=false,sx:C,...x}){let b=Kc(useId(),"radio-button");return jsx(c,{id:b,"data-testid":"RadioButton",size:o==="large"?"medium":o,disableRipple:!h,checkedIcon:d||jsx(l,{}),iconSize:u,checkedColor:t,disabledColor:r,hoverColor:m,sx:C,...x})}p.displayName="RadioButton";var k=memo(p);export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-2YPZ5SFL.js';import {a as a$1}from'./chunk-2ACC7E2D.js';import {a}from'./chunk-KLP3RHLG.js';import {Kc,Pa,Qa,Oa,s}from'./chunk-IQKHU3XP.js';import {Wc,Vc,Mc,Lc,Kc as Kc$1,Nc,Qe}from'./chunk-WTHQXJUX.js';import {useRef,useId,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {createPortal}from'react-dom';import {styled,alpha}from'@mui/material';import oe from'@mui/material/Popover';import Je from'react-currency-input-field';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var ne=styled("div")(({showWarning:e})=>({display:"flex",gap:"0.25rem",justifyContent:"flex-start",alignItems:"flex-start",padding:"0.25rem",borderRadius:"0.25rem",width:"14.25rem",minHeight:e?"3.6rem":"2.5rem"})),te=styled("div")(()=>({display:"flex",flexDirection:"column",width:"100%"})),re=styled("div")(()=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",flex:1})),ie=styled("div")(({theme:e,showWarning:o,showDropDown:t})=>({height:"2rem",border:o?`1px solid ${e.palette.common.red}24`:t?`1px solid ${e.palette.info.dark}`:`1px solid ${e.palette.grey[100]}`,borderRadius:o?"0.25rem 0.25rem 0rem 0rem":"0.25rem",display:"flex",alignItems:"center",justifyContent:"space-between",paddingRight:"0.5rem",paddingLeft:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",margin:0,zIndex:4e3,...t&&{boxShadow:`0px 0px 4px 0px ${e.palette.info.dark}80`}})),ae=styled("div")(({theme:e})=>({height:"1.1rem",borderRadius:"0rem 0rem 0.25rem 0.25rem",display:"flex",justifyContent:"flex-start",margin:0,alignItems:"center",background:e.palette.background.gradient.error,paddingLeft:"0.5rem"})),se=styled("p")(({theme:e})=>({color:e.palette.common.red,fontSize:"0.62rem",fontWeight:400,fontFamily:"Lato",padding:0,margin:0,paddingLeft:"0.25rem"})),de=styled("img")({height:"auto",width:"auto",verticalAlign:"top"}),le=styled("div")({display:"flex",flexDirection:"column",justifyContent:"center"}),ce=styled("div")({display:"flex",height:"0.8rem",alignItems:"center",width:"8.5rem"}),pe=styled(Je)(({theme:e,showWarning:o,disabled:t})=>({color:o?e.palette.common.red:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"4.5rem",height:"0.9rem",border:"none",outline:"none",textAlign:"right",padding:0,"&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},backgroundColor:"transparent",alignSelf:"flex-end","&::placeholder":{color:e.palette.grey.A400},...t&&{opacity:.3}})),me=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"5.2rem",border:"none",outline:"none",padding:0,margin:0,paddingLeft:16,textAlign:"right","&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},alignSelf:"center"})),I=styled("p")(({theme:e,showWarning:o,showBottomPadding:t,autoMargin:i})=>({color:o?e.palette.common.red:e.palette.grey[700],fontSize:"0.625rem",fontWeight:500,padding:0,margin:0,height:t?"0.43rem":"auto",...t&&{lineHeight:"0.625",leadingTrim:"both",paddingBottom:"0.31rem"},...i&&{paddingBottom:"0.43rem",lineHeight:"0.625"}})),Ne=styled("div")({display:"flex"}),v=styled(Ne)(({limited:e,paddingTop:o,marginRightAuto:t})=>({paddingRight:"0.5rem",alignItems:"center",cursor:"pointer",...t&&{marginRight:"auto"},...e&&{width:"3rem"},...o&&{paddingTop:"0.31rem"}})),A=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:500,margin:0,padding:0,textTransform:"capitalize",paddingRight:"0.25rem",paddingLeft:"0.2rem",lineHeight:"0.865"})),ue=styled("div")({width:0,height:0}),ge=styled(oe)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"0.25rem"}})),F=styled("div")(({theme:e,disabled:o,isRefundInProcess:t,warning:i,isHighlighted:a})=>({borderRadius:"0.3rem",backgroundColor:e.palette.common.white,border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,width:"2rem",height:"2rem",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",pointerEvents:o?"none":"auto",transition:"all 0.2s ease-in-out","&:hover":{border:`1px solid ${i?e.palette.common.red:e.palette.info.dark}`},...a&&{border:`1px solid ${e.palette.info.dark}`},...o&&{opacity:.3}})),H=styled("img")(()=>({width:"0.85rem",height:"0.85rem"})),fe=styled(oe)(({theme:e})=>({backgroundColor:"transparent",boxShadow:e.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem"}})),he=styled("div")(({showDaysMenu:e})=>({height:e?"4.5rem":"auto"})),ye=styled("div")(({theme:e})=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[100]}`,maxWidth:"9.25rem",height:"2.75rem",padding:"0.5rem",cursor:"pointer",gap:"0.31rem",flexDirection:"column",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:`0px 0px 16px 0px ${alpha(e.palette.common.black,.13)}`}})),Ce=styled("img")(({spaceFromBottom:e,currencyPadding:o})=>({height:"0.4rem",width:"0.6rem",cursor:"pointer",marginBottom:e||o?"0":"auto",verticalAlign:"middle",...e&&{marginTop:"2px"}}));var Xe=({selectedCurrency:e,option:o,closeDropdown:t,handleSelectOption:i})=>{let{t:a$1}=useTranslation();return jsxs(ye,{onClick:()=>{i&&i(o.value,o?.currency),t();},children:[jsx(I,{showBottomPadding:true,showWarning:false,children:a$1(o.name)}),jsxs(ce,{children:[jsxs(v,{marginRightAuto:true,children:[jsx(a,{currencyCode:o?.currency??e,width:"0.76rem"}),jsx(A,{children:o?.currency??e})]}),jsx(me,{showWarning:false,children:Pa(o.value||0,o?.currency??e)})]})]})};function Ye({menuAnchor:e,showDropDown:o,selectedCurrency:t,options:i,closeDropdown:a,handleSelectOption:g}){return i.length<=1?null:jsx(fe,{open:o,anchorEl:e,anchorOrigin:{vertical:18,horizontal:-76},style:{backgroundColor:"transparent",zIndex:4e3,padding:0,margin:0},onClose:a,children:jsx(he,{children:i.map(f=>jsx(Fragment,{children:Xe({selectedCurrency:t,option:f,closeDropdown:a,handleSelectOption:g})}))})})}var $=Ye;function oo({showWarning:e,selectedCurrency:o,onAmountChange:t,amount:i,currencyConfig:a$3,toggleDropDown:g,showDropDown:f,showDropdownIcon:M,disabled:x,isLoading:h}){let{t:b}=useTranslation(),y=useRef(null),C=()=>{y.current&&y.current.click();};return jsxs(Fragment,{children:[jsxs(le,{children:[jsx(I,{showBottomPadding:true,showWarning:e,children:b("amount")}),jsxs(v,{limited:true,paddingTop:true,onClick:C,children:[jsx(a,{currencyCode:o,width:"0.76rem"}),jsx(A,{children:jsx(a$1,{currency:o})}),!e&&M&&jsx(Ce,{src:f?Wc:Vc,alt:"drop-down icon",currencyPadding:true})]})]}),jsx(ue,{ref:y,onClick:g}),h?jsx(a$2,{variant:"text",width:"100%",height:"100%"}):jsx(pe,{disabled:x,placeholder:a$3[o]?"0.000":"0.00",onValueChange:t,value:i,decimalsLimit:a$3[o]??2,showWarning:e||false,decimalScale:a$3[o]??2,autoFocus:true})]})}var B=oo;function so({anchorEl:e,initialAmount:o,options:t,onConfirm:i,handleClose:a,currency:g,isCheckMarkHighlighted:f}){let M=Kc(useId(),"action-menu"),{t:x}=useTranslation(),[h,b]=useState(o?.toString()),[y,C]=useState(),[u,k]=useState(""),be=useRef(null),[R,E]=useState(false),[c,Se]=useState(g),j=false,[De,Ie]=useState(false),[ve,G]=useState(Mc),[Ae,K]=useState(Lc),Me=useRef(),ke=()=>{C(void 0),E(false);};useEffect(()=>{Me.current?.focus();},[De]);let Re=()=>{ke(),Ie(r=>!r);},Ee=!!e,We=r=>{E(p=>!p),C(r.currentTarget);},Pe=t?.find(r=>r.currency===c)?.value,Te=Pa(Pe||0,c),Oe=`${x("maxAllowed")} ${Te}`,Fe=`${x("minAllowed")} ${Qa(.1,c||"KWD")}`,He=r=>{let p=s(r);p>o?k(Oe):p<.1&&r!==void 0?k(Fe):k(""),b(r);},Le=(r,p)=>{let Ve=Qa(r||0,p||"KWD");b(Ve),Se(p||c);},U=r=>{C(void 0),E(false),a(r);},$e=()=>{K(Nc);},ze=()=>{K(Lc);},V=r=>{U(r);},Be=()=>{U();},je=()=>{G(Qe);},Ge=()=>{G(Mc);},Ke=()=>{i?.(s(h),c),V();},Ue=!!u||!h;return createPortal(jsx(ge,{id:M,"data-testid":"ActionMenu",open:Ee,anchorEl:e,style:{backgroundColor:"transparent",zIndex:3e3},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",anchorOrigin:{vertical:"top",horizontal:-234},ref:be,onClose:r=>{V(r);},children:jsxs(ne,{showWarning:!!u,children:[jsxs(te,{children:[jsxs(ie,{showWarning:!!u,showDropDown:R,children:[jsx(B,{showWarning:!!u,selectedCurrency:c,onAmountChange:He,amount:h,currencyConfig:Oa,toggleDropDown:We,showDropDown:!R,showDropdownIcon:(t?.length||0)>1}),jsx($,{showDropDown:R,menuAnchor:y,selectedCurrency:c,closeDropdown:Re,options:t??[],handleSelectOption:Le})]}),!!u&&jsxs(ae,{children:[jsx(de,{src:Kc$1,alt:"info"}),jsx(se,{children:u})]})]}),jsxs(re,{children:[jsx(F,{onMouseLeave:Ge,onMouseEnter:je,warning:true,role:"button",onClick:Be,children:jsx(H,{isRefundInProcess:j,src:ve,alt:"Cross icon"})}),jsx(F,{onMouseLeave:ze,onMouseEnter:$e,isRefundInProcess:j,disabled:Ue,role:"button",onClick:Ke,isHighlighted:f,children:jsx(H,{src:Ae,alt:"Check icon"})})]})]})}),document.body)}var xe=so;var jo=xe;export{$ as a,B as b,jo as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc,Sa}from'./chunk-
|
|
1
|
+
import {Kc,Sa}from'./chunk-IQKHU3XP.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=Kc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Sa(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.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=Kc(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 {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-CMOFC5SW.js';import {Kc}from'./chunk-IQKHU3XP.js';import {sa}from'./chunk-LSYUKVPD.js';import {memo,useId}from'react';import {jsx}from'react/jsx-runtime';var n={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...sa}},"Device Biometric":{text:"Biometric"}};function u({title:t,ref:r,...s}){let c=Kc(useId(),"authentication-type-chip"),i=n[t];return jsx(b,{id:c,"data-testid":"AuthenticationTypeChip",chipStyles:i?.styles,ref:r,...s,children:i?.text||t})}var h=memo(u);var W=h;export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc,hc}from'./chunk-
|
|
1
|
+
import {Kc,hc}from'./chunk-IQKHU3XP.js';import {Cb}from'./chunk-WTHQXJUX.js';import {useId}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var m=styled(i)(({theme:e})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:e.palette.grey[400],gap:"8px"})),x=styled(i)(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"})),f=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.palette.text.primary,cursor:"pointer",gap:"8px"})),u=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.text.primary,cursor:"pointer",fontSize:"8px"})),y=styled(i)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:e.palette.text.primary})),I=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",background:e.palette.common.white,borderRadius:"4px",border:`1px solid ${e.palette.divider}`})),g=styled(i)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"}));var T=({files:e,disabled:w,sx:C,onRemoveFile:W,getFilePreview:h,renderBrandLogo:v,renderOpenFileInNewTab:P})=>{let b=Kc(useId(),"file-preview");return jsx(Fragment,{children:e?.map((t,s)=>{let a=hc(t)?h(t.file):null,j=hc(t)&&t.file.type.includes("application/pdf"),n=hc(t)?t.file:t;return jsx(m,{id:`${b}-${s}`,"data-testid":"FilePreview",sx:C,children:jsxs(x,{"data-slot":"file-wrapper",children:[jsxs(f,{"data-slot":"file-Content",children:[jsx(I,{"data-slot":"file-icon-wrapper",children:hc(t)&&a?jsx(i,{component:"img",src:a,width:24,height:24,sx:{borderRadius:"50%",objectFit:j?"none":"cover"},onError:k=>{k.currentTarget.src=n.name;}}):v?.(n.id)}),jsxs(y,{"data-slot":"text-wrapper",children:[jsx(u,{"data-slot":"filename",children:n.name}),!hc(t)&&!a&&P?.(n.id)]})]}),!w&&jsx(g,{"data-slot":"close-icon-wrapper",onClick:()=>{W?.(t);},children:jsx(i,{component:"img",src:Cb,width:10,height:10})})]})},s)})})},A=T;export{m as a,x as b,f as c,u as d,y as e,I as f,g,A as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,b,g}from'./chunk-ATNY2LPI.js';import {a}from'./chunk-FLAHJLXX.js';import {Kc}from'./chunk-V74IUKZ5.js';import {Ab,A,Lf}from'./chunk-ARL3R4Y2.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=Kc(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=Kc(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$1=!!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:Ab,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(Be,{open:A$1,anchorEl:m,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,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=Kc(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=Kc(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:A,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:Lf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=T;function z(e){let n=Kc(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};
|
|
1
|
+
import {c,b,g}from'./chunk-4VLIH5YX.js';import {a}from'./chunk-VKEFADQU.js';import {Kc}from'./chunk-IQKHU3XP.js';import {Ab,A,Lf}from'./chunk-WTHQXJUX.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=Kc(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=Kc(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$1=!!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:Ab,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(Be,{open:A$1,anchorEl:m,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,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=Kc(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=Kc(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:A,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:Lf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=T;function z(e){let n=Kc(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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-OJHGFPHF.js';import {Kc}from'./chunk-IQKHU3XP.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=Kc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
|
|
2
2
|
export{m as a,go as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-CMOFC5SW.js';import {Kc}from'./chunk-IQKHU3XP.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var r=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexDirection:"row"})),i=styled(b)(()=>({padding:"0.75px 12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"}));var x=({chips:t,containerSx:a,defaultChipSx:n,...l})=>{let u=Kc(useId(),"status-group-chips");return !t||t.length===0?null:jsx(r,{id:u,"data-testid":"StatusGroupChips",sx:a,...l,children:t.map(({key:d,content:C,sx:f,...m})=>jsx(i,{sx:{...n,...f},...m,children:C},d))})},y=x;export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-V74IUKZ5.js';import {useId,useState,useRef,useCallback,useMemo,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useMotionValue,animate}from'framer-motion';import zt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=3,ft=styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:0,minWidth:0,height:"auto",lineHeight:1,position:"relative",zIndex:1001,fontSize:"12px",color:t.palette.text.primary})),ht=styled(motion.div)(()=>({display:"inline-flex"})),ut=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),gt=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),tt=styled(motion.div)(({side:t})=>({position:"absolute",display:"flex",alignItems:"center",...t==="left"?{right:"100%",flexDirection:"row-reverse",transformOrigin:"right center"}:{},...t==="right"?{left:"100%",flexDirection:"row",transformOrigin:"left center"}:{},top:"50%",transform:"translateY(-50%)",gap:0,pointerEvents:"auto",overflow:"visible"})),et=styled("div")(({side:t})=>({position:"absolute",top:0,bottom:0,...t==="left"?{right:"100%"}:{left:"100%"},pointerEvents:"auto",background:"transparent"})),xt=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",height:24,overflow:"visible"})),j=t=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,paddingInline:"8px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontSize:12,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"visible"}),mt=styled(motion.div)(({theme:t})=>({...j(t),position:"relative",zIndex:2,minWidth:24,flex:"0 0 auto",display:"inline-flex",overflow:"hidden",willChange:"transform"})),Ct=styled(motion.span)(()=>({display:"inline-flex",alignItems:"center",transform:"translateZ(0)"})),nt=styled(motion.span)(({theme:t})=>({display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",willChange:"width",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.background.paper,height:"24px",alignItems:"center",paddingInline:"0px"})),it=styled(motion.span)(()=>({display:"inline-flex",whiteSpace:"nowrap",alignItems:"center",height:"100%"})),yt=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",left:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),Et=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",right:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),rt=styled(motion.div)(({theme:t})=>({...j(t),minWidth:24,flex:"0 0 auto",display:"inline-flex"})),vt=styled(zt)(()=>({position:"relative",overflow:"visible",zIndex:101,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"20px"}));var L=24;function Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}){let[l,P]=useState(false),[r,q]=useState({left:0,right:0}),[c,G]=useState([]),[d,X]=useState([]),[f,J]=useState(0),[b,Y]=useState(0),m=useRef(null),k=useRef(null),z=useRef(null),M=useRef(null),A=useRef([]),O=useRef([]),T=useRef(null),$=useRef(null),I=useRef(null),w=useCallback((e,i)=>{if(e===i)return true;if(e.length!==i.length)return false;for(let a=0;a<e.length;a++)if(e[a]!==i[a])return false;return true},[]),D=useCallback((e,i)=>e.left===i.left&&e.right===i.right,[]),g=useMotionValue(0),n=useMotionValue(0),N=useMotionValue(0),C=useMemo(()=>{if(!c.length)return [];let e=[],i=x+c[0]/2;e.push(i);for(let a=1;a<c.length;a++)i+=c[a-1]/2+x+c[a]/2,e.push(i);return e},[c]),y=useMemo(()=>{if(!d.length)return [];let e=[],i=x+d[0]/2;e.push(i);for(let a=1;a<d.length;a++)i+=d[a-1]/2+x+d[a]/2,e.push(i);return e},[d]),Lt=l&&h?f:0,K=l&&u?b:0,at=h?f:0,Wt=useCallback(()=>{m.current&&clearTimeout(m.current),P(true);},[]),St=useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(false),120);},[]),_=useCallback(()=>{let e=k.current,i=M.current,a=z.current,Q=r;if(e){let R=e.getBoundingClientRect(),Z=(i??a)?.getBoundingClientRect();if(Z){let Pt=Math.round(Z.left-R.left),kt=Math.round(Z.right-R.left);Q={left:Pt,right:kt};}}let st=A.current.map(R=>R?R.offsetWidth:L),lt=O.current.map(R=>R?R.offsetWidth:L),pt=T.current?.scrollWidth??0,ct=$.current?.scrollWidth??0;D(r,Q)||q(Q),w(c,st)||G(st),w(d,lt)||X(lt),f!==pt&&J(pt),b!==ct&&Y(ct);},[r,c,d,f,b,D,w]),B=useCallback(()=>{I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{_();});},[_]);useEffect(()=>()=>{m.current&&clearTimeout(m.current);},[]),useLayoutEffect(()=>{_();},[H,t,v,h,u,_]),useEffect(()=>(B(),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B),I.current&&cancelAnimationFrame(I.current);}),[B]),useEffect(()=>{let i=animate(g,l&&h?f:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,h,f,g]),useEffect(()=>{let i=animate(n,l&&u?b:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,u,b,n]);let wt=useMemo(()=>{if(!C.length)return 0;let e=C.length-1,i=c[e]??L;return C[e]+i/2+K+x},[C,c,K]),Ht=useMemo(()=>{if(!y.length)return 0;let e=y.length-1,i=d[e]??L;return at+y[e]+i/2+x},[y,d,at]);return {isHovering:l,handleMouseEnter:Wt,handleMouseLeave:St,centerWrapRef:k,centerContentRef:z,centerChipRef:M,anchors:r,leftChipRefs:A,rightChipRefs:O,leftOffsets:C,rightOffsets:y,expandableRightInnerRef:T,expandableLeftInnerRef:$,expandableRightWidth:f,expandableLeftWidth:b,expandedRightMV:g,expandedLeftMV:n,shiftX:N,rightShift:Lt,leftShift:K,leftHoverWidth:wt,rightHoverWidth:Ht}}function Ot({leftIcons:t=[],rightIcons:v=[],centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u,expandedZIndex:l=1e3,...P}){let{isHovering:r,handleMouseEnter:q,handleMouseLeave:c,centerWrapRef:G,centerContentRef:d,centerChipRef:X,anchors:f,leftChipRefs:J,rightChipRefs:b,leftOffsets:Y,rightOffsets:m,expandableRightInnerRef:k,expandableLeftInnerRef:z,expandedRightMV:M,expandedLeftMV:A,shiftX:O,rightShift:T,leftShift:$,leftHoverWidth:I,rightHoverWidth:w}=Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}),D=Kc(useId(),"right-left-expanding-center-chip");return jsx(vt,{...P,id:D,"data-testid":"RightLeftExpandingCenterChipBox",children:jsx(ht,{"data-testid":"CenterShiftWrapper",initial:false,style:{x:O},children:jsxs(ft,{"data-testid":"CenterIconWrapper",ref:G,onMouseLeave:c,children:[jsxs(xt,{"data-testid":"PeekContainer",children:[jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(yt,{"data-testid":"LeftPeekChip",initial:{opacity:0,scale:.95,x:-4},animate:r?{opacity:0,scale:.9,x:-6}:{opacity:1,scale:1,x:-5},exit:{opacity:0,scale:.95,x:-4},transition:{duration:.18,ease:"easeOut"}},"left-peek")}),jsx(mt,{"data-testid":"CenterChip",ref:X,onMouseEnter:q,style:{borderRadius:(()=>{let g=u&&r,n=h&&r;return g&&n?"0":g?"0 12px 12px 0":n?"12px 0 0 12px":"12px"})(),borderLeft:u&&r?"none":void 0,borderRight:h&&r?"none":void 0},children:jsx(Ct,{"data-testid":"CenterContent",ref:d,children:H})}),u&&jsx(nt,{"data-testid":"ExpandableLeftContainer",style:{width:A,position:"absolute",right:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"12px 0 0 12px",borderRight:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableLeftInner",ref:z,children:u})}),h&&jsx(nt,{"data-testid":"ExpandableRightContainer",style:{width:M,position:"absolute",left:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"0 12px 12px 0",borderLeft:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableRightInner",ref:k,children:h})}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(Et,{"data-testid":"RightPeekChip",initial:{opacity:0,scale:.95,x:4},animate:r?{opacity:0,scale:.9,x:6}:{opacity:1,scale:1,x:5},exit:{opacity:0,scale:.95,x:4},transition:{duration:.18,ease:"easeOut"}},"right-peek")})]}),r&&t.length>0&&jsx(et,{"data-testid":"LeftHoverBridge",side:"left",style:{width:I,right:`calc(100% - ${f.left}px)`,zIndex:l,pointerEvents:"auto"}}),r&&v.length>0&&jsx(et,{"data-testid":"RightHoverBridge",side:"right",style:{width:w,left:`${f.right}px`,zIndex:l,pointerEvents:"auto"}}),jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(tt,{"data-testid":"LeftExpandedSection",side:"left",style:{right:`calc(100% - ${f.left}px)`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:t.map((g,n)=>{let C=(Y[n]??(L+x)*(n+1))+$;return jsx(ut,{"data-testid":`LeftExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:-C}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(t.length-n)},children:jsx(rt,{"data-testid":`LeftExpandChip-${n}`,ref:y=>J.current[n]=y,children:g})},`left-${n}`)})},"left-expanded")}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(tt,{"data-testid":"RightExpandedSection",side:"right",style:{left:`${f.right}px`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:v.map((g,n)=>{let N=m[n]??(L+x)*(n+1),C=T;return jsx(gt,{"data-testid":`RightExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:C+N}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(v.length-n)},children:jsx(rt,{"data-testid":`RightExpandChip-${n}`,ref:y=>b.current[n]=y,children:g})},`right-${n}`)})},"right-expanded")})]})})})}var Tt=Ot;export{Tt as a};
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {useId,useState,useRef,useCallback,useMemo,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useMotionValue,animate}from'framer-motion';import zt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=3,ft=styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:0,minWidth:0,height:"auto",lineHeight:1,position:"relative",zIndex:1001,fontSize:"12px",color:t.palette.text.primary})),ht=styled(motion.div)(()=>({display:"inline-flex"})),ut=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),gt=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),tt=styled(motion.div)(({side:t})=>({position:"absolute",display:"flex",alignItems:"center",...t==="left"?{right:"100%",flexDirection:"row-reverse",transformOrigin:"right center"}:{},...t==="right"?{left:"100%",flexDirection:"row",transformOrigin:"left center"}:{},top:"50%",transform:"translateY(-50%)",gap:0,pointerEvents:"auto",overflow:"visible"})),et=styled("div")(({side:t})=>({position:"absolute",top:0,bottom:0,...t==="left"?{right:"100%"}:{left:"100%"},pointerEvents:"auto",background:"transparent"})),xt=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",height:24,overflow:"visible"})),j=t=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,paddingInline:"8px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontSize:12,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"visible"}),mt=styled(motion.div)(({theme:t})=>({...j(t),position:"relative",zIndex:2,minWidth:24,flex:"0 0 auto",display:"inline-flex",overflow:"hidden",willChange:"transform"})),Ct=styled(motion.span)(()=>({display:"inline-flex",alignItems:"center",transform:"translateZ(0)"})),nt=styled(motion.span)(({theme:t})=>({display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",willChange:"width",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.background.paper,height:"24px",alignItems:"center",paddingInline:"0px"})),it=styled(motion.span)(()=>({display:"inline-flex",whiteSpace:"nowrap",alignItems:"center",height:"100%"})),yt=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",left:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),Et=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",right:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),rt=styled(motion.div)(({theme:t})=>({...j(t),minWidth:24,flex:"0 0 auto",display:"inline-flex"})),vt=styled(zt)(()=>({position:"relative",overflow:"visible",zIndex:101,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"20px"}));var L=24;function Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}){let[l,P]=useState(false),[r,q]=useState({left:0,right:0}),[c,G]=useState([]),[d,X]=useState([]),[f,J]=useState(0),[b,Y]=useState(0),m=useRef(null),k=useRef(null),z=useRef(null),M=useRef(null),A=useRef([]),O=useRef([]),T=useRef(null),$=useRef(null),I=useRef(null),w=useCallback((e,i)=>{if(e===i)return true;if(e.length!==i.length)return false;for(let a=0;a<e.length;a++)if(e[a]!==i[a])return false;return true},[]),D=useCallback((e,i)=>e.left===i.left&&e.right===i.right,[]),g=useMotionValue(0),n=useMotionValue(0),N=useMotionValue(0),C=useMemo(()=>{if(!c.length)return [];let e=[],i=x+c[0]/2;e.push(i);for(let a=1;a<c.length;a++)i+=c[a-1]/2+x+c[a]/2,e.push(i);return e},[c]),y=useMemo(()=>{if(!d.length)return [];let e=[],i=x+d[0]/2;e.push(i);for(let a=1;a<d.length;a++)i+=d[a-1]/2+x+d[a]/2,e.push(i);return e},[d]),Lt=l&&h?f:0,K=l&&u?b:0,at=h?f:0,Wt=useCallback(()=>{m.current&&clearTimeout(m.current),P(true);},[]),St=useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(false),120);},[]),_=useCallback(()=>{let e=k.current,i=M.current,a=z.current,Q=r;if(e){let R=e.getBoundingClientRect(),Z=(i??a)?.getBoundingClientRect();if(Z){let Pt=Math.round(Z.left-R.left),kt=Math.round(Z.right-R.left);Q={left:Pt,right:kt};}}let st=A.current.map(R=>R?R.offsetWidth:L),lt=O.current.map(R=>R?R.offsetWidth:L),pt=T.current?.scrollWidth??0,ct=$.current?.scrollWidth??0;D(r,Q)||q(Q),w(c,st)||G(st),w(d,lt)||X(lt),f!==pt&&J(pt),b!==ct&&Y(ct);},[r,c,d,f,b,D,w]),B=useCallback(()=>{I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{_();});},[_]);useEffect(()=>()=>{m.current&&clearTimeout(m.current);},[]),useLayoutEffect(()=>{_();},[H,t,v,h,u,_]),useEffect(()=>(B(),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B),I.current&&cancelAnimationFrame(I.current);}),[B]),useEffect(()=>{let i=animate(g,l&&h?f:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,h,f,g]),useEffect(()=>{let i=animate(n,l&&u?b:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,u,b,n]);let wt=useMemo(()=>{if(!C.length)return 0;let e=C.length-1,i=c[e]??L;return C[e]+i/2+K+x},[C,c,K]),Ht=useMemo(()=>{if(!y.length)return 0;let e=y.length-1,i=d[e]??L;return at+y[e]+i/2+x},[y,d,at]);return {isHovering:l,handleMouseEnter:Wt,handleMouseLeave:St,centerWrapRef:k,centerContentRef:z,centerChipRef:M,anchors:r,leftChipRefs:A,rightChipRefs:O,leftOffsets:C,rightOffsets:y,expandableRightInnerRef:T,expandableLeftInnerRef:$,expandableRightWidth:f,expandableLeftWidth:b,expandedRightMV:g,expandedLeftMV:n,shiftX:N,rightShift:Lt,leftShift:K,leftHoverWidth:wt,rightHoverWidth:Ht}}function Ot({leftIcons:t=[],rightIcons:v=[],centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u,expandedZIndex:l=1e3,...P}){let{isHovering:r,handleMouseEnter:q,handleMouseLeave:c,centerWrapRef:G,centerContentRef:d,centerChipRef:X,anchors:f,leftChipRefs:J,rightChipRefs:b,leftOffsets:Y,rightOffsets:m,expandableRightInnerRef:k,expandableLeftInnerRef:z,expandedRightMV:M,expandedLeftMV:A,shiftX:O,rightShift:T,leftShift:$,leftHoverWidth:I,rightHoverWidth:w}=Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}),D=Kc(useId(),"right-left-expanding-center-chip");return jsx(vt,{...P,id:D,"data-testid":"RightLeftExpandingCenterChipBox",children:jsx(ht,{"data-testid":"CenterShiftWrapper",initial:false,style:{x:O},children:jsxs(ft,{"data-testid":"CenterIconWrapper",ref:G,onMouseLeave:c,children:[jsxs(xt,{"data-testid":"PeekContainer",children:[jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(yt,{"data-testid":"LeftPeekChip",initial:{opacity:0,scale:.95,x:-4},animate:r?{opacity:0,scale:.9,x:-6}:{opacity:1,scale:1,x:-5},exit:{opacity:0,scale:.95,x:-4},transition:{duration:.18,ease:"easeOut"}},"left-peek")}),jsx(mt,{"data-testid":"CenterChip",ref:X,onMouseEnter:q,style:{borderRadius:(()=>{let g=u&&r,n=h&&r;return g&&n?"0":g?"0 12px 12px 0":n?"12px 0 0 12px":"12px"})(),borderLeft:u&&r?"none":void 0,borderRight:h&&r?"none":void 0},children:jsx(Ct,{"data-testid":"CenterContent",ref:d,children:H})}),u&&jsx(nt,{"data-testid":"ExpandableLeftContainer",style:{width:A,position:"absolute",right:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"12px 0 0 12px",borderRight:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableLeftInner",ref:z,children:u})}),h&&jsx(nt,{"data-testid":"ExpandableRightContainer",style:{width:M,position:"absolute",left:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"0 12px 12px 0",borderLeft:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableRightInner",ref:k,children:h})}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(Et,{"data-testid":"RightPeekChip",initial:{opacity:0,scale:.95,x:4},animate:r?{opacity:0,scale:.9,x:6}:{opacity:1,scale:1,x:5},exit:{opacity:0,scale:.95,x:4},transition:{duration:.18,ease:"easeOut"}},"right-peek")})]}),r&&t.length>0&&jsx(et,{"data-testid":"LeftHoverBridge",side:"left",style:{width:I,right:`calc(100% - ${f.left}px)`,zIndex:l,pointerEvents:"auto"}}),r&&v.length>0&&jsx(et,{"data-testid":"RightHoverBridge",side:"right",style:{width:w,left:`${f.right}px`,zIndex:l,pointerEvents:"auto"}}),jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(tt,{"data-testid":"LeftExpandedSection",side:"left",style:{right:`calc(100% - ${f.left}px)`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:t.map((g,n)=>{let C=(Y[n]??(L+x)*(n+1))+$;return jsx(ut,{"data-testid":`LeftExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:-C}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(t.length-n)},children:jsx(rt,{"data-testid":`LeftExpandChip-${n}`,ref:y=>J.current[n]=y,children:g})},`left-${n}`)})},"left-expanded")}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(tt,{"data-testid":"RightExpandedSection",side:"right",style:{left:`${f.right}px`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:v.map((g,n)=>{let N=m[n]??(L+x)*(n+1),C=T;return jsx(gt,{"data-testid":`RightExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:C+N}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(v.length-n)},children:jsx(rt,{"data-testid":`RightExpandChip-${n}`,ref:y=>b.current[n]=y,children:g})},`right-${n}`)})},"right-expanded")})]})})})}var Tt=Ot;export{Tt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {useId}from'react';import a from'@mui/material/Box';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var e=styled(motion.div)(()=>({width:"100%",height:"100%",cursor:"pointer",".card-front > div, .card-back > div, .card-container":{width:"inherit",height:"inherit"},".card-container":{perspective:"1000px"},".card":{width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"},".card-front, .card-back":{position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},".card-back":{transform:"rotateY(180deg)"}}));function t({frontCard:d,backCard:n,isFlipped:p,isHovered:c}){let m=Kc(useId(),"flipping-card");return jsx(e,{id:m,"data-testid":"FlippingCard",children:jsx(motion.div,{className:"card-container",children:jsxs(motion.div,{className:"card",animate:{rotateY:p?180:c?20:0},transition:{duration:.3},children:[jsx(motion.div,{className:"card-front",children:jsx(a,{children:d})}),jsx(motion.div,{className:"card-back",children:jsx(a,{children:n})})]})})})}var N=t;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {useId,useMemo,useEffect}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.info.dark,cursor:"pointer",fontSize:"9px",textDecoration:"underline"}));var i=window.URL||window.webkitURL,b=({data:e,isLoading:r,isError:l})=>{let p=Kc(useId(),"open-file-in-new-tab"),o=useMemo(()=>e?i.createObjectURL(e):"",[e]);useEffect(()=>()=>{o&&i.revokeObjectURL(o);},[o]);let a=()=>{o&&window.open(o,"_blank");};return r||l?null:jsx(t,{id:p,"data-testid":"OpenFileInNewTab",onClick:a,children:"View"})},c=b;export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {Kc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {Kc}from'./chunk-IQKHU3XP.js';import {Vc,Ab}from'./chunk-WTHQXJUX.js';import {memo,useId}from'react';import n from'@mui/material/Box';import W from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),s=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),c=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function H({onClose:o,open:e,anchorEl:t,trigger:b,onOpen:f,children:u,disabled:h}){let w=Kc(useId(),"account-dropdown");return jsxs(x,{id:w,open:e,onClick:f,"data-testid":"Dropdown",disabled:h,children:[jsx(s,{children:b}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Vc:Ab,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(W,{open:e,anchorEl:t,sx:{width:t?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:t?.clientWidth,maxWidth:"unset"}}},children:jsx(c,{children:u})})]})}var g=memo(H);var j=g;export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-NWS7VJY6.js';import {Kc,mc}from'./chunk-IQKHU3XP.js';import {li,ik,ha,Sd,Dj,E,Xk,C,tb}from'./chunk-WTHQXJUX.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:Xk,flag:E,viewReceipt:Dj,viewApi:Sd,capture:ha,void:ik,clipboard:li};var X=({anchorEl:n,onClose:s,actions:h=[],linkedActions:M=[]})=>{let v=Kc(useId(),"actions-dropdown-menu"),{t:E}=useTranslation(),I=!!n,f=useMemo(()=>h.filter(e=>e.isShown!==false),[h]),g=useMemo(()=>M.filter(e=>e.isShown!==false),[M]);return I?jsxs(b,{id:v,"data-testid":"ActionsDropdownMenu",children:[jsx(a,{onClick:s}),jsx(V,{open:I,anchorEl:n,placement:"bottom-end",sx:{zIndex:1e3},children:jsxs(L,{children:[f.map((e,r)=>jsx(l,{onClick:p=>{p.stopPropagation(),e.onClick?.(p);},sx:r===f.length-1&&g.length>0?{borderBottom:"1px solid",borderColor:"divider"}:void 0,children:jsxs(u,{children:[jsx(d,{src:F[e.icon]??e.icon??C,alt:"action-icon"}),jsx("span",{children:e.label})]})},`direct-${r}`)),g.length>0&&jsx($,{children:E("linkedActions")}),g.map(({render:e,icon:r,label:p,onClick:T,onRightClick:i},c)=>{let m=e?.();return e&&!m?null:m?jsx(b,{children:m},`linked-${c}`):jsxs(l,{onClick:a=>{a.stopPropagation(),T?.(a),s();},onContextMenu:i?a=>{i(a);}:void 0,children:[jsxs(u,{children:[r&&jsx(d,{src:r,alt:"linked-action-icon"}),jsx("span",{children:p})]}),jsx("img",{src:tb,alt:""})]},`linked-${c}`)})]})})]}):null};var ne=({appCode:n,appIcon:s,appName:h,appInfo:M,menuItems:v})=>{let[E,I]=useState(null),f=!!E,g=useCallback(i=>{let c=i.currentTarget.firstElementChild;I(c);},[]),e=useCallback(()=>{I(null);},[]),r=useMemo(()=>v?.filter(({isShown:i=true})=>i),[v]);if(!r?.length)return null;let p=M?.iconUrl??s,T=mc(M?.name)??h;return jsxs(b,{onMouseEnter:g,onMouseLeave:e,children:[jsxs(l,{open:f,children:[jsxs(u,{children:[p&&jsx(d,{src:p,alt:"app"}),jsx("span",{children:T})]}),jsx("img",{src:tb,alt:""})]}),jsx(V,{open:f,anchorEl:E,placement:"left-start",sx:{zIndex:1301},children:jsx(L,{sx:{marginTop:0},children:r.map(({render:i,label:c,icon:m,onClick:a,onContextMenu:k},J)=>jsx(b,{children:i?.()??jsx(l,{onClick:C=>{C.stopPropagation(),a?.(C);},onContextMenu:k?C=>{k(C);}:void 0,children:jsxs(u,{children:[m&&jsx(d,{src:m,alt:"icon"}),jsx("span",{children:c})]})})},`app-${J}`))})})]})};export{X as a,ne as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$4}from'./chunk-QIOPDN2Y.js';import {a as a$3}from'./chunk-WQ6SVIPH.js';import {j,a as a$5}from'./chunk-IXPRQJFF.js';import {a}from'./chunk-BFSA5L5Z.js';import {a as a$2}from'./chunk-NWS7VJY6.js';import {a as a$1}from'./chunk-KLP3RHLG.js';import {xc,Kc,z}from'./chunk-IQKHU3XP.js';import {Q}from'./chunk-LSYUKVPD.js';import {Sc,Tc,Ej,Fj,Gj,bc,cc,Hj,ac}from'./chunk-WTHQXJUX.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:Tc,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:ac,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,a]=z();return [new q(o),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?bc:cc:e?cc:bc;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=>xc(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:Hj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Fj,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:Hj,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(()=>Q.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:Hj,alt:"icon"}):jsx(A,{}),jsx("img",{src:Ej,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?Ej:o?.timezone===t.timezone?Fj:Gj,[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(${Sc})`}},".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=Kc(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 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {x}from'./chunk-WTHQXJUX.js';import {memo,useId,useCallback}from'react';import {Slider}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", "),d=styled(Slider)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",backgroundImage:`url(${x})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",boxShadow:p,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:p}}}));function t({value:e,min:a,max:n,step:l,disabled:m,onChange:r}){let u=Kc(useId(),"slider"),b=useCallback((k,x)=>{r(x);},[r]);return jsx(d,{id:u,"data-testid":"Slider",value:e,min:a,max:n,step:l,disabled:m,onChange:b})}t.displayName="Slider";var h=memo(t);export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc,gc}from'./chunk-
|
|
1
|
+
import {Kc,gc}from'./chunk-WTHQXJUX.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:gc,error:Kc};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 {Ha,Kc}from'./chunk-
|
|
1
|
+
import {Ha,Kc}from'./chunk-IQKHU3XP.js';import I,{useId}from'react';import h from'@mui/material/Box';import y from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var w=Ha();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},m){let f=Kc(useId(),"input-number"),b=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}w&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(h,{id:f,"data-testid":"InputNumber",sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(a,{...t,ref:m,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:b,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var d=I.forwardRef(l);var H=d;export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-K4BR7FG4.js';import {Kc}from'./chunk-IQKHU3XP.js';import {memo,useId}from'react';import f from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(f,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",color:"#20232B"})),r=styled(a$1)(({theme:e})=>({padding:0,width:"14px !important",svg:{width:"14px !important",height:"14px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}}));function g({isSelected:e,isDisabled:o,isIndeterminate:l,hideCheckbox:p,onClick:s,children:c,className:t,...x}){let b=Kc(useId(),"menu-item"),n=o?"disabled menu-item":"menu-item",u=t?`${n} ${t}`:n;return jsxs(a,{id:b,"data-testid":"MenuItem",className:u,onClick:s,disabled:o,...x,children:[!p&&jsx(r,{size:"small",checked:e,indeterminate:l,disabled:o}),c]})}var N=memo(g);export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {Ah}from'./chunk-WTHQXJUX.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var i=styled(Box)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F6F8FACC",gap:"0.5rem",height:"100%"})),n=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:t})=>({fontWeight:600,fontSize:"1rem",color:t.palette.text?.primary,padding:0,margin:0})),s=styled("p")(({theme:t})=>({fontWeight:400,fontSize:"0.75rem",color:t.palette.text?.primary,padding:0,margin:0,opacity:.5}));function r({heading:t,message:y,...g}){let l=Kc(useId(),"card-empty-state"),{t:m}=useTranslation();return jsxs(i,{...g,id:l,"data-testid":"CardEmptyState",children:[jsx(n,{src:Ah,alt:"empty container"}),jsx(d,{children:m(t)}),jsx(s,{children:m(y)})]})}var z=r;export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {Kc as Kc$1}from'./chunk-WTHQXJUX.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var e=styled(d)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function l({error:r,...i}){let n=Kc(useId(),"error");return jsxs(e,{...i,id:n,"data-testid":"Error",children:[jsx("img",{src:Kc$1,alt:"w"}),r]})}var p=memo(l);var k=p;export{k as a};
|
|
@@ -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}/reversed.svg`,C=`${o}/destinationSolid.svg`,P=`${o}/search.svg`,D=`${o}/unauthorized.svg`,T=`${o}/view.svg`,W=`${o}/reports.svg`,N=`${o}/flag.svg`,G=`${o}/dispute.svg`,L=`${o}/timezone.svg`,F=`${o}/greyTimezone.svg`,O=`${o}/subscription.svg`,R=`${o}/savedCard.svg`,_=`${o}/egypt.svg`,E=`${o}/saudiArabia.svg`,z=`${o}/jordan.svg`,M=`${o}/lebanon.svg`,U=`${o}/kuwait.svg`,V=`${o}/unitedArabEmirates.svg`,q=`${o}/europe.svg`,H=`${o}/bahrain.svg`,Y=`${o}/america.svg`,Z=`${o}/payment-method/v2/card.svg`,j=`${o}/device.svg`,Q=`${o}/expressCheckout.svg`,X=`${o}/applePay.svg`,K=`${o}/cash.svg`,J=`${o}/passThruWallet.svg`,oo=`${o}/storedValueWallet.svg`,to=`${o}/buyNowPayLater.svg`,eo=`${o}/openBanking.svg`,no=`${o}/FrictionlessIcon.svg`,co=`${o}/ChallengeIcon.svg`,so=`${o}/visa.svg`,ro=`${o}/redArrowDownIcon.svg`,ao=`${o}/completed.svg`,io=`${o}/chargebackRequested.svg`,po=`${o}/chargeback.svg`,go=`${t}/captureDropdown.svg`,vo=`${o}/disputeResolved.svg`,Io=`${o}/reversePayout.svg`,lo=`${o}/ellipsisHorizontal.svg`,xo=`${o}/3ds.svg`,$o=`${o}/invoiceIdIcon3.svg`,uo=`${o}/idIcon3.svg`,ho=`${o}/id.svg`,mo=`${t}/copyIcon.svg`,wo=`${t}/codeIcon.svg`,bo=`${t}/GreenCheckMark2.svg`,yo=`${o}/closedDispute.svg`,So=`${o}/openDispute.svg`,ko=`${o}/desktop.svg`,Ao=`${o}/mobile.svg`,Bo=`${o}/tablet.svg`,fo=`${o}/invoice.svg`,Co=`${o}/cancelledInvoiceIcon.svg`,Po=`${o}/expiredInvoiceIcon.svg`,Do=`${o}/invoiceNumberIcon.svg`,To=`${o}/column.svg`,Wo=`${o}/sortAz.svg`,No=`${o}/sortZa.svg`,Go=`${o}/zipFile.svg`,Lo=`${o}/successWhiteBg.svg`,Fo=`${o}/failedWhiteBgIcon.svg`,Oo=`${o}/exclamationGreyIcon.svg`,Ro=`${o}/exclamationDarkGreyIcon.svg`,_o=`${o}/percentage0.svg`,Eo=`${o}/percentage50.svg`,zo=`${o}/percentage75.svg`,Mo=`${o}/percentage100.svg`,Uo=`${o}/maximize.svg`,Vo=`${o}/minimize.svg`,qo=`${o}/close.svg`,Ho=`${o}/dashedCheckIcon.svg`,Yo=`${o}/outstandingIcon.svg`,Zo=`${o}/cancelledStatusIcon.svg`,jo=`${o}/expiredStatusIcon.svg`,Qo=`${o}/paidStatusIcon.svg`,Xo=`${o}/refundedStatusIcon.svg`,Ko=`${o}/deactivatedIcon.svg`,Jo=`${o}/topup.svg`,ot=`${o}/AIOverviewIcon.svg`,tt=`${t}/demaximize.svg`,et=`${o}/pendingFlag.svg`,nt=`${o}/ibanIcon.svg`,ct=`${o}/payoutIcon.svg`,st=`${o}/releasedFlag.svg`,rt=`${o}/acceptedFlag.svg`,at=`${o}/clearIcon.svg`,it=`${o}/status/unCaptured.svg`,pt=`${t}/newWindow.svg`,gt=`${t}/viewAll.svg`,vt=`${t}/allApps.svg`,It=`${t}/hide.svg`,dt=`${t}/close.svg`,lt=`${t}/star.svg`,xt=`${t}/closeCircle.svg`,$t=`${t}/acquirer.svg`,ut=`${o}/GenericIconNew.svg`,ht=`${t}/acquirerRed.svg`,mt=`${t}/gateway.svg`,wt=`${t}/acquirerOrange.svg`,bt=`${o}/status/capturedAuthorize.svg`,yt=`${t}/merchantInitiated.svg`,St=`${t}/rightArow.svg`,kt=`${o}/blackRightArrow.svg`,At=`${t}/orangeFlag.svg`,Bt=`${t}/openFlag.svg`,ft=`${t}/closedFlag.svg`,Ct=`${t}/redFlag.svg`,Pt=`${t}/grayFlag.svg`,Dt=`${t}/downArrow.svg`,Tt=`${t}/check.svg`,Wt=`${t}/closeX.svg`,Nt=`${t}/drag.svg`,Gt=`${t}/checkboxIcon.svg`,Lt=`${o}/plusWhite.svg`,Ft=`${t}/checkboxIcon.svg`,Ot=`${o}/Uniso.svg`,Rt=`${o}/addidas.svg`,_t=`${o}/radioButtonChecked.svg`,Et=`${o}/radioButtonUnchecked.svg`,zt=`${o}/Mac.svg`,Mt=`${o}/blueCheckIconZigzag.svg`,Ut=`${o}/greenCheckIconZigzag.svg`,Vt=`${o}/dimmedCheckIconZigzag.svg`,qt=`${o}/marketPlaceBlue.svg`,Ht=`${o}/marketplaceBlackIcon.svg`,Yt=`${o}/marketPlaceDimmed.svg`,Zt=`${o}/moneyOut.svg`,jt=`${o}/moneyOutDimmed.svg`,Qt=`${o}/moneyIn.svg`,Xt=`${o}/moneyInDimmed.svg`,Kt=`${o}/message.svg`,Jt=`${o}/pending.svg`,oe=`${o}/payStream.svg`,te=`${o}/clearCoin.svg`,ee=`${t}/walletSmall.svg`,ne=`${t}/bank.svg`,ce=`${t}/hijri.svg`,se=`${t}/darkLeftArrow.svg`,re=`${t}/darkRightArrow.svg`,ae=`${t}/spinnerLoading.svg`,ie=`${t}/spinnerLoadingAnimated.svg`,pe=`${t}/actionFail.svg`,ge=`${t}/actionSuccess.svg`,ve=`${t}/checkMark.svg`,Ie=`${t}/logout.svg`,de=`${t}/preferences.svg`,le=`${t}/transform.svg`,xe=`${t}/token.svg`,$e=`${t}/billing.svg`,ue=`${t}/receiptBill.svg`,he=`${o}/newReceiptIcon.svg`,me=`${t}/acceptance.svg`,we=`${o}/acceptanceEnabled.svg`,be=`${o}/acceptanceBlue.svg`,ye=`${o}/payoutsGreen.svg`,Se=`${t}/acceptanceAppIconDisabled.svg`,ke=`${t}/payoutsAppIconDisabled.svg`,Ae=`${o}/payoutEnabled.svg`,Be=`${o}/payoutAppGreenIcon.svg`,fe=`${o}/payoutDisabledRounded.svg`,Ce=`${o}/acceptanceDisabledRounded.svg`,Pe=`${t}/AuthenticationApp.svg`,De=`${t}/walletApp.svg`,Te=`${t}/payouts.svg`,We=`${t}/protect.svg`,Ne=`${t}/customers.svg`,Ge=`${t}/business.svg`,Le=`${t}/account.svg`,Fe=`${t}/disableCheck.svg`,Oe=`${t}/wifiOff.svg`,Re=`${t}/SandboxHovered.svg`,_e=`${t}/Sandbox.svg`,Ee=`${t}/ExclamationError.svg`,ze=`${t}/greyCheck.svg`,Me=`${t}/greyCross.svg`,Ue=`${t}/blueCheck.svg`,Ve=`${t}/disabledCheck.svg`,qe=`${t}/darkCheck.svg`,He=`${t}/collapseArrow.svg`,Ye=`${t}/world.svg`,Ze=`${t}/grayUpArrow.svg`,je=`${t}/blackHeadingDownArrowIcon.svg`,Qe=`${t}/blueHeadingDropdownArrow.svg`,Xe=`${t}/dropdownArrow.svg`,Ke=`${t}/greyDropdownIcon.svg`,Je=`${t}/business2.svg`,on=`${t}/development.svg`,tn=`${t}/financial.svg`,en=`${t}/light_master_orchestrator.svg`,nn=`${t}/platform.svg`,cn=`${t}/provider.svg`,sn=`${t}/appPlatform.svg`,rn=`${t}/authenticationGateway.svg`,an=`${t}/billingPlatform.svg`,pn=`${t}/commercePlatform.svg`,gn=`${t}/commercialRegulator.svg`,vn=`${t}/merchantServiceProvider.svg`,In=`${t}/paymentAcquirer.svg`,dn=`${t}/paymentFacilitator.svg`,ln=`${t}/paymentGatewayProvider.svg`,xn=`${t}/paymentIssuer.svg`,$n=`${t}/paymentMethod.svg`,un=`${t}/paymentProcessor.svg`,hn=`${t}/paymentScheme.svg`,mn=`${t}/paymentTechnologyV2.svg`,wn=`${t}/paymentTerminalProvider.svg`,bn=`${t}/retailPlatform.svg`,yn=`${t}/retailer.svg`,Sn=`${t}/light_business.svg`,kn=`${t}/light_development.svg`,An=`${t}/financial.svg`,Bn=`${t}/light_master_orchestrator.svg`,fn=`${t}/light_platform.svg`,Cn=`${t}/provider.svg`,Pn=`${t}/light_app_platform.svg`,Dn=`${t}/light_authentication_gateway.svg`,Tn=`${t}/light_billing_platform.svg`,Wn=`${t}/light_commerce_platform.svg`,Nn=`${t}/light_commercial_regulator.svg`,Gn=`${t}/light_merchant_service_provider.svg`,Ln=`${t}/light_payment_acquirer.svg`,Fn=`${t}/light_payment_facilitator.svg`,On=`${t}/light_payment_gateway_provider.svg`,Rn=`${t}/light_payment_issuer.svg`,_n=`${t}/light_payment_method.svg`,En=`${t}/light_payment_processor.svg`,zn=`${t}/light_payment_scheme.svg`,Mn=`${t}/light_payment_technology_v2.svg`,Un=`${t}/light_payment_terminal_provider.svg`,Vn=`${t}/light_retail_platform.svg`,qn=`${t}/light_retailer.svg`,Hn=`${t}/brandGray.svg`,Yn=`${o}/grayCircleIcon.svg`,Zn=`${t}/json.svg`,jn=`${t}/jsonBlackIcon.svg`,Qn=`${t}/sort1.svg`,Xn=`${t}/SandboxHoveredLight.svg`,Kn=`${t}/emailColoured.svg`,Jn=`${o}/OrderIcon.svg`,oc=`${o}/TransactionIcon.svg`,tc=`${o}/GenericIcon.svg`,ec=`${t}/smsColoured.svg`,nc=`${t}/whatsAppColored.svg`,cc=`${t}/dueDateBlue.svg`,sc=`${t}/dueDateOrange.svg`,rc=`${t}/dueDateYellow.svg`,ac=`${t}/dueDateRed.svg`,ic=`${t}/dueDateBlack.svg`,pc=`${t}/dueDateGray.svg`,gc=`${t}/timerBlue.svg`,vc=`${t}/expiredIcon.svg`,Ic=`${t}/remindedRed.svg`,dc=`${t}/chevronWhite.svg`,lc=`${t}/chevronGray.svg`,xc=`${t}/notVerified.svg`,$c=`${t}/verified.svg`,uc=`${t}/verifyReview.svg`,hc=`${o}/window/attention.svg`,mc=`${o}/window/initalAcceptance.svg`,wc=`${o}/window/completedAcceptance.svg`,bc=`${o}/window/initalPayouts.svg`,yc=`${o}/window/completedPayouts.svg`,Sc=`${t}/collapseArrowsIcon.svg`,kc=`${t}/expandArrowsIcon.svg`,Ac=`${t}/greenArrowRight.svg`,Bc=`${t}/greenArrowLeft1.svg`,fc=`${t}/greenIconWithArrowUp.svg`,Cc=`${t}/whiteArrowRight.svg`,Pc=`${t}/whiteArrowLeft.svg`,Dc=`${o}/HSBCBank.svg`,Tc=`${o}/shopifyIcon.svg`,Wc=`${o}/verifiedGreenBadge.svg`,Nc=`${o}/backButtonLeft.svg`,Gc=`${o}/eyeHideIcon.svg`,Lc=`${o}/eyeShowIcon.svg`,Fc=`${t}/uploadIcon.svg`,Oc=`${o}/window/uploadGreyIcon.svg`,Rc=`${o}/uploadAppIcon.svg`,_c=`${o}/window/paylinkGreyIcon.svg`,Ec=`${o}/paylinkAppIcon.svg`,zc=`${o}/inprogressIcon.svg`,Mc=`${t}/uploadBlueIcon.svg`,Uc=`${t}/SandboxHovered.svg`,Vc=`${t}/sandboxDefaultIcon.svg`,qc=`${t}/SandboxIcon.svg`,Hc=`${t}/clock.svg`,Yc=`${t}/RedClose.svg`,Zc=`${t}/xls.svg`,jc=`${t}/csv.svg`,Qc=`${t}/pdf.svg`,Xc=`${t}/Download.svg`,Kc=`${t}/reportsIconOutlined.svg`,Jc=`${t}/Done.svg`,os=`${t}/reportApps.svg`,ts=`${o}/window/ReportsApp.svg`,es=`${o}/window/leadApp.svg`,ns=`${o}/window/leadTitleIcon.svg`,cs=`${t}/OrderApp.svg`,ss=`${t}/OrderTitleIcon.svg`,rs=`${o}/dottedLine.svg`,as=`${o}/passwordDots.svg`,is=`${o}/dollarSign.svg`,ps=`${o}/reload.svg`,gs=`${t}/deletedStatus1.svg`,vs=`${t}/draftedStatus1.svg`,Is=`${t}/createdStatus1.svg`,ds=`${t}/cancelledStatus1.svg`,ls=`${t}/expiredStatus1.svg`,xs=`${t}/paidStatus1.svg`,$s=`${t}/deliveredStatus1.svg`,us=`${t}/viewedStatus1.svg`,hs=`${t}/savedStatus1.svg`,ms=`${t}/scheduledStatus1.svg`,ws=`${t}/invoicePendingStatus2.svg`,bs=`${t}/invoiceRefundedStatus2.svg`,ys=`${o}/activeLeadStatus.svg`,Ss=`${o}/completedLeadStatus.svg`,ks=`${o}/closedLeadStatus.svg`,As=`${o}/expiredLeadStatus.svg`,Bs=`${o}/readyLeadStatus.svg`,fs=`${o}/newFileIcon.svg`,Cs=`${o}/downloadFileIcon.svg`,Ps=`${o}/progressFileIcon.svg`,Ds=`${o}/successFileIcon.svg`,Ts=`${o}/whiteArrowDownIcon.svg`,Ws=`${o}/teamWindowIcon.svg`,Ns=`${o}/blueAppsIcon.svg`,Gs=`${o}/disabledCardIcon.svg`,Ls=`${o}/disabledCodeIcon.svg`,Fs=`${o}/layersIcon.svg`,Os=`${o}/status/pendingOnTapIcon.svg`,Rs=`${o}/leadWhiteIcon.svg`,_s=`${t}/chatDisabledIcon.svg`,Es=`${o}/exclamationDarkIcon.svg`,zs=`${t}/exclamationWarning.svg`,Ms=`${o}/exclamationError.svg`,Us=`${o}/exclamationOrangeIcon.svg`,Vs=`${t}/greenCheckV2.svg`,qs=`${o}/iosIcon1.svg`,Hs=`${o}/androidIcon.svg`,Ys=`${o}/websiteIcon.svg`,Zs=`${t}/greyApple.svg`,js=`${t}/greyLocationIcon.svg`,Qs=`${t}/greyDesktopIcon.svg`,Xs=`${t}/greyTimezone.svg`,Ks=`${t}/safariBrowser.svg`,Js=`${t}/chromeBrowser.svg`,or=`${t}/firefoxBrowser.svg`,tr=`${t}/microsoftBrowser.svg`,er=`${t}/operaBrowser.svg`,nr=`${t}/braveBrowser.svg`,cr=`${t}/arcBrowser.svg`,sr=`${t}/chromiumBrowser.svg`,rr=`${t}/userIcon.svg`,ar=`${t}/slaProcess.svg`,ir=`${o}/window/slaProcess.svg`,pr=`${o}/orchestrationApp.svg`,gr=`${o}/window/orchestration.svg`,vr=`${o}/window/orchestrationWindowBg.svg`,Ir=`${o}/lendingApp.svg`,dr=`${o}/window/lending.svg`,lr=`${o}/fast.svg`,xr=`${o}/bankBlue.svg`,$r=`${o}/mosque.svg`,ur=`${o}/corpotateLoan.svg`,hr=`${o}/platformApp.svg`,mr=`${o}/window/platform.svg`,wr=`${o}/status/table/abandoned.svg`,br=`${o}/status/table/cancelled.svg`,yr=`${o}/status/table/captured.svg`,Sr=`${o}/status/table/chargeBack.svg`,kr=`${o}/status/table/chargeBackRequested.svg`,Ar=`${o}/status/table/completed.svg`,Br=`${o}/status/table/declined.svg`,fr=`${o}/status/table/destinationReversed.svg`,Cr=`${t}/DestinationWithoutBackground.svg`,Pr=`${o}/status/table/disputeResolved.svg`,Dr=`${o}/status/table/failed.svg`,Tr=`${o}/status/table/failedNoBG.svg`,Wr=`${o}/status/table/declinedNoBg.svg`,Nr=`${t}/destinationSuccess.svg`,Gr=`${o}/status/authenticationFailed.svg`,Lr=`${o}/status/table/authenticated.svg`,Fr=`${o}/paidOutFilterIcon.svg`,Or=`${o}/completedBlackIcon.svg`,Rr=`${o}/scheduledFilterIcon.svg`,_r=`${o}/saveTokenIcon.svg`,Er=`${o}/status/unauthenticated.svg`,zr=`${o}/status/authenticationAttempted.svg`,Mr=`${o}/status/authenticationNoAuth.svg`,Ur=`${o}/status/authenticationDeclined.svg`,Vr=`${o}/status/authenticationExemptedWithoutTransaction1.svg`,qr=`${o}/status/authenticationExemptedWithTransaction2.svg`,Hr=`${o}/status/authenticationFailed1.svg`,Yr=`${o}/status/authenticationInitiated.svg`,Zr=`${o}/status/authenticationUnavailable.svg`,jr=`${o}/status/authenticationUndetermined.svg`,Qr=`${o}/status/AuthenticationWithoutTransaction1.svg`,Xr=`${o}/status/authenticationWithTransaction1 2.svg`,Kr=`${o}/status/AuthenticationAuthenticated.svg`,Jr=`${o}/status/authenticationPending2.svg`,oa=`${o}/authenticationFailedNoBg.svg`,ta=`${o}/authenticationPendingNoBg.svg`,ea=`${o}/authenticationNoAuthNoBg.svg`,na=`${o}/authenticationAttemptedNoBg.svg`,ca=`${o}/authenticationExemptedWithTransactionNoBg.svg`,sa=`${o}/authenticationExemptedWithoutTransactionNoBg.svg`,ra=`${o}/authenticationDeclinedNoBg.svg`,aa=`${o}/authenticationUnavailableNoBg.svg`,ia=`${o}/authenticationUndeterminedNoBg.svg`,pa=`${o}/authenticatedSuccessNoBg.svg`,ga=`${o}/authenticationWithTransactionNoBg.svg`,va=`${o}/authenticationWithoutTransactionNoBg.svg`,Ia=`${o}/greyPlusIcon.svg`,da=`${o}/greyMinusIcon.svg`,la=`${o}/noPreviewIcon.svg`,xa=`${o}/other/editIcon.svg`,$a=`${t}/viewInvoice.svg`,ua=`${t}/checkoutStatus.svg`,ha=`${t}/checkStatusOutBlue.svg`,ma=`${t}/checkoutWithMarkStatus.svg`,wa=`${t}/intentExpiredStatus.svg`,ba=`${t}/intentInitiatedStatus.svg`,ya=`${t}/intentCancelledStatus.svg`,Sa=`${t}/intentTransactedStatus.svg`,ka=`${o}/SheetViewUnionIcon.svg`,Aa=`${o}/sheetView.svg`,Ba=`${o}/abandonedNoBG.svg`,fa=`${o}/status/table/paidOut.svg`,Ca=`${o}/status/table/reversePayout.svg`,Pa=`${o}/status/pendingPayout.svg`,Da=`${t}/whiteCloseIcon.svg`,Ta=`${o}/window/empty.svg`,Wa=`${o}/loaderWhiteIcon.svg`,Na=`${t}/reverseActionIcon.svg`,Ga=`${o}/status/authenticationWallet.svg`,La=`${o}/status/authenticationApp.svg`,Fa=`${o}/status/authenticationBiometric.svg`,Oa=`${o}/status/authenticationDevice.svg`,Ra=`${o}/status/authenticationIssuer.svg`,_a=`${o}/status/authenticationScheme.svg`,Ea=`${o}/pin.svg`,za=`${o}/unpin.svg`,Ma=`${t}/switcher.svg`,Ua=`${o}/closedStatusIcon.svg`,Va=`${o}/verticalLine.svg`,qa=`${o}/previewModeIcon.svg`,Ha=`${o}/status/table/tokensSaved.svg`,Ya=`${o}/status/table/tokensTransacted.svg`,Za=`${o}/status/table/tokensExpired.svg`,ja=`${o}/status/table/tokensPending.svg`,Qa=`${o}/status/table/tokenCardIcon.svg`,Xa=`${t}/TableloadingSpinner.svg`,Ka=`${t}/loadingSpinnerWhite.svg`,Ja=`${o}/spinnerLoadingBlue.svg`,oi=`${o}/backgroundLoader.svg`,ti=`${t}/arrowUpBlue1.svg`,ei=`${t}/BlueCheckMarkShadowed1.svg`,ni=`${t}/cardViewButton.svg`,ci=`${t}/listViewButton1.svg`,si=`${o}/BlueArrowUpIcon.svg`,ri=`${o}/BlueCircleLoaderIcon.svg`,ai=`${o}/appsGridIcon2.svg`,ii=`${o}/whiteFilter.svg`,pi=`${o}/grayCloseIcon.svg`,gi=`${o}/status/OrderAgreementIcon.svg`,vi=`${o}/status/InstallmentAgreementIcon.svg`,Ii=`${o}/status/CardAgreementIcon.svg`,di=`${o}/status/SubscriptionAgreementIcon.svg`,li=`${o}/brandPlaceholder.svg`,xi=`${o}/users-icons.svg`,$i=`${o}/Board-Icons.svg`,ui=`${t}/No Agreement.svg`,hi=`${o}/window/acceptance.svg`,mi=`${o}/window/wallet.svg`,wi=`${o}/window/billing.svg`,bi=`${o}/window/customers.svg`,yi=`${o}/window/payout.svg`,Si=`${o}/window/protect.svg`,ki=`${o}/window/tokens.svg`,Ai=`${o}/window/account.svg`,Bi=`${o}/window/businesses.svg`,fi=`${o}/window/authentication.svg`,Ci=`${t}/reportsIcon.svg`,Pi=`${o}/window/tokensReports.svg`,Di=`${o}/window/brand.svg`,Ti=`${o}/window/entity.svg`,Wi=`${o}/window/bank.svg`,Ni=`${o}/window/individual.svg`,Gi=`${o}/window/password.svg`,Li=`${o}/actionsIcon.svg`,Fi=`${o}/addItem.svg`,Oi=`${o}/attachIcon.svg`,Ri=`${o}/CollapseArrows.svg`,_i=`${o}/customerIcon.svg`,Ei=`${o}/discountIcon.svg`,zi=`${o}/emailIcon.svg`,Mi=`${o}/emailBlackIcon.svg`,Ui=`${o}/linkTiltedIcon.svg`,Vi=`${o}/ExpandArrows.svg`,qi=`${o}/feeIcon.svg`,Hi=`${o}/minusIcon.svg`,Yi=`${o}/noteIcon.svg`,Zi=`${o}/pdfGrayIcon.svg`,ji=`${o}/productLabel.svg`,Qi=`${o}/quantityIcon.svg`,Xi=`${o}/removeItem.svg`,Ki=`${t}/removeItem2.svg`,Ji=`${o}/smsIcon.svg`,op=`${o}/taxIcon.svg`,tp=`${o}/totalAmountIcon.svg`,ep=`${o}/unfocusRemoveItem.svg`,np=`${o}/whatsappIcon1.svg`,cp=`${o}/whiteArrow2.svg`,sp=`${o}/newInvoice.svg`,rp=`${o}/activeActionIcon.svg`,ap=`${o}/grayProductLabel.svg`,ip=`${o}/plusQty.svg`,pp=`${t}/downArrow3.svg`,gp=`${o}/customer.svg`,vp=`${t}/note.svg`,Ip=`${o}/blueNoteIcon.svg`,dp=`${t}/attach.svg`,lp=`${o}/lateFee.svg`,xp=`${o}/addItemIcon.svg`,$p=`${o}/blueCheckIcon.svg`,up=`${t}/trash-bin.svg`,hp=`${o}/redTrashBin.svg`,mp=`${o}/blueVerifyIcon.svg`,wp=`${o}/verificationDarkBlue.svg`,bp=`${o}/grayVerifyIcon.svg`,yp=`${o}/greenVerifyIcon.svg`,Sp=`${o}/redVerifyIcon.svg`,kp=`${o}/closedVerifyIcon.svg`,Ap=`${o}/archivedVerifyIcon.svg`,Bp=`${o}/penIcon.svg`,fp=`${t}/listShadow.svg`,Cp=`${o}/defaultCountryIcon.svg`,Pp=`${o}/defaultDeviceIcon.svg`,Dp=`${o}/biometric.svg`,Tp=`${o}/3dsBlue.svg`,Wp=`${t}/createCharge.svg`,Np=`${t}/successCheck.svg`,Gp=`${t}/receipt.svg`,Lp=`${t}/browserTimezone.svg`,Fp=`${t}/entityTimezone.svg`,Op=`${t}/historyTimezone.svg`,Rp=`${t}/smallBlueCheck.svg`,_p=`${t}/fileDownloadBlue.svg`,Ep=`${t}/fileDownloadGrey.svg`,zp=`${o}/meta.svg`,Mp=`${o}/darkFilterIcon.svg`,Up=`${o}/resize-icon.svg`,Vp=`${o}/home.svg`,qp=`${o}/lockIcon.svg`,Hp=`${o}/Calendar.svg`,Yp=`${o}/status-v2/autoCapturedNoBG.svg`,Zp=`${o}/status-v2/autoVoidNoBG.svg`,jp=`${o}/status-v2/cancelledNoBG.svg`,Qp=`${o}/status-v2/capturedNoBG.svg`,Xp=`${o}/status-v2/declinedNoBG.svg`,Kp=`${o}/status-v2/destinationsNoBG.svg`,Jp=`${o}/status-v2/failedNoBG.svg`,og=`${o}/status-v2/gatewayOrange.svg`,tg=`${o}/status-v2/gatewayRedNoBG.svg`,eg=`${o}/status-v2/paidoutNoBG.svg`,ng=`${o}/status-v2/refundedIconNoBG2.svg`,cg=`${o}/status-v2/refundInitiatedNoBG.svg`,sg=`${o}/status-v2/refundSettledNoBG.svg`,rg=`${o}/status-v2/refundNotSettledNoBG.svg`,ag=`${o}/status-v2/restrictedNoBG.svg`,ig=`${o}/status-v2/settledNoBG.svg`,pg=`${o}/status-v2/settlementInitiatedNoBG.svg`,gg=`${o}/status-v2/timeoutNoBG.svg`,vg=`${o}/status-v2/unavailableNoBG.svg`,Ig=`${o}/status-v2/unknownNoBG.svg`,dg=`${o}/status-v2/void.svg`,lg=`${o}/status-v2/authorizeNoBG.svg`,xg=`${o}/status-v2/initiatedNoBG.svg`,$g=`${o}/websiteBlueIcon.svg`,ug=`${o}/androidAppIcon.svg`,hg=`${o}/iOSAppIcon.svg`,mg=`${o}/physicalLocationIcon.svg`,wg=`${o}/socialLinksIcon.svg`,bg=`${o}/smallLeftArrow.svg`,yg=`${o}/searchBlueIcon.svg`,Sg=`${t}/rightLightArrow.svg`,kg=`${t}/segmentInstitution.svg`,Ag=`${t}/segmentTechnology.svg`,Bg=`${t}/segmentDevelopmentHouse.svg`,fg=`${t}/terminal.svg`,Cg=`${o}/window/terminal.svg`,Pg=`${o}/terminalCardPhone.svg`,Dg=`${o}/ToastPOS.svg`,Tg=`${o}/terminalTypeIcon.svg`,Wg=`${o}/terminalBrush.svg`,Ng=`${o}/terminalBrushMuted.svg`,Gg=`${o}/navigationIcon.svg`,Lg=`${o}/babyBlueCheckIcon.svg`,Fg=`${o}/digitalReceiptIcon.svg`,Og=`${o}/bankNoteIcon.svg`,Rg=`${o}/terminalDeviceFrame.svg`,_g=`${o}/blackBrushIcon.svg`,Eg=`${o}/mutedOutlinedCheckIcon.svg`,zg=`${o}/outlinedPlatformIcon.svg`,Mg=`${o}/navigationPointerBlack.svg`,Ug=`${o}/addIconWhite.svg`,Vg=`${o}/greyUpArrow.svg`,qg=`${o}/greyDownArrow.svg`,Hg=`${o}/services/brandService.svg`,Yg=`${o}/services/authorizationService.svg`,Zg=`${o}/services/chargebacksService.svg`,jg=`${o}/services/chargesService.svg`,Qg=`${o}/services/destinationsService.svg`,Xg=`${o}/services/entityService.svg`,Kg=`${o}/services/invoiceService.svg`,Jg=`${o}/services/payoutService.svg`,ov=`${o}/services/refundsService.svg`,tv=`${o}/services/usersService.svg`,ev=`${o}/services/walletService.svg`,nv=`${o}/services/intentsService.svg`,cv=`${o}/services/insightsService.svg`,sv=`${o}/services/retailersService.svg`,rv=`${o}/services/terminalService.svg`,av=`${o}/services/createLead.svg`,iv=`${o}/services/viewLead.svg`,pv=`${o}/archievedOutlined.svg`,gv=`${o}/closeOutlinedCircle.svg`,vv=`${o}/dashedOutlinedCircle.svg`,Iv=`${o}/deactivatedCircle.svg`,dv=`${o}/deactivatedOutlinedCircleV2.svg`,lv=`${o}/exclamationOutlinedCircle.svg`,xv=`${o}/questionOutlinedCircle.svg`,$v=`${o}/outlinedCircle.svg`,uv=`${o}/greenCheck2ACE00.svg`,hv=`${o}/blueCopyIcon.svg`,mv=`${o}/blackLinkIcon.svg`,wv=`${o}/blackSettingsIcon.svg`,bv=`${o}/blackWallet.svg`,yv=`${o}/blueGradientBrushIcon.svg`,Sv=`${o}/gadientLink.svg`,kv=`${o}/blackDeviceIcon.svg`,Av=`${o}/gradientDeviceIcon.svg`,Bv=`${o}/gradientSettings.svg`,fv=`${o}/gradientWallet.svg`,Cv=`${o}/codeIcon.svg`,Pv=`${o}/manyCurrencyCoin.svg`,Dv=`${o}/manyCurrencyCoinGradient.svg`,Tv=`${o}/blackMobileBatteryIcon.svg`,Wv=`${o}/blackMobileSignalIcon.svg`,Nv=`${o}/emptyMobileWifiIcon.svg`,Gv=`${o}/deemaWithLabel.svg`,Lv=`${o}/chargeBackWhiteIcon.svg`,Fv=`${o}/blackUnLinkIcon.svg`,Ov=`${o}/sortDescArrowIcon.svg`,Rv=`${o}/sortAscArrowIcon.svg`,_v=`${o}/closedOutlinedYellowCircle.svg`,Ev=`${o}/deactivatedOrangeCircle.svg`,zv=`${o}/deactivatedCircleV2.svg`,Mv=`${o}/exclamationOutlinedOrangeCircle.svg`,Uv=`${o}/activeGreenIcon.svg`,Vv=`${o}/activeBlue.svg`,qv=`${o}/inActiveGreyIcon.svg`,Hv=`${s}/terminal_link.mp4`,Yv=`${o}/bluePlusIcon.svg`,Zv=`${o}/blackSettingsVariant2Icon.svg`,jv=`${o}/exclamationWhite.svg`,Qv=`${t}/blueCircleWithWhiteCheck.svg`,Xv=`${o}/externalLink.svg`,Kv=`${o}/settingsIcon.svg`,Jv=`${o}/flipIcon.svg`,oI=`${o}/shoppingCart.svg`,tI=`${o}/verifyAvatar.svg`,eI=`${o}/helpCircle.svg`,nI=`${o}/provider/CYBERSOURCE.svg`,cI=`${o}/provider/MPGS.svg`,sI=`${o}/provider/NETCETERA.svg`,rI=`${o}/provider/TAP3DS.svg`,aI=`${o}/provider/BENEFIT_PAY.svg`,iI=`${o}/provider/BENEFIT.svg`,pI=`${o}/provider/CAREEM_PAY.svg`,gI=`${o}/provider/DEEMA.svg`,vI=`${o}/provider/FAWRY.svg`,II=`${o}/provider/FSS.svg`,dI=`${o}/provider/KNET.svg`,lI=`${o}/provider/MEEZA.svg`,xI=`${o}/provider/NGENIUS.svg`,$I=`${o}/provider/NPG.svg`,uI=`${o}/provider/OMAN_NET.svg`,hI=`${o}/provider/PAYPAL.svg`,mI=`${o}/provider/POSTPAY.svg`,wI=`${o}/provider/QPAY.svg`,bI=`${o}/provider/SPG.svg`,yI=`${o}/provider/STC_PAY.svg`,SI=`${o}/provider/TABBY.svg`,kI=`${o}/provider/TAMARA.svg`,AI=`${o}/provider/TPAY.svg`,BI=`${o}/provider/TPG.svg`,fI=`${o}/downloadBlue.svg`,CI=`${o}/eyeBlue.svg`,PI=`${o}/fastBlack.svg`,DI=`${o}/repeat.svg`,TI=`${o}/shield.svg`,WI=`${o}/fileMinus.svg`,NI=`${o}/percent.svg`,GI=`${o}/cardUpload.svg`,LI=`${o}/startConnector.svg`,FI=`${o}/endConnector.svg`,OI=`${o}/filledConnector.svg`,RI=`${o}/dottedConnector.svg`,_I=`${o}/play.svg`,EI=`${o}/merchantAttributes.svg`,zI=`${o}/issuerAttributes.svg`,MI=`${o}/refresh.svg`,UI=`${o}/riskAttributes.svg`,VI=`${o}/exclude.svg`,qI=`${o}/earlySettlements.svg`,HI=`${o}/financedBy.svg`,YI=`${o}/financeFeatures.svg`,ZI=`${o}/loanAmount.svg`,jI=`${o}/murabhaFinance.svg`,QI=`${o}/testimonial.svg`,XI=`${a}/bulk-refund-template.xlsx`,KI=`${o}/emptyCopyIcon.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,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,Zn as Rd,Zc as Re,Zs as Rf,Zr as Rg,Za as Rh,Zi as Ri,Zp as Rj,Zg as Rk,Zv as Rl,ZI as Rm,Y as S,Zo as Sa,Zt as Sb,Ze as Sc,jn as Sd,jc as Se,js as Sf,jr as Sg,ja as Sh,ji as Si,jp as Sj,jg as Sk,jv as Sl,jI as Sm,Z as T,jo as Ta,jt as Tb,je 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,j 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,Kn as Vd,Kc as Ve,Ks as Vf,Kr as Vg,Ka as Vh,Ki as Vi,Kp as Vj,Kg as Vk,Kv as Vl,KI as Vm,X as W,Ko as Wa,Kt as Wb,Ke as Wc,Jn as Wd,Jc as We,Js as Wf,Jr as Wg,Ja as Wh,Ji as Wi,Jp as Wj,Jg as Wk,Jv as Wl,K as X,Jo as Xa,Jt as Xb,Je 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,J 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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,$ 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 {Kc}from'./chunk-
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {ef}from'./chunk-WTHQXJUX.js';import {useId}from'react';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),s=styled("img")({cursor:"pointer"}),p=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function g({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:m}){let c=Kc(useId(),"error-toast");return jsxs(n,{id:c,"data-testid":"ErrorToast",toastPosition:l,children:[jsx(p,{children:o}),jsx(s,{onClick:f=>t?.(f),src:m||ef,alt:"toast-icon"})]})}var d=g;var v=d;export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {Kc}from'./chunk-IQKHU3XP.js';import {g}from'./chunk-LSYUKVPD.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=Kc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=Kc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===g.reports.code||o===g.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
|