@tap-payments/os-micro-frontend-shared 0.3.30 → 0.3.32

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.
Files changed (327) hide show
  1. package/build/_chunks/{chunk-IPS2LPDR.js → chunk-2LIVEEMP.js} +1 -1
  2. package/build/_chunks/{chunk-3EJTIBHC.js → chunk-2ME35FIC.js} +1 -1
  3. package/build/_chunks/{chunk-ZH7QVAHJ.js → chunk-3D47MBQV.js} +1 -1
  4. package/build/_chunks/{chunk-TUR7XO3E.js → chunk-4CL4V3CC.js} +1 -1
  5. package/build/_chunks/{chunk-4N4YBG7Y.js → chunk-4EWPGW6J.js} +1 -1
  6. package/build/_chunks/{chunk-77LO6FE5.js → chunk-4F4K5B2C.js} +1 -1
  7. package/build/_chunks/{chunk-URKLILFD.js → chunk-4FH6353C.js} +1 -1
  8. package/build/_chunks/{chunk-EI2QQ3FL.js → chunk-4W5W6LM2.js} +1 -1
  9. package/build/_chunks/{chunk-O7VXWCQH.js → chunk-522ZIEK5.js} +1 -1
  10. package/build/_chunks/{chunk-PASL6KWI.js → chunk-5LU54ZBH.js} +1 -1
  11. package/build/_chunks/{chunk-BGYQKEH4.js → chunk-5O2MHAGO.js} +1 -1
  12. package/build/_chunks/{chunk-SHUHGHAI.js → chunk-5QNF44RY.js} +1 -1
  13. package/build/_chunks/{chunk-V7QLQDJ7.js → chunk-5VFUBBQ2.js} +1 -1
  14. package/build/_chunks/{chunk-OB2LASWR.js → chunk-6C44LAUI.js} +1 -1
  15. package/build/_chunks/{chunk-SKAQS5ML.js → chunk-6D4UPCYC.js} +1 -1
  16. package/build/_chunks/{chunk-YA2XHXSP.js → chunk-6SCYLNZT.js} +1 -1
  17. package/build/_chunks/{chunk-BA7XWXLC.js → chunk-7MNR6U3J.js} +1 -1
  18. package/build/_chunks/{chunk-USKDMJPB.js → chunk-BCH5XOLV.js} +1 -1
  19. package/build/_chunks/{chunk-V2XFUF7R.js → chunk-BI52OMSL.js} +1 -1
  20. package/build/_chunks/{chunk-XFFKD7WO.js → chunk-BYHNR6IS.js} +1 -1
  21. package/build/_chunks/{chunk-B63K56UX.js → chunk-BZMWGOSR.js} +1 -1
  22. package/build/_chunks/chunk-C2TI5YXD.js +1 -0
  23. package/build/_chunks/{chunk-65IBAMBY.js → chunk-CKNQXEUK.js} +1 -1
  24. package/build/_chunks/{chunk-K3QVNBIT.js → chunk-D4Z54LU7.js} +1 -1
  25. package/build/_chunks/{chunk-YEUHJU7X.js → chunk-DB6CM6D2.js} +1 -1
  26. package/build/_chunks/{chunk-WPNUBJWG.js → chunk-DEJRIJZ4.js} +1 -1
  27. package/build/_chunks/{chunk-7ZHAFW7H.js → chunk-DGKXRW7O.js} +1 -1
  28. package/build/_chunks/chunk-DSHV2G5D.js +2 -0
  29. package/build/_chunks/{chunk-YA27C2AC.js → chunk-E6WVHMFZ.js} +2 -2
  30. package/build/_chunks/{chunk-GD6V56NO.js → chunk-E7K4CGGY.js} +1 -1
  31. package/build/_chunks/{chunk-6TGHYOO5.js → chunk-ECWCQXSU.js} +1 -1
  32. package/build/_chunks/{chunk-ABRMR2FW.js → chunk-EGXZIDU7.js} +1 -1
  33. package/build/_chunks/{chunk-4YMQA5DJ.js → chunk-EZNOUNIP.js} +1 -1
  34. package/build/_chunks/chunk-FKZMEAFL.js +1 -0
  35. package/build/_chunks/{chunk-AYMUVBOK.js → chunk-FORKUO6X.js} +1 -1
  36. package/build/_chunks/{chunk-UCZYXKNB.js → chunk-FQASUYSG.js} +1 -1
  37. package/build/_chunks/{chunk-BVWMYKKV.js → chunk-FVQ3IYZV.js} +1 -1
  38. package/build/_chunks/{chunk-N4TBHB3Z.js → chunk-G7UVN626.js} +1 -1
  39. package/build/_chunks/chunk-GS44FGW3.js +1 -0
  40. package/build/_chunks/chunk-GUVQJ3NT.js +2 -0
  41. package/build/_chunks/{chunk-5YY4V2BQ.js → chunk-GVAQP3GV.js} +2 -2
  42. package/build/_chunks/{chunk-JQ5V7JJR.js → chunk-HRHKLA3T.js} +1 -1
  43. package/build/_chunks/{chunk-57IZKCTX.js → chunk-HSSK2BEB.js} +1 -1
  44. package/build/_chunks/{chunk-EKOXQUSJ.js → chunk-HTTIBGGO.js} +1 -1
  45. package/build/_chunks/{chunk-4C7A45LE.js → chunk-IDGLI5YL.js} +1 -1
  46. package/build/_chunks/{chunk-4VEXHGOG.js → chunk-IG4VX7QM.js} +1 -1
  47. package/build/_chunks/{chunk-5CRSRCD3.js → chunk-IKCNUHZE.js} +1 -1
  48. package/build/_chunks/chunk-J4YOWPJR.js +1 -0
  49. package/build/_chunks/{chunk-I5QH3YUQ.js → chunk-JGD6WV52.js} +1 -1
  50. package/build/_chunks/{chunk-W43NRJJH.js → chunk-JI7ZBYYO.js} +1 -1
  51. package/build/_chunks/{chunk-WG3Q2IKJ.js → chunk-JPM6ETEB.js} +1 -1
  52. package/build/_chunks/{chunk-6LIGMKIB.js → chunk-JQ5F7THR.js} +1 -1
  53. package/build/_chunks/{chunk-XF26PMG3.js → chunk-KCBGVDAD.js} +1 -1
  54. package/build/_chunks/{chunk-Z45UP3A4.js → chunk-KPS6SOR2.js} +1 -1
  55. package/build/_chunks/{chunk-NAJQUPFB.js → chunk-KX2QE26V.js} +1 -1
  56. package/build/_chunks/{chunk-WWUCJ45J.js → chunk-L7SS5IIY.js} +1 -1
  57. package/build/_chunks/chunk-LGHFABFG.js +1 -0
  58. package/build/_chunks/{chunk-VN6QL6H7.js → chunk-LZFTHCSQ.js} +1 -1
  59. package/build/_chunks/{chunk-CP4AJBXH.js → chunk-MKK5JVYY.js} +1 -1
  60. package/build/_chunks/{chunk-EONK7NDO.js → chunk-MN6VXMOB.js} +1 -1
  61. package/build/_chunks/{chunk-FHJWJ53U.js → chunk-MQUHYQ5I.js} +1 -1
  62. package/build/_chunks/{chunk-MRIJSE7V.js → chunk-MSFWU3SL.js} +1 -1
  63. package/build/_chunks/{chunk-M3V5SG2U.js → chunk-NKRK4PAN.js} +1 -1
  64. package/build/_chunks/{chunk-FJAZ7EJ3.js → chunk-O7HIKQ7N.js} +1 -1
  65. package/build/_chunks/{chunk-N44VXGQ6.js → chunk-OEBS6E4P.js} +1 -1
  66. package/build/_chunks/{chunk-PV7X7SXA.js → chunk-OTASAHHS.js} +1 -1
  67. package/build/_chunks/{chunk-UXF3YGKO.js → chunk-OYCBP3NO.js} +1 -1
  68. package/build/_chunks/{chunk-3IDHJM4W.js → chunk-PAMCEK2Z.js} +1 -1
  69. package/build/_chunks/{chunk-BFYHQH3M.js → chunk-PEWUZVFQ.js} +1 -1
  70. package/build/_chunks/{chunk-KV7RNQIH.js → chunk-PI7HGQH6.js} +1 -1
  71. package/build/_chunks/{chunk-7WCLIUSB.js → chunk-PVNOX3KD.js} +1 -1
  72. package/build/_chunks/{chunk-ODCGP6QY.js → chunk-QKIBXIWE.js} +1 -1
  73. package/build/_chunks/{chunk-3KA5T7WV.js → chunk-QLXDRCB2.js} +1 -1
  74. package/build/_chunks/{chunk-OY6MZ77P.js → chunk-QPZJ3EE6.js} +1 -1
  75. package/build/_chunks/{chunk-GRRMFF24.js → chunk-QWODD2O4.js} +1 -1
  76. package/build/_chunks/{chunk-FU5YS27X.js → chunk-R36USVYC.js} +1 -1
  77. package/build/_chunks/{chunk-JWQBGHVQ.js → chunk-R4CLQAND.js} +1 -1
  78. package/build/_chunks/{chunk-PKTMWSV2.js → chunk-RFD3M7CW.js} +2 -2
  79. package/build/_chunks/{chunk-VXRKCZTT.js → chunk-RM3N2ANR.js} +1 -1
  80. package/build/_chunks/{chunk-6YNVC4FT.js → chunk-RVTPHRL5.js} +1 -1
  81. package/build/_chunks/{chunk-CYFZ7H6K.js → chunk-S3V5LN3R.js} +1 -1
  82. package/build/_chunks/{chunk-53W2AFZS.js → chunk-SLXVC5BZ.js} +1 -1
  83. package/build/_chunks/{chunk-T2EPOEFC.js → chunk-SW3TLEVH.js} +1 -1
  84. package/build/_chunks/chunk-TA2H75QM.js +1 -0
  85. package/build/_chunks/{chunk-JEICZHGL.js → chunk-TAGAUG4S.js} +1 -1
  86. package/build/_chunks/{chunk-XSXVAK62.js → chunk-TB2YZ7LP.js} +1 -1
  87. package/build/_chunks/{chunk-PUDF3MGR.js → chunk-TDBIPBVL.js} +1 -1
  88. package/build/_chunks/{chunk-ICCHS4MG.js → chunk-TQHC2KRQ.js} +1 -1
  89. package/build/_chunks/{chunk-GFRGQBZJ.js → chunk-TVZ4KYAK.js} +1 -1
  90. package/build/_chunks/{chunk-2QZ4IOL5.js → chunk-U7G6HQGZ.js} +1 -1
  91. package/build/_chunks/{chunk-QYS2UNHT.js → chunk-U7GSYBQ6.js} +1 -1
  92. package/build/_chunks/{chunk-BS3YO47L.js → chunk-UCSRFUZJ.js} +1 -1
  93. package/build/_chunks/{chunk-EATPDOU2.js → chunk-UNLMFRDY.js} +1 -1
  94. package/build/_chunks/{chunk-52ZY2SFF.js → chunk-UNLZLJSO.js} +1 -1
  95. package/build/_chunks/{chunk-E3LEQY3P.js → chunk-V626GORU.js} +1 -1
  96. package/build/_chunks/{chunk-PCUBROQH.js → chunk-V7PCTKQ7.js} +1 -1
  97. package/build/_chunks/{chunk-3B6VYVIY.js → chunk-VM6NGNGE.js} +1 -1
  98. package/build/_chunks/{chunk-ZDAQ4LQ3.js → chunk-W655EPN4.js} +1 -1
  99. package/build/_chunks/{chunk-CEYEY7YB.js → chunk-WPALYDTA.js} +1 -1
  100. package/build/_chunks/chunk-WPJUTZYG.js +1 -0
  101. package/build/_chunks/{chunk-L75FKUUD.js → chunk-WSPTOYZR.js} +1 -1
  102. package/build/_chunks/{chunk-4BVFIKDI.js → chunk-WVKSDDWX.js} +1 -1
  103. package/build/_chunks/{chunk-I6TVZZRM.js → chunk-WYHOAFHB.js} +1 -1
  104. package/build/_chunks/{chunk-HID43SDT.js → chunk-XBKOWJ5A.js} +1 -1
  105. package/build/_chunks/{chunk-4EIPPJUA.js → chunk-XWNMWAZF.js} +1 -1
  106. package/build/_chunks/{chunk-A7X2X3UL.js → chunk-Y7LX2PAT.js} +1 -1
  107. package/build/_chunks/{chunk-WAJXXB2B.js → chunk-YNSVHCOF.js} +1 -1
  108. package/build/_chunks/{chunk-WWODNHVW.js → chunk-YZK3GHXU.js} +1 -1
  109. package/build/_chunks/{chunk-SENINKAQ.js → chunk-ZRK6RAJP.js} +1 -1
  110. package/build/_chunks/{chunk-6F7CGNED.js → chunk-ZYQRMV6O.js} +1 -1
  111. package/build/components/Accordion/index.js +1 -1
  112. package/build/components/AccountDropdown/index.js +1 -1
  113. package/build/components/ActionMenu/index.js +1 -1
  114. package/build/components/ActionsDropdownMenu/index.js +1 -1
  115. package/build/components/ActiveFilterChip/index.js +1 -1
  116. package/build/components/ActivityAreaChart/index.js +1 -1
  117. package/build/components/Amount/index.js +1 -1
  118. package/build/components/AmountConversionFilter/index.js +1 -1
  119. package/build/components/AmountInput/index.js +1 -1
  120. package/build/components/AmountSlider/index.js +1 -1
  121. package/build/components/AmountStatusChip/index.js +1 -1
  122. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  123. package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -1
  124. package/build/components/AppServices/index.js +1 -1
  125. package/build/components/AppServicesBar/index.js +1 -1
  126. package/build/components/AppWindowWrapper/index.js +1 -1
  127. package/build/components/AuthenticationTypeChip/index.js +1 -1
  128. package/build/components/Autocomplete/index.js +1 -1
  129. package/build/components/BetaBanner/index.js +1 -1
  130. package/build/components/BrandLogo/index.js +1 -1
  131. package/build/components/Button/index.js +1 -1
  132. package/build/components/Calender/index.js +1 -1
  133. package/build/components/CardEmptyState/index.js +1 -1
  134. package/build/components/Checkbox/index.js +1 -1
  135. package/build/components/Chip/index.js +1 -1
  136. package/build/components/Chip/style.d.ts +1 -1
  137. package/build/components/ChipStack/index.js +1 -1
  138. package/build/components/CircularProgressWithLabel/index.js +1 -1
  139. package/build/components/Collapse/index.js +1 -1
  140. package/build/components/ColorPicker/index.js +1 -1
  141. package/build/components/ColumnViews/index.js +1 -1
  142. package/build/components/ColumnViews/styles.d.ts +1 -1
  143. package/build/components/ConfirmDialog/index.js +1 -1
  144. package/build/components/CopyImage/index.js +1 -1
  145. package/build/components/CountBadge/index.js +1 -1
  146. package/build/components/CountBadge/style.d.ts +1 -1
  147. package/build/components/CountryFilter/index.js +1 -1
  148. package/build/components/CountryFlag/index.js +1 -1
  149. package/build/components/CurrencyAmount/index.js +1 -1
  150. package/build/components/CurrencyFilter/index.js +1 -1
  151. package/build/components/CurrencySymbol/index.js +1 -1
  152. package/build/components/CustomBackdrop/index.js +1 -1
  153. package/build/components/Customer/index.js +1 -1
  154. package/build/components/DateFilter/index.js +1 -1
  155. package/build/components/DeviceIcon/index.js +1 -1
  156. package/build/components/Dialog/index.js +1 -1
  157. package/build/components/Dialog/style.d.ts +1 -1
  158. package/build/components/Discount/index.js +1 -1
  159. package/build/components/DisplayAmount/index.js +1 -1
  160. package/build/components/Dropdown2/index.js +1 -1
  161. package/build/components/DropdownButton/index.js +1 -1
  162. package/build/components/DropdownMenu/index.js +1 -1
  163. package/build/components/Error/index.js +1 -1
  164. package/build/components/ErrorToast/index.js +1 -1
  165. package/build/components/ExpandableSideBar/index.js +1 -1
  166. package/build/components/FieldFeedback/index.js +1 -1
  167. package/build/components/FileInputPreview/index.js +1 -1
  168. package/build/components/FilePreview/index.js +1 -1
  169. package/build/components/FileUpload/index.js +1 -1
  170. package/build/components/FileUploader/index.js +1 -1
  171. package/build/components/FilterDropdown/index.js +1 -1
  172. package/build/components/Filters/index.js +1 -1
  173. package/build/components/FlagDetails/index.js +1 -1
  174. package/build/components/FlippingCard/index.js +1 -1
  175. package/build/components/FlippingCard/style.d.ts +1 -1
  176. package/build/components/HeatMap/index.js +1 -1
  177. package/build/components/IOSSwitch/index.js +1 -1
  178. package/build/components/Icon/index.js +1 -1
  179. package/build/components/IconWithBadge/index.js +1 -1
  180. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -1
  181. package/build/components/Input/index.js +1 -1
  182. package/build/components/InputBase/index.js +1 -1
  183. package/build/components/InputNumber/index.js +1 -1
  184. package/build/components/Inputs/index.js +1 -1
  185. package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +4 -4
  186. package/build/components/JSONViewer/index.js +1 -1
  187. package/build/components/JSONViewer/style.d.ts +2 -2
  188. package/build/components/LanguageDropdown/index.js +1 -1
  189. package/build/components/LazyImage/index.js +1 -1
  190. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  191. package/build/components/LeftPeekRightExpandingChip/style.d.ts +3 -3
  192. package/build/components/ListColumnFilter/index.js +1 -1
  193. package/build/components/ListHeader/index.js +1 -1
  194. package/build/components/ListLayout/index.js +1 -1
  195. package/build/components/Loader/index.js +1 -1
  196. package/build/components/MFWidgetLoader/index.js +1 -1
  197. package/build/components/MaskedText/index.js +1 -1
  198. package/build/components/Menu/index.js +1 -1
  199. package/build/components/MenuItem/index.js +1 -1
  200. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  201. package/build/components/MerchantLogo/index.js +1 -1
  202. package/build/components/MerchantsDropdown/index.js +1 -1
  203. package/build/components/MultiDatakeyDonut/index.js +1 -1
  204. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  205. package/build/components/MultiSelectWithSearch/index.js +1 -1
  206. package/build/components/NestedDropdown/index.js +1 -1
  207. package/build/components/NoInternet/index.js +1 -1
  208. package/build/components/OpenFileInNewTab/index.js +1 -1
  209. package/build/components/PartnersFilter/index.js +1 -1
  210. package/build/components/PaymentSourceFilter/index.js +1 -1
  211. package/build/components/PhoneFilter/index.js +1 -1
  212. package/build/components/ProgressBar/index.js +1 -1
  213. package/build/components/ProgressRing/index.js +1 -1
  214. package/build/components/RFH/index.js +1 -1
  215. package/build/components/RadioButton/index.js +1 -1
  216. package/build/components/RadioGroup/index.js +1 -1
  217. package/build/components/RangeCalender/index.js +1 -1
  218. package/build/components/ReceiptsViewer/index.js +1 -1
  219. package/build/components/ReferenceTypeFilter/index.js +1 -1
  220. package/build/components/ResizableHeightInput/index.js +1 -1
  221. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  222. package/build/components/RightLeftExpandingCenterChip/style.d.ts +13 -13
  223. package/build/components/SalesChannelFilter/index.js +1 -1
  224. package/build/components/ScrollLoader/index.js +1 -1
  225. package/build/components/SearchButton/index.js +1 -1
  226. package/build/components/SearchButton/styles.d.ts +2 -2
  227. package/build/components/SearchListInput/index.js +1 -1
  228. package/build/components/SelectDropdown/index.js +1 -1
  229. package/build/components/SelectWithSearch/index.js +1 -1
  230. package/build/components/SimpleDialog/index.js +1 -1
  231. package/build/components/Skeleton/index.js +1 -1
  232. package/build/components/Slider/index.js +1 -1
  233. package/build/components/StatusBar/index.js +1 -1
  234. package/build/components/StatusButton/index.js +1 -1
  235. package/build/components/StatusChip/index.js +1 -1
  236. package/build/components/StatusChipWithCopy/index.js +1 -1
  237. package/build/components/StatusFilter/index.js +1 -1
  238. package/build/components/StatusGroupChips/index.js +1 -1
  239. package/build/components/StatusIcons/AuthIcons/style.d.ts +2 -2
  240. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -1
  241. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +6 -6
  242. package/build/components/StatusIcons/GeographyIcon/style.d.ts +1 -1
  243. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -1
  244. package/build/components/StatusIcons/index.js +1 -1
  245. package/build/components/StatusLabel/index.js +1 -1
  246. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  247. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +1 -1
  248. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -1
  249. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +2 -2
  250. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +5 -5
  251. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +5 -5
  252. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -1
  253. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -1
  254. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -1
  255. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +5 -5
  256. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -1
  257. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +2 -2
  258. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -1
  259. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -1
  260. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
  261. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +5 -5
  262. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -1
  263. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -1
  264. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +2 -2
  265. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -1
  266. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -1
  267. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -1
  268. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +6 -6
  269. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +5 -5
  270. package/build/components/TableCells/CustomCells/style.d.ts +2 -2
  271. package/build/components/TableCells/index.js +1 -1
  272. package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -1
  273. package/build/components/TableReports/index.js +1 -1
  274. package/build/components/TableReports/style.d.ts +1 -1
  275. package/build/components/Timepicker/index.js +1 -1
  276. package/build/components/Toaster/index.js +1 -1
  277. package/build/components/ToggleButtons/index.js +1 -1
  278. package/build/components/ToggleView/index.js +1 -1
  279. package/build/components/Toolbar/index.js +1 -1
  280. package/build/components/ToolbarIcon/index.js +1 -1
  281. package/build/components/TooltipChip/index.js +1 -1
  282. package/build/components/TreeDropdown/index.js +1 -1
  283. package/build/components/VAT/index.js +1 -1
  284. package/build/components/VerificationIcon/index.js +1 -1
  285. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  286. package/build/components/VirtualTables/components/style.d.ts +1 -1
  287. package/build/components/VirtualTables/index.js +1 -1
  288. package/build/components/Widget/index.js +1 -1
  289. package/build/components/Window/index.js +1 -1
  290. package/build/components/Window/style.d.ts +2 -2
  291. package/build/components/WindowAppIcon/index.js +1 -1
  292. package/build/components/WindowBackdrop/index.js +1 -1
  293. package/build/components/WindowSideBar/index.js +1 -1
  294. package/build/components/_v2/index.js +1 -1
  295. package/build/components/index.js +1 -1
  296. package/build/constants/assets.d.ts +6 -0
  297. package/build/constants/index.js +1 -1
  298. package/build/hooks/index.js +1 -1
  299. package/build/index.js +1 -1
  300. package/build/utils/currency.d.ts +2 -9
  301. package/build/utils/date.d.ts +3 -18
  302. package/build/utils/download.d.ts +11 -1
  303. package/build/utils/geography.d.ts +0 -5
  304. package/build/utils/index.d.ts +0 -8
  305. package/build/utils/index.js +1 -1
  306. package/build/utils/language.d.ts +0 -13
  307. package/build/utils/localStorage.d.ts +1 -8
  308. package/build/utils/navigation.d.ts +1 -13
  309. package/build/utils/number.d.ts +0 -2
  310. package/build/utils/payout.d.ts +0 -32
  311. package/build/utils/string.d.ts +0 -2
  312. package/build/utils/table.d.ts +0 -1
  313. package/package.json +1 -1
  314. package/build/_chunks/chunk-GXKKW3US.js +0 -2
  315. package/build/_chunks/chunk-ITNYA2BL.js +0 -1
  316. package/build/_chunks/chunk-IUXIBZV3.js +0 -2
  317. package/build/_chunks/chunk-LZVIK4HM.js +0 -1
  318. package/build/_chunks/chunk-MEHO7E4N.js +0 -1
  319. package/build/_chunks/chunk-SNYZMQPA.js +0 -1
  320. package/build/_chunks/chunk-ST43DROT.js +0 -2
  321. package/build/_chunks/chunk-TPMYBLI5.js +0 -1
  322. package/build/_chunks/chunk-UIPHUTZL.js +0 -1
  323. package/build/utils/billing.d.ts +0 -39
  324. package/build/utils/day.d.ts +0 -2
  325. package/build/utils/flag.d.ts +0 -21
  326. package/build/utils/merchant.d.ts +0 -3
  327. package/build/utils/url.d.ts +0 -2
