@tap-payments/os-micro-frontend-shared 0.3.33 → 0.3.34

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 (248) hide show
  1. package/build/_chunks/{chunk-LI36HMPN.js → chunk-2BIUUEZV.js} +1 -1
  2. package/build/_chunks/{chunk-CHNDTZFE.js → chunk-3W5UI4JD.js} +1 -1
  3. package/build/_chunks/{chunk-Z7ZZN6BM.js → chunk-4POYAYNS.js} +1 -1
  4. package/build/_chunks/{chunk-FA3LRBSM.js → chunk-4QZPVL4K.js} +1 -1
  5. package/build/_chunks/{chunk-GY37OJXL.js → chunk-5FOMHO42.js} +1 -1
  6. package/build/_chunks/{chunk-EBXZYMSR.js → chunk-5HAX5SU5.js} +1 -1
  7. package/build/_chunks/{chunk-2ITQR6AV.js → chunk-5JAZYSMT.js} +1 -1
  8. package/build/_chunks/{chunk-XODILRBP.js → chunk-6CAZQIGP.js} +1 -1
  9. package/build/_chunks/{chunk-XFXM4LRU.js → chunk-6Y7K2DR3.js} +1 -1
  10. package/build/_chunks/{chunk-6RUN2A52.js → chunk-7FX6EOCN.js} +1 -1
  11. package/build/_chunks/{chunk-3FWBPCYF.js → chunk-7JNTEKM5.js} +1 -1
  12. package/build/_chunks/{chunk-X7RH7OAH.js → chunk-7JSR2MUI.js} +1 -1
  13. package/build/_chunks/{chunk-4RAIPDCL.js → chunk-A7V4BHUO.js} +1 -1
  14. package/build/_chunks/{chunk-UUO3QCDI.js → chunk-ARSNKO3J.js} +1 -1
  15. package/build/_chunks/{chunk-NUCD26IC.js → chunk-BBMD5G27.js} +1 -1
  16. package/build/_chunks/{chunk-OUUPKKXY.js → chunk-BKR25BNE.js} +1 -1
  17. package/build/_chunks/{chunk-JPNEQBKC.js → chunk-BP77XKPE.js} +1 -1
  18. package/build/_chunks/{chunk-25P32HJ3.js → chunk-C4XKK3VK.js} +1 -1
  19. package/build/_chunks/{chunk-ZZUHBUBW.js → chunk-CJJAJZMU.js} +1 -1
  20. package/build/_chunks/{chunk-Z42POOES.js → chunk-CLPSACHN.js} +1 -1
  21. package/build/_chunks/{chunk-N7RC2LPM.js → chunk-CVNV75LZ.js} +1 -1
  22. package/build/_chunks/{chunk-CVYHM5O4.js → chunk-CX2CMG37.js} +1 -1
  23. package/build/_chunks/{chunk-EE263HCZ.js → chunk-E352DQMZ.js} +1 -1
  24. package/build/_chunks/{chunk-GIKP4LIN.js → chunk-ECHTWP4G.js} +1 -1
  25. package/build/_chunks/{chunk-HDMYS6QD.js → chunk-EKVF7CLR.js} +1 -1
  26. package/build/_chunks/{chunk-JZV3ZJBB.js → chunk-ELLNE4SQ.js} +1 -1
  27. package/build/_chunks/{chunk-G3KITYB7.js → chunk-EMTERVOC.js} +1 -1
  28. package/build/_chunks/{chunk-ZJ3Y7NGV.js → chunk-EV4VYVUA.js} +1 -1
  29. package/build/_chunks/{chunk-Y6SN5NQH.js → chunk-FQN2ENGZ.js} +1 -1
  30. package/build/_chunks/{chunk-XRSE2L75.js → chunk-FRXYOX5V.js} +1 -1
  31. package/build/_chunks/{chunk-BUGQY66X.js → chunk-GAVZBUVE.js} +1 -1
  32. package/build/_chunks/{chunk-C5HVRHFE.js → chunk-GJ7M2MHJ.js} +1 -1
  33. package/build/_chunks/{chunk-DZBGGQBF.js → chunk-GXDLYPFJ.js} +1 -1
  34. package/build/_chunks/{chunk-YKPYXS5F.js → chunk-GY77SAWJ.js} +1 -1
  35. package/build/_chunks/{chunk-E6OJ5PER.js → chunk-GYW2DJ2H.js} +1 -1
  36. package/build/_chunks/{chunk-3LYDDROA.js → chunk-H4HIA43J.js} +1 -1
  37. package/build/_chunks/{chunk-KJILJZZL.js → chunk-HIMNKXWP.js} +1 -1
  38. package/build/_chunks/{chunk-CFJKHUF7.js → chunk-HIVZKT35.js} +1 -1
  39. package/build/_chunks/{chunk-ONOCM5IO.js → chunk-HSGIQESP.js} +1 -1
  40. package/build/_chunks/{chunk-A6JU6IHH.js → chunk-HVT3EERK.js} +1 -1
  41. package/build/_chunks/{chunk-NML2KBRY.js → chunk-IC4NGUDJ.js} +1 -1
  42. package/build/_chunks/{chunk-HZ37ITG2.js → chunk-IGR6WGTI.js} +1 -1
  43. package/build/_chunks/{chunk-CSZ3BKQ6.js → chunk-IKNMZV6C.js} +1 -1
  44. package/build/_chunks/{chunk-BWHXUPA4.js → chunk-IKWFUB2P.js} +1 -1
  45. package/build/_chunks/{chunk-ZFNXPCDH.js → chunk-IOPQV7KB.js} +1 -1
  46. package/build/_chunks/{chunk-4VUMJS3Q.js → chunk-IXRKGIZ3.js} +1 -1
  47. package/build/_chunks/{chunk-RP4EQUEN.js → chunk-IZ5CDD7Y.js} +1 -1
  48. package/build/_chunks/chunk-JPXKUMRX.js +1 -0
  49. package/build/_chunks/{chunk-Y2TYYOG5.js → chunk-K2C7CEOB.js} +1 -1
  50. package/build/_chunks/{chunk-TLIKGGIL.js → chunk-K2GMSM47.js} +1 -1
  51. package/build/_chunks/{chunk-N7TZLACN.js → chunk-KPHD7GM3.js} +1 -1
  52. package/build/_chunks/{chunk-4ZK5WIJY.js → chunk-KYU2IAPT.js} +1 -1
  53. package/build/_chunks/{chunk-HEAHZEQF.js → chunk-LAKZ2LLE.js} +1 -1
  54. package/build/_chunks/{chunk-NOVPYXJS.js → chunk-ME6IAGS5.js} +1 -1
  55. package/build/_chunks/{chunk-2QTISYZC.js → chunk-MES34FGP.js} +1 -1
  56. package/build/_chunks/{chunk-XHEVVGGE.js → chunk-MQVVEXA4.js} +1 -1
  57. package/build/_chunks/{chunk-KUVU47NF.js → chunk-MS33ADL3.js} +1 -1
  58. package/build/_chunks/{chunk-GCJHBKRY.js → chunk-MUONFF5X.js} +1 -1
  59. package/build/_chunks/{chunk-GS5HU2W2.js → chunk-NFBM7IBK.js} +1 -1
  60. package/build/_chunks/{chunk-URTGHZ5G.js → chunk-NOGJIOA5.js} +1 -1
  61. package/build/_chunks/{chunk-D46TFQTH.js → chunk-NSPGNCVW.js} +1 -1
  62. package/build/_chunks/{chunk-6WS2AF7Z.js → chunk-NT2XTLBR.js} +1 -1
  63. package/build/_chunks/{chunk-IBSQ66TO.js → chunk-OIMUFRPM.js} +1 -1
  64. package/build/_chunks/{chunk-6QI7MBR2.js → chunk-OIOUYR6I.js} +1 -1
  65. package/build/_chunks/{chunk-XDCJLWA2.js → chunk-OQTV3P6Z.js} +1 -1
  66. package/build/_chunks/{chunk-G3UNARKB.js → chunk-P6XMN5PJ.js} +1 -1
  67. package/build/_chunks/chunk-PAK54GSM.js +1 -0
  68. package/build/_chunks/{chunk-FR7AI525.js → chunk-PCZ7IE4C.js} +1 -1
  69. package/build/_chunks/{chunk-347S4JS5.js → chunk-PKG4X2X7.js} +1 -1
  70. package/build/_chunks/{chunk-T6ELU7DI.js → chunk-PPNJLNE7.js} +1 -1
  71. package/build/_chunks/{chunk-75FA6O7J.js → chunk-Q2UYJK5B.js} +1 -1
  72. package/build/_chunks/{chunk-MHPDSXWW.js → chunk-Q3BNKBLR.js} +1 -1
  73. package/build/_chunks/{chunk-CKGHTFE6.js → chunk-QV4TVJGH.js} +1 -1
  74. package/build/_chunks/{chunk-N6QA6D2G.js → chunk-R5XSQRL7.js} +1 -1
  75. package/build/_chunks/{chunk-YSPWF36D.js → chunk-RIC3E7MU.js} +1 -1
  76. package/build/_chunks/{chunk-H5GIJAFY.js → chunk-RNJASTYQ.js} +1 -1
  77. package/build/_chunks/{chunk-3MXAUJ6B.js → chunk-RSFXUYNZ.js} +1 -1
  78. package/build/_chunks/{chunk-UXLTK54A.js → chunk-SJWSSDSY.js} +1 -1
  79. package/build/_chunks/{chunk-UZTGBJST.js → chunk-SLMIGQPQ.js} +1 -1
  80. package/build/_chunks/{chunk-BKQKE7RW.js → chunk-SNVX6323.js} +1 -1
  81. package/build/_chunks/{chunk-5JB32U76.js → chunk-T2ZRUU44.js} +1 -1
  82. package/build/_chunks/{chunk-FRJQXNZF.js → chunk-TFB5L7LW.js} +1 -1
  83. package/build/_chunks/{chunk-ZZGDPPWY.js → chunk-TLJAQIJL.js} +1 -1
  84. package/build/_chunks/{chunk-6AEYAZ7J.js → chunk-U2CGKE2V.js} +1 -1
  85. package/build/_chunks/{chunk-KBAJZUXB.js → chunk-UFCIBS7P.js} +1 -1
  86. package/build/_chunks/{chunk-WJ563EIM.js → chunk-UPISPLGW.js} +1 -1
  87. package/build/_chunks/{chunk-P63BAZED.js → chunk-V6E637LE.js} +1 -1
  88. package/build/_chunks/{chunk-BDONG5DZ.js → chunk-VHJUHZEP.js} +1 -1
  89. package/build/_chunks/{chunk-LE2RDJDQ.js → chunk-VIWXTWST.js} +1 -1
  90. package/build/_chunks/{chunk-JOMXFKP5.js → chunk-VJKAFBW6.js} +1 -1
  91. package/build/_chunks/{chunk-QAJQQ6VZ.js → chunk-VJYHEAJY.js} +1 -1
  92. package/build/_chunks/{chunk-LMV5CX6B.js → chunk-VT6VDAXP.js} +1 -1
  93. package/build/_chunks/{chunk-OC76NYQO.js → chunk-VUOUS4XP.js} +1 -1
  94. package/build/_chunks/{chunk-O2I3RFJL.js → chunk-VXGABQ7J.js} +1 -1
  95. package/build/_chunks/{chunk-NTF472EL.js → chunk-WKYY433S.js} +1 -1
  96. package/build/_chunks/{chunk-WLGP5VR2.js → chunk-WOSHLQR3.js} +1 -1
  97. package/build/_chunks/{chunk-JWYLOQS7.js → chunk-WPZBY7O3.js} +1 -1
  98. package/build/_chunks/{chunk-V5UDRW53.js → chunk-WUODNG3Z.js} +1 -1
  99. package/build/_chunks/{chunk-JDUQR4LP.js → chunk-XTMBLCJK.js} +1 -1
  100. package/build/_chunks/{chunk-6XFGO7ZO.js → chunk-XURJIEHW.js} +1 -1
  101. package/build/_chunks/{chunk-STAU6ZUC.js → chunk-YI4WYHAR.js} +1 -1
  102. package/build/_chunks/{chunk-TD57M3ZC.js → chunk-YKO3ZLJ4.js} +1 -1
  103. package/build/_chunks/{chunk-GBIWQ52O.js → chunk-Z3WL4JXA.js} +1 -1
  104. package/build/_chunks/{chunk-6X4Q3E4C.js → chunk-Z66X47YA.js} +1 -1
  105. package/build/_chunks/{chunk-GNAKZ2VQ.js → chunk-ZHXM22SI.js} +1 -1
  106. package/build/components/Accordion/index.js +1 -1
  107. package/build/components/AccountDropdown/index.js +1 -1
  108. package/build/components/ActionMenu/index.js +1 -1
  109. package/build/components/ActionsDropdownMenu/index.js +1 -1
  110. package/build/components/ActiveFilterChip/index.js +1 -1
  111. package/build/components/ActivityAreaChart/index.js +1 -1
  112. package/build/components/Amount/index.js +1 -1
  113. package/build/components/AmountConversionFilter/index.js +1 -1
  114. package/build/components/AmountInput/index.js +1 -1
  115. package/build/components/AmountSlider/index.js +1 -1
  116. package/build/components/AmountStatusChip/index.js +1 -1
  117. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  118. package/build/components/AppServices/index.js +1 -1
  119. package/build/components/AppServicesBar/index.js +1 -1
  120. package/build/components/AppWindowWrapper/index.js +1 -1
  121. package/build/components/AuthenticationTypeChip/index.js +1 -1
  122. package/build/components/Autocomplete/index.js +1 -1
  123. package/build/components/BetaBanner/index.js +1 -1
  124. package/build/components/BrandLogo/index.js +1 -1
  125. package/build/components/Button/index.js +1 -1
  126. package/build/components/Calender/index.js +1 -1
  127. package/build/components/CardEmptyState/index.js +1 -1
  128. package/build/components/Checkbox/index.js +1 -1
  129. package/build/components/Chip/index.js +1 -1
  130. package/build/components/ChipStack/index.js +1 -1
  131. package/build/components/CircularProgressWithLabel/index.js +1 -1
  132. package/build/components/Collapse/index.js +1 -1
  133. package/build/components/ColorPicker/index.js +1 -1
  134. package/build/components/ColumnViews/index.js +1 -1
  135. package/build/components/ConfirmDialog/index.js +1 -1
  136. package/build/components/CopyImage/index.js +1 -1
  137. package/build/components/CountBadge/index.js +1 -1
  138. package/build/components/CountryFilter/index.js +1 -1
  139. package/build/components/CountryFlag/index.js +1 -1
  140. package/build/components/CurrencyAmount/index.js +1 -1
  141. package/build/components/CurrencyFilter/index.js +1 -1
  142. package/build/components/CurrencySymbol/index.js +1 -1
  143. package/build/components/CustomBackdrop/index.js +1 -1
  144. package/build/components/Customer/index.js +1 -1
  145. package/build/components/DateFilter/index.js +1 -1
  146. package/build/components/DeviceIcon/index.js +1 -1
  147. package/build/components/Dialog/index.js +1 -1
  148. package/build/components/Discount/index.js +1 -1
  149. package/build/components/DisplayAmount/index.js +1 -1
  150. package/build/components/Dropdown2/index.js +1 -1
  151. package/build/components/DropdownButton/index.js +1 -1
  152. package/build/components/DropdownMenu/index.js +1 -1
  153. package/build/components/Error/index.js +1 -1
  154. package/build/components/ErrorToast/index.js +1 -1
  155. package/build/components/ExpandableSideBar/index.js +1 -1
  156. package/build/components/FieldFeedback/index.js +1 -1
  157. package/build/components/FileInputPreview/index.js +1 -1
  158. package/build/components/FilePreview/index.js +1 -1
  159. package/build/components/FileUpload/index.js +1 -1
  160. package/build/components/FileUploader/index.js +1 -1
  161. package/build/components/FilterDropdown/index.js +1 -1
  162. package/build/components/Filters/index.js +1 -1
  163. package/build/components/FlagDetails/index.js +1 -1
  164. package/build/components/FlippingCard/index.js +1 -1
  165. package/build/components/HeatMap/index.js +1 -1
  166. package/build/components/IOSSwitch/index.js +1 -1
  167. package/build/components/Icon/index.js +1 -1
  168. package/build/components/IconWithBadge/index.js +1 -1
  169. package/build/components/Input/index.js +1 -1
  170. package/build/components/InputBase/index.js +1 -1
  171. package/build/components/InputNumber/index.js +1 -1
  172. package/build/components/Inputs/index.js +1 -1
  173. package/build/components/JSONViewer/index.js +1 -1
  174. package/build/components/LanguageDropdown/index.js +1 -1
  175. package/build/components/LazyImage/index.js +1 -1
  176. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  177. package/build/components/ListColumnFilter/index.js +1 -1
  178. package/build/components/ListHeader/index.js +1 -1
  179. package/build/components/ListLayout/index.js +1 -1
  180. package/build/components/Loader/index.js +1 -1
  181. package/build/components/MFWidgetLoader/index.js +1 -1
  182. package/build/components/MaskedText/index.js +1 -1
  183. package/build/components/Menu/index.js +1 -1
  184. package/build/components/MenuItem/index.js +1 -1
  185. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  186. package/build/components/MerchantLogo/index.js +1 -1
  187. package/build/components/MerchantsDropdown/index.js +1 -1
  188. package/build/components/MultiDatakeyDonut/index.js +1 -1
  189. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  190. package/build/components/MultiSelectWithSearch/index.js +1 -1
  191. package/build/components/NestedDropdown/index.js +1 -1
  192. package/build/components/NoInternet/index.js +1 -1
  193. package/build/components/OpenFileInNewTab/index.js +1 -1
  194. package/build/components/PartnersFilter/index.js +1 -1
  195. package/build/components/PaymentSourceFilter/index.js +1 -1
  196. package/build/components/PhoneFilter/index.js +1 -1
  197. package/build/components/ProgressBar/index.js +1 -1
  198. package/build/components/ProgressRing/index.js +1 -1
  199. package/build/components/RFH/index.js +1 -1
  200. package/build/components/RadioButton/index.js +1 -1
  201. package/build/components/RadioGroup/index.js +1 -1
  202. package/build/components/RangeCalender/index.js +1 -1
  203. package/build/components/ReceiptsViewer/index.js +1 -1
  204. package/build/components/ReferenceTypeFilter/index.js +1 -1
  205. package/build/components/ResizableHeightInput/index.js +1 -1
  206. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  207. package/build/components/SalesChannelFilter/index.js +1 -1
  208. package/build/components/ScrollLoader/index.js +1 -1
  209. package/build/components/SearchButton/index.js +1 -1
  210. package/build/components/SearchListInput/index.js +1 -1
  211. package/build/components/SelectDropdown/index.js +1 -1
  212. package/build/components/SelectWithSearch/index.js +1 -1
  213. package/build/components/SimpleDialog/index.js +1 -1
  214. package/build/components/Skeleton/index.js +1 -1
  215. package/build/components/Slider/index.js +1 -1
  216. package/build/components/StatusBar/index.js +1 -1
  217. package/build/components/StatusButton/index.js +1 -1
  218. package/build/components/StatusChip/index.js +1 -1
  219. package/build/components/StatusChipWithCopy/index.js +1 -1
  220. package/build/components/StatusFilter/index.js +1 -1
  221. package/build/components/StatusGroupChips/index.js +1 -1
  222. package/build/components/StatusIcons/index.js +1 -1
  223. package/build/components/StatusLabel/index.js +1 -1
  224. package/build/components/TableCells/index.js +1 -1
  225. package/build/components/TableReports/index.js +1 -1
  226. package/build/components/Timepicker/index.js +1 -1
  227. package/build/components/ToggleButtons/index.js +1 -1
  228. package/build/components/ToggleView/index.js +1 -1
  229. package/build/components/Toolbar/index.js +1 -1
  230. package/build/components/TooltipChip/index.js +1 -1
  231. package/build/components/TreeDropdown/index.js +1 -1
  232. package/build/components/VAT/index.js +1 -1
  233. package/build/components/VerificationIcon/index.js +1 -1
  234. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  235. package/build/components/VirtualTables/index.js +1 -1
  236. package/build/components/Widget/index.js +1 -1
  237. package/build/components/WindowAppIcon/index.js +1 -1
  238. package/build/components/WindowBackdrop/index.js +1 -1
  239. package/build/components/WindowSideBar/index.js +1 -1
  240. package/build/components/_v2/index.js +1 -1
  241. package/build/components/index.js +1 -1
  242. package/build/hooks/index.js +1 -1
  243. package/build/index.js +1 -1
  244. package/build/utils/date.d.ts +17 -6
  245. package/build/utils/index.js +1 -1
  246. package/package.json +1 -1
  247. package/build/_chunks/chunk-EZPGM3YA.js +0 -1
  248. package/build/_chunks/chunk-QWAZOXVA.js +0 -1
