@tap-payments/os-micro-frontend-shared 0.3.196 → 0.3.198

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 (272) hide show
  1. package/build/_chunks/chunk-23QZ6TZD.js +1 -0
  2. package/build/_chunks/{chunk-SRBHCNCU.js → chunk-2UE35TIU.js} +1 -1
  3. package/build/_chunks/{chunk-SISBUYPX.js → chunk-4XTHIWXG.js} +1 -1
  4. package/build/_chunks/{chunk-FMTHD3WI.js → chunk-5KZPTTXQ.js} +1 -1
  5. package/build/_chunks/{chunk-TLF5OKXW.js → chunk-5L3U4XWW.js} +1 -1
  6. package/build/_chunks/{chunk-KYW3IOAR.js → chunk-64YP7EIR.js} +1 -1
  7. package/build/_chunks/{chunk-IOG6S5L6.js → chunk-6RKOTFJV.js} +1 -1
  8. package/build/_chunks/{chunk-HL6ZFCJU.js → chunk-6TENNXVH.js} +1 -1
  9. package/build/_chunks/{chunk-RODISDNJ.js → chunk-6XBHFAAD.js} +1 -1
  10. package/build/_chunks/{chunk-BASQBUUA.js → chunk-6XECEWPN.js} +1 -1
  11. package/build/_chunks/{chunk-CTCBGFO6.js → chunk-74MOID4D.js} +1 -1
  12. package/build/_chunks/{chunk-ARKPUP3Y.js → chunk-7H54PYZJ.js} +1 -1
  13. package/build/_chunks/{chunk-7ZC44PYR.js → chunk-7K5742TG.js} +1 -1
  14. package/build/_chunks/{chunk-O3N3NN72.js → chunk-7KVWQHNV.js} +1 -1
  15. package/build/_chunks/{chunk-OPF6YKXK.js → chunk-ACJNCTJ4.js} +1 -1
  16. package/build/_chunks/{chunk-5PHFIWCF.js → chunk-AFZVO2FX.js} +1 -1
  17. package/build/_chunks/{chunk-Z4X36NPL.js → chunk-AI76WNMU.js} +1 -1
  18. package/build/_chunks/{chunk-JEMK4SKH.js → chunk-AIKY3BXO.js} +1 -1
  19. package/build/_chunks/{chunk-BSHUXSXR.js → chunk-APMAMMOZ.js} +1 -1
  20. package/build/_chunks/{chunk-MLYQZ25X.js → chunk-AVQUPT7Q.js} +1 -1
  21. package/build/_chunks/{chunk-UWWZOBPH.js → chunk-CPXBAREN.js} +1 -1
  22. package/build/_chunks/{chunk-HHXEMWIV.js → chunk-CVEKXQG7.js} +1 -1
  23. package/build/_chunks/{chunk-LMIPBM65.js → chunk-DSS6DKAJ.js} +1 -1
  24. package/build/_chunks/{chunk-PTC7MPSY.js → chunk-FFBY3ZLT.js} +1 -1
  25. package/build/_chunks/{chunk-2ENGX5T7.js → chunk-G7F3SNY2.js} +1 -1
  26. package/build/_chunks/{chunk-DNOPFOTX.js → chunk-GFDU6L5X.js} +1 -1
  27. package/build/_chunks/{chunk-Z76P7R5F.js → chunk-GJYXQOBC.js} +1 -1
  28. package/build/_chunks/{chunk-JFS2M7BM.js → chunk-HK574PGH.js} +1 -1
  29. package/build/_chunks/{chunk-OQTSYLE4.js → chunk-ICIEVSK6.js} +1 -1
  30. package/build/_chunks/{chunk-NS7CZUKT.js → chunk-IK4NIWK3.js} +1 -1
  31. package/build/_chunks/{chunk-7QPQN4S4.js → chunk-IVYSMKLW.js} +1 -1
  32. package/build/_chunks/{chunk-DMHWESHD.js → chunk-JBCDII7Y.js} +1 -1
  33. package/build/_chunks/{chunk-EQWYRJRU.js → chunk-JCC5EN6X.js} +1 -1
  34. package/build/_chunks/{chunk-F25YBN7M.js → chunk-JFD456Y4.js} +1 -1
  35. package/build/_chunks/chunk-JHOMJWTX.js +1 -0
  36. package/build/_chunks/{chunk-JUUUPJ5P.js → chunk-JKCOX623.js} +1 -1
  37. package/build/_chunks/{chunk-AHYQDAZ6.js → chunk-K7YT6I6Z.js} +1 -1
  38. package/build/_chunks/{chunk-B3CN5MFF.js → chunk-KATXSJPP.js} +1 -1
  39. package/build/_chunks/chunk-LDZ2KGF6.js +1 -0
  40. package/build/_chunks/{chunk-O6YZKYYU.js → chunk-LHMLMUKK.js} +1 -1
  41. package/build/_chunks/{chunk-5W5466MB.js → chunk-MX6II55S.js} +1 -1
  42. package/build/_chunks/{chunk-7VXNNPGZ.js → chunk-NGNDLXSN.js} +1 -1
  43. package/build/_chunks/{chunk-WI53J4JV.js → chunk-NUTKGLKP.js} +1 -1
  44. package/build/_chunks/{chunk-6UFBX7Q5.js → chunk-NXHZMUHX.js} +1 -1
  45. package/build/_chunks/{chunk-3NEVJBAZ.js → chunk-OCW4NMSW.js} +1 -1
  46. package/build/_chunks/{chunk-PQSELTNR.js → chunk-OIYAGPBM.js} +1 -1
  47. package/build/_chunks/chunk-ON7MQW7I.js +1 -0
  48. package/build/_chunks/{chunk-P4SKPL3K.js → chunk-OSRQZQQZ.js} +1 -1
  49. package/build/_chunks/{chunk-YYSMXJCV.js → chunk-OUHWJADB.js} +1 -1
  50. package/build/_chunks/{chunk-7FC6V6BU.js → chunk-P2W2PE7V.js} +1 -1
  51. package/build/_chunks/{chunk-NCUKF2SQ.js → chunk-PDXWQNZW.js} +1 -1
  52. package/build/_chunks/{chunk-NXYPCAP3.js → chunk-PV7BHBTQ.js} +1 -1
  53. package/build/_chunks/{chunk-YOYUJVDO.js → chunk-Q2YO46BR.js} +1 -1
  54. package/build/_chunks/chunk-QMBLENVJ.js +1 -0
  55. package/build/_chunks/{chunk-GWNWE6Z6.js → chunk-QZDGNK3H.js} +1 -1
  56. package/build/_chunks/{chunk-FYMWEJWF.js → chunk-RIMZ2CAF.js} +1 -1
  57. package/build/_chunks/{chunk-AB2B7WZO.js → chunk-RJ3MWXX7.js} +1 -1
  58. package/build/_chunks/{chunk-5KSPPHSY.js → chunk-RTHMIFP4.js} +1 -1
  59. package/build/_chunks/{chunk-5TK6H6HR.js → chunk-SAUGPBSF.js} +1 -1
  60. package/build/_chunks/{chunk-MDVKAAAG.js → chunk-SM5W367U.js} +1 -1
  61. package/build/_chunks/{chunk-FLYVS5MM.js → chunk-SQ4J2HHV.js} +1 -1
  62. package/build/_chunks/{chunk-GYFKDCT2.js → chunk-SS3YHZOA.js} +1 -1
  63. package/build/_chunks/{chunk-E6GTROUF.js → chunk-SVCHQL7X.js} +1 -1
  64. package/build/_chunks/{chunk-V4ZJLLXG.js → chunk-TIBNT63K.js} +1 -1
  65. package/build/_chunks/{chunk-47K4K4WV.js → chunk-TZCPVIH4.js} +1 -1
  66. package/build/_chunks/chunk-UAEEDOD4.js +2 -0
  67. package/build/_chunks/{chunk-4J255QEL.js → chunk-UHFA7Y4Y.js} +1 -1
  68. package/build/_chunks/chunk-UVKRET3U.js +2 -0
  69. package/build/_chunks/chunk-VBBBGDJR.js +1 -0
  70. package/build/_chunks/{chunk-QDHZTTW5.js → chunk-VTAEL4NV.js} +1 -1
  71. package/build/_chunks/{chunk-M65P34G7.js → chunk-WDJPGLUC.js} +1 -1
  72. package/build/_chunks/{chunk-KRAXSRA3.js → chunk-WIA7MI5M.js} +1 -1
  73. package/build/_chunks/{chunk-WBMN7RUZ.js → chunk-XSPSZMRL.js} +1 -1
  74. package/build/_chunks/{chunk-WGVTWZFM.js → chunk-XUYSRIOL.js} +1 -1
  75. package/build/_chunks/{chunk-DTKKRRN6.js → chunk-Y4LVUCON.js} +1 -1
  76. package/build/_chunks/chunk-YBD5IHPY.js +2 -0
  77. package/build/_chunks/{chunk-Q3NSQZ7M.js → chunk-YYHBNKPF.js} +1 -1
  78. package/build/_chunks/chunk-Z5J75KNQ.js +1 -0
  79. package/build/_chunks/{chunk-GVZ3WT64.js → chunk-ZNFO7RVR.js} +1 -1
  80. package/build/_chunks/{chunk-WT6ZD32U.js → chunk-ZNSPCRMR.js} +1 -1
  81. package/build/components/ActionMenu/index.js +1 -1
  82. package/build/components/ActionsDropdownMenu/index.js +1 -1
  83. package/build/components/ActiveFilterChip/index.js +1 -1
  84. package/build/components/ActivityAreaChart/index.js +1 -1
  85. package/build/components/AmountConversionFilter/index.js +1 -1
  86. package/build/components/AmountInput/index.js +1 -1
  87. package/build/components/AmountSlider/index.js +1 -1
  88. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  89. package/build/components/AppServices/index.js +1 -1
  90. package/build/components/AppServicesBar/index.js +1 -1
  91. package/build/components/AppWindowWrapper/index.js +1 -1
  92. package/build/components/Autocomplete/index.js +1 -1
  93. package/build/components/BrandLogo/index.js +1 -1
  94. package/build/components/Calender/index.js +1 -1
  95. package/build/components/CardEmptyState/index.js +1 -1
  96. package/build/components/ChipStack/index.js +1 -1
  97. package/build/components/ColorPicker/index.js +1 -1
  98. package/build/components/ColumnViews/index.js +1 -1
  99. package/build/components/ConfirmDialog/index.js +1 -1
  100. package/build/components/CountryFilter/index.js +1 -1
  101. package/build/components/CountryFlag/index.js +1 -1
  102. package/build/components/CurrencyAmount/index.js +1 -1
  103. package/build/components/CurrencyFilter/index.js +1 -1
  104. package/build/components/CurrencySymbol/index.js +1 -1
  105. package/build/components/CustomBackdrop/index.js +1 -1
  106. package/build/components/Customer/index.js +1 -1
  107. package/build/components/DateFilter/index.js +1 -1
  108. package/build/components/DeviceIcon/index.js +1 -1
  109. package/build/components/Discount/index.js +1 -1
  110. package/build/components/DisplayAmount/index.js +1 -1
  111. package/build/components/Dropdown2/index.js +1 -1
  112. package/build/components/DropdownMenu/index.js +1 -1
  113. package/build/components/Error/index.js +1 -1
  114. package/build/components/ErrorToast/index.js +1 -1
  115. package/build/components/ExpandableSideBar/index.js +1 -1
  116. package/build/components/FileInputPreview/index.js +1 -1
  117. package/build/components/FilePreview/index.js +1 -1
  118. package/build/components/FileUpload/index.js +1 -1
  119. package/build/components/FileUploader/index.js +1 -1
  120. package/build/components/FilterDropdown/index.js +1 -1
  121. package/build/components/Filters/index.js +1 -1
  122. package/build/components/FlippingCard/index.js +1 -1
  123. package/build/components/HeatMap/index.js +1 -1
  124. package/build/components/Icon/index.js +1 -1
  125. package/build/components/IconWithBadge/index.js +1 -1
  126. package/build/components/Input/index.js +1 -1
  127. package/build/components/InputBase/index.js +1 -1
  128. package/build/components/InputNumber/index.js +1 -1
  129. package/build/components/Inputs/index.js +1 -1
  130. package/build/components/JSONViewer/index.js +1 -1
  131. package/build/components/LanguageDropdown/index.js +1 -1
  132. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  133. package/build/components/ListColumnFilter/index.js +1 -1
  134. package/build/components/ListHeader/index.js +1 -1
  135. package/build/components/ListLayout/index.js +1 -1
  136. package/build/components/Loader/index.js +1 -1
  137. package/build/components/MFWidgetLoader/index.js +1 -1
  138. package/build/components/MaskedText/MaskedText.d.ts +3 -3
  139. package/build/components/MaskedText/constants.d.ts +8 -0
  140. package/build/components/MaskedText/icons.d.ts +2 -0
  141. package/build/components/MaskedText/index.d.ts +3 -2
  142. package/build/components/MaskedText/index.js +1 -1
  143. package/build/components/MaskedText/style.d.ts +4 -0
  144. package/build/components/MaskedText/type.d.ts +9 -3
  145. package/build/components/MaskedText/utils.d.ts +5 -0
  146. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  147. package/build/components/MerchantLogo/index.js +1 -1
  148. package/build/components/MerchantsDropdown/index.js +1 -1
  149. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  150. package/build/components/NestedDropdown/index.js +1 -1
  151. package/build/components/NestedMultiSelect/index.js +1 -1
  152. package/build/components/NoInternet/index.js +1 -1
  153. package/build/components/OpenFileInNewTab/index.js +1 -1
  154. package/build/components/PartnersFilter/index.js +1 -1
  155. package/build/components/PaymentSourceFilter/index.js +1 -1
  156. package/build/components/PhoneFilter/index.js +1 -1
  157. package/build/components/ProgressRing/index.js +1 -1
  158. package/build/components/RFH/index.js +1 -1
  159. package/build/components/RadioGroup/index.js +1 -1
  160. package/build/components/RangeCalender/index.js +1 -1
  161. package/build/components/RatingCount/index.js +1 -1
  162. package/build/components/ReceiptsViewer/index.js +1 -1
  163. package/build/components/ReferenceTypeFilter/index.js +1 -1
  164. package/build/components/ResizableHeightInput/index.js +1 -1
  165. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  166. package/build/components/SalesChannelFilter/index.js +1 -1
  167. package/build/components/SearchButton/index.js +1 -1
  168. package/build/components/SearchListInput/index.js +1 -1
  169. package/build/components/SelectDropdown/index.js +1 -1
  170. package/build/components/SheetViewChip/SheetViewChip.d.ts +4 -0
  171. package/build/components/SheetViewChip/constants.d.ts +12 -0
  172. package/build/components/SheetViewChip/index.d.ts +4 -0
  173. package/build/components/SheetViewChip/index.js +1 -0
  174. package/build/components/{StatusChip → SheetViewChip}/style.d.ts +17 -23
  175. package/build/components/SheetViewChip/type.d.ts +28 -0
  176. package/build/components/StatusBar/index.js +1 -1
  177. package/build/components/StatusButton/index.js +1 -1
  178. package/build/components/StatusFilter/index.js +1 -1
  179. package/build/components/StatusIcons/DestinationIcon/DestinationIcon.d.ts +2 -4
  180. package/build/components/StatusIcons/index.js +1 -1
  181. package/build/components/StatusLabel/index.js +1 -1
  182. package/build/components/TableCells/CustomCells/AmountCell/AmountCellSheet.d.ts +1 -1
  183. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellSheet.d.ts +1 -1
  184. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCellSheet.d.ts +1 -1
  185. package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.d.ts +1 -1
  186. package/build/components/TableCells/CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.d.ts +1 -1
  187. package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +2 -2
  188. package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCellSheet.d.ts +1 -1
  189. package/build/components/TableCells/CustomCells/index.d.ts +0 -1
  190. package/build/components/TableCells/index.js +1 -1
  191. package/build/components/TableReports/index.js +1 -1
  192. package/build/components/Timepicker/index.js +1 -1
  193. package/build/components/Toaster/index.js +1 -1
  194. package/build/components/ToggleView/index.js +1 -1
  195. package/build/components/Toolbar/index.js +1 -1
  196. package/build/components/ToolbarIcon/index.js +1 -1
  197. package/build/components/TreeDropdown/index.js +1 -1
  198. package/build/components/VAT/index.js +1 -1
  199. package/build/components/VerificationIcon/index.js +1 -1
  200. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  201. package/build/components/VirtualTables/index.js +1 -1
  202. package/build/components/Widget/index.js +1 -1
  203. package/build/components/Window/index.js +1 -1
  204. package/build/components/WindowAppIcon/index.js +1 -1
  205. package/build/components/WindowSideBar/index.js +1 -1
  206. package/build/components/index.d.ts +4 -9
  207. package/build/components/index.js +1 -1
  208. package/build/components/primitives/index.js +1 -1
  209. package/build/constants/index.js +1 -1
  210. package/build/hooks/index.js +1 -1
  211. package/build/index.js +1 -1
  212. package/build/utils/index.js +1 -1
  213. package/package.json +1 -1
  214. package/build/_chunks/chunk-24E4PB3N.js +0 -2
  215. package/build/_chunks/chunk-24ZDRSDT.js +0 -1
  216. package/build/_chunks/chunk-3AGDE7JF.js +0 -1
  217. package/build/_chunks/chunk-5L3M3IEZ.js +0 -1
  218. package/build/_chunks/chunk-AXOFS5D2.js +0 -1
  219. package/build/_chunks/chunk-BT5T6Y77.js +0 -1
  220. package/build/_chunks/chunk-C6YKV2OD.js +0 -1
  221. package/build/_chunks/chunk-DGAX7HUY.js +0 -1
  222. package/build/_chunks/chunk-E3JADKXE.js +0 -1
  223. package/build/_chunks/chunk-GIMMLEHK.js +0 -1
  224. package/build/_chunks/chunk-HMLFC27K.js +0 -1
  225. package/build/_chunks/chunk-JDPHN2VN.js +0 -1
  226. package/build/_chunks/chunk-JFL7A5I5.js +0 -1
  227. package/build/_chunks/chunk-KJCZZW3W.js +0 -1
  228. package/build/_chunks/chunk-MV62AEDS.js +0 -1
  229. package/build/_chunks/chunk-Q4FDDQJV.js +0 -1
  230. package/build/_chunks/chunk-RK2TNKGS.js +0 -1
  231. package/build/_chunks/chunk-RZZWTKXM.js +0 -1
  232. package/build/_chunks/chunk-U7V4VQGC.js +0 -1
  233. package/build/_chunks/chunk-YKKS24ES.js +0 -2
  234. package/build/_chunks/chunk-YQUZR54D.js +0 -1
  235. package/build/components/AmountStatusChip/AmountStatusChip.d.ts +0 -9
  236. package/build/components/AmountStatusChip/index.d.ts +0 -3
  237. package/build/components/AmountStatusChip/index.js +0 -1
  238. package/build/components/AmountStatusChip/style.d.ts +0 -3
  239. package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.d.ts +0 -9
  240. package/build/components/AuthenticationTypeChip/constants.d.ts +0 -16
  241. package/build/components/AuthenticationTypeChip/index.d.ts +0 -3
  242. package/build/components/AuthenticationTypeChip/index.js +0 -1
  243. package/build/components/Chip/Chip.d.ts +0 -4
  244. package/build/components/Chip/GroupIconChip.d.ts +0 -4
  245. package/build/components/Chip/GroupIconChips.d.ts +0 -4
  246. package/build/components/Chip/index.d.ts +0 -4
  247. package/build/components/Chip/index.js +0 -1
  248. package/build/components/Chip/style.d.ts +0 -276
  249. package/build/components/Chip/type.d.ts +0 -27
  250. package/build/components/RemoteFallback/RemoteFallback.d.ts +0 -7
  251. package/build/components/RemoteFallback/index.d.ts +0 -2
  252. package/build/components/RemoteFallback/index.js +0 -1
  253. package/build/components/RemoteFallback/style.d.ts +0 -11
  254. package/build/components/StatusChip/StatusChip.d.ts +0 -4
  255. package/build/components/StatusChip/index.d.ts +0 -3
  256. package/build/components/StatusChip/index.js +0 -1
  257. package/build/components/StatusChip/type.d.ts +0 -19
  258. package/build/components/StatusChipWithCopy/StatusChipWithCopy.d.ts +0 -13
  259. package/build/components/StatusChipWithCopy/index.d.ts +0 -4
  260. package/build/components/StatusChipWithCopy/index.js +0 -1
  261. package/build/components/StatusChipWithCopy/utils.d.ts +0 -4
  262. package/build/components/StatusGroupChips/StatusGroupChips.d.ts +0 -4
  263. package/build/components/StatusGroupChips/index.d.ts +0 -2
  264. package/build/components/StatusGroupChips/index.js +0 -1
  265. package/build/components/StatusGroupChips/style.d.ts +0 -5
  266. package/build/components/StatusGroupChips/type.d.ts +0 -13
  267. package/build/components/TableCells/CustomCells/TextWithChipCell/TextWithChipCell.d.ts +0 -21
  268. package/build/components/TableCells/CustomCells/TextWithChipCell/index.d.ts +0 -2
  269. package/build/components/TooltipChip/TooltipChip.d.ts +0 -14
  270. package/build/components/TooltipChip/index.d.ts +0 -1
  271. package/build/components/TooltipChip/index.js +0 -1
  272. package/build/components/TooltipChip/style.d.ts +0 -9
