@tap-payments/os-micro-frontend-shared 0.1.476 → 0.1.477-test.2

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 (243) hide show
  1. package/build/{chunk-5XEW4QTS.js → chunk-24D2TNNY.js} +1 -1
  2. package/build/{chunk-5AP2LF3H.js → chunk-2SLMVVV3.js} +1 -1
  3. package/build/{chunk-RP4MJ5Q6.js → chunk-2TQNXS73.js} +1 -1
  4. package/build/{chunk-2YHDR6KJ.js → chunk-3R74OKMG.js} +1 -1
  5. package/build/{chunk-MT5QLVFK.js → chunk-3TYEEWUM.js} +1 -1
  6. package/build/{chunk-LLA5JSVK.js → chunk-3VGQ42OI.js} +1 -1
  7. package/build/{chunk-ZVR3N6WG.js → chunk-4PTJVJGN.js} +1 -1
  8. package/build/chunk-6OL3JUPA.js +1 -0
  9. package/build/{chunk-TR3SEJSN.js → chunk-6OSSML46.js} +1 -1
  10. package/build/{chunk-QGPGFPW5.js → chunk-6OZURZ2J.js} +1 -1
  11. package/build/{chunk-SPNQ2E2Q.js → chunk-6RMDSMJP.js} +1 -1
  12. package/build/{chunk-E6MD7WFS.js → chunk-ABY47DSJ.js} +1 -1
  13. package/build/{chunk-NBGGOUIZ.js → chunk-AK4FIVFH.js} +1 -1
  14. package/build/{chunk-L4B4IVAJ.js → chunk-AO457WXQ.js} +1 -1
  15. package/build/{chunk-NFNAX7ZR.js → chunk-ARSSSITK.js} +1 -1
  16. package/build/chunk-BT2QZGRR.js +1 -0
  17. package/build/{chunk-O5XTGPQS.js → chunk-BWIJY2WE.js} +1 -1
  18. package/build/{chunk-WCKORXDZ.js → chunk-BX63HTMQ.js} +1 -1
  19. package/build/{chunk-6R62IHYU.js → chunk-ETSKMGSS.js} +2 -2
  20. package/build/{chunk-JXBLMQQW.js → chunk-F5BRCMX3.js} +1 -1
  21. package/build/{chunk-63X52EKP.js → chunk-FKD6E26U.js} +1 -1
  22. package/build/{chunk-GMX5M76T.js → chunk-GOUJ5ZUW.js} +1 -1
  23. package/build/chunk-GTY2ZBCY.js +1 -0
  24. package/build/{chunk-SN4NF2DB.js → chunk-IKUOEIOO.js} +1 -1
  25. package/build/{chunk-XBOCHTAW.js → chunk-IYFH5KXZ.js} +1 -1
  26. package/build/chunk-J2Z4QVIO.js +1 -0
  27. package/build/{chunk-RRGMY7JG.js → chunk-JMV7T5XA.js} +1 -1
  28. package/build/{chunk-WOTZJWJO.js → chunk-JWQCFINS.js} +1 -1
  29. package/build/{chunk-QODYGBWL.js → chunk-KDVCU5UC.js} +2 -2
  30. package/build/{chunk-WC257EIO.js → chunk-LKK7HW6N.js} +1 -1
  31. package/build/{chunk-3LSEPLBS.js → chunk-LXWCV7XY.js} +1 -1
  32. package/build/{chunk-26O5AFVA.js → chunk-MM6JBQHW.js} +1 -1
  33. package/build/chunk-MOREGFIY.js +1 -0
  34. package/build/chunk-NIIRPM2P.js +1 -0
  35. package/build/{chunk-EVXUJZHR.js → chunk-NOO5LTIU.js} +1 -1
  36. package/build/{chunk-DOS7HEOK.js → chunk-NU4JZVKW.js} +1 -1
  37. package/build/{chunk-6MGFWHFE.js → chunk-O23ZGMIO.js} +1 -1
  38. package/build/{chunk-564ORABT.js → chunk-OWWED4PY.js} +1 -1
  39. package/build/{chunk-HER5WIWD.js → chunk-OZVTT6UG.js} +1 -1
  40. package/build/{chunk-D77WOGTR.js → chunk-P6EO5ZKH.js} +1 -1
  41. package/build/{chunk-OAW3HGVO.js → chunk-PD64HN2X.js} +1 -1
  42. package/build/{chunk-GCAVKPOC.js → chunk-QGGTALT2.js} +1 -1
  43. package/build/{chunk-A5L5THUJ.js → chunk-QHUUB5UA.js} +1 -1
  44. package/build/{chunk-5J4ZTV3V.js → chunk-QKCWEX4G.js} +1 -1
  45. package/build/{chunk-QHCXUNDI.js → chunk-QSFU7MAF.js} +1 -1
  46. package/build/{chunk-QGGRITXQ.js → chunk-QUUQ7L4F.js} +1 -1
  47. package/build/chunk-R3V7C2N6.js +1 -0
  48. package/build/{chunk-DHXBB2IU.js → chunk-R5BTIY3J.js} +1 -1
  49. package/build/chunk-ROXE5K4B.js +2 -0
  50. package/build/{chunk-QHZBPLTG.js → chunk-S3DUYHQG.js} +1 -1
  51. package/build/{chunk-TVF6SSDQ.js → chunk-S3HYGR6A.js} +1 -1
  52. package/build/{chunk-SPP7UMVK.js → chunk-SA3T5LKX.js} +1 -1
  53. package/build/{chunk-AK6AGGIC.js → chunk-SH5B2C5G.js} +1 -1
  54. package/build/chunk-SRWAY2MJ.js +1 -0
  55. package/build/{chunk-X4FY4LSJ.js → chunk-SSOATT5T.js} +1 -1
  56. package/build/{chunk-GLZ7GEBP.js → chunk-TIQMT2NC.js} +1 -1
  57. package/build/{chunk-6HF3RRHM.js → chunk-TLKUQ74V.js} +1 -1
  58. package/build/{chunk-4HPJPKH2.js → chunk-TYFM2CLZ.js} +1 -1
  59. package/build/{chunk-ZXIJT5DT.js → chunk-U2EVJIKE.js} +1 -1
  60. package/build/{chunk-44TDOYFI.js → chunk-UNZG4C4Y.js} +1 -1
  61. package/build/{chunk-DMSMH6Q6.js → chunk-VI4EBPCV.js} +1 -1
  62. package/build/{chunk-LFEL2NAC.js → chunk-VPGXTTNN.js} +1 -1
  63. package/build/{chunk-ABBNDFGJ.js → chunk-WDGOOLU7.js} +1 -1
  64. package/build/{chunk-CPDH5SRY.js → chunk-WGMZ5XLV.js} +1 -1
  65. package/build/{chunk-SICK5RMI.js → chunk-WRXSOWHO.js} +1 -1
  66. package/build/{chunk-UPWJMPK6.js → chunk-WUEFAFSM.js} +1 -1
  67. package/build/{chunk-63E3R5PA.js → chunk-WVAZXL5U.js} +1 -1
  68. package/build/{chunk-ECDED65U.js → chunk-WXO77AL5.js} +1 -1
  69. package/build/{chunk-RJUHOAU4.js → chunk-XCJHY5ZJ.js} +1 -1
  70. package/build/{chunk-27CJKJ7T.js → chunk-XIVQ3YLE.js} +1 -1
  71. package/build/chunk-YBRGXFZD.js +1 -0
  72. package/build/chunk-YQXNUPQV.js +2 -0
  73. package/build/{chunk-HN3LUUAR.js → chunk-ZHHW347C.js} +1 -1
  74. package/build/components/AccordionAdapter/index.js +1 -1
  75. package/build/components/AccountDropdown/index.js +1 -1
  76. package/build/components/ActivityAreaChart/index.js +1 -1
  77. package/build/components/Amount/index.js +1 -1
  78. package/build/components/AmountConversionFilter/index.js +1 -1
  79. package/build/components/AmountInput/index.js +1 -1
  80. package/build/components/AmountStatusChip/index.js +1 -1
  81. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  82. package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
  83. package/build/components/AppServices/index.js +1 -1
  84. package/build/components/AppServicesActionMenu/index.js +1 -1
  85. package/build/components/AppServicesBar/index.js +1 -1
  86. package/build/components/AppWindowWrapper/index.js +1 -1
  87. package/build/components/AuthenticationTypeChip/index.js +1 -1
  88. package/build/components/Autocomplete/index.js +1 -1
  89. package/build/components/BrandLogo/index.js +1 -1
  90. package/build/components/Button/index.js +1 -1
  91. package/build/components/Calender/index.js +1 -1
  92. package/build/components/CardEmptyState/index.js +1 -1
  93. package/build/components/Checkbox/index.js +1 -1
  94. package/build/components/Chip/style.d.ts +0 -1
  95. package/build/components/ColorPicker/index.js +1 -1
  96. package/build/components/CopyImage/index.js +1 -1
  97. package/build/components/CountBadge/index.js +1 -1
  98. package/build/components/CountBadge/style.d.ts +0 -1
  99. package/build/components/CountryFilter/index.js +1 -1
  100. package/build/components/CountryFlag/index.js +1 -1
  101. package/build/components/CurrencyFilter/index.js +1 -1
  102. package/build/components/CurrencySymbol/index.js +1 -1
  103. package/build/components/Customer/index.js +1 -1
  104. package/build/components/DateButton/index.js +1 -1
  105. package/build/components/DateFilter/index.js +1 -1
  106. package/build/components/DeviceIcon/index.js +1 -1
  107. package/build/components/Dialog/index.js +1 -1
  108. package/build/components/Dialog/style.d.ts +0 -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/DropdownButton/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/FileUpload.d.ts +7 -2
  119. package/build/components/FileUpload/index.js +1 -1
  120. package/build/components/FileUpload/style.d.ts +3 -1
  121. package/build/components/FileUploader/index.js +1 -1
  122. package/build/components/FilterDropdown/index.js +1 -1
  123. package/build/components/FilteredIds/index.js +1 -1
  124. package/build/components/Filters/index.js +1 -1
  125. package/build/components/FlagDetails/index.js +1 -1
  126. package/build/components/FlippingCard/style.d.ts +0 -1
  127. package/build/components/IconGallery/index.js +1 -1
  128. package/build/components/IconWithBadge/index.js +1 -1
  129. package/build/components/IconWithLabel/index.js +1 -1
  130. package/build/components/IconsDropdown/index.js +1 -1
  131. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  132. package/build/components/InputBase/index.js +1 -1
  133. package/build/components/InputNumber/index.js +1 -1
  134. package/build/components/Inputs/index.js +1 -1
  135. package/build/components/JSONViewer/index.js +1 -1
  136. package/build/components/JSONViewer/style.d.ts +0 -1
  137. package/build/components/LabeledIconDropdown/index.js +1 -1
  138. package/build/components/LanguageDropdown/index.js +1 -1
  139. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  140. package/build/components/ListColumnFilter/index.js +1 -1
  141. package/build/components/MFWidgetLoader/index.js +1 -1
  142. package/build/components/MaskedText/index.js +1 -1
  143. package/build/components/MenuItem/index.js +1 -1
  144. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  145. package/build/components/MerchantLogo/index.js +1 -1
  146. package/build/components/MerchantsDropdown/index.js +1 -1
  147. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  148. package/build/components/MultiSelectStatusButton/index.js +1 -1
  149. package/build/components/MultiSelectWithSearch/index.js +1 -1
  150. package/build/components/NestedDropdown/index.js +1 -1
  151. package/build/components/PartnersFilter/index.js +1 -1
  152. package/build/components/PaymentSourceFilter/index.js +1 -1
  153. package/build/components/PhoneFilter/index.js +1 -1
  154. package/build/components/ProgressRing/index.js +1 -1
  155. package/build/components/RFH/index.js +1 -1
  156. package/build/components/RangeCalender/index.js +1 -1
  157. package/build/components/ReceiptsViewer/index.js +1 -1
  158. package/build/components/ReferenceTypeFilter/index.js +1 -1
  159. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  160. package/build/components/SalesChannelFilter/index.js +1 -1
  161. package/build/components/Sandbox/index.js +1 -1
  162. package/build/components/SearchButton/index.js +1 -1
  163. package/build/components/SearchButton/styles.d.ts +0 -1
  164. package/build/components/SearchListInput/index.js +1 -1
  165. package/build/components/SelectDropdown/index.js +1 -1
  166. package/build/components/SelectWithSearch/index.js +1 -1
  167. package/build/components/StatusBar/index.js +1 -1
  168. package/build/components/StatusButton/index.js +1 -1
  169. package/build/components/StatusChip/index.js +1 -1
  170. package/build/components/StatusChipWithCopy/index.js +1 -1
  171. package/build/components/StatusFilter/index.js +1 -1
  172. package/build/components/StatusGroupChips/index.js +1 -1
  173. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  174. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  175. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  176. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  177. package/build/components/StatusIcons/index.js +1 -1
  178. package/build/components/StatusLabel/index.js +1 -1
  179. package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -0
  180. package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
  181. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -2
  182. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
  183. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  184. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  185. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  186. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  187. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  188. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  189. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  190. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  191. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  192. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  193. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  194. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  195. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
  196. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  197. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  198. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  199. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  200. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  201. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  202. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  203. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  204. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  205. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  206. package/build/components/TableCells/index.js +1 -1
  207. package/build/components/TableHeader/index.js +1 -1
  208. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
  209. package/build/components/TableReports/index.js +1 -1
  210. package/build/components/TableReports/style.d.ts +0 -1
  211. package/build/components/TableView/index.js +1 -1
  212. package/build/components/Timepicker/index.js +1 -1
  213. package/build/components/Toaster/index.js +1 -1
  214. package/build/components/ToggleView/index.js +1 -1
  215. package/build/components/Toolbar/index.js +1 -1
  216. package/build/components/ToolbarIcon/index.js +1 -1
  217. package/build/components/TreeDropdown/index.js +1 -1
  218. package/build/components/VAT/index.js +1 -1
  219. package/build/components/VerificationIcon/index.js +1 -1
  220. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  221. package/build/components/VirtualTables/components/style.d.ts +0 -1
  222. package/build/components/VirtualTables/index.js +1 -1
  223. package/build/components/Widget/index.js +1 -1
  224. package/build/components/Window/index.js +1 -1
  225. package/build/components/WindowSideBar/index.js +1 -1
  226. package/build/components/index.js +1 -1
  227. package/build/constants/assets.d.ts +4 -0
  228. package/build/constants/index.js +1 -1
  229. package/build/hooks/index.js +1 -1
  230. package/build/index.js +1 -1
  231. package/build/utils/index.js +1 -1
  232. package/package.json +33 -47
  233. package/build/chunk-6X6APLPU.js +0 -1
  234. package/build/chunk-BFOMPZXL.js +0 -1
  235. package/build/chunk-BW2NZYIQ.js +0 -1
  236. package/build/chunk-D5RQWU62.js +0 -1
  237. package/build/chunk-IBQ5J3J3.js +0 -1
  238. package/build/chunk-QQVGTQT3.js +0 -1
  239. package/build/chunk-S4ZK6QGJ.js +0 -1
  240. package/build/chunk-TCLN5DZD.js +0 -2
  241. package/build/chunk-XCLBERSS.js +0 -1
  242. package/build/chunk-XVD3YIJN.js +0 -2
  243. package/build/chunk-ZCYVHGHI.js +0 -1