@@ -1 +1 @@
1
- import {a as a$4}from'./chunk-ZDAQ4LQ3.js';import {a as a$3}from'./chunk-5CRSRCD3.js';import {j,a as a$5}from'./chunk-VN6QL6H7.js';import {a}from'./chunk-GFRGQBZJ.js';import {a as a$2}from'./chunk-FHJWJ53U.js';import {a as a$1}from'./chunk-JWQBGHVQ.js';import {cd,pd,C}from'./chunk-ST43DROT.js';import {Rc,Sc,Ki,Li,Mi,ac,bc,Ni,an,$b}from'./chunk-IUXIBZV3.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:Sc,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:$b,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]=C();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?ac:bc:e?bc:ac;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=>cd(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:Ni,alt:"icon"}):jsx(A,{}),jsx("img",{src:Li,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:Ni,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(()=>an.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:Ni,alt:"icon"}):jsx(A,{}),jsx("img",{src:Ki,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?Ki:o?.timezone===t.timezone?Li:Mi,[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(${Rc})`}},".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=pd(useId(),"range-calender"),ne=a==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(X(e));}},[y]),useEffect(()=>{if(e){let r=X(e);ke(r),C(r),I.current&&I.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(s??null);},[s,y]);let Re=()=>{ke(x),Y();let r;x[0].dayOfYear===x[1].dayOfYear?r=[x[0],x[1]]:r=[M(x[0]),B(x[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},Ho=useCallback(()=>{let r=w[0].format("MMM D"),G=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===G&&!p?r:`${r} - ${G}`},[w,p]),jo=r=>{if(r.length<2||!m){C(r);return}let G=M(r[0]).toDate(),$o=B(r[1]).toDate(),Ie=Pt($o).diff(G,"day");if(Ie<=m){C(r);return}Ee(true),C([r[0],r[1].subtract(Ie-m,"d")]),setTimeout(()=>{Ee(false);},3e3);},Yo=r=>{C([M(r[0]),B(r[1])]),I.current&&I.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(So,{id:Fo,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(Co,{onClick:Oe,open:y,children:(w[0]||w[1])&&Ho()}),y&&jsx(a$2,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(xt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(bo,{onKeyDown:Go,children:[!l&&jsxs(ko,{children:[jsx(po,{onChange:Yo,isHijri:ne}),jsxs(vo,{children:[u&&jsx(Ve,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(ro,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(mo,{values:x,onChange:jo,isHijri:ne,ref:I,numberOfMonths:n,...Ao}),jsx(Rt,{in:Be&&!!m,children:jsx(a$3,{error:re("dateRangeError",{number:m}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(To,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&i&&Te?jsx(zo,{children:jsx(xo,{onChange:Se,selectedTimezone:ze,browserTimezone:i,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}):jsx("div",{}),new DateObject(x[0]).dayOfYear===new DateObject(x[1]).dayOfYear&&jsx(Io,{values:x,setValues:C}),jsxs(wo,{children:[jsx(ho,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(yo,{variant:"contained",onClick:Re,disabled:!x[1],children:re("okay")})]})]})]})]})})]})}var Lo=At;var xi=Lo;export{xi as a};
1
+ import {a as a$4}from'./chunk-W655EPN4.js';import {a as a$3}from'./chunk-IKCNUHZE.js';import {j,a as a$5}from'./chunk-LZFTHCSQ.js';import {a}from'./chunk-TVZ4KYAK.js';import {a as a$2}from'./chunk-MQUHYQ5I.js';import {a as a$1}from'./chunk-R4CLQAND.js';import {vc,Ic,y}from'./chunk-LGHFABFG.js';import {Rc,Sc,Ki,Li,Mi,ac,bc,Ni,gn,$b}from'./chunk-DSHV2G5D.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:Sc,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:$b,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]=y();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?ac:bc:e?bc:ac;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=>vc(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:Ni,alt:"icon"}):jsx(A,{}),jsx("img",{src:Li,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:Ni,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(()=>gn.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:Ni,alt:"icon"}):jsx(A,{}),jsx("img",{src:Ki,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?Ki:o?.timezone===t.timezone?Li:Mi,[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(${Rc})`}},".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=Ic(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};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-TAGAUG4S.js';var m=a;export{m as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-EATPDOU2.js';import {pd}from'./chunk-ST43DROT.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=pd(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
1
+ import {a}from'./chunk-UNLMFRDY.js';import {Ic}from'./chunk-LGHFABFG.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=Ic(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
@@ -1 +1 @@
1
- import {pd}from'./chunk-ST43DROT.js';import {useId,useMemo}from'react';import {ResponsiveContainer,PieChart,Pie,Cell}from'recharts';import {Box}from'@mui/material';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(Box)(()=>({width:"100%",maxWidth:500,aspectRatio:"1",position:"relative"})),c=styled(Box)(({theme:t})=>({position:"absolute",inset:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pointerEvents:"none",gap:t.spacing(1)})),d=styled(Box)(({theme:t})=>({fontSize:17,fontWeight:700,color:"#CFD0D2"}));var B=({chartData:t,size:l=170,chartInfo:u})=>{let f=pd(useId(),"multi-datakey-donut"),x=useMemo(()=>{let e=t.reduce((n,i)=>n+i.value,0)||1,r=0;return t.map(n=>{let i=r/e*360,C=(r+n.value)/e*360;return r+=n.value,{...n,startAngle:i,endAngle:C}})},[t]),A=t.every(e=>e.value===0);return jsxs(m,{id:f,"data-testid":"MultiDatakeyDonut",sx:{width:l,height:l},children:[jsx(ResponsiveContainer,{children:jsxs(PieChart,{children:[jsx(Pie,{data:[{value:100}],dataKey:"value",cx:"50%",cy:"50%",innerRadius:"70%",outerRadius:"100%",fill:"#E5E7EB",stroke:"none",isAnimationActive:false}),!A&&x.map(e=>jsx(Pie,{data:[e],dataKey:"value",cx:"50%",cy:"50%",innerRadius:"70%",outerRadius:"100%",startAngle:90-e.startAngle,endAngle:90-e.endAngle,cornerRadius:0,stroke:"none",isAnimationActive:true,animationDuration:800,style:{outline:"none"},children:jsx(Cell,{fill:e.color,tabIndex:-1},e.name)},e.name))]})}),jsx(c,{children:u||jsx(d,{children:"----"})})]})};export{B as a};
1
+ import {Ic}from'./chunk-LGHFABFG.js';import {useId,useMemo}from'react';import {ResponsiveContainer,PieChart,Pie,Cell}from'recharts';import {Box}from'@mui/material';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(Box)(()=>({width:"100%",maxWidth:500,aspectRatio:"1",position:"relative"})),c=styled(Box)(({theme:t})=>({position:"absolute",inset:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pointerEvents:"none",gap:t.spacing(1)})),d=styled(Box)(({theme:t})=>({fontSize:17,fontWeight:700,color:"#CFD0D2"}));var B=({chartData:t,size:l=170,chartInfo:u})=>{let f=Ic(useId(),"multi-datakey-donut"),x=useMemo(()=>{let e=t.reduce((n,i)=>n+i.value,0)||1,r=0;return t.map(n=>{let i=r/e*360,C=(r+n.value)/e*360;return r+=n.value,{...n,startAngle:i,endAngle:C}})},[t]),A=t.every(e=>e.value===0);return jsxs(m,{id:f,"data-testid":"MultiDatakeyDonut",sx:{width:l,height:l},children:[jsx(ResponsiveContainer,{children:jsxs(PieChart,{children:[jsx(Pie,{data:[{value:100}],dataKey:"value",cx:"50%",cy:"50%",innerRadius:"70%",outerRadius:"100%",fill:"#E5E7EB",stroke:"none",isAnimationActive:false}),!A&&x.map(e=>jsx(Pie,{data:[e],dataKey:"value",cx:"50%",cy:"50%",innerRadius:"70%",outerRadius:"100%",startAngle:90-e.startAngle,endAngle:90-e.endAngle,cornerRadius:0,stroke:"none",isAnimationActive:true,animationDuration:800,style:{outline:"none"},children:jsx(Cell,{fill:e.color,tabIndex:-1},e.name)},e.name))]})}),jsx(c,{children:u||jsx(d,{children:"----"})})]})};export{B as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-PASL6KWI.js';import {pd}from'./chunk-ST43DROT.js';import {kh,z}from'./chunk-IUXIBZV3.js';import {useId}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var s=styled(a)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),d=styled(g)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var v=({value:o,name:c,placeholder:l,onSearchChange:u,onSearchReset:f,...h})=>{let I=pd(useId(),"search-list-input");return jsx(d,{id:I,"data-testid":"SearchListInput",...h,children:jsx(s,{className:"input",name:c,placeholder:l,onChange:t=>u(t.target.value),onKeyDown:t=>t.stopPropagation(),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(g,{component:"img","data-icon":o?"close":"search",src:o?kh:z,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:f})})})},m=v;var R=m;export{R as a};
1
+ import {a}from'./chunk-5LU54ZBH.js';import {Ic}from'./chunk-LGHFABFG.js';import {kh,z}from'./chunk-DSHV2G5D.js';import {useId}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var s=styled(a)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),d=styled(g)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var v=({value:o,name:c,placeholder:l,onSearchChange:u,onSearchReset:f,...h})=>{let I=Ic(useId(),"search-list-input");return jsx(d,{id:I,"data-testid":"SearchListInput",...h,children:jsx(s,{className:"input",name:c,placeholder:l,onChange:t=>u(t.target.value),onKeyDown:t=>t.stopPropagation(),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(g,{component:"img","data-icon":o?"close":"search",src:o?kh:z,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:f})})})},m=v;var R=m;export{R as a};
@@ -1 +1 @@
1
- import {pd}from'./chunk-ST43DROT.js';import {memo,useId}from'react';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(a)(()=>({flex:1,position:"relative",display:"flex",flexDirection:"column",height:"100%"}));function e({children:p,...r}){let s=pd(useId(),"list-layout");return jsx(o,{id:s,component:"article","data-testid":"ListLayout",...r,children:p})}e.displayName="ListLayout";var i=memo(e);var C=i;export{C as a};
1
+ import {Ic}from'./chunk-LGHFABFG.js';import {memo,useId}from'react';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(a)(()=>({flex:1,position:"relative",display:"flex",flexDirection:"column",height:"100%"}));function e({children:p,...r}){let s=Ic(useId(),"list-layout");return jsx(o,{id:s,component:"article","data-testid":"ListLayout",...r,children:p})}e.displayName="ListLayout";var i=memo(e);var C=i;export{C as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-R4CLQAND.js';import {pc,Ic,H,Qa}from'./chunk-LGHFABFG.js';import {sn}from'./chunk-DSHV2G5D.js';import {useId,useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import L from'dayjs';import V from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var b=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),w=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),K=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),B=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),S=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var W=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===sn.AMOUNT?`${Qa(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),$=(t,i,r=0)=>{let a=L(t).add(r,"hour").format(),n=new Date,e=L(a).isSame(n,"year");return H(a,i?void 0:{sameDay:`[Today] ${e?"":"YYYY"}`,nextDay:`[Tomorrow] ${e?"":"YYYY"}`,lastDay:`[Yesterday] ${e?"":"YYYY"}`,sameElse:`MMM DD ${e?"":", YYYY"}`,lastWeek:`MMM DD ${e?"":", YYYY"}`,nextWeek:`MMM DD ${e?"":", YYYY"}`},void 0,void 0,r!==void 0)};var G=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),e=L(r?.[0]),l=L(r?.[1]),f=e?.isSame(l,"day");if(t&&i?.length){let o=i[0],m=pc(o?.dataKey,o?.value),y=o?.payload?.date&&$(o?.payload?.date,f,o?.payload?.hour);return jsxs(b,{className:"chart-tooltip",children:[jsx(w,{children:y??o?.payload?.date}),jsxs(K,{children:[o?.dataKey===sn.AMOUNT&&jsxs(B,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(S,{children:a$1})]}),jsx(V,{children:`${W(o,n(m),a$1)}`})]})]})}return null},x=G;var _=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],q=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:_,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=q;var rt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let e=Ic(useId(),"activity-area-chart"),l=useTheme(),[f,o]=useState(false),[m,y]=useState({x:0,y:0}),I=t?.length===0,O=h=>{h.activeCoordinate&&h.isTooltipActive&&y(h.activeCoordinate);},R=useMemo(()=>jsx(x,{position:m,dateRange:a,selectedCurrency:n}),[m,a,n]);return r||I?jsx(T,{}):jsx(ResponsiveContainer,{id:e,"data-testid":"ActivityAreaChart",children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:O,children:[t.length>0&&jsx(Tooltip,{content:R,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:l.palette.success.dark,activeDot:{r:5,fill:l.palette.success.dark,strokeWidth:2,stroke:"white",cursor:f?"pointer":"default",onMouseOver:()=>o(true),onMouseLeave:()=>o(false)}})]})})},P=rt;var Ft=P;export{x as a,T as b,Ft as c};