@tap-payments/os-micro-frontend-shared 0.3.36 → 0.3.38

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 (245) hide show
  1. package/build/_chunks/{chunk-5H7WMTMR.js → chunk-2ZQWIYKE.js} +1 -1
  2. package/build/_chunks/{chunk-I5KEW75Q.js → chunk-44OIHCXG.js} +1 -1
  3. package/build/_chunks/{chunk-RQS3IG3X.js → chunk-4IN4MNIL.js} +1 -1
  4. package/build/_chunks/{chunk-U6FHSFDK.js → chunk-4METKSOV.js} +1 -1
  5. package/build/_chunks/{chunk-4CO35TOY.js → chunk-4N5L3C7E.js} +1 -1
  6. package/build/_chunks/{chunk-PC45PNLX.js → chunk-55Y5JZSW.js} +1 -1
  7. package/build/_chunks/{chunk-L3H7ON2F.js → chunk-5CVP7UHB.js} +1 -1
  8. package/build/_chunks/{chunk-G2OWSFMR.js → chunk-6HPHRTSG.js} +1 -1
  9. package/build/_chunks/{chunk-DRCLG5VT.js → chunk-6TBC5ZFW.js} +1 -1
  10. package/build/_chunks/{chunk-5JBBLGV3.js → chunk-6YBJRXXJ.js} +1 -1
  11. package/build/_chunks/{chunk-K26V7ISU.js → chunk-7B2FRRRI.js} +1 -1
  12. package/build/_chunks/{chunk-HE3FMLQY.js → chunk-7ECPGY56.js} +1 -1
  13. package/build/_chunks/{chunk-BK4QE2XY.js → chunk-7Q5JHJMB.js} +1 -1
  14. package/build/_chunks/{chunk-IN4TI6C5.js → chunk-A5BRE7MI.js} +1 -1
  15. package/build/_chunks/{chunk-ELKH5INT.js → chunk-A7BYIGKD.js} +1 -1
  16. package/build/_chunks/{chunk-AXVYPNDS.js → chunk-A7IDM5R6.js} +1 -1
  17. package/build/_chunks/{chunk-S3WB7BAM.js → chunk-AEF4XWQU.js} +1 -1
  18. package/build/_chunks/{chunk-GONBJ7T4.js → chunk-AG7327OT.js} +1 -1
  19. package/build/_chunks/{chunk-7LQ7FNTX.js → chunk-AHKZYNFC.js} +1 -1
  20. package/build/_chunks/{chunk-EUJTQSJL.js → chunk-AJVZK5T5.js} +1 -1
  21. package/build/_chunks/{chunk-OIVTFRJE.js → chunk-ATSYOVOS.js} +1 -1
  22. package/build/_chunks/{chunk-BPMC6UFW.js → chunk-AW3ILDEO.js} +1 -1
  23. package/build/_chunks/{chunk-4GLLOAFY.js → chunk-AWJMELRN.js} +1 -1
  24. package/build/_chunks/{chunk-SWILNQW4.js → chunk-BIRJZLQQ.js} +1 -1
  25. package/build/_chunks/{chunk-IQ2H33GE.js → chunk-C2E6BXXL.js} +1 -1
  26. package/build/_chunks/{chunk-WVGNLRZQ.js → chunk-COAYA7GT.js} +1 -1
  27. package/build/_chunks/{chunk-BJ3Z2WFR.js → chunk-CW3PX3MJ.js} +1 -1
  28. package/build/_chunks/{chunk-E6LKOOFL.js → chunk-D6CBA46N.js} +1 -1
  29. package/build/_chunks/{chunk-6X7LS7KK.js → chunk-DHR22HF5.js} +1 -1
  30. package/build/_chunks/{chunk-HQI3NKYJ.js → chunk-DIFTS5M3.js} +1 -1
  31. package/build/_chunks/{chunk-TZFVDVTZ.js → chunk-DU4WILJE.js} +1 -1
  32. package/build/_chunks/{chunk-DU6IKIQE.js → chunk-DWELXSQ2.js} +1 -1
  33. package/build/_chunks/{chunk-JDGHZNKY.js → chunk-DWEUYV7O.js} +1 -1
  34. package/build/_chunks/{chunk-P7ECTYML.js → chunk-E35LKQ6G.js} +1 -1
  35. package/build/_chunks/{chunk-DNNN35L5.js → chunk-EE7K4JK2.js} +1 -1
  36. package/build/_chunks/{chunk-UK456O6R.js → chunk-EGGEELUP.js} +1 -1
  37. package/build/_chunks/{chunk-G4YDGHDJ.js → chunk-EGIAXPM6.js} +1 -1
  38. package/build/_chunks/{chunk-6KXK4BO7.js → chunk-EMXCLBWT.js} +1 -1
  39. package/build/_chunks/{chunk-J35OWNMC.js → chunk-ER66NQ2X.js} +1 -1
  40. package/build/_chunks/{chunk-HTHM56FJ.js → chunk-EVDEPVIW.js} +1 -1
  41. package/build/_chunks/{chunk-5LUJKHHC.js → chunk-EVJ7I7KT.js} +1 -1
  42. package/build/_chunks/{chunk-ZI75N7BZ.js → chunk-EWAOFKBQ.js} +1 -1
  43. package/build/_chunks/{chunk-B6Q43W42.js → chunk-F5A4P7NM.js} +1 -1
  44. package/build/_chunks/{chunk-MFCHF5BK.js → chunk-F5YEURPO.js} +1 -1
  45. package/build/_chunks/{chunk-LUU7CTOO.js → chunk-FIXHFGQM.js} +1 -1
  46. package/build/_chunks/{chunk-I6PM7KFE.js → chunk-FJNBLAP6.js} +1 -1
  47. package/build/_chunks/{chunk-XJEXIR7N.js → chunk-FLYJ436H.js} +1 -1
  48. package/build/_chunks/{chunk-DQVP4KZV.js → chunk-GKHOITZE.js} +1 -1
  49. package/build/_chunks/{chunk-5ARDDYXJ.js → chunk-HC7WHE7M.js} +1 -1
  50. package/build/_chunks/{chunk-PK3VKOBG.js → chunk-HCO2FZKF.js} +1 -1
  51. package/build/_chunks/{chunk-P2M3F4LT.js → chunk-HJFHOPWU.js} +1 -1
  52. package/build/_chunks/{chunk-AJB47VOM.js → chunk-I7BXAQZS.js} +1 -1
  53. package/build/_chunks/{chunk-6AYUI5GV.js → chunk-ITRIODTY.js} +1 -1
  54. package/build/_chunks/{chunk-MOUYRKQ3.js → chunk-J2VRPJRB.js} +1 -1
  55. package/build/_chunks/{chunk-4VFSZWB2.js → chunk-JKOFVMQP.js} +1 -1
  56. package/build/_chunks/{chunk-LK32TVZ3.js → chunk-JM7JGI5D.js} +1 -1
  57. package/build/_chunks/{chunk-L5JCONCT.js → chunk-JPSWQQN6.js} +1 -1
  58. package/build/_chunks/{chunk-QFXOBSXW.js → chunk-KLJYL5XA.js} +1 -1
  59. package/build/_chunks/{chunk-KZBOCKP5.js → chunk-KNP2Q2XT.js} +1 -1
  60. package/build/_chunks/{chunk-B76YFNBT.js → chunk-L5W3FQGI.js} +1 -1
  61. package/build/_chunks/{chunk-UB7HUWAQ.js → chunk-L7KNDQIN.js} +1 -1
  62. package/build/_chunks/{chunk-OUERY42D.js → chunk-LQCRTVTV.js} +1 -1
  63. package/build/_chunks/{chunk-WWQP6V2S.js → chunk-LYEN4LAJ.js} +1 -1
  64. package/build/_chunks/{chunk-AC4KAKGY.js → chunk-MEWGN3RQ.js} +1 -1
  65. package/build/_chunks/{chunk-2I5NAVTK.js → chunk-MH3PHXU4.js} +1 -1
  66. package/build/_chunks/{chunk-IUCNIU4U.js → chunk-MIZ2W4YF.js} +1 -1
  67. package/build/_chunks/{chunk-ZNSKASYS.js → chunk-MW3TIUDF.js} +1 -1
  68. package/build/_chunks/{chunk-ZVG6L7OA.js → chunk-NCB4ZE2Q.js} +1 -1
  69. package/build/_chunks/{chunk-CFYVC5K6.js → chunk-NUB35BS5.js} +1 -1
  70. package/build/_chunks/{chunk-5T3HOXFP.js → chunk-OP35J26Q.js} +1 -1
  71. package/build/_chunks/{chunk-2AVUNWTY.js → chunk-OTQLFUDS.js} +1 -1
  72. package/build/_chunks/{chunk-BYJ2XLTW.js → chunk-P37RYOJW.js} +1 -1
  73. package/build/_chunks/{chunk-XBFQH3GZ.js → chunk-P4TQ24MF.js} +1 -1
  74. package/build/_chunks/{chunk-5FY5WEAA.js → chunk-PB3ZRY6U.js} +1 -1
  75. package/build/_chunks/{chunk-MN5KDIJ4.js → chunk-PKN6JRU3.js} +1 -1
  76. package/build/_chunks/{chunk-PYS2U3OD.js → chunk-PRALNONH.js} +1 -1
  77. package/build/_chunks/{chunk-4A4VJPND.js → chunk-PWN3QZBX.js} +1 -1
  78. package/build/_chunks/{chunk-PPEV33QB.js → chunk-QRIVUSHJ.js} +1 -1
  79. package/build/_chunks/{chunk-VSVZKK4J.js → chunk-QVU7E6R3.js} +1 -1
  80. package/build/_chunks/{chunk-A4HTULOP.js → chunk-R5LCSECF.js} +1 -1
  81. package/build/_chunks/{chunk-ZCJKWR2O.js → chunk-RENOZ7NM.js} +1 -1
  82. package/build/_chunks/{chunk-JDWCL7GJ.js → chunk-SNEXYGFV.js} +1 -1
  83. package/build/_chunks/{chunk-HBEH35LA.js → chunk-SOJRPME6.js} +1 -1
  84. package/build/_chunks/{chunk-KKIMVGFE.js → chunk-U3KQLP32.js} +1 -1
  85. package/build/_chunks/{chunk-PHN2UNJA.js → chunk-UC66CU45.js} +1 -1
  86. package/build/_chunks/{chunk-BDKEJBMX.js → chunk-UDTRZUQL.js} +1 -1
  87. package/build/_chunks/{chunk-GVNRRGWG.js → chunk-UHUT65RB.js} +1 -1
  88. package/build/_chunks/{chunk-KRGJ5FIM.js → chunk-V4REQ4ZP.js} +1 -1
  89. package/build/_chunks/{chunk-LVM3MTOA.js → chunk-V5UEYSM5.js} +1 -1
  90. package/build/_chunks/{chunk-KSPGIGIC.js → chunk-VBDBPJ6A.js} +1 -1
  91. package/build/_chunks/{chunk-ESJCK6HW.js → chunk-VRAGDMAQ.js} +1 -1
  92. package/build/_chunks/{chunk-27NBJWWB.js → chunk-VRMS7VG4.js} +1 -1
  93. package/build/_chunks/{chunk-ORXU3VCN.js → chunk-WH457HQP.js} +1 -1
  94. package/build/_chunks/{chunk-XLWWA6CJ.js → chunk-WL4B2ZSK.js} +1 -1
  95. package/build/_chunks/{chunk-WDGLJVOT.js → chunk-WPGDLFWS.js} +1 -1
  96. package/build/_chunks/{chunk-LWXV6NHK.js → chunk-WS7EHNFE.js} +1 -1
  97. package/build/_chunks/{chunk-VW75KIKI.js → chunk-X6OKY5JJ.js} +1 -1
  98. package/build/_chunks/{chunk-SFEYZ6UC.js → chunk-X774JJV4.js} +1 -1
  99. package/build/_chunks/{chunk-FCBDFBYS.js → chunk-XUOSECWP.js} +1 -1
  100. package/build/_chunks/{chunk-6DR4DXYQ.js → chunk-YWMPDGZ3.js} +1 -1
  101. package/build/_chunks/{chunk-6Q3JVULI.js → chunk-ZDUBBHB5.js} +1 -1
  102. package/build/_chunks/{chunk-BW4IWQUI.js → chunk-ZHXCRQM2.js} +1 -1
  103. package/build/_chunks/{chunk-IG2EYCRZ.js → chunk-ZONG4FCE.js} +1 -1
  104. package/build/_chunks/chunk-ZXAC3YAM.js +1 -0
  105. package/build/components/Accordion/index.js +1 -1
  106. package/build/components/AccountDropdown/index.js +1 -1
  107. package/build/components/ActionMenu/index.js +1 -1
  108. package/build/components/ActionsDropdownMenu/index.js +1 -1
  109. package/build/components/ActiveFilterChip/index.js +1 -1
  110. package/build/components/ActivityAreaChart/index.js +1 -1
  111. package/build/components/Amount/index.js +1 -1
  112. package/build/components/AmountConversionFilter/index.js +1 -1
  113. package/build/components/AmountInput/index.js +1 -1
  114. package/build/components/AmountSlider/index.js +1 -1
  115. package/build/components/AmountStatusChip/index.js +1 -1
  116. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  117. package/build/components/AppServices/index.js +1 -1
  118. package/build/components/AppServicesBar/index.js +1 -1
  119. package/build/components/AppWindowWrapper/index.js +1 -1
  120. package/build/components/AuthenticationTypeChip/index.js +1 -1
  121. package/build/components/Autocomplete/index.js +1 -1
  122. package/build/components/BetaBanner/index.js +1 -1
  123. package/build/components/BrandLogo/index.js +1 -1
  124. package/build/components/Button/index.js +1 -1
  125. package/build/components/Calender/index.js +1 -1
  126. package/build/components/CardEmptyState/index.js +1 -1
  127. package/build/components/Checkbox/index.js +1 -1
  128. package/build/components/Chip/index.js +1 -1
  129. package/build/components/ChipStack/index.js +1 -1
  130. package/build/components/CircularProgressWithLabel/index.js +1 -1
  131. package/build/components/Collapse/index.js +1 -1
  132. package/build/components/ColorPicker/index.js +1 -1
  133. package/build/components/ColumnViews/index.js +1 -1
  134. package/build/components/ConfirmDialog/index.js +1 -1
  135. package/build/components/CopyImage/index.js +1 -1
  136. package/build/components/CountBadge/index.js +1 -1
  137. package/build/components/CountryFilter/index.js +1 -1
  138. package/build/components/CountryFlag/index.js +1 -1
  139. package/build/components/CurrencyAmount/index.js +1 -1
  140. package/build/components/CurrencyFilter/index.js +1 -1
  141. package/build/components/CurrencySymbol/index.js +1 -1
  142. package/build/components/CustomBackdrop/index.js +1 -1
  143. package/build/components/Customer/index.js +1 -1
  144. package/build/components/DateFilter/index.js +1 -1
  145. package/build/components/DeviceIcon/index.js +1 -1
  146. package/build/components/Dialog/index.js +1 -1
  147. package/build/components/Discount/index.js +1 -1
  148. package/build/components/DisplayAmount/index.js +1 -1
  149. package/build/components/Dropdown2/index.js +1 -1
  150. package/build/components/DropdownButton/index.js +1 -1
  151. package/build/components/DropdownMenu/index.js +1 -1
  152. package/build/components/Error/index.js +1 -1
  153. package/build/components/ErrorToast/index.js +1 -1
  154. package/build/components/ExpandableSideBar/index.js +1 -1
  155. package/build/components/FieldFeedback/index.js +1 -1
  156. package/build/components/FileInputPreview/index.js +1 -1
  157. package/build/components/FilePreview/index.js +1 -1
  158. package/build/components/FileUpload/index.js +1 -1
  159. package/build/components/FileUploader/index.js +1 -1
  160. package/build/components/FilterDropdown/index.js +1 -1
  161. package/build/components/Filters/index.js +1 -1
  162. package/build/components/FlagDetails/index.js +1 -1
  163. package/build/components/FlippingCard/index.js +1 -1
  164. package/build/components/HeatMap/index.js +1 -1
  165. package/build/components/IOSSwitch/index.js +1 -1
  166. package/build/components/Icon/index.js +1 -1
  167. package/build/components/IconWithBadge/index.js +1 -1
  168. package/build/components/Input/index.js +1 -1
  169. package/build/components/InputBase/index.js +1 -1
  170. package/build/components/InputNumber/index.js +1 -1
  171. package/build/components/Inputs/index.js +1 -1
  172. package/build/components/JSONViewer/index.js +1 -1
  173. package/build/components/LanguageDropdown/index.js +1 -1
  174. package/build/components/LazyImage/index.js +1 -1
  175. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  176. package/build/components/ListColumnFilter/index.js +1 -1
  177. package/build/components/ListHeader/index.js +1 -1
  178. package/build/components/ListLayout/index.js +1 -1
  179. package/build/components/Loader/index.js +1 -1
  180. package/build/components/MFWidgetLoader/index.js +1 -1
  181. package/build/components/MaskedText/index.js +1 -1
  182. package/build/components/Menu/index.js +1 -1
  183. package/build/components/MenuItem/index.js +1 -1
  184. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  185. package/build/components/MerchantLogo/index.js +1 -1
  186. package/build/components/MerchantsDropdown/index.js +1 -1
  187. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  188. package/build/components/MultiSelectWithSearch/index.js +1 -1
  189. package/build/components/NestedDropdown/index.js +1 -1
  190. package/build/components/NoInternet/index.js +1 -1
  191. package/build/components/OpenFileInNewTab/index.js +1 -1
  192. package/build/components/PartnersFilter/index.js +1 -1
  193. package/build/components/PaymentSourceFilter/index.js +1 -1
  194. package/build/components/PhoneFilter/index.js +1 -1
  195. package/build/components/ProgressBar/index.js +1 -1
  196. package/build/components/ProgressRing/index.js +1 -1
  197. package/build/components/RFH/index.js +1 -1
  198. package/build/components/RadioButton/index.js +1 -1
  199. package/build/components/RadioGroup/index.js +1 -1
  200. package/build/components/RangeCalender/index.js +1 -1
  201. package/build/components/ReceiptsViewer/index.js +1 -1
  202. package/build/components/ReferenceTypeFilter/index.js +1 -1
  203. package/build/components/ResizableHeightInput/index.js +1 -1
  204. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  205. package/build/components/SalesChannelFilter/index.js +1 -1
  206. package/build/components/ScrollLoader/index.js +1 -1
  207. package/build/components/SearchButton/index.js +1 -1
  208. package/build/components/SearchListInput/index.js +1 -1
  209. package/build/components/SelectDropdown/index.js +1 -1
  210. package/build/components/SelectWithSearch/index.js +1 -1
  211. package/build/components/SimpleDialog/index.js +1 -1
  212. package/build/components/Skeleton/index.js +1 -1
  213. package/build/components/Slider/index.js +1 -1
  214. package/build/components/StatusBar/index.js +1 -1
  215. package/build/components/StatusButton/index.js +1 -1
  216. package/build/components/StatusChip/index.js +1 -1
  217. package/build/components/StatusChipWithCopy/index.js +1 -1
  218. package/build/components/StatusFilter/index.js +1 -1
  219. package/build/components/StatusGroupChips/index.js +1 -1
  220. package/build/components/StatusIcons/index.js +1 -1
  221. package/build/components/StatusLabel/index.js +1 -1
  222. package/build/components/TableCells/index.js +1 -1
  223. package/build/components/TableReports/index.js +1 -1
  224. package/build/components/Timepicker/index.js +1 -1
  225. package/build/components/ToggleButtons/index.js +1 -1
  226. package/build/components/ToggleView/index.js +1 -1
  227. package/build/components/Toolbar/index.js +1 -1
  228. package/build/components/TooltipChip/index.js +1 -1
  229. package/build/components/TreeDropdown/index.js +1 -1
  230. package/build/components/VAT/index.js +1 -1
  231. package/build/components/VerificationIcon/index.js +1 -1
  232. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  233. package/build/components/VirtualTables/index.js +1 -1
  234. package/build/components/Widget/index.js +1 -1
  235. package/build/components/WindowAppIcon/index.js +1 -1
  236. package/build/components/WindowBackdrop/index.js +1 -1
  237. package/build/components/WindowSideBar/index.js +1 -1
  238. package/build/components/_v2/index.js +1 -1
  239. package/build/components/index.js +1 -1
  240. package/build/hooks/index.js +1 -1
  241. package/build/index.js +1 -1
  242. package/build/utils/date.d.ts +5 -2
  243. package/build/utils/index.js +1 -1
  244. package/package.json +1 -1
  245. package/build/_chunks/chunk-PSRI6U2B.js +0 -1
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-PPEV33QB.js';import {a as a$3}from'./chunk-5FY5WEAA.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-HQI3NKYJ.js';import {Jc}from'./chunk-OIVTFRJE.js';import {Nc}from'./chunk-3JUTMTQV.js';import {useId,useState,useCallback,useMemo,createElement}from'react';import c from'@mui/material/Box';import ne from'@mui/material/Typography';import O from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import ee from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var xe=styled(a)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"})),fe=styled(a)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200})),Se=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),D=styled(O)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}})),ge=styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}})),F=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),Ce=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),Ie=styled(c)(({theme:e})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),g=styled(a)(({theme:e,selected:n})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...n&&{backgroundColor:"#F8F8F8"}}));var te="M4.83332 0C2.16987 0 0 2.16988 0 4.83334C0 7.4968 2.16987 9.66668 4.83332 9.66668C5.98544 9.66668 7.04455 9.2597 7.87628 8.58335L11.1465 11.8535C11.1925 11.9015 11.2477 11.9398 11.3088 11.9662C11.3698 11.9926 11.4356 12.0066 11.5021 12.0072C11.5686 12.0079 11.6346 11.9953 11.6962 11.9702C11.7578 11.945 11.8137 11.9078 11.8607 11.8608C11.9078 11.8138 11.945 11.7578 11.9701 11.6962C11.9953 11.6346 12.0079 11.5686 12.0072 11.5021C12.0065 11.4356 11.9926 11.3699 11.9662 11.3088C11.9398 11.2478 11.9015 11.1926 11.8535 11.1465L8.58331 7.87632C9.25966 7.04458 9.66664 5.98546 9.66664 4.83334C9.66664 2.16988 7.49677 0 4.83332 0ZM4.83332 1C6.95633 1 8.66665 2.71032 8.66665 4.83334C8.66665 5.86755 8.25871 6.80192 7.59699 7.49025C7.5562 7.52023 7.5202 7.55623 7.49022 7.59702C6.80189 8.25875 5.86752 8.66668 4.83332 8.66668C2.71031 8.66668 0.999997 6.95636 0.999997 4.83334C0.999997 2.71032 2.71031 1 4.83332 1Z";function oe({size:e=12,sx:n,className:r,...d}){return jsx(ee,{viewBox:"0 0 12 12",inheritViewBox:true,className:`${r??""} MUISvgIcon__search-icon`,sx:{width:e,height:e,color:"text.primary",...n},...d,children:jsx("path",{d:te,fill:"currentColor"})})}var N=oe;function pe({options:e,onChangeOption:n,selectedOption:r,placeholder:d,label:A,isLoading:R,renderOption:C,iconUrl:h,disabled:u,onClearValue:m,slotProps:V={},hideSelectedCheckmark:$,listWrapperSx:Z={},name:U,...q}){let G=Jc(useId(),"select-with-search"),{selectInput:I={},searchInput:J={},dropdownContainer:v={},item:b={}}=V,[w,y]=useState(null),[a,x]=useState(""),K=useCallback(()=>{m!==void 0?m():n(null);},[m,n]),f=!!w,Q=t=>{u||y(f?null:t.currentTarget);},S=()=>{y(null),x("");},X=R?jsx(CircularProgress,{size:16}):jsx(N,{onClick:()=>{a&&x("");},role:"button"}),W=useMemo(()=>a?e.filter(t=>{let p=t?.label?.toLowerCase(),j=t?.value?.toLowerCase();return p?.includes(a.toLowerCase())||j?.includes(a.toLowerCase())}):e,[e,a]),Y=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:h,alt:"icon",sx:{maxWidth:12,height:12}})}),[h]);return jsx(a$2,{id:G,"data-testid":"SelectWithSearch",disabled:u,open:f,anchorEl:w,onOpen:Q,onClose:S,hasValue:!!r?.value,onClear:K,trigger:jsx(a$3,{className:"SelectWithSearch_input",name:U,placeholder:"Please Select",label:A,sx:{cursor:"pointer"},value:r?.label||"",InputLabelProps:{filled:!!r?.label},disabled:u,...I,InputProps:{readOnly:true,disableUnderline:true,...!!h&&{startAdornment:Y},...I.InputProps}}),listWrapperSx:{height:"100%",overflow:"hidden",...Z},slotProps:{popover:{slotProps:{paper:{sx:{overflow:"hidden"}}}}},...q,children:jsxs(F,{...v,className:`SelectWithSearch_container ${v?.className??""}`,children:[jsx(D,{className:"SelectWithSearch_input",placeholder:d||"Select",endAdornment:X,onClick:t=>{t.stopPropagation();},value:a,onChange:t=>{x(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...e.length&&{marginBottom:"4px"},...a&&{cursor:"pointer"}},...J}),jsxs(c,{className:"SelectWithSearch_options",overflow:"auto",maxHeight:400,children:[W.length===0&&a&&jsx(g,{selected:false,...b,children:jsx(ne,{component:"span",fontSize:"10px",fontWeight:500,color:"#8D8D94",children:"No results found"})}),W.map(t=>C?C(t,{closeDropdown:S,open:f}):createElement(g,{...b,className:`SelectWithSearch_item ${r?.value===t.value?"SelectWithSearch_item-selected":""}`,key:t.value,selected:r?.value===t.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),r?.value===t.value?n(null):n(t),S();}},jsx("span",{children:t.label}),!$&&r?.value===t?.value&&jsx(c,{component:"img",src:Nc,alt:"close",sx:{width:10,height:7.5}})))]})]})})}var H=pe;var Ve=H;export{xe as a,fe as b,Se as c,D as d,ge as e,F as f,Ce as g,Ie as h,g as i,Ve as j};
1
+ import {a as a$2}from'./chunk-QRIVUSHJ.js';import {a as a$3}from'./chunk-PB3ZRY6U.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-DIFTS5M3.js';import {Jc}from'./chunk-ATSYOVOS.js';import {Nc}from'./chunk-3JUTMTQV.js';import {useId,useState,useCallback,useMemo,createElement}from'react';import c from'@mui/material/Box';import ne from'@mui/material/Typography';import O from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import ee from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var xe=styled(a)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"})),fe=styled(a)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200})),Se=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),D=styled(O)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}})),ge=styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}})),F=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),Ce=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),Ie=styled(c)(({theme:e})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),g=styled(a)(({theme:e,selected:n})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...n&&{backgroundColor:"#F8F8F8"}}));var te="M4.83332 0C2.16987 0 0 2.16988 0 4.83334C0 7.4968 2.16987 9.66668 4.83332 9.66668C5.98544 9.66668 7.04455 9.2597 7.87628 8.58335L11.1465 11.8535C11.1925 11.9015 11.2477 11.9398 11.3088 11.9662C11.3698 11.9926 11.4356 12.0066 11.5021 12.0072C11.5686 12.0079 11.6346 11.9953 11.6962 11.9702C11.7578 11.945 11.8137 11.9078 11.8607 11.8608C11.9078 11.8138 11.945 11.7578 11.9701 11.6962C11.9953 11.6346 12.0079 11.5686 12.0072 11.5021C12.0065 11.4356 11.9926 11.3699 11.9662 11.3088C11.9398 11.2478 11.9015 11.1926 11.8535 11.1465L8.58331 7.87632C9.25966 7.04458 9.66664 5.98546 9.66664 4.83334C9.66664 2.16988 7.49677 0 4.83332 0ZM4.83332 1C6.95633 1 8.66665 2.71032 8.66665 4.83334C8.66665 5.86755 8.25871 6.80192 7.59699 7.49025C7.5562 7.52023 7.5202 7.55623 7.49022 7.59702C6.80189 8.25875 5.86752 8.66668 4.83332 8.66668C2.71031 8.66668 0.999997 6.95636 0.999997 4.83334C0.999997 2.71032 2.71031 1 4.83332 1Z";function oe({size:e=12,sx:n,className:r,...d}){return jsx(ee,{viewBox:"0 0 12 12",inheritViewBox:true,className:`${r??""} MUISvgIcon__search-icon`,sx:{width:e,height:e,color:"text.primary",...n},...d,children:jsx("path",{d:te,fill:"currentColor"})})}var N=oe;function pe({options:e,onChangeOption:n,selectedOption:r,placeholder:d,label:A,isLoading:R,renderOption:C,iconUrl:h,disabled:u,onClearValue:m,slotProps:V={},hideSelectedCheckmark:$,listWrapperSx:Z={},name:U,...q}){let G=Jc(useId(),"select-with-search"),{selectInput:I={},searchInput:J={},dropdownContainer:v={},item:b={}}=V,[w,y]=useState(null),[a,x]=useState(""),K=useCallback(()=>{m!==void 0?m():n(null);},[m,n]),f=!!w,Q=t=>{u||y(f?null:t.currentTarget);},S=()=>{y(null),x("");},X=R?jsx(CircularProgress,{size:16}):jsx(N,{onClick:()=>{a&&x("");},role:"button"}),W=useMemo(()=>a?e.filter(t=>{let p=t?.label?.toLowerCase(),j=t?.value?.toLowerCase();return p?.includes(a.toLowerCase())||j?.includes(a.toLowerCase())}):e,[e,a]),Y=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:h,alt:"icon",sx:{maxWidth:12,height:12}})}),[h]);return jsx(a$2,{id:G,"data-testid":"SelectWithSearch",disabled:u,open:f,anchorEl:w,onOpen:Q,onClose:S,hasValue:!!r?.value,onClear:K,trigger:jsx(a$3,{className:"SelectWithSearch_input",name:U,placeholder:"Please Select",label:A,sx:{cursor:"pointer"},value:r?.label||"",InputLabelProps:{filled:!!r?.label},disabled:u,...I,InputProps:{readOnly:true,disableUnderline:true,...!!h&&{startAdornment:Y},...I.InputProps}}),listWrapperSx:{height:"100%",overflow:"hidden",...Z},slotProps:{popover:{slotProps:{paper:{sx:{overflow:"hidden"}}}}},...q,children:jsxs(F,{...v,className:`SelectWithSearch_container ${v?.className??""}`,children:[jsx(D,{className:"SelectWithSearch_input",placeholder:d||"Select",endAdornment:X,onClick:t=>{t.stopPropagation();},value:a,onChange:t=>{x(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...e.length&&{marginBottom:"4px"},...a&&{cursor:"pointer"}},...J}),jsxs(c,{className:"SelectWithSearch_options",overflow:"auto",maxHeight:400,children:[W.length===0&&a&&jsx(g,{selected:false,...b,children:jsx(ne,{component:"span",fontSize:"10px",fontWeight:500,color:"#8D8D94",children:"No results found"})}),W.map(t=>C?C(t,{closeDropdown:S,open:f}):createElement(g,{...b,className:`SelectWithSearch_item ${r?.value===t.value?"SelectWithSearch_item-selected":""}`,key:t.value,selected:r?.value===t.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),r?.value===t.value?n(null):n(t),S();}},jsx("span",{children:t.label}),!$&&r?.value===t?.value&&jsx(c,{component:"img",src:Nc,alt:"close",sx:{width:10,height:7.5}})))]})]})})}var H=pe;var Ve=H;export{xe as a,fe as b,Se as c,D as d,ge as e,F as f,Ce as g,Ie as h,g as i,Ve as j};
@@ -1 +1 @@
1
- import {f,b as b$3,g,a as a$3,e as e$1,d,c as c$1}from'./chunk-GH7TAMPJ.js';import {a as a$2}from'./chunk-ZI75N7BZ.js';import {c}from'./chunk-KSPGIGIC.js';import {o,j,k as k$1,l,p}from'./chunk-SWILNQW4.js';import {b as b$2}from'./chunk-BYJ2XLTW.js';import {b as b$1,e,d as d$1}from'./chunk-P7ECTYML.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a as a$4}from'./chunk-4VFSZWB2.js';import {eb,fb,cb,Jc,Qa,Ra,nc,q}from'./chunk-OIVTFRJE.js';import {T,ph,rh,qh,oh,vh,Vf,Mf,Uf,Ii,Ji,rb,Zi,aj,_i,rj,Lm,sb,ta,sa,jj,h,Lf}from'./chunk-3JUTMTQV.js';import {a,b}from'./chunk-YRT7GXGY.js';import {useId,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {styled,Box,useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion}from'framer-motion';import {styled as styled$1,useTheme as useTheme$1}from'@mui/material/styles';import cr from'@mui/material/Box';var V=a((Sa,Ve)=>{var Xo=eb(),Qo=fb(),Yo=Qo(function(t,e,o){return e=e.toLowerCase(),t+(o?Xo(e):e)});Ve.exports=Yo;});var ct={ORDER:{label:"order",icon:oh,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:qh,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:rh,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:ph,color:"#32ADE6"}},mt={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)}));styled("img")(()=>({width:"35px",height:"16px",display:"block"}));styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled("img")(()=>({maxWidth:"100%",width:"100%"}));var ut=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),ft=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Wo({type:t,hasSavedCard:e,totalPaymentsCount:o,isTextShown:r}){let l=Jc(useId(),"agreement-icon"),s=useTheme(),{t:i}=useTranslation(),n=useMemo(()=>[...e?[mt.SAVED_TOKEN]:[],...(o||0)>0?[mt.COUNT]:[],...t&&ct[t]?[ct[t]]:[]],[e,o,t]),d=c=>r?jsx(b$1,{"data-testid":"AgreementCell_countBadge",children:jsx(a$1,{title:i("totalPaymentCount",{amount:q(o)}),children:jsx(ft,{children:jsxs(ut,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:mt.COUNT.color},children:["x",o]})})})},c):jsx(d$1,{totalPaymentsCount:o,index:c},c),p=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(a$1,{title:i(c.label),children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:i(c.label)})}):jsx(a$2,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(a$1,{title:"No agreement",children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:s.palette.text.secondary},children:"No agreement"})}):jsx(a$2,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:vh,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:p?.length>0?p:f})}var Te=Wo;var Ro=Te;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));styled("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var we=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Pe=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var We=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var Bt={"3DS":{tooltip:"3DS",icon:Ji,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Ii,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:Uf,borderColor:"rgba(31, 136, 208, 0.10)"}},ve={FAILED:{tooltip:"Failed",icon:Mf,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:Vf,borderColor:"rgba(255, 61, 0, 0.10)"}};function Bo({transactionStatus:t,eci:e,authType:o,isTextShown:r}){let l=Jc(useId(),"auth-icons"),s=useMemo(()=>{let n=t?ve[t]:null,d=n?.tooltip,p=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:p,type:r?"text":"icon"},...o?[{tooltip:o,content:r?Bt[o]?.tooltip:Bt[o]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:e?`ECI ${e}`:"",type:"text"}]},[t,r,o,e]),i=useMemo(()=>s.filter(n=>!!n.content).map((n,d)=>{let p=n.type==="text"?jsx(Pe,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(we,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$2,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(a$1,{title:n.tooltip,children:p},`${n.tooltip}-${d}`)}),[s]);return jsx(We,{id:l,"data-testid":"AuthIcons",children:i})}var ke=Bo;var Lo=(t,e,o)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:o?t*o:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:e,...t>0&&{opacity:1}}});var Do=ke;var ot={VOID:{icon:_i},CAPTURED:{icon:Zi}};var xt=styled$1(motion.div)(({theme:t,isCapture:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:e?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),gt=styled$1("div")(({theme:t,percentage:e,isCapture:o})=>({border:`0.6px ${[0,100].includes(e)?"solid":"dashed"} ${o?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:o?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),It=styled$1("div")(({percentage:t,isCapture:e,theme:o})=>({background:`conic-gradient(${e?o.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${e?o.palette.info.dark:"#656565"}`})),Be=styled$1("img")({width:"14px",height:"14px"}),H=styled$1(o)({width:"16px",height:"16px"}),F=styled$1("img")({width:"16px",height:"16px"}),Le=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function ht(t){return t<5?5:t===100?95:t}function Fo({voidPercentage:t,capturePercentage:e$1,captureCount:o,autoType:r,captureAmount:l,voidAmount:s,currency:i,isTextShown:n,remainingAmount:d,isSheetViewShown:p,selectionProps:f={}}){let c=Number(e$1)+Number(t)===100||d<=0,g=Jc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(d||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l,s,i]),x=e$1>0?jsx(a$1,{title:Q("Capture"),children:jsxs(xt,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(Be,{src:rb,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(gt,{isCapture:true,percentage:e$1,children:[e$1,"% ",jsx(It,{isCapture:true,percentage:ht(e$1)})]}),o>1&&jsxs(e,{compact:true,variant:"dark",children:[o,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}):jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}),I=e$1===100?jsx(a$1,{title:w("captured"),children:jsx(Le,{children:jsx(F,{src:aj,alt:"captured"})})}):x,W=useMemo(()=>p&&I?jsx(b$2,{chipIndex:4,copyText:w("captured"),selectionProps:f,children:w("captured")}):n&&I?jsx(k$1,{children:w("captured")}):I,[n,I,p,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Ee=Fo;function Ko({voidPercentage:t,capturePercentage:e$1,voidCount:o,autoType:r,captureAmount:l$1,voidAmount:s,currency:i,isTextShown:n,isSheetViewShown:d,selectionProps:p={},remainingAmount:f}){let c=Number(e$1)+Number(t)===100||f<=0,g=Jc(useId(),"void-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(f||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l$1:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l$1,s,i]),x=t>1?jsx(a$1,{title:Q("Void"),children:jsxs(xt,{whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:T.palette.common.white,border:`0.75px solid ${T.palette.grey[600]}1A`},variants:{animate:{boxShadow:T.shadows[4]}},children:[jsxs(gt,{percentage:t,children:[t,"% ",jsx(It,{percentage:ht(t)})]}),o>0&&jsx(motion.div,{style:{alignItems:"center",justifyContent:"center",gap:"4px",width:0,display:"none"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(e,{compact:true,variant:"neutral",children:[o,"x"]})})]})}):r==="VOID"&&!c?jsx(a$1,{title:D("Void"),children:jsx(H,{children:jsx(F,{src:ot.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(a$1,{title:w("void"),children:jsx(H,{children:jsx(F,{src:rj,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b$2,{chipIndex:5,copyText:w("void"),selectionProps:p,children:w("void")}):n&&I?jsx(l,{children:w("void")}):I,[n,I,d,p]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var _e=Ko;var Jo=Ee;var Me=b(V(),1);var er=({authorizedStatus:t,isTextShown:e,iconStyles:o,tableMode:r,chipIndex:l=0,selectionProps:s={}})=>{let{t:i}=useTranslation(),n=useTheme$1(),d=i((0, Me.default)(t));return cb(r)?jsx(b$2,{copyText:d,chipIndex:l,selectionProps:s,children:d}):jsx(a$1,{title:d,children:e?jsx(j,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$2,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:o})})};var k=b(V(),1);var Ne=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,display:"block",fontWeight:t.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:t.spacing(.45)})),ze=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Dt=styled$1("img")(()=>({width:"10px",height:"10px"})),Et=styled$1(motion.span)(({theme:t})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),$t=styled$1(motion.div,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!t&&{padding:"0 !important"}})),Ge=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Fe=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Ue={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Oe={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},je={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},He={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},_t={fadeIn:{duration:.3},animate:{duration:.1}},qe={fadeIn:{opacity:1}},Ke=styled$1(j)(()=>({width:"88px",height:"100%"})),Vt=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function ir({chargeStatus:t,gatewayTooltip:e,acquirerTooltip:o$1,chargeTooltip:r,errorCode:l,isTextShown:s,gatewayCode:i,acquirerCode:n,unCapturedStyles:d,iconStyles:p$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:w=true,isSheetViewShown:P=false,selectionProps:D={},chipIndex:Q=0}){let x=t?b$3[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),Y=Jc(useId(),"charge-status-icon"),E=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:o$1})]}),Z=e&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:e})]}),Ft=t&&a$3[t]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:x?"50%":"",...f},children:jsx(p,{src:a$3[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...p$1}})});return P?jsxs(Vt,{children:[jsxs(b$2,{copyText:C((0, k.default)(t)),chipIndex:Q,selectionProps:D,children:[C((0, k.default)(t))," ",l]}),x&&jsxs(Fragment,{children:[i&&jsxs(b$2,{copyText:"Gateway",chipIndex:1,selectionProps:D,children:["Gateway ",i]}),n&&jsxs(b$2,{copyText:"Acquirer",chipIndex:2,selectionProps:D,children:["Acquirer ",n]})]})]}):s?jsxs(Vt,{children:[jsx(a$1,{title:E,children:jsxs(Ke,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark,borderColor:`${x?.color||I?.color||W.palette.info.dark}1A`},children:[C((0, k.default)(t))," ",l]})}),x&&jsxs(Fragment,{children:[i&&jsx(a$1,{title:Z,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",i]})}),n&&jsx(a$1,{title:v,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:Y,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:Lm?.includes(t||"")&&(E||v||Z)?jsxs(Fe,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...w&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Ge,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(a$1,{title:E??C((0, k.default)(t)),children:jsxs(Fragment,{children:[Ft,jsx(ze,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:He,style:{...l&&{padding:"0 !important"}},children:jsx(Ne,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:Ue,variants:qe,initial:{opacity:0},children:l})})]})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:Oe,style:g$1,isVisible:!!Z,children:Z&&jsx(a$1,{title:Z,children:jsx(Et,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:je,style:g$1,isVisible:!!v,children:v&&jsx(a$1,{title:v,children:jsx(Et,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(a$1,{title:E??C((0, k.default)(t)),children:jsx(o,{children:Ft})})})}var lr=()=>{let{t}=useTranslation(),e=Jc(useId(),"customer-initiated-icon");return jsx(a$1,{title:t("merchantInitiated"),children:jsx("img",{id:e,"data-testid":"merchantInitiatedIcon",src:sb,alt:"merchant",style:{width:"16px",height:"16px"}})})};var dr={G:"Global",R:"Regional",L:"Local"},rt=({geographyVariant:t,countryCode:e,isTextShown:o})=>{let r=t?dr[t]:void 0,l=r||e?`${r||""} ${r&&e?"-":""} ${e?`Country - ${e}`:""}`:void 0;return o||!e?null:jsx(a$1,{title:l,children:jsx(a$4,{countryCode:e})})};var ur=({geographyVariant:t,isTextShown:e,deviceCountry:o,deviceType:r,tableMode:l})=>{let s=Jc(useId(),"device-icon-chip");return jsxs(cr,{id:s,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...cb(l)&&{height:"18px"}},children:[jsx(rt,{geographyVariant:t,isTextShown:e,countryCode:o}),jsx(c,{type:r,isTextShown:e,tableMode:l})]})};var gr=({isDisputeOpen:t,iconStyles:e})=>{let o=Jc(useId(),"dispute-icon");return jsx(p,{id:o,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?ta:sa,alt:"dispute-icon",style:e})};var Ze=styled$1(cr,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:e})=>({display:"flex",gap:t.spacing(.5),...cb(e)&&{height:"18px"},alignItems:"center"})),to=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Nt({countryCode:t,isTextShown:e,cardNumber:o,bankName:r,tableMode:l}){let s=Jc(useId(),"issuer-icon"),i=o?.slice(0,4),n=o?.slice(-4);return jsxs(Ze,{id:s,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(rt,{countryCode:t,isTextShown:e}),jsx(a$1,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(to,{children:`${i||""} ${n||""}`})})]})}var br=Nt;var eo=b(V(),1);styled(motion.div)(({theme:t,background:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:e,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Mi=styled("img")(()=>({height:"13.125px",width:"12px"})),bt=styled("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"})),Ni=styled("div")(({theme:t})=>({color:t.palette.common.white,background:t.palette.error.main,fontSize:"0.6rem",fontWeight:600,borderRadius:"16px",padding:"2px 8px",display:"flex",alignItems:"center",justifyContent:"center"})),zi=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var wr=({payoutStatus:t="PENDING",isTextShown:e,payoutTooltip:o,iconStyles:r,isSheetViewShown:l,chipIndex:s=0,selectionProps:i={}})=>{let{t:n}=useTranslation(),d=Jc(useId(),"payout-icon"),p$1=n((0, eo.default)(t)),f=o||p$1;return l?jsx(b$2,{chipIndex:s,copyText:p$1,selectionProps:i,children:p$1}):jsx(a$1,{title:f,children:e?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:p$1}):jsx(p,{id:d,src:e$1[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var no=b(V(),1);var oo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),ro=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,borderRadius:t.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:t.palette.secondary.main})),zt=styled$1(motion.div)(({theme:t})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${t.palette.secondary.main}1A`,paddingInline:t.spacing(.5),borderRadius:"56px"}));var ep=styled$1(motion.span)(({isTextShown:t,theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),op=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),rp=styled$1(motion.div)(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var Rr=({isTextShown:t,refundStatus:e="PENDING",refundTooltip:o="",refundCount:r,iconStyles:l,isSheetViewShown:s,chipIndex:i=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),p$1=useTheme$1(),f=Jc(useId(),"refund-icon"),c=(r||0)>1,g=d$1((0, no.default)(e));if(s)return jsxs(b$2,{chipIndex:i,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(ro,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return t?jsx(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[e].color,backgroundColor:d[e].backgroundColor,width:"90px"},children:jsxs(zt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:c?jsxs(zt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[jsx(oo,{src:jj,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p,{id:f,src:c$1[e],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},ao=Rr;var kr=ao;var Pt=b(V(),1);var Br={american_express:"AMEX",debit:"card",credit:"card"},L=t=>Br[t?.toLowerCase()||""]||t;var co=b(V(),1);styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var io=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var po=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),so=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var lo=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function wt({source:t,isTextShown:e,title:o,width:r,height:l,imgSx:s}){let{t:i}=useTranslation(),n=h(t);return jsx(a$1,{title:o,children:e?jsx(so,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(po,{"data-testid":"SourceCell_TextLabel","data-source":t,children:i((0, co.default)(t))})}):jsx(io,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:s})})}function Mr({payment:t,card:e,isTextShown:o,firstIcon:r}){let l=Jc(useId(),"source-icons"),{t:s}=useTranslation(),i=useCallback(()=>{let p=[],f=nc(t),c=t?.method,g=t?.scheme;return L(c)?.toLowerCase()===L(g)?.toLowerCase()?p.push(L(c),L(f)):p.push(L(c),L(f),L(g)),p},[t]),n=useMemo(()=>jsx(wt,{source:r,isTextShown:o,title:s((0, Pt.default)(r))},r),[r,o,s]),d=useMemo(()=>i()?.filter(p=>!!p&&p!==r)?.map((p,f,c)=>{let g=t?.wallet===s("sv_wallet")?s("storedValueWallet"):s("passThruWallet"),T=f===c.length-1&&e?.last_four?`${s((0, Pt.default)(p))} - ${e?.last_four}`:s((0, Pt.default)(p));return jsx(wt,{source:p,isTextShown:o,title:f===0&&p==="Wallet"?g:T},`${p}-${f}`)}),[i,t,e,o,s,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,e?.last_four&&jsxs(lo,{children:["\xB7\xB7\xB7 ",e?.last_four]})]})}var at={PROCESSED:Lf,FAILED:""};var xo=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),go=styled("img")(()=>({width:"16px",height:"16px"})),Io=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));var Wt=b(V(),1);function ho({status:t,isTextShown:e,isSheetViewShown:o,chipIndex:r=0,selectionProps:l={}}){let s=useTheme(),{t:i}=useTranslation(),n=Jc(useId(),"destination-icon"),d=i((0, Wt.default)(t));return o&&at[t]?jsx(b$2,{copyText:d,chipIndex:r,selectionProps:l,children:d}):e&&at[t]?jsx(xo,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, Wt.default)(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?s.palette.info.dark:s.palette.common.black},children:d}):jsx(Io,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&at[t]&&jsx(a$1,{title:i((0, Wt.default)(t)),children:jsx(go,{src:at[t],alt:"destination-icon"})})})}export{ep as a,op as b,rp as c,Ro as d,Lo as e,Do as f,_e as g,Jo as h,V as i,er as j,ir as k,lr as l,rt as m,ur as n,gr as o,br as p,Mi as q,Ni as r,zi as s,wr as t,kr as u,L as v,wt as w,Mr as x,ho as y};
1
+ import {f,b as b$3,g,a as a$3,e as e$1,d,c as c$1}from'./chunk-GH7TAMPJ.js';import {a as a$2}from'./chunk-EWAOFKBQ.js';import {c}from'./chunk-VBDBPJ6A.js';import {o,j,k as k$1,l,p}from'./chunk-BIRJZLQQ.js';import {b as b$2}from'./chunk-P37RYOJW.js';import {b as b$1,e,d as d$1}from'./chunk-E35LKQ6G.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a as a$4}from'./chunk-JKOFVMQP.js';import {eb,fb,cb,Jc,Qa,Ra,nc,q}from'./chunk-ATSYOVOS.js';import {T,ph,rh,qh,oh,vh,Vf,Mf,Uf,Ii,Ji,rb,Zi,aj,_i,rj,Lm,sb,ta,sa,jj,h,Lf}from'./chunk-3JUTMTQV.js';import {a,b}from'./chunk-YRT7GXGY.js';import {useId,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {styled,Box,useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion}from'framer-motion';import {styled as styled$1,useTheme as useTheme$1}from'@mui/material/styles';import cr from'@mui/material/Box';var V=a((Sa,Ve)=>{var Xo=eb(),Qo=fb(),Yo=Qo(function(t,e,o){return e=e.toLowerCase(),t+(o?Xo(e):e)});Ve.exports=Yo;});var ct={ORDER:{label:"order",icon:oh,color:"#5E30EB"},SAVED_CARD:{label:"cardAgreement",icon:qh,color:"#76BB40"},SUBSCRIPTION:{label:"subscription",icon:rh,color:"#00C7BE"},INSTALLMENT:{label:"installment",icon:ph,color:"#32ADE6"}},mt={SAVED_TOKEN:{label:"savedToken",icon:T,color:"#76BB40"},COUNT:{label:"countBadge",icon:"countBadge",color:"#76BB40"}};styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)}));styled("img")(()=>({width:"35px",height:"16px",display:"block"}));styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"14.67px",height:"10px"}));styled("img")(()=>({maxWidth:"100%",width:"100%"}));var ut=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),ft=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px"}));function Wo({type:t,hasSavedCard:e,totalPaymentsCount:o,isTextShown:r}){let l=Jc(useId(),"agreement-icon"),s=useTheme(),{t:i}=useTranslation(),n=useMemo(()=>[...e?[mt.SAVED_TOKEN]:[],...(o||0)>0?[mt.COUNT]:[],...t&&ct[t]?[ct[t]]:[]],[e,o,t]),d=c=>r?jsx(b$1,{"data-testid":"AgreementCell_countBadge",children:jsx(a$1,{title:i("totalPaymentCount",{amount:q(o)}),children:jsx(ft,{children:jsxs(ut,{"data-testid":"AgreementCell_totalPaymentsCount",sx:{color:mt.COUNT.color},children:["x",o]})})})},c):jsx(d$1,{totalPaymentsCount:o,index:c},c),p=n.map((c,g)=>c.label==="countBadge"?d(g):jsx(a$1,{title:i(c.label),children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:c.color},children:i(c.label)})}):jsx(a$2,{sx:{maxWidth:"16px",maxHeight:"16px",height:"auto",width:"auto"},src:c.icon,alt:"agreement"})},c.color)},c.color)),f=jsx(a$1,{title:"No agreement",children:jsx(b$1,{children:r?jsx(ft,{children:jsx(ut,{"data-testid":"AgreementCell_agreementType",sx:{color:s.palette.text.secondary},children:"No agreement"})}):jsx(a$2,{sx:{maxWidth:"24px",maxHeight:"24px",height:"auto",width:"auto"},src:vh,alt:"agreement"})},"no-agreement")},"no-agreement");return jsx(Box,{id:l,"data-testid":"AgreementIcon",sx:{display:"flex",alignItems:"center",gap:"4px"},children:p?.length>0?p:f})}var Te=Wo;var Ro=Te;styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));styled("img")(()=>({maxWidth:"36px",maxHeight:"24px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var we=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),Pe=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"4px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var We=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px"}));var Bt={"3DS":{tooltip:"3DS",icon:Ji,borderColor:"rgba(31, 136, 208, 0.10)"},"Device Biometric":{tooltip:"Biometric",icon:Ii,borderColor:"rgba(31, 136, 208, 0.10)"},"Non-3DS":{tooltip:"Non 3DS",icon:Uf,borderColor:"rgba(31, 136, 208, 0.10)"}},ve={FAILED:{tooltip:"Failed",icon:Mf,borderColor:"rgba(255, 61, 0, 0.10)"},REJECTED:{tooltip:"Rejected",icon:Vf,borderColor:"rgba(255, 61, 0, 0.10)"}};function Bo({transactionStatus:t,eci:e,authType:o,isTextShown:r}){let l=Jc(useId(),"auth-icons"),s=useMemo(()=>{let n=t?ve[t]:null,d=n?.tooltip,p=t==="AUTHENTICATED"?null:n?.icon;return [{tooltip:d,content:r?d:p,type:r?"text":"icon"},...o?[{tooltip:o,content:r?Bt[o]?.tooltip:Bt[o]?.icon,type:r?"text":"icon"}]:[],{tooltip:"",content:e?`ECI ${e}`:"",type:"text"}]},[t,r,o,e]),i=useMemo(()=>s.filter(n=>!!n.content).map((n,d)=>{let p=n.type==="text"?jsx(Pe,{"data-testid":"AuthenticationCell_BadgeTextWrapper",children:jsx(we,{sx:{border:"none"},"data-testid":"AuthenticationCell_TextLabel","data-source":n.content,children:n.content})}):jsx(a$2,{sx:{width:"16px",height:"16px"},src:n.content,alt:n.tooltip});return jsx(a$1,{title:n.tooltip,children:p},`${n.tooltip}-${d}`)}),[s]);return jsx(We,{id:l,"data-testid":"AuthIcons",children:i})}var ke=Bo;var Lo=(t,e,o)=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"},...t>0&&{opacity:0}},animate:{x:o?t*o:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:e,...t>0&&{opacity:1}}});var Do=ke;var ot={VOID:{icon:_i},CAPTURED:{icon:Zi}};var xt=styled$1(motion.div)(({theme:t,isCapture:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(.5),paddingInline:t.spacing(.3),paddingBlock:t.spacing(.3),height:"100%",minWidth:"100%",backgroundColor:e?"#eaf3fb":"#eeeeee",borderRadius:"56px",width:"fit-content",fontSize:"10px",color:t.palette.text.primary,position:"relative",zIndex:10})),gt=styled$1("div")(({theme:t,percentage:e,isCapture:o})=>({border:`0.6px ${[0,100].includes(e)?"solid":"dashed"} ${o?t.palette.info.dark:"#656565"}`,borderRadius:"80px",padding:t.spacing(.316),paddingLeft:t.spacing(.516),fontSize:"7px",fontWeight:t.typography.fontWeightBold,color:o?t.palette.info.dark:"#656565",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5)})),It=styled$1("div")(({percentage:t,isCapture:e,theme:o})=>({background:`conic-gradient(${e?o.palette.info.dark:"#656565"} ${t}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${e?o.palette.info.dark:"#656565"}`})),Be=styled$1("img")({width:"14px",height:"14px"}),H=styled$1(o)({width:"16px",height:"16px"}),F=styled$1("img")({width:"16px",height:"16px"}),Le=styled$1(Box)({display:"flex",alignItems:"center",justifyContent:"center"});function ht(t){return t<5?5:t===100?95:t}function Fo({voidPercentage:t,capturePercentage:e$1,captureCount:o,autoType:r,captureAmount:l,voidAmount:s,currency:i,isTextShown:n,remainingAmount:d,isSheetViewShown:p,selectionProps:f={}}){let c=Number(e$1)+Number(t)===100||d<=0,g=Jc(useId(),"capture-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(d||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l,s,i]),x=e$1>0?jsx(a$1,{title:Q("Capture"),children:jsxs(xt,{isCapture:true,isFullyUsed:c,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:T.shadows[4]}},children:[jsx(Be,{src:rb,alt:"captured"}),jsxs(motion.div,{style:{display:"none",alignItems:"center",justifyContent:"center",gap:"4px"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:[jsxs(gt,{isCapture:true,percentage:e$1,children:[e$1,"% ",jsx(It,{isCapture:true,percentage:ht(e$1)})]}),o>1&&jsxs(e,{compact:true,variant:"dark",children:[o,"x"]})]})]})}):r==="CAPTURED"&&!c?jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}):jsx(a$1,{title:D("Capture"),children:jsx(H,{children:jsx(F,{src:ot.CAPTURED?.icon,alt:"auto"})})}),I=e$1===100?jsx(a$1,{title:w("captured"),children:jsx(Le,{children:jsx(F,{src:aj,alt:"captured"})})}):x,W=useMemo(()=>p&&I?jsx(b$2,{chipIndex:4,copyText:w("captured"),selectionProps:f,children:w("captured")}):n&&I?jsx(k$1,{children:w("captured")}):I,[n,I,p,f]);return W&&jsx("div",{id:g,"data-testid":"CaptureAutoIcon",style:{zIndex:12},children:W})}var Ee=Fo;function Ko({voidPercentage:t,capturePercentage:e$1,voidCount:o,autoType:r,captureAmount:l$1,voidAmount:s,currency:i,isTextShown:n,isSheetViewShown:d,selectionProps:p={},remainingAmount:f}){let c=Number(e$1)+Number(t)===100||f<=0,g=Jc(useId(),"void-auto-icon"),T=useTheme$1(),{t:w}=useTranslation(),P=Qa(f||0),D=useCallback(C=>`Auto ${C} - ${i} ${P.integerAmount}.${P.decimalAmount}`,[i,P.decimalAmount,P.integerAmount]),Q=useCallback(C=>{let Y=C==="Capture"?l$1:s,{integerAmount:E,decimalAmount:v}=Ra(Y,i);return `Partial ${C} - ${i} ${E}.${v}`},[l$1,s,i]),x=t>1?jsx(a$1,{title:Q("Void"),children:jsxs(xt,{whileHover:["animate","fadeIn"],animate:"start",sx:{zIndex:14,background:T.palette.common.white,border:`0.75px solid ${T.palette.grey[600]}1A`},variants:{animate:{boxShadow:T.shadows[4]}},children:[jsxs(gt,{percentage:t,children:[t,"% ",jsx(It,{percentage:ht(t)})]}),o>0&&jsx(motion.div,{style:{alignItems:"center",justifyContent:"center",gap:"4px",width:0,display:"none"},initial:{width:0,opacity:0},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex"},fadeIn:{transition:{delay:.5},opacity:1}},children:jsxs(e,{compact:true,variant:"neutral",children:[o,"x"]})})]})}):r==="VOID"&&!c?jsx(a$1,{title:D("Void"),children:jsx(H,{children:jsx(F,{src:ot.VOID?.icon,alt:"auto"})})}):null,I=t===100?jsx(a$1,{title:w("void"),children:jsx(H,{children:jsx(F,{src:rj,alt:"void"})})}):x,W=useMemo(()=>d&&I?jsx(b$2,{chipIndex:5,copyText:w("void"),selectionProps:p,children:w("void")}):n&&I?jsx(l,{children:w("void")}):I,[n,I,d,p]);return W?jsx("div",{id:g,"data-testid":"VoidAutoIcon",style:{...!d&&{zIndex:11}},children:W}):null}var _e=Ko;var Jo=Ee;var Me=b(V(),1);var er=({authorizedStatus:t,isTextShown:e,iconStyles:o,tableMode:r,chipIndex:l=0,selectionProps:s={}})=>{let{t:i}=useTranslation(),n=useTheme$1(),d=i((0, Me.default)(t));return cb(r)?jsx(b$2,{copyText:d,chipIndex:l,selectionProps:s,children:d}):jsx(a$1,{title:d,children:e?jsx(j,{"data-testid":"StatusCell_AuthorizedStatusLabel",sx:{color:n.palette.info.dark},children:d}):jsx(a$2,{src:f[t],alt:"authorized-icon","data-testid":"StatusCell_AuthorizedStatusIcon",sx:o})})};var k=b(V(),1);var Ne=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,display:"block",fontWeight:t.typography.fontWeightBold,fontSize:"9.78px",borderRadius:"4px",paddingInline:t.spacing(.45)})),ze=styled$1(motion.span)(()=>({display:"block",width:"0",overflow:"hidden"})),Dt=styled$1("img")(()=>({width:"10px",height:"10px"})),Et=styled$1(motion.span)(({theme:t})=>({width:"18px",height:"18px",borderRadius:"50%",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative"})),$t=styled$1(motion.div,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",width:"0",overflow:"hidden",opacity:0,...!t&&{padding:"0 !important"}})),Ge=styled$1(motion.div)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start"})),Fe=styled$1(motion.span)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),Ue={delay:.2,ease:"easeIn",fadeIn:{duration:.2}},Oe={animate:{width:"auto",paddingRight:"4px",paddingLeft:"4px"},fadeIn:{opacity:1,transition:{delay:.7}}},je={animate:{width:"auto"},fadeIn:{opacity:1,transition:{delay:1}}},He={animate:{width:"auto",paddingRight:"8px",paddingLeft:"4px"}},_t={fadeIn:{duration:.3},animate:{duration:.1}},qe={fadeIn:{opacity:1}},Ke=styled$1(j)(()=>({width:"88px",height:"100%"})),Vt=styled$1(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.25),height:"100%"}));function ir({chargeStatus:t,gatewayTooltip:e,acquirerTooltip:o$1,chargeTooltip:r,errorCode:l,isTextShown:s,gatewayCode:i,acquirerCode:n,unCapturedStyles:d,iconStyles:p$1,iconWrapperStyles:f,gatewayIconWrapperStyles:c,gatewayContainerStyles:g$1,gateWayIconStyles:T,showBadge:w=true,isSheetViewShown:P=false,selectionProps:D={},chipIndex:Q=0}){let x=t?b$3[t]:null,I=t?g[t]:null,W=useTheme$1(),{t:C}=useTranslation(),Y=Jc(useId(),"charge-status-icon"),E=r&&jsx(Fragment,{children:jsx("div",{children:r})}),v=o$1&&jsxs(Fragment,{children:[jsx("div",{children:"Acquirer"}),jsx("div",{children:o$1})]}),Z=e&&jsxs(Fragment,{children:[jsx("div",{children:"Gateway"}),jsx("div",{children:e})]}),Ft=t&&a$3[t]&&jsx("div",{"data-testid":"ChargeStatusIcon_ChargeIcon",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:x?"50%":"",...f},children:jsx(p,{src:a$3[t],alt:"charge-icon","data-testid":"ChargeStatusIcon_StatusIcon",style:{borderRadius:x?"50%":"",width:"16px",height:"16px",...p$1}})});return P?jsxs(Vt,{children:[jsxs(b$2,{copyText:C((0, k.default)(t)),chipIndex:Q,selectionProps:D,children:[C((0, k.default)(t))," ",l]}),x&&jsxs(Fragment,{children:[i&&jsxs(b$2,{copyText:"Gateway",chipIndex:1,selectionProps:D,children:["Gateway ",i]}),n&&jsxs(b$2,{copyText:"Acquirer",chipIndex:2,selectionProps:D,children:["Acquirer ",n]})]})]}):s?jsxs(Vt,{children:[jsx(a$1,{title:E,children:jsxs(Ke,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark,borderColor:`${x?.color||I?.color||W.palette.info.dark}1A`},children:[C((0, k.default)(t))," ",l]})}),x&&jsxs(Fragment,{children:[i&&jsx(a$1,{title:Z,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Gateway ",i]})}),n&&jsx(a$1,{title:v,children:jsxs(j,{"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, k.default)(t),sx:{background:x?.background||I?.background||"transparent",color:x?.color||I?.color||W.palette.info.dark},children:["Acquirer ",n]})})]})]}):jsx(o,{id:Y,"data-testid":"ChargeStatusIcon_StatusIconWrapper",style:{...f},children:Lm?.includes(t||"")&&(E||v||Z)?jsxs(Fe,{"data-testid":"ChargeStatusIcon_UnCapturedContainer",whileHover:["animate","fadeIn"],style:{left:"0",...w&&{paddingInline:"12px",border:"1px solid #F2F2F2",borderRadius:"12px",backgroundColor:"#fff"},...d},children:[jsx(Ge,{"data-testid":"ChargeStatusIcon_UnCapturedBadge",sx:{borderRadius:"56px"},initial:{background:"transparent"},variants:{animate:{background:x?.background}},children:jsx(a$1,{title:E??C((0, k.default)(t)),children:jsxs(Fragment,{children:[Ft,jsx(ze,{"data-testid":"ChargeStatusIcon_ErrorCodeWrapper",transition:{animate:{duration:.05}},variants:He,style:{...l&&{padding:"0 !important"}},children:jsx(Ne,{"data-testid":"ChargeStatusIcon_ErrorCodeLabel",sx:{background:x?.color},transition:Ue,variants:qe,initial:{opacity:0},children:l})})]})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:Oe,style:g$1,isVisible:!!Z,children:Z&&jsx(a$1,{title:Z,children:jsx(Et,{"data-testid":"ChargeStatusIcon_GatewayIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.gatewayIcon,alt:"gateway-icon","data-testid":"ChargeStatusIcon_GatewayIcon",style:T})})})}),jsx($t,{"data-testid":"ChargeStatusIcon_GatewaysContainer",transition:_t,variants:je,style:g$1,isVisible:!!v,children:v&&jsx(a$1,{title:v,children:jsx(Et,{"data-testid":"ChargeStatusIcon_AcquirerIconWrapper",style:{background:x?.background,...c},children:jsx(Dt,{src:x?.acquirerIcon,alt:"acquirer-icon","data-testid":"ChargeStatusIcon_AcquirerIcon",style:T})})})})]}):jsx(a$1,{title:E??C((0, k.default)(t)),children:jsx(o,{children:Ft})})})}var lr=()=>{let{t}=useTranslation(),e=Jc(useId(),"customer-initiated-icon");return jsx(a$1,{title:t("merchantInitiated"),children:jsx("img",{id:e,"data-testid":"merchantInitiatedIcon",src:sb,alt:"merchant",style:{width:"16px",height:"16px"}})})};var dr={G:"Global",R:"Regional",L:"Local"},rt=({geographyVariant:t,countryCode:e,isTextShown:o})=>{let r=t?dr[t]:void 0,l=r||e?`${r||""} ${r&&e?"-":""} ${e?`Country - ${e}`:""}`:void 0;return o||!e?null:jsx(a$1,{title:l,children:jsx(a$4,{countryCode:e})})};var ur=({geographyVariant:t,isTextShown:e,deviceCountry:o,deviceType:r,tableMode:l})=>{let s=Jc(useId(),"device-icon-chip");return jsxs(cr,{id:s,"data-testid":"DeviceIconChip",sx:{display:"flex",gap:"8px",alignItems:"center",...cb(l)&&{height:"18px"}},children:[jsx(rt,{geographyVariant:t,isTextShown:e,countryCode:o}),jsx(c,{type:r,isTextShown:e,tableMode:l})]})};var gr=({isDisputeOpen:t,iconStyles:e})=>{let o=Jc(useId(),"dispute-icon");return jsx(p,{id:o,"data-testid":"StatusCell_DisputeStatusIcon",sx:{width:"13.5px",height:"13.5px"},src:t?ta:sa,alt:"dispute-icon",style:e})};var Ze=styled$1(cr,{shouldForwardProp:t=>t!=="tableMode"})(({theme:t,tableMode:e})=>({display:"flex",gap:t.spacing(.5),...cb(e)&&{height:"18px"},alignItems:"center"})),to=styled$1("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function Nt({countryCode:t,isTextShown:e,cardNumber:o,bankName:r,tableMode:l}){let s=Jc(useId(),"issuer-icon"),i=o?.slice(0,4),n=o?.slice(-4);return jsxs(Ze,{id:s,"data-testid":"IssuerIcon",tableMode:l,children:[t&&jsx(rt,{countryCode:t,isTextShown:e}),jsx(a$1,{title:`${r?`Issuer - ${r}`:""}`,children:jsx(to,{children:`${i||""} ${n||""}`})})]})}var br=Nt;var eo=b(V(),1);styled(motion.div)(({theme:t,background:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(.5),paddingInline:t.spacing(.75),paddingBlock:t.spacing(.5),backgroundColor:e,height:"24px",width:"fit-content",borderRadius:"24px",fontSize:"10px",color:t.palette.text.primary}));var Mi=styled("img")(()=>({height:"13.125px",width:"12px"})),bt=styled("div")(()=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",width:"65px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4.5px 8px",borderRadius:"24px"})),Ni=styled("div")(({theme:t})=>({color:t.palette.common.white,background:t.palette.error.main,fontSize:"0.6rem",fontWeight:600,borderRadius:"16px",padding:"2px 8px",display:"flex",alignItems:"center",justifyContent:"center"})),zi=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px"}));var wr=({payoutStatus:t="PENDING",isTextShown:e,payoutTooltip:o,iconStyles:r,isSheetViewShown:l,chipIndex:s=0,selectionProps:i={}})=>{let{t:n}=useTranslation(),d=Jc(useId(),"payout-icon"),p$1=n((0, eo.default)(t)),f=o||p$1;return l?jsx(b$2,{chipIndex:s,copyText:p$1,selectionProps:i,children:p$1}):jsx(a$1,{title:f,children:e?jsx(bt,{id:d,"data-testid":"StatusCell_PayoutStatusLabel",children:p$1}):jsx(p,{id:d,src:e$1[t],alt:"settled-icon","data-testid":"StatusCell_PayoutStatusIcon",style:r})})};var no=b(V(),1);var oo=styled$1(motion.img)(()=>({width:"14px",height:"14px"})),ro=styled$1(motion.span)(({theme:t})=>({color:t.palette.common.white,borderRadius:t.spacing(.5),height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600,backgroundColor:t.palette.secondary.main})),zt=styled$1(motion.div)(({theme:t})=>({height:"16px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:`${t.palette.secondary.main}1A`,paddingInline:t.spacing(.5),borderRadius:"56px"}));var ep=styled$1(motion.span)(({isTextShown:t,theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",minWidth:t?"auto":"36px",...t&&{border:"none"}})),op=styled$1(motion.div,{shouldForwardProp:t=>t!=="statusesCount"})(({statusesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",borderRadius:"16px"})),rp=styled$1(motion.div)(()=>({display:"flex",gap:"4px",justifyContent:"flex-start",alignItems:"center",position:"relative",width:"100%",overflow:"visible"}));var Rr=({isTextShown:t,refundStatus:e="PENDING",refundTooltip:o="",refundCount:r,iconStyles:l,isSheetViewShown:s,chipIndex:i=0,selectionProps:n={}})=>{let{t:d$1}=useTranslation(),p$1=useTheme$1(),f=Jc(useId(),"refund-icon"),c=(r||0)>1,g=d$1((0, no.default)(e));if(s)return jsxs(b$2,{chipIndex:i,selectionProps:n,copyText:g,children:[g," ",c?`${r}x`:null]});let T=jsxs(ro,{"data-testid":"StatusCell_RefundsCountBadge",initial:{width:0,opacity:0,padding:"0px"},transition:{animate:{duration:.5},fadeIn:{duration:.2}},variants:{animate:{width:"auto",display:"flex",padding:"1.285px 2.569px"},fadeIn:{transition:{delay:.5},opacity:1}},children:[r,"x"]});return t?jsx(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:jsx(bt,{id:f,"data-testid":"StatusCell_RefundStatusLabel",sx:{color:d[e].color,backgroundColor:d[e].backgroundColor,width:"90px"},children:jsxs(zt,{whileInView:c?["animate","fadeIn"]:void 0,variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[g," ",c?T:null]})})}):jsx(a$1,{title:jsx("div",{children:jsx("div",{children:o})}),children:c?jsxs(zt,{id:f,whileHover:["animate","fadeIn"],animate:"start",variants:{animate:{boxShadow:p$1.shadows[4],gap:p$1.spacing(.5)}},children:[jsx(oo,{src:jj,alt:"multi-refunded-icon","data-testid":"StatusCell_MultiRefundIcon"}),T]}):jsx(p,{id:f,src:c$1[e],alt:"refunded-icon","data-testid":"StatusCell_RefundStatusIcon",style:l})})},ao=Rr;var kr=ao;var Pt=b(V(),1);var Br={american_express:"AMEX",debit:"card",credit:"card"},L=t=>Br[t?.toLowerCase()||""]||t;var co=b(V(),1);styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)}));var io=styled("img")(()=>({maxWidth:"24px",maxHeight:"16px"}));styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({theme:t,sourcesCount:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${e*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:t.palette.background.paper,borderRadius:"16px"}));var po=styled("span")(({theme:t})=>({fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"2px 0",color:t.palette.text.primary})),so=styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingInline:"8px",textAlign:"center",width:"100%"}));styled("span")(({theme:t})=>({position:"absolute",left:0,zIndex:6,border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,width:"36px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"}));var lo=styled("span")(({theme:t})=>({fontSize:"10px",fontWeight:500,color:t.palette.text.primary}));function wt({source:t,isTextShown:e,title:o,width:r,height:l,imgSx:s}){let{t:i}=useTranslation(),n=h(t);return jsx(a$1,{title:o,children:e?jsx(so,{"data-testid":"SourceCell_BadgeTextWrapper",children:jsx(po,{"data-testid":"SourceCell_TextLabel","data-source":t,children:i((0, co.default)(t))})}):jsx(io,{src:n,alt:t,width:r,height:l,onError:d=>{d.currentTarget.src=h("card");},sx:s})})}function Mr({payment:t,card:e,isTextShown:o,firstIcon:r}){let l=Jc(useId(),"source-icons"),{t:s}=useTranslation(),i=useCallback(()=>{let p=[],f=nc(t),c=t?.method,g=t?.scheme;return L(c)?.toLowerCase()===L(g)?.toLowerCase()?p.push(L(c),L(f)):p.push(L(c),L(f),L(g)),p},[t]),n=useMemo(()=>jsx(wt,{source:r,isTextShown:o,title:s((0, Pt.default)(r))},r),[r,o,s]),d=useMemo(()=>i()?.filter(p=>!!p&&p!==r)?.map((p,f,c)=>{let g=t?.wallet===s("sv_wallet")?s("storedValueWallet"):s("passThruWallet"),T=f===c.length-1&&e?.last_four?`${s((0, Pt.default)(p))} - ${e?.last_four}`:s((0, Pt.default)(p));return jsx(wt,{source:p,isTextShown:o,title:f===0&&p==="Wallet"?g:T},`${p}-${f}`)}),[i,t,e,o,s,r]);return jsxs(Box,{id:l,"data-testid":"SourceIcons",display:"flex",alignItems:"center",gap:.5,children:[r&&n,d,e?.last_four&&jsxs(lo,{children:["\xB7\xB7\xB7 ",e?.last_four]})]})}var at={PROCESSED:Lf,FAILED:""};var xo=styled("span")(({theme:t})=>({fontSize:"11px",padding:"2px 0",color:t.palette.text.primary})),go=styled("img")(()=>({width:"16px",height:"16px"})),Io=styled("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));var Wt=b(V(),1);function ho({status:t,isTextShown:e,isSheetViewShown:o,chipIndex:r=0,selectionProps:l={}}){let s=useTheme(),{t:i}=useTranslation(),n=Jc(useId(),"destination-icon"),d=i((0, Wt.default)(t));return o&&at[t]?jsx(b$2,{copyText:d,chipIndex:r,selectionProps:l,children:d}):e&&at[t]?jsx(xo,{id:n,"data-testid":"ChargeStatusIcon_isTextShown","data-status":(0, Wt.default)(t),sx:{background:"#1F88D00D",color:t==="PROCESSED"?s.palette.info.dark:s.palette.common.black},children:d}):jsx(Io,{id:n,"data-testid":"DestinationIcon",className:"destination-status",children:t&&at[t]&&jsx(a$1,{title:i((0, Wt.default)(t)),children:jsx(go,{src:at[t],alt:"destination-icon"})})})}export{ep as a,op as b,rp as c,Ro as d,Lo as e,Do as f,_e as g,Jo as h,V as i,er as j,ir as k,lr as l,rt as m,ur as n,gr as o,br as p,Mi as q,Ni as r,zi as s,wr as t,kr as u,L as v,wt as w,Mr as x,ho as y};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {useId,useState,useRef,useMemo,useCallback,useEffect}from'react';import re from'@mui/material/Box';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var v=3,h=24,B=styled("div")(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"})),G=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"})),O=styled("div")(()=>({position:"relative",display:"inline-block",width:0,height:24,pointerEvents:"none"})),j=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,display:"flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,fontSize:12,position:"absolute",top:0,left:0,boxSizing:"border-box",whiteSpace:"nowrap",lineHeight:1,transition:"width 180ms ease-out, padding 180ms ease-out"})),F=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,minWidth:24,display:"inline-flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,overflow:"hidden",position:"relative",boxSizing:"border-box",whiteSpace:"nowrap",fontSize:12,lineHeight:1})),U={position:"relative",overflow:"visible",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"};function q({icons:i}){let[s,I]=useState(false),[l,R]=useState([]),P=useRef(null),S=useRef(null),y=useRef([]),e=useRef(null),u=i??[],b=Math.max(0,(u.length??1)-1),T=u[b],o=u.slice(0,b),{peekItems:w,mainShiftX:m,guardLeft:A,guardWidth:H}=useMemo(()=>{let t=o.length,D=l.length===t&&l.every(n=>n>0),g=-6*t,p=D?l.reduce((n,a)=>n+a,0):t*h,x=Math.max(0,t-1)*v,d=Math.round(s?g+p+v*t:0),E=t-1,C=-6*(E+1),z=[];for(let n=0;n<t;n++){let a=t-1-n,Z=-6*(n+1),ee=D?l.slice(0,a).reduce((_,ne)=>_+ne,0)+v*a:(h+v)*a,te=Math.round(n===E?C:C+ee);z.push({key:`peek-${n}`,rIdx:n,origIdx:a,offX:Z,hoverX:te,zIndex:t-n,refCb:_=>{y.current[a]=_;},content:o[a]});}let V=C,Y=p+x;return {peekItems:z,mainShiftX:d,guardLeft:V,guardWidth:Y}},[o,l,s]),r=useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null);},[]),f=useCallback(()=>{let g=o.map((p,x)=>{let d=y.current[x];if(!d)return h;let E=d.scrollWidth||h,C=Math.max(h,E+12+2);return Math.ceil(C)});R(p=>p.length===g.length&&p.every((x,d)=>x===g[d])?p:g);},[o.length]),K=useCallback(()=>{r(),I(true);},[r]),Q=useCallback(()=>{r(),e.current=setTimeout(()=>I(false),120);},[r]);return useEffect(()=>()=>r(),[r]),useEffect(()=>{f();},[o.length]),useEffect(()=>{if(!s)return;let t=window.requestAnimationFrame(()=>{f();});return ()=>window.cancelAnimationFrame(t)},[s,f]),{isHovering:s,handleMouseEnter:K,handleRootMouseLeave:Q,rootRef:P,mainChipRef:S,peekItems:w,mainShiftX:m,mainIcon:T,guardLeft:A,guardWidth:H}}function J({icons:i=[],expandedZIndex:s=1e3,sx:I}){let l=Jc(useId(),"left-peek-right-expanding-chip"),{handleMouseEnter:R,handleRootMouseLeave:P,rootRef:S,mainChipRef:y,isHovering:e,peekItems:u,mainShiftX:b,mainIcon:T}=q({icons:i});return jsx(re,{id:l,sx:{...U,...I},"data-testid":"LeftPeekRightExpandingChipBox",children:jsx(B,{ref:S,onMouseLeave:P,onMouseEnter:R,children:jsxs(G,{"data-testid":"Container",initial:false,children:[jsx(O,{"data-testid":"PeekStack",onMouseEnter:R,onMouseLeave:P,style:{pointerEvents:e?"auto":"none"},children:jsx(AnimatePresence,{initial:false,children:u.map(({key:o,rIdx:w,offX:m,hoverX:A,zIndex:H,refCb:r,content:f})=>jsx(j,{"data-testid":`LeftPeekChip-${w}`,ref:r,initial:{opacity:0,scale:.95,x:m,y:0},animate:{opacity:1,scale:1,x:e?A:m,y:0},exit:{opacity:0,scale:.95,x:m,y:0},transition:{duration:.18,ease:"easeOut"},style:{zIndex:H,width:e?"auto":24,minWidth:24,padding:e?"0 6px":0,whiteSpace:"nowrap",overflow:e?"visible":"hidden",pointerEvents:e?"auto":"none"},children:e&&jsx(Fragment,{children:f})},o))})}),jsx(F,{"data-testid":"MainChip",ref:y,style:{zIndex:s+10,padding:"0 6px"},initial:false,animate:{x:e?b:0},transition:{duration:.18,ease:"easeOut"},children:T})]})})})}export{J as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {useId,useState,useRef,useMemo,useCallback,useEffect}from'react';import re from'@mui/material/Box';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var v=3,h=24,B=styled("div")(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"})),G=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"})),O=styled("div")(()=>({position:"relative",display:"inline-block",width:0,height:24,pointerEvents:"none"})),j=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,display:"flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,fontSize:12,position:"absolute",top:0,left:0,boxSizing:"border-box",whiteSpace:"nowrap",lineHeight:1,transition:"width 180ms ease-out, padding 180ms ease-out"})),F=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,minWidth:24,display:"inline-flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,overflow:"hidden",position:"relative",boxSizing:"border-box",whiteSpace:"nowrap",fontSize:12,lineHeight:1})),U={position:"relative",overflow:"visible",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"};function q({icons:i}){let[s,I]=useState(false),[l,R]=useState([]),P=useRef(null),S=useRef(null),y=useRef([]),e=useRef(null),u=i??[],b=Math.max(0,(u.length??1)-1),T=u[b],o=u.slice(0,b),{peekItems:w,mainShiftX:m,guardLeft:A,guardWidth:H}=useMemo(()=>{let t=o.length,D=l.length===t&&l.every(n=>n>0),g=-6*t,p=D?l.reduce((n,a)=>n+a,0):t*h,x=Math.max(0,t-1)*v,d=Math.round(s?g+p+v*t:0),E=t-1,C=-6*(E+1),z=[];for(let n=0;n<t;n++){let a=t-1-n,Z=-6*(n+1),ee=D?l.slice(0,a).reduce((_,ne)=>_+ne,0)+v*a:(h+v)*a,te=Math.round(n===E?C:C+ee);z.push({key:`peek-${n}`,rIdx:n,origIdx:a,offX:Z,hoverX:te,zIndex:t-n,refCb:_=>{y.current[a]=_;},content:o[a]});}let V=C,Y=p+x;return {peekItems:z,mainShiftX:d,guardLeft:V,guardWidth:Y}},[o,l,s]),r=useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null);},[]),f=useCallback(()=>{let g=o.map((p,x)=>{let d=y.current[x];if(!d)return h;let E=d.scrollWidth||h,C=Math.max(h,E+12+2);return Math.ceil(C)});R(p=>p.length===g.length&&p.every((x,d)=>x===g[d])?p:g);},[o.length]),K=useCallback(()=>{r(),I(true);},[r]),Q=useCallback(()=>{r(),e.current=setTimeout(()=>I(false),120);},[r]);return useEffect(()=>()=>r(),[r]),useEffect(()=>{f();},[o.length]),useEffect(()=>{if(!s)return;let t=window.requestAnimationFrame(()=>{f();});return ()=>window.cancelAnimationFrame(t)},[s,f]),{isHovering:s,handleMouseEnter:K,handleRootMouseLeave:Q,rootRef:P,mainChipRef:S,peekItems:w,mainShiftX:m,mainIcon:T,guardLeft:A,guardWidth:H}}function J({icons:i=[],expandedZIndex:s=1e3,sx:I}){let l=Jc(useId(),"left-peek-right-expanding-chip"),{handleMouseEnter:R,handleRootMouseLeave:P,rootRef:S,mainChipRef:y,isHovering:e,peekItems:u,mainShiftX:b,mainIcon:T}=q({icons:i});return jsx(re,{id:l,sx:{...U,...I},"data-testid":"LeftPeekRightExpandingChipBox",children:jsx(B,{ref:S,onMouseLeave:P,onMouseEnter:R,children:jsxs(G,{"data-testid":"Container",initial:false,children:[jsx(O,{"data-testid":"PeekStack",onMouseEnter:R,onMouseLeave:P,style:{pointerEvents:e?"auto":"none"},children:jsx(AnimatePresence,{initial:false,children:u.map(({key:o,rIdx:w,offX:m,hoverX:A,zIndex:H,refCb:r,content:f})=>jsx(j,{"data-testid":`LeftPeekChip-${w}`,ref:r,initial:{opacity:0,scale:.95,x:m,y:0},animate:{opacity:1,scale:1,x:e?A:m,y:0},exit:{opacity:0,scale:.95,x:m,y:0},transition:{duration:.18,ease:"easeOut"},style:{zIndex:H,width:e?"auto":24,minWidth:24,padding:e?"0 6px":0,whiteSpace:"nowrap",overflow:e?"visible":"hidden",pointerEvents:e?"auto":"none"},children:e&&jsx(Fragment,{children:f})},o))})}),jsx(F,{"data-testid":"MainChip",ref:y,style:{zIndex:s+10,padding:"0 6px"},initial:false,animate:{x:e?b:0},transition:{duration:.18,ease:"easeOut"},children:T})]})})})}export{J as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.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=Jc(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 {Jc}from'./chunk-ATSYOVOS.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=Jc(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 +1 @@
1
- import {i}from'./chunk-SWILNQW4.js';import {a}from'./chunk-KHM5KW53.js';import {Ja}from'./chunk-OIVTFRJE.js';import ee,{memo,useMemo,Children,useState,useRef,useEffect,useCallback,useLayoutEffect,isValidElement}from'react';import {motion}from'framer-motion';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var h=24;var D=.22;var nt=styled(P)(()=>({display:"flex",gap:"8px",overflow:"visible"})),Ut=["trackWidth","minTrackWidth","slotSize","hoverZIndex"],it=styled("div",{shouldForwardProp:t=>!Ut.includes(t)})(({trackWidth:t,minTrackWidth:e,slotSize:r,hoverZIndex:o})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${.22}s ease-out`,...o!==void 0?{zIndex:o}:{}})),$=styled(P)(()=>({display:"flex",alignItems:"center",paddingRight:"8px","& .chip-stack-overlap-slot":{marginRight:"-8px",position:"relative",zIndex:1},"& .chip-stack-overlap-slot:hover":{zIndex:2}}));function at(t){return {display:"flex",alignItems:"center",justifyContent:"center",width:`var(--chip-stack-slot-size, ${24}px)`,height:`var(--chip-stack-slot-size, ${24}px)`,borderRadius:"50%",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.common.white,flexShrink:0}}var ct=styled(({title:t,className:e,...r})=>t!=null&&t!==""?jsx(a,{title:t,wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{className:e,...r})}):jsx(P,{className:["chip-stack-overlap-slot",e].filter(Boolean).join(" "),...r}))(({theme:t})=>({...at(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,"& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),K=styled(({title:t,...e})=>jsx(a,{title:t??"",wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{...e})}))(({theme:t})=>({...at(t),fontSize:`max(${8}px, calc(var(--chip-stack-slot-size, ${24}px) * ${8.5} / ${24}))`,fontWeight:500,color:t.palette.text.disabled}));function st({overflowItems:t,size:e}){let r=`${Math.max(8,8.5*e/24)}px`;return jsxs(P,{sx:{width:e,height:e,borderRadius:"50%",border:o=>`1px solid ${o.palette.divider}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:r,fontWeight:600,bgcolor:"action.hover",flexShrink:0},children:["+",t.length]})}var Gt=["faceSize","avatarFill"],pt=styled(i,{shouldForwardProp:t=>!Gt.includes(t)})(({theme:t,faceSize:e,avatarFill:r})=>{let o=`${e}px`,i=`${Math.max(7,8.5*e/24)}px`;return {width:o,height:o,fontSize:i,fontWeight:500,lineHeight:"100%",letterSpacing:"0%",textAlign:"center",color:t.palette.common.white,background:r,backgroundSize:"cover","&.MuiAvatar-colorDefault":{background:r,color:t.palette.common.white},"& .MuiAvatar-img":{objectFit:"cover"}}});function lt(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function mt(t,e,r){return t==="static"?e?"static-children":r?"static-items":null:e?"animated-children":r?"animated-items":null}function dt({size:t,stackStep:e,gap:r,minTrackWidth:o}){let i=t??24,n=e??Math.round(i/2),s=r??Math.max(1,Math.round(i*3/24)),a=o??Math.max(60,Math.round(i*60/24));return {size:i,stackStep:n,gap:s,minTrackWidth:a}}function ut(t,e){if(t<=0)return 0;switch(e){case "right":return 0;case "left":return t-1;default:return Math.floor((t-1)/2)}}function ht(t,e){return e!==void 0&&t>e}function M(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function Yt(t,e){return isValidElement(t)&&t.key!=null&&t.key!==""?String(t.key):`chip-stack-child-${e}`}function B({items:t,maxItems:e,getItemKey:r,renderItem:o,renderOverflow:i,slotSize:n}){let s={slotSize:n};if(t.length===0)return [];let{visibleItems:a,hiddenItems:c}=M(t,e),p=a.map((m,l)=>({key:r(m,l),render:()=>o(m,l,s)}));return c.length>0&&p.push({key:`chip-stack-overflow-${c.length}-${a.length}`,render:()=>i({items:t,overflowItems:c,size:n})}),p}function ft({children:t,maxItems:e,slotSize:r,renderOverflow:o}){let i=Children.toArray(t);return B({items:i,maxItems:e,getItemKey:Yt,renderItem:n=>n,renderOverflow:o,slotSize:r})}function St(t,e){return t.length===e.length&&t.every((r,o)=>r===e[o])}function X(t,e,r){return t[e]??r}function kt(t,e,r,o,i,n){if(t===0)return [];let s=e*i,a=new Array(t);a[e]=s;for(let c=e-1;c>=0;c-=1)a[c]=a[c+1]-X(r,c,n)-o;for(let c=e+1;c<t;c+=1)a[c]=a[c-1]+X(r,c-1,n)+o;return a}function Ct(t,e,r){return t<=0?0:(t-1)*e+r}function xt(t,e,r,o){return Array.from({length:t},(i,n)=>t<=1||!e?0:r[n]-n*o)}function At(t,e,r,o,i){if(t<=0)return 0;let n=e.map((c,p)=>c+X(r,p,i)),s=Math.min(...e),a=Math.max(...n);return Math.max(o,a-s)}function gt(t,e,r){return Array.from({length:t},(o,i)=>{let n=e.current[i];return n?n.offsetWidth:r})}function Z(t,e){return t.id??`${t.first}-${t.last}-${e}`}function yt(t){return [t.first,t.last].map(e=>e?.[0]).filter(e=>e!=null&&e!=="").join("")}function Tt(t){if(t.tooltip!==void 0)return t.tooltip===null?null:t.tooltip;let e=`${t.first||""} ${t.last||""}`.trim();return e!==""?e:null}function Rt({slotCount:t,anchorIndex:e,size:r,stackStep:o,gap:i,fanOutEnabled:n,compact:s}){let[a,c]=useState(false),[p,m]=useState(()=>Array.from({length:t},()=>r)),l=useRef(null),f=useRef([]),C=useRef(null),x=useCallback(()=>{let v=gt(t,f,r);m(g=>St(g,v)?g:v);},[t,r]),d=useCallback(()=>{C.current&&cancelAnimationFrame(C.current),C.current=requestAnimationFrame(x);},[x]),A=useMemo(()=>kt(t,e,p,i,o,r),[t,e,p,i,o,r]),y=useMemo(()=>xt(t,n&&a,A,o),[t,n,a,A,o]),S=useMemo(()=>Ct(t,o,r),[t,o,r]),O=useMemo(()=>At(t,A,p,S,r),[t,A,p,S,r]),k=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),c(true));},[n]),u=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(false),120));},[n]);useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]),useEffect(()=>{n||c(false);},[n]),useLayoutEffect(()=>{m(Array.from({length:t},()=>r));},[t,r]),useLayoutEffect(()=>{x();},[t,r,x]),useEffect(()=>(d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d),C.current&&cancelAnimationFrame(C.current);}),[d]);let T=n&&a?O:s?r:S,b=n&&a,F=useMemo(()=>s?Array.from({length:t},(v,g)=>g===e||a?1:0):Array.from({length:t},()=>1),[s,t,e,a]);return {isHovering:a,handleMouseEnter:k,handleMouseLeave:u,slotRefs:f,translateX:y,slotOpacity:F,collapsedStackWidthPx:S,fannedRowWidthPx:O,trackWidth:T,hoverZIndexActive:b}}function H({items:t,children:e,maxItems:r,getItemKey:o,renderItem:i,renderOverflow:n,fanOutDirection:s,compact:a=false,"data-testid":c,sx:p,className:m,slotProps:l}){let f=Children.count(e)>0,{zIndex:C=1e3,size:x,stackStep:d,gap:A,minTrackWidth:y}=l?.layout??{},S=useMemo(()=>f?Children.toArray(e??null).length:t?.length??0,[f,e,t]),k=!(!a&&ht(S,r)),{size:u,stackStep:w,gap:T,minTrackWidth:b}=useMemo(()=>dt({size:x,stackStep:d,gap:A,minTrackWidth:y}),[x,d,A,y]),F=n??st,v=useMemo(()=>f?ft({children:e??null,maxItems:r,slotSize:u,renderOverflow:F}):!t?.length||!o||!i?[]:B({items:t,maxItems:r,getItemKey:o,renderItem:i,slotSize:u,renderOverflow:F}),[f,e,t,r,o,i,F,u]),g=v.length,Nt=useMemo(()=>ut(g,s),[g,s]),{handleMouseEnter:Et,handleMouseLeave:Mt,slotRefs:Wt,translateX:Lt,slotOpacity:tt,collapsedStackWidthPx:Kt,trackWidth:Vt,hoverZIndexActive:zt}=Rt({slotCount:g,anchorIndex:Nt,size:u,stackStep:w,gap:T,fanOutEnabled:k,compact:a});if(g===0)return null;let{sx:L,...Ht}=l?.shell??{},{style:Dt,...$t}=l?.track??{};return jsx(nt,{className:m,...Ht,sx:[{justifyContent:"flex-start",...k||a?{width:"100%"}:{}},...Array.isArray(p)?p:p!=null?[p]:[],...Array.isArray(L)?L:L!=null?[L]:[]],children:jsx(it,{"data-testid":c,...$t,style:Dt,onMouseEnter:k?Et:void 0,onMouseLeave:k?Mt:void 0,trackWidth:Vt,minTrackWidth:a?u:Math.max(b,Kt),slotSize:u,hoverZIndex:zt?C:void 0,children:v.map((et,R)=>jsx(motion.div,{ref:Xt=>{Wt.current[R]=Xt;},initial:false,animate:{x:Lt[R]??0,opacity:tt[R]??1},transition:{duration:.22,ease:"easeOut"},style:{position:"absolute",top:0,left:R*w,zIndex:R,width:u,height:u,pointerEvents:tt[R]===0?"none":"auto"},children:et.render()},et.key))})})}function oe({children:t,maxItems:e,renderOverflow:r,slotSize:o=24,sx:i,...n}){let s=useMemo(()=>ee.Children.toArray(t),[t]),{visibleItems:a,hiddenItems:c}=useMemo(()=>M(s,e),[s,e]),p=c.length>0,m=useMemo(()=>[{"--chip-stack-slot-size":`${o}px`},...Array.isArray(i)?i:i!=null?[i]:[]],[o,i]);if(!p)return jsx($,{"data-testid":"ChipStack",...n,sx:m,children:t});let l=r?.({items:s,overflowItems:c,size:o});return jsxs($,{"data-testid":"ChipStack",...n,sx:m,children:[a,l??jsx(K,{title:`${c.length} more`,children:jsxs("span",{children:["+",c.length]})})]})}var J=memo(oe);function ie(t){return jsx(ct,{"data-testid":"OverlapChip",...t})}var Q=memo(ie);var ce=["static","fanout-right","fanout-left","fanout-center"],Y="static";function pe(t){let{variant:e=Y,maxItems:r,renderOverflow:o,children:i,items:n,getItemKey:s,renderItem:a,compact:c=false,"data-testid":p,slotProps:m,sx:l,className:f}=t,C=Children.count(i??null)>0,x=!C&&(n?.length??0)>0&&s!=null&&a!=null,d=mt(e,C,x);if(d===null)return null;if(d==="static-children"||d==="static-items"){let S=m?.layout?.size??24;if(d==="static-items"&&n&&s&&a){let{visibleItems:O,hiddenItems:k}=M(n,r),u=k.length>0?o?.({items:n,overflowItems:k,size:S})??jsx(K,{title:`${k.length} more`,children:jsxs("span",{children:["+",k.length]})}):null,w=jsxs(Fragment,{children:[O.map((T,b)=>jsx(Q,{children:a(T,b,{slotSize:S})},s(T,b))),u]});return jsx(J,{"data-testid":p,slotSize:S,sx:l,className:f,children:w})}return jsx(J,{"data-testid":p,maxItems:r,renderOverflow:o,slotSize:S,sx:l,className:f,children:i})}let A=lt(e),y={maxItems:r,renderOverflow:o,fanOutDirection:A,compact:c,"data-testid":p??"ChipStack",slotProps:m,sx:l,className:f};return d==="animated-children"?jsx(H,{...y,children:i}):jsx(H,{...y,items:n,getItemKey:s,renderItem:a})}var wt=pe;function he({item:t,sourceIndex:e,slotSize:r}){let[o,i]=useState(false),n=useRef(null);useEffect(()=>{i(false);},[t.logo]);let s=!t.logo||o,a$1=Z(t,e),c="transparent";s&&(n.current?.key!==a$1&&(n.current={key:a$1,fill:Ja()}),c=n.current.fill);let p=jsx(pt,{faceSize:r,avatarFill:c,src:s?void 0:t.logo,slotProps:s?void 0:{img:{onError:()=>i(true)}},children:yt(t)}),m=Tt(t);return m!=null&&m!==""?jsx(a,{title:m,children:p}):p}var fe=he;var dr=wt;export{h as a,D as b,Z as c,Q as d,ce as e,Y as f,wt as g,fe as h,dr as i};
1
+ import {i}from'./chunk-BIRJZLQQ.js';import {a}from'./chunk-KHM5KW53.js';import {Ja}from'./chunk-ATSYOVOS.js';import ee,{memo,useMemo,Children,useState,useRef,useEffect,useCallback,useLayoutEffect,isValidElement}from'react';import {motion}from'framer-motion';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var h=24;var D=.22;var nt=styled(P)(()=>({display:"flex",gap:"8px",overflow:"visible"})),Ut=["trackWidth","minTrackWidth","slotSize","hoverZIndex"],it=styled("div",{shouldForwardProp:t=>!Ut.includes(t)})(({trackWidth:t,minTrackWidth:e,slotSize:r,hoverZIndex:o})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${.22}s ease-out`,...o!==void 0?{zIndex:o}:{}})),$=styled(P)(()=>({display:"flex",alignItems:"center",paddingRight:"8px","& .chip-stack-overlap-slot":{marginRight:"-8px",position:"relative",zIndex:1},"& .chip-stack-overlap-slot:hover":{zIndex:2}}));function at(t){return {display:"flex",alignItems:"center",justifyContent:"center",width:`var(--chip-stack-slot-size, ${24}px)`,height:`var(--chip-stack-slot-size, ${24}px)`,borderRadius:"50%",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.common.white,flexShrink:0}}var ct=styled(({title:t,className:e,...r})=>t!=null&&t!==""?jsx(a,{title:t,wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{className:e,...r})}):jsx(P,{className:["chip-stack-overlap-slot",e].filter(Boolean).join(" "),...r}))(({theme:t})=>({...at(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,"& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),K=styled(({title:t,...e})=>jsx(a,{title:t??"",wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{...e})}))(({theme:t})=>({...at(t),fontSize:`max(${8}px, calc(var(--chip-stack-slot-size, ${24}px) * ${8.5} / ${24}))`,fontWeight:500,color:t.palette.text.disabled}));function st({overflowItems:t,size:e}){let r=`${Math.max(8,8.5*e/24)}px`;return jsxs(P,{sx:{width:e,height:e,borderRadius:"50%",border:o=>`1px solid ${o.palette.divider}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:r,fontWeight:600,bgcolor:"action.hover",flexShrink:0},children:["+",t.length]})}var Gt=["faceSize","avatarFill"],pt=styled(i,{shouldForwardProp:t=>!Gt.includes(t)})(({theme:t,faceSize:e,avatarFill:r})=>{let o=`${e}px`,i=`${Math.max(7,8.5*e/24)}px`;return {width:o,height:o,fontSize:i,fontWeight:500,lineHeight:"100%",letterSpacing:"0%",textAlign:"center",color:t.palette.common.white,background:r,backgroundSize:"cover","&.MuiAvatar-colorDefault":{background:r,color:t.palette.common.white},"& .MuiAvatar-img":{objectFit:"cover"}}});function lt(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function mt(t,e,r){return t==="static"?e?"static-children":r?"static-items":null:e?"animated-children":r?"animated-items":null}function dt({size:t,stackStep:e,gap:r,minTrackWidth:o}){let i=t??24,n=e??Math.round(i/2),s=r??Math.max(1,Math.round(i*3/24)),a=o??Math.max(60,Math.round(i*60/24));return {size:i,stackStep:n,gap:s,minTrackWidth:a}}function ut(t,e){if(t<=0)return 0;switch(e){case "right":return 0;case "left":return t-1;default:return Math.floor((t-1)/2)}}function ht(t,e){return e!==void 0&&t>e}function M(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function Yt(t,e){return isValidElement(t)&&t.key!=null&&t.key!==""?String(t.key):`chip-stack-child-${e}`}function B({items:t,maxItems:e,getItemKey:r,renderItem:o,renderOverflow:i,slotSize:n}){let s={slotSize:n};if(t.length===0)return [];let{visibleItems:a,hiddenItems:c}=M(t,e),p=a.map((m,l)=>({key:r(m,l),render:()=>o(m,l,s)}));return c.length>0&&p.push({key:`chip-stack-overflow-${c.length}-${a.length}`,render:()=>i({items:t,overflowItems:c,size:n})}),p}function ft({children:t,maxItems:e,slotSize:r,renderOverflow:o}){let i=Children.toArray(t);return B({items:i,maxItems:e,getItemKey:Yt,renderItem:n=>n,renderOverflow:o,slotSize:r})}function St(t,e){return t.length===e.length&&t.every((r,o)=>r===e[o])}function X(t,e,r){return t[e]??r}function kt(t,e,r,o,i,n){if(t===0)return [];let s=e*i,a=new Array(t);a[e]=s;for(let c=e-1;c>=0;c-=1)a[c]=a[c+1]-X(r,c,n)-o;for(let c=e+1;c<t;c+=1)a[c]=a[c-1]+X(r,c-1,n)+o;return a}function Ct(t,e,r){return t<=0?0:(t-1)*e+r}function xt(t,e,r,o){return Array.from({length:t},(i,n)=>t<=1||!e?0:r[n]-n*o)}function At(t,e,r,o,i){if(t<=0)return 0;let n=e.map((c,p)=>c+X(r,p,i)),s=Math.min(...e),a=Math.max(...n);return Math.max(o,a-s)}function gt(t,e,r){return Array.from({length:t},(o,i)=>{let n=e.current[i];return n?n.offsetWidth:r})}function Z(t,e){return t.id??`${t.first}-${t.last}-${e}`}function yt(t){return [t.first,t.last].map(e=>e?.[0]).filter(e=>e!=null&&e!=="").join("")}function Tt(t){if(t.tooltip!==void 0)return t.tooltip===null?null:t.tooltip;let e=`${t.first||""} ${t.last||""}`.trim();return e!==""?e:null}function Rt({slotCount:t,anchorIndex:e,size:r,stackStep:o,gap:i,fanOutEnabled:n,compact:s}){let[a,c]=useState(false),[p,m]=useState(()=>Array.from({length:t},()=>r)),l=useRef(null),f=useRef([]),C=useRef(null),x=useCallback(()=>{let v=gt(t,f,r);m(g=>St(g,v)?g:v);},[t,r]),d=useCallback(()=>{C.current&&cancelAnimationFrame(C.current),C.current=requestAnimationFrame(x);},[x]),A=useMemo(()=>kt(t,e,p,i,o,r),[t,e,p,i,o,r]),y=useMemo(()=>xt(t,n&&a,A,o),[t,n,a,A,o]),S=useMemo(()=>Ct(t,o,r),[t,o,r]),O=useMemo(()=>At(t,A,p,S,r),[t,A,p,S,r]),k=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),c(true));},[n]),u=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(false),120));},[n]);useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]),useEffect(()=>{n||c(false);},[n]),useLayoutEffect(()=>{m(Array.from({length:t},()=>r));},[t,r]),useLayoutEffect(()=>{x();},[t,r,x]),useEffect(()=>(d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d),C.current&&cancelAnimationFrame(C.current);}),[d]);let T=n&&a?O:s?r:S,b=n&&a,F=useMemo(()=>s?Array.from({length:t},(v,g)=>g===e||a?1:0):Array.from({length:t},()=>1),[s,t,e,a]);return {isHovering:a,handleMouseEnter:k,handleMouseLeave:u,slotRefs:f,translateX:y,slotOpacity:F,collapsedStackWidthPx:S,fannedRowWidthPx:O,trackWidth:T,hoverZIndexActive:b}}function H({items:t,children:e,maxItems:r,getItemKey:o,renderItem:i,renderOverflow:n,fanOutDirection:s,compact:a=false,"data-testid":c,sx:p,className:m,slotProps:l}){let f=Children.count(e)>0,{zIndex:C=1e3,size:x,stackStep:d,gap:A,minTrackWidth:y}=l?.layout??{},S=useMemo(()=>f?Children.toArray(e??null).length:t?.length??0,[f,e,t]),k=!(!a&&ht(S,r)),{size:u,stackStep:w,gap:T,minTrackWidth:b}=useMemo(()=>dt({size:x,stackStep:d,gap:A,minTrackWidth:y}),[x,d,A,y]),F=n??st,v=useMemo(()=>f?ft({children:e??null,maxItems:r,slotSize:u,renderOverflow:F}):!t?.length||!o||!i?[]:B({items:t,maxItems:r,getItemKey:o,renderItem:i,slotSize:u,renderOverflow:F}),[f,e,t,r,o,i,F,u]),g=v.length,Nt=useMemo(()=>ut(g,s),[g,s]),{handleMouseEnter:Et,handleMouseLeave:Mt,slotRefs:Wt,translateX:Lt,slotOpacity:tt,collapsedStackWidthPx:Kt,trackWidth:Vt,hoverZIndexActive:zt}=Rt({slotCount:g,anchorIndex:Nt,size:u,stackStep:w,gap:T,fanOutEnabled:k,compact:a});if(g===0)return null;let{sx:L,...Ht}=l?.shell??{},{style:Dt,...$t}=l?.track??{};return jsx(nt,{className:m,...Ht,sx:[{justifyContent:"flex-start",...k||a?{width:"100%"}:{}},...Array.isArray(p)?p:p!=null?[p]:[],...Array.isArray(L)?L:L!=null?[L]:[]],children:jsx(it,{"data-testid":c,...$t,style:Dt,onMouseEnter:k?Et:void 0,onMouseLeave:k?Mt:void 0,trackWidth:Vt,minTrackWidth:a?u:Math.max(b,Kt),slotSize:u,hoverZIndex:zt?C:void 0,children:v.map((et,R)=>jsx(motion.div,{ref:Xt=>{Wt.current[R]=Xt;},initial:false,animate:{x:Lt[R]??0,opacity:tt[R]??1},transition:{duration:.22,ease:"easeOut"},style:{position:"absolute",top:0,left:R*w,zIndex:R,width:u,height:u,pointerEvents:tt[R]===0?"none":"auto"},children:et.render()},et.key))})})}function oe({children:t,maxItems:e,renderOverflow:r,slotSize:o=24,sx:i,...n}){let s=useMemo(()=>ee.Children.toArray(t),[t]),{visibleItems:a,hiddenItems:c}=useMemo(()=>M(s,e),[s,e]),p=c.length>0,m=useMemo(()=>[{"--chip-stack-slot-size":`${o}px`},...Array.isArray(i)?i:i!=null?[i]:[]],[o,i]);if(!p)return jsx($,{"data-testid":"ChipStack",...n,sx:m,children:t});let l=r?.({items:s,overflowItems:c,size:o});return jsxs($,{"data-testid":"ChipStack",...n,sx:m,children:[a,l??jsx(K,{title:`${c.length} more`,children:jsxs("span",{children:["+",c.length]})})]})}var J=memo(oe);function ie(t){return jsx(ct,{"data-testid":"OverlapChip",...t})}var Q=memo(ie);var ce=["static","fanout-right","fanout-left","fanout-center"],Y="static";function pe(t){let{variant:e=Y,maxItems:r,renderOverflow:o,children:i,items:n,getItemKey:s,renderItem:a,compact:c=false,"data-testid":p,slotProps:m,sx:l,className:f}=t,C=Children.count(i??null)>0,x=!C&&(n?.length??0)>0&&s!=null&&a!=null,d=mt(e,C,x);if(d===null)return null;if(d==="static-children"||d==="static-items"){let S=m?.layout?.size??24;if(d==="static-items"&&n&&s&&a){let{visibleItems:O,hiddenItems:k}=M(n,r),u=k.length>0?o?.({items:n,overflowItems:k,size:S})??jsx(K,{title:`${k.length} more`,children:jsxs("span",{children:["+",k.length]})}):null,w=jsxs(Fragment,{children:[O.map((T,b)=>jsx(Q,{children:a(T,b,{slotSize:S})},s(T,b))),u]});return jsx(J,{"data-testid":p,slotSize:S,sx:l,className:f,children:w})}return jsx(J,{"data-testid":p,maxItems:r,renderOverflow:o,slotSize:S,sx:l,className:f,children:i})}let A=lt(e),y={maxItems:r,renderOverflow:o,fanOutDirection:A,compact:c,"data-testid":p??"ChipStack",slotProps:m,sx:l,className:f};return d==="animated-children"?jsx(H,{...y,children:i}):jsx(H,{...y,items:n,getItemKey:s,renderItem:a})}var wt=pe;function he({item:t,sourceIndex:e,slotSize:r}){let[o,i]=useState(false),n=useRef(null);useEffect(()=>{i(false);},[t.logo]);let s=!t.logo||o,a$1=Z(t,e),c="transparent";s&&(n.current?.key!==a$1&&(n.current={key:a$1,fill:Ja()}),c=n.current.fill);let p=jsx(pt,{faceSize:r,avatarFill:c,src:s?void 0:t.logo,slotProps:s?void 0:{img:{onError:()=>i(true)}},children:yt(t)}),m=Tt(t);return m!=null&&m!==""?jsx(a,{title:m,children:p}):p}var fe=he;var dr=wt;export{h as a,D as b,Z as c,Q as d,ce as e,Y as f,wt as g,fe as h,dr as i};
@@ -1 +1 @@
1
- import {a}from'./chunk-HBEH35LA.js';import {Jc}from'./chunk-OIVTFRJE.js';import {nh,A}from'./chunk-3JUTMTQV.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=Jc(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?nh:A,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-SOJRPME6.js';import {Jc}from'./chunk-ATSYOVOS.js';import {nh,A}from'./chunk-3JUTMTQV.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=Jc(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?nh:A,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:f})})})},m=v;var R=m;export{R as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-RQS3IG3X.js';import {memo}from'react';import t from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(t)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(t)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var l=styled(t)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),p=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:r})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...r&&{cursor:"move"},margin:0})),I=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),s=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:r})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...r&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),f=styled(p)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));function v({onMouseEnter:o,onMouseLeave:r,isMaximized:g,isHovered:m,children:w,rightActions:x,leftActions:a$1,title:b,icon:y,...u}){return jsx(s,{onMouseEnter:o,onMouseLeave:r,maximized:g,id:"toolbar","data-testid":"Toolbar",isHovered:m,...u,children:jsxs(l,{className:"toolbar-wrapper",children:[a$1?jsx(d,{className:"action-box",children:a$1}):jsx("div",{}),jsx(a,{title:b,icon:y}),x||jsx("div",{})]})})}var c=memo(v);var D=c;export{p as a,I as b,f as c,D as d};
1
+ import {a}from'./chunk-4IN4MNIL.js';import {memo}from'react';import t from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(t)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(t)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var l=styled(t)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),p=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:r})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...r&&{cursor:"move"},margin:0})),I=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),s=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:r})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...r&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),f=styled(p)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));function v({onMouseEnter:o,onMouseLeave:r,isMaximized:g,isHovered:m,children:w,rightActions:x,leftActions:a$1,title:b,icon:y,...u}){return jsx(s,{onMouseEnter:o,onMouseLeave:r,maximized:g,id:"toolbar","data-testid":"Toolbar",isHovered:m,...u,children:jsxs(l,{className:"toolbar-wrapper",children:[a$1?jsx(d,{className:"action-box",children:a$1}):jsx("div",{}),jsx(a,{title:b,icon:y}),x||jsx("div",{})]})})}var c=memo(v);var D=c;export{p as a,I as b,f as c,D as d};
@@ -1 +1 @@
1
- import {f as f$1}from'./chunk-B6Q43W42.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
1
+ import {f as f$1}from'./chunk-F5A4P7NM.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
@@ -1,4 +1,4 @@
1
- import {b}from'./chunk-MUR4ILTY.js';import {Jc}from'./chunk-OIVTFRJE.js';import {ub}from'./chunk-3JUTMTQV.js';import {useId,useCallback}from'react';import v,{autocompleteClasses}from'@mui/material/Autocomplete';import y from'@mui/material/Box';import M from'@mui/material/TextField';import R from'@mui/material/Popper';import {keyframes,styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var T=keyframes`
1
+ import {b}from'./chunk-MUR4ILTY.js';import {Jc}from'./chunk-ATSYOVOS.js';import {ub}from'./chunk-3JUTMTQV.js';import {useId,useCallback}from'react';import v,{autocompleteClasses}from'@mui/material/Autocomplete';import y from'@mui/material/Box';import M from'@mui/material/TextField';import R from'@mui/material/Popper';import {keyframes,styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var T=keyframes`
2
2
  0% {
3
3
  transform: rotate(-90deg);
4
4
  }