@@ -1 +1 @@
1
- import {b}from'./chunk-XDCJLWA2.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
1
+ import {b}from'./chunk-OQTV3P6Z.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-Z42POOES.js';import {Jc}from'./chunk-QWAZOXVA.js';import {sb}from'./chunk-DSHV2G5D.js';import {memo,useState,useRef,useEffect,useMemo,useId}from'react';import Z from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var z=styled(a)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1)})),L=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:r})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:r?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),k=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),R=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),H=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),$=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),A=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),O=styled(Box)(({theme:e})=>({position:"relative",backgroundColor:e.palette.common.white,zIndex:999999}));function j({label:e,icon:r,name:s,menuItems:t,setSelected:y,onSelect:P,selected:p,displayChildrenCount:C,disabled:i,placement:x="right",sx:g,menuSx:I}){let[u,S]=useState(null),l=useRef(null),[a,n]=useState(false),h=o=>{!i&&p!==void 0&&(y({name:o,selected:!p}),p||n(false));};return useEffect(()=>{n(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(L,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${u?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!u&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{u&&S(null);},onClick:o=>{i||(o.stopPropagation(),h(s));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[p!==void 0&&jsx(R,{size:"small",indeterminate:a,checked:p,disabled:i}),jsxs(H,{children:[r&&r,jsxs($,{children:[e&&jsx(B,{children:e}),!!t?.length&&jsxs(G,{children:[C&&jsx(A,{children:t.length}),jsx("img",{src:sb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(Z,{open:!!(u&&t?.length),anchorEl:u,placement:x==="left"?"left-start":"right-start",sx:{zIndex:99999,...I},children:jsx(V,{className:"child-dropdown",menuItems:t,placement:x,onChildrenChange:o=>{let w=o.every(d=>d.selected);p!==void 0&&!i&&(w&&y({name:s,selected:true}),o.every(d=>!d.selected)&&y({name:s,selected:false}),n(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!w));},onSelect:o=>{P(o,s);}})})]})}var M=memo(j);function te({title:e,menuItems:r,onChildrenChange:s,onSelect:t,className:y,updatedList:P,footer:p,header:C,placement:i="right",...x}){let[g,I]=useState({name:"",selected:false}),[u,S]=useState();return useEffect(()=>{S(r);},[r]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,n=[],h=d=>d?.map(m=>(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}})),w=(d=>d.map(m=>m.name===l?(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}}):m))(u);S(w),P&&P(w),s&&s(w),t&&t(n);}},[g]),jsxs(k,{component:"article",className:`tap-dropdown ${y||""}`,...x,children:[jsx(O,{children:e&&jsx(z,{component:"p",children:e})}),C,jsx(F,{children:u?.map((l,a)=>jsx(M,{setSelected:({name:n,selected:h})=>{I({name:n,selected:h});},onSelect:n=>{t&&t(n);},placement:i,...l},`${l.name}-${a}`))}),p&&p]})}var V=memo(te);var K=(e,{menuItemSx:r,menuSx:s})=>(e.forEach(t=>{t.sx={...r,...t.sx},t.menuSx={...s,...t.menuSx},t.menuItems?.length&&K(t.menuItems,{menuItemSx:r,menuSx:s});}),e);function le({title:e,menuItems:r,onSelect:s,updatedList:t,header:y,placement:P="right",menuItemSx:p={},menuSx:C={},...i}){let x=useMemo(()=>K(r,{menuItemSx:p,menuSx:C}),[r,p,C]),[g,I]=useState(x),u=Jc(useId(),"nested-dropdown");useEffect(()=>{I(x);},[x]);let S=l=>{let a=h=>h.map(o=>({...o,selected:l.find(w=>o.name===w.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),n=a(g);I(n),t&&t(n);};return jsx(V,{id:u,"data-testid":"NestedDropdown",placement:P,menuItems:g,title:e,header:y,onSelect:l=>{s&&s(l),S(l);},...i})}var Q=memo(le);var Ne=Q;export{M as a,V as b,Ne as c};
1
+ import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-CLPSACHN.js';import {Jc}from'./chunk-JPXKUMRX.js';import {sb}from'./chunk-DSHV2G5D.js';import {memo,useState,useRef,useEffect,useMemo,useId}from'react';import Z from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var z=styled(a)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1)})),L=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:r})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:r?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),k=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),R=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),H=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),$=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),A=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),O=styled(Box)(({theme:e})=>({position:"relative",backgroundColor:e.palette.common.white,zIndex:999999}));function j({label:e,icon:r,name:s,menuItems:t,setSelected:y,onSelect:P,selected:p,displayChildrenCount:C,disabled:i,placement:x="right",sx:g,menuSx:I}){let[u,S]=useState(null),l=useRef(null),[a,n]=useState(false),h=o=>{!i&&p!==void 0&&(y({name:o,selected:!p}),p||n(false));};return useEffect(()=>{n(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(L,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${u?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!u&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{u&&S(null);},onClick:o=>{i||(o.stopPropagation(),h(s));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[p!==void 0&&jsx(R,{size:"small",indeterminate:a,checked:p,disabled:i}),jsxs(H,{children:[r&&r,jsxs($,{children:[e&&jsx(B,{children:e}),!!t?.length&&jsxs(G,{children:[C&&jsx(A,{children:t.length}),jsx("img",{src:sb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(Z,{open:!!(u&&t?.length),anchorEl:u,placement:x==="left"?"left-start":"right-start",sx:{zIndex:99999,...I},children:jsx(V,{className:"child-dropdown",menuItems:t,placement:x,onChildrenChange:o=>{let w=o.every(d=>d.selected);p!==void 0&&!i&&(w&&y({name:s,selected:true}),o.every(d=>!d.selected)&&y({name:s,selected:false}),n(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!w));},onSelect:o=>{P(o,s);}})})]})}var M=memo(j);function te({title:e,menuItems:r,onChildrenChange:s,onSelect:t,className:y,updatedList:P,footer:p,header:C,placement:i="right",...x}){let[g,I]=useState({name:"",selected:false}),[u,S]=useState();return useEffect(()=>{S(r);},[r]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,n=[],h=d=>d?.map(m=>(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}})),w=(d=>d.map(m=>m.name===l?(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}}):m))(u);S(w),P&&P(w),s&&s(w),t&&t(n);}},[g]),jsxs(k,{component:"article",className:`tap-dropdown ${y||""}`,...x,children:[jsx(O,{children:e&&jsx(z,{component:"p",children:e})}),C,jsx(F,{children:u?.map((l,a)=>jsx(M,{setSelected:({name:n,selected:h})=>{I({name:n,selected:h});},onSelect:n=>{t&&t(n);},placement:i,...l},`${l.name}-${a}`))}),p&&p]})}var V=memo(te);var K=(e,{menuItemSx:r,menuSx:s})=>(e.forEach(t=>{t.sx={...r,...t.sx},t.menuSx={...s,...t.menuSx},t.menuItems?.length&&K(t.menuItems,{menuItemSx:r,menuSx:s});}),e);function le({title:e,menuItems:r,onSelect:s,updatedList:t,header:y,placement:P="right",menuItemSx:p={},menuSx:C={},...i}){let x=useMemo(()=>K(r,{menuItemSx:p,menuSx:C}),[r,p,C]),[g,I]=useState(x),u=Jc(useId(),"nested-dropdown");useEffect(()=>{I(x);},[x]);let S=l=>{let a=h=>h.map(o=>({...o,selected:l.find(w=>o.name===w.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),n=a(g);I(n),t&&t(n);};return jsx(V,{id:u,"data-testid":"NestedDropdown",placement:P,menuItems:g,title:e,header:y,onSelect:l=>{s&&s(l),S(l);},...i})}var Q=memo(le);var Ne=Q;export{M as a,V as b,Ne as c};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-QWAZOXVA.js';import {oe}from'./chunk-DSHV2G5D.js';import {useId}from'react';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),s=styled("img")({cursor:"pointer"}),p=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function g({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:m}){let c=Jc(useId(),"error-toast");return jsxs(n,{id:c,"data-testid":"ErrorToast",toastPosition:l,children:[jsx(p,{children:o}),jsx(s,{onClick:f=>t?.(f),src:m||oe,alt:"toast-icon"})]})}var d=g;var v=d;export{v as a};
1
+ import {Jc}from'./chunk-JPXKUMRX.js';import {oe}from'./chunk-DSHV2G5D.js';import {useId}from'react';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),s=styled("img")({cursor:"pointer"}),p=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function g({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:m}){let c=Jc(useId(),"error-toast");return jsxs(n,{id:c,"data-testid":"ErrorToast",toastPosition:l,children:[jsx(p,{children:o}),jsx(s,{onClick:f=>t?.(f),src:m||oe,alt:"toast-icon"})]})}var d=g;var v=d;export{v as a};
@@ -1 +1 @@
1
- import {b as b$1,g,a as a$3}from'./chunk-NKRK4PAN.js';import {a as a$2}from'./chunk-EE263HCZ.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-QWAZOXVA.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Jc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
1
+ import {b as b$1,g,a as a$3}from'./chunk-NKRK4PAN.js';import {a as a$2}from'./chunk-E352DQMZ.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-JPXKUMRX.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Jc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-75FA6O7J.js';import {a as a$1}from'./chunk-XHEVVGGE.js';import {a}from'./chunk-25P32HJ3.js';import {Jc,Oa,Pa,Na}from'./chunk-QWAZOXVA.js';import {Vc,Uc,Lc,Kc,Jc as Jc$1,Mc,_d}from'./chunk-DSHV2G5D.js';import {useRef,useId,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {createPortal}from'react-dom';import {styled,alpha}from'@mui/material';import ee from'@mui/material/Popover';import Ve from'react-currency-input-field';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var oe=styled("div")(({showWarning:e})=>({display:"flex",gap:"0.25rem",justifyContent:"flex-start",alignItems:"flex-start",padding:"0.25rem",borderRadius:"0.25rem",width:"14.25rem",minHeight:e?"3.6rem":"2.5rem"})),ne=styled("div")(()=>({display:"flex",flexDirection:"column",width:"100%"})),te=styled("div")(()=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",flex:1})),re=styled("div")(({theme:e,showWarning:o,showDropDown:t})=>({height:"2rem",border:o?`1px solid ${e.palette.common.red}24`:t?`1px solid ${e.palette.info.dark}`:`1px solid ${e.palette.grey[100]}`,borderRadius:o?"0.25rem 0.25rem 0rem 0rem":"0.25rem",display:"flex",alignItems:"center",justifyContent:"space-between",paddingRight:"0.5rem",paddingLeft:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",margin:0,zIndex:4e3,...t&&{boxShadow:`0px 0px 4px 0px ${e.palette.info.dark}80`}})),ie=styled("div")(({theme:e})=>({height:"1.1rem",borderRadius:"0rem 0rem 0.25rem 0.25rem",display:"flex",justifyContent:"flex-start",margin:0,alignItems:"center",background:e.palette.background.gradient.error,paddingLeft:"0.5rem"})),ae=styled("p")(({theme:e})=>({color:e.palette.common.red,fontSize:"0.62rem",fontWeight:400,fontFamily:"Lato",padding:0,margin:0,paddingLeft:"0.25rem"})),se=styled("img")({height:"auto",width:"auto",verticalAlign:"top"}),de=styled("div")({display:"flex",flexDirection:"column",justifyContent:"center"}),le=styled("div")({display:"flex",height:"0.8rem",alignItems:"center",width:"8.5rem"}),ce=styled(Ve)(({theme:e,showWarning:o,disabled:t})=>({color:o?e.palette.common.red:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"4.5rem",height:"0.9rem",border:"none",outline:"none",textAlign:"right",padding:0,"&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},backgroundColor:"transparent",alignSelf:"flex-end","&::placeholder":{color:e.palette.grey.A400},...t&&{opacity:.3}})),pe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"5.2rem",border:"none",outline:"none",padding:0,margin:0,paddingLeft:16,textAlign:"right","&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},alignSelf:"center"})),I=styled("p")(({theme:e,showWarning:o,showBottomPadding:t,autoMargin:i})=>({color:o?e.palette.common.red:e.palette.grey[700],fontSize:"0.625rem",fontWeight:500,padding:0,margin:0,height:t?"0.43rem":"auto",...t&&{lineHeight:"0.625",leadingTrim:"both",paddingBottom:"0.31rem"},...i&&{paddingBottom:"0.43rem",lineHeight:"0.625"}})),qe=styled("div")({display:"flex"}),v=styled(qe)(({limited:e,paddingTop:o,marginRightAuto:t})=>({paddingRight:"0.5rem",alignItems:"center",cursor:"pointer",...t&&{marginRight:"auto"},...e&&{width:"3rem"},...o&&{paddingTop:"0.31rem"}})),A=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:500,margin:0,padding:0,textTransform:"capitalize",paddingRight:"0.25rem",paddingLeft:"0.2rem",lineHeight:"0.865"})),me=styled("div")({width:0,height:0}),ue=styled(ee)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"0.25rem"}})),F=styled("div")(({theme:e,disabled:o,isRefundInProcess:t,warning:i,isHighlighted:a})=>({borderRadius:"0.3rem",backgroundColor:e.palette.common.white,border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,width:"2rem",height:"2rem",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",pointerEvents:o?"none":"auto",transition:"all 0.2s ease-in-out","&:hover":{border:`1px solid ${i?e.palette.common.red:e.palette.info.dark}`},...a&&{border:`1px solid ${e.palette.info.dark}`},...o&&{opacity:.3}})),O=styled("img")(()=>({width:"0.85rem",height:"0.85rem"})),ge=styled(ee)(({theme:e})=>({backgroundColor:"transparent",boxShadow:e.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem"}})),fe=styled("div")(({showDaysMenu:e})=>({height:e?"4.5rem":"auto"})),he=styled("div")(({theme:e})=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[100]}`,maxWidth:"9.25rem",height:"2.75rem",padding:"0.5rem",cursor:"pointer",gap:"0.31rem",flexDirection:"column",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:`0px 0px 16px 0px ${alpha(e.palette.common.black,.13)}`}})),ye=styled("img")(({spaceFromBottom:e,currencyPadding:o})=>({height:"0.4rem",width:"0.6rem",cursor:"pointer",marginBottom:e||o?"0":"auto",verticalAlign:"middle",...e&&{marginTop:"2px"}}));var Qe=({selectedCurrency:e,option:o,closeDropdown:t,handleSelectOption:i})=>{let{t:a$1}=useTranslation();return jsxs(he,{onClick:()=>{i&&i(o.value,o?.currency),t();},children:[jsx(I,{showBottomPadding:true,showWarning:false,children:a$1(o.name)}),jsxs(le,{children:[jsxs(v,{marginRightAuto:true,children:[jsx(a,{currencyCode:o?.currency??e,width:"0.76rem"}),jsx(A,{children:o?.currency??e})]}),jsx(pe,{showWarning:false,children:Oa(o.value||0,o?.currency??e)})]})]})};function Xe({menuAnchor:e,showDropDown:o,selectedCurrency:t,options:i,closeDropdown:a,handleSelectOption:u}){return i.length<=1?null:jsx(ge,{open:o,anchorEl:e,anchorOrigin:{vertical:18,horizontal:-76},style:{backgroundColor:"transparent",zIndex:4e3,padding:0,margin:0},onClose:a,children:jsx(fe,{children:i.map(g=>jsx(Fragment,{children:Qe({selectedCurrency:t,option:g,closeDropdown:a,handleSelectOption:u})}))})})}var L=Xe;function eo({showWarning:e,selectedCurrency:o,onAmountChange:t,amount:i,currencyConfig:a$3,toggleDropDown:u,showDropDown:g,showDropdownIcon:M,disabled:b,isLoading:f}){let{t:h}=useTranslation(),y=useRef(null),C=()=>{y.current&&y.current.click();};return jsxs(Fragment,{children:[jsxs(de,{children:[jsx(I,{showBottomPadding:true,showWarning:e,children:h("amount")}),jsxs(v,{limited:true,paddingTop:true,onClick:C,children:[jsx(a,{currencyCode:o,width:"0.76rem"}),jsx(A,{children:jsx(a$1,{currency:o})}),!e&&M&&jsx(ye,{src:g?Vc:Uc,alt:"drop-down icon",currencyPadding:true})]})]}),jsx(me,{ref:y,onClick:u}),f?jsx(a$2,{variant:"text",width:"100%",height:"100%"}):jsx(ce,{disabled:b,placeholder:a$3[o]?"0.000":"0.00",onValueChange:t,value:i,decimalsLimit:a$3[o]??2,showWarning:e||false,decimalScale:a$3[o]??2,autoFocus:true})]})}var z=eo;function ao({anchorEl:e,initialAmount:o,options:t,onConfirm:i,handleClose:a,currency:u,isCheckMarkHighlighted:g}){let M=Jc(useId(),"action-menu"),{t:b}=useTranslation(),[f,h]=useState(o?.toString()),[y,C]=useState(),[m,k]=useState(""),be=useRef(null),[R,E]=useState(false),[c,xe]=useState(u),B=false,[Se,De]=useState(false),[Ie,N]=useState(Lc),[ve,j]=useState(Kc),Ae=useRef(),Me=()=>{C(void 0),E(false);};useEffect(()=>{Ae.current?.focus();},[Se]);let ke=()=>{Me(),De(r=>!r);},Re=!!e,Ee=r=>{E(x=>!x),C(r.currentTarget);},We=t?.find(r=>r.currency===c)?.value,Pe=Oa(We||0,c),Te=`${b("maxAllowed")} ${Pe}`,Fe=`${b("minAllowed")} ${Pa(.1,c||"KWD")}`,Oe=r=>{Number.isNaN(Number(r))&&h("0"),parseFloat(r||"0")>o?k(Te):parseFloat(r||"0")<.1&&r!==void 0?k(Fe):k(""),h(r);},He=(r,x)=>{let Ke=Pa(r||0,x||"KWD");h(Ke),xe(x||c);},G=r=>{C(void 0),E(false),a(r);},Le=()=>{j(Mc);},$e=()=>{j(Kc);},K=r=>{G(r);},ze=()=>{G();},Be=()=>{N(_d);},Ne=()=>{N(Lc);},je=()=>{i?.(Number(f),c),K();},Ge=!!m||!f;return createPortal(jsx(ue,{id:M,"data-testid":"ActionMenu",open:Re,anchorEl:e,style:{backgroundColor:"transparent",zIndex:3e3},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",anchorOrigin:{vertical:"top",horizontal:-234},ref:be,onClose:r=>{K(r);},children:jsxs(oe,{showWarning:!!m,children:[jsxs(ne,{children:[jsxs(re,{showWarning:!!m,showDropDown:R,children:[jsx(z,{showWarning:!!m,selectedCurrency:c,onAmountChange:Oe,amount:f,currencyConfig:Na,toggleDropDown:Ee,showDropDown:!R,showDropdownIcon:(t?.length||0)>1}),jsx(L,{showDropDown:R,menuAnchor:y,selectedCurrency:c,closeDropdown:ke,options:t??[],handleSelectOption:He})]}),!!m&&jsxs(ie,{children:[jsx(se,{src:Jc$1,alt:"info"}),jsx(ae,{children:m})]})]}),jsxs(te,{children:[jsx(F,{onMouseLeave:Ne,onMouseEnter:Be,warning:true,role:"button",onClick:ze,children:jsx(O,{isRefundInProcess:B,src:Ie,alt:"Cross icon"})}),jsx(F,{onMouseLeave:$e,onMouseEnter:Le,isRefundInProcess:B,disabled:Ge,role:"button",onClick:je,isHighlighted:g,children:jsx(O,{src:ve,alt:"Check icon"})})]})]})}),document.body)}var we=ao;var Bo=we;export{L as a,z as b,Bo as c};
1
+ import {a as a$2}from'./chunk-Q2UYJK5B.js';import {a as a$1}from'./chunk-MQVVEXA4.js';import {a}from'./chunk-C4XKK3VK.js';import {Jc,Oa,Pa,Na}from'./chunk-JPXKUMRX.js';import {Vc,Uc,Lc,Kc,Jc as Jc$1,Mc,_d}from'./chunk-DSHV2G5D.js';import {useRef,useId,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {createPortal}from'react-dom';import {styled,alpha}from'@mui/material';import ee from'@mui/material/Popover';import Ve from'react-currency-input-field';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var oe=styled("div")(({showWarning:e})=>({display:"flex",gap:"0.25rem",justifyContent:"flex-start",alignItems:"flex-start",padding:"0.25rem",borderRadius:"0.25rem",width:"14.25rem",minHeight:e?"3.6rem":"2.5rem"})),ne=styled("div")(()=>({display:"flex",flexDirection:"column",width:"100%"})),te=styled("div")(()=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",flex:1})),re=styled("div")(({theme:e,showWarning:o,showDropDown:t})=>({height:"2rem",border:o?`1px solid ${e.palette.common.red}24`:t?`1px solid ${e.palette.info.dark}`:`1px solid ${e.palette.grey[100]}`,borderRadius:o?"0.25rem 0.25rem 0rem 0rem":"0.25rem",display:"flex",alignItems:"center",justifyContent:"space-between",paddingRight:"0.5rem",paddingLeft:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",margin:0,zIndex:4e3,...t&&{boxShadow:`0px 0px 4px 0px ${e.palette.info.dark}80`}})),ie=styled("div")(({theme:e})=>({height:"1.1rem",borderRadius:"0rem 0rem 0.25rem 0.25rem",display:"flex",justifyContent:"flex-start",margin:0,alignItems:"center",background:e.palette.background.gradient.error,paddingLeft:"0.5rem"})),ae=styled("p")(({theme:e})=>({color:e.palette.common.red,fontSize:"0.62rem",fontWeight:400,fontFamily:"Lato",padding:0,margin:0,paddingLeft:"0.25rem"})),se=styled("img")({height:"auto",width:"auto",verticalAlign:"top"}),de=styled("div")({display:"flex",flexDirection:"column",justifyContent:"center"}),le=styled("div")({display:"flex",height:"0.8rem",alignItems:"center",width:"8.5rem"}),ce=styled(Ve)(({theme:e,showWarning:o,disabled:t})=>({color:o?e.palette.common.red:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"4.5rem",height:"0.9rem",border:"none",outline:"none",textAlign:"right",padding:0,"&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},backgroundColor:"transparent",alignSelf:"flex-end","&::placeholder":{color:e.palette.grey.A400},...t&&{opacity:.3}})),pe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"5.2rem",border:"none",outline:"none",padding:0,margin:0,paddingLeft:16,textAlign:"right","&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},alignSelf:"center"})),I=styled("p")(({theme:e,showWarning:o,showBottomPadding:t,autoMargin:i})=>({color:o?e.palette.common.red:e.palette.grey[700],fontSize:"0.625rem",fontWeight:500,padding:0,margin:0,height:t?"0.43rem":"auto",...t&&{lineHeight:"0.625",leadingTrim:"both",paddingBottom:"0.31rem"},...i&&{paddingBottom:"0.43rem",lineHeight:"0.625"}})),qe=styled("div")({display:"flex"}),v=styled(qe)(({limited:e,paddingTop:o,marginRightAuto:t})=>({paddingRight:"0.5rem",alignItems:"center",cursor:"pointer",...t&&{marginRight:"auto"},...e&&{width:"3rem"},...o&&{paddingTop:"0.31rem"}})),A=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:500,margin:0,padding:0,textTransform:"capitalize",paddingRight:"0.25rem",paddingLeft:"0.2rem",lineHeight:"0.865"})),me=styled("div")({width:0,height:0}),ue=styled(ee)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"0.25rem"}})),F=styled("div")(({theme:e,disabled:o,isRefundInProcess:t,warning:i,isHighlighted:a})=>({borderRadius:"0.3rem",backgroundColor:e.palette.common.white,border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,width:"2rem",height:"2rem",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",pointerEvents:o?"none":"auto",transition:"all 0.2s ease-in-out","&:hover":{border:`1px solid ${i?e.palette.common.red:e.palette.info.dark}`},...a&&{border:`1px solid ${e.palette.info.dark}`},...o&&{opacity:.3}})),O=styled("img")(()=>({width:"0.85rem",height:"0.85rem"})),ge=styled(ee)(({theme:e})=>({backgroundColor:"transparent",boxShadow:e.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem"}})),fe=styled("div")(({showDaysMenu:e})=>({height:e?"4.5rem":"auto"})),he=styled("div")(({theme:e})=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[100]}`,maxWidth:"9.25rem",height:"2.75rem",padding:"0.5rem",cursor:"pointer",gap:"0.31rem",flexDirection:"column",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:`0px 0px 16px 0px ${alpha(e.palette.common.black,.13)}`}})),ye=styled("img")(({spaceFromBottom:e,currencyPadding:o})=>({height:"0.4rem",width:"0.6rem",cursor:"pointer",marginBottom:e||o?"0":"auto",verticalAlign:"middle",...e&&{marginTop:"2px"}}));var Qe=({selectedCurrency:e,option:o,closeDropdown:t,handleSelectOption:i})=>{let{t:a$1}=useTranslation();return jsxs(he,{onClick:()=>{i&&i(o.value,o?.currency),t();},children:[jsx(I,{showBottomPadding:true,showWarning:false,children:a$1(o.name)}),jsxs(le,{children:[jsxs(v,{marginRightAuto:true,children:[jsx(a,{currencyCode:o?.currency??e,width:"0.76rem"}),jsx(A,{children:o?.currency??e})]}),jsx(pe,{showWarning:false,children:Oa(o.value||0,o?.currency??e)})]})]})};function Xe({menuAnchor:e,showDropDown:o,selectedCurrency:t,options:i,closeDropdown:a,handleSelectOption:u}){return i.length<=1?null:jsx(ge,{open:o,anchorEl:e,anchorOrigin:{vertical:18,horizontal:-76},style:{backgroundColor:"transparent",zIndex:4e3,padding:0,margin:0},onClose:a,children:jsx(fe,{children:i.map(g=>jsx(Fragment,{children:Qe({selectedCurrency:t,option:g,closeDropdown:a,handleSelectOption:u})}))})})}var L=Xe;function eo({showWarning:e,selectedCurrency:o,onAmountChange:t,amount:i,currencyConfig:a$3,toggleDropDown:u,showDropDown:g,showDropdownIcon:M,disabled:b,isLoading:f}){let{t:h}=useTranslation(),y=useRef(null),C=()=>{y.current&&y.current.click();};return jsxs(Fragment,{children:[jsxs(de,{children:[jsx(I,{showBottomPadding:true,showWarning:e,children:h("amount")}),jsxs(v,{limited:true,paddingTop:true,onClick:C,children:[jsx(a,{currencyCode:o,width:"0.76rem"}),jsx(A,{children:jsx(a$1,{currency:o})}),!e&&M&&jsx(ye,{src:g?Vc:Uc,alt:"drop-down icon",currencyPadding:true})]})]}),jsx(me,{ref:y,onClick:u}),f?jsx(a$2,{variant:"text",width:"100%",height:"100%"}):jsx(ce,{disabled:b,placeholder:a$3[o]?"0.000":"0.00",onValueChange:t,value:i,decimalsLimit:a$3[o]??2,showWarning:e||false,decimalScale:a$3[o]??2,autoFocus:true})]})}var z=eo;function ao({anchorEl:e,initialAmount:o,options:t,onConfirm:i,handleClose:a,currency:u,isCheckMarkHighlighted:g}){let M=Jc(useId(),"action-menu"),{t:b}=useTranslation(),[f,h]=useState(o?.toString()),[y,C]=useState(),[m,k]=useState(""),be=useRef(null),[R,E]=useState(false),[c,xe]=useState(u),B=false,[Se,De]=useState(false),[Ie,N]=useState(Lc),[ve,j]=useState(Kc),Ae=useRef(),Me=()=>{C(void 0),E(false);};useEffect(()=>{Ae.current?.focus();},[Se]);let ke=()=>{Me(),De(r=>!r);},Re=!!e,Ee=r=>{E(x=>!x),C(r.currentTarget);},We=t?.find(r=>r.currency===c)?.value,Pe=Oa(We||0,c),Te=`${b("maxAllowed")} ${Pe}`,Fe=`${b("minAllowed")} ${Pa(.1,c||"KWD")}`,Oe=r=>{Number.isNaN(Number(r))&&h("0"),parseFloat(r||"0")>o?k(Te):parseFloat(r||"0")<.1&&r!==void 0?k(Fe):k(""),h(r);},He=(r,x)=>{let Ke=Pa(r||0,x||"KWD");h(Ke),xe(x||c);},G=r=>{C(void 0),E(false),a(r);},Le=()=>{j(Mc);},$e=()=>{j(Kc);},K=r=>{G(r);},ze=()=>{G();},Be=()=>{N(_d);},Ne=()=>{N(Lc);},je=()=>{i?.(Number(f),c),K();},Ge=!!m||!f;return createPortal(jsx(ue,{id:M,"data-testid":"ActionMenu",open:Re,anchorEl:e,style:{backgroundColor:"transparent",zIndex:3e3},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",anchorOrigin:{vertical:"top",horizontal:-234},ref:be,onClose:r=>{K(r);},children:jsxs(oe,{showWarning:!!m,children:[jsxs(ne,{children:[jsxs(re,{showWarning:!!m,showDropDown:R,children:[jsx(z,{showWarning:!!m,selectedCurrency:c,onAmountChange:Oe,amount:f,currencyConfig:Na,toggleDropDown:Ee,showDropDown:!R,showDropdownIcon:(t?.length||0)>1}),jsx(L,{showDropDown:R,menuAnchor:y,selectedCurrency:c,closeDropdown:ke,options:t??[],handleSelectOption:He})]}),!!m&&jsxs(ie,{children:[jsx(se,{src:Jc$1,alt:"info"}),jsx(ae,{children:m})]})]}),jsxs(te,{children:[jsx(F,{onMouseLeave:Ne,onMouseEnter:Be,warning:true,role:"button",onClick:ze,children:jsx(O,{isRefundInProcess:B,src:Ie,alt:"Cross icon"})}),jsx(F,{onMouseLeave:$e,onMouseEnter:Le,isRefundInProcess:B,disabled:Ge,role:"button",onClick:je,isHighlighted:g,children:jsx(O,{src:ve,alt:"Check icon"})})]})]})}),document.body)}var we=ao;var Bo=we;export{L as a,z as b,Bo as c};
@@ -1 +1 @@
1
- import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-QWAZOXVA.js';import {jb}from'./chunk-DSHV2G5D.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Jc(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:jb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
1
+ import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-JPXKUMRX.js';import {jb}from'./chunk-DSHV2G5D.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Jc(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:jb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-QWAZOXVA.js';import {useId,useMemo,useEffect}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.info.dark,cursor:"pointer",fontSize:"9px",textDecoration:"underline"}));var i=window.URL||window.webkitURL,b=({data:e,isLoading:r,isError:l})=>{let p=Jc(useId(),"open-file-in-new-tab"),o=useMemo(()=>e?i.createObjectURL(e):"",[e]);useEffect(()=>()=>{o&&i.revokeObjectURL(o);},[o]);let a=()=>{o&&window.open(o,"_blank");};return r||l?null:jsx(t,{id:p,"data-testid":"OpenFileInNewTab",onClick:a,children:"View"})},c=b;export{c as a};
1
+ import {Jc}from'./chunk-JPXKUMRX.js';import {useId,useMemo,useEffect}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.info.dark,cursor:"pointer",fontSize:"9px",textDecoration:"underline"}));var i=window.URL||window.webkitURL,b=({data:e,isLoading:r,isError:l})=>{let p=Jc(useId(),"open-file-in-new-tab"),o=useMemo(()=>e?i.createObjectURL(e):"",[e]);useEffect(()=>()=>{o&&i.revokeObjectURL(o);},[o]);let a=()=>{o&&window.open(o,"_blank");};return r||l?null:jsx(t,{id:p,"data-testid":"OpenFileInNewTab",onClick:a,children:"View"})},c=b;export{c as a};