@@ -1 +1 @@
1
- import {Sd}from'./chunk-TCLN5DZD.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(Box,{shouldForwardProp:e=>e!=="isHovered"&&e!=="isContentHovered"&&e!=="hideSandbox"})(({hideSandbox:e})=>({width:"6.4rem",display:"flex",justifyContent:"flex-end",alignItems:"center",transition:"opacity 0.2s ease-in-out",visibility:e?"hidden":"visible"})),l=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center"})),g=styled("img")(()=>({height:"0.75rem",width:"0.75rem",opacity:0,transition:"opacity 0.2s ease-in-out","&:hover":{opacity:1}})),p=styled(g,{shouldForwardProp:e=>e!=="isHovered"})(({isHovered:e})=>({opacity:e?1:0,transition:"opacity 0.2s ease-in-out",height:"auto",width:"auto",cursor:"pointer"})),c=styled("p",{shouldForwardProp:e=>e!=="isContentHovered"})(({theme:e,isContentHovered:o})=>({color:e.palette.common.orange,fontSize:"0.62rem",fontWeight:600,paddingRight:"0.25rem",opacity:o?1:0,display:o?"block":"none",transition:"opacity 0.2s ease-in-out",margin:0})),x=styled("div",{shouldForwardProp:e=>e!=="isHovered"&&e!=="active"})(({theme:e,isHovered:o,active:n})=>({width:12,height:12,borderRadius:50,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n?e.palette.common.orange:o?`${e.palette.grey[200]}40`:`${e.palette.grey[200]}14`,transition:"background-color 0.2s ease-in-out"}));function h({appInfo:e,onToggleSandbox:o,isHovered:n,isContentHovered:r,onMouseContentEnter:b,onMouseContentLeave:m}){let{t:S}=useTranslation(),u=e?.isMaximized&&!e?.sandboxMode&&!n;return jsx(s,{hideSandbox:u,children:jsxs(l,{onClick:o,children:[jsx(c,{isContentHovered:r||e?.sandboxMode,children:S("sandboxMode")}),jsx(x,{active:r||e?.sandboxMode,isHovered:n,onMouseEnter:b,onMouseLeave:m,children:jsx(p,{isHovered:n||e?.sandboxMode,src:Sd,alt:"Sandbox icon"})})]})})}var y=h;var B=y;export{B as a};
1
+ import {Ud}from'./chunk-ROXE5K4B.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(Box,{shouldForwardProp:e=>e!=="isHovered"&&e!=="isContentHovered"&&e!=="hideSandbox"})(({hideSandbox:e})=>({width:"6.4rem",display:"flex",justifyContent:"flex-end",alignItems:"center",transition:"opacity 0.2s ease-in-out",visibility:e?"hidden":"visible"})),l=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center"})),g=styled("img")(()=>({height:"0.75rem",width:"0.75rem",opacity:0,transition:"opacity 0.2s ease-in-out","&:hover":{opacity:1}})),p=styled(g,{shouldForwardProp:e=>e!=="isHovered"})(({isHovered:e})=>({opacity:e?1:0,transition:"opacity 0.2s ease-in-out",height:"auto",width:"auto",cursor:"pointer"})),c=styled("p",{shouldForwardProp:e=>e!=="isContentHovered"})(({theme:e,isContentHovered:o})=>({color:e.palette.common.orange,fontSize:"0.62rem",fontWeight:600,paddingRight:"0.25rem",opacity:o?1:0,display:o?"block":"none",transition:"opacity 0.2s ease-in-out",margin:0})),x=styled("div",{shouldForwardProp:e=>e!=="isHovered"&&e!=="active"})(({theme:e,isHovered:o,active:n})=>({width:12,height:12,borderRadius:50,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n?e.palette.common.orange:o?`${e.palette.grey[200]}40`:`${e.palette.grey[200]}14`,transition:"background-color 0.2s ease-in-out"}));function h({appInfo:e,onToggleSandbox:o,isHovered:n,isContentHovered:r,onMouseContentEnter:b,onMouseContentLeave:m}){let{t:S}=useTranslation(),u=e?.isMaximized&&!e?.sandboxMode&&!n;return jsx(s,{hideSandbox:u,children:jsxs(l,{onClick:o,children:[jsx(c,{isContentHovered:r||e?.sandboxMode,children:S("sandboxMode")}),jsx(x,{active:r||e?.sandboxMode,isHovered:n,onMouseEnter:b,onMouseLeave:m,children:jsx(p,{isHovered:n||e?.sandboxMode,src:Ud,alt:"Sandbox icon"})})]})})}var y=h;var B=y;export{B as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {Yh,Qd}from'./chunk-TCLN5DZD.js';import M from'@mui/material/Box';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var c=styled(Box)(({theme:t})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:"pointer"})),m=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),l=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),n=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),f=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),u=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),y=styled(a)(({theme:t})=>({color:t.palette.error.main,fontSize:"8px",fontWeight:500}));var j=({getRootProps:t,getInputProps:C,open:U,onChangeFiles:h,processFiles:F,disabled:W,errorMessage:a,maxFileSize:I,preventDuplicates:b,label:P="Click to upload",hintText:S,sx:k})=>jsxs(c,{...t(),sx:k,onClick:U,children:[jsx("input",{"data-slot":"input",...C(),onChange:T=>{let i=F(Array.from(T.target.files||[]));(i.length>0||!b)&&h(i);},disabled:W}),jsxs(m,{"data-slot":"content",children:[jsx(u,{"data-slot":"icon-wrapper",children:jsx(M,{component:"img",src:a?Yh:Qd,width:16,height:16})}),a?jsxs(n,{children:[jsx(y,{children:a}),jsx(l,{children:"Click to upload again"})]}):jsxs(n,{children:[jsx(l,{children:P}),jsx(f,{children:S||`PDF, JPG or PNG files up to ${I}`})]})]})]}),g=j;var N=g;export{N as a};
1
+ import {a}from'./chunk-CNIYZZCP.js';import {$h,Sd}from'./chunk-ROXE5K4B.js';import M from'@mui/material/Box';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var c=styled(Box)(({theme:t})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:"pointer"})),m=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),l=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),n=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),f=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),u=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),y=styled(a)(({theme:t})=>({color:t.palette.error.main,fontSize:"8px",fontWeight:500}));var j=({getRootProps:t,getInputProps:C,open:U,onChangeFiles:h,processFiles:F,disabled:W,errorMessage:a,maxFileSize:I,preventDuplicates:b,label:P="Click to upload",hintText:S,sx:k})=>jsxs(c,{...t(),sx:k,onClick:U,children:[jsx("input",{"data-slot":"input",...C(),onChange:T=>{let i=F(Array.from(T.target.files||[]));(i.length>0||!b)&&h(i);},disabled:W}),jsxs(m,{"data-slot":"content",children:[jsx(u,{"data-slot":"icon-wrapper",children:jsx(M,{component:"img",src:a?$h:Sd,width:16,height:16})}),a?jsxs(n,{children:[jsx(y,{children:a}),jsx(l,{children:"Click to upload again"})]}):jsxs(n,{children:[jsx(l,{children:P}),jsx(f,{children:S||`PDF, JPG or PNG files up to ${I}`})]})]})]}),g=j;var N=g;export{N as a};
@@ -1 +1 @@
1
- import {_b}from'./chunk-TCLN5DZD.js';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(motion.img,{shouldForwardProp:i=>i!=="width"&&i!=="height"})(({width:i,height:t})=>({width:i||"16px",height:t||"16px"}));var a=({width:i,height:t,sx:e}={})=>jsx(o,{src:_b,alt:"Loading",className:"spinner-loader",width:i,height:t,sx:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}),r=a;var y=r;export{y as a};
1
+ import {ac}from'./chunk-ROXE5K4B.js';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(motion.img,{shouldForwardProp:i=>i!=="width"&&i!=="height"})(({width:i,height:t})=>({width:i||"16px",height:t||"16px"}));var a=({width:i,height:t,sx:e}={})=>jsx(o,{src:ac,alt:"Loading",className:"spinner-loader",width:i,height:t,sx:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}),r=a;var y=r;export{y as a};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {ai}from'./chunk-TCLN5DZD.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(i)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),s=styled(i)(({theme:e})=>({padding:"8px 12px",borderBottom:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),l=styled(i)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(i)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${e.palette.divider}`,height:40})),c=styled(a$1)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),f=styled(i)(()=>({display:"flex",alignItems:"center",gap:"8px"})),g=styled(i)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(i)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(i)(()=>({margin:"12px "}));function L({children:e,...t}){return jsx(a,{component:"article","data-testid":"Widget",...t,children:e})}var I=memo(L);function R({children:e,action:t,...r}){return jsxs(s,{"data-testid":"Widget_WidgetHeader",component:"header",...r,children:[jsx(l,{children:e}),t&&t]})}var b=memo(R);function v({allowShadow:e=true,children:t,...r}){let{onScrollHandler:d,showShadow:h}=a$2();return jsxs(y,{component:"ul","data-testid":"Widget_List",onScroll:d,...r,children:[t,h&&e&&jsx(i,{component:"img",src:ai,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var z=memo(v);function A({children:e,icon:t,actions:r,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(f,{component:"aside",children:[t&&t,jsx(c,{noWrap:true,className:"content",children:e})]}),r&&jsx(g,{component:"aside",children:r})]})}var E=memo(A);var ce=I;export{b as a,z as b,E as c,ce as d};
1
+ import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {di}from'./chunk-ROXE5K4B.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(i)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),s=styled(i)(({theme:e})=>({padding:"8px 12px",borderBottom:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),l=styled(i)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(i)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${e.palette.divider}`,height:40})),c=styled(a$1)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),f=styled(i)(()=>({display:"flex",alignItems:"center",gap:"8px"})),g=styled(i)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(i)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(i)(()=>({margin:"12px "}));function L({children:e,...t}){return jsx(a,{component:"article","data-testid":"Widget",...t,children:e})}var I=memo(L);function R({children:e,action:t,...r}){return jsxs(s,{"data-testid":"Widget_WidgetHeader",component:"header",...r,children:[jsx(l,{children:e}),t&&t]})}var b=memo(R);function v({allowShadow:e=true,children:t,...r}){let{onScrollHandler:d,showShadow:h}=a$2();return jsxs(y,{component:"ul","data-testid":"Widget_List",onScroll:d,...r,children:[t,h&&e&&jsx(i,{component:"img",src:di,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var z=memo(v);function A({children:e,icon:t,actions:r,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(f,{component:"aside",children:[t&&t,jsx(c,{noWrap:true,className:"content",children:e})]}),r&&jsx(g,{component:"aside",children:r})]})}var E=memo(A);var ce=I;export{b as a,z as b,E as c,ce as d};
@@ -1 +1 @@
1
- import {c as c$2}from'./chunk-DMSMH6Q6.js';import {c,e}from'./chunk-WCKORXDZ.js';import {a,c as c$1,d}from'./chunk-SPNQ2E2Q.js';import {b as b$1,a as a$1}from'./chunk-CPDH5SRY.js';import {Ra}from'./chunk-ECDED65U.js';import {na,_c,Cd,Bd,ma,ka,la}from'./chunk-TCLN5DZD.js';import tt,{memo,createContext,useState,useRef,useMemo,useEffect,useCallback,useContext}from'react';import {styled,Popover,Input,Typography,Box,Dialog}from'@mui/material';import B from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {Resizable}from're-resizable';import xt from'react-draggable';import it from'@mui/material/Box';import {useTranslation}from'react-i18next';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var w=37,oe="32px",h=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var et=44,ie={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#956ea5","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:`calc(100% - ${et+w}px`,overflow:"auto"},Pe={...ie,background:"transparent","--w-rjv-line-color":"transparent"},ze=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0})),re=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"}));styled(Input)(({theme:e})=>({border:`1px solid ${e.palette.grey[100]}`,borderRadius:"0.25rem",padding:"0.375rem",fontSize:"0.625rem",outline:"none",width:"100%",maxWidth:"150px",height:"1.5rem",backgroundColor:e.palette.background.paper,"&:focus":{border:`1px solid ${e.palette.info.dark}`}}));var ne=styled(Typography)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",padding:"0px 8px",justifyContent:"center",alignItems:"center",borderRadius:"37.5px",backgroundColor:"#fff"})),se=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:i,isRequestShown:n,theme:a})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:a.shadows[23]},...i&&{paddingTop:oe,transition:"padding 0.3s ease-in-out",...n&&{width:"50%"}}})),ae=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:i})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:w,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!i&&{left:0}})),le=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),de=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),Ee=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:i})=>({width:"100%",height:"100%",overflowY:"auto",background:"#fff",zIndex:20,position:"relative",display:"flex",flexDirection:"column",borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...i&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"100vh"}}));styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:i})=>({backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:e?"100vh":"100%",overflowY:"auto",position:"absolute",width:e?"100vw":i,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"}));styled(Box,{shouldForwardProp:e=>!["isMaximized","currentHeight"].includes(e)})(({isMaximized:e,currentHeight:i})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:e?`calc(100vh - ${w}px)`:(i||h)-w+5,background:"transparent",position:"fixed",width:"100%"}));var Ve=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"}));function nt({onClick:e,icon:i,label:n,disableAnimation:a,...p}){let[l,t]=tt.useState(false),{t:x}=useTranslation();return jsxs(ze,{...p,onClick:S=>{e?.(S),!a&&(t(true),setTimeout(()=>{t(false);},2e3));},children:[jsxs(it,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:l&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!l&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:i,alt:"icon"},"id-icon")})]}),n&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:l&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:x("copied")})}),jsx(AnimatePresence,{children:!l&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:n})})]})]})}var Oe=memo(nt);var b=Oe;function lt({title:e$1,onClose:i,onMaximize:n,maximized:a$1=false,id:p,onMouseHover:l,onMouseLeave:t,onRequestClick:x,isRequestExpanded:v=false,showRequestIcon:S=false,isHovered:I=false}){return jsx(c,{id:p,maximized:a$1||false,children:jsx(e,{isHovered:true,onMouseEnter:l,onMouseLeave:t,isMaximized:a$1,title:e$1,icon:_c,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:i}),jsx(c$1,{isMaximized:a$1,onClick:n}),S&&jsx(d,{onClick:x,isExpanded:v,isHovered:I,children:"Request"})]})})})}var Me=memo(lt);var ce=Me;var q=400,E=.5;function H({index:e,json:i,requestJson:n={},isWindowMinimized:a,windowOrder:p,onClose:l}){let[t,x]=useState(false),[v,S]=useState(false),[I,L]=useState(false),[f,C]=useState(false),[V,J]=useState({width:0,height:0}),[R,k]=useState(true),[d,_e]=useState(false),[fe,Fe]=useState(true),[Le,me]=useState(false),[D,xe]=useState(q),$=useRef(),{onMouseEnter:$e,onMouseLeave:Ge,isHovered:Ye}=b$1(),{height:G,width:O}=a$1(),[we,Xe]=useState({x:O/2+q/4-e*20,y:G/2-h/2+e*30}),A=useRef(),Ze=useMemo(()=>Object.keys(i)?.length,[i]),he=Ra(),g=Number(A.current?.state?.width)||q,ge=r=>{setTimeout(()=>{navigator.clipboard.writeText(r||"").then(()=>{});},10);},ye=useMemo(()=>Object.keys(n)?.length,[n]);return useEffect(()=>{if($.current&&clearTimeout($.current),!d){$.current=setTimeout(()=>{xe(g);},E*1e3);return}xe(g);},[d,g]),jsx(xt,{disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultPosition:{x:O/2-q/4,y:G/2-h/2},position:{x:O-we.x,y:we.y},onStop:(r,s)=>{Xe({x:O-s.x,y:s.y});},bounds:{top:10},children:jsx(Dialog,{disableEnforceFocus:true,sx:{backgroundColor:"transparent",zIndex:(p||0)+3+(t?1:0),...a&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:he?V?.width||D:"fit-content",height:he?V?.height||h:"fit-content"},...t&&{transform:"none !important"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:v?"fit-content":D,height:v?"fit-content":h,...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{x(false),k(true),setTimeout(()=>{k(false);},E*1e3);},open:true,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",children:jsx(Resizable,{enable:{left:false,right:true,bottomRight:true,bottom:true},maxHeight:G-40,maxWidth:O,minWidth:t?"100vw":D,minHeight:t?"100vh":"300px",ref:r=>{A.current=r;},onResizeStart:()=>{k(true);},onResizeStop:()=>{k(false);},onResize:(r,s,T)=>{S(true),J({width:T.offsetWidth,height:T.offsetHeight});},defaultSize:{width:D,height:h},style:{background:"transparent",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ve,{children:[jsx(motion.div,{style:{...t&&{height:oe,position:"fixed",zIndex:1e3}},animate:{width:d?g*2:g,...t&&{width:"100vw"},...!t&&{transform:`translateX(${d?-g:0}px)`}},transition:{duration:E,...R&&{duration:0}},children:jsx(ce,{title:d?"JSON Request & Response":"JSON Response",onClose:()=>l(),onMaximize:()=>{x(r=>!r),k(true),setTimeout(()=>{k(false);},E*1e3);},isHovered:Ye,onMouseHover:$e,onMouseLeave:Ge,maximized:t,id:"draggable-dialog-title",onRequestClick:()=>{_e(r=>!r),k(false),d||A.current?.updateSize({width:q,height:h});},isRequestExpanded:d,showRequestIcon:!!ye})}),jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:t?`calc(100vh - ${w}px)`:(Number(A.current?.state?.height)||h)-w+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:d&&jsxs(motion.div,{initial:{left:t?"50vw":0,...t&&{position:"relative",left:"-50vw"}},animate:{left:t?"50vw":-g,...t&&{position:"relative",left:"0"},...!d&&{left:0}},exit:{left:t?"50vw":0,...t&&{position:"relative",left:"0"}},transition:{duration:E,...R&&{duration:0}},style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:t?"100vh":"100%",overflowY:"auto",position:"absolute",width:t?"100vw":g,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{me(true),setTimeout(()=>{me(false);},2e3);},children:[jsxs(se,{isMaximized:t,isScrollingRequest:Le,sx:{background:"#E7E7E7B2"},isRequestShown:d,children:[jsx(de,{children:jsx(ne,{variant:"subtitle1",children:"API Request"})}),jsxs(le,{children:[jsx(b,{disableAnimation:true,onClick:()=>{Fe(r=>!r);},icon:fe?Cd:Bd}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(i)).then(()=>{});},icon:ma}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(i?.id||"").then(()=>{});},icon:ka})]})]}),jsxs(B,{value:n,style:Pe,displayDataTypes:false,collapsed:fe?1:void 0,onCopied:(r,s)=>{typeof s=="string"&&ge(s);},enableClipboard:false,children:[jsx(B.CountInfo,{render:(r,{keyName:s})=>{if(!s)return jsx("span",{})}}),jsx(B.Copied,{render:({"data-copied":r,style:s,onClick:T},{keyName:Y})=>Y?jsxs(re,{style:s,onClick:X=>{T?.(X);},children:[jsx(AnimatePresence,{children:r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:la,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(AnimatePresence,{children:d&&jsx(ae,{sx:{flex:1,height:w,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:ye})})})]})}),jsxs(Ee,{isMaximized:t,isRequestShown:d,style:{left:0,maxHeight:"100vw"},initial:{...t&&{width:"100vw",left:0}},animate:{...t&&{position:"absolute",left:d?"50vw":"0"}},transition:{duration:E,...R&&{duration:0}},onScroll:()=>{C(true),setTimeout(()=>{C(false);},2e3);},children:[jsxs(se,{isMaximized:t,isScrollingRequest:f,isRequestShown:d,children:[jsx(de,{children:jsx(ne,{variant:"subtitle1",children:"API Response"})}),jsxs(le,{children:[jsx(b,{disableAnimation:true,onClick:()=>{L(r=>!r);},icon:I?Cd:Bd}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(i,null,2)).then(()=>{});},icon:ma}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(i?.id||"").then(()=>{});},icon:ka})]})]}),jsxs(B,{value:i,style:ie,displayDataTypes:false,collapsed:I?1:void 0,onCopied:(r,s)=>{typeof s=="string"&&ge(s);},children:[jsx(B.CountInfo,{render:(r,{keyName:s})=>{if(!s)return jsx("span",{})}}),jsx(B.Copied,{render:({"data-copied":r,style:s,onClick:T},{keyName:Y})=>Y?jsxs(re,{style:s,onClick:X=>{T?.(X);},children:[jsx(AnimatePresence,{children:r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:la,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(ae,{sx:{flex:1,height:w},children:jsx(c$2,{sx:{borderBottomLeftRadius:d?0:"12px",background:"#f8f9fb",flex:1},totalCount:Ze})})]})]})]})})})})}var F=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{}});var De=({list:e,onClose:i,isWindowMinimized:n,windowOrder:a})=>e?.length?jsx(Fragment,{children:e.map((p,l)=>jsx(H,{index:l,json:p.json,requestJson:p?.requestJson,onClose:()=>{i(l);},isWindowMinimized:n,windowOrder:a},p.json.id))}):null;var bt=({children:e})=>{let[i,n]=useState([]),[a,p]=useState(false),[l,t]=useState(1),x=useCallback(f=>{if(i.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(i.some(R=>R.json.id===f.json.id))return;let C=structuredClone(f.json),V=C.request_body,J={json:C,requestJson:f.requestJson||V||void 0};delete J.json.request_body,n(R=>[...R,J]);},[i]),v=f=>{n(C=>C.filter((V,J)=>f!==J));},S=f=>{p(f);},I=f=>{t(f);},L=useMemo(()=>({jsonViewerList:i,handleJsonViewerDialogOpen:x,handleWindowMinimize:S,handleWindowOrder:I}),[i,x]);return jsxs(F.Provider,{value:L,children:[e,jsx(De,{list:i,onClose:v,isWindowMinimized:a,windowOrder:l})]})};var Rt=({isWindowMinimized:e,windowOrder:i})=>{let{handleJsonViewerDialogOpen:n,handleWindowMinimize:a,handleWindowOrder:p}=useContext(F),l=useCallback(()=>{a(e);},[a,e]),t=useCallback(()=>{p(i);},[p,i]);return useEffect(()=>{t();},[t]),useEffect(()=>{l();},[l]),{handleJsonViewerDialogOpen:n}};var Mo=H;export{b as a,ce as b,F as c,De as d,bt as e,Rt as f,Mo as g};
1
+ import {c as c$2}from'./chunk-VI4EBPCV.js';import {c,e}from'./chunk-BX63HTMQ.js';import {a,c as c$1,d}from'./chunk-6RMDSMJP.js';import {b as b$1,a as a$1}from'./chunk-WGMZ5XLV.js';import {Ra}from'./chunk-WXO77AL5.js';import {pa,ad,Ed,Dd,oa,ma,na}from'./chunk-ROXE5K4B.js';import tt,{memo,createContext,useState,useRef,useMemo,useEffect,useCallback,useContext}from'react';import {styled,Popover,Input,Typography,Box,Dialog}from'@mui/material';import B from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {Resizable}from're-resizable';import xt from'react-draggable';import it from'@mui/material/Box';import {useTranslation}from'react-i18next';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var w=37,oe="32px",h=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var et=44,ie={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#956ea5","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:`calc(100% - ${et+w}px`,overflow:"auto"},Pe={...ie,background:"transparent","--w-rjv-line-color":"transparent"},ze=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0})),re=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"}));styled(Input)(({theme:e})=>({border:`1px solid ${e.palette.grey[100]}`,borderRadius:"0.25rem",padding:"0.375rem",fontSize:"0.625rem",outline:"none",width:"100%",maxWidth:"150px",height:"1.5rem",backgroundColor:e.palette.background.paper,"&:focus":{border:`1px solid ${e.palette.info.dark}`}}));var ne=styled(Typography)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",padding:"0px 8px",justifyContent:"center",alignItems:"center",borderRadius:"37.5px",backgroundColor:"#fff"})),se=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:i,isRequestShown:n,theme:a})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:a.shadows[23]},...i&&{paddingTop:oe,transition:"padding 0.3s ease-in-out",...n&&{width:"50%"}}})),ae=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:i})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:w,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!i&&{left:0}})),le=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),de=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),Ee=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:i})=>({width:"100%",height:"100%",overflowY:"auto",background:"#fff",zIndex:20,position:"relative",display:"flex",flexDirection:"column",borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...i&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"100vh"}}));styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:i})=>({backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:e?"100vh":"100%",overflowY:"auto",position:"absolute",width:e?"100vw":i,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"}));styled(Box,{shouldForwardProp:e=>!["isMaximized","currentHeight"].includes(e)})(({isMaximized:e,currentHeight:i})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:e?`calc(100vh - ${w}px)`:(i||h)-w+5,background:"transparent",position:"fixed",width:"100%"}));var Ve=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"}));function nt({onClick:e,icon:i,label:n,disableAnimation:a,...p}){let[l,t]=tt.useState(false),{t:x}=useTranslation();return jsxs(ze,{...p,onClick:S=>{e?.(S),!a&&(t(true),setTimeout(()=>{t(false);},2e3));},children:[jsxs(it,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:l&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:pa,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!l&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:i,alt:"icon"},"id-icon")})]}),n&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:l&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:x("copied")})}),jsx(AnimatePresence,{children:!l&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:n})})]})]})}var Oe=memo(nt);var b=Oe;function lt({title:e$1,onClose:i,onMaximize:n,maximized:a$1=false,id:p,onMouseHover:l,onMouseLeave:t,onRequestClick:x,isRequestExpanded:v=false,showRequestIcon:S=false,isHovered:I=false}){return jsx(c,{id:p,maximized:a$1||false,children:jsx(e,{isHovered:true,onMouseEnter:l,onMouseLeave:t,isMaximized:a$1,title:e$1,icon:ad,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:i}),jsx(c$1,{isMaximized:a$1,onClick:n}),S&&jsx(d,{onClick:x,isExpanded:v,isHovered:I,children:"Request"})]})})})}var Me=memo(lt);var ce=Me;var q=400,E=.5;function H({index:e,json:i,requestJson:n={},isWindowMinimized:a,windowOrder:p,onClose:l}){let[t,x]=useState(false),[v,S]=useState(false),[I,L]=useState(false),[f,C]=useState(false),[V,J]=useState({width:0,height:0}),[R,k]=useState(true),[d,_e]=useState(false),[fe,Fe]=useState(true),[Le,me]=useState(false),[D,xe]=useState(q),$=useRef(),{onMouseEnter:$e,onMouseLeave:Ge,isHovered:Ye}=b$1(),{height:G,width:O}=a$1(),[we,Xe]=useState({x:O/2+q/4-e*20,y:G/2-h/2+e*30}),A=useRef(),Ze=useMemo(()=>Object.keys(i)?.length,[i]),he=Ra(),g=Number(A.current?.state?.width)||q,ge=r=>{setTimeout(()=>{navigator.clipboard.writeText(r||"").then(()=>{});},10);},ye=useMemo(()=>Object.keys(n)?.length,[n]);return useEffect(()=>{if($.current&&clearTimeout($.current),!d){$.current=setTimeout(()=>{xe(g);},E*1e3);return}xe(g);},[d,g]),jsx(xt,{disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultPosition:{x:O/2-q/4,y:G/2-h/2},position:{x:O-we.x,y:we.y},onStop:(r,s)=>{Xe({x:O-s.x,y:s.y});},bounds:{top:10},children:jsx(Dialog,{disableEnforceFocus:true,sx:{backgroundColor:"transparent",zIndex:(p||0)+3+(t?1:0),...a&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:he?V?.width||D:"fit-content",height:he?V?.height||h:"fit-content"},...t&&{transform:"none !important"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:v?"fit-content":D,height:v?"fit-content":h,...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{x(false),k(true),setTimeout(()=>{k(false);},E*1e3);},open:true,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",children:jsx(Resizable,{enable:{left:false,right:true,bottomRight:true,bottom:true},maxHeight:G-40,maxWidth:O,minWidth:t?"100vw":D,minHeight:t?"100vh":"300px",ref:r=>{A.current=r;},onResizeStart:()=>{k(true);},onResizeStop:()=>{k(false);},onResize:(r,s,T)=>{S(true),J({width:T.offsetWidth,height:T.offsetHeight});},defaultSize:{width:D,height:h},style:{background:"transparent",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ve,{children:[jsx(motion.div,{style:{...t&&{height:oe,position:"fixed",zIndex:1e3}},animate:{width:d?g*2:g,...t&&{width:"100vw"},...!t&&{transform:`translateX(${d?-g:0}px)`}},transition:{duration:E,...R&&{duration:0}},children:jsx(ce,{title:d?"JSON Request & Response":"JSON Response",onClose:()=>l(),onMaximize:()=>{x(r=>!r),k(true),setTimeout(()=>{k(false);},E*1e3);},isHovered:Ye,onMouseHover:$e,onMouseLeave:Ge,maximized:t,id:"draggable-dialog-title",onRequestClick:()=>{_e(r=>!r),k(false),d||A.current?.updateSize({width:q,height:h});},isRequestExpanded:d,showRequestIcon:!!ye})}),jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:t?`calc(100vh - ${w}px)`:(Number(A.current?.state?.height)||h)-w+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:d&&jsxs(motion.div,{initial:{left:t?"50vw":0,...t&&{position:"relative",left:"-50vw"}},animate:{left:t?"50vw":-g,...t&&{position:"relative",left:"0"},...!d&&{left:0}},exit:{left:t?"50vw":0,...t&&{position:"relative",left:"0"}},transition:{duration:E,...R&&{duration:0}},style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:t?"100vh":"100%",overflowY:"auto",position:"absolute",width:t?"100vw":g,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{me(true),setTimeout(()=>{me(false);},2e3);},children:[jsxs(se,{isMaximized:t,isScrollingRequest:Le,sx:{background:"#E7E7E7B2"},isRequestShown:d,children:[jsx(de,{children:jsx(ne,{variant:"subtitle1",children:"API Request"})}),jsxs(le,{children:[jsx(b,{disableAnimation:true,onClick:()=>{Fe(r=>!r);},icon:fe?Ed:Dd}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(i)).then(()=>{});},icon:oa}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(i?.id||"").then(()=>{});},icon:ma})]})]}),jsxs(B,{value:n,style:Pe,displayDataTypes:false,collapsed:fe?1:void 0,onCopied:(r,s)=>{typeof s=="string"&&ge(s);},enableClipboard:false,children:[jsx(B.CountInfo,{render:(r,{keyName:s})=>{if(!s)return jsx("span",{})}}),jsx(B.Copied,{render:({"data-copied":r,style:s,onClick:T},{keyName:Y})=>Y?jsxs(re,{style:s,onClick:X=>{T?.(X);},children:[jsx(AnimatePresence,{children:r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:pa,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(AnimatePresence,{children:d&&jsx(ae,{sx:{flex:1,height:w,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:ye})})})]})}),jsxs(Ee,{isMaximized:t,isRequestShown:d,style:{left:0,maxHeight:"100vw"},initial:{...t&&{width:"100vw",left:0}},animate:{...t&&{position:"absolute",left:d?"50vw":"0"}},transition:{duration:E,...R&&{duration:0}},onScroll:()=>{C(true),setTimeout(()=>{C(false);},2e3);},children:[jsxs(se,{isMaximized:t,isScrollingRequest:f,isRequestShown:d,children:[jsx(de,{children:jsx(ne,{variant:"subtitle1",children:"API Response"})}),jsxs(le,{children:[jsx(b,{disableAnimation:true,onClick:()=>{L(r=>!r);},icon:I?Ed:Dd}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(i,null,2)).then(()=>{});},icon:oa}),jsx(b,{onClick:()=>{navigator.clipboard.writeText(i?.id||"").then(()=>{});},icon:ma})]})]}),jsxs(B,{value:i,style:ie,displayDataTypes:false,collapsed:I?1:void 0,onCopied:(r,s)=>{typeof s=="string"&&ge(s);},children:[jsx(B.CountInfo,{render:(r,{keyName:s})=>{if(!s)return jsx("span",{})}}),jsx(B.Copied,{render:({"data-copied":r,style:s,onClick:T},{keyName:Y})=>Y?jsxs(re,{style:s,onClick:X=>{T?.(X);},children:[jsx(AnimatePresence,{children:r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:pa,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!r&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:na,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(ae,{sx:{flex:1,height:w},children:jsx(c$2,{sx:{borderBottomLeftRadius:d?0:"12px",background:"#f8f9fb",flex:1},totalCount:Ze})})]})]})]})})})})}var F=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{}});var De=({list:e,onClose:i,isWindowMinimized:n,windowOrder:a})=>e?.length?jsx(Fragment,{children:e.map((p,l)=>jsx(H,{index:l,json:p.json,requestJson:p?.requestJson,onClose:()=>{i(l);},isWindowMinimized:n,windowOrder:a},p.json.id))}):null;var bt=({children:e})=>{let[i,n]=useState([]),[a,p]=useState(false),[l,t]=useState(1),x=useCallback(f=>{if(i.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(i.some(R=>R.json.id===f.json.id))return;let C=structuredClone(f.json),V=C.request_body,J={json:C,requestJson:f.requestJson||V||void 0};delete J.json.request_body,n(R=>[...R,J]);},[i]),v=f=>{n(C=>C.filter((V,J)=>f!==J));},S=f=>{p(f);},I=f=>{t(f);},L=useMemo(()=>({jsonViewerList:i,handleJsonViewerDialogOpen:x,handleWindowMinimize:S,handleWindowOrder:I}),[i,x]);return jsxs(F.Provider,{value:L,children:[e,jsx(De,{list:i,onClose:v,isWindowMinimized:a,windowOrder:l})]})};var Rt=({isWindowMinimized:e,windowOrder:i})=>{let{handleJsonViewerDialogOpen:n,handleWindowMinimize:a,handleWindowOrder:p}=useContext(F),l=useCallback(()=>{a(e);},[a,e]),t=useCallback(()=>{p(i);},[p,i]);return useEffect(()=>{t();},[t]),useEffect(()=>{l();},[l]),{handleJsonViewerDialogOpen:n}};var Mo=H;export{b as a,ce as b,F as c,De as d,bt as e,Rt as f,Mo as g};
@@ -1 +1 @@
1
- import {Fg,Gg}from'./chunk-TCLN5DZD.js';import {styled,Box}from'@mui/material';import v,{useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),d=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),u=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var x=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(x||{});var h=e=>{let o=v.Children.count(e.children)-1;return jsx(c,{...e,sx:{width:o*30+2}})},m=h;var V=[{icon:jsx("img",{src:Fg,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:Gg,alt:"LIST"}),value:"LIST"}],y=e=>{let{currentView:o,onToggleClick:a,getOverrideViews:t}=e,l=useMemo(()=>t?t(V):V,[t]),f=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return a?jsxs(m,{children:[l.map(r=>jsx(d,{onClick:()=>a(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(u,{activeIndex:f})]}):null},T=y;var M=T;export{x as a,M as b};
1
+ import {Ig,Jg}from'./chunk-ROXE5K4B.js';import {styled,Box}from'@mui/material';import v,{useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),d=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),u=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var x=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(x||{});var h=e=>{let o=v.Children.count(e.children)-1;return jsx(c,{...e,sx:{width:o*30+2}})},m=h;var V=[{icon:jsx("img",{src:Ig,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:Jg,alt:"LIST"}),value:"LIST"}],y=e=>{let{currentView:o,onToggleClick:a,getOverrideViews:t}=e,l=useMemo(()=>t?t(V):V,[t]),f=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return a?jsxs(m,{children:[l.map(r=>jsx(d,{onClick:()=>a(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(u,{activeIndex:f})]}):null},T=y;var M=T;export{x as a,M as b};
@@ -1 +1 @@
1
- import {cb}from'./chunk-ECDED65U.js';import {memo}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(l)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function p({amount:m,currencyCode:i,...s}){let{integerAmount:u,decimalAmount:f}=cb(m,i);return jsxs(e,{...s,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:f})]})}p.displayName="DisplayAmount";var a=memo(p);var B=a;export{B as a};
1
+ import {cb}from'./chunk-WXO77AL5.js';import {memo}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(l)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function p({amount:m,currencyCode:i,...s}){let{integerAmount:u,decimalAmount:f}=cb(m,i);return jsxs(e,{...s,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:f})]})}p.displayName="DisplayAmount";var a=memo(p);var B=a;export{B as a};
@@ -0,0 +1 @@
1
+ import {s,r}from'./chunk-ROXE5K4B.js';import c from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var m=styled(c)(()=>({height:10}));styled("span")(({theme:o})=>({fontSize:o.typography.body2.fontSize,lineHeight:"17px",fontWeight:"700"}));styled("span")(()=>({fontWeight:"400"}));var p=styled("span")(({symbol:o,fontSize:e,color:t})=>({display:"inline-block",height:e,width:e,backgroundColor:t,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var y={SAR:r,AED:s};function b({currency:o,fontSize:e,color:t}){let n=y[o];return n?t?jsx(p,{symbol:n,fontSize:e,color:t,"aria-label":o,role:"img"}):jsx(m,{component:"img",src:n,alt:o,sx:{height:e}}):jsx(Fragment,{children:o})}var l=b;var W=l;export{W as a};
@@ -1 +1 @@
1
- import {f as f$1}from'./chunk-NBGGOUIZ.js';import {styled,Button,Box,alpha}from'@mui/material';var p=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)}),c=styled(Button)(({theme:t})=>({...p(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),l=styled(Button)(({theme:t})=>({...p(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}})),g={active:c,inActive:l};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 h=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),y=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),f=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})),S=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),v=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"})),B=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{g as a,h as b,y as c,f as d,b as e,S as f,v as g,B as h};
1
+ import {f as f$1}from'./chunk-AK4FIVFH.js';import {styled,Button,Box,alpha}from'@mui/material';var p=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)}),c=styled(Button)(({theme:t})=>({...p(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),l=styled(Button)(({theme:t})=>({...p(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}})),g={active:c,inActive:l};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 h=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),y=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),f=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})),S=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),v=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"})),B=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{g as a,h as b,y as c,f as d,b as e,S as f,v as g,B as h};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {Qc,vb}from'./chunk-TCLN5DZD.js';import {memo}from'react';import n from'@mui/material/Box';import w from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:r})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...r&&{cursor:"not-allowed"}})),x=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),s=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function F({onClose:o,open:e,anchorEl:r,trigger:g,onOpen:b,children:f,disabled:h}){return jsxs(l,{open:e,onClick:b,"data-testid":"Dropdown",disabled:h,children:[jsx(x,{children:g}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Qc:vb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(w,{open:e,anchorEl:r,sx:{width:r?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:r?.clientWidth,maxWidth:"unset"}}},children:jsx(s,{children:f})})]})}var m=memo(F);var M=m;export{M as a};
1
+ import {a}from'./chunk-CNIYZZCP.js';import {Sc,xb}from'./chunk-ROXE5K4B.js';import {memo}from'react';import n from'@mui/material/Box';import w from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:r})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...r&&{cursor:"not-allowed"}})),x=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),s=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function F({onClose:o,open:e,anchorEl:r,trigger:g,onOpen:b,children:f,disabled:h}){return jsxs(l,{open:e,onClick:b,"data-testid":"Dropdown",disabled:h,children:[jsx(x,{children:g}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Sc:xb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(w,{open:e,anchorEl:r,sx:{width:r?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:r?.clientWidth,maxWidth:"unset"}}},children:jsx(s,{children:f})})]})}var m=memo(F);var M=m;export{M as a};
@@ -1 +1 @@
1
- import {La,Ka,Va,Ja,Gd,Hd}from'./chunk-TCLN5DZD.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:La,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Ka,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?Va:Ja,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?Gd:Hd,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
1
+ import {Na,Ma,Xa,La,Id,Jd}from'./chunk-ROXE5K4B.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:Na,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Ma,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?Xa:La,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?Id:Jd,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
@@ -1 +1 @@
1
- import {b}from'./chunk-TR3SEJSN.js';import {e}from'./chunk-ABBNDFGJ.js';import {gg}from'./chunk-TCLN5DZD.js';import {memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongerString"})(({theme:t,isLongerString:r})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:r?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));styled("div")(()=>({padding:"3.5px",background:"rgba(32, 35, 43, 0.10);",display:"flex",borderRadius:"50px"}));styled("button")(()=>({padding:0,cursor:"pointer",width:"auto",marginLeft:"auto",paddingRight:0,background:"none",border:"none"}));function u({Ids:t,onCancelClick:r,isShown:l,cardNumber:o}){return l?jsxs(a,{isLongerString:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),jsx(e,{pointer:true,round:true,onClick:r,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:gg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
1
+ import {b}from'./chunk-6OSSML46.js';import {e}from'./chunk-WDGOOLU7.js';import {jg}from'./chunk-ROXE5K4B.js';import {memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongerString"})(({theme:t,isLongerString:r})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:r?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));styled("div")(()=>({padding:"3.5px",background:"rgba(32, 35, 43, 0.10);",display:"flex",borderRadius:"50px"}));styled("button")(()=>({padding:0,cursor:"pointer",width:"auto",marginLeft:"auto",paddingRight:0,background:"none",border:"none"}));function u({Ids:t,onCancelClick:r,isShown:l,cardNumber:o}){return l?jsxs(a,{isLongerString:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),jsx(e,{pointer:true,round:true,onClick:r,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:jg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-6HF3RRHM.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
1
+ import {a}from'./chunk-TLKUQ74V.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
@@ -1 +1 @@
1
- import {a}from'./chunk-5QTKLABR.js';import {Db}from'./chunk-ECDED65U.js';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import E from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),u=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),y=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var P=()=>jsxs(E,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var S=({value:t,label:T,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let m=t==null||t==="",k=Db(t||"0"),s=Math.min(Math.max(k??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(h,{size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(u,{children:[jsx(y,{isEmpty:m,children:l?jsx(P,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(b,{isEmpty:m,children:T})]})]})},C=S;var H=C;export{H as a};
1
+ import {a}from'./chunk-5QTKLABR.js';import {Db}from'./chunk-WXO77AL5.js';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import E from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),u=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),y=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var P=()=>jsxs(E,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var S=({value:t,label:T,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let m=t==null||t==="",k=Db(t||"0"),s=Math.min(Math.max(k??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(h,{size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(u,{children:[jsx(y,{isEmpty:m,children:l?jsx(P,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(b,{isEmpty:m,children:T})]})]})},C=S;var H=C;export{H as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-TR3SEJSN.js';import {e}from'./chunk-ABBNDFGJ.js';import {fb,p}from'./chunk-ECDED65U.js';import {Na,mf,xj,Sa,Ma,vf,uf,wf,tf,yf,sb,rb,Pi,xi,ab,Ki,x,t,w,z,jg,wi,r,Qi}from'./chunk-TCLN5DZD.js';import {memo,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var mt={inProgress:Qi,initiated:Qi,abandoned:r,cancelled:wi,reversed:jg,reports:z,search:w,chevronDown:t,unAuthorized:x,unSettled:Ki,unCaptured:ab,captured:xi,authorized:Pi,openFlag:rb,closedFlag:sb,unauthenticated:yf,authenticated:tf,paidOut:wf,scheduled:uf,checked:vf,dashedChecked:Ma,deactivated:Sa,destination:xj,destinationReversed:mf,outstanding:Na};var At=memo(I=>{let{variant:r="inActive",badgeCount:i,icon:g$1,label:k,dropdownOptions:o,selectedStatus:d$1,onButtonBodyClick:E,iconMapper:l=mt,buttonSx:ft,...Ct}=I,[Bt,y]=useState(0),{t:T}=useTranslation(),w=useRef(null),[A,h$1]=useState(null),[n,L]=useState(d$1??o?.[0]?.status);useEffect(()=>{d$1!==void 0&&L(d$1);},[d$1]);let c$1=useMemo(()=>!!o?.length,[o]),p$1=!!A&&Bt>1,s=r==="active",M=useMemo(()=>s?"active":"inActive",[s]),u=useMemo(()=>n?o?.find(t=>t.status===n):null,[n,o]),vt=useMemo(()=>{if(u?.icon)return jsx(h,{variant:r,children:u.icon});let t=n&&l[n]?n:g$1;if(t&&l[t])return jsx(g,{icon:t,variant:r,src:l[t],alt:`${t}-icon`})},[u,n,l,g$1,r]),St=useMemo(()=>!i||Number.isNaN(fb(i))?null:jsx(e,{variant:M,children:p(Number(i))}),[i,M]),x=useMemo(()=>c$1?jsx(a,{isActive:s}):null,[c$1,s]);useEffect(()=>{s||(y(0),h$1(null));},[s]);let f$1=useCallback(()=>{h$1(null);},[]),D=useCallback(()=>{c$1&&h$1(p$1?null:w.current);},[c$1,p$1]),bt=useCallback(t=>{t.stopPropagation(),I?.onClick?.(t),E?.(n||o?.[0]?.status||"all"),D(),y(C=>C+1);},[I,E,n,o,D]),N=useCallback(t=>C=>{t?.onClick?.(C),L(t.status),f$1();},[f$1]),gt=useMemo(()=>o?.map(t=>({...t,onClick:N(t)}))||[],[o,N]),kt=a$1[r],Et=useMemo(()=>u?.label||(n?T(n):k),[u,n,T,k]);return jsxs(Fragment,{children:[jsx(kt,{"data-testid":"StatusButton",...Ct,ref:w,onClick:bt,sx:{...c$1&&{paddingInlineEnd:"27px"},...ft},children:jsxs(f,{children:[jsxs(e$1,{variant:r,children:[vt,Et,St]}),x&&jsx(d,{children:x})]})}),p$1&&c$1&&jsx(c,{open:p$1,onClose:f$1,anchorEl:A,menuItems:gt})]})}),ht=At;var $t=ht;export{$t as a};
1
+ import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-6OSSML46.js';import {e}from'./chunk-WDGOOLU7.js';import {fb,p}from'./chunk-WXO77AL5.js';import {Pa,pf,Aj,Ua,Oa,yf,xf,zf,wf,Bf,ub,tb,Si,Ai,cb,Ni,z,v,y,B,mg,zi,t,Ti}from'./chunk-ROXE5K4B.js';import {memo,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var mt={inProgress:Ti,initiated:Ti,abandoned:t,cancelled:zi,reversed:mg,reports:B,search:y,chevronDown:v,unAuthorized:z,unSettled:Ni,unCaptured:cb,captured:Ai,authorized:Si,openFlag:tb,closedFlag:ub,unauthenticated:Bf,authenticated:wf,paidOut:zf,scheduled:xf,checked:yf,dashedChecked:Oa,deactivated:Ua,destination:Aj,destinationReversed:pf,outstanding:Pa};var At=memo(I=>{let{variant:r="inActive",badgeCount:i,icon:g$1,label:k,dropdownOptions:o,selectedStatus:d$1,onButtonBodyClick:E,iconMapper:l=mt,buttonSx:ft,...Ct}=I,[Bt,y]=useState(0),{t:T}=useTranslation(),w=useRef(null),[A,h$1]=useState(null),[n,L]=useState(d$1??o?.[0]?.status);useEffect(()=>{d$1!==void 0&&L(d$1);},[d$1]);let c$1=useMemo(()=>!!o?.length,[o]),p$1=!!A&&Bt>1,s=r==="active",M=useMemo(()=>s?"active":"inActive",[s]),u=useMemo(()=>n?o?.find(t=>t.status===n):null,[n,o]),vt=useMemo(()=>{if(u?.icon)return jsx(h,{variant:r,children:u.icon});let t=n&&l[n]?n:g$1;if(t&&l[t])return jsx(g,{icon:t,variant:r,src:l[t],alt:`${t}-icon`})},[u,n,l,g$1,r]),St=useMemo(()=>!i||Number.isNaN(fb(i))?null:jsx(e,{variant:M,children:p(Number(i))}),[i,M]),x=useMemo(()=>c$1?jsx(a,{isActive:s}):null,[c$1,s]);useEffect(()=>{s||(y(0),h$1(null));},[s]);let f$1=useCallback(()=>{h$1(null);},[]),D=useCallback(()=>{c$1&&h$1(p$1?null:w.current);},[c$1,p$1]),bt=useCallback(t=>{t.stopPropagation(),I?.onClick?.(t),E?.(n||o?.[0]?.status||"all"),D(),y(C=>C+1);},[I,E,n,o,D]),N=useCallback(t=>C=>{t?.onClick?.(C),L(t.status),f$1();},[f$1]),gt=useMemo(()=>o?.map(t=>({...t,onClick:N(t)}))||[],[o,N]),kt=a$1[r],Et=useMemo(()=>u?.label||(n?T(n):k),[u,n,T,k]);return jsxs(Fragment,{children:[jsx(kt,{"data-testid":"StatusButton",...Ct,ref:w,onClick:bt,sx:{...c$1&&{paddingInlineEnd:"27px"},...ft},children:jsxs(f,{children:[jsxs(e$1,{variant:r,children:[vt,Et,St]}),x&&jsx(d,{children:x})]})}),p$1&&c$1&&jsx(c,{open:p$1,onClose:f$1,anchorEl:A,menuItems:gt})]})}),ht=At;var $t=ht;export{$t as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-KDVCU5UC.js';var e=a;export{e as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-S7OMWEM6.js';import {ob,$c}from'./chunk-TCLN5DZD.js';import {useState,useCallback}from'react';import r from'@mui/material/Box';import O from'@mui/material/Popper';import {Box,ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),A=styled(r)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),b=styled(r)(()=>({width:16,height:16})),P=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",borderTopRightRadius:0,filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"max-content",minWidth:150})),D=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:130,width:"max-content",marginTop:"8px"})),v=styled(r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",...i&&{boxShadow:e.shadows[3]}})),N=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",height:32,padding:"8px 12px",cursor:"pointer",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:hover":{boxShadow:e.shadows[3]}}));function g({item:e,anchorEl:i,onMouseLeave:u,onSelectService:a}){return e?jsx(O,{open:true,anchorEl:i,placement:"left-start",onMouseLeave:u,sx:{zIndex:2e3},children:jsx(P,{children:e.services.map(t=>jsx(N,{onClick:x=>{x.stopPropagation(),a(e.appCode,t.serviceCode);},children:jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.iconUrl&&jsx("img",{src:t.iconUrl,alt:"service",width:16,height:16}),jsxs("span",{children:["View ",t.label]})]})},t.serviceCode))})}):null}function q({anchorEl:e,open:i,onClose:u,items:a$1,onSelectService:t,showViewApi:x=false,onViewApiClick:S}){let[B,y]=useState(null),[C,M]=useState(null),[H,h]=useState(false),z=useCallback((p,l)=>{y(p.currentTarget),M(l),h(false);},[]),w=useCallback(()=>{y(null),M(null),h(false);},[]),s=useCallback(()=>{u(),w();},[u,w]),R=useCallback((p,l)=>{t(p,l),s();},[t,s]),W=useCallback(p=>{p.stopPropagation(),S?.(),s();},[S,s]);return i?jsx(ClickAwayListener,{onClickAway:s,children:jsxs(r,{children:[jsx(a,{onClick:s}),jsx(O,{open:i,anchorEl:e,placement:"bottom-end",sx:{zIndex:2e3},children:jsx(D,{children:a$1.length===0&&!x?jsx(v,{sx:{cursor:"default","&:hover":{boxShadow:"none"}},children:jsx(c,{children:jsx(A,{sx:{fontSize:11,color:"text.secondary"},children:"No actions available"})})}):jsxs(Fragment,{children:[a$1.map(p=>jsxs(v,{onMouseOver:l=>z(l,p),open:C?.appCode===p.appCode,children:[jsxs(c,{children:[jsx(b,{children:jsx("img",{src:p.appIconUrl,alt:"app",width:16,height:16})}),jsx(A,{children:p.appName})]}),jsx(c,{children:jsx("img",{src:ob,alt:"icon",className:"arrow-icon"})})]},p.appCode)),x&&S&&jsx(v,{onClick:W,open:H,onMouseOver:()=>{M(null),h(true);},onMouseLeave:()=>h(false),children:jsxs(c,{children:[jsx(b,{children:jsx("img",{src:$c,alt:"app",width:16,height:16})}),jsx(A,{children:"View API"})]})})]})})}),a$1.length>0&&jsx(g,{item:C,anchorEl:B,onMouseLeave:w,onSelectService:R})]})}):null}var G=q;export{g as a,G as b};
1
+ import {a}from'./chunk-S7OMWEM6.js';import {qb,bd}from'./chunk-ROXE5K4B.js';import {useState,useCallback}from'react';import r from'@mui/material/Box';import O from'@mui/material/Popper';import {Box,ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),A=styled(r)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),b=styled(r)(()=>({width:16,height:16})),P=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",borderTopRightRadius:0,filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"max-content",minWidth:150})),D=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:130,width:"max-content",marginTop:"8px"})),v=styled(r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",...i&&{boxShadow:e.shadows[3]}})),N=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",height:32,padding:"8px 12px",cursor:"pointer",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:hover":{boxShadow:e.shadows[3]}}));function g({item:e,anchorEl:i,onMouseLeave:u,onSelectService:a}){return e?jsx(O,{open:true,anchorEl:i,placement:"left-start",onMouseLeave:u,sx:{zIndex:2e3},children:jsx(P,{children:e.services.map(t=>jsx(N,{onClick:x=>{x.stopPropagation(),a(e.appCode,t.serviceCode);},children:jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.iconUrl&&jsx("img",{src:t.iconUrl,alt:"service",width:16,height:16}),jsxs("span",{children:["View ",t.label]})]})},t.serviceCode))})}):null}function q({anchorEl:e,open:i,onClose:u,items:a$1,onSelectService:t,showViewApi:x=false,onViewApiClick:S}){let[B,y]=useState(null),[C,M]=useState(null),[H,h]=useState(false),z=useCallback((p,l)=>{y(p.currentTarget),M(l),h(false);},[]),w=useCallback(()=>{y(null),M(null),h(false);},[]),s=useCallback(()=>{u(),w();},[u,w]),R=useCallback((p,l)=>{t(p,l),s();},[t,s]),W=useCallback(p=>{p.stopPropagation(),S?.(),s();},[S,s]);return i?jsx(ClickAwayListener,{onClickAway:s,children:jsxs(r,{children:[jsx(a,{onClick:s}),jsx(O,{open:i,anchorEl:e,placement:"bottom-end",sx:{zIndex:2e3},children:jsx(D,{children:a$1.length===0&&!x?jsx(v,{sx:{cursor:"default","&:hover":{boxShadow:"none"}},children:jsx(c,{children:jsx(A,{sx:{fontSize:11,color:"text.secondary"},children:"No actions available"})})}):jsxs(Fragment,{children:[a$1.map(p=>jsxs(v,{onMouseOver:l=>z(l,p),open:C?.appCode===p.appCode,children:[jsxs(c,{children:[jsx(b,{children:jsx("img",{src:p.appIconUrl,alt:"app",width:16,height:16})}),jsx(A,{children:p.appName})]}),jsx(c,{children:jsx("img",{src:qb,alt:"icon",className:"arrow-icon"})})]},p.appCode)),x&&S&&jsx(v,{onClick:W,open:H,onMouseOver:()=>{M(null),h(true);},onMouseLeave:()=>h(false),children:jsxs(c,{children:[jsx(b,{children:jsx("img",{src:bd,alt:"app",width:16,height:16})}),jsx(A,{children:"View API"})]})})]})})}),a$1.length>0&&jsx(g,{item:C,anchorEl:B,onMouseLeave:w,onSelectService:R})]})}):null}var G=q;export{g as a,G as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {_c,eh,fh,gh,hh,ih}from'./chunk-TCLN5DZD.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",_c],["brand",eh],["entity",fh],["bank",gh],["individual",hh],["password",ih]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
1
+ import {a}from'./chunk-CNIYZZCP.js';import {ad,hh,ih,jh,kh,lh}from'./chunk-ROXE5K4B.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",ad],["brand",hh],["entity",ih],["bank",jh],["individual",kh],["password",lh]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
@@ -1,4 +1,4 @@
1
- import {am}from'./chunk-TCLN5DZD.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(l)`
1
+ import {em}from'./chunk-ROXE5K4B.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(l)`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(3, 1fr);
4
4
  grid-gap: 10px;
@@ -13,4 +13,4 @@ import {am}from'./chunk-TCLN5DZD.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js
13
13
  border: 1px solid ${r=>r.theme.palette.grey[100]};
14
14
  width: 100%;
15
15
  padding: 10px;
16
- `;var y=am;function f({theme:r="light"}){return jsx(c,{mode:r,children:Object.keys(am).sort().map(o=>{let d=y[o];return jsxs(s,{children:[jsx("img",{src:d,height:42,width:42,alt:`${o} icon`}),jsx(i,{mode:r,children:o})]},o)})})}var m=f;var G=m;export{G as a};
16
+ `;var y=em;function f({theme:r="light"}){return jsx(c,{mode:r,children:Object.keys(em).sort().map(o=>{let d=y[o];return jsxs(s,{children:[jsx("img",{src:d,height:42,width:42,alt:`${o} icon`}),jsx(i,{mode:r,children:o})]},o)})})}var m=f;var G=m;export{G as a};
@@ -1 +1 @@
1
- import {Ra}from'./chunk-ECDED65U.js';import y from'react';import c from'@mui/material/Box';import m from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(m,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var x=Ra();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},d){let f=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}x&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(c,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:d,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:f,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var u=y.forwardRef(l);var B=u;export{B as a};
1
+ import {Ra}from'./chunk-WXO77AL5.js';import y from'react';import c from'@mui/material/Box';import m from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(m,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var x=Ra();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},d){let f=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}x&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(c,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:d,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:f,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var u=y.forwardRef(l);var B=u;export{B as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-WOTZJWJO.js';import {memo,useMemo}from'react';import {jsx}from'react/jsx-runtime';var n=({chipIndex:r,rowIndex:i,colIndex:e,selectedId:s})=>{let[,t,o,p]=(s??"").split("-");return Number(t)===i&&Number(o)===e&&Number(p)===r};function d({children:r,copyText:i,chipIndex:e,selectionProps:{onClick:s,rowIndex:t,colIndex:o,selectedId:p},...m}){let u=useMemo(()=>n({rowIndex:t,colIndex:o,selectedId:p,chipIndex:e}),[t,o,p,e]);return jsx(a,{...m,copyText:i,onClick:h=>{s?.(h,e);},isSelected:u,children:r})}var l=memo(d);var N=l;export{n as a,N as b};
1
+ import {a}from'./chunk-JWQCFINS.js';import {memo,useMemo}from'react';import {jsx}from'react/jsx-runtime';var n=({chipIndex:r,rowIndex:i,colIndex:e,selectedId:s})=>{let[,t,o,p]=(s??"").split("-");return Number(t)===i&&Number(o)===e&&Number(p)===r};function d({children:r,copyText:i,chipIndex:e,selectionProps:{onClick:s,rowIndex:t,colIndex:o,selectedId:p},...m}){let u=useMemo(()=>n({rowIndex:t,colIndex:o,selectedId:p,chipIndex:e}),[t,o,p,e]);return jsx(a,{...m,copyText:i,onClick:h=>{s?.(h,e);},isSelected:u,children:r})}var l=memo(d);var N=l;export{n as a,N as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-ABDRIOU6.js';import {f,e,d,c}from'./chunk-TR3SEJSN.js';import {e as e$1}from'./chunk-ABBNDFGJ.js';import {p}from'./chunk-ECDED65U.js';import {xb}from'./chunk-TCLN5DZD.js';import {memo,useState,useRef,useEffect}from'react';import {Button,Box,Typography,Checkbox}from'@mui/material';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var X=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:"background-color 0.5s ease, color 0.3s ease",paddingInline:t.spacing(2)}),P=styled(Button,{shouldForwardProp:t=>t!=="buttonVariant"})(({theme:t,buttonVariant:a})=>({...X(t),...a==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:disabled":{color:t.palette.common.white}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:"white"},"&:disabled":{color:t.palette.text.primary}}}));styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.5)}));var D=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.3),width:"100%"})),L={padding:.3,color:"#8C9196","&.Mui-checked":{color:"#1F88D0"},"&.MuiCheckbox-root":{color:"#8C9196"},"& .MuiSvgIcon-root":{color:"inherit"},"&.Mui-checked .MuiSvgIcon-root":{color:"#1F88D0","& path":{fill:"#1F88D0"}}},R=styled("img")(({variant:t})=>({width:"10px",height:"10px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)",cursor:"pointer",position:"absolute",top:"50%",left:"47%",transform:"translate(-50%, -50%)",transition:"opacity 0.2s ease-in-out"})),A=styled(Box,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({opacity:t?1:0,transition:"opacity 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"}));function U({options:t=[],selectedValues:a$1,onSelectionChange:x,label:F,variant:i="inActive"}){let[d$1,S]=useState(null),h=useRef(null),[n,m]=useState(a$1),[v,I]=useState(0),[c$1,M]=useState(false),l=!!d$1;useEffect(()=>{l||m(a$1);},[a$1,l]);let O=e=>{if(e.stopPropagation(),e.preventDefault(),l){w();return}S(h.current);let o=h.current?.clientWidth||200;I(Math.max(o,200));},w=()=>{JSON.stringify([...n].sort())!==JSON.stringify([...a$1].sort())&&x(n),S(null),I(0);},N=e=>{e.stopPropagation(),e.preventDefault(),m([]),x([]);},B=(e,o)=>{o&&(o.stopPropagation(),o.preventDefault());let z=n.includes(e)?n.filter(J=>J!==e):[...n,e];m(z);};return jsxs(Fragment,{children:[jsx(P,{buttonVariant:i,ref:h,sx:{paddingInlineEnd:"27px"},"data-testid":"MultiSelectStatusButton",onClick:O,onMouseEnter:()=>M(true),onMouseLeave:()=>M(false),disabled:!t.length,children:jsxs(f,{children:[jsxs(e,{variant:i,children:[jsx(Typography,{fontWeight:400,fontSize:"11px",variant:"inherit",children:F}),jsx(e$1,{pointer:true,variant:i==="active"?"active":"inActive",children:p(a$1.length>0?a$1.length:t.length)})]}),jsxs(d,{onClick:c$1&&n.length>0?N:void 0,sx:{"&:hover":{backgroundColor:"transparent"}},children:[jsx(R,{variant:i,src:xb,alt:"clear all",sx:{opacity:c$1&&n.length>0?1:0,pointerEvents:c$1&&n.length>0?"auto":"none"}}),jsx(A,{isVisible:!(c$1&&n.length>0),children:jsx(a,{disableHover:true,isActive:i==="active"})})]})]})}),l&&d$1&&jsx(c,{open:l,onClose:w,anchorEl:d$1,allowShadows:false,style:{minWidth:v||200,width:v||"auto",marginTop:"6px",maxWidth:300},sx:{boxShadow:"none !important","&:hover":{boxShadow:"none !important"}},menuItems:t.map(e=>({label:jsxs(D,{children:[jsx(Checkbox,{checked:n.includes(e.status),size:"small",sx:L,onClick:o=>{o.stopPropagation(),B(e.status??"",o);}}),e.render?e.render():jsx(Typography,{variant:"body2",children:e.name})]}),onClick:o=>{o.preventDefault(),o.stopPropagation(),B(e.status??"",o);}}))})]})}var V=memo(U);var mt=V;export{mt as a};
1
+ import {a}from'./chunk-ABDRIOU6.js';import {f,e,d,c}from'./chunk-6OSSML46.js';import {e as e$1}from'./chunk-WDGOOLU7.js';import {p}from'./chunk-WXO77AL5.js';import {zb}from'./chunk-ROXE5K4B.js';import {memo,useState,useRef,useEffect}from'react';import {Button,Box,Typography,Checkbox}from'@mui/material';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var X=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:"background-color 0.5s ease, color 0.3s ease",paddingInline:t.spacing(2)}),P=styled(Button,{shouldForwardProp:t=>t!=="buttonVariant"})(({theme:t,buttonVariant:a})=>({...X(t),...a==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:disabled":{color:t.palette.common.white}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:"white"},"&:disabled":{color:t.palette.text.primary}}}));styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.5)}));var D=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.3),width:"100%"})),L={padding:.3,color:"#8C9196","&.Mui-checked":{color:"#1F88D0"},"&.MuiCheckbox-root":{color:"#8C9196"},"& .MuiSvgIcon-root":{color:"inherit"},"&.Mui-checked .MuiSvgIcon-root":{color:"#1F88D0","& path":{fill:"#1F88D0"}}},R=styled("img")(({variant:t})=>({width:"10px",height:"10px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)",cursor:"pointer",position:"absolute",top:"50%",left:"47%",transform:"translate(-50%, -50%)",transition:"opacity 0.2s ease-in-out"})),A=styled(Box,{shouldForwardProp:t=>t!=="isVisible"})(({isVisible:t})=>({opacity:t?1:0,transition:"opacity 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"}));function U({options:t=[],selectedValues:a$1,onSelectionChange:x,label:F,variant:i="inActive"}){let[d$1,S]=useState(null),h=useRef(null),[n,m]=useState(a$1),[v,I]=useState(0),[c$1,M]=useState(false),l=!!d$1;useEffect(()=>{l||m(a$1);},[a$1,l]);let O=e=>{if(e.stopPropagation(),e.preventDefault(),l){w();return}S(h.current);let o=h.current?.clientWidth||200;I(Math.max(o,200));},w=()=>{JSON.stringify([...n].sort())!==JSON.stringify([...a$1].sort())&&x(n),S(null),I(0);},N=e=>{e.stopPropagation(),e.preventDefault(),m([]),x([]);},B=(e,o)=>{o&&(o.stopPropagation(),o.preventDefault());let z=n.includes(e)?n.filter(J=>J!==e):[...n,e];m(z);};return jsxs(Fragment,{children:[jsx(P,{buttonVariant:i,ref:h,sx:{paddingInlineEnd:"27px"},"data-testid":"MultiSelectStatusButton",onClick:O,onMouseEnter:()=>M(true),onMouseLeave:()=>M(false),disabled:!t.length,children:jsxs(f,{children:[jsxs(e,{variant:i,children:[jsx(Typography,{fontWeight:400,fontSize:"11px",variant:"inherit",children:F}),jsx(e$1,{pointer:true,variant:i==="active"?"active":"inActive",children:p(a$1.length>0?a$1.length:t.length)})]}),jsxs(d,{onClick:c$1&&n.length>0?N:void 0,sx:{"&:hover":{backgroundColor:"transparent"}},children:[jsx(R,{variant:i,src:zb,alt:"clear all",sx:{opacity:c$1&&n.length>0?1:0,pointerEvents:c$1&&n.length>0?"auto":"none"}}),jsx(A,{isVisible:!(c$1&&n.length>0),children:jsx(a,{disableHover:true,isActive:i==="active"})})]})]})}),l&&d$1&&jsx(c,{open:l,onClose:w,anchorEl:d$1,allowShadows:false,style:{minWidth:v||200,width:v||"auto",marginTop:"6px",maxWidth:300},sx:{boxShadow:"none !important","&:hover":{boxShadow:"none !important"}},menuItems:t.map(e=>({label:jsxs(D,{children:[jsx(Checkbox,{checked:n.includes(e.status),size:"small",sx:L,onClick:o=>{o.stopPropagation(),B(e.status??"",o);}}),e.render?e.render():jsx(Typography,{variant:"body2",children:e.name})]}),onClick:o=>{o.preventDefault(),o.stopPropagation(),B(e.status??"",o);}}))})]})}var V=memo(U);var mt=V;export{mt as a};
@@ -0,0 +1 @@
1
+ import {b}from'./chunk-FKD6E26U.js';import {Tl}from'./chunk-ROXE5K4B.js';import {memo}from'react';import {jsx}from'react/jsx-runtime';var p={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...Tl}},"Device Biometric":{text:"Biometric"}};function y({title:t,ref:n,...r}){let i=p[t];return jsx(b,{chipStyles:i?.styles,ref:n,...r,children:i?.text||t})}var h=memo(y);var l=h;export{l as a};
@@ -1 +1 @@
1
- import {Rh}from'./chunk-TCLN5DZD.js';import {memo}from'react';import l from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var n=styled(l,{shouldForwardProp:t=>t!=="variant"})(({theme:t,variant:o="confirm",size:e="default"})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"}}));function i({children:t,sx:o,...e}){return jsx(n,{sx:o,...e,children:t})}i.displayName="Button";var a=memo(i);function u({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:Rh,alt:"Plus Button",width:24,height:24})})}u.displayName="PlusButton";var d=memo(u);var c=d;var F=a;export{c as a,F as b};
1
+ import {Uh}from'./chunk-ROXE5K4B.js';import {memo}from'react';import l from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var n=styled(l,{shouldForwardProp:t=>t!=="variant"})(({theme:t,variant:o="confirm",size:e="default"})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"}}));function i({children:t,sx:o,...e}){return jsx(n,{sx:o,...e,children:t})}i.displayName="Button";var a=memo(i);function u({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:Uh,alt:"Plus Button",width:24,height:24})})}u.displayName="PlusButton";var d=memo(u);var c=d;var F=a;export{c as a,F as b};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-564ORABT.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {vb}from'./chunk-TCLN5DZD.js';import {Box}from'@mui/material';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(n,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),h=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(n)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),w=styled(n)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$3,onChange:M,options:i}){let[s,d]=useState(null),[y,D]=useState(o),r=!!s,E=e=>{r||d(e.currentTarget);},m=()=>{r&&d(null);},I=e=>{D(e),M?.(e),m();};return jsxs(g,{onClick:E,open:r,children:[jsxs(h,{children:[jsx(b,{children:a$3}),jsx(w,{children:y})]}),jsx(Box,{component:"img",src:vb,alt:"down arrow",sx:{width:15,...r&&{transform:"rotate(180deg)"}}}),jsx(a,{open:r,anchorEl:s,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,W)=>jsx(a$1,{onClick:()=>{I(e.value);},sx:k=>({...W!==i.length-1&&{borderBottom:`1px solid ${k.palette.divider}`}}),children:e.label},e.value))}),r&&jsx(a$2,{onClick:m})]})}var G=l;export{G as a};
1
+ import {a as a$1}from'./chunk-OWWED4PY.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {xb}from'./chunk-ROXE5K4B.js';import {Box}from'@mui/material';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(n,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),h=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(n)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),w=styled(n)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$3,onChange:M,options:i}){let[s,d]=useState(null),[y,D]=useState(o),r=!!s,E=e=>{r||d(e.currentTarget);},m=()=>{r&&d(null);},I=e=>{D(e),M?.(e),m();};return jsxs(g,{onClick:E,open:r,children:[jsxs(h,{children:[jsx(b,{children:a$3}),jsx(w,{children:y})]}),jsx(Box,{component:"img",src:xb,alt:"down arrow",sx:{width:15,...r&&{transform:"rotate(180deg)"}}}),jsx(a,{open:r,anchorEl:s,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,W)=>jsx(a$1,{onClick:()=>{I(e.value);},sx:k=>({...W!==i.length-1&&{borderBottom:`1px solid ${k.palette.divider}`}}),children:e.label},e.value))}),r&&jsx(a$2,{onClick:m})]})}var G=l;export{G as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-VBQVGZ4J.js';import {a as a$3}from'./chunk-R7QVUQBN.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {tc}from'./chunk-WXO77AL5.js';import {Vh,Wh,$h,Sd}from'./chunk-ROXE5K4B.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo}from'react';import n from'@mui/material/Box';import {useDropzone}from'react-dropzone';import {useTranslation}from'react-i18next';import {Button}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var f=styled(n)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),l=styled(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),$=styled(n)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),h=styled(n,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,height:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),F=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),J=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),y=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),S=styled(n)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),L=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),V=styled(n)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var X=forwardRef(({accept:e,footer:i,options:k,isCreateLoading:W,progress:G,error:z,subtitleComponent:b,isSuccess:R,onConfirm:K,isSendDisabled:O,title:s,width:B,successFooter:Q},Y)=>{let{t:d}=useTranslation(),[p,w]=useState([]),{getRootProps:Z,getInputProps:_,open:m,acceptedFiles:I,isDragReject:P,fileRejections:c}=useDropzone(k);useImperativeHandle(Y,()=>({open:m}),[m]),useEffect(()=>{w(I);},[I]);let j=tc(k?.maxSize||0,0).toUpperCase(),x=useMemo(()=>{let ee=c.length&&c[0].errors.some(C=>C.code==="file-invalid-type"),te=c.length&&c[0].errors.some(C=>C.code==="file-too-large");return P||ee?d("invalidFileType"):te?`File is larger than ${j}`:z},[P,z,c]);return R&&p.length&&!W?jsxs(f,{children:[jsxs(n,{children:[typeof s=="string"?jsx(l,{children:s}):s??jsx(l,{children:"File uploaded"}),b]}),jsx(h,{width:B,children:jsxs(F,{children:[R&&jsx(n,{component:"img",src:Vh,width:56,height:56}),jsxs(y,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(S,{children:tc(p[0].size)})]})]})}),Q??jsxs(V,{children:[jsx(a$1,{onClick:()=>{w([]);},children:jsx(a$2,{src:Wh,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:O,onClick:()=>{K?.(p);},children:"Bulk Send"})]})]}):W&&p.length?jsxs(f,{children:[jsxs(n,{children:[jsx(l,{children:d("uploading")}),jsx(g,{children:d("wait")}),b]}),jsx(h,{width:B,children:jsxs(F,{children:[W&&jsx(a$3,{size:56,value:G}),jsxs(y,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(S,{children:tc(p[0].size)})]})]})}),i&&i]}):jsxs(f,{children:[jsxs(n,{children:[x?jsx(l,{isError:true,children:x}):typeof s=="string"?jsx(l,{children:s}):s??jsx(l,{children:d("uploadBulkFile")}),!!x&&jsx(g,{children:"Supported formats: xls, xlxs"}),b]}),jsxs(h,{width:B,...Z(),children:[jsx("input",{..._()}),jsxs(F,{children:[jsx(n,{component:"img",src:x?$h:Sd,width:56,height:56}),x?jsx(Fragment,{children:jsx($,{onClick:m,children:d("uploadAgain")})}):jsxs(y,{children:[jsxs(n,{children:[jsx(J,{onClick:m,children:"Click to upload"})," or drag and drop"]}),jsxs(S,{children:["Maximum file size ",j]}),e&&jsx(g,{children:d("supportedFormats",{accept:e})})]})]})]}),i&&i]})});X.displayName="FileUpload";var q=memo(X);var je=q;export{je as a};
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-NBGGOUIZ.js';import {memo,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import x from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:t}){let[o,r]=useState(false),a=useTheme(),p=()=>{r(true);},l=()=>{r(false);},c=t?a.palette.common.white:a.palette.grey[700],s=o?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:s,fillOpacity:"0.1",onMouseEnter:p,onMouseLeave:l}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:c})]})})}var v=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)}),w=styled(x)(({theme:t})=>({...v(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),y=styled(x)(({theme:t})=>({...v(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}));styled(C)(({theme:t,variant:o})=>({borderRadius:"50px",backgroundColor:o==="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:o==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:o})=>({fill:o==="active"?t.palette.common.white:t.palette.text.primary,color:o==="active"?t.palette.common.white:t.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var B=styled(f)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),b=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),D=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),I=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var L={active:w,inActive:y};function M({variant:t="inActive",label:o,dropdownOptions:r,...a}){let[p,l]=useState(null),c=useRef(null),s=!!p,f=()=>{l(null);},R=L[t],d=r&&r.length>0,g=d?jsx(m,{isActive:t==="active"}):null,E=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},H=useMemo(()=>(r||[]).map(n=>({...n,onClick:T=>{n?.onClick?.(T),f();}})),[r]);return jsxs(Fragment,{children:[jsx(R,{"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),E(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(D,{children:[jsx(I,{children:o}),g&&jsx(b,{children:g})]})}),s&&jsx(B,{open:s,onClose:f,anchorEl:p,menuItems:H})]})}M.displayName="DropdownButton";var S=memo(M);var dt=S;
1
+ import {f}from'./chunk-AK4FIVFH.js';import {memo,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import x from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:t}){let[o,r]=useState(false),a=useTheme(),p=()=>{r(true);},l=()=>{r(false);},c=t?a.palette.common.white:a.palette.grey[700],s=o?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:s,fillOpacity:"0.1",onMouseEnter:p,onMouseLeave:l}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:c})]})})}var v=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)}),w=styled(x)(({theme:t})=>({...v(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),y=styled(x)(({theme:t})=>({...v(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}));styled(C)(({theme:t,variant:o})=>({borderRadius:"50px",backgroundColor:o==="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:o==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:o})=>({fill:o==="active"?t.palette.common.white:t.palette.text.primary,color:o==="active"?t.palette.common.white:t.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var B=styled(f)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),b=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),D=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),I=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var L={active:w,inActive:y};function M({variant:t="inActive",label:o,dropdownOptions:r,...a}){let[p,l]=useState(null),c=useRef(null),s=!!p,f=()=>{l(null);},R=L[t],d=r&&r.length>0,g=d?jsx(m,{isActive:t==="active"}):null,E=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},H=useMemo(()=>(r||[]).map(n=>({...n,onClick:T=>{n?.onClick?.(T),f();}})),[r]);return jsxs(Fragment,{children:[jsx(R,{"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),E(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(D,{children:[jsx(I,{children:o}),g&&jsx(b,{children:g})]})}),s&&jsx(B,{open:s,onClose:f,anchorEl:p,menuItems:H})]})}M.displayName="DropdownButton";var S=memo(M);var dt=S;
2
2
  export{m as a,dt as b};
@@ -1 +1 @@
1
- import {Bb,lc}from'./chunk-ECDED65U.js';import {na,la,Pl}from'./chunk-TCLN5DZD.js';import {useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:s,textColor:r=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:d=false,padding:i,minWidth:n,maxWidth:a,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:r,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:n||"67px",maxWidth:a||"none",width:"fit-content",overflow:"hidden",textOverflow:a?"ellipsis":"unset",boxSizing:"border-box",...s&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),u=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),I=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var H=({children:o,unknownText:s,copyText:r,expandDirection:e="right",chipStyles:c,containerStyles:d,fullWidth:i=false,...n})=>{let[a,l]=useState(false),{t:C}=useTranslation(),p=n.isSelected,g=p&&r,w=useCallback(x=>{if(x.stopPropagation(),r){l(true),Bb(r);let R=setTimeout(()=>{l(false);},2e3);return ()=>{clearTimeout(R);}}},[r]),S=useMemo(()=>jsx(I,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:w,src:a?na:la,style:{height:12,width:12,objectFit:"contain"}})}),[a,w,e]),b=g&&e==="right",v=g&&e==="left";return o?jsxs(motion.div,{style:{position:"relative",...d,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...n,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(u,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...n,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...b&&{paddingRight:12},...v&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:v&&S}),jsx(u,{"data-is-arabic":typeof o=="string"&&lc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...Pl,...n,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:C(s||"unknown")})},M=H;var D=M;export{D as a};
1
+ import {Bb,lc}from'./chunk-WXO77AL5.js';import {pa,na,Tl}from'./chunk-ROXE5K4B.js';import {useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:s,textColor:r=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:d=false,padding:i,minWidth:n,maxWidth:a,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:r,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:n||"67px",maxWidth:a||"none",width:"fit-content",overflow:"hidden",textOverflow:a?"ellipsis":"unset",boxSizing:"border-box",...s&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),u=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),I=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var H=({children:o,unknownText:s,copyText:r,expandDirection:e="right",chipStyles:c,containerStyles:d,fullWidth:i=false,...n})=>{let[a,l]=useState(false),{t:C}=useTranslation(),p=n.isSelected,g=p&&r,w=useCallback(x=>{if(x.stopPropagation(),r){l(true),Bb(r);let R=setTimeout(()=>{l(false);},2e3);return ()=>{clearTimeout(R);}}},[r]),S=useMemo(()=>jsx(I,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:w,src:a?pa:na,style:{height:12,width:12,objectFit:"contain"}})}),[a,w,e]),b=g&&e==="right",v=g&&e==="left";return o?jsxs(motion.div,{style:{position:"relative",...d,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...n,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(u,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...n,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...b&&{paddingRight:12},...v&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:v&&S}),jsx(u,{"data-is-arabic":typeof o=="string"&&lc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...Tl,...n,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:C(s||"unknown")})},M=H;var D=M;export{D as a};
@@ -1,3 +1,3 @@
1
- import {a}from'./chunk-3QA32K6H.js';import {Qg}from'./chunk-TCLN5DZD.js';import {useState}from'react';import L from'@mui/material/Skeleton';import i from'@mui/material/Box';import {styled,Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var x=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),f=styled(Box)`
1
+ import {a}from'./chunk-3QA32K6H.js';import {Tg}from'./chunk-ROXE5K4B.js';import {useState}from'react';import L from'@mui/material/Skeleton';import i from'@mui/material/Box';import {styled,Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var x=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),f=styled(Box)`
2
2
  position: absolute;
3
- `;function P({mainIcon:m,overlayIcon:s,mainIconAlt:c="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:B={top:10,left:17},borderColor:u="#F2F2F2",label:b="",sx:w,onError:y,containerSx:C}){let[r,d]=useState(true);return jsx(a,{title:b,children:jsx(i,{display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(x,{style:{borderColor:u,width:a$1,height:a$1},children:[t&&r&&jsx(i,{width:t,height:t,children:r&&jsx(L,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[s&&jsx(f,{sx:B,children:s}),jsx(i,{width:t,height:t,component:"img",src:m||Qg,alt:c,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:r?0:1,...w},onError:p=>{d(false),p.currentTarget.src=Qg,y?.(p);},onLoad:()=>{d(false);}})]})]})})})}export{P as a};
3
+ `;function P({mainIcon:m,overlayIcon:s,mainIconAlt:c="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:B={top:10,left:17},borderColor:u="#F2F2F2",label:b="",sx:w,onError:y,containerSx:C}){let[r,d]=useState(true);return jsx(a,{title:b,children:jsx(i,{display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(x,{style:{borderColor:u,width:a$1,height:a$1},children:[t&&r&&jsx(i,{width:t,height:t,children:r&&jsx(L,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[s&&jsx(f,{sx:B,children:s}),jsx(i,{width:t,height:t,component:"img",src:m||Tg,alt:c,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:r?0:1,...w},onError:p=>{d(false),p.currentTarget.src=Tg,y?.(p);},onLoad:()=>{d(false);}})]})]})})})}export{P as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-JXBLMQQW.js';import {a as a$2}from'./chunk-4W6J54AY.js';import {a}from'./chunk-CNIYZZCP.js';import {fb}from'./chunk-ECDED65U.js';import {rj,sj}from'./chunk-TCLN5DZD.js';import {useState,useEffect}from'react';import _ from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),L=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),f=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),B=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),S=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),z=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),h=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),k=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var Y=e=>e===0?12:e<=12?e:e-12,pe=e=>e>=12?"PM":"AM",$=()=>new Date().getMinutes(),j=()=>{let e=new Date().getHours();return Y(e)},ae=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var F=["AM","PM"],x=12,g=59;function N({onChange:e,defaultTime:o,enableRealTimeChange:p,size:R="large"}){let[A,y]=useState(null),[a$1,O]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[u,w]=useState(o?.hour??j()),[s,C]=useState(o?.minute??$()),H=!!A;useEffect(()=>{p&&e?.({hour:u,minute:s,period:a$1});},[u,s,a$1,p]);let U=r=>{y(r.currentTarget);},q=()=>{y(null),e?.({hour:u,minute:s,period:a$1});},G=r=>{O(r);},i=r=>r<10?`0${r}`:r.toString(),J=r=>{let l=fb(i(Number(r.target.value)));if(l>12){r.preventDefault();return}w(l);},v=()=>{w(r=>r===12?1:r+1);},D=()=>{w(r=>r===1?12:r-1);},K=r=>{let l=fb(i(Number(r.target.value)));if(l>59){r.preventDefault();return}C(l);},Q=()=>{C(r=>r===59?(v(),0):r+1);},V=()=>{C(r=>r===0?(D(),59):r-1);};return jsx(_,{onClickAway:q,children:jsxs(m,{children:[jsx(L,{size:R,open:H,onClick:U,children:`${i(u)}:${i(s)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(W,{children:[jsxs(z,{children:[jsxs(h,{children:[jsx(f,{onClick:v,children:jsx("img",{src:rj,alt:"arrow"})}),jsx(k,{value:i(u),onChange:J}),jsx(f,{onClick:D,children:jsx("img",{src:sj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(h,{children:[jsx(f,{onClick:Q,children:jsx("img",{src:rj,alt:"arrow"})}),jsx(k,{value:i(s),onChange:K}),jsx(f,{onClick:V,children:jsx("img",{src:sj,alt:"arrow"})})]})]}),jsx(S,{children:F.map(r=>jsx(B,{onClick:()=>{G(r);},selected:a$1===r,children:r},r))})]})})]})})}var ye=N;export{Y as a,pe as b,$ as c,j as d,ae as e,F as f,x as g,g as h,N as i,ye as j};
1
+ import {a as a$1}from'./chunk-F5BRCMX3.js';import {a as a$2}from'./chunk-4W6J54AY.js';import {a}from'./chunk-CNIYZZCP.js';import {fb}from'./chunk-WXO77AL5.js';import {uj,vj}from'./chunk-ROXE5K4B.js';import {useState,useEffect}from'react';import _ from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),L=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),f=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),B=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),S=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),z=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),h=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),k=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var Y=e=>e===0?12:e<=12?e:e-12,pe=e=>e>=12?"PM":"AM",$=()=>new Date().getMinutes(),j=()=>{let e=new Date().getHours();return Y(e)},ae=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var F=["AM","PM"],x=12,g=59;function N({onChange:e,defaultTime:o,enableRealTimeChange:p,size:R="large"}){let[A,y]=useState(null),[a$1,O]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[u,w]=useState(o?.hour??j()),[s,C]=useState(o?.minute??$()),H=!!A;useEffect(()=>{p&&e?.({hour:u,minute:s,period:a$1});},[u,s,a$1,p]);let U=r=>{y(r.currentTarget);},q=()=>{y(null),e?.({hour:u,minute:s,period:a$1});},G=r=>{O(r);},i=r=>r<10?`0${r}`:r.toString(),J=r=>{let l=fb(i(Number(r.target.value)));if(l>12){r.preventDefault();return}w(l);},v=()=>{w(r=>r===12?1:r+1);},D=()=>{w(r=>r===1?12:r-1);},K=r=>{let l=fb(i(Number(r.target.value)));if(l>59){r.preventDefault();return}C(l);},Q=()=>{C(r=>r===59?(v(),0):r+1);},V=()=>{C(r=>r===0?(D(),59):r-1);};return jsx(_,{onClickAway:q,children:jsxs(m,{children:[jsx(L,{size:R,open:H,onClick:U,children:`${i(u)}:${i(s)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(W,{children:[jsxs(z,{children:[jsxs(h,{children:[jsx(f,{onClick:v,children:jsx("img",{src:uj,alt:"arrow"})}),jsx(k,{value:i(u),onChange:J}),jsx(f,{onClick:D,children:jsx("img",{src:vj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(h,{children:[jsx(f,{onClick:Q,children:jsx("img",{src:uj,alt:"arrow"})}),jsx(k,{value:i(s),onChange:K}),jsx(f,{onClick:V,children:jsx("img",{src:vj,alt:"arrow"})})]})]}),jsx(S,{children:F.map(r=>jsx(B,{onClick:()=>{G(r);},selected:a$1===r,children:r},r))})]})})]})})}var ye=N;export{Y as a,pe as b,$ as c,j as d,ae as e,F as f,x as g,g as h,N as i,ye as j};
@@ -1 +1 @@
1
- import {e}from'./chunk-WCKORXDZ.js';import {a}from'./chunk-SPNQ2E2Q.js';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';import {memo,useState}from'react';var f=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),v=styled(n)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(n)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),C=styled(n)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function l({children:o,index:e,dialogRef:a,height:t,onClick:r,order:p,dragControls:s,style:d}){return jsx(f,{drag:true,dragListener:false,dragMomentum:false,dragControls:s,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+p},onClick:r,ref:a,style:d,children:o})}function T({title:o,onCloseDialog:e$1,...a$1}){let[t,r]=useState(false);return jsx(e,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:c=>{c.stopPropagation(),e$1();}}),...a$1})}var I=memo(T);var z=l;export{v as a,b,C as c,I as d,z as e};
1
+ import {e}from'./chunk-BX63HTMQ.js';import {a}from'./chunk-6RMDSMJP.js';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';import {memo,useState}from'react';var f=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),v=styled(n)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(n)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),C=styled(n)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function l({children:o,index:e,dialogRef:a,height:t,onClick:r,order:p,dragControls:s,style:d}){return jsx(f,{drag:true,dragListener:false,dragMomentum:false,dragControls:s,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+p},onClick:r,ref:a,style:d,children:o})}function T({title:o,onCloseDialog:e$1,...a$1}){let[t,r]=useState(false);return jsx(e,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:c=>{c.stopPropagation(),e$1();}}),...a$1})}var I=memo(T);var z=l;export{v as a,b,C as c,I as d,z as e};
@@ -1 +1 @@
1
- import {Kk}from'./chunk-TCLN5DZD.js';import g from'@mui/material/Stack';import d from'@mui/material/Box';import e from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){return jsxs(g,{height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(g,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:r=>r.palette.background.transparent[0]},children:[jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(d,{flex:1,bgcolor:"#fff"})]})}var u=4;function f(){return jsx(g,{height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:u}).map((r,c)=>jsx(d,{children:jsxs(g,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(e,{variant:"rounded",width:32,height:32}),jsxs(d,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(e,{width:80,height:12.29}),jsxs(d,{sx:{display:"flex",gap:"4px"},children:[jsx(e,{width:50,height:12.29}),jsx(e,{width:125,height:12.29})]})]})]})},c))})}var b=({appCode:r})=>r===Kk.reports.code?jsx(f,{}):jsx(h,{}),m=b;var A=m;export{A as a};
1
+ import {Ok}from'./chunk-ROXE5K4B.js';import g from'@mui/material/Stack';import d from'@mui/material/Box';import e from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){return jsxs(g,{height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(g,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:r=>r.palette.background.transparent[0]},children:[jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(e,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(d,{flex:1,bgcolor:"#fff"})]})}var u=4;function f(){return jsx(g,{height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:u}).map((r,c)=>jsx(d,{children:jsxs(g,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(e,{variant:"rounded",width:32,height:32}),jsxs(d,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(e,{width:80,height:12.29}),jsxs(d,{sx:{display:"flex",gap:"4px"},children:[jsx(e,{width:50,height:12.29}),jsx(e,{width:125,height:12.29})]})]})]})},c))})}var b=({appCode:r})=>r===Ok.reports.code?jsx(f,{}):jsx(h,{}),m=b;var A=m;export{A as a};