@@ -1 +1 @@
1
- import {R,V}from'./chunk-5W5466MB.js';import {yc}from'./chunk-JDPHN2VN.js';import {useId,useState}from'react';import f from'@mui/material/Box';import y from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:t})=>({backgroundColor:n.palette.common.white,border:`1px solid ${n.palette.divider}`,fontSize:"11px",color:n.palette.text.primary,padding:"8px",borderRadius:"4px",display:"flex",alignItems:"center",height:32,gap:"4px",cursor:"pointer",...t&&{borderColor:n.palette.info.dark}}));var M=["EN","AR"];function r({defaultLanguage:n="EN",onChange:t}){let x=yc(useId(),"language-dropdown"),[a,w]=useState(n),[p,i]=useState(null),l=!!p,L=o=>{i(o.currentTarget);},d=()=>{i(null);},C=o=>{w(o),t?.(o),d();};return jsx(y,{onClickAway:d,children:jsxs(f,{id:x,"data-testid":"LanguageDropdown",children:[jsx(m,{onClick:L,open:l,children:jsx(f,{component:"span",children:a})}),jsx(R,{open:l,anchorEl:p,sx:{marginTop:"8px",marginBottom:"8px",width:31.8},children:M.map(o=>o!==a&&jsx(V,{onClick:()=>C(o),startAdornment:null,children:o},o))})]})})}var F=r;export{F as a};
1
+ import {R,V}from'./chunk-MX6II55S.js';import {yc}from'./chunk-QMBLENVJ.js';import {useId,useState}from'react';import f from'@mui/material/Box';import y from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:t})=>({backgroundColor:n.palette.common.white,border:`1px solid ${n.palette.divider}`,fontSize:"11px",color:n.palette.text.primary,padding:"8px",borderRadius:"4px",display:"flex",alignItems:"center",height:32,gap:"4px",cursor:"pointer",...t&&{borderColor:n.palette.info.dark}}));var M=["EN","AR"];function r({defaultLanguage:n="EN",onChange:t}){let x=yc(useId(),"language-dropdown"),[a,w]=useState(n),[p,i]=useState(null),l=!!p,L=o=>{i(o.currentTarget);},d=()=>{i(null);},C=o=>{w(o),t?.(o),d();};return jsx(y,{onClickAway:d,children:jsxs(f,{id:x,"data-testid":"LanguageDropdown",children:[jsx(m,{onClick:L,open:l,children:jsx(f,{component:"span",children:a})}),jsx(R,{open:l,anchorEl:p,sx:{marginTop:"8px",marginBottom:"8px",width:31.8},children:M.map(o=>o!==a&&jsx(V,{onClick:()=>C(o),startAdornment:null,children:o},o))})]})})}var F=r;export{F as a};
@@ -0,0 +1,2 @@
1
+ var i="https://cdn.tap.company/tap-assets",e=`${i}/icons/dashboard/light`,t=`${e}/other`,st=`${e}/function`,ze=`${i}/videos`,Ke=`${i}/files`,f=`${Ke}/templates`,ct=c=>`${e}/${c}.svg`,pt=c=>`${e}/payment-method/v2/${c}.svg`,at=c=>`${e}/payment-issuer/${c}.svg`,rt=c=>`${e}/country/v3/${c}.svg`,xt=c=>`${e}/function/${c}.svg`,it=c=>`${e}/statusIcons/${c}.svg`,dt=c=>`${i}/currency/v3/light/${c}.svg`,lt=c=>{let Ve=c.replace(/\s/g,"");return `${i}/icons/dashboard/light/authority/v2/${Ve}.svg`},ut=c=>`${e}/browsers/${c}.svg`,gt=c=>`${e}/payment-initiator/${c}.svg`,It=c=>`${e}/payment-gateways/${c}.svg`,vt=c=>`${e}/aging/${c}.svg`,ht=`${e}/currency/sar.svg`,mt=`${e}/currency/dirham.svg`,At=`${e}/abandoned.svg`,ft=`${e}/abandonedYellow.svg`,Et=`${e}/chevron-down.svg`,$t=`${e}/removeIcon.svg`,Tt=`${e}/reversed.svg`,St=`${e}/destinationSolid.svg`,_t=`${e}/search.svg`,yt=`${e}/unauthorized.svg`,Pt=`${e}/view.svg`,bt=`${e}/reports.svg`,Ct=`${e}/flag.svg`,Rt=`${e}/dispute.svg`,Nt=`${e}/timezone.svg`,wt=`${e}/greyTimezone.svg`,Ot=`${e}/subscription.svg`,Lt=`${e}/savedCard.svg`,kt=`${e}/egypt.svg`,Bt=`${e}/saudiArabia.svg`,Mt=`${e}/jordan.svg`,Ut=`${e}/lebanon.svg`,Dt=`${e}/kuwait.svg`,Ft=`${e}/unitedArabEmirates.svg`,Wt=`${e}/europe.svg`,Gt=`${e}/bahrain.svg`,Ht=`${e}/america.svg`,Yt=`${e}/payment-method/v2/card.svg`,Vt=`${e}/payment-method/v2/UnionPay.svg`,zt=`${e}/payment-method/v2/JAYWAN.svg`,Kt=`${e}/device.svg`,qt=`${e}/expressCheckout.svg`,Zt=`${e}/applePay.svg`,Qt=`${e}/cash.svg`,jt=`${e}/passThruWallet.svg`,Jt=`${e}/storedValueWallet.svg`,Xt=`${e}/buyNowPayLater.svg`,eo=`${e}/openBanking.svg`,to=`${e}/FrictionlessIcon.svg`,oo=`${e}/ChallengeIcon.svg`,no=`${e}/visa.svg`,so=`${e}/redArrowDownIcon.svg`,co=`${e}/completed.svg`,po=`${e}/chargebackRequested.svg`,ao=`${e}/chargeback.svg`,ro=`${t}/captureDropdown.svg`,xo=`${e}/disputeResolved.svg`,io=`${e}/reversePayout.svg`,lo=`${e}/ellipsisHorizontal.svg`,uo=`${e}/3ds.svg`,go=`${e}/invoiceIdIcon3.svg`,Io=`${e}/idIcon3.svg`,vo=`${e}/id.svg`,ho=`${t}/copyIcon.svg`,mo=`${t}/codeIcon.svg`,Ao=`${t}/GreenCheckMark2.svg`,fo=`${e}/closedDispute.svg`,Eo=`${e}/openDispute.svg`,$o=`${e}/desktop.svg`,To=`${e}/mobile.svg`,So=`${e}/tablet.svg`,_o=`${e}/invoice.svg`,yo=`${e}/cancelledInvoiceIcon.svg`,Po=`${e}/expiredInvoiceIcon.svg`,bo=`${e}/invoiceNumberIcon.svg`,Co=`${e}/column.svg`,Ro=`${e}/sortAz.svg`,No=`${e}/sortZa.svg`,E=`${e}/zipFile.svg`,wo=`${e}/successWhiteBg.svg`,Oo=`${e}/failedWhiteBgIcon.svg`,Lo=`${e}/exclamationGreyIcon.svg`,ko=`${e}/exclamationDarkGreyIcon.svg`,Bo=`${e}/percentage0.svg`,Mo=`${e}/percentage50.svg`,Uo=`${e}/percentage75.svg`,Do=`${e}/percentage100.svg`,Fo=`${e}/maximize.svg`,Wo=`${e}/minimize.svg`,Go=`${e}/close.svg`,Ho=`${e}/dashedCheckIcon.svg`,Yo=`${e}/outstandingIcon.svg`,Vo=`${e}/cancelledStatusIcon.svg`,zo=`${e}/expiredStatusIcon.svg`,Ko=`${e}/paidStatusIcon.svg`,qo=`${e}/refundedStatusIcon.svg`,Zo=`${e}/deactivatedIcon.svg`,Qo=`${e}/topup.svg`,jo=`${e}/AIOverviewIcon.svg`,Jo=`${t}/demaximize.svg`,Xo=`${e}/pendingFlag.svg`,en=`${e}/ibanIcon.svg`,tn=`${e}/payoutIcon.svg`,on=`${e}/releasedFlag.svg`,nn=`${e}/acceptedFlag.svg`,sn=`${e}/clearIcon.svg`,cn=`${e}/status/unCaptured.svg`,pn=`${t}/newWindow.svg`,an=`${t}/viewAll.svg`,rn=`${t}/allApps.svg`,xn=`${t}/hide.svg`,dn=`${t}/close.svg`,ln=`${t}/star.svg`,un=`${t}/closeCircle.svg`,gn=`${t}/acquirer.svg`,In=`${e}/GenericIconNew.svg`,vn=`${t}/acquirerRed.svg`,hn=`${t}/gateway.svg`,mn=`${t}/acquirerOrange.svg`,An=`${e}/status/capturedAuthorize.svg`,fn=`${t}/merchantInitiated.svg`,En=`${t}/rightArow.svg`,$n=`${e}/blackRightArrow.svg`,Tn=`${t}/orangeFlag.svg`,Sn=`${t}/openFlag.svg`,_n=`${t}/closedFlag.svg`,yn=`${t}/redFlag.svg`,Pn=`${t}/grayFlag.svg`,bn=`${t}/downArrow.svg`,Cn=`${t}/check.svg`,Rn=`${t}/closeX.svg`,Nn=`${t}/drag.svg`,wn=`${t}/checkboxIcon.svg`,On=`${e}/plusWhite.svg`,Ln=`${t}/checkboxIcon.svg`,kn=`${e}/Uniso.svg`,Bn=`${e}/addidas.svg`,Mn=`${e}/radioButtonChecked.svg`,Un=`${e}/radioButtonUnchecked.svg`,Dn=`${e}/Mac.svg`,Fn=`${e}/blueCheckIconZigzag.svg`,Wn=`${e}/greenCheckIconZigzag.svg`,Gn=`${e}/dimmedCheckIconZigzag.svg`,Hn=`${e}/marketPlaceBlue.svg`,Yn=`${e}/marketplaceBlackIcon.svg`,Vn=`${e}/marketPlaceDimmed.svg`,zn=`${e}/moneyOut.svg`,Kn=`${e}/moneyOutDimmed.svg`,qn=`${e}/moneyIn.svg`,Zn=`${e}/moneyInDimmed.svg`,Qn=`${e}/message.svg`,jn=`${e}/pending.svg`,Jn=`${e}/payStream.svg`,Xn=`${e}/clearCoin.svg`,es=`${t}/walletSmall.svg`,ts=`${t}/bank.svg`,os=`${t}/hijri.svg`,ns=`${t}/darkLeftArrow.svg`,ss=`${t}/darkRightArrow.svg`,cs=`${t}/spinnerLoading.svg`,ps=`${t}/spinnerLoadingAnimated.svg`,as=`${t}/actionFail.svg`,rs=`${t}/actionSuccess.svg`,xs=`${t}/checkMark.svg`,is=`${t}/logout.svg`,ds=`${t}/preferences.svg`,ls=`${t}/transform.svg`,$=`${t}/token.svg`,l=`${t}/billing.svg`,us=`${t}/receiptBill.svg`,gs=`${e}/newReceiptIcon.svg`,u=`${t}/acceptance.svg`,Is=`${e}/acceptanceEnabled.svg`,vs=`${e}/acceptanceBlue.svg`,hs=`${e}/payoutsGreen.svg`,ms=`${t}/acceptanceAppIconDisabled.svg`,As=`${t}/payoutsAppIconDisabled.svg`,fs=`${e}/payoutEnabled.svg`,Es=`${e}/payoutAppGreenIcon.svg`,$s=`${e}/payoutDisabledRounded.svg`,Ts=`${e}/acceptanceDisabledRounded.svg`,g=`${t}/AuthenticationApp.svg`,I=`${t}/walletApp.svg`,v=`${t}/payouts.svg`,T=`${t}/protect.svg`,S=`${t}/customers.svg`,_=`${t}/business.svg`,y=`${t}/account.svg`,Ss=`${t}/disableCheck.svg`,_s=`${t}/wifiOff.svg`,ys=`${t}/SandboxHovered.svg`,Ps=`${t}/Sandbox.svg`,bs=`${t}/ExclamationError.svg`,Cs=`${t}/greyCheck.svg`,Rs=`${t}/greyCross.svg`,Ns=`${t}/blueCheck.svg`,ws=`${t}/disabledCheck.svg`,Os=`${t}/darkCheck.svg`,Ls=`${t}/collapseArrow.svg`,ks=`${t}/world.svg`,Bs=`${t}/grayUpArrow.svg`,Ms=`${t}/blackHeadingDownArrowIcon.svg`,Us=`${t}/blueHeadingDropdownArrow.svg`,Ds=`${t}/dropdownArrow.svg`,Fs=`${t}/greyDropdownIcon.svg`,P=`${t}/business2.svg`,b=`${t}/development.svg`,Ws=`${t}/financial.svg`,C=`${t}/light_master_orchestrator.svg`,R=`${t}/platform.svg`,Gs=`${t}/provider.svg`,N=`${t}/appPlatform.svg`,Hs=`${t}/authenticationGateway.svg`,w=`${t}/billingPlatform.svg`,O=`${t}/commercePlatform.svg`,Ys=`${t}/commercialRegulator.svg`,Vs=`${t}/merchantServiceProvider.svg`,L=`${t}/paymentAcquirer.svg`,k=`${t}/paymentFacilitator.svg`,B=`${t}/paymentGatewayProvider.svg`,M=`${t}/paymentIssuer.svg`,U=`${t}/paymentMethod.svg`,D=`${t}/paymentProcessor.svg`,F=`${t}/paymentScheme.svg`,W=`${t}/paymentTechnologyV2.svg`,G=`${t}/paymentTerminalProvider.svg`,H=`${t}/retailPlatform.svg`,zs=`${t}/retailer.svg`,Y=`${t}/light_business.svg`,V=`${t}/light_development.svg`,Ks=`${t}/financial.svg`,z=`${t}/light_master_orchestrator.svg`,K=`${t}/light_platform.svg`,qs=`${t}/provider.svg`,q=`${t}/light_app_platform.svg`,Zs=`${t}/light_authentication_gateway.svg`,Z=`${t}/light_billing_platform.svg`,Q=`${t}/light_commerce_platform.svg`,Qs=`${t}/light_commercial_regulator.svg`,js=`${t}/light_merchant_service_provider.svg`,j=`${t}/light_payment_acquirer.svg`,J=`${t}/light_payment_facilitator.svg`,X=`${t}/light_payment_gateway_provider.svg`,ee=`${t}/light_payment_issuer.svg`,te=`${t}/light_payment_method.svg`,oe=`${t}/light_payment_processor.svg`,ne=`${t}/light_payment_scheme.svg`,se=`${t}/light_payment_technology_v2.svg`,ce=`${t}/light_payment_terminal_provider.svg`,pe=`${t}/light_retail_platform.svg`,Js=`${t}/light_retailer.svg`,Xs=`${t}/brandGray.svg`,ec=`${e}/grayCircleIcon.svg`,tc=`${t}/json.svg`,oc=`${t}/jsonBlackIcon.svg`,nc=`${t}/sort1.svg`,sc=`${t}/SandboxHoveredLight.svg`,cc=`${t}/emailColoured.svg`,pc=`${e}/OrderIcon.svg`,ac=`${e}/TransactionIcon.svg`,rc=`${e}/GenericIcon.svg`,xc=`${t}/smsColoured.svg`,ic=`${t}/whatsAppColored.svg`,dc=`${t}/dueDateBlue.svg`,lc=`${t}/dueDateOrange.svg`,uc=`${t}/dueDateYellow.svg`,gc=`${t}/dueDateRed.svg`,Ic=`${t}/dueDateBlack.svg`,vc=`${t}/dueDateGray.svg`,hc=`${t}/timerBlue.svg`,mc=`${t}/expiredIcon.svg`,Ac=`${t}/remindedRed.svg`,fc=`${t}/chevronWhite.svg`,Ec=`${t}/chevronGray.svg`,$c=`${t}/notVerified.svg`,Tc=`${t}/verified.svg`,Sc=`${t}/verifyReview.svg`,_c=`${e}/window/attention.svg`,yc=`${e}/window/initalAcceptance.svg`,Pc=`${e}/window/completedAcceptance.svg`,bc=`${e}/window/initalPayouts.svg`,Cc=`${e}/window/completedPayouts.svg`,Rc=`${t}/collapseArrowsIcon.svg`,Nc=`${t}/expandArrowsIcon.svg`,wc=`${t}/greenArrowRight.svg`,Oc=`${t}/greenArrowLeft1.svg`,Lc=`${t}/greenIconWithArrowUp.svg`,kc=`${t}/whiteArrowRight.svg`,Bc=`${t}/whiteArrowLeft.svg`,Mc=`${e}/HSBCBank.svg`,Uc=`${e}/shopifyIcon.svg`,Dc=`${e}/verifiedGreenBadge.svg`,Fc=`${e}/backButtonLeft.svg`,Wc=`${e}/eyeHideIcon.svg`,Gc=`${e}/eyeShowIcon.svg`,Hc=`${t}/uploadIcon.svg`,ae=`${e}/window/uploadGreyIcon.svg`,re=`${e}/uploadAppIcon.svg`,xe=`${e}/window/paylinkGreyIcon.svg`,ie=`${e}/paylinkAppIcon.svg`,Yc=`${e}/inprogressIcon.svg`,Vc=`${e}/redCloseCircleIcon.svg`,zc=`${t}/uploadBlueIcon.svg`,Kc=`${t}/SandboxHovered.svg`,qc=`${t}/sandboxDefaultIcon.svg`,Zc=`${t}/SandboxIcon.svg`,Qc=`${t}/clock.svg`,jc=`${t}/RedClose.svg`,h=`${t}/xls.svg`,de=`${t}/csv.svg`,Jc=`${t}/pdf.svg`,Xc=`${t}/Download.svg`,ep=`${t}/reportsIconOutlined.svg`,tp=`${t}/Done.svg`,op=`${t}/reportApps.svg`,le=`${e}/window/ReportsApp.svg`,ue=`${e}/window/leadApp.svg`,ge=`${e}/window/leadTitleIcon.svg`,Ie=`${t}/OrderApp.svg`,ve=`${t}/OrderTitleIcon.svg`,np=`${e}/dottedLine.svg`,sp=`${e}/passwordDots.svg`,cp=`${e}/dollarSign.svg`,pp=`${e}/reload.svg`,ap=`${t}/deletedStatus1.svg`,rp=`${t}/draftedStatus1.svg`,xp=`${t}/createdStatus1.svg`,ip=`${t}/cancelledStatus1.svg`,dp=`${t}/expiredStatus1.svg`,lp=`${t}/paidStatus1.svg`,up=`${t}/deliveredStatus1.svg`,gp=`${t}/viewedStatus1.svg`,Ip=`${t}/savedStatus1.svg`,vp=`${t}/scheduledStatus1.svg`,hp=`${t}/invoicePendingStatus2.svg`,mp=`${t}/invoiceRefundedStatus2.svg`,Ap=`${e}/activeLeadStatus.svg`,fp=`${e}/completedLeadStatus.svg`,Ep=`${e}/closedLeadStatus.svg`,$p=`${e}/expiredLeadStatus.svg`,Tp=`${e}/readyLeadStatus.svg`,Sp=`${e}/fileIcon.svg`,_p=`${e}/clipboardFileGrayIcon.svg`,yp=`${e}/newFileIcon.svg`,Pp=`${e}/downloadFileIcon.svg`,bp=`${e}/progressFileIcon.svg`,Cp=`${e}/successFileIcon.svg`,Rp=`${e}/whiteArrowDownIcon.svg`,Np=`${e}/teamWindowIcon.svg`,wp=`${e}/blueAppsIcon.svg`,Op=`${e}/disabledCardIcon.svg`,Lp=`${e}/disabledCodeIcon.svg`,kp=`${e}/layersIcon.svg`,Bp=`${e}/status/pendingOnTapIcon.svg`,Mp=`${e}/leadWhiteIcon.svg`,Up=`${t}/chatDisabledIcon.svg`,Dp=`${e}/exclamationDarkIcon.svg`,Fp=`${t}/exclamationWarning.svg`,Wp=`${e}/exclamationError.svg`,Gp=`${e}/exclamationOrangeIcon.svg`,Hp=`${t}/greenCheckV2.svg`,Yp=`${e}/iosIcon1.svg`,Vp=`${e}/androidIcon.svg`,zp=`${e}/websiteIcon.svg`,Kp=`${t}/greyApple.svg`,qp=`${t}/greyLocationIcon.svg`,Zp=`${t}/greyDesktopIcon.svg`,Qp=`${t}/greyTimezone.svg`,jp=`${t}/safariBrowser.svg`,Jp=`${t}/chromeBrowser.svg`,Xp=`${t}/firefoxBrowser.svg`,ea=`${t}/microsoftBrowser.svg`,ta=`${t}/operaBrowser.svg`,oa=`${t}/braveBrowser.svg`,na=`${t}/arcBrowser.svg`,sa=`${t}/chromiumBrowser.svg`,ca=`${t}/userIcon.svg`,he=`${t}/slaProcess.svg`,me=`${e}/window/slaProcess.svg`,Ae=`${e}/orchestrationApp.svg`,fe=`${e}/window/orchestration.svg`,pa=`${e}/window/orchestrationWindowBg.svg`,Ee=`${e}/lendingApp.svg`,m=`${e}/window/lending.svg`,$e=`${e}/lendingProviderApp.svg`,Te=`${e}/deemaApp.svg`,Se=`${e}/window/deema.svg`,aa=`${e}/fast.svg`,ra=`${e}/bankBlue.svg`,xa=`${e}/mosque.svg`,ia=`${e}/mosqueBlack.svg`,da=`${e}/moonStar.svg`,la=`${e}/car.svg`,ua=`${e}/handCoinsWhite.svg`,ga=`${e}/list.svg`,Ia=`${e}/corporateLoan.svg`,va=`${e}/corporateLoanBlack.svg`,_e=`${e}/platformApp.svg`,ye=`${e}/window/platform.svg`,Pe=`${e}/osApp.svg`,be=`${e}/window/osApp.svg`,Ce=`${e}/riskApp.svg`,Re=`${e}/window/riskApp.svg`,ha=`${e}/status/table/abandoned.svg`,ma=`${e}/status/table/cancelled.svg`,Aa=`${e}/status/table/captured.svg`,fa=`${e}/status/table/chargeBack.svg`,Ea=`${e}/status/table/chargeBackRequested.svg`,$a=`${e}/status/table/completed.svg`,Ta=`${e}/status/table/declined.svg`,Sa=`${e}/status/table/destinationReversed.svg`,_a=`${t}/DestinationWithoutBackground.svg`,ya=`${e}/status/table/disputeResolved.svg`,Pa=`${e}/status/table/failed.svg`,ba=`${e}/status/table/failedNoBG.svg`,Ca=`${e}/status/table/declinedNoBg.svg`,Ra=`${t}/destinationSuccess.svg`,Na=`${e}/status/authenticationFailed.svg`,wa=`${e}/status/table/authenticated.svg`,Oa=`${e}/paidOutFilterIcon.svg`,La=`${e}/completedBlackIcon.svg`,ka=`${e}/scheduledFilterIcon.svg`,Ba=`${e}/saveTokenIcon.svg`,Ma=`${e}/status/unauthenticated.svg`,Ua=`${e}/status/authenticationAttempted.svg`,Da=`${e}/status/authenticationNoAuth.svg`,Fa=`${e}/status/authenticationDeclined.svg`,Wa=`${e}/status/authenticationExemptedWithoutTransaction1.svg`,Ga=`${e}/status/authenticationExemptedWithTransaction2.svg`,Ha=`${e}/status/authenticationFailed1.svg`,Ya=`${e}/status/authenticationInitiated.svg`,Va=`${e}/status/authenticationUnavailable.svg`,za=`${e}/status/authenticationUndetermined.svg`,Ka=`${e}/status/AuthenticationWithoutTransaction1.svg`,qa=`${e}/status/authenticationWithTransaction1 2.svg`,Za=`${e}/status/AuthenticationAuthenticated.svg`,Qa=`${e}/status/authenticationPending2.svg`,ja=`${e}/authenticationFailedNoBg.svg`,Ja=`${e}/authenticationPendingNoBg.svg`,Xa=`${e}/authenticationNoAuthNoBg.svg`,er=`${e}/authenticationAttemptedNoBg.svg`,tr=`${e}/authenticationExemptedWithTransactionNoBg.svg`,or=`${e}/authenticationExemptedWithoutTransactionNoBg.svg`,nr=`${e}/authenticationDeclinedNoBg.svg`,sr=`${e}/authenticationUnavailableNoBg.svg`,cr=`${e}/authenticationUndeterminedNoBg.svg`,pr=`${e}/authenticatedSuccessNoBg.svg`,ar=`${e}/authenticationWithTransactionNoBg.svg`,rr=`${e}/authenticationWithoutTransactionNoBg.svg`,xr=`${e}/greyPlusIcon.svg`,ir=`${e}/greyMinusIcon.svg`,dr=`${e}/noPreviewIcon.svg`,lr=`${e}/other/editIcon.svg`,ur=`${t}/viewInvoice.svg`,gr=`${t}/checkoutStatus.svg`,Ir=`${t}/checkStatusOutBlue.svg`,vr=`${t}/checkoutWithMarkStatus.svg`,hr=`${t}/intentExpiredStatus.svg`,mr=`${t}/intentInitiatedStatus.svg`,Ar=`${t}/intentCancelledStatus.svg`,fr=`${t}/intentTransactedStatus.svg`,Er=`${e}/SheetViewUnionIcon.svg`,$r=`${e}/sheetView.svg`,Tr=`${e}/abandonedNoBG.svg`,Sr=`${e}/status/table/paidOut.svg`,_r=`${e}/status/table/reversePayout.svg`,yr=`${e}/status/pendingPayout.svg`,Pr=`${t}/whiteCloseIcon.svg`,br=`${e}/window/empty.svg`,Cr=`${e}/loaderWhiteIcon.svg`,Rr=`${t}/reverseActionIcon.svg`,Nr=`${e}/status/authenticationWallet.svg`,wr=`${e}/status/authenticationApp.svg`,Or=`${e}/status/authenticationBiometric.svg`,Lr=`${e}/status/authenticationDevice.svg`,kr=`${e}/status/authenticationIssuer.svg`,Br=`${e}/status/authenticationScheme.svg`,Mr=`${e}/pin.svg`,Ur=`${e}/unpin.svg`,Dr=`${t}/switcher.svg`,Fr=`${e}/closedStatusIcon.svg`,Wr=`${e}/verticalLine.svg`,Gr=`${e}/previewModeIcon.svg`,Hr=`${e}/status/table/tokensSaved.svg`,Yr=`${e}/status/table/tokensTransacted.svg`,Vr=`${e}/status/table/tokensExpired.svg`,zr=`${e}/status/table/tokensPending.svg`,Kr=`${e}/status/table/tokenCardIcon.svg`,qr=`${t}/TableloadingSpinner.svg`,Zr=`${t}/loadingSpinnerWhite.svg`,Qr=`${e}/spinnerLoadingBlue.svg`,jr=`${e}/backgroundLoader.svg`,Jr=`${t}/arrowUpBlue1.svg`,Xr=`${t}/BlueCheckMarkShadowed1.svg`,ex=`${t}/cardViewButton.svg`,tx=`${t}/listViewButton1.svg`,ox=`${e}/BlueArrowUpIcon.svg`,nx=`${e}/BlueCircleLoaderIcon.svg`,sx=`${e}/appsGridIcon2.svg`,cx=`${e}/whiteFilter.svg`,px=`${e}/grayCloseIcon.svg`,ax=`${e}/status/OrderAgreementIcon.svg`,rx=`${e}/status/InstallmentAgreementIcon.svg`,xx=`${e}/status/CardAgreementIcon.svg`,ix=`${e}/status/SubscriptionAgreementIcon.svg`,dx=`${e}/brandPlaceholder.svg`,lx=`${e}/users-icons.svg`,ux=`${e}/Board-Icons.svg`,gx=`${t}/No Agreement.svg`,Ne=`${e}/window/acceptance.svg`,we=`${e}/window/wallet.svg`,Oe=`${e}/window/billing.svg`,Le=`${e}/window/customers.svg`,ke=`${e}/window/payout.svg`,Be=`${e}/window/protect.svg`,Me=`${e}/window/tokens.svg`,Ue=`${e}/window/account.svg`,De=`${e}/window/businesses.svg`,Fe=`${e}/window/authentication.svg`,We=`${t}/reportsIcon.svg`,Ix=`${e}/window/tokensReports.svg`,vx=`${e}/window/brand.svg`,hx=`${e}/window/entity.svg`,mx=`${e}/window/bank.svg`,Ax=`${e}/window/individual.svg`,fx=`${e}/window/password.svg`,Ex=`${e}/actionsIcon.svg`,$x=`${e}/addItem.svg`,Tx=`${e}/attachIcon.svg`,Sx=`${e}/CollapseArrows.svg`,_x=`${e}/customerIcon.svg`,yx=`${e}/discountIcon.svg`,Px=`${e}/emailIcon.svg`,bx=`${e}/emailBlackIcon.svg`,Cx=`${e}/linkTiltedIcon.svg`,Rx=`${e}/ExpandArrows.svg`,Nx=`${e}/feeIcon.svg`,wx=`${e}/minusIcon.svg`,Ox=`${e}/noteIcon.svg`,Lx=`${e}/pdfGrayIcon.svg`,kx=`${e}/productLabel.svg`,Bx=`${e}/quantityIcon.svg`,Mx=`${e}/removeItem.svg`,Ux=`${t}/removeItem2.svg`,Dx=`${e}/smsIcon.svg`,Fx=`${e}/taxIcon.svg`,Wx=`${e}/totalAmountIcon.svg`,Gx=`${e}/unfocusRemoveItem.svg`,Hx=`${e}/whatsappIcon1.svg`,Yx=`${e}/whiteArrow2.svg`,Vx=`${e}/newInvoice.svg`,zx=`${e}/activeActionIcon.svg`,Kx=`${e}/grayProductLabel.svg`,qx=`${e}/plusQty.svg`,Zx=`${t}/downArrow3.svg`,Qx=`${e}/customer.svg`,jx=`${t}/note.svg`,Jx=`${e}/blueNoteIcon.svg`,Xx=`${t}/attach.svg`,ei=`${e}/lateFee.svg`,ti=`${e}/addItemIcon.svg`,oi=`${e}/blueCheckIcon.svg`,ni=`${t}/trash-bin.svg`,si=`${e}/redTrashBin.svg`,ci=`${e}/blueVerifyIcon.svg`,pi=`${e}/verificationDarkBlue.svg`,ai=`${e}/grayVerifyIcon.svg`,ri=`${e}/greenVerifyIcon.svg`,xi=`${e}/redVerifyIcon.svg`,ii=`${e}/closedVerifyIcon.svg`,di=`${e}/archivedVerifyIcon.svg`,li=`${e}/penIcon.svg`,ui=`${t}/listShadow.svg`,gi=`${e}/defaultCountryIcon.svg`,Ii=`${e}/defaultDeviceIcon.svg`,vi=`${e}/biometric.svg`,hi=`${e}/3dsBlue.svg`,mi=`${t}/createCharge.svg`,Ai=`${t}/successCheck.svg`,fi=`${t}/receipt.svg`,Ei=`${t}/browserTimezone.svg`,$i=`${t}/entityTimezone.svg`,Ti=`${t}/historyTimezone.svg`,Si=`${t}/smallBlueCheck.svg`,_i=`${t}/fileDownloadBlue.svg`,yi=`${t}/fileDownloadGrey.svg`,Pi=`${e}/meta.svg`,bi=`${e}/darkFilterIcon.svg`,Ci=`${e}/resize-icon.svg`,Ri=`${e}/home.svg`,Ni=`${e}/lockIcon.svg`,wi=`${e}/Calendar.svg`,Oi=`${e}/status-v2/autoCapturedNoBG.svg`,Li=`${e}/status-v2/autoVoidNoBG.svg`,ki=`${e}/status-v2/cancelledNoBG.svg`,Bi=`${e}/status-v2/capturedNoBG.svg`,Mi=`${e}/status-v2/declinedNoBG.svg`,Ui=`${e}/status-v2/destinationsNoBG.svg`,Di=`${e}/status-v2/failedNoBG.svg`,Fi=`${e}/status-v2/gatewayOrange.svg`,Wi=`${e}/status-v2/gatewayRedNoBG.svg`,Gi=`${e}/status-v2/paidoutNoBG.svg`,Hi=`${e}/status-v2/refundedIconNoBG2.svg`,Yi=`${e}/status-v2/refundInitiatedNoBG.svg`,Vi=`${e}/status-v2/refundSettledNoBG.svg`,zi=`${e}/status-v2/refundNotSettledNoBG.svg`,Ki=`${e}/status-v2/restrictedNoBG.svg`,qi=`${e}/status-v2/settledNoBG.svg`,Zi=`${e}/status-v2/settlementInitiatedNoBG.svg`,Qi=`${e}/status-v2/timeoutNoBG.svg`,ji=`${e}/status-v2/unavailableNoBG.svg`,Ji=`${e}/status-v2/unknownNoBG.svg`,Xi=`${e}/status-v2/void.svg`,ed=`${e}/status-v2/authorizeNoBG.svg`,td=`${e}/status-v2/initiatedNoBG.svg`,od=`${e}/websiteBlueIcon.svg`,nd=`${e}/androidAppIcon.svg`,sd=`${e}/iOSAppIcon.svg`,cd=`${e}/physicalLocationIcon.svg`,pd=`${e}/socialLinksIcon.svg`,ad=`${e}/smallLeftArrow.svg`,rd=`${e}/searchBlueIcon.svg`,xd=`${t}/rightLightArrow.svg`,id=`${t}/segmentInstitution.svg`,dd=`${t}/segmentTechnology.svg`,ld=`${t}/segmentDevelopmentHouse.svg`,Ge=`${t}/terminal.svg`,He=`${e}/window/terminal.svg`,ud=`${e}/terminalCardPhone.svg`,gd=`${e}/ToastPOS.svg`,Id=`${e}/terminalTypeIcon.svg`,vd=`${e}/terminalBrush.svg`,hd=`${e}/terminalBrushMuted.svg`,md=`${e}/navigationIcon.svg`,Ad=`${e}/babyBlueCheckIcon.svg`,fd=`${e}/digitalReceiptIcon.svg`,Ed=`${e}/bankNoteIcon.svg`,$d=`${e}/terminalDeviceFrame.svg`,Td=`${e}/blackBrushIcon.svg`,Sd=`${e}/mutedOutlinedCheckIcon.svg`,_d=`${e}/outlinedPlatformIcon.svg`,yd=`${e}/navigationPointerBlack.svg`,Pd=`${e}/addIconWhite.svg`,bd=`${e}/greyUpArrow.svg`,Cd=`${e}/greyDownArrow.svg`,Rd=`${e}/services/brandService.svg`,Nd=`${e}/services/authorizationService.svg`,wd=`${e}/services/chargebacksService.svg`,Od=`${e}/services/chargesService.svg`,Ld=`${e}/services/destinationsService.svg`,kd=`${e}/services/entityService.svg`,Bd=`${e}/services/invoiceService.svg`,Md=`${e}/services/payoutService.svg`,Ud=`${e}/services/refundsService.svg`,Dd=`${e}/services/usersService.svg`,Fd=`${e}/services/walletService.svg`,Wd=`${e}/services/intentsService.svg`,Gd=`${e}/services/insightsService.svg`,Hd=`${e}/services/retailersService.svg`,Yd=`${e}/services/terminalService.svg`,Vd=`${e}/services/createLead.svg`,zd=`${e}/services/viewLead.svg`,Kd=`${e}/archievedOutlined.svg`,qd=`${e}/closeOutlinedCircle.svg`,Zd=`${e}/dashedOutlinedCircle.svg`,Qd=`${e}/deactivatedCircle.svg`,jd=`${e}/deactivatedOutlinedCircleV2.svg`,Jd=`${e}/exclamationOutlinedCircle.svg`,Xd=`${e}/questionOutlinedCircle.svg`,el=`${e}/outlinedCircle.svg`,tl=`${e}/greenCheck2ACE00.svg`,ol=`${e}/blueCopyIcon.svg`,nl=`${e}/blackLinkIcon.svg`,sl=`${e}/blackSettingsIcon.svg`,cl=`${e}/blackWallet.svg`,pl=`${e}/blueGradientBrushIcon.svg`,al=`${e}/gadientLink.svg`,rl=`${e}/blackDeviceIcon.svg`,xl=`${e}/gradientDeviceIcon.svg`,il=`${e}/gradientSettings.svg`,dl=`${e}/gradientWallet.svg`,ll=`${e}/codeIcon.svg`,ul=`${e}/manyCurrencyCoin.svg`,gl=`${e}/manyCurrencyCoinGradient.svg`,Il=`${e}/blackMobileBatteryIcon.svg`,vl=`${e}/blackMobileSignalIcon.svg`,hl=`${e}/emptyMobileWifiIcon.svg`,ml=`${e}/deemaWithLabel.svg`,Al=`${e}/chargeBackWhiteIcon.svg`,fl=`${e}/blackUnLinkIcon.svg`,El=`${e}/sortDescArrowIcon.svg`,$l=`${e}/sortAscArrowIcon.svg`,Tl=`${e}/closedOutlinedYellowCircle.svg`,Sl=`${e}/deactivatedOrangeCircle.svg`,_l=`${e}/deactivatedCircleV2.svg`,yl=`${e}/exclamationOutlinedOrangeCircle.svg`,Pl=`${e}/activeGreenIcon.svg`,bl=`${e}/activeBlue.svg`,Cl=`${e}/inActiveGreyIcon.svg`,Rl=`${ze}/terminal_link.mp4`,Nl=`${e}/bluePlusIcon.svg`,wl=`${e}/blackSettingsVariant2Icon.svg`,Ol=`${e}/exclamationWhite.svg`,Ll=`${t}/blueCircleWithWhiteCheck.svg`,kl=`${e}/externalLink.svg`,Bl=`${e}/settingsIcon.svg`,Ml=`${e}/flipIcon.svg`,Ul=`${e}/shoppingCart.svg`,Dl=`${e}/verifyAvatar.svg`,Fl=`${e}/helpCircle.svg`,Wl=`${e}/provider/CYBERSOURCE.svg`,Gl=`${e}/provider/MPGS.svg`,Hl=`${e}/provider/NETCETERA.svg`,Yl=`${e}/provider/APPLEPAY.svg`,Vl=`${e}/provider/TAP3DS.svg`,zl=`${e}/provider/BENEFIT_PAY.svg`,Kl=`${e}/provider/BENEFIT.svg`,ql=`${e}/provider/CAREEM_PAY.svg`,Zl=`${e}/provider/DEEMA.svg`,Ql=`${e}/provider/FAWRY.svg`,jl=`${e}/provider/FSS.svg`,Jl=`${e}/provider/KNET.svg`,Xl=`${e}/provider/MEEZA.svg`,eu=`${e}/provider/NGENIUS.svg`,tu=`${e}/provider/NPG.svg`,ou=`${e}/provider/OMAN_NET.svg`,nu=`${e}/provider/PAYPAL.svg`,su=`${e}/provider/POSTPAY.svg`,cu=`${e}/provider/QPAY.svg`,pu=`${e}/provider/SPG.svg`,au=`${e}/provider/STC_PAY.svg`,ru=`${e}/provider/TABBY.svg`,xu=`${e}/provider/TAMARA.svg`,iu=`${e}/provider/TPAY.svg`,du=`${e}/provider/TPG.svg`,lu=`${e}/downloadBlue.svg`,uu=`${e}/eyeBlue.svg`,gu=`${e}/fastBlack.svg`,Iu=`${e}/repeat.svg`,vu=`${e}/shield.svg`,hu=`${e}/fileMinus.svg`,mu=`${e}/percent.svg`,Au=`${e}/cardUpload.svg`,fu=`${e}/startConnector.svg`,Eu=`${e}/endConnector.svg`,$u=`${e}/filledConnector.svg`,Tu=`${e}/dottedConnector.svg`,Su=`${e}/play.svg`,_u=`${e}/merchantAttributes.svg`,yu=`${e}/issuerAttributes.svg`,Pu=`${e}/refresh.svg`,bu=`${e}/riskAttributes.svg`,Cu=`${e}/exclude.svg`,Ru=`${e}/earlySettlements.svg`,Nu=`${e}/financedBy.svg`,wu=`${e}/financeFeatures.svg`,Ou=`${e}/loanAmount.svg`,Lu=`${e}/murabhaFinance.svg`,ku=`${e}/testimonial.svg`,Bu=`${f}/bulk-refund-template.xlsx`,Mu=`${f}/bulk-invoice-template.xlsx`,Uu=`${e}/emptyCopyIcon.svg`,Du=`${e}/deactiveIcon.svg`,Fu=`${e}/disableIcon.svg`,Wu=`${e}/extendIcon.svg`,Gu=`${e}/payers.svg`,Hu=`${e}/gatewayIcon.svg`;var Vu=3,qe=88,Ze=24;var n={view:{code:"VIEW"},sandbox:{code:"SANDBOX"},jsonApi:{code:"JSON API"},reports:{code:"REPORTS"}},Qe={updateMerchant:{code:"UPDATE_MERCHANT"},activateMarketplace:{code:"ACTIVATE_MARKETPLACE"},updateWallet:{code:"UPDATE_WALLET"},updateRisk:{code:"UPDATE_RISK"}},a={updateEntity:{code:"UPDATE ENTITY"},updateBrand:{code:"UPDATE BRAND"},updateUsers:{code:"UPDATE USERS"},createUsers:{code:"CREATE USERS"},updateShareholder:{code:"UPDATE_SHAREHOLDER"},assign:{code:"ASSIGN"},updatePoc:{code:"UPDATE_POC"},...Qe},r={review:{code:"REVIEW"},verify:{code:"VERIFY"},reject:{code:"REJECT"},statusControl:{code:"STATUS_CONTROL"}},d={viewOperator:{code:"VIEW_OPERATOR"},createOperator:{code:"CREATE_OPERATOR"}},o={tokens:{code:"TOKEN",services:{tokens:{code:"TOKENS",functions:{...n}}}},billing:{code:"BILLING",services:{insights:{code:"INSIGHTS"},invoices:{code:"INVOICES",functions:{...n,create:{code:"CREATE"},cancel:{code:"CANCEL"},reminder:{code:"REMINDER"},finalize:{code:"FINALIZE"},refund:{code:"REFUND"},createBulk:{code:"CREATE_BULK_INVOICES"},usersList:{code:"USER_LIST"}}}}},business:{code:"BUSINESS",services:{merchant:{code:"MERCHANT",functions:{...n,...a,...r,businessProfile:{code:"BUSINESS_PROFILE"}}},retailer:{code:"RETAILER",functions:{...n,...a,...r}},businesses:{code:"BUSINESS",functions:{...n,update:{code:"UPDATE"}}}}},acceptance:{code:"ACCEPTANCE",services:{insights:{code:"INSIGHTS",functions:{...n,performanceOverview:{code:"PERFORMANCE_OVERVIEW"},performanceActivity:{code:"PERFORMANCE_ACTIVITY"},performanceHeatmap:{code:"PERFORMANCE_HEATMAP"},chargeStatus:{code:"CHARGE_STATUS"},chargeAcceptanceRate:{code:"CHARGE_ACCEPTANCE_RATE"}}},intents:{code:"INTENTS",functions:{...n,flagBalance:{code:"FLAG BALANCE"},releaseBalance:{code:"RELEASE BALANCE"},charge:{code:"CHARGE"},flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},createCharge:{code:"CREATE_CHARGE"}}},authorization:{code:"AUTHORIZATIONS",functions:{...n,void:{code:"VOID"},charge:{code:"CHARGE"},flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"}}},charges:{code:"CHARGES",functions:{...n,flagBalance:{code:"FLAG BALANCE"},releaseBalance:{code:"RELEASE BALANCE"},refund:{code:"REFUND"},charge:{code:"CHARGE"},flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},createCharge:{code:"CREATE_CHARGE"},viewReceipt:{code:"RECEIPT"}}},destinations:{code:"DESTINATIONS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},releaseBalance:{code:"RELEASE BALANCE"},flagBalance:{code:"FLAG BALANCE"}}},topups:{code:"TOPUPS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},releaseBalance:{code:"RELEASE BALANCE"},flagBalance:{code:"FLAG BALANCE"}}},refunds:{code:"REFUNDS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"},cancel:{code:"CANCEL"},viewReceipt:{code:"RECEIPT"},bulkRefund:{code:"BULK_REFUND"}}},chargeback:{code:"CHARGEBACKS"},settlements:{code:"SETTLEMENTS",functions:{...n}},disputes:{code:"DISPUTES"}}},wallet:{code:"WALLET",services:{businesses:{code:"BUSINESS_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},retailers:{code:"RETAILER_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},customers:{code:"CUSTOMER_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},merchants:{code:"MERCHANT_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},paymentTechnology:{code:"PAYMENT_TECHNOLOGY_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},financialInstitution:{code:"FINANCIAL_INSTITUTION_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},retailCommerce:{code:"RETAIL_COMMERCE_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},app:{code:"APP_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},billing:{code:"BILLING_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},onlineCommerce:{code:"ONLINE_COMMERCE_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},paymentFacilitator:{code:"PAYMENT_FACILITATOR_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}},development:{code:"DEVELOPMENT_WALLET",functions:{...n,statement:{code:"STATEMENT"},summary:{code:"SUMMARY"}}}}},payouts:{code:"PAYOUT",services:{payouts:{code:"PAYOUTS",functions:{...n,bulkReports:{code:"BULK_REPORTS"},flag:{code:"FLAG"}}},reversePayout:{code:"REVERSEPAYOUT"},retailerPayout:{code:"RETAILER_PAYOUTS"},merchantPayout:{code:"MERCHANT_PAYOUTS"}}},protect:{code:"PROTECT",services:{authorizationsFlags:{code:"AUTHORIZE",functions:{...n,releaseFlag:{code:"RELEASE FLAG"}}},chargesFlags:{code:"CHARGE",functions:{...n,releaseFlag:{code:"RELEASE FLAG"}}}}},authentication:{code:"AUTHENTICATION",services:{insights:{code:"INSIGHTS"},authentication:{code:"AUTHENTICATION",functions:{...n}},saveTokens:{code:"SAVE_TOKENS",functions:{...n}},charges:{code:"CHARGES",functions:{...n}},authorizations:{code:"AUTHORISATIONS",functions:{...n}}}},customers:{code:"CUSTOMER"},businesses:{code:"BUSINESS",services:{businesses:{code:"BUSINESSES"}}},reports:{code:"REPORTS",services:{reports:{code:"REPORTS"}}},upload:{code:"UPLOAD",services:{upload:{code:"UPLOAD"}}},paylink:{code:"PAYLINK",services:{links:{code:"LINKS",functions:{...n,create:{code:"CREATE"}}}}},account:{code:"ACCOUNT",services:{account:{code:"ACCOUNT"},users:{code:"USERS",functions:{list:{code:"LIST"},create:{code:"CREATE"},update:{code:"UPDATE"}}},operators:{code:"OPERATORS",functions:{list:{code:"LIST"},copy:{code:"COPY"}}},entity:{code:"ENTITY",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}},brands:{code:"BRAND",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}},shareholders:{code:"SHAREHOLDERS",functions:{view:{code:"VIEW"},create:{code:"CREATE"},update:{code:"UPDATE"}}},walletSettings:{code:"WALLET_SETTINGS",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}}}},order:{code:"ORDER",services:{orders:{code:"ORDERS",functions:{...n,flag:{code:"FLAG"},releaseFlag:{code:"RELEASE FLAG"}}}}},leads:{code:"LEAD",services:{merchantLead:{code:"MERCHANT_LEAD",functions:{...n,convert:{code:"CONVERT"},close:{code:"CLOSE"},update:{code:"UPDATE"},connect:{code:"CONNECT"},create:{code:"CREATE"}}},retailerLead:{code:"RETAILER_LEAD",functions:{...n,update:{code:"UPDATE"},close:{code:"CLOSE"},convert:{code:"CONVERT"},create:{code:"CREATE"}}}}},terminals:{code:"TERMINALS",services:{create:{code:"CREATE"},view:{code:"VIEW"},update:{code:"UPDATE"},deactivate:{code:"DEACTIVATE"}}},slaProcess:{code:"SLA_PROCESS"},orchestration:{code:"ORCHESTRATION",services:{routing:{code:"ROUTING",functions:{...n,create:{code:"CREATE"},update:{code:"UPDATE"}}},gatewayTerminals:{code:"GATEWAY_TERMINALS",functions:{...n,create:{code:"CREATE"},update:{code:"UPDATE"}}},credentials:{code:"CREDENTIALS",functions:{...n,create:{code:"CREATE"},update:{code:"UPDATE"}}},orchestrationSettings:{code:"ORCHESTRATION_SETTINGS",functions:{view:{code:"VIEW"},update:{code:"UPDATE"}}}}},lending:{code:"LENDING"},lendingProvider:{code:"LENDING_PROVIDER"},deema:{code:"DEEMA"},osApp:{code:"OS_APP"},platform:{code:"PLATFORM",services:{platform:{code:"PLATFORM",functions:{...n,...a,...r,...d}},onlineCommerce:{code:"ONLINE_COMMERCE",functions:{...n,...a,...r,...d}},retailCommerce:{code:"RETAIL_COMMERCE",functions:{...n,...a,...r,...d}},app:{code:"APP",functions:{...n,...a,...r,...d}},billing:{code:"BILLING",functions:{...n,...a,...r,...d}}}},risk:{code:"RISK"}},qu={general:{height:`calc(100vh - ${Number(88)+Number(24)}px)`,minWidth:780,maxWidth:1200,minHeight:"50vh",maxHeight:"100vh"},[o.reports.code]:{width:700,minWidth:700,maxWidth:"unset",maxHeight:"unset",height:652},[o.upload.code]:{width:700,minWidth:700,maxWidth:"unset",maxHeight:"unset",height:652},[o.billing.code]:{minWidth:856},[o.paylink.code]:{minWidth:856},[o.business.code]:{width:1400,maxWidth:1400}},Zu=[{code:o.tokens.code,iconUrl:$,toolbarIconUrl:Me},{code:o.billing.code,iconUrl:l,toolbarIconUrl:Oe},{code:o.acceptance.code,iconUrl:u,toolbarIconUrl:Ne},{code:o.wallet.code,iconUrl:I,toolbarIconUrl:we},{code:o.payouts.code,iconUrl:v,toolbarIconUrl:ke},{code:o.protect.code,iconUrl:T,toolbarIconUrl:Be},{code:o.authentication.code,iconUrl:g,toolbarIconUrl:Fe},{code:o.customers.code,iconUrl:S,toolbarIconUrl:Le},{code:o.businesses.code,iconUrl:_,toolbarIconUrl:De},{code:o.reports.code,iconUrl:le,toolbarIconUrl:We},{code:o.upload.code,iconUrl:re,toolbarIconUrl:ae},{code:o.paylink.code,iconUrl:ie,toolbarIconUrl:xe},{code:o.account.code,iconUrl:y,toolbarIconUrl:Ue},{code:o.order.code,iconUrl:Ie,toolbarIconUrl:ve},{code:o.leads.code,iconUrl:ue,toolbarIconUrl:ge},{code:o.terminals.code,iconUrl:Ge,toolbarIconUrl:He},{code:o.slaProcess.code,iconUrl:he,toolbarIconUrl:me},{code:o.orchestration.code,iconUrl:Ae,toolbarIconUrl:fe},{code:o.lending.code,iconUrl:Ee,toolbarIconUrl:m},{code:o.lendingProvider.code,iconUrl:$e,toolbarIconUrl:m},{code:o.deema.code,iconUrl:Te,toolbarIconUrl:Se},{code:o.platform.code,iconUrl:_e,toolbarIconUrl:ye},{code:o.osApp.code,iconUrl:Pe,toolbarIconUrl:be},{code:o.risk.code,iconUrl:Ce,toolbarIconUrl:Re}],Qu=["login"];var Ye=window.__GLOBAL_CONFIG__??{},je=Ye.MW_BASE_URL??import.meta.env.VITE_BASE_URL,Ju=`${je}/api`,Xu=import.meta.env.VITE_ENV,eg=import.meta.env.VITE_TEST_FIXED_SK,tg=Ye.HOST_APP_NAME??import.meta.env.VITE_HOST_APP_NAME,og={TAPSTERS_FRONTEND:"tapsters-frontend",OS_FRONTEND:"os-frontend"};var sg=["FAILED","DECLINED","RESTRICTED","TIMEDOUT","UNKNOWN","INITIATED","CANCELLED","ABANDONED"];var pg={intents:{color:"#1F88D0",border:"0.75px solid #E9F3FA",background:"#FFF"},authorization:{color:"#1F88D0",border:"0.75px solid #E9F3FA",background:"#FFF"},charges:{color:"#1F88D0",background:"rgba(31, 136, 208, 0.10)"},destinations:{color:"#1F88D0",background:"rgba(31, 136, 208, 0.10)"},topups:{color:"#8D8D94",background:"rgba(141, 141, 148, 0.10)"},refunds:{color:"#4E1FD0",background:"rgba(78, 31, 208, 0.10)"},chargebacks:{color:"#F00",background:"rgba(255, 0, 0, 0.10)"},settlements:{color:"#2ACE00",background:"rgba(42, 206, 0, 0.10)"},disputes:{color:"#1F88D0",border:"0.75px solid #E9F3FA",background:"#FFF"},payouts:{color:"#1F88D0",background:"rgba(31, 136, 208, 0.10)"},statement:{color:"#2ACE00",background:"rgba(42, 206, 0, 0.10)"},invoices:{color:"#FF4D00",background:"rgba(255, 77, 0, 0.10)"},links:{color:"#FF4D00",background:"rgba(255, 77, 0, 0.10)"}};var rg=50,xg={AuthorizationsList:{limit:50},ChargesList:{limit:50},DestinationsList:{limit:50,destinationsLimit:20},IntentsList:{limit:50},RefundsList:{limit:50},SettlementsList:{limit:50},TopupsList:{limit:50},AuthenticationsList:{limit:25},InvoicesList:{limit:50},LeadsList:{limit:50,page_no:1},OrdersList:{limit:50},PayoutsList:{limit:50},TokensList:{limit:50},WalletsList:{limit:50,page:1},brands:{limit:50},MerchantsList:{limit:50},TerminalDevices:{limit:50}};var dg="TAPOS_MW_MERCHANT_OR_RETAILER_REQUIRED";var ug={id:{default:"180px",text:"180px",sheet:"180px"},merchant:{default:"115px",text:"150px",sheet:"138px"},brand:{default:"125px",text:"116px",sheet:"116px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"90px",text:"250px",sheet:"250px"},provider:{default:"102px",text:"102px",sheet:"102px"},purpose:{default:"126px",text:"126px",sheet:"126px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"94px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"165px"},amount:{default:"175px",text:"175px",sheet:"175px"},status:{default:"86px",text:"250px",sheet:"250px"},authentication_id:{default:"260px",text:"320px",sheet:"320px"},charge_id:{default:"245px",text:"290px",sheet:"290px"},actions:{default:"100px",text:"100px",sheet:"100px"},date:{default:"150px",text:"170px",sheet:"130px"},channel:{default:"100px",text:"100px",sheet:"100px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"}};var Ig={charge_id:{default:"240px",text:"240px",sheet:"240px"},id:{default:"205px",text:"225px",sheet:"250px"},auto:{default:"70px",text:"90px",sheet:"90px"},balance:{default:"60px",text:"60px",sheet:"150px"},product:{default:"85px",text:"85px",sheet:"85px"},date:{default:"150px",text:"170px",sheet:"130px"},order:{default:"80px",text:"80px",sheet:"80px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},reference:{default:"95px",text:"180px",sheet:"180px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"55px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"150px",sheet:"230px"},amount:{default:"130px",text:"195px",sheet:"150px"},destinations:{default:"70px",text:"240px",sheet:"240px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"70px",text:"100px",sheet:"300px"},merchant:{default:"115px",text:"150px",sheet:"138px"},charge:{default:"150px",text:"150px",sheet:"150px"},track:{default:"220px",text:"220px",sheet:"220px"},payment:{default:"150px",text:"150px",sheet:"150px"},receipt:{default:"85px",text:"150px",sheet:"150px"},fees:{default:"150px",text:"150px",sheet:"150px"},metadata:{default:"185px",text:"185px",sheet:"250px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"180px",text:"180px",sheet:"180px"},actions:{default:"80px",text:"100px",sheet:"100px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},auth_code:{default:"80px",text:"80px",sheet:"80px"},rrn:{default:"100px",text:"100px",sheet:"100px"},transaction_id:{default:"120px",text:"120px",sheet:"315px"},device:{default:"60px",text:"190px",sheet:"235px"},card_no:{default:"120px",text:"120px",sheet:"140px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},brand:{default:"125px",text:"116px",sheet:"116px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},card_number:{default:"120px",text:"120px",sheet:"155px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"},auth_code_reference:{default:"155px",text:"180px",sheet:"250px"}};var hg={code:{default:"90px",text:"90px",sheet:"90px"},message:{default:"160px",text:"160px",sheet:"160px"},id:{default:"205px",text:"225px",sheet:"250px"},product:{default:"85px",text:"85px",sheet:"85px"},date:{default:"150px",text:"170px",sheet:"130px"},reference:{default:"95px",text:"180px",sheet:"250px"},auth_code_reference:{default:"155px",text:"180px",sheet:"250px"},order:{default:"80px",text:"80px",sheet:"80px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},source:{default:"70px",text:"125px",sheet:"1250px"},authenticate:{default:"55px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"150px",sheet:"165px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"170px"},eci:{default:"150px",text:"150px",sheet:"72px"},amount:{default:"130px",text:"195px",sheet:"550px"},destinations:{default:"90px",text:"240px",sheet:"340px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"70px",text:"300px",sheet:"170px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"},payout_status:{default:"70px",text:"70px",sheet:"130px"},merchant:{default:"115px",text:"150px",sheet:"138px"},charge:{default:"150px",text:"150px",sheet:"150px"},track:{default:"220px",text:"220px",sheet:"220px"},payment:{default:"150px",text:"150px",sheet:"150px"},receipt:{default:"85px",text:"150px",sheet:"165px"},fees:{default:"150px",text:"150px",sheet:"170px"},invoice_reference:{default:"185px",text:"180px",sheet:"275px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"130px",text:"130px",sheet:"130px"},actions:{default:"100px",text:"100px",sheet:"85px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},card_number:{default:"120px",text:"120px",sheet:"155px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},auth_code:{default:"80px",text:"80px",sheet:"100px"},rrn:{default:"100px",text:"100px",sheet:"105px"},device:{default:"70px",text:"190px",sheet:"235px"},card_no:{default:"120px",text:"120px",sheet:"200px"},meta:{default:"80px",text:"52px",sheet:"275px"},action_icon:{default:"30px",text:"30px",sheet:"30px"},consolidated_amount:{default:"180px",text:"180px",sheet:"150px"},customer_amount:{default:"150px",text:"150px",sheet:"150px"},charge_amount:{default:"150px",text:"150px",sheet:"150px"},settlement_amount:{default:"150px",text:"150px",sheet:"150px"},acquirer_ref:{default:"125px",text:"125px",sheet:"145px"},order_ref:{default:"200px",text:"200px",sheet:"220px"},payment_ref:{default:"150px",text:"150px",sheet:"170px"},generic_ref:{default:"125px",text:"125px",sheet:"145px"},brand:{default:"125px",text:"116px",sheet:"116px"}};var Ag={id:{default:"205px",text:"225px",sheet:"250px"},reference_order:{default:"95px",text:"180px",sheet:"250px"},date:{default:"150px",text:"170px",sheet:"130px"},created:{default:"150px",text:"170px",sheet:"130px"},receipt:{default:"85px",text:"150px",sheet:"165px"},reference:{default:"95px",text:"180px",sheet:"250px"},auth_code_reference:{default:"155px",text:"180px",sheet:"250px"},order:{default:"80px",text:"80px",sheet:"80px"},charge_order:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},chargeId:{default:"225px",text:"225px",sheet:"225px"},chargeDate:{default:"150px",text:"150px",sheet:"130px"},device:{default:"70px",text:"250px",sheet:"235px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"55px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"165px"},amount:{default:"130px",text:"195px",sheet:"150px"},status:{default:"70px",text:"100px",sheet:"170px"},chargeStatus:{default:"150px",text:"250px",sheet:"250px"},merchant:{default:"115px",text:"150px",sheet:"138px"},actions:{default:"100px",text:"100px",sheet:"85px"},destination:{default:"100px",text:"100px",sheet:"100px"},retailer:{default:"100px",text:"100px",sheet:"100px"},payout:{default:"180px",text:"180px",sheet:"180px"},brand:{default:"125px",text:"116px",sheet:"116px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},card_number:{default:"120px",text:"120px",sheet:"155px"},card_no:{default:"120px",text:"120px",sheet:"200px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},code:{default:"90px",text:"90px",sheet:"90px"},message:{default:"160px",text:"160px",sheet:"160px"},product:{default:"85px",text:"85px",sheet:"85px"},destinations:{default:"90px",text:"240px",sheet:"340px"},topup:{default:"20px",text:"95px",sheet:"95px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"},charge:{default:"150px",text:"150px",sheet:"150px"},track:{default:"220px",text:"220px",sheet:"220px"},payment:{default:"150px",text:"150px",sheet:"150px"},fees:{default:"150px",text:"150px",sheet:"170px"},invoice_reference:{default:"185px",text:"180px",sheet:"275px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"130px",text:"130px",sheet:"130px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},auth_code:{default:"80px",text:"80px",sheet:"100px"},rrn:{default:"100px",text:"100px",sheet:"105px"},meta:{default:"80px",text:"52px",sheet:"275px"},action_icon:{default:"30px",text:"30px",sheet:"30px"},consolidated_amount:{default:"180px",text:"180px",sheet:"150px"},customer_amount:{default:"150px",text:"150px",sheet:"150px"},charge_amount:{default:"150px",text:"150px",sheet:"150px"},settlement_amount:{default:"150px",text:"150px",sheet:"150px"},acquirer_ref:{default:"125px",text:"125px",sheet:"145px"},order_ref:{default:"200px",text:"200px",sheet:"220px"},payment_ref:{default:"150px",text:"150px",sheet:"170px"},generic_ref:{default:"125px",text:"125px",sheet:"145px"},payout_status:{default:"70px",text:"120px",sheet:"130px"},reference_transfer:{default:"205px",text:"225px",sheet:"250px"}};var Eg={created:{default:"170px",text:"170px",sheet:"170px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},amount:{default:"195px",text:"250px",sheet:"250px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Tg={id:{default:"180px",text:"180px",sheet:"180px"},link:{default:"145px",text:"145px",sheet:"350px"},date:{default:"150px",text:"150px",sheet:"130px"},order:{default:"80px",text:"80px",sheet:"260px"},customer:{default:"180px",text:"180px",sheet:"180px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},merchant:{default:"180px",text:"180px",sheet:"92px"},amount:{default:"195px",text:"195px",sheet:"150px"},channel:{default:"90px",text:"90px",sheet:"156px"},due:{default:"92px",text:"340px",sheet:"108px"},status:{default:"90px",text:"170px",sheet:"170px"},actions:{default:"100px",text:"100px",sheet:"100px"},paymentMethod:{default:"110px",text:"130px",sheet:"122px"},cardNo:{default:"130px",text:"130px",sheet:"130px"},chargeId:{default:"225px",text:"225px",sheet:"230px"},receiptId:{default:"180px",text:"180px",sheet:"180px"},reference_no:{default:"225px",text:"225px",sheet:"225px"},invoice_number:{default:"160px",text:"160px",sheet:"160px"},auth_code:{default:"80px",text:"80px",sheet:"80px"},metadata:{default:"180px",text:"180px",sheet:"180px"}};var _g={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},brand:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Pg={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},authenticate:{default:"150px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},destinations:{default:"70px",text:"240px",sheet:"240px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Cg={id:{default:"225px",text:"225px",sheet:"225px"},date:{default:"150px",text:"150px",sheet:"150px"},wallet:{default:"150px",text:"250px",sheet:"250px"},bankAccount:{default:"240px",text:"250px",sheet:"250px"},amount:{default:"210px",text:"210px",sheet:"210px"},status:{default:"51px",text:"250px",sheet:"250px"},report:{default:"56px",text:"100px",sheet:"100px"},actions:{default:"100px",text:"100px",sheet:"100px"},referenceId:{default:"72px",text:"140px",sheet:"100px"},currency:{default:"80px",text:"80px",sheet:"80px"},beneficiary_name:{default:"180px",text:"180px",sheet:"180px"}};var Ng={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"150px",text:"250px",sheet:"250px"},auto:{default:"150px",text:"250px",sheet:"250px"},balance:{default:"50px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Og={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},destinations:{default:"70px",text:"240px",sheet:"240px"},topup:{default:"20px",text:"95px",sheet:"95px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var kg={charge_id:{default:"240px",text:"240px",sheet:"240px"},id:{default:"205px",text:"225px",sheet:"250px"},date:{default:"150px",text:"170px",sheet:"130px"},order:{default:"80px",text:"80px",sheet:"80px"},product:{default:"85px",text:"85px",sheet:"85px"},customer:{default:"140px",text:"180px",sheet:"600px"},customer_id:{default:"180px",text:"180px",sheet:"270px"},customer_name:{default:"180px",text:"180px",sheet:"155px"},customer_email:{default:"180px",text:"180px",sheet:"200px"},customer_phone:{default:"180px",text:"180px",sheet:"150px"},device:{default:"100px",text:"200px",sheet:"235px"},source:{default:"70px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"200px",sheet:"200px"},payment_agreement:{default:"50px",text:"200px",sheet:"165px"},payment_initiated:{default:"150px",text:"150px",sheet:"150px"},payment_issuers:{default:"150px",text:"150px",sheet:"430px"},payment_method:{default:"150px",text:"150px",sheet:"145px"},payment_type:{default:"150px",text:"150px",sheet:"120px"},payment_scheme:{default:"150px",text:"150px",sheet:"145px"},auth_status:{default:"150px",text:"150px",sheet:"165px"},auth_type:{default:"150px",text:"150px",sheet:"155px"},eci:{default:"150px",text:"150px",sheet:"72px"},amount:{default:"130px",text:"195px",sheet:"150px"},payouts:{default:"195px",text:"195px",sheet:"300px"},reason:{default:"170px",text:"240px",sheet:"160px"},destinations:{default:"70px",text:"240px",sheet:"340px"},balance:{default:"110px",text:"150px",sheet:"150px"},status:{default:"100px",text:"100px",sheet:"170px"},merchant:{default:"115px",text:"150px",sheet:"138px"},reference:{default:"95px",text:"180px",sheet:"250px"},fees:{default:"100px",text:"200px",sheet:"200px"},metadata:{default:"185px",text:"180px",sheet:"180px"},settlement:{default:"200px",text:"200px",sheet:"200px"},gateway:{default:"180px",text:"180px",sheet:"180px"},actions:{default:"100px",text:"100px",sheet:"85px"},payment_id:{default:"150px",text:"150px",sheet:"150px"},auth_code:{default:"80px",text:"80px",sheet:"80px"},rrn:{default:"100px",text:"100px",sheet:"100px"},receipt_id:{default:"100px",text:"150px",sheet:"150px"},card_no:{default:"120px",text:"120px",sheet:"200px"},card_number:{default:"120px",text:"120px",sheet:"155px"},name_on_card:{default:"120px",text:"120px",sheet:"270px"},meta:{default:"52px",text:"52px",sheet:"52px"},charge_meta:{default:"100px",text:"100px",sheet:"250px"},brand:{default:"125px",text:"116px",sheet:"116px"},issuer_response:{default:"70px",text:"70px",sheet:"270px"},acquirer_response:{default:"70px",text:"70px",sheet:"253px"}};var Mg={id:{default:"180px",text:"180px",sheet:"180px"},payouts:{default:"150px",text:"250px",sheet:"250px"},reference:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"100px"},device:{default:"150px",text:"250px",sheet:"250px"},source:{default:"70px",text:"125px",sheet:"125px"},purpose:{default:"150px",text:"250px",sheet:"250px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Dg={id:{default:"180px",text:"180px",sheet:"180px"},created:{default:"170px",text:"170px",sheet:"170px"},charge_order:{default:"150px",text:"250px",sheet:"250px"},customer:{default:"180px",text:"180px",sheet:"180px"},device:{default:"150px",text:"250px",sheet:"250px"},amount:{default:"195px",text:"195px",sheet:"195px"},source:{default:"94px",text:"125px",sheet:"125px"},authenticate:{default:"18px",text:"250px",sheet:"250px"},payment_agreement:{default:"50px",text:"250px",sheet:"250px"},status:{default:"150px",text:"250px",sheet:"250px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Wg={id:{default:"180px",text:"180px",sheet:"180px"},type:{default:"150px",text:"250px",sheet:"250px"},wallet:{default:"150px",text:"250px",sheet:"250px"},source:{default:"92px",text:"125px",sheet:"125px"},amount:{default:"195px",text:"195px",sheet:"195px"},actions:{default:"100px",text:"100px",sheet:"100px"}};var Hg={id:{default:"180px",text:"180px",sheet:"180px"},amount:{default:"220px",text:"220px",sheet:"220px"},actions:{default:"70px",text:"70px",sheet:"70px"},date:{default:"130px",text:"130px",sheet:"130px"},description:{default:"210px",text:"210px",sheet:"210px"},transactions:{default:"90px",text:"90px",sheet:"90px"}};var Vg={id:{default:"225px",text:"225px",sheet:"225px"},postdate:{default:"170px",text:"170px",sheet:"170px"},date:{default:"110px",text:"110px",sheet:"110px"},description:{default:"210px",text:"210px",sheet:"210px"},receipt:{default:"80px",text:"150px",sheet:"150px"},authenticate:{default:"70px",text:"100px",sheet:"100px"},debit:{default:"400px",text:"400px",sheet:"400px"},source:{default:"75px",text:"125px",sheet:"125px"},actions:{default:"100px",text:"100px",sheet:"100px"},amount:{default:"195px",text:"195px",sheet:"195px"},reference:{default:"95px",text:"110px",sheet:"110px"},card:{default:"120px",text:"120px",sheet:"120px"}};var Kg={id:{default:"225px",text:"225px",sheet:"220px"},lead_id:{default:"180px",text:"180px",sheet:"220px"},merchant_id:{default:"180px",text:"180px",sheet:"220px"},brand_id:{default:"180px",text:"180px",sheet:"220px"},individual_email:{default:"180px",text:"180px",sheet:"250px"},personal_id_type:{default:"180px",text:"180px",sheet:"220px"},wallet_currency:{default:"120px",text:"180px",sheet:"140px"},tax_number:{default:"180px",text:"180px",sheet:"140px"},wallet_id:{default:"180px",text:"180px",sheet:"220px"},business_id:{default:"180px",text:"180px",sheet:"220px"},board_id:{default:"180px",text:"180px",sheet:"220px"},history:{default:"180px",text:"180px",sheet:"130px"},bank_account:{default:"120px",text:"180px",sheet:"110px"},individual_phone_number:{default:"180px",text:"180px",sheet:"190px"},entity_legal_name:{default:"180px",text:"180px",sheet:"250px"},entity_id:{default:"180px",text:"180px",sheet:"220px"},entity:{default:"146px",text:"180px",sheet:"250px"},created:{default:"172px",text:"172px",sheet:"172px"},brands:{default:"140px",text:"140px",sheet:"250px"},marketplace:{default:"110px",text:"110px",sheet:"104px"},individuals:{default:"128px",text:"185px",sheet:"203px"},identification_number:{default:"150px",text:"150px",sheet:"150px"},segments:{default:"70px",text:"180px",sheet:"180px"},psp:{default:"62px",text:"180px",sheet:"180px"},status:{default:"64px",text:"100px",sheet:"172px"},partners:{default:"77px",text:"100px",sheet:"100px"},actions:{default:"100px",text:"100px",sheet:"70px"},avatar:{default:"40px",text:"40px",sheet:"40px"},user_name:{default:"150px",text:"180px",sheet:"180px"},channels:{default:"80px",text:"120px",sheet:"440px"},merchant:{default:"167px",text:"180px",sheet:"167px"},business_name:{default:"220px",text:"220px",sheet:"220px"},apps:{default:"120px",text:"120px",sheet:"120px"},assignee:{default:"96px",text:"100px",sheet:"172px"},team:{default:"88px",text:"100px",sheet:"172px"}};var Zg={device:{default:"120px",text:"120px",sheet:"120px"},terminalId:{default:"100px",text:"100px",sheet:"100px"},merchantId:{default:"120px",text:"120px",sheet:"120px"},type:{default:"80px",text:"80px",sheet:"80px"},platform:{default:"100px",text:"100px",sheet:"100px"},branding:{default:"80px",text:"80px",sheet:"80px"},features:{default:"100px",text:"100px",sheet:"100px"},acceptance:{default:"80px",text:"80px",sheet:"80px"},brand:{default:"80px",text:"80px",sheet:"80px"},address:{default:"160px",text:"160px",sheet:"160px"},status:{default:"80px",text:"80px",sheet:"80px"},actions:{default:"80px",text:"80px",sheet:"80px"},charges:{default:"180px",text:"180px",sheet:"180px"},chargesTransactions:{default:"70px",text:"70px",sheet:"70px"}};var jg={id:{default:"111px",text:"111px",sheet:"215px"},acquirer_id:{default:"197px",text:"197px",sheet:"197px"},provider_id:{default:"88px",text:"88px",sheet:"88px"},merchant_id:{default:"160px",text:"160px",sheet:"160px"},acquirer_merchant_id:{default:"180px",text:"180px",sheet:"180px"},acceptance_mode:{default:"132px",text:"132px",sheet:"132px"},transaction_source:{default:"136px",text:"136px",sheet:"132px"},transaction_mode:{default:"132px",text:"132px",sheet:"132px"},charge_currency:{default:"132px",text:"132px",sheet:"132px"},settle_currency:{default:"120px",text:"120px",sheet:"120px"},gateway_type:{default:"132px",text:"132px",sheet:"100px"},gateway:{default:"150px",text:"150px",sheet:"150px"},three_ds:{default:"120px",text:"120px",sheet:"150px"},status:{default:"149px",text:"149px",sheet:"100px"},live_mode:{default:"100px",text:"100px",sheet:"100px"},add_time:{default:"160px",text:"160px",sheet:"160px"},mod_time:{default:"160px",text:"160px",sheet:"160px"},actions:{default:"60px",text:"60px",sheet:"60px"}};var Xg={id:{default:"112px",text:"112px",sheet:"215px"},name:{default:"225px",text:"225px",sheet:"180px"},terminal_id:{default:"118px",text:"118px",sheet:"160px"},rank:{default:"66px",text:"66px",sheet:"88px"},acceptance_rate:{default:"107px",text:"107px",sheet:"132px"},route_issuer_scheme:{default:"112px",text:"112px",sheet:"140px"},acceptance_mode:{default:"132px",text:"132px",sheet:"140px"},transaction_mode:{default:"128px",text:"128px",sheet:"140px"},active:{default:"87px",text:"87px",sheet:"120px"},add_time:{default:"160px",text:"160px",sheet:"160px"},mod_time:{default:"160px",text:"160px",sheet:"160px"},live_mode:{default:"100px",text:"100px",sheet:"110px"},status:{default:"112px",text:"112px",sheet:"140px"},route_ref:{default:"140px",text:"140px",sheet:"160px"},filter_usage:{default:"110px",text:"110px",sheet:"120px"},route_issuer_id:{default:"140px",text:"140px",sheet:"160px"},route_issuer_bin:{default:"140px",text:"140px",sheet:"160px"},route_issuer_brand:{default:"140px",text:"140px",sheet:"160px"},route_issuer_category:{default:"150px",text:"150px",sheet:"170px"},route_issuer_country:{default:"150px",text:"150px",sheet:"170px"},route_issuer_type:{default:"140px",text:"140px",sheet:"160px"},route_merchant:{default:"150px",text:"150px",sheet:"170px"},route_merchant_bank:{default:"150px",text:"150px",sheet:"170px"},route_merchant_country:{default:"150px",text:"150px",sheet:"170px"},route_merchant_currency:{default:"150px",text:"150px",sheet:"170px"},route_merchant_mcc:{default:"140px",text:"140px",sheet:"160px"},route_merchant_sector:{default:"150px",text:"150px",sheet:"170px"},route_transaction_currency:{default:"160px",text:"160px",sheet:"180px"},route_keywords:{default:"160px",text:"160px",sheet:"180px"},keyword_usage:{default:"150px",text:"150px",sheet:"170px"},exclude_condition:{default:"140px",text:"140px",sheet:"140px"},exclude_issuer_scheme:{default:"156px",text:"156px",sheet:"160px"},exclude_issuer_bin:{default:"150px",text:"150px",sheet:"160px"},exclude_issuer_country:{default:"160px",text:"160px",sheet:"170px"},exclude_issuer_type:{default:"150px",text:"150px",sheet:"160px"},exclude_route_merchant:{default:"160px",text:"160px",sheet:"170px"},exclude_merchant_mcc:{default:"160px",text:"160px",sheet:"170px"},exclude_merchant_country:{default:"177px",text:"177px",sheet:"180px"},exclude_merchant_currency:{default:"183px",text:"183px",sheet:"180px"},exclude_merchant_bank:{default:"160px",text:"160px",sheet:"170px"},exclude_merchant_sector:{default:"170px",text:"170px",sheet:"180px"},actions:{default:"60px",text:"60px",sheet:"60px"}};var Je={AE:"UTC +04:00",SA:"UTC +03:00",KW:"UTC +03:00",OM:"UTC +04:00",YM:"UTC +03:00",EG:"UTC +03:00",BH:"UTC +03:00",JO:"UTC +03:00",LB:"UTC +03:00",QA:"UTC +03:00",GB:"UTC +01:00",IE:"UTC +01:00",FR:"UTC +02:00",NL:"UTC +02:00",DE:"UTC +02:00",ES:"UTC +02:00",IT:"UTC +02:00",PK:"UTC +05:00",IN:"UTC +05:00",SG:"UTC +08:00",US:"UTC -05:00",UTC:"UTC +00:00"},t0=Je.UTC,o0="SA",n0="Asia/Riyadh",s0="Saudi Arabia",c0=60;var a0={SAR:{decimals:2,country:"SA"},BHD:{decimals:3,country:"BH"},EGP:{decimals:2,country:"EG"},JOD:{decimals:3,country:"JO"},KWD:{decimals:3,country:"KW"},LBP:{decimals:2,country:"LB"},OMR:{decimals:3,country:"OM"},AED:{decimals:2,country:"AE"},PKR:{decimals:2,country:"PK"},INR:{decimals:2,country:"IN"},SGD:{decimals:2,country:"SG"},USD:{decimals:2,country:"US"},GBP:{decimals:2,country:"GB"},EUR:{decimals:2,country:"GR"},QAR:{decimals:2,country:"QA"}},r0=["SAR","KWD","OMR","EGP","BHD","USD","AED","QAR","PKR","JOD","EUR","INR","GBP"],x0={regional:["SAR","KWD","OMR","EGP","BHD","AED","QAR","JOD"],global:["USD","GBP","EUR","PKR","INR"]};var d0=52,l0=70,u0=57,g0=200,I0=5,v0=40,h0=20,m0=28;var f0={COUNT:"count",AMOUNT:"amount"},E0={count:"transaction",amount:"amount"};var x={DEVICE:`${e}/device.svg`,CARD:`${e}/payment-method/card.svg`,PASS_THRU_WALLET:`${e}/passThruWallet.svg`,EXPRESS_CHECKOUT:`${e}/express_checkout.svg`,STORED_VALUE_WALLET:`${e}/storedValueWallet.svg`,CASH_WALLET:`${e}/cash.svg`,BUY_NOW_PAY_LATER:`${e}/buyNowPayLater.svg`},S0=[{name:"CARD",label:"Card",icon:x.CARD},{name:"EXPRESS",label:"Express Checkout",icon:x.EXPRESS_CHECKOUT},{name:"DEVICE",label:"Device",icon:x.DEVICE},{name:"PT_WALLET",label:"Pass-Thru Wallet",icon:x.PASS_THRU_WALLET},{name:"SV_WALLET",label:"Stored Value Wallet",icon:x.STORED_VALUE_WALLET},{name:"BNPL",label:"Buy Now Pay Later",icon:x.BUY_NOW_PAY_LATER},{name:"CASH",label:"Cash Wallet",icon:x.CASH_WALLET}],Xe="customer",et="merchant",_0=[{key:Xe,value:"true",label:"Customer"},{key:et,value:"false",label:"Merchant"}],y0=[{key:"Regional",label:"Regional"},{key:"Global",label:"Global"},{key:"Local",label:"Local"}],P0=[{key:"3DS",label:"3DS"},{key:"Device Biometric",label:"Biometric"},{key:"Non-3DS",label:"Non-3DS"},{key:"Attempted",label:"Attempted"},{key:"Undetermined",label:"Undetermined"}];var R0={PAYMENT_GATEWAY_PROVIDER:B,PAYMENT_TECHNOLOGY:W,PAYMENT_TERMINAL_PROVIDER:G,PAYMENT_PROCESSOR:D,PAYMENT_SCHEME:F,PAYMENT_ISSUER:M,PAYMENT_ACQUIRER:L,PAYMENT_METHOD:U,PAYMENT_FACILITATOR:k,APP_PLATFORM:N,RETAIL_PLATFORM:H,COMMERCE_PLATFORM:O,BILLING_PLATFORM:w,BUSINESS:P,DEVELOPMENT_HOUSE:b,MASTER_ORCHESTRATOR:C,PLATFORM:R},N0={PAYMENT_GATEWAY_PROVIDER:X,PAYMENT_TECHNOLOGY:se,PAYMENT_TERMINAL_PROVIDER:ce,PAYMENT_PROCESSOR:oe,PAYMENT_SCHEME:ne,PAYMENT_ISSUER:ee,PAYMENT_ACQUIRER:j,PAYMENT_METHOD:te,PAYMENT_FACILITATOR:J,APP_PLATFORM:q,RETAIL_PLATFORM:pe,COMMERCE_PLATFORM:Q,BILLING_PLATFORM:Z,BUSINESS:Y,DEVELOPMENT_HOUSE:V,MASTER_ORCHESTRATOR:z,PLATFORM:K},p={PLATFORM:"platformId",DEVELOPMENT_HOUSE:"developmentHouseId",PAYMENT_TECHNOLOGY:"paymentTechnology",PAYMENT_ISSUER:"paymentIssuerId",PAYMENT_INSTITUTION:"paymentInstitution"},w0={PLATFORM:p.PLATFORM,RETAIL_PLATFORM:p.PLATFORM,BILLING_PLATFORM:p.PLATFORM,COMMERCE_PLATFORM:p.PLATFORM,APP_PLATFORM:p.PLATFORM,DEVELOPMENT_HOUSE:p.DEVELOPMENT_HOUSE,PAYMENT_TECHNOLOGY:p.PAYMENT_TECHNOLOGY,PAYMENT_ISSUER:p.PAYMENT_ISSUER,PAYMENT_ACQUIRER:p.PAYMENT_INSTITUTION,PAYMENT_FACILITATOR:p.PAYMENT_INSTITUTION},O0=["RETAIL_PLATFORM","COMMERCE_PLATFORM","BILLING_PLATFORM","APP_PLATFORM"],L0=["PAYMENT_FACILITATOR","PAYMENT_ACQUIRER"],k0=["PAYMENT_TECHNOLOGY"],B0=["PAYMENT_ISSUER"],M0=["DEVELOPMENT_HOUSE"];var D0={bgColor:"white",borderColor:"#F2F2F2",textColor:"#20232B33"};var W0={ZERO:0,FIVE:5,TEN:10,FIFTEEN:15};var s={CHARGE:"CHARGE",AUTHORIZE:"AUTHORIZE",REFUND:"REFUND",CHARGEBACKS:"CHARGEBACKS",DESTINATIONS:"DESTINATIONS",REVERSED_DESTINATIONS:"REVERSED_DESTINATIONS",STATEMENT:"STATEMENT",STATEMENT_SUMMARY:"STATEMENT_SUMMARY",INVOICE:"INVOICE",PAYOUT:"PAYOUT",MERCHANT_PAYOUT:"MERCHANT_PAYOUT",RETAILER_PAYOUT:"RETAILER_PAYOUT",AUTHENTICATION:"AUTHENTICATION"},V0={[o.acceptance.services.charges.code]:[s.CHARGE],[o.acceptance.services.authorization.code]:[s.AUTHORIZE],[o.acceptance.services.refunds.code]:[s.REFUND],[o.acceptance.services.chargeback.code]:[s.CHARGEBACKS],[o.acceptance.services.destinations.code]:[s.DESTINATIONS,s.REVERSED_DESTINATIONS],[o.acceptance.code]:[s.CHARGE,s.AUTHORIZE,s.REFUND,s.CHARGEBACKS,s.DESTINATIONS,s.REVERSED_DESTINATIONS],[o.wallet.services.merchants.functions.statement.code]:[s.STATEMENT],[o.wallet.services.merchants.functions.summary.code]:[s.STATEMENT_SUMMARY],[o.wallet.code]:[s.STATEMENT,s.STATEMENT_SUMMARY],[o.billing.services.invoices.code]:[s.INVOICE],[o.billing.code]:[s.INVOICE],[o.payouts.services.payouts.code]:[s.PAYOUT],[o.payouts.services.merchantPayout.code]:[s.MERCHANT_PAYOUT],[o.payouts.services.retailerPayout.code]:[s.RETAILER_PAYOUT],[o.payouts.code]:[s.PAYOUT,s.MERCHANT_PAYOUT,s.RETAILER_PAYOUT],[o.authentication.code]:[s.AUTHENTICATION]},z0=[{code:o.billing.code,name:"Billing",icon:l,services:[{name:"Invoices",code:o.billing.services.invoices.code}]},{code:o.acceptance.code,name:"Acceptance",icon:u,services:[{name:"Authorisations",code:o.acceptance.services.authorization.code},{name:"Charges",code:o.acceptance.services.charges.code},{name:"Refunds",code:o.acceptance.services.refunds.code},{name:"Chargebacks",code:o.acceptance.services.chargeback.code},{name:"Destinations",code:o.acceptance.services.destinations.code}]},{code:o.wallet.code,name:"Wallet",icon:I,services:[{name:"Aggregated Statement",code:o.wallet.services.merchants.functions.summary.code},{name:"Detailed Statement",code:o.wallet.services.merchants.functions.statement.code}]},{code:o.payouts.code,name:"Payouts",icon:v,services:[{name:"Payouts",code:o.payouts.services.payouts.code},{name:"Merchant Payouts",code:o.payouts.services.merchantPayout.code},{name:"Retailer Payouts",code:o.payouts.services.retailerPayout.code}]},{code:o.authentication.code,name:"Authentication",icon:g,services:[{name:"Authentication",code:o.authentication.services.authentication.code}]}];var q0={COMMERCIAL_REGISTRATION:"commercial_registration",FREELANCER:"freelancer",ARTICLE_OF_ASSOCIATION:"article_of_association"};var tt=["AUTHENTICATED"],ot=["PENDING","ATTEMPTED","FAILED","REJECTED","UNAVAILABLE","AUTHENTICATION_NOT_SUPPORTED_BY_SCHEME","AUTHENTICATED_AUTHORIZE_FAILED","EXEMPTED","INITIATED"],Q0=[...tt,...ot],nt=(A=>(A.Challenge="C",A.Frictionless="F",A))(nt||{}),j0={C:"Challenge",F:"Frictionless"};var X0=["SA","KW","AE","BH","QA","OM","EG","JO","LB"];var oI={csv:de,xls:h,xlsx:h,zip:E};
2
+ export{Jt as $,Jo as $a,Xn as $b,Ws as $c,xc as $d,le as $e,Jp as $f,Ma as $g,Mr as $h,yx as $i,yi as $j,Sd as $k,Sl as $l,Su as $m,kg as $n,j0 as $o,_t as A,yo as Aa,yn as Ab,Ts as Ac,q as Ad,Bc as Ae,_p as Af,va as Ag,ir as Ah,ix as Ai,Xx as Aj,Xi as Ak,jd as Al,jl as Am,d as An,f0 as Ao,yt as B,Po as Ba,Pn as Bb,g as Bc,Zs as Bd,Mc as Be,yp as Bf,_e as Bg,dr as Bh,dx as Bi,ei as Bj,ed as Bk,Jd as Bl,Jl as Bm,o as Bn,E0 as Bo,Pt as C,bo as Ca,bn as Cb,I as Cc,Z as Cd,Uc as Ce,Pp as Cf,ye as Cg,lr as Ch,lx as Ci,ti as Cj,td as Ck,Xd as Cl,Xl as Cm,qu as Cn,x as Co,bt as D,Co as Da,Cn as Db,v as Dc,Q as Dd,Dc as De,bp as Df,Pe as Dg,ur as Dh,ux as Di,oi as Dj,od as Dk,el as Dl,eu as Dm,Zu as Dn,S0 as Do,Ct as E,Ro as Ea,Rn as Eb,T as Ec,Qs as Ed,Fc as Ee,Cp as Ef,be as Eg,gr as Eh,gx as Ei,ni as Ej,nd as Ek,tl as El,tu as Em,Qu as En,Xe as Eo,Rt as F,No as Fa,Nn as Fb,S as Fc,js as Fd,Wc as Fe,Rp as Ff,Ce as Fg,Ir as Fh,Ne as Fi,si as Fj,sd as Fk,ol as Fl,ou as Fm,je as Fn,et as Fo,Nt as G,E as Ga,wn as Gb,_ as Gc,j as Gd,Gc as Ge,Np as Gf,Re as Gg,vr as Gh,we as Gi,ci as Gj,cd as Gk,nl as Gl,nu as Gm,Ju as Gn,_0 as Go,wt as H,wo as Ha,On as Hb,y as Hc,J as Hd,Hc as He,wp as Hf,ha as Hg,hr as Hh,Oe as Hi,pi as Hj,pd as Hk,sl as Hl,su as Hm,Xu as Hn,y0 as Ho,Ot as I,Oo as Ia,Ln as Ib,Ss as Ic,X as Id,ae as Ie,Op as If,ma as Ig,mr as Ih,Le as Ii,ai as Ij,ad as Ik,cl as Il,cu as Im,eg as In,P0 as Io,Lt as J,Lo as Ja,kn as Jb,_s as Jc,ee as Jd,re as Je,Lp as Jf,Aa as Jg,Ar as Jh,ke as Ji,ri as Jj,rd as Jk,pl as Jl,pu as Jm,tg as Jn,R0 as Jo,kt as K,ko as Ka,Bn as Kb,ys as Kc,te as Kd,xe as Ke,kp as Kf,fa as Kg,fr as Kh,Be as Ki,xi as Kj,xd as Kk,al as Kl,au as Km,og as Kn,N0 as Ko,Bt as L,Bo as La,Mn as Lb,Ps as Lc,oe as Ld,ie as Le,Bp as Lf,Ea as Lg,Er as Lh,Me as Li,ii as Lj,id as Lk,rl as Ll,ru as Lm,sg as Ln,p as Lo,Mt as M,Mo as Ma,Un as Mb,bs as Mc,ne as Md,Yc as Me,Mp as Mf,$a as Mg,$r as Mh,Ue as Mi,di as Mj,dd as Mk,xl as Ml,xu as Mm,pg as Mn,w0 as Mo,Ut as N,Uo as Na,Dn as Nb,Cs as Nc,se as Nd,Vc as Ne,Up as Nf,Ta as Ng,Tr as Nh,De as Ni,li as Nj,ld as Nk,il as Nl,iu as Nm,rg as Nn,O0 as No,Dt as O,Do as Oa,Fn as Ob,Rs as Oc,ce as Od,zc as Oe,Dp as Of,Sa as Og,Sr as Oh,Fe as Oi,ui as Oj,Ge as Ok,dl as Ol,du as Om,xg as On,L0 as Oo,Ft as P,Fo as Pa,Wn as Pb,Ns as Pc,pe as Pd,Kc as Pe,Fp as Pf,_a as Pg,_r as Ph,We as Pi,gi as Pj,He as Pk,ll as Pl,lu as Pm,dg as Pn,k0 as Po,Wt as Q,Wo as Qa,Gn as Qb,ws as Qc,Js as Qd,qc as Qe,Wp as Qf,ya as Qg,yr as Qh,Ix as Qi,Ii as Qj,ud as Qk,ul as Ql,uu as Qm,ug as Qn,B0 as Qo,Gt as R,Go as Ra,Hn as Rb,Os as Rc,Xs as Rd,Zc as Re,Gp as Rf,Pa as Rg,Pr as Rh,vx as Ri,vi as Rj,gd as Rk,gl as Rl,gu as Rm,Ig as Rn,M0 as Ro,Ht as S,Ho as Sa,Yn as Sb,Ls as Sc,ec as Sd,Qc as Se,Hp as Sf,ba as Sg,br as Sh,hx as Si,hi as Sj,Id as Sk,Il as Sl,Iu as Sm,hg as Sn,D0 as So,Yt as T,Yo as Ta,Vn as Tb,ks as Tc,tc as Td,jc as Te,Yp as Tf,Ca as Tg,Cr as Th,mx as Ti,mi as Tj,vd as Tk,vl as Tl,vu as Tm,Ag as Tn,W0 as To,Vt as U,Vo as Ua,zn as Ub,Bs as Uc,oc as Ud,h as Ue,Vp as Uf,Ra as Ug,Rr as Uh,Ax as Ui,Ai as Uj,hd as Uk,hl as Ul,hu as Um,Eg as Un,s as Uo,zt as V,zo as Va,Kn as Vb,Ms as Vc,nc as Vd,de as Ve,zp as Vf,Na as Vg,Nr as Vh,fx as Vi,fi as Vj,md as Vk,ml as Vl,mu as Vm,Tg as Vn,V0 as Vo,Kt as W,Ko as Wa,qn as Wb,Us as Wc,sc as Wd,Jc as We,Kp as Wf,wa as Wg,wr as Wh,Ex as Wi,Ei as Wj,Ad as Wk,Al as Wl,Au as Wm,_g as Wn,z0 as Wo,qt as X,qo as Xa,Zn as Xb,Ds as Xc,cc as Xd,Xc as Xe,qp as Xf,Oa as Xg,Or as Xh,$x as Xi,$i as Xj,fd as Xk,fl as Xl,fu as Xm,Pg as Xn,q0 as Xo,Zt as Y,Zo as Ya,Qn as Yb,Fs as Yc,pc as Yd,ep as Ye,Zp as Yf,La as Yg,Lr as Yh,Tx as Yi,Ti as Yj,Ed as Yk,El as Yl,Eu as Ym,Cg as Yn,ot as Yo,Qt as Z,Qo as Za,jn as Zb,P as Zc,ac as Zd,tp as Ze,Qp as Zf,ka as Zg,kr as Zh,Sx as Zi,Si as Zj,$d as Zk,$l as Zl,$u as Zm,Ng as Zn,Q0 as Zo,jt as _,jo as _a,Jn as _b,b as _c,rc as _d,op as _e,jp as _f,Ba as _g,Br as _h,_x as _i,_i as _j,Td as _k,Tl as _l,Tu as _m,Og as _n,nt as _o,e as a,Xt as aa,Xo as ab,es as ac,C as ad,ic as ae,ue as af,Xp as ag,Ua as ah,Ur as ai,Px as aj,Pi as ak,_d as al,_l as am,_u as an,Mg as ao,X0 as ap,t as b,eo as ba,en as bb,ts as bc,R as bd,dc as be,ge as bf,ea as bg,Da as bh,Dr as bi,bx as bj,bi as bk,yd as bl,yl as bm,yu as bn,Dg as bo,oI as bp,st as c,to as ca,tn as cb,os as cc,Gs as cd,lc as ce,Ie as cf,ta as cg,Fa as ch,Fr as ci,Cx as cj,Ci as ck,Pd as cl,Pl as cm,Pu as cn,Wg as co,ze as d,oo as da,on as db,ns as dc,N as dd,uc as de,ve as df,oa as dg,Wa as dh,Wr as di,Rx as dj,Ri as dk,bd as dl,bl as dm,bu as dn,Hg as do,Ke as e,no as ea,nn as eb,ss as ec,Hs as ed,gc as ee,np as ef,na as eg,Ga as eh,Gr as ei,Nx as ej,Ni as ek,Cd as el,Cl as em,Cu as en,Vg as eo,f,so as fa,sn as fb,cs as fc,w as fd,Ic as fe,sp as ff,sa as fg,Ha as fh,Hr as fi,wx as fj,wi as fk,Rd as fl,Rl as fm,Ru as fn,Kg as fo,ct as g,co as ga,cn as gb,ps as gc,O as gd,vc as ge,cp as gf,ca as gg,Ya as gh,Yr as gi,Ox as gj,Oi as gk,Nd as gl,Nl as gm,Nu as gn,Zg as go,pt as h,po as ha,pn as hb,as as hc,Ys as hd,hc as he,pp as hf,he as hg,Va as hh,Vr as hi,Lx as hj,Li as hk,wd as hl,wl as hm,wu as hn,jg as ho,at as i,ao as ia,an as ib,rs as ic,Vs as id,mc as ie,ap as if,me as ig,za as ih,zr as ii,kx as ij,ki as ik,Od as il,Ol as im,Ou as in,Xg as io,rt as j,ro as ja,rn as jb,xs as jc,L as jd,Ac as je,rp as jf,Ae as jg,Ka as jh,Kr as ji,Bx as jj,Bi as jk,Ld as jl,Ll as jm,Lu as jn,Je as jo,xt as k,xo as ka,xn as kb,is as kc,k as kd,fc as ke,xp as kf,fe as kg,qa as kh,qr as ki,Mx as kj,Mi as kk,kd as kl,kl as km,ku as kn,t0 as ko,it as l,io as la,dn as lb,ds as lc,B as ld,Ec as le,ip as lf,pa as lg,Za as lh,Zr as li,Ux as lj,Ui as lk,Bd as ll,Bl as lm,Bu as ln,o0 as lo,dt as m,lo as ma,ln as mb,ls as mc,M as md,$c as me,dp as mf,Ee as mg,Qa as mh,Qr as mi,Dx as mj,Di as mk,Md as ml,Ml as mm,Mu as mn,n0 as mo,lt as n,uo as na,un as nb,$ as nc,U as nd,Tc as ne,lp as nf,m as ng,ja as nh,jr as ni,Fx as nj,Fi as nk,Ud as nl,Ul as nm,Uu as nn,s0 as no,ut as o,go as oa,gn as ob,l as oc,D as od,Sc as oe,up as of,$e as og,Ja as oh,Jr as oi,Wx as oj,Wi as ok,Dd as ol,Dl as om,Du as on,c0 as oo,gt as p,Io as pa,In as pb,us as pc,F as pd,_c as pe,gp as pf,Te as pg,Xa as ph,Xr as pi,Gx as pj,Gi as pk,Fd as pl,Fl as pm,Fu as pn,a0 as po,It as q,vo as qa,vn as qb,gs as qc,W as qd,yc as qe,Ip as qf,Se as qg,er as qh,ex as qi,Hx as qj,Hi as qk,Wd as ql,Wl as qm,Wu as qn,r0 as qo,vt as r,ho as ra,hn as rb,u as rc,G as rd,Pc as re,vp as rf,aa as rg,tr as rh,tx as ri,Yx as rj,Yi as rk,Gd as rl,Gl as rm,Gu as rn,x0 as ro,ht as s,mo as sa,mn as sb,Is as sc,H as sd,bc as se,hp as sf,ra as sg,or as sh,ox as si,Vx as sj,Vi as sk,Hd as sl,Hl as sm,Hu as sn,d0 as so,mt as t,Ao as ta,An as tb,vs as tc,zs as td,Cc as te,mp as tf,xa as tg,nr as th,nx as ti,zx as tj,zi as tk,Yd as tl,Yl as tm,Vu as tn,l0 as to,At as u,fo as ua,fn as ub,hs as uc,Y as ud,Rc as ue,Ap as uf,ia as ug,sr as uh,sx as ui,Kx as uj,Ki as uk,Vd as ul,Vl as um,qe as un,u0 as uo,ft as v,Eo as va,En as vb,ms as vc,V as vd,Nc as ve,fp as vf,da as vg,cr as vh,cx as vi,qx as vj,qi as vk,zd as vl,zl as vm,Ze as vn,g0 as vo,Et as w,$o as wa,$n as wb,As as wc,Ks as wd,wc as we,Ep as wf,la as wg,pr as wh,px as wi,Zx as wj,Zi as wk,Kd as wl,Kl as wm,n as wn,I0 as wo,$t as x,To as xa,Tn as xb,fs as xc,z as xd,Oc as xe,$p as xf,ua as xg,ar as xh,ax as xi,Qx as xj,Qi as xk,qd as xl,ql as xm,Qe as xn,v0 as xo,Tt as y,So as ya,Sn as yb,Es as yc,K as yd,Lc as ye,Tp as yf,ga as yg,rr as yh,rx as yi,jx as yj,ji as yk,Zd as yl,Zl as ym,a as yn,h0 as yo,St as z,_o as za,_n as zb,$s as zc,qs as zd,kc as ze,Sp as zf,Ia as zg,xr as zh,xx as zi,Jx as zj,Ji as zk,Qd as zl,Ql as zm,r as zn,m0 as zo};
@@ -0,0 +1 @@
1
+ import {yc}from'./chunk-QMBLENVJ.js';import {Bn}from'./chunk-UVKRET3U.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=yc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=yc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===Bn.reports.code||o===Bn.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
@@ -1 +1 @@
1
- import {T,S,b as b$1}from'./chunk-5W5466MB.js';import {forwardRef,memo,createContext,useState,useRef,useCallback,useMemo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var u=styled(T)(({theme:o})=>({[`& .${S.title}`]:{fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary}})),x=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:o.spacing(2)})),d=styled(b$1)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),minWidth:64,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:o.palette.text.primary,textTransform:"none",border:`1px solid ${o.palette.divider}`,boxShadow:"none","&:hover":{boxShadow:"none",backgroundColor:o.palette.action.hover}})),y=styled("p")(({theme:o})=>({margin:0,fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight})),D=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"}));var v=forwardRef(({message:o,title:t,confirmText:a,cancelText:i,onConfirm:r,onCancel:s,className:m,sx:e,...n},T)=>jsx(u,{ref:T,"data-testid":"ConfirmDialog",heading:t,className:m,sx:e,...n,children:jsxs(x,{children:[jsx(y,{children:o}),jsxs(D,{children:[jsx(d,{variant:"ghost",onClick:s,children:i||"No"}),jsx(d,{variant:"ghost",onClick:r,children:a||"Yes"})]})]})}));v.displayName="ConfirmDialog";var b=memo(v);var p=createContext(null);function W(){let o=useContext(p);if(!o)throw new Error("useConfirm must be used within <ConfirmDialogProvider>");return o}var R={open:false,message:null,title:void 0,confirmText:void 0,cancelText:void 0,sx:void 0,dismissible:true};function z({children:o}){let[t,a]=useState(R),i=useRef(null),r=useCallback(e=>{let n=i.current;n&&(i.current=null,a(R),n(e));},[]),s=useCallback(e=>new Promise(n=>{i.current?.(false),i.current=n,a({open:true,dismissible:e.dismissible??true,message:e.message,title:e.title,confirmText:e.confirmText,cancelText:e.cancelText,sx:e.sx});}),[]),m=useMemo(()=>({confirm:s}),[s]);return jsxs(p.Provider,{value:m,children:[o,jsx(b,{open:t.open,message:t.message,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,onConfirm:()=>r(true),onCancel:()=>r(false),onClose:t.dismissible?()=>r(false):void 0,sx:t.sx})]})}var O=memo(z);export{W as a,O as b};
1
+ import {T,S,b as b$1}from'./chunk-MX6II55S.js';import {forwardRef,memo,createContext,useState,useRef,useCallback,useMemo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var u=styled(T)(({theme:o})=>({[`& .${S.title}`]:{fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary}})),x=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:o.spacing(2)})),d=styled(b$1)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),minWidth:64,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:o.palette.text.primary,textTransform:"none",border:`1px solid ${o.palette.divider}`,boxShadow:"none","&:hover":{boxShadow:"none",backgroundColor:o.palette.action.hover}})),y=styled("p")(({theme:o})=>({margin:0,fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight})),D=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"}));var v=forwardRef(({message:o,title:t,confirmText:a,cancelText:i,onConfirm:r,onCancel:s,className:m,sx:e,...n},T)=>jsx(u,{ref:T,"data-testid":"ConfirmDialog",heading:t,className:m,sx:e,...n,children:jsxs(x,{children:[jsx(y,{children:o}),jsxs(D,{children:[jsx(d,{variant:"ghost",onClick:s,children:i||"No"}),jsx(d,{variant:"ghost",onClick:r,children:a||"Yes"})]})]})}));v.displayName="ConfirmDialog";var b=memo(v);var p=createContext(null);function W(){let o=useContext(p);if(!o)throw new Error("useConfirm must be used within <ConfirmDialogProvider>");return o}var R={open:false,message:null,title:void 0,confirmText:void 0,cancelText:void 0,sx:void 0,dismissible:true};function z({children:o}){let[t,a]=useState(R),i=useRef(null),r=useCallback(e=>{let n=i.current;n&&(i.current=null,a(R),n(e));},[]),s=useCallback(e=>new Promise(n=>{i.current?.(false),i.current=n,a({open:true,dismissible:e.dismissible??true,message:e.message,title:e.title,confirmText:e.confirmText,cancelText:e.cancelText,sx:e.sx});}),[]),m=useMemo(()=>({confirm:s}),[s]);return jsxs(p.Provider,{value:m,children:[o,jsx(b,{open:t.open,message:t.message,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,onConfirm:()=>r(true),onCancel:()=>r(false),onClose:t.dismissible?()=>r(false):void 0,sx:t.sx})]})}var O=memo(z);export{W as a,O as b};
@@ -1 +1 @@
1
- import {f as f$1}from'./chunk-NS7CZUKT.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-IK4NIWK3.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
@@ -1 +1 @@
1
- import {p}from'./chunk-5W5466MB.js';import {Va,yc,bb}from'./chunk-JDPHN2VN.js';import {Sk,ya,xa,wa,Qj}from'./chunk-YKKS24ES.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:Va(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Sk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=yc(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${bb((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Qj:Qj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
1
+ import {p}from'./chunk-MX6II55S.js';import {Va,yc,bb}from'./chunk-QMBLENVJ.js';import {Sk,ya,xa,wa,Qj}from'./chunk-UVKRET3U.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:Va(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Sk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=yc(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${bb((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Qj:Qj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
@@ -1 +1 @@
1
- import {Mc,ic}from'./chunk-YKKS24ES.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:ic,error:Mc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
1
+ import {Mc,ic}from'./chunk-UVKRET3U.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:ic,error:Mc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
@@ -1 +1 @@
1
- import {a,c as c$1,d as d$1}from'./chunk-PQSELTNR.js';import {c,d}from'./chunk-O3N3NN72.js';import {b,a as a$1}from'./chunk-47K4K4WV.js';import {yc,xa}from'./chunk-JDPHN2VN.js';import {Gf}from'./chunk-YKKS24ES.js';import {createContext,memo,useRef,useId,useContext,useMemo,useState,useLayoutEffect,useCallback}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import pt from'@mui/material/Box';import {Resizable}from're-resizable';import lt from'react-draggable';import {motion}from'framer-motion';var Z=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var he=(e,t)=>t.toLowerCase().includes(e);function we(e,t,i){let n=he("top",t),r=he("left",t);return !n&&!r?null:{x:r?e.x+i.width:e.x,y:n?e.y-i.height:e.y}}var be=e=>{let{viewportWidth:t,viewportHeight:i,viewerDefaultWidth:n,viewerDefaultHeight:r,initialPosition:d,isMaximized:l,containerRef:a}=e,s=!l&&a?.current&&a.current!==document.body?a.current:null,p=s?.getBoundingClientRect(),u=p?.left??0,f=p?.top??0,m=s?.clientWidth||t,c=d?.x??t/2-n/2,o=d?.y??i/2-r/2;return {x:m-(c-u),y:o-f}};var Ue=555,je=545;function te({children:e,isOpen:t,onClose:i,defaultWindowHeight:n,defaultWindowWidth:r,initialPosition:d,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u,windowZIndex:f=1}){let {height:m,width:c}=a$1(),[o,M]=useState(false),B=o?null:u?.current,A=B?.clientWidth||c,b=B?.clientHeight||m,I=r||Ue,g=n||je;useRef(false);let [k,H]=useState(()=>be({viewportWidth:c,viewportHeight:m,viewerDefaultWidth:I,viewerDefaultHeight:g,initialPosition:d,isMaximized:o,containerRef:u})),[L,_]=useState(false),[F,S]=useState(false),[E,P]=useState(true),x=useRef(),[G,z]=useState({width:r??0,height:n??0}),O=useCallback(W=>{x?.current?.updateSize(W);},[]),V=useCallback(W=>{x.current?.updateSize(W),z(D=>({width:W.width??D.width,height:W.height??D.height}));},[]),ee=useMemo(()=>({position:k,setPosition:H,resizableRef:x,windowZIndex:f,isOpen:t,setIsMaximized:M,setIsSidebarExpanded:P,setIsToolbarAnimationDisabled:S,setIsResized:_,isMaximized:o,isToolbarAnimationDisabled:F,isSidebarExpanded:E,isResized:L,dimensions:G,setNewDimensions:z,viewerDefaultWidth:I,viewerDefaultHeight:g,onClose:i,fullWindowWidth:A,fullWindowHeight:b,viewportWidth:c,viewportHeight:m,updateRefSize:O,updateSize:V,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u}),[k,H,x,t,M,P,S,_,o,F,E,L,G,z,A,b,c,m,I,g,O,V,i,l,a,s,p,u,f]);return jsx(Z.Provider,{value:ee,children:e})}var R=.5,He=183,ve=287,ye=840,Re=545,oe=35;function Ke({title:e,onClose:t,onMaximize:i,maximized:n=false,id:r,onRequestClick:d$2,isSidebarExpanded:l=false,isHovered:a$1=false,onMouseHover:s,onMouseLeave:p,showSectionsButton:u,rightActions:f,icon:m}){return jsx(c,{id:r,"data-testid":"UserTitleBar",maximized:n||false,children:jsx(d,{onMouseEnter:s,onMouseLeave:p,isMaximized:n,isHovered:a$1,title:e,icon:m||Gf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:n,onClick:i}),u&&jsx(d$1,{onClick:d$2,isExpanded:!l,isHovered:a$1,children:"Sidebar"})]}),rightActions:f})})}var Ae=memo(Ke);var ie=Ae;function Qe({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:i,onClose:n,isSidebarExpanded:r,setIsSidebarExpanded:d,isToolbarAnimationDisabled:l,title:a,showSectionsButton:s,rightActions:p,icon:u}){let{isHovered:f,onMouseEnter:m,onMouseLeave:c}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(ie,{title:a||"Users",showSectionsButton:s,onClose:n,onMaximize:()=>{i?.(o=>!o),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),d(!r);},isSidebarExpanded:r,isHovered:f,onMouseHover:m,onMouseLeave:c,rightActions:p,icon:u})})}var Se=memo(Qe);var Ee=Se;function ut({children:e,titleBar:t,titleBarText:i,mainAppOrder:n,mainAppIsMinimized:r,showSectionsButton:d=true,rightActions:l,titleBarIcon:a,overflow:s="hidden"}){let p=useRef(null),u=yc(useId(),"app-window"),{dimensions:f,position:m,resizableRef:c,isMaximized:o,isOpen:M,onClose:B,viewerDefaultWidth:A,viewerDefaultHeight:b,windowZIndex:I,setPosition:g,setNewDimensions:Q,isToolbarAnimationDisabled:k,fullWindowWidth:H,fullWindowHeight:L,viewportWidth:_,viewportHeight:F,setIsMaximized:S,setIsResized:E,isResized:P,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:G,isSidebarExpanded:z,minWidth:O,maxWidth:V,minHeight:ee,maxHeight:W,containerRef:D}=useContext(Z),h=useMemo(()=>document.createElement("div"),[]),[Le,_e]=useState(null);useLayoutEffect(()=>{_e(D?.current??document.body);},[D]);let w=o?document.body:Le;useLayoutEffect(()=>{if(!w)return;let v=w===document.body;return h.style.position=v?"":"absolute",h.style.inset=v?"":"0",h.style.pointerEvents="none",h.style.overflow="visible",w.appendChild(h),()=>{h.parentNode===w&&w.removeChild(h);}},[w,h]);let se=useRef({x:0,y:0}),pe=xa(),Fe=useCallback((v,U,de,Oe)=>{E(true),Q({width:de.offsetWidth,height:de.offsetHeight});let le=we(se.current,U,Oe);le&&g(le);},[Q,E,g]),N=f.width||A;if(!w)return null;let Ge=jsx(lt,{nodeRef:p,disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:H/2-N/2,y:L/2-b/2},position:{x:H-m.x,y:m.y},onStop:(v,U)=>{g({x:H-U.x,y:U.y});},...w===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(n||0)+I+(o?1:0),...r&&{display:"none"},...w===document.body?!o&&{transform:"translate(180px, 14px)"}:!o&&{position:"absolute"},...!o&&{width:pe?N:"fit-content",height:pe?b:"fit-content"},...o&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:s,width:P?"fit-content":N,height:P?"fit-content":"100%",...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{S(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:M,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:h,fullScreen:o,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:f.width,height:f.height},maxHeight:W??F-40,maxWidth:V??_,minWidth:o?"100vw":O??A,minHeight:o?"100vh":ee??b,ref:v=>{c.current=v;},onResizeStart:()=>{se.current=m,x(true);},onResizeStop:()=>{x(false);},onResize:Fe,defaultSize:{width:N,height:b},style:{background:"transparent",height:f.height,overflow:s,...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(pt,{sx:{height:"100%"},id:u,"data-testid":"AppWindow",children:[t??jsx(Ee,{setIsToolbarAnimationDisabled:x,onClose:B,setIsMaximized:S,isToolbarAnimationDisabled:k,setIsSidebarExpanded:G,isSidebarExpanded:z,title:i,isMaximized:o,showSectionsButton:d,rightActions:l,icon:a}),e]})})})});return createPortal(Ge,h)}var De=memo(ut);var ct=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),xt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),ht=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),wt=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),bt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var re=De;function gt({children:e,windowProps:t,...i}){return i.isOpen?jsx(te,{...i,children:jsx(re,{...t,children:e})}):null}var Me=gt;function Ht({title:e,maximized:t=false,id:i,isHovered:n=false,onMouseHover:r,onMouseLeave:d$1,leftActions:l,titleIconSrc:a,sx:s,...p}){return jsx(c,{className:"header-wrapper",id:i,maximized:t||false,sx:s,...p,children:jsx(d,{onMouseEnter:r,onMouseLeave:d$1,isMaximized:t,isHovered:n,title:e||"",icon:a,leftActions:l})})}var ae=memo(Ht);function Rt({isMaximized:e,id:t,isToolbarAnimationDisabled:i,title:n,leftActions:r,onClose:d,onMaximize:l,sx:a$1}){let{isHovered:s,onMouseEnter:p,onMouseLeave:u}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(ae,{title:n,maximized:e,id:t||"draggable-dialog-title",isHovered:s,onMouseHover:p,onMouseLeave:u,leftActions:r||jsxs(Fragment,{children:[jsx(a,{onClick:d}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:a$1})})}var ke=memo(Rt);var St=ke;var qo=Me;export{Z as a,te as b,R as c,He as d,ve as e,ye as f,Re as g,oe as h,ie as i,ct as j,xt as k,ht as l,wt as m,bt as n,re as o,ae as p,St as q,qo as r};
1
+ import {c,d}from'./chunk-7KVWQHNV.js';import {a,c as c$1,d as d$1}from'./chunk-OIYAGPBM.js';import {b,a as a$1}from'./chunk-TZCPVIH4.js';import {yc,xa}from'./chunk-QMBLENVJ.js';import {Gf}from'./chunk-UVKRET3U.js';import {createContext,memo,useRef,useId,useContext,useMemo,useState,useLayoutEffect,useCallback}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import pt from'@mui/material/Box';import {Resizable}from're-resizable';import lt from'react-draggable';import {motion}from'framer-motion';var Z=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var he=(e,t)=>t.toLowerCase().includes(e);function we(e,t,i){let n=he("top",t),r=he("left",t);return !n&&!r?null:{x:r?e.x+i.width:e.x,y:n?e.y-i.height:e.y}}var be=e=>{let{viewportWidth:t,viewportHeight:i,viewerDefaultWidth:n,viewerDefaultHeight:r,initialPosition:d,isMaximized:l,containerRef:a}=e,s=!l&&a?.current&&a.current!==document.body?a.current:null,p=s?.getBoundingClientRect(),u=p?.left??0,f=p?.top??0,m=s?.clientWidth||t,c=d?.x??t/2-n/2,o=d?.y??i/2-r/2;return {x:m-(c-u),y:o-f}};var Ue=555,je=545;function te({children:e,isOpen:t,onClose:i,defaultWindowHeight:n,defaultWindowWidth:r,initialPosition:d,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u,windowZIndex:f=1}){let {height:m,width:c}=a$1(),[o,M]=useState(false),B=o?null:u?.current,A=B?.clientWidth||c,b=B?.clientHeight||m,I=r||Ue,g=n||je;useRef(false);let [k,H]=useState(()=>be({viewportWidth:c,viewportHeight:m,viewerDefaultWidth:I,viewerDefaultHeight:g,initialPosition:d,isMaximized:o,containerRef:u})),[L,_]=useState(false),[F,S]=useState(false),[E,P]=useState(true),x=useRef(),[G,z]=useState({width:r??0,height:n??0}),O=useCallback(W=>{x?.current?.updateSize(W);},[]),V=useCallback(W=>{x.current?.updateSize(W),z(D=>({width:W.width??D.width,height:W.height??D.height}));},[]),ee=useMemo(()=>({position:k,setPosition:H,resizableRef:x,windowZIndex:f,isOpen:t,setIsMaximized:M,setIsSidebarExpanded:P,setIsToolbarAnimationDisabled:S,setIsResized:_,isMaximized:o,isToolbarAnimationDisabled:F,isSidebarExpanded:E,isResized:L,dimensions:G,setNewDimensions:z,viewerDefaultWidth:I,viewerDefaultHeight:g,onClose:i,fullWindowWidth:A,fullWindowHeight:b,viewportWidth:c,viewportHeight:m,updateRefSize:O,updateSize:V,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u}),[k,H,x,t,M,P,S,_,o,F,E,L,G,z,A,b,c,m,I,g,O,V,i,l,a,s,p,u,f]);return jsx(Z.Provider,{value:ee,children:e})}var R=.5,He=183,ve=287,ye=840,Re=545,oe=35;function Ke({title:e,onClose:t,onMaximize:i,maximized:n=false,id:r,onRequestClick:d$2,isSidebarExpanded:l=false,isHovered:a$1=false,onMouseHover:s,onMouseLeave:p,showSectionsButton:u,rightActions:f,icon:m}){return jsx(c,{id:r,"data-testid":"UserTitleBar",maximized:n||false,children:jsx(d,{onMouseEnter:s,onMouseLeave:p,isMaximized:n,isHovered:a$1,title:e,icon:m||Gf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:n,onClick:i}),u&&jsx(d$1,{onClick:d$2,isExpanded:!l,isHovered:a$1,children:"Sidebar"})]}),rightActions:f})})}var Ae=memo(Ke);var ie=Ae;function Qe({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:i,onClose:n,isSidebarExpanded:r,setIsSidebarExpanded:d,isToolbarAnimationDisabled:l,title:a,showSectionsButton:s,rightActions:p,icon:u}){let{isHovered:f,onMouseEnter:m,onMouseLeave:c}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(ie,{title:a||"Users",showSectionsButton:s,onClose:n,onMaximize:()=>{i?.(o=>!o),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),d(!r);},isSidebarExpanded:r,isHovered:f,onMouseHover:m,onMouseLeave:c,rightActions:p,icon:u})})}var Se=memo(Qe);var Ee=Se;function ut({children:e,titleBar:t,titleBarText:i,mainAppOrder:n,mainAppIsMinimized:r,showSectionsButton:d=true,rightActions:l,titleBarIcon:a,overflow:s="hidden"}){let p=useRef(null),u=yc(useId(),"app-window"),{dimensions:f,position:m,resizableRef:c,isMaximized:o,isOpen:M,onClose:B,viewerDefaultWidth:A,viewerDefaultHeight:b,windowZIndex:I,setPosition:g,setNewDimensions:Q,isToolbarAnimationDisabled:k,fullWindowWidth:H,fullWindowHeight:L,viewportWidth:_,viewportHeight:F,setIsMaximized:S,setIsResized:E,isResized:P,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:G,isSidebarExpanded:z,minWidth:O,maxWidth:V,minHeight:ee,maxHeight:W,containerRef:D}=useContext(Z),h=useMemo(()=>document.createElement("div"),[]),[Le,_e]=useState(null);useLayoutEffect(()=>{_e(D?.current??document.body);},[D]);let w=o?document.body:Le;useLayoutEffect(()=>{if(!w)return;let v=w===document.body;return h.style.position=v?"":"absolute",h.style.inset=v?"":"0",h.style.pointerEvents="none",h.style.overflow="visible",w.appendChild(h),()=>{h.parentNode===w&&w.removeChild(h);}},[w,h]);let se=useRef({x:0,y:0}),pe=xa(),Fe=useCallback((v,U,de,Oe)=>{E(true),Q({width:de.offsetWidth,height:de.offsetHeight});let le=we(se.current,U,Oe);le&&g(le);},[Q,E,g]),N=f.width||A;if(!w)return null;let Ge=jsx(lt,{nodeRef:p,disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:H/2-N/2,y:L/2-b/2},position:{x:H-m.x,y:m.y},onStop:(v,U)=>{g({x:H-U.x,y:U.y});},...w===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(n||0)+I+(o?1:0),...r&&{display:"none"},...w===document.body?!o&&{transform:"translate(180px, 14px)"}:!o&&{position:"absolute"},...!o&&{width:pe?N:"fit-content",height:pe?b:"fit-content"},...o&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:s,width:P?"fit-content":N,height:P?"fit-content":"100%",...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{S(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:M,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:h,fullScreen:o,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:f.width,height:f.height},maxHeight:W??F-40,maxWidth:V??_,minWidth:o?"100vw":O??A,minHeight:o?"100vh":ee??b,ref:v=>{c.current=v;},onResizeStart:()=>{se.current=m,x(true);},onResizeStop:()=>{x(false);},onResize:Fe,defaultSize:{width:N,height:b},style:{background:"transparent",height:f.height,overflow:s,...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(pt,{sx:{height:"100%"},id:u,"data-testid":"AppWindow",children:[t??jsx(Ee,{setIsToolbarAnimationDisabled:x,onClose:B,setIsMaximized:S,isToolbarAnimationDisabled:k,setIsSidebarExpanded:G,isSidebarExpanded:z,title:i,isMaximized:o,showSectionsButton:d,rightActions:l,icon:a}),e]})})})});return createPortal(Ge,h)}var De=memo(ut);var ct=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),xt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),ht=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),wt=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),bt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var re=De;function gt({children:e,windowProps:t,...i}){return i.isOpen?jsx(te,{...i,children:jsx(re,{...t,children:e})}):null}var Me=gt;function Ht({title:e,maximized:t=false,id:i,isHovered:n=false,onMouseHover:r,onMouseLeave:d$1,leftActions:l,titleIconSrc:a,sx:s,...p}){return jsx(c,{className:"header-wrapper",id:i,maximized:t||false,sx:s,...p,children:jsx(d,{onMouseEnter:r,onMouseLeave:d$1,isMaximized:t,isHovered:n,title:e||"",icon:a,leftActions:l})})}var ae=memo(Ht);function Rt({isMaximized:e,id:t,isToolbarAnimationDisabled:i,title:n,leftActions:r,onClose:d,onMaximize:l,sx:a$1}){let{isHovered:s,onMouseEnter:p,onMouseLeave:u}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(ae,{title:n,maximized:e,id:t||"draggable-dialog-title",isHovered:s,onMouseHover:p,onMouseLeave:u,leftActions:r||jsxs(Fragment,{children:[jsx(a,{onClick:d}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:a$1})})}var ke=memo(Rt);var St=ke;var qo=Me;export{Z as a,te as b,R as c,He as d,ve as e,ye as f,Re as g,oe as h,ie as i,ct as j,xt as k,ht as l,wt as m,bt as n,re as o,ae as p,St as q,qo as r};
@@ -1 +1 @@
1
- import {yc}from'./chunk-JDPHN2VN.js';import {useId,useState,useRef,useCallback,useMemo,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useMotionValue,animate}from'framer-motion';import zt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=3,ft=styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:0,minWidth:0,height:"auto",lineHeight:1,position:"relative",zIndex:1001,fontSize:"12px",color:t.palette.text.primary})),ht=styled(motion.div)(()=>({display:"inline-flex"})),ut=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),gt=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),tt=styled(motion.div)(({side:t})=>({position:"absolute",display:"flex",alignItems:"center",...t==="left"?{right:"100%",flexDirection:"row-reverse",transformOrigin:"right center"}:{},...t==="right"?{left:"100%",flexDirection:"row",transformOrigin:"left center"}:{},top:"50%",transform:"translateY(-50%)",gap:0,pointerEvents:"auto",overflow:"visible"})),et=styled("div")(({side:t})=>({position:"absolute",top:0,bottom:0,...t==="left"?{right:"100%"}:{left:"100%"},pointerEvents:"auto",background:"transparent"})),xt=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",height:24,overflow:"visible"})),j=t=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,paddingInline:"8px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontSize:12,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"visible"}),mt=styled(motion.div)(({theme:t})=>({...j(t),position:"relative",zIndex:2,minWidth:24,flex:"0 0 auto",display:"inline-flex",overflow:"hidden",willChange:"transform"})),Ct=styled(motion.span)(()=>({display:"inline-flex",alignItems:"center",transform:"translateZ(0)"})),nt=styled(motion.span)(({theme:t})=>({display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",willChange:"width",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.background.paper,height:"24px",alignItems:"center",paddingInline:"0px"})),it=styled(motion.span)(()=>({display:"inline-flex",whiteSpace:"nowrap",alignItems:"center",height:"100%"})),yt=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",left:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),Et=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",right:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),rt=styled(motion.div)(({theme:t})=>({...j(t),minWidth:24,flex:"0 0 auto",display:"inline-flex"})),vt=styled(zt)(()=>({position:"relative",overflow:"visible",zIndex:101,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"20px"}));var L=24;function Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}){let[l,P]=useState(false),[r,q]=useState({left:0,right:0}),[c,G]=useState([]),[d,X]=useState([]),[f,J]=useState(0),[b,Y]=useState(0),m=useRef(null),k=useRef(null),z=useRef(null),M=useRef(null),A=useRef([]),O=useRef([]),T=useRef(null),$=useRef(null),I=useRef(null),w=useCallback((e,i)=>{if(e===i)return true;if(e.length!==i.length)return false;for(let a=0;a<e.length;a++)if(e[a]!==i[a])return false;return true},[]),D=useCallback((e,i)=>e.left===i.left&&e.right===i.right,[]),g=useMotionValue(0),n=useMotionValue(0),N=useMotionValue(0),C=useMemo(()=>{if(!c.length)return [];let e=[],i=x+c[0]/2;e.push(i);for(let a=1;a<c.length;a++)i+=c[a-1]/2+x+c[a]/2,e.push(i);return e},[c]),y=useMemo(()=>{if(!d.length)return [];let e=[],i=x+d[0]/2;e.push(i);for(let a=1;a<d.length;a++)i+=d[a-1]/2+x+d[a]/2,e.push(i);return e},[d]),Lt=l&&h?f:0,K=l&&u?b:0,at=h?f:0,Wt=useCallback(()=>{m.current&&clearTimeout(m.current),P(true);},[]),St=useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(false),120);},[]),_=useCallback(()=>{let e=k.current,i=M.current,a=z.current,Q=r;if(e){let R=e.getBoundingClientRect(),Z=(i??a)?.getBoundingClientRect();if(Z){let Pt=Math.round(Z.left-R.left),kt=Math.round(Z.right-R.left);Q={left:Pt,right:kt};}}let st=A.current.map(R=>R?R.offsetWidth:L),lt=O.current.map(R=>R?R.offsetWidth:L),pt=T.current?.scrollWidth??0,ct=$.current?.scrollWidth??0;D(r,Q)||q(Q),w(c,st)||G(st),w(d,lt)||X(lt),f!==pt&&J(pt),b!==ct&&Y(ct);},[r,c,d,f,b,D,w]),B=useCallback(()=>{I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{_();});},[_]);useEffect(()=>()=>{m.current&&clearTimeout(m.current);},[]),useLayoutEffect(()=>{_();},[H,t,v,h,u,_]),useEffect(()=>(B(),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B),I.current&&cancelAnimationFrame(I.current);}),[B]),useEffect(()=>{let i=animate(g,l&&h?f:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,h,f,g]),useEffect(()=>{let i=animate(n,l&&u?b:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,u,b,n]);let wt=useMemo(()=>{if(!C.length)return 0;let e=C.length-1,i=c[e]??L;return C[e]+i/2+K+x},[C,c,K]),Ht=useMemo(()=>{if(!y.length)return 0;let e=y.length-1,i=d[e]??L;return at+y[e]+i/2+x},[y,d,at]);return {isHovering:l,handleMouseEnter:Wt,handleMouseLeave:St,centerWrapRef:k,centerContentRef:z,centerChipRef:M,anchors:r,leftChipRefs:A,rightChipRefs:O,leftOffsets:C,rightOffsets:y,expandableRightInnerRef:T,expandableLeftInnerRef:$,expandableRightWidth:f,expandableLeftWidth:b,expandedRightMV:g,expandedLeftMV:n,shiftX:N,rightShift:Lt,leftShift:K,leftHoverWidth:wt,rightHoverWidth:Ht}}function Ot({leftIcons:t=[],rightIcons:v=[],centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u,expandedZIndex:l=1e3,...P}){let{isHovering:r,handleMouseEnter:q,handleMouseLeave:c,centerWrapRef:G,centerContentRef:d,centerChipRef:X,anchors:f,leftChipRefs:J,rightChipRefs:b,leftOffsets:Y,rightOffsets:m,expandableRightInnerRef:k,expandableLeftInnerRef:z,expandedRightMV:M,expandedLeftMV:A,shiftX:O,rightShift:T,leftShift:$,leftHoverWidth:I,rightHoverWidth:w}=Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}),D=yc(useId(),"right-left-expanding-center-chip");return jsx(vt,{...P,id:D,"data-testid":"RightLeftExpandingCenterChipBox",children:jsx(ht,{"data-testid":"CenterShiftWrapper",initial:false,style:{x:O},children:jsxs(ft,{"data-testid":"CenterIconWrapper",ref:G,onMouseLeave:c,children:[jsxs(xt,{"data-testid":"PeekContainer",children:[jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(yt,{"data-testid":"LeftPeekChip",initial:{opacity:0,scale:.95,x:-4},animate:r?{opacity:0,scale:.9,x:-6}:{opacity:1,scale:1,x:-5},exit:{opacity:0,scale:.95,x:-4},transition:{duration:.18,ease:"easeOut"}},"left-peek")}),jsx(mt,{"data-testid":"CenterChip",ref:X,onMouseEnter:q,style:{borderRadius:(()=>{let g=u&&r,n=h&&r;return g&&n?"0":g?"0 12px 12px 0":n?"12px 0 0 12px":"12px"})(),borderLeft:u&&r?"none":void 0,borderRight:h&&r?"none":void 0},children:jsx(Ct,{"data-testid":"CenterContent",ref:d,children:H})}),u&&jsx(nt,{"data-testid":"ExpandableLeftContainer",style:{width:A,position:"absolute",right:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"12px 0 0 12px",borderRight:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableLeftInner",ref:z,children:u})}),h&&jsx(nt,{"data-testid":"ExpandableRightContainer",style:{width:M,position:"absolute",left:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"0 12px 12px 0",borderLeft:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableRightInner",ref:k,children:h})}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(Et,{"data-testid":"RightPeekChip",initial:{opacity:0,scale:.95,x:4},animate:r?{opacity:0,scale:.9,x:6}:{opacity:1,scale:1,x:5},exit:{opacity:0,scale:.95,x:4},transition:{duration:.18,ease:"easeOut"}},"right-peek")})]}),r&&t.length>0&&jsx(et,{"data-testid":"LeftHoverBridge",side:"left",style:{width:I,right:`calc(100% - ${f.left}px)`,zIndex:l,pointerEvents:"auto"}}),r&&v.length>0&&jsx(et,{"data-testid":"RightHoverBridge",side:"right",style:{width:w,left:`${f.right}px`,zIndex:l,pointerEvents:"auto"}}),jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(tt,{"data-testid":"LeftExpandedSection",side:"left",style:{right:`calc(100% - ${f.left}px)`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:t.map((g,n)=>{let C=(Y[n]??(L+x)*(n+1))+$;return jsx(ut,{"data-testid":`LeftExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:-C}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(t.length-n)},children:jsx(rt,{"data-testid":`LeftExpandChip-${n}`,ref:y=>J.current[n]=y,children:g})},`left-${n}`)})},"left-expanded")}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(tt,{"data-testid":"RightExpandedSection",side:"right",style:{left:`${f.right}px`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:v.map((g,n)=>{let N=m[n]??(L+x)*(n+1),C=T;return jsx(gt,{"data-testid":`RightExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:C+N}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(v.length-n)},children:jsx(rt,{"data-testid":`RightExpandChip-${n}`,ref:y=>b.current[n]=y,children:g})},`right-${n}`)})},"right-expanded")})]})})})}var Tt=Ot;export{Tt as a};
1
+ import {yc}from'./chunk-QMBLENVJ.js';import {useId,useState,useRef,useCallback,useMemo,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useMotionValue,animate}from'framer-motion';import zt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=3,ft=styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:0,minWidth:0,height:"auto",lineHeight:1,position:"relative",zIndex:1001,fontSize:"12px",color:t.palette.text.primary})),ht=styled(motion.div)(()=>({display:"inline-flex"})),ut=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),gt=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),tt=styled(motion.div)(({side:t})=>({position:"absolute",display:"flex",alignItems:"center",...t==="left"?{right:"100%",flexDirection:"row-reverse",transformOrigin:"right center"}:{},...t==="right"?{left:"100%",flexDirection:"row",transformOrigin:"left center"}:{},top:"50%",transform:"translateY(-50%)",gap:0,pointerEvents:"auto",overflow:"visible"})),et=styled("div")(({side:t})=>({position:"absolute",top:0,bottom:0,...t==="left"?{right:"100%"}:{left:"100%"},pointerEvents:"auto",background:"transparent"})),xt=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",height:24,overflow:"visible"})),j=t=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,paddingInline:"8px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontSize:12,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"visible"}),mt=styled(motion.div)(({theme:t})=>({...j(t),position:"relative",zIndex:2,minWidth:24,flex:"0 0 auto",display:"inline-flex",overflow:"hidden",willChange:"transform"})),Ct=styled(motion.span)(()=>({display:"inline-flex",alignItems:"center",transform:"translateZ(0)"})),nt=styled(motion.span)(({theme:t})=>({display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",willChange:"width",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.background.paper,height:"24px",alignItems:"center",paddingInline:"0px"})),it=styled(motion.span)(()=>({display:"inline-flex",whiteSpace:"nowrap",alignItems:"center",height:"100%"})),yt=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",left:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),Et=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",right:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),rt=styled(motion.div)(({theme:t})=>({...j(t),minWidth:24,flex:"0 0 auto",display:"inline-flex"})),vt=styled(zt)(()=>({position:"relative",overflow:"visible",zIndex:101,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"20px"}));var L=24;function Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}){let[l,P]=useState(false),[r,q]=useState({left:0,right:0}),[c,G]=useState([]),[d,X]=useState([]),[f,J]=useState(0),[b,Y]=useState(0),m=useRef(null),k=useRef(null),z=useRef(null),M=useRef(null),A=useRef([]),O=useRef([]),T=useRef(null),$=useRef(null),I=useRef(null),w=useCallback((e,i)=>{if(e===i)return true;if(e.length!==i.length)return false;for(let a=0;a<e.length;a++)if(e[a]!==i[a])return false;return true},[]),D=useCallback((e,i)=>e.left===i.left&&e.right===i.right,[]),g=useMotionValue(0),n=useMotionValue(0),N=useMotionValue(0),C=useMemo(()=>{if(!c.length)return [];let e=[],i=x+c[0]/2;e.push(i);for(let a=1;a<c.length;a++)i+=c[a-1]/2+x+c[a]/2,e.push(i);return e},[c]),y=useMemo(()=>{if(!d.length)return [];let e=[],i=x+d[0]/2;e.push(i);for(let a=1;a<d.length;a++)i+=d[a-1]/2+x+d[a]/2,e.push(i);return e},[d]),Lt=l&&h?f:0,K=l&&u?b:0,at=h?f:0,Wt=useCallback(()=>{m.current&&clearTimeout(m.current),P(true);},[]),St=useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(false),120);},[]),_=useCallback(()=>{let e=k.current,i=M.current,a=z.current,Q=r;if(e){let R=e.getBoundingClientRect(),Z=(i??a)?.getBoundingClientRect();if(Z){let Pt=Math.round(Z.left-R.left),kt=Math.round(Z.right-R.left);Q={left:Pt,right:kt};}}let st=A.current.map(R=>R?R.offsetWidth:L),lt=O.current.map(R=>R?R.offsetWidth:L),pt=T.current?.scrollWidth??0,ct=$.current?.scrollWidth??0;D(r,Q)||q(Q),w(c,st)||G(st),w(d,lt)||X(lt),f!==pt&&J(pt),b!==ct&&Y(ct);},[r,c,d,f,b,D,w]),B=useCallback(()=>{I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{_();});},[_]);useEffect(()=>()=>{m.current&&clearTimeout(m.current);},[]),useLayoutEffect(()=>{_();},[H,t,v,h,u,_]),useEffect(()=>(B(),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B),I.current&&cancelAnimationFrame(I.current);}),[B]),useEffect(()=>{let i=animate(g,l&&h?f:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,h,f,g]),useEffect(()=>{let i=animate(n,l&&u?b:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,u,b,n]);let wt=useMemo(()=>{if(!C.length)return 0;let e=C.length-1,i=c[e]??L;return C[e]+i/2+K+x},[C,c,K]),Ht=useMemo(()=>{if(!y.length)return 0;let e=y.length-1,i=d[e]??L;return at+y[e]+i/2+x},[y,d,at]);return {isHovering:l,handleMouseEnter:Wt,handleMouseLeave:St,centerWrapRef:k,centerContentRef:z,centerChipRef:M,anchors:r,leftChipRefs:A,rightChipRefs:O,leftOffsets:C,rightOffsets:y,expandableRightInnerRef:T,expandableLeftInnerRef:$,expandableRightWidth:f,expandableLeftWidth:b,expandedRightMV:g,expandedLeftMV:n,shiftX:N,rightShift:Lt,leftShift:K,leftHoverWidth:wt,rightHoverWidth:Ht}}function Ot({leftIcons:t=[],rightIcons:v=[],centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u,expandedZIndex:l=1e3,...P}){let{isHovering:r,handleMouseEnter:q,handleMouseLeave:c,centerWrapRef:G,centerContentRef:d,centerChipRef:X,anchors:f,leftChipRefs:J,rightChipRefs:b,leftOffsets:Y,rightOffsets:m,expandableRightInnerRef:k,expandableLeftInnerRef:z,expandedRightMV:M,expandedLeftMV:A,shiftX:O,rightShift:T,leftShift:$,leftHoverWidth:I,rightHoverWidth:w}=Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}),D=yc(useId(),"right-left-expanding-center-chip");return jsx(vt,{...P,id:D,"data-testid":"RightLeftExpandingCenterChipBox",children:jsx(ht,{"data-testid":"CenterShiftWrapper",initial:false,style:{x:O},children:jsxs(ft,{"data-testid":"CenterIconWrapper",ref:G,onMouseLeave:c,children:[jsxs(xt,{"data-testid":"PeekContainer",children:[jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(yt,{"data-testid":"LeftPeekChip",initial:{opacity:0,scale:.95,x:-4},animate:r?{opacity:0,scale:.9,x:-6}:{opacity:1,scale:1,x:-5},exit:{opacity:0,scale:.95,x:-4},transition:{duration:.18,ease:"easeOut"}},"left-peek")}),jsx(mt,{"data-testid":"CenterChip",ref:X,onMouseEnter:q,style:{borderRadius:(()=>{let g=u&&r,n=h&&r;return g&&n?"0":g?"0 12px 12px 0":n?"12px 0 0 12px":"12px"})(),borderLeft:u&&r?"none":void 0,borderRight:h&&r?"none":void 0},children:jsx(Ct,{"data-testid":"CenterContent",ref:d,children:H})}),u&&jsx(nt,{"data-testid":"ExpandableLeftContainer",style:{width:A,position:"absolute",right:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"12px 0 0 12px",borderRight:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableLeftInner",ref:z,children:u})}),h&&jsx(nt,{"data-testid":"ExpandableRightContainer",style:{width:M,position:"absolute",left:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"0 12px 12px 0",borderLeft:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableRightInner",ref:k,children:h})}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(Et,{"data-testid":"RightPeekChip",initial:{opacity:0,scale:.95,x:4},animate:r?{opacity:0,scale:.9,x:6}:{opacity:1,scale:1,x:5},exit:{opacity:0,scale:.95,x:4},transition:{duration:.18,ease:"easeOut"}},"right-peek")})]}),r&&t.length>0&&jsx(et,{"data-testid":"LeftHoverBridge",side:"left",style:{width:I,right:`calc(100% - ${f.left}px)`,zIndex:l,pointerEvents:"auto"}}),r&&v.length>0&&jsx(et,{"data-testid":"RightHoverBridge",side:"right",style:{width:w,left:`${f.right}px`,zIndex:l,pointerEvents:"auto"}}),jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(tt,{"data-testid":"LeftExpandedSection",side:"left",style:{right:`calc(100% - ${f.left}px)`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:t.map((g,n)=>{let C=(Y[n]??(L+x)*(n+1))+$;return jsx(ut,{"data-testid":`LeftExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:-C}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(t.length-n)},children:jsx(rt,{"data-testid":`LeftExpandChip-${n}`,ref:y=>J.current[n]=y,children:g})},`left-${n}`)})},"left-expanded")}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(tt,{"data-testid":"RightExpandedSection",side:"right",style:{left:`${f.right}px`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:v.map((g,n)=>{let N=m[n]??(L+x)*(n+1),C=T;return jsx(gt,{"data-testid":`RightExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:C+N}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(v.length-n)},children:jsx(rt,{"data-testid":`RightExpandChip-${n}`,ref:y=>b.current[n]=y,children:g})},`right-${n}`)})},"right-expanded")})]})})})}var Tt=Ot;export{Tt as a};
@@ -0,0 +1,2 @@
1
+ import {kc}from'./chunk-QMBLENVJ.js';import {forwardRef,memo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled}from'@mui/material/styles';var o="os-shared-MaskedText",t={root:`${o}-root`,start:`${o}-start`,mask:`${o}-mask`,end:`${o}-end`};var p=()=>jsxs("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,children:[jsx("circle",{cx:"3",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"8",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"13",cy:"4",r:"1.5",fill:"currentColor"})]});var k=styled("span")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.v2.spacing(2),minWidth:0,color:"inherit",font:"inherit",lineHeight:1,whiteSpace:"nowrap"})),m=styled("span")({minWidth:0}),c=styled("span")({display:"inline-flex",alignItems:"center",flexShrink:0,lineHeight:0,"& svg":{display:"block",width:16,height:8}});function M(e,d,n){let s=Math.max(0,d),a=Math.max(0,n);return !e||s+a>=e.length?{start:e,end:"",isMasked:false}:{start:e.slice(0,s),end:e.slice(e.length-a),isMasked:true}}var T=forwardRef(({className:e,sx:d,text:n,startLength:s=8,endLength:a=4,separator:y,id:h,...g},S)=>{let{start:C,end:N,isMasked:u}=M(n,s,a);return jsxs(k,{ref:S,id:h??"MaskedText",className:kc(t.root,e),sx:d,"data-testid":"MaskedText",...g,children:[jsx(m,{className:t.start,children:C}),u&&jsxs(Fragment,{children:[jsx(c,{className:t.mask,children:y??jsx(p,{})}),jsx(m,{className:t.end,children:N})]})]})});T.displayName="MaskedText";var P=memo(T);
2
+ export{t as a,P as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-NCUKF2SQ.js';import {aa,ba}from'./chunk-5W5466MB.js';import {yc,Ac}from'./chunk-JDPHN2VN.js';import {Cb,A,Qf}from'./chunk-YKKS24ES.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R from'@mui/material/Box';import Me from'@mui/material/ClickAwayListener';import ve from'@mui/material/Popper';import T from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var _=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),I=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:l,hideArrows:t})=>{let{borderColor:i}=aa(e,o),a=l?"4px 4px 0 0":"4px",s="#F2F2F2";return o&&(s=i),n&&!o&&(s=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${s}`,borderBottom:l?"none":void 0,borderRadius:a,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),K=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var U=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(I)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function L(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(U,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Fe=L;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(R)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(R)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(R)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:l,countries:t=[],isLoading:i=false}){let a=yc(useId(),"countries-dropdown"),[s,g]=useState(null),[F,u]=useState([]),[b,h]=useState(),ue=()=>{if(t&&e){let r=t.find(x=>x.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A$1=!!s,xe=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),h(void 0);},ce=r=>{o?.(r),N(),u(t);},fe=r=>{let x=Number(r.target.value);if(h(x),!x){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(x.toString())));};return i?jsx(T,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Me,{onClickAway:N,children:jsxs(R,{id:a,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:xe,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),l&&jsx(ee,{component:"span",children:"*"}),jsx(R,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(ve,{open:A$1,anchorEl:s,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:fe,value:b,hideArrows:true}),jsx(Y,{children:F.map(r=>jsxs(Z,{onClick:()=>{ce(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>{let i=e.feedback,{isProvided:a,isVisible:s,type:g}=Ac(i),F=e.label??e.placeholder,u=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b=t?.message??e.helperText,h=!a&&b?jsx(K,{children:b}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(_,{id:n,"data-testid":"InputWrapper",children:jsx(I,{rows:1,hasError:(!!t?.message||!!e.error)&&!a,hasFeedback:s,feedbackType:g,...l,variant:"standard",label:F,placeholder:u,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:s?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),h,a?jsx(ba,{...i}):null]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function z({showSearchIcon:e=true,error:n,errorMessage:o,feedback:l,...t}){let i=yc(useId(),"search-input"),a=!!(n&&o&&!l);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:A,alt:"search"}),sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:l,error:n,...t}),a&&jsxs(le,{children:[jsx(pe,{src:Qf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=z;function D(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...l,value:l.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=D;export{Fe as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
1
+ import {a}from'./chunk-PDXWQNZW.js';import {aa,ba}from'./chunk-MX6II55S.js';import {yc,Ac}from'./chunk-QMBLENVJ.js';import {Cb,A,Qf}from'./chunk-UVKRET3U.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R from'@mui/material/Box';import Me from'@mui/material/ClickAwayListener';import ve from'@mui/material/Popper';import T from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var _=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),I=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:l,hideArrows:t})=>{let{borderColor:i}=aa(e,o),a=l?"4px 4px 0 0":"4px",s="#F2F2F2";return o&&(s=i),n&&!o&&(s=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${s}`,borderBottom:l?"none":void 0,borderRadius:a,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),K=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var U=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(I)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function L(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(U,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Fe=L;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(R)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(R)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(R)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:l,countries:t=[],isLoading:i=false}){let a=yc(useId(),"countries-dropdown"),[s,g]=useState(null),[F,u]=useState([]),[b,h]=useState(),ue=()=>{if(t&&e){let r=t.find(x=>x.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A$1=!!s,xe=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),h(void 0);},ce=r=>{o?.(r),N(),u(t);},fe=r=>{let x=Number(r.target.value);if(h(x),!x){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(x.toString())));};return i?jsx(T,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Me,{onClickAway:N,children:jsxs(R,{id:a,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:xe,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),l&&jsx(ee,{component:"span",children:"*"}),jsx(R,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(ve,{open:A$1,anchorEl:s,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:fe,value:b,hideArrows:true}),jsx(Y,{children:F.map(r=>jsxs(Z,{onClick:()=>{ce(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>{let i=e.feedback,{isProvided:a,isVisible:s,type:g}=Ac(i),F=e.label??e.placeholder,u=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b=t?.message??e.helperText,h=!a&&b?jsx(K,{children:b}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(_,{id:n,"data-testid":"InputWrapper",children:jsx(I,{rows:1,hasError:(!!t?.message||!!e.error)&&!a,hasFeedback:s,feedbackType:g,...l,variant:"standard",label:F,placeholder:u,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:s?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),h,a?jsx(ba,{...i}):null]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function z({showSearchIcon:e=true,error:n,errorMessage:o,feedback:l,...t}){let i=yc(useId(),"search-input"),a=!!(n&&o&&!l);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:A,alt:"search"}),sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:l,error:n,...t}),a&&jsxs(le,{children:[jsx(pe,{src:Qf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=z;function D(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...l,value:l.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=D;export{Fe as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
@@ -0,0 +1 @@
1
+ import {t,p}from'./chunk-MX6II55S.js';import {yc,dc,Aa}from'./chunk-QMBLENVJ.js';import St,{forwardRef,useId,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 {styled as styled$1}from'@mui/material';import Ye from'@mui/material/TableCell';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=24;var $=.22;var pe=styled(Ye,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var ot=forwardRef(({children:e,...t},r)=>{let o=yc(useId(),"table-cell");return jsx(pe,{id:o,component:"div","data-testid":"TableCell",...t,ref:r,children:e})}),le=memo(ot);var Xt=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({display:"flex",width:"17px",height:"12px",backgroundColor:t?dc(e.palette)[t]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),Zt=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),jt=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),Ut=styled$1("img")(()=>({width:"12px",height:"12px"})),Gt=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:t})=>({...t&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:t?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),qt=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),Jt=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),ce=styled$1(t)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,color:e.palette.background.default,border:`1px solid ${e.palette.divider}`})),se=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),Qt=styled$1(se)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),Yt=styled$1(se)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),er=styled$1(le)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),tr=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),rr=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),or=styled$1("img")(()=>({width:"36px",height:"24px"})),nr=styled$1("div")(({percentage:e,isCapture:t,theme:r})=>({background:`conic-gradient(${t?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${t?r.palette.info.dark:"#656565"}`}));var de=styled(P)(()=>({display:"flex",gap:"8px",overflow:"visible"})),lt=["trackWidth","minTrackWidth","slotSize","hoverZIndex"],me=styled("div",{shouldForwardProp:e=>!lt.includes(e)})(({trackWidth:e,minTrackWidth:t,slotSize:r,hoverZIndex:o})=>({position:"relative",overflow:"visible",width:e,minWidth:t,height:r,transition:`width ${.22}s ease-out`,...o!==void 0?{zIndex:o}:{}})),B=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 ue(e){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 ${e.palette.divider}`,backgroundColor:e.palette.common.white,flexShrink:0}}var he=styled(({title:e,className:t,...r})=>e!=null&&e!==""?jsx(p,{title:e,wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{className:t,...r})}):jsx(P,{className:["chip-stack-overlap-slot",t].filter(Boolean).join(" "),...r}))(({theme:e})=>({...ue(e),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"}})),V=styled(({title:e,...t})=>jsx(p,{title:e??"",wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{...t})}))(({theme:e})=>({...ue(e),fontSize:`max(${8}px, calc(var(--chip-stack-slot-size, ${24}px) * ${8.5} / ${24}))`,fontWeight:500,color:e.palette.text.disabled}));function fe({overflowItems:e,size:t}){let r=`${Math.max(8,8.5*t/24)}px`;return jsxs(P,{sx:{width:t,height:t,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:["+",e.length]})}var ct=["faceSize","avatarFill"],Se=styled(ce,{shouldForwardProp:e=>!ct.includes(e)})(({theme:e,faceSize:t,avatarFill:r})=>{let o=`${t}px`,i=`${Math.max(7,8.5*t/24)}px`;return {width:o,height:o,fontSize:i,fontWeight:500,lineHeight:"100%",letterSpacing:"0%",textAlign:"center",color:e.palette.common.white,background:r,backgroundSize:"cover","&.MuiAvatar-colorDefault":{background:r,color:e.palette.common.white},"& .MuiAvatar-img":{objectFit:"cover"}}});function xe(e){return e==="fanout-left"?"left":e==="fanout-center"?"center":"right"}function Ce(e,t,r){return e==="static"?t?"static-children":r?"static-items":null:t?"animated-children":r?"animated-items":null}function ge({size:e,stackStep:t,gap:r,minTrackWidth:o}){let i=e??24,n=t??Math.round(i/2),l=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:l,minTrackWidth:a}}function ke(e,t){if(e<=0)return 0;switch(t){case "right":return 0;case "left":return e-1;default:return Math.floor((e-1)/2)}}function ye(e,t){return t!==void 0&&e>t}function M(e,t){return t===void 0||t<1||e.length<t?{visibleItems:e,hiddenItems:[]}:{visibleItems:e.slice(0,t-1),hiddenItems:e.slice(t-1)}}function ht(e,t){return isValidElement(e)&&e.key!=null&&e.key!==""?String(e.key):`chip-stack-child-${t}`}function Z({items:e,maxItems:t,getItemKey:r,renderItem:o,renderOverflow:i,slotSize:n}){let l={slotSize:n};if(e.length===0)return [];let{visibleItems:a,hiddenItems:p}=M(e,t),c=a.map((d,s)=>({key:r(d,s),render:()=>o(d,s,l)}));return p.length>0&&c.push({key:`chip-stack-overflow-${p.length}-${a.length}`,render:()=>i({items:e,overflowItems:p,size:n})}),c}function be({children:e,maxItems:t,slotSize:r,renderOverflow:o}){let i=Children.toArray(e);return Z({items:i,maxItems:t,getItemKey:ht,renderItem:n=>n,renderOverflow:o,slotSize:r})}function Ae(e,t){return e.length===t.length&&e.every((r,o)=>r===t[o])}function X(e,t,r){return e[t]??r}function ve(e,t,r,o,i,n){if(e===0)return [];let l=t*i,a=new Array(e);a[t]=l;for(let p=t-1;p>=0;p-=1)a[p]=a[p+1]-X(r,p,n)-o;for(let p=t+1;p<e;p+=1)a[p]=a[p-1]+X(r,p-1,n)+o;return a}function Te(e,t,r){return e<=0?0:(e-1)*t+r}function Re(e,t,r,o){return Array.from({length:e},(i,n)=>e<=1||!t?0:r[n]-n*o)}function Ie(e,t,r,o,i){if(e<=0)return 0;let n=t.map((p,c)=>p+X(r,c,i)),l=Math.min(...t),a=Math.max(...n);return Math.max(o,a-l)}function Pe(e,t,r){return Array.from({length:e},(o,i)=>{let n=t.current[i];return n?n.offsetWidth:r})}function j(e,t){return e.id??`${e.first}-${e.last}-${t}`}function we(e){return [e.first,e.last].map(t=>t?.[0]).filter(t=>t!=null&&t!=="").join("")}function _e(e){if(e.tooltip!==void 0)return e.tooltip===null?null:e.tooltip;let t=`${e.first||""} ${e.last||""}`.trim();return t!==""?t:null}function Ne({slotCount:e,anchorIndex:t,size:r,stackStep:o,gap:i,fanOutEnabled:n,compact:l}){let[a,p]=useState(false),[c,d]=useState(()=>Array.from({length:e},()=>r)),s=useRef(null),S=useRef([]),g=useRef(null),k=useCallback(()=>{let R=Pe(e,S,r);d(b=>Ae(b,R)?b:R);},[e,r]),u=useCallback(()=>{g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(k);},[k]),y=useMemo(()=>ve(e,t,c,i,o,r),[e,t,c,i,o,r]),A=useMemo(()=>Re(e,n&&a,y,o),[e,n,a,y,o]),x=useMemo(()=>Te(e,o,r),[e,o,r]),O=useMemo(()=>Ie(e,y,c,x,r),[e,y,c,x,r]),C=useCallback(()=>{n&&(s.current&&clearTimeout(s.current),p(true));},[n]),h=useCallback(()=>{n&&(s.current&&clearTimeout(s.current),s.current=setTimeout(()=>p(false),120));},[n]);useEffect(()=>()=>{s.current&&clearTimeout(s.current);},[]),useEffect(()=>{n||p(false);},[n]),useLayoutEffect(()=>{d(Array.from({length:e},()=>r));},[e,r]),useLayoutEffect(()=>{k();},[e,r,k]),useEffect(()=>(u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u),g.current&&cancelAnimationFrame(g.current);}),[u]);let v=n&&a?O:l?r:x,T=n&&a,N=useMemo(()=>l?Array.from({length:e},(R,b)=>b===t||a?1:0):Array.from({length:e},()=>1),[l,e,t,a]);return {isHovering:a,handleMouseEnter:C,handleMouseLeave:h,slotRefs:S,translateX:A,slotOpacity:N,collapsedStackWidthPx:x,fannedRowWidthPx:O,trackWidth:v,hoverZIndexActive:T}}function D({items:e,children:t,maxItems:r,getItemKey:o,renderItem:i,renderOverflow:n,fanOutDirection:l,compact:a=false,"data-testid":p,sx:c,className:d,slotProps:s}){let S=Children.count(t)>0,{zIndex:g=1e3,size:k,stackStep:u,gap:y,minTrackWidth:A}=s?.layout??{},x=useMemo(()=>S?Children.toArray(t??null).length:e?.length??0,[S,t,e]),C=!(!a&&ye(x,r)),{size:h,stackStep:F,gap:v,minTrackWidth:T}=useMemo(()=>ge({size:k,stackStep:u,gap:y,minTrackWidth:A}),[k,u,y,A]),N=n??fe,R=useMemo(()=>S?be({children:t??null,maxItems:r,slotSize:h,renderOverflow:N}):!e?.length||!o||!i?[]:Z({items:e,maxItems:r,getItemKey:o,renderItem:i,slotSize:h,renderOverflow:N}),[S,t,e,r,o,i,N,h]),b=R.length,Ke=useMemo(()=>ke(b,l),[b,l]),{handleMouseEnter:He,handleMouseLeave:De,slotRefs:$e,translateX:Be,slotOpacity:te,collapsedStackWidthPx:Xe,trackWidth:Ze,hoverZIndexActive:je}=Ne({slotCount:b,anchorIndex:Ke,size:h,stackStep:F,gap:v,fanOutEnabled:C,compact:a});if(b===0)return null;let{sx:z,...Ue}=s?.shell??{},{style:Ge,...qe}=s?.track??{};return jsx(de,{className:d,...Ue,sx:[{justifyContent:"flex-start",...C||a?{width:"100%"}:{}},...Array.isArray(c)?c:c!=null?[c]:[],...Array.isArray(z)?z:z!=null?[z]:[]],children:jsx(me,{"data-testid":p,...qe,style:Ge,onMouseEnter:C?He:void 0,onMouseLeave:C?De:void 0,trackWidth:Ze,minTrackWidth:a?h:Math.max(T,Xe),slotSize:h,hoverZIndex:je?g:void 0,children:R.map((re,I)=>jsx(motion.div,{ref:Je=>{$e.current[I]=Je;},initial:false,animate:{x:Be[I]??0,opacity:te[I]??1},transition:{duration:.22,ease:"easeOut"},style:{position:"absolute",top:0,left:I*F,zIndex:I,width:h,height:h,pointerEvents:te[I]===0?"none":"auto"},children:re.render()},re.key))})})}function Ct({children:e,maxItems:t,renderOverflow:r,slotSize:o=24,sx:i,...n}){let l=useMemo(()=>St.Children.toArray(e),[e]),{visibleItems:a,hiddenItems:p}=useMemo(()=>M(l,t),[l,t]),c=p.length>0,d=useMemo(()=>[{"--chip-stack-slot-size":`${o}px`},...Array.isArray(i)?i:i!=null?[i]:[]],[o,i]);if(!c)return jsx(B,{"data-testid":"ChipStack",...n,sx:d,children:e});let s=r?.({items:l,overflowItems:p,size:o});return jsxs(B,{"data-testid":"ChipStack",...n,sx:d,children:[a,s??jsx(V,{title:`${p.length} more`,children:jsxs("span",{children:["+",p.length]})})]})}var Q=memo(Ct);function kt(e){return jsx(he,{"data-testid":"OverlapChip",...e})}var Y=memo(kt);var bt=["static","fanout-right","fanout-left","fanout-center"],ee="static";function vt(e){let{variant:t=ee,maxItems:r,renderOverflow:o,children:i,items:n,getItemKey:l,renderItem:a,compact:p=false,"data-testid":c,slotProps:d,sx:s,className:S}=e,g=Children.count(i??null)>0,k=!g&&(n?.length??0)>0&&l!=null&&a!=null,u=Ce(t,g,k);if(u===null)return null;if(u==="static-children"||u==="static-items"){let x=d?.layout?.size??24;if(u==="static-items"&&n&&l&&a){let{visibleItems:O,hiddenItems:C}=M(n,r),h=C.length>0?o?.({items:n,overflowItems:C,size:x})??jsx(V,{title:`${C.length} more`,children:jsxs("span",{children:["+",C.length]})}):null,F=jsxs(Fragment,{children:[O.map((v,T)=>jsx(Y,{children:a(v,T,{slotSize:x})},l(v,T))),h]});return jsx(Q,{"data-testid":c,slotSize:x,sx:s,className:S,children:F})}return jsx(Q,{"data-testid":c,maxItems:r,renderOverflow:o,slotSize:x,sx:s,className:S,children:i})}let y=xe(t),A={maxItems:r,renderOverflow:o,fanOutDirection:y,compact:p,"data-testid":c??"ChipStack",slotProps:d,sx:s,className:S};return u==="animated-children"?jsx(D,{...A,children:i}):jsx(D,{...A,items:n,getItemKey:l,renderItem:a})}var ze=vt;function wt({item:e,sourceIndex:t,slotSize:r}){let[o,i]=useState(false),n=useRef(null);useEffect(()=>{i(false);},[e.logo]);let l=!e.logo||o,a=j(e,t),p$1="transparent";l&&(n.current?.key!==a&&(n.current={key:a,fill:Aa()}),p$1=n.current.fill);let c=jsx(Se,{faceSize:r,avatarFill:p$1,src:l?void 0:e.logo,slotProps:l?void 0:{img:{onError:()=>i(true)}},children:we(e)}),d=_e(e);return d!=null&&d!==""?jsx(p,{title:d,children:c}):c}var _t=wt;var to=ze;export{le as a,Xt as b,Zt as c,jt as d,Ut as e,Gt as f,qt as g,Jt as h,ce as i,se as j,Qt as k,Yt as l,er as m,tr as n,rr as o,or as p,nr as q,f as r,$ as s,j as t,Y as u,bt as v,ee as w,ze as x,_t as y,to as z};