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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/build/_chunks/{chunk-5H7WMTMR.js → chunk-2ZQWIYKE.js} +1 -1
  2. package/build/_chunks/{chunk-I5KEW75Q.js → chunk-44OIHCXG.js} +1 -1
  3. package/build/_chunks/{chunk-RQS3IG3X.js → chunk-4IN4MNIL.js} +1 -1
  4. package/build/_chunks/{chunk-U6FHSFDK.js → chunk-4METKSOV.js} +1 -1
  5. package/build/_chunks/{chunk-4CO35TOY.js → chunk-4N5L3C7E.js} +1 -1
  6. package/build/_chunks/{chunk-PC45PNLX.js → chunk-55Y5JZSW.js} +1 -1
  7. package/build/_chunks/{chunk-L3H7ON2F.js → chunk-5CVP7UHB.js} +1 -1
  8. package/build/_chunks/{chunk-G2OWSFMR.js → chunk-6HPHRTSG.js} +1 -1
  9. package/build/_chunks/{chunk-DRCLG5VT.js → chunk-6TBC5ZFW.js} +1 -1
  10. package/build/_chunks/{chunk-5JBBLGV3.js → chunk-6YBJRXXJ.js} +1 -1
  11. package/build/_chunks/{chunk-K26V7ISU.js → chunk-7B2FRRRI.js} +1 -1
  12. package/build/_chunks/{chunk-HE3FMLQY.js → chunk-7ECPGY56.js} +1 -1
  13. package/build/_chunks/{chunk-BK4QE2XY.js → chunk-7Q5JHJMB.js} +1 -1
  14. package/build/_chunks/{chunk-IN4TI6C5.js → chunk-A5BRE7MI.js} +1 -1
  15. package/build/_chunks/{chunk-ELKH5INT.js → chunk-A7BYIGKD.js} +1 -1
  16. package/build/_chunks/{chunk-AXVYPNDS.js → chunk-A7IDM5R6.js} +1 -1
  17. package/build/_chunks/{chunk-S3WB7BAM.js → chunk-AEF4XWQU.js} +1 -1
  18. package/build/_chunks/{chunk-GONBJ7T4.js → chunk-AG7327OT.js} +1 -1
  19. package/build/_chunks/{chunk-7LQ7FNTX.js → chunk-AHKZYNFC.js} +1 -1
  20. package/build/_chunks/{chunk-EUJTQSJL.js → chunk-AJVZK5T5.js} +1 -1
  21. package/build/_chunks/{chunk-OIVTFRJE.js → chunk-ATSYOVOS.js} +1 -1
  22. package/build/_chunks/{chunk-BPMC6UFW.js → chunk-AW3ILDEO.js} +1 -1
  23. package/build/_chunks/{chunk-4GLLOAFY.js → chunk-AWJMELRN.js} +1 -1
  24. package/build/_chunks/{chunk-SWILNQW4.js → chunk-BIRJZLQQ.js} +1 -1
  25. package/build/_chunks/{chunk-IQ2H33GE.js → chunk-C2E6BXXL.js} +1 -1
  26. package/build/_chunks/{chunk-WVGNLRZQ.js → chunk-COAYA7GT.js} +1 -1
  27. package/build/_chunks/{chunk-BJ3Z2WFR.js → chunk-CW3PX3MJ.js} +1 -1
  28. package/build/_chunks/{chunk-E6LKOOFL.js → chunk-D6CBA46N.js} +1 -1
  29. package/build/_chunks/{chunk-6X7LS7KK.js → chunk-DHR22HF5.js} +1 -1
  30. package/build/_chunks/{chunk-HQI3NKYJ.js → chunk-DIFTS5M3.js} +1 -1
  31. package/build/_chunks/{chunk-TZFVDVTZ.js → chunk-DU4WILJE.js} +1 -1
  32. package/build/_chunks/{chunk-DU6IKIQE.js → chunk-DWELXSQ2.js} +1 -1
  33. package/build/_chunks/{chunk-JDGHZNKY.js → chunk-DWEUYV7O.js} +1 -1
  34. package/build/_chunks/{chunk-P7ECTYML.js → chunk-E35LKQ6G.js} +1 -1
  35. package/build/_chunks/{chunk-DNNN35L5.js → chunk-EE7K4JK2.js} +1 -1
  36. package/build/_chunks/{chunk-UK456O6R.js → chunk-EGGEELUP.js} +1 -1
  37. package/build/_chunks/{chunk-G4YDGHDJ.js → chunk-EGIAXPM6.js} +1 -1
  38. package/build/_chunks/{chunk-6KXK4BO7.js → chunk-EMXCLBWT.js} +1 -1
  39. package/build/_chunks/{chunk-J35OWNMC.js → chunk-ER66NQ2X.js} +1 -1
  40. package/build/_chunks/{chunk-HTHM56FJ.js → chunk-EVDEPVIW.js} +1 -1
  41. package/build/_chunks/{chunk-5LUJKHHC.js → chunk-EVJ7I7KT.js} +1 -1
  42. package/build/_chunks/{chunk-ZI75N7BZ.js → chunk-EWAOFKBQ.js} +1 -1
  43. package/build/_chunks/{chunk-B6Q43W42.js → chunk-F5A4P7NM.js} +1 -1
  44. package/build/_chunks/{chunk-MFCHF5BK.js → chunk-F5YEURPO.js} +1 -1
  45. package/build/_chunks/{chunk-LUU7CTOO.js → chunk-FIXHFGQM.js} +1 -1
  46. package/build/_chunks/{chunk-I6PM7KFE.js → chunk-FJNBLAP6.js} +1 -1
  47. package/build/_chunks/{chunk-XJEXIR7N.js → chunk-FLYJ436H.js} +1 -1
  48. package/build/_chunks/{chunk-DQVP4KZV.js → chunk-GKHOITZE.js} +1 -1
  49. package/build/_chunks/{chunk-5ARDDYXJ.js → chunk-HC7WHE7M.js} +1 -1
  50. package/build/_chunks/{chunk-PK3VKOBG.js → chunk-HCO2FZKF.js} +1 -1
  51. package/build/_chunks/{chunk-P2M3F4LT.js → chunk-HJFHOPWU.js} +1 -1
  52. package/build/_chunks/{chunk-AJB47VOM.js → chunk-I7BXAQZS.js} +1 -1
  53. package/build/_chunks/{chunk-6AYUI5GV.js → chunk-ITRIODTY.js} +1 -1
  54. package/build/_chunks/{chunk-MOUYRKQ3.js → chunk-J2VRPJRB.js} +1 -1
  55. package/build/_chunks/{chunk-4VFSZWB2.js → chunk-JKOFVMQP.js} +1 -1
  56. package/build/_chunks/{chunk-LK32TVZ3.js → chunk-JM7JGI5D.js} +1 -1
  57. package/build/_chunks/{chunk-L5JCONCT.js → chunk-JPSWQQN6.js} +1 -1
  58. package/build/_chunks/{chunk-QFXOBSXW.js → chunk-KLJYL5XA.js} +1 -1
  59. package/build/_chunks/{chunk-KZBOCKP5.js → chunk-KNP2Q2XT.js} +1 -1
  60. package/build/_chunks/{chunk-B76YFNBT.js → chunk-L5W3FQGI.js} +1 -1
  61. package/build/_chunks/{chunk-UB7HUWAQ.js → chunk-L7KNDQIN.js} +1 -1
  62. package/build/_chunks/{chunk-OUERY42D.js → chunk-LQCRTVTV.js} +1 -1
  63. package/build/_chunks/{chunk-WWQP6V2S.js → chunk-LYEN4LAJ.js} +1 -1
  64. package/build/_chunks/{chunk-AC4KAKGY.js → chunk-MEWGN3RQ.js} +1 -1
  65. package/build/_chunks/{chunk-2I5NAVTK.js → chunk-MH3PHXU4.js} +1 -1
  66. package/build/_chunks/{chunk-IUCNIU4U.js → chunk-MIZ2W4YF.js} +1 -1
  67. package/build/_chunks/{chunk-ZNSKASYS.js → chunk-MW3TIUDF.js} +1 -1
  68. package/build/_chunks/{chunk-ZVG6L7OA.js → chunk-NCB4ZE2Q.js} +1 -1
  69. package/build/_chunks/{chunk-CFYVC5K6.js → chunk-NUB35BS5.js} +1 -1
  70. package/build/_chunks/{chunk-5T3HOXFP.js → chunk-OP35J26Q.js} +1 -1
  71. package/build/_chunks/{chunk-2AVUNWTY.js → chunk-OTQLFUDS.js} +1 -1
  72. package/build/_chunks/{chunk-BYJ2XLTW.js → chunk-P37RYOJW.js} +1 -1
  73. package/build/_chunks/{chunk-XBFQH3GZ.js → chunk-P4TQ24MF.js} +1 -1
  74. package/build/_chunks/{chunk-5FY5WEAA.js → chunk-PB3ZRY6U.js} +1 -1
  75. package/build/_chunks/{chunk-MN5KDIJ4.js → chunk-PKN6JRU3.js} +1 -1
  76. package/build/_chunks/{chunk-PYS2U3OD.js → chunk-PRALNONH.js} +1 -1
  77. package/build/_chunks/{chunk-4A4VJPND.js → chunk-PWN3QZBX.js} +1 -1
  78. package/build/_chunks/{chunk-PPEV33QB.js → chunk-QRIVUSHJ.js} +1 -1
  79. package/build/_chunks/{chunk-VSVZKK4J.js → chunk-QVU7E6R3.js} +1 -1
  80. package/build/_chunks/{chunk-A4HTULOP.js → chunk-R5LCSECF.js} +1 -1
  81. package/build/_chunks/{chunk-ZCJKWR2O.js → chunk-RENOZ7NM.js} +1 -1
  82. package/build/_chunks/{chunk-JDWCL7GJ.js → chunk-SNEXYGFV.js} +1 -1
  83. package/build/_chunks/{chunk-HBEH35LA.js → chunk-SOJRPME6.js} +1 -1
  84. package/build/_chunks/{chunk-KKIMVGFE.js → chunk-U3KQLP32.js} +1 -1
  85. package/build/_chunks/{chunk-PHN2UNJA.js → chunk-UC66CU45.js} +1 -1
  86. package/build/_chunks/{chunk-BDKEJBMX.js → chunk-UDTRZUQL.js} +1 -1
  87. package/build/_chunks/{chunk-GVNRRGWG.js → chunk-UHUT65RB.js} +1 -1
  88. package/build/_chunks/{chunk-KRGJ5FIM.js → chunk-V4REQ4ZP.js} +1 -1
  89. package/build/_chunks/{chunk-LVM3MTOA.js → chunk-V5UEYSM5.js} +1 -1
  90. package/build/_chunks/{chunk-KSPGIGIC.js → chunk-VBDBPJ6A.js} +1 -1
  91. package/build/_chunks/{chunk-ESJCK6HW.js → chunk-VRAGDMAQ.js} +1 -1
  92. package/build/_chunks/{chunk-27NBJWWB.js → chunk-VRMS7VG4.js} +1 -1
  93. package/build/_chunks/{chunk-ORXU3VCN.js → chunk-WH457HQP.js} +1 -1
  94. package/build/_chunks/{chunk-XLWWA6CJ.js → chunk-WL4B2ZSK.js} +1 -1
  95. package/build/_chunks/{chunk-WDGLJVOT.js → chunk-WPGDLFWS.js} +1 -1
  96. package/build/_chunks/{chunk-LWXV6NHK.js → chunk-WS7EHNFE.js} +1 -1
  97. package/build/_chunks/{chunk-VW75KIKI.js → chunk-X6OKY5JJ.js} +1 -1
  98. package/build/_chunks/{chunk-SFEYZ6UC.js → chunk-X774JJV4.js} +1 -1
  99. package/build/_chunks/{chunk-FCBDFBYS.js → chunk-XUOSECWP.js} +1 -1
  100. package/build/_chunks/{chunk-6DR4DXYQ.js → chunk-YWMPDGZ3.js} +1 -1
  101. package/build/_chunks/{chunk-6Q3JVULI.js → chunk-ZDUBBHB5.js} +1 -1
  102. package/build/_chunks/{chunk-BW4IWQUI.js → chunk-ZHXCRQM2.js} +1 -1
  103. package/build/_chunks/{chunk-IG2EYCRZ.js → chunk-ZONG4FCE.js} +1 -1
  104. package/build/_chunks/chunk-ZXAC3YAM.js +1 -0
  105. package/build/components/Accordion/index.js +1 -1
  106. package/build/components/AccountDropdown/index.js +1 -1
  107. package/build/components/ActionMenu/index.js +1 -1
  108. package/build/components/ActionsDropdownMenu/index.js +1 -1
  109. package/build/components/ActiveFilterChip/index.js +1 -1
  110. package/build/components/ActivityAreaChart/index.js +1 -1
  111. package/build/components/Amount/index.js +1 -1
  112. package/build/components/AmountConversionFilter/index.js +1 -1
  113. package/build/components/AmountInput/index.js +1 -1
  114. package/build/components/AmountSlider/index.js +1 -1
  115. package/build/components/AmountStatusChip/index.js +1 -1
  116. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  117. package/build/components/AppServices/index.js +1 -1
  118. package/build/components/AppServicesBar/index.js +1 -1
  119. package/build/components/AppWindowWrapper/index.js +1 -1
  120. package/build/components/AuthenticationTypeChip/index.js +1 -1
  121. package/build/components/Autocomplete/index.js +1 -1
  122. package/build/components/BetaBanner/index.js +1 -1
  123. package/build/components/BrandLogo/index.js +1 -1
  124. package/build/components/Button/index.js +1 -1
  125. package/build/components/Calender/index.js +1 -1
  126. package/build/components/CardEmptyState/index.js +1 -1
  127. package/build/components/Checkbox/index.js +1 -1
  128. package/build/components/Chip/index.js +1 -1
  129. package/build/components/ChipStack/index.js +1 -1
  130. package/build/components/CircularProgressWithLabel/index.js +1 -1
  131. package/build/components/Collapse/index.js +1 -1
  132. package/build/components/ColorPicker/index.js +1 -1
  133. package/build/components/ColumnViews/index.js +1 -1
  134. package/build/components/ConfirmDialog/index.js +1 -1
  135. package/build/components/CopyImage/index.js +1 -1
  136. package/build/components/CountBadge/index.js +1 -1
  137. package/build/components/CountryFilter/index.js +1 -1
  138. package/build/components/CountryFlag/index.js +1 -1
  139. package/build/components/CurrencyAmount/index.js +1 -1
  140. package/build/components/CurrencyFilter/index.js +1 -1
  141. package/build/components/CurrencySymbol/index.js +1 -1
  142. package/build/components/CustomBackdrop/index.js +1 -1
  143. package/build/components/Customer/index.js +1 -1
  144. package/build/components/DateFilter/index.js +1 -1
  145. package/build/components/DeviceIcon/index.js +1 -1
  146. package/build/components/Dialog/index.js +1 -1
  147. package/build/components/Discount/index.js +1 -1
  148. package/build/components/DisplayAmount/index.js +1 -1
  149. package/build/components/Dropdown2/index.js +1 -1
  150. package/build/components/DropdownButton/index.js +1 -1
  151. package/build/components/DropdownMenu/index.js +1 -1
  152. package/build/components/Error/index.js +1 -1
  153. package/build/components/ErrorToast/index.js +1 -1
  154. package/build/components/ExpandableSideBar/index.js +1 -1
  155. package/build/components/FieldFeedback/index.js +1 -1
  156. package/build/components/FileInputPreview/index.js +1 -1
  157. package/build/components/FilePreview/index.js +1 -1
  158. package/build/components/FileUpload/index.js +1 -1
  159. package/build/components/FileUploader/index.js +1 -1
  160. package/build/components/FilterDropdown/index.js +1 -1
  161. package/build/components/Filters/index.js +1 -1
  162. package/build/components/FlagDetails/index.js +1 -1
  163. package/build/components/FlippingCard/index.js +1 -1
  164. package/build/components/HeatMap/index.js +1 -1
  165. package/build/components/IOSSwitch/index.js +1 -1
  166. package/build/components/Icon/index.js +1 -1
  167. package/build/components/IconWithBadge/index.js +1 -1
  168. package/build/components/Input/index.js +1 -1
  169. package/build/components/InputBase/index.js +1 -1
  170. package/build/components/InputNumber/index.js +1 -1
  171. package/build/components/Inputs/index.js +1 -1
  172. package/build/components/JSONViewer/index.js +1 -1
  173. package/build/components/LanguageDropdown/index.js +1 -1
  174. package/build/components/LazyImage/index.js +1 -1
  175. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  176. package/build/components/ListColumnFilter/index.js +1 -1
  177. package/build/components/ListHeader/index.js +1 -1
  178. package/build/components/ListLayout/index.js +1 -1
  179. package/build/components/Loader/index.js +1 -1
  180. package/build/components/MFWidgetLoader/index.js +1 -1
  181. package/build/components/MaskedText/index.js +1 -1
  182. package/build/components/Menu/index.js +1 -1
  183. package/build/components/MenuItem/index.js +1 -1
  184. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  185. package/build/components/MerchantLogo/index.js +1 -1
  186. package/build/components/MerchantsDropdown/index.js +1 -1
  187. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  188. package/build/components/MultiSelectWithSearch/index.js +1 -1
  189. package/build/components/NestedDropdown/index.js +1 -1
  190. package/build/components/NoInternet/index.js +1 -1
  191. package/build/components/OpenFileInNewTab/index.js +1 -1
  192. package/build/components/PartnersFilter/index.js +1 -1
  193. package/build/components/PaymentSourceFilter/index.js +1 -1
  194. package/build/components/PhoneFilter/index.js +1 -1
  195. package/build/components/ProgressBar/index.js +1 -1
  196. package/build/components/ProgressRing/index.js +1 -1
  197. package/build/components/RFH/index.js +1 -1
  198. package/build/components/RadioButton/index.js +1 -1
  199. package/build/components/RadioGroup/index.js +1 -1
  200. package/build/components/RangeCalender/index.js +1 -1
  201. package/build/components/ReceiptsViewer/index.js +1 -1
  202. package/build/components/ReferenceTypeFilter/index.js +1 -1
  203. package/build/components/ResizableHeightInput/index.js +1 -1
  204. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  205. package/build/components/SalesChannelFilter/index.js +1 -1
  206. package/build/components/ScrollLoader/index.js +1 -1
  207. package/build/components/SearchButton/index.js +1 -1
  208. package/build/components/SearchListInput/index.js +1 -1
  209. package/build/components/SelectDropdown/index.js +1 -1
  210. package/build/components/SelectWithSearch/index.js +1 -1
  211. package/build/components/SimpleDialog/index.js +1 -1
  212. package/build/components/Skeleton/index.js +1 -1
  213. package/build/components/Slider/index.js +1 -1
  214. package/build/components/StatusBar/index.js +1 -1
  215. package/build/components/StatusButton/index.js +1 -1
  216. package/build/components/StatusChip/index.js +1 -1
  217. package/build/components/StatusChipWithCopy/index.js +1 -1
  218. package/build/components/StatusFilter/index.js +1 -1
  219. package/build/components/StatusGroupChips/index.js +1 -1
  220. package/build/components/StatusIcons/index.js +1 -1
  221. package/build/components/StatusLabel/index.js +1 -1
  222. package/build/components/TableCells/index.js +1 -1
  223. package/build/components/TableReports/index.js +1 -1
  224. package/build/components/Timepicker/index.js +1 -1
  225. package/build/components/ToggleButtons/index.js +1 -1
  226. package/build/components/ToggleView/index.js +1 -1
  227. package/build/components/Toolbar/index.js +1 -1
  228. package/build/components/TooltipChip/index.js +1 -1
  229. package/build/components/TreeDropdown/index.js +1 -1
  230. package/build/components/VAT/index.js +1 -1
  231. package/build/components/VerificationIcon/index.js +1 -1
  232. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  233. package/build/components/VirtualTables/index.js +1 -1
  234. package/build/components/Widget/index.js +1 -1
  235. package/build/components/WindowAppIcon/index.js +1 -1
  236. package/build/components/WindowBackdrop/index.js +1 -1
  237. package/build/components/WindowSideBar/index.js +1 -1
  238. package/build/components/_v2/index.js +1 -1
  239. package/build/components/index.js +1 -1
  240. package/build/hooks/index.js +1 -1
  241. package/build/index.js +1 -1
  242. package/build/utils/date.d.ts +5 -2
  243. package/build/utils/index.js +1 -1
  244. package/package.json +1 -1
  245. package/build/_chunks/chunk-PSRI6U2B.js +0 -1
@@ -1 +1 @@
1
- import {c,b,g}from'./chunk-P2M3F4LT.js';import {a}from'./chunk-LVM3MTOA.js';import {a as a$1}from'./chunk-XLWWA6CJ.js';import {Jc}from'./chunk-OIVTFRJE.js';import {Nc,Ab,A}from'./chunk-3JUTMTQV.js';import Dt,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import ve from'@mui/material/Box';import {styled}from'@mui/material/styles';import zt from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ao from'@mui/material/InputLabel';import io from'@mui/material/MenuItem';import Vt from'@mui/material/SvgIcon';import Zt from'@mui/material/IconButton';import Xt from'@mui/material/CircularProgress';import eo from'@mui/material/FormControl';import _e from'@mui/material/Select';import Io from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Ro from'@mui/material/Input';var Ee=styled(ve)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),Re=styled(zt,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:o,hasFeedback:n,hideArrows:b,hasLabel:i,disabled:p})=>{let{borderColor:d}=c(e,o),a=n?"4px 4px 0 0":"4px",c$1=p?e.palette.grey[400]:e.palette.common.white,r=e.palette.divider;return o&&(r=d),t&&!o&&(r=e.palette.error.main),{border:`1px solid ${r}`,borderBottom:n?"none":void 0,borderRadius:a,...b&&{"& 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}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c$1,paddingTop:i?"11px":"0px",paddingBottom:i?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:i?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c$1}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:i?"flex-end":"center",alignSelf:i?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:i?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),Ae=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var We=Dt.forwardRef(({name:e,onChange:t,hasError:o,helperText:n,hideArrows:b$1,feedback:i,InputProps:p,InputLabelProps:d,label:a,placeholder:c,...r},y)=>{let h=Jc(useId(),"input-base"),S=g=>{t?.(g.target.value??"");},f=i!=null,m=b(i),l=typeof a=="string"&&a.trim().length>0?a:void 0,I=l??c,v=l&&typeof c=="string"?c:void 0;return jsxs(ve,{children:[jsx(Ee,{id:h,"data-testid":"InputBase",children:jsx(Re,{rows:1,hasError:!!o&&!f,hasFeedback:!!m,feedbackType:m?.type,hasLabel:!!I,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:r.type??"text",label:I,placeholder:v,onChange:S,InputLabelProps:d,InputProps:{disableUnderline:true,...p,sx:p?.sx},hideArrows:b$1,...r})}),m&&jsx(g,{...m}),!f&&n&&jsx(Ae,{children:n})]})});We.displayName="InputBase";var Te=We;var qt=Te;var Ne=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));Ne.displayName="DefaultClearIcon";var z=Ne;var De=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));De.displayName="DefaultSelectIcon";var $e=De;function ke({size:e=20,color:t="grey.A400",...o}){return jsx(Xt,{size:e,sx:{backgroundColor:"transparent",color:t},...o})}function Jt(e){if(e.button!==0)return;let t=e.currentTarget.closest(".MuiInputBase-root");if(!t||t.classList.contains("Mui-disabled"))return;e.preventDefault();let o=t.querySelector('.MuiSelect-select[role="combobox"]');o&&o.dispatchEvent(new MouseEvent("mousedown",{bubbles:true,cancelable:true,button:0,view:globalThis,clientX:e.clientX,clientY:e.clientY}));}function U({endAdornmentProp:e,isLoading:t,showClear:o,showMenuArrow:n,menuOpen:b,IconComponent:i,ClearIconComponent:p=z,onClear:d,onClearDefault:a}){return !(e||o||t||n)?null:jsxs(ve,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(ke,{}):null,!t&&o?jsx(Zt,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:r=>{r.preventDefault(),r.stopPropagation();},onClick:r=>{r.preventDefault(),r.stopPropagation(),d?d():a();},sx:r=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...i?{mr:2}:{},"&:hover":{backgroundColor:r.palette.action.hover},"&:focus-visible":{outline:`2px solid ${r.palette.primary.main}`,outlineOffset:1}}),children:jsx(p,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!i&&jsx(ve,{component:"span",className:`SelectBase-menuTriggerIcon${b?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,onMouseDown:Jt,children:jsx($e,{})})]})}function ne(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let o=e.id;return o!=null&&o!==""}return String(e)!==""}var ae=styled(eo)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(_e)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var ie=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),le=styled(_e,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:n})=>{let{borderColor:b}=c(e,o),i=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:i,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:i,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...o&&{border:`1px solid ${b}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),pe=styled(ve)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function lo(e,t){let{menuSearchable:o,menuSearchPlaceholder:n,...b$1}=e,{required:i,hasError:p,label:d,value:a,helperText:c,feedback:r,onChange:y,options:h,isOptionEqualToValue:S,renderOption:f,getOptionValue:m,isLoading:l,children:I,getOptionLabel:v,IconComponent:g$1,showClearIcon:x=false,ClearIconComponent:T=z,onClear:A,endAdornment:Y,inputProps:ge,open:H,onOpen:Z,onClose:J,menuHasSelectedCheckMark:be=false,...O}=b$1,ye=Jc(useId(),"select-base"),[xe,Ce]=useState(false),he=H??xe,_=useCallback((u,M)=>{M?Z?.(u):J?.(u),H===void 0&&Ce(M);},[Z,J,H]),Ie=u=>{y?.(u);},Me=()=>a==null?"":f?f(a):v?v(a):a?.label??"",Q="";a!=null&&(Q=(m?m(a):a?.id)??"");let L=!!(O.disabled||l),s=x&&ne(a,m)&&!L,P=jsx(U,{endAdornmentProp:Y,isLoading:!!l,showClear:s,showMenuArrow:!l,menuOpen:he,IconComponent:g$1,ClearIconComponent:T,onClear:A,onClearDefault:()=>y?.(null)}),C=b(r);return jsxs(pe,{children:[jsxs(ae,{id:ye,variant:"filled","data-testid":"SelectBase",required:i,children:[jsx(ao,{sx:{height:"100%"},id:`select-label-${d.trim()}`,"data-testid":"SelectBase_InputLabel",children:d}),jsx(le,{"data-testid":"SelectBase_Select",ref:t,value:Q,error:p&&!C,feedbackType:C?.type,hasFeedback:!!C,disableUnderline:true,required:i,labelId:`select-label-${d.trim()}`,id:`select-label-${d.trim()}`,renderValue:Me,...O,open:H,onOpen:u=>_(u,true),onClose:u=>_(u,false),inputProps:ge,disabled:L,IconComponent:g$1??(()=>null),endAdornment:P,children:I||h?.map(u=>{let M=S?S(u,a):u?.id===a?.id,j=(m?m(u):u?.id)??u?.label??"select-base-item";return jsxs(io,{disabled:!!u.disabled,value:(m?m(u):u?.id)??"",onClick:()=>{Ie(u);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Fe=>M?Fe.palette.action.hover:Fe.palette.common.white},children:[jsx(ve,{component:"span",sx:{flex:1,minWidth:0},children:f?f(u):u.label}),be&&M?jsx(ve,{component:"img",src:Nc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${j}`)})})]}),C?jsx(g,{...C}):jsx(ie,{children:c})]})}var Ue=Dt.forwardRef(lo);function bo({required:e,hasError:t,label:o,value:n,helperText:b$1,feedback:i,onChange:p,options:d,isOptionEqualToValue:a,renderOption:c,getOptionValue:r,isLoading:y,children:h,getOptionLabel:S,IconComponent:f,showClearIcon:m=false,ClearIconComponent:l=z,onClear:I,endAdornment:v,inputProps:g$1,open:x,onOpen:T,onClose:A,...Y},ge){let[H,Z]=useState(false),J=Jc(useId(),"select-base-multiple"),be=x??H,O=useCallback((s,k)=>{k?T?.(s):A?.(s),x===void 0&&Z(k);},[T,A,x]),ye=s=>{p?.(s);},xe=()=>{let s=n?.filter(k=>k!=null)??[];return r?s.map(r):s.map(k=>k?.id)},Ce=useMemo(()=>d?.filter(s=>n?.some(k=>{if(k==null)return false;if(a)return a(s,k);if(r){let u=r(s),M=r(k);return u===M||String(u)===String(M)}let P=s?.id,C=k?.id;return P===C||String(P)===String(C)})),[d,n,a,r]),he=()=>Ce?.map(s=>S?S(s):s.label)?.join(", "),_=!!(Y.disabled||y),Ie=m&&ne(n,r)&&!_,Q=jsx(U,{endAdornmentProp:v,isLoading:!!y,showClear:Ie,showMenuArrow:!y,menuOpen:be,IconComponent:f,ClearIconComponent:l,onClear:I,onClearDefault:()=>p?.([])}),L=b(i);return jsxs(pe,{children:[jsxs(ae,{id:J,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(ao,{id:`select-label-${o.trim()}`,"data-testid":"SelectBase_InputLabel",children:o}),jsx(le,{multiple:true,"data-testid":"SelectBase_Select",ref:ge,value:xe()??"",error:t&&!L,feedbackType:L?.type,hasFeedback:!!L,disableUnderline:true,required:e,labelId:`select-label-${o.trim()}`,id:`select-label-${o.trim()}`,renderValue:he,...Y,open:x,onOpen:s=>O(s,true),onClose:s=>O(s,false),inputProps:g$1,disabled:_,IconComponent:f??(()=>null),endAdornment:Q,onChange:s=>{let P=s.target.value?.map(C=>d?.find(u=>{if(r){let j=r(u);return j===C||String(j)===String(C)}let M=u?.id;return M===C||String(M)===String(C)}));p?.(P?.filter(C=>C!=null)??[]);},children:h||d?.map((s,k)=>{let P=a?a(s,n):s?.id===n?.id;return jsx(io,{value:(r?r(s):s?.id)??"",onClick:()=>{ye(s);},sx:{fontSize:"12px",backgroundColor:C=>P?C.palette.action.hover:C.palette.common.white},children:c?c(s):s.label},`select-base-multiple-item-${k}`)})})]}),L?jsx(g,{...L}):jsx(ie,{children:b$1})]})}var Ge=Dt.forwardRef(bo);var yo=Ue;var Ke=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),Xe=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Ye=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Ze=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),Je=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),Qe=styled$1(Box)(()=>({color:"red !important"}));function ot({isLoading:e,countries:t,value:o,onCountryChange:n,required:b,disabled:i}){let[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),[h,S]=useState(""),f=!!a&&!i,m=g=>{g.stopPropagation(),c(g.currentTarget);},l=()=>{c(null);},I=g=>{n?.(g),d(g),l(),y(t);},v=g=>{let x=g.target.value.toString()??"";if(S(x),!x){y(t);return}let T=t.filter(A=>A.idd_prefix.toString().startsWith(x)||A.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{o&&d(o);},[o?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Ke,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:m,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),b&&jsx(Qe,{component:"span",children:"*"}),jsx(ve,{component:"img",src:Ab,alt:"d",className:"arrow",sx:{...f&&{transform:"rotate(180deg)"}}})]})}),f&&jsx(a$1,{onClick:l,sx:{zIndex:9999}}),f&&jsx(ClickAwayListener,{onClickAway:l,children:jsxs(Xe,{id:"CountriesList_CountriesWrapper",open:f,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(Je,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:h}),jsx(Ye,{"data-testid":"CountriesList_CountriesListStyled",children:r.map(g=>{let x=p?.countryId===g.countryId;return jsxs(Ze,{onClick:()=>{I(g);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:g.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${g.idd_prefix}`})]},`country-code-${g.countryId}`)})})]})})]})}ot.displayName="CountriesList";var rt=memo(ot);var de=rt;var at=styled(ve,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:o})=>{let{borderColor:n}=c(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:o?"4px 4px 0 0":"4px",borderBottom:o?"none":void 0,height:"40px"}}),it=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),lt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),pt=styled(ve)(()=>({flex:1}));function dt({phoneValue:e,hasError:t,countries:o,isCountriesLoading:n,countryValue:b$1,onCountryChange:i,onPhoneChange:p,helperText:d,required:a,disabled:c,feedback:r,...y},h){let S=x=>{p?.(x.target.value);},f=x=>{i?.(x);},m=r!=null,l={...r,message:r?.message??d},I=b(l),v=null;I?v=jsx(g,{...I}):m||(v=jsx(lt,{children:d}));let g$1=Jc(useId(),"phone-input-base");return jsxs(pt,{id:g$1,"data-testid":"PhoneInput",children:[jsxs(at,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:I?.type,hasFeedback:!!I,children:[jsx(de,{isLoading:n,countries:o,value:b$1,onCountryChange:f,required:a,disabled:c}),jsx(it,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:h,inputProps:{autoComplete:"off"},error:t&&!m,disabled:c,...y,onChange:S,hideArrows:true})]}),v]})}dt.displayName="PhoneInputBase";var ut=Dt.forwardRef(dt);var wo=ut;var ct=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),mt=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),ft=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),gt=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),bt=styled$1(Box)(()=>({color:"red !important"}));function ht({isLoading:e,currencies:t,value:o,onCurrencyChange:n,required:b}){let i=Jc(useId(),"currencies-list"),[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),h=!!a,S=l=>{l.stopPropagation(),c(l.currentTarget);},f=()=>{c(null);},m=l=>{n?.(l),d(l),f(),y(t);};return useEffect(()=>{o&&d(o);},[o?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{id:i,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(ct,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:S,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]}),b&&jsx(bt,{component:"span",children:"*"}),jsx(ve,{component:"img",src:Ab,alt:"d",className:"arrow",sx:{...h&&{transform:"rotate(180deg)"}}})]})}),h&&jsx(a$1,{onClick:f}),h&&jsx(mt,{id:"currenciesList_currenciesWrapper",open:h,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(ft,{"data-testid":"currenciesList_currenciesListStyled",children:r.map(l=>{let I=p?.currencyId===l.currencyId;return jsxs(gt,{onClick:()=>{m(l);},sx:{backgroundColor:I?"#F9F9F9":"transparent",color:I?"#000":"#8D8D94"},children:[jsx("img",{src:l.logo,alt:"c",className:"logo"}),jsx("span",{children:l?.code.english})]},`currency-code-${l.currencyId}`)})})})]})}ht.displayName="CurrenciesList";var It=memo(ht);var St=It;var Bt=styled(Ro,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),wt=styled(ve)(()=>({flex:1}));function To({hasError:e,hideArrows:t,inputProps:o,...n},b){let i=Jc(useId(),"amount-input-number");return jsx(wt,{id:i,"data-testid":"AmountInputNumber",onClick:p=>{p.stopPropagation();},children:jsx(Bt,{ref:b,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...o,type:"number"},onKeyDown:p=>{["e","E","+","-"].includes(p.key)&&p.preventDefault();},...n})})}var Mt=forwardRef(To);var Ft=Mt;var Lt=styled(ve,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Pt=styled(ve)(()=>({width:"50px"})),Et=styled(Ft)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Rt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),At=styled(ve)(()=>({flex:1}));function Tt({amountValue:e,hasError:t,currencies:o,isCurrenciesLoading:n,currencyValue:b,onCurrencyChange:i,onAmountChange:p,onAmountBlur:d,helperText:a,required:c,...r},y){let h=l=>{p?.(l.target.value);},S=l=>{d?.(l.target.value);},f=l=>{i?.(l);},m=Jc(useId(),"amount-input-base");return jsxs(At,{id:m,"data-testid":"AmountInput",children:[jsxs(Lt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(St,{isLoading:n,currencies:o,value:b,onCurrencyChange:f,required:c}),jsx(Pt,{children:jsx(Et,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...r,onChange:h,onBlur:S,hideArrows:true})})]}),jsx(Rt,{children:a})]})}Tt.displayName="AmountInputBase";var Ht=Dt.forwardRef(Tt);var zo=Ht;export{qt as a,z as b,ie as c,pe as d,Ge as e,yo as f,de as g,wo as h,zo as i};
1
+ import {c,b,g}from'./chunk-HJFHOPWU.js';import {a}from'./chunk-V5UEYSM5.js';import {a as a$1}from'./chunk-WL4B2ZSK.js';import {Jc}from'./chunk-ATSYOVOS.js';import {Nc,Ab,A}from'./chunk-3JUTMTQV.js';import Dt,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import ve from'@mui/material/Box';import {styled}from'@mui/material/styles';import zt from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ao from'@mui/material/InputLabel';import io from'@mui/material/MenuItem';import Vt from'@mui/material/SvgIcon';import Zt from'@mui/material/IconButton';import Xt from'@mui/material/CircularProgress';import eo from'@mui/material/FormControl';import _e from'@mui/material/Select';import Io from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Ro from'@mui/material/Input';var Ee=styled(ve)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),Re=styled(zt,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:o,hasFeedback:n,hideArrows:b,hasLabel:i,disabled:p})=>{let{borderColor:d}=c(e,o),a=n?"4px 4px 0 0":"4px",c$1=p?e.palette.grey[400]:e.palette.common.white,r=e.palette.divider;return o&&(r=d),t&&!o&&(r=e.palette.error.main),{border:`1px solid ${r}`,borderBottom:n?"none":void 0,borderRadius:a,...b&&{"& 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}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c$1,paddingTop:i?"11px":"0px",paddingBottom:i?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:i?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c$1}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:i?"flex-end":"center",alignSelf:i?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:i?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),Ae=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var We=Dt.forwardRef(({name:e,onChange:t,hasError:o,helperText:n,hideArrows:b$1,feedback:i,InputProps:p,InputLabelProps:d,label:a,placeholder:c,...r},y)=>{let h=Jc(useId(),"input-base"),S=g=>{t?.(g.target.value??"");},f=i!=null,m=b(i),l=typeof a=="string"&&a.trim().length>0?a:void 0,I=l??c,v=l&&typeof c=="string"?c:void 0;return jsxs(ve,{children:[jsx(Ee,{id:h,"data-testid":"InputBase",children:jsx(Re,{rows:1,hasError:!!o&&!f,hasFeedback:!!m,feedbackType:m?.type,hasLabel:!!I,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:r.type??"text",label:I,placeholder:v,onChange:S,InputLabelProps:d,InputProps:{disableUnderline:true,...p,sx:p?.sx},hideArrows:b$1,...r})}),m&&jsx(g,{...m}),!f&&n&&jsx(Ae,{children:n})]})});We.displayName="InputBase";var Te=We;var qt=Te;var Ne=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));Ne.displayName="DefaultClearIcon";var z=Ne;var De=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));De.displayName="DefaultSelectIcon";var $e=De;function ke({size:e=20,color:t="grey.A400",...o}){return jsx(Xt,{size:e,sx:{backgroundColor:"transparent",color:t},...o})}function Jt(e){if(e.button!==0)return;let t=e.currentTarget.closest(".MuiInputBase-root");if(!t||t.classList.contains("Mui-disabled"))return;e.preventDefault();let o=t.querySelector('.MuiSelect-select[role="combobox"]');o&&o.dispatchEvent(new MouseEvent("mousedown",{bubbles:true,cancelable:true,button:0,view:globalThis,clientX:e.clientX,clientY:e.clientY}));}function U({endAdornmentProp:e,isLoading:t,showClear:o,showMenuArrow:n,menuOpen:b,IconComponent:i,ClearIconComponent:p=z,onClear:d,onClearDefault:a}){return !(e||o||t||n)?null:jsxs(ve,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(ke,{}):null,!t&&o?jsx(Zt,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:r=>{r.preventDefault(),r.stopPropagation();},onClick:r=>{r.preventDefault(),r.stopPropagation(),d?d():a();},sx:r=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...i?{mr:2}:{},"&:hover":{backgroundColor:r.palette.action.hover},"&:focus-visible":{outline:`2px solid ${r.palette.primary.main}`,outlineOffset:1}}),children:jsx(p,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!i&&jsx(ve,{component:"span",className:`SelectBase-menuTriggerIcon${b?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,onMouseDown:Jt,children:jsx($e,{})})]})}function ne(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let o=e.id;return o!=null&&o!==""}return String(e)!==""}var ae=styled(eo)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(_e)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var ie=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),le=styled(_e,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:n})=>{let{borderColor:b}=c(e,o),i=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:i,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:i,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...o&&{border:`1px solid ${b}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),pe=styled(ve)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function lo(e,t){let{menuSearchable:o,menuSearchPlaceholder:n,...b$1}=e,{required:i,hasError:p,label:d,value:a,helperText:c,feedback:r,onChange:y,options:h,isOptionEqualToValue:S,renderOption:f,getOptionValue:m,isLoading:l,children:I,getOptionLabel:v,IconComponent:g$1,showClearIcon:x=false,ClearIconComponent:T=z,onClear:A,endAdornment:Y,inputProps:ge,open:H,onOpen:Z,onClose:J,menuHasSelectedCheckMark:be=false,...O}=b$1,ye=Jc(useId(),"select-base"),[xe,Ce]=useState(false),he=H??xe,_=useCallback((u,M)=>{M?Z?.(u):J?.(u),H===void 0&&Ce(M);},[Z,J,H]),Ie=u=>{y?.(u);},Me=()=>a==null?"":f?f(a):v?v(a):a?.label??"",Q="";a!=null&&(Q=(m?m(a):a?.id)??"");let L=!!(O.disabled||l),s=x&&ne(a,m)&&!L,P=jsx(U,{endAdornmentProp:Y,isLoading:!!l,showClear:s,showMenuArrow:!l,menuOpen:he,IconComponent:g$1,ClearIconComponent:T,onClear:A,onClearDefault:()=>y?.(null)}),C=b(r);return jsxs(pe,{children:[jsxs(ae,{id:ye,variant:"filled","data-testid":"SelectBase",required:i,children:[jsx(ao,{sx:{height:"100%"},id:`select-label-${d.trim()}`,"data-testid":"SelectBase_InputLabel",children:d}),jsx(le,{"data-testid":"SelectBase_Select",ref:t,value:Q,error:p&&!C,feedbackType:C?.type,hasFeedback:!!C,disableUnderline:true,required:i,labelId:`select-label-${d.trim()}`,id:`select-label-${d.trim()}`,renderValue:Me,...O,open:H,onOpen:u=>_(u,true),onClose:u=>_(u,false),inputProps:ge,disabled:L,IconComponent:g$1??(()=>null),endAdornment:P,children:I||h?.map(u=>{let M=S?S(u,a):u?.id===a?.id,j=(m?m(u):u?.id)??u?.label??"select-base-item";return jsxs(io,{disabled:!!u.disabled,value:(m?m(u):u?.id)??"",onClick:()=>{Ie(u);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Fe=>M?Fe.palette.action.hover:Fe.palette.common.white},children:[jsx(ve,{component:"span",sx:{flex:1,minWidth:0},children:f?f(u):u.label}),be&&M?jsx(ve,{component:"img",src:Nc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${j}`)})})]}),C?jsx(g,{...C}):jsx(ie,{children:c})]})}var Ue=Dt.forwardRef(lo);function bo({required:e,hasError:t,label:o,value:n,helperText:b$1,feedback:i,onChange:p,options:d,isOptionEqualToValue:a,renderOption:c,getOptionValue:r,isLoading:y,children:h,getOptionLabel:S,IconComponent:f,showClearIcon:m=false,ClearIconComponent:l=z,onClear:I,endAdornment:v,inputProps:g$1,open:x,onOpen:T,onClose:A,...Y},ge){let[H,Z]=useState(false),J=Jc(useId(),"select-base-multiple"),be=x??H,O=useCallback((s,k)=>{k?T?.(s):A?.(s),x===void 0&&Z(k);},[T,A,x]),ye=s=>{p?.(s);},xe=()=>{let s=n?.filter(k=>k!=null)??[];return r?s.map(r):s.map(k=>k?.id)},Ce=useMemo(()=>d?.filter(s=>n?.some(k=>{if(k==null)return false;if(a)return a(s,k);if(r){let u=r(s),M=r(k);return u===M||String(u)===String(M)}let P=s?.id,C=k?.id;return P===C||String(P)===String(C)})),[d,n,a,r]),he=()=>Ce?.map(s=>S?S(s):s.label)?.join(", "),_=!!(Y.disabled||y),Ie=m&&ne(n,r)&&!_,Q=jsx(U,{endAdornmentProp:v,isLoading:!!y,showClear:Ie,showMenuArrow:!y,menuOpen:be,IconComponent:f,ClearIconComponent:l,onClear:I,onClearDefault:()=>p?.([])}),L=b(i);return jsxs(pe,{children:[jsxs(ae,{id:J,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(ao,{id:`select-label-${o.trim()}`,"data-testid":"SelectBase_InputLabel",children:o}),jsx(le,{multiple:true,"data-testid":"SelectBase_Select",ref:ge,value:xe()??"",error:t&&!L,feedbackType:L?.type,hasFeedback:!!L,disableUnderline:true,required:e,labelId:`select-label-${o.trim()}`,id:`select-label-${o.trim()}`,renderValue:he,...Y,open:x,onOpen:s=>O(s,true),onClose:s=>O(s,false),inputProps:g$1,disabled:_,IconComponent:f??(()=>null),endAdornment:Q,onChange:s=>{let P=s.target.value?.map(C=>d?.find(u=>{if(r){let j=r(u);return j===C||String(j)===String(C)}let M=u?.id;return M===C||String(M)===String(C)}));p?.(P?.filter(C=>C!=null)??[]);},children:h||d?.map((s,k)=>{let P=a?a(s,n):s?.id===n?.id;return jsx(io,{value:(r?r(s):s?.id)??"",onClick:()=>{ye(s);},sx:{fontSize:"12px",backgroundColor:C=>P?C.palette.action.hover:C.palette.common.white},children:c?c(s):s.label},`select-base-multiple-item-${k}`)})})]}),L?jsx(g,{...L}):jsx(ie,{children:b$1})]})}var Ge=Dt.forwardRef(bo);var yo=Ue;var Ke=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),Xe=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Ye=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Ze=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),Je=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),Qe=styled$1(Box)(()=>({color:"red !important"}));function ot({isLoading:e,countries:t,value:o,onCountryChange:n,required:b,disabled:i}){let[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),[h,S]=useState(""),f=!!a&&!i,m=g=>{g.stopPropagation(),c(g.currentTarget);},l=()=>{c(null);},I=g=>{n?.(g),d(g),l(),y(t);},v=g=>{let x=g.target.value.toString()??"";if(S(x),!x){y(t);return}let T=t.filter(A=>A.idd_prefix.toString().startsWith(x)||A.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{o&&d(o);},[o?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Ke,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:m,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),b&&jsx(Qe,{component:"span",children:"*"}),jsx(ve,{component:"img",src:Ab,alt:"d",className:"arrow",sx:{...f&&{transform:"rotate(180deg)"}}})]})}),f&&jsx(a$1,{onClick:l,sx:{zIndex:9999}}),f&&jsx(ClickAwayListener,{onClickAway:l,children:jsxs(Xe,{id:"CountriesList_CountriesWrapper",open:f,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(Je,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:h}),jsx(Ye,{"data-testid":"CountriesList_CountriesListStyled",children:r.map(g=>{let x=p?.countryId===g.countryId;return jsxs(Ze,{onClick:()=>{I(g);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:g.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${g.idd_prefix}`})]},`country-code-${g.countryId}`)})})]})})]})}ot.displayName="CountriesList";var rt=memo(ot);var de=rt;var at=styled(ve,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:o})=>{let{borderColor:n}=c(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:o?"4px 4px 0 0":"4px",borderBottom:o?"none":void 0,height:"40px"}}),it=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),lt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),pt=styled(ve)(()=>({flex:1}));function dt({phoneValue:e,hasError:t,countries:o,isCountriesLoading:n,countryValue:b$1,onCountryChange:i,onPhoneChange:p,helperText:d,required:a,disabled:c,feedback:r,...y},h){let S=x=>{p?.(x.target.value);},f=x=>{i?.(x);},m=r!=null,l={...r,message:r?.message??d},I=b(l),v=null;I?v=jsx(g,{...I}):m||(v=jsx(lt,{children:d}));let g$1=Jc(useId(),"phone-input-base");return jsxs(pt,{id:g$1,"data-testid":"PhoneInput",children:[jsxs(at,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:I?.type,hasFeedback:!!I,children:[jsx(de,{isLoading:n,countries:o,value:b$1,onCountryChange:f,required:a,disabled:c}),jsx(it,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:h,inputProps:{autoComplete:"off"},error:t&&!m,disabled:c,...y,onChange:S,hideArrows:true})]}),v]})}dt.displayName="PhoneInputBase";var ut=Dt.forwardRef(dt);var wo=ut;var ct=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),mt=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),ft=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),gt=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),bt=styled$1(Box)(()=>({color:"red !important"}));function ht({isLoading:e,currencies:t,value:o,onCurrencyChange:n,required:b}){let i=Jc(useId(),"currencies-list"),[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),h=!!a,S=l=>{l.stopPropagation(),c(l.currentTarget);},f=()=>{c(null);},m=l=>{n?.(l),d(l),f(),y(t);};return useEffect(()=>{o&&d(o);},[o?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{id:i,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(ct,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:S,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]}),b&&jsx(bt,{component:"span",children:"*"}),jsx(ve,{component:"img",src:Ab,alt:"d",className:"arrow",sx:{...h&&{transform:"rotate(180deg)"}}})]})}),h&&jsx(a$1,{onClick:f}),h&&jsx(mt,{id:"currenciesList_currenciesWrapper",open:h,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(ft,{"data-testid":"currenciesList_currenciesListStyled",children:r.map(l=>{let I=p?.currencyId===l.currencyId;return jsxs(gt,{onClick:()=>{m(l);},sx:{backgroundColor:I?"#F9F9F9":"transparent",color:I?"#000":"#8D8D94"},children:[jsx("img",{src:l.logo,alt:"c",className:"logo"}),jsx("span",{children:l?.code.english})]},`currency-code-${l.currencyId}`)})})})]})}ht.displayName="CurrenciesList";var It=memo(ht);var St=It;var Bt=styled(Ro,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),wt=styled(ve)(()=>({flex:1}));function To({hasError:e,hideArrows:t,inputProps:o,...n},b){let i=Jc(useId(),"amount-input-number");return jsx(wt,{id:i,"data-testid":"AmountInputNumber",onClick:p=>{p.stopPropagation();},children:jsx(Bt,{ref:b,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...o,type:"number"},onKeyDown:p=>{["e","E","+","-"].includes(p.key)&&p.preventDefault();},...n})})}var Mt=forwardRef(To);var Ft=Mt;var Lt=styled(ve,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Pt=styled(ve)(()=>({width:"50px"})),Et=styled(Ft)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Rt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),At=styled(ve)(()=>({flex:1}));function Tt({amountValue:e,hasError:t,currencies:o,isCurrenciesLoading:n,currencyValue:b,onCurrencyChange:i,onAmountChange:p,onAmountBlur:d,helperText:a,required:c,...r},y){let h=l=>{p?.(l.target.value);},S=l=>{d?.(l.target.value);},f=l=>{i?.(l);},m=Jc(useId(),"amount-input-base");return jsxs(At,{id:m,"data-testid":"AmountInput",children:[jsxs(Lt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(St,{isLoading:n,currencies:o,value:b,onCurrencyChange:f,required:c}),jsx(Pt,{children:jsx(Et,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...r,onChange:h,onBlur:S,hideArrows:true})})]}),jsx(Rt,{children:a})]})}Tt.displayName="AmountInputBase";var Ht=Dt.forwardRef(Tt);var zo=Ht;export{qt as a,z as b,ie as c,pe as d,Ge as e,yo as f,de as g,wo as h,zo as i};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId}from'react';import {createPortal}from'react-dom';import e from'@mui/material/Backdrop';import {alpha}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';function n(r){let p=Jc(useId(),"window-backdrop");return createPortal(jsx(e,{id:p,sx:{zIndex:1,backgroundColor:d=>alpha(d.palette.common.black,.3)},...r}),document.body)}var i=memo(n);export{i as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import {createPortal}from'react-dom';import e from'@mui/material/Backdrop';import {alpha}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';function n(r){let p=Jc(useId(),"window-backdrop");return createPortal(jsx(e,{id:p,sx:{zIndex:1,backgroundColor:d=>alpha(d.palette.common.black,.3)},...r}),document.body)}var i=memo(n);export{i as a};
@@ -1 +1 @@
1
- import {c}from'./chunk-2I5NAVTK.js';import {s}from'./chunk-WVGNLRZQ.js';import {memo,useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import S from'@mui/material/Box';import F from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var q=styled(S)(({theme:o})=>({background:o.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),K=styled(S)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),L=styled(F)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),b=styled(F)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}}));function N({onCloseDropdown:o,filter:i,styles:x,header:O,searchable:u}){let[E,V]=useState([]),{t:f}=useTranslation(),p=useRef([]),B=i?.options?.map(e=>e.value).join(",")??"";useEffect(()=>{let e=r=>{let n=i?.data?.[i.apiKey]??[];if(Array.isArray(n)&&n.length)return new Set(n).has(r)},s=r=>r.map(({placeholder:n,value:t,isSelected:a,icon:l,options:d})=>{let y;if(u){let c=p.current.find(C=>C.apiKey===t);y=c!==void 0?c.isSelected??false:(a||e(t)||d?.every(({value:C})=>e(C)))??false;}else y=(a||e(t)||d?.every(({value:c})=>e(c)))??false;return {...n&&{label:n},name:t,selected:y,...l&&{icon:l},...d?.length&&{menuItems:s(d)}}});i.options&&V(s(i.options));},[i?.data,B,u]);let h=()=>{p.current=[];},R=e=>{h(),o(e);},w=()=>{if(u){let e=new Set(i?.data?.[i.apiKey]??[]);p.current.forEach(({apiKey:s,options:r,isSelected:n})=>{r?r.forEach(({apiKey:t,isSelected:a})=>{a?e.add(t):e.delete(t);}):n?e.add(s):e.delete(s);}),i?.onConfirm?.({[i.apiKey]:[...e]});}else {let e=p.current.reduce((s,{options:r,apiKey:n,isSelected:t})=>{if(r){let a=r.filter(({isSelected:l})=>l);a.length&&s.push(...a.map(({apiKey:l})=>l));}else t&&s.push(n);return s},[]);p.current.length&&i?.onConfirm?.({[i.apiKey]:[...new Set(e)]});}h();},M=s(w,o),P=e=>{w(),o(e);},T=e=>{let s=n=>n.map(({name:t,selected:a,menuItems:l,label:d})=>({...d&&{placeholder:d},apiKey:t,isSelected:a,...l?.length&&{options:s(l)}})),r=s(e);if(u){let n=new Set(r.map(t=>t.apiKey));p.current=[...p.current.filter(t=>!n.has(t.apiKey)),...r];}else p.current=r;};return jsx(c,{"data-testid":"ColumnFilter_List",title:f("filterBy")||"Filter by",menuItems:E,style:x,sx:e=>({marginTop:"10px",textAlign:"left",boxShadow:e.shadows[3],".nested-menu-item":{height:41,zIndex:9999},...x}),updatedList:T,header:O,onKeyDown:M,footer:jsxs(K,{sx:{position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999},children:[jsx(b,{onClick:R,children:f("cancel")},"nested-dropdown-cancel"),jsx(L,{onClick:P,children:f("okay")},"nested-dropdown-ok")]})})}var v=memo(N);var se=v;export{q as a,K as b,L as c,b as d,se as e};
1
+ import {c}from'./chunk-MH3PHXU4.js';import {s}from'./chunk-COAYA7GT.js';import {memo,useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import S from'@mui/material/Box';import F from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var q=styled(S)(({theme:o})=>({background:o.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),K=styled(S)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),L=styled(F)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),b=styled(F)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}}));function N({onCloseDropdown:o,filter:i,styles:x,header:O,searchable:u}){let[E,V]=useState([]),{t:f}=useTranslation(),p=useRef([]),B=i?.options?.map(e=>e.value).join(",")??"";useEffect(()=>{let e=r=>{let n=i?.data?.[i.apiKey]??[];if(Array.isArray(n)&&n.length)return new Set(n).has(r)},s=r=>r.map(({placeholder:n,value:t,isSelected:a,icon:l,options:d})=>{let y;if(u){let c=p.current.find(C=>C.apiKey===t);y=c!==void 0?c.isSelected??false:(a||e(t)||d?.every(({value:C})=>e(C)))??false;}else y=(a||e(t)||d?.every(({value:c})=>e(c)))??false;return {...n&&{label:n},name:t,selected:y,...l&&{icon:l},...d?.length&&{menuItems:s(d)}}});i.options&&V(s(i.options));},[i?.data,B,u]);let h=()=>{p.current=[];},R=e=>{h(),o(e);},w=()=>{if(u){let e=new Set(i?.data?.[i.apiKey]??[]);p.current.forEach(({apiKey:s,options:r,isSelected:n})=>{r?r.forEach(({apiKey:t,isSelected:a})=>{a?e.add(t):e.delete(t);}):n?e.add(s):e.delete(s);}),i?.onConfirm?.({[i.apiKey]:[...e]});}else {let e=p.current.reduce((s,{options:r,apiKey:n,isSelected:t})=>{if(r){let a=r.filter(({isSelected:l})=>l);a.length&&s.push(...a.map(({apiKey:l})=>l));}else t&&s.push(n);return s},[]);p.current.length&&i?.onConfirm?.({[i.apiKey]:[...new Set(e)]});}h();},M=s(w,o),P=e=>{w(),o(e);},T=e=>{let s=n=>n.map(({name:t,selected:a,menuItems:l,label:d})=>({...d&&{placeholder:d},apiKey:t,isSelected:a,...l?.length&&{options:s(l)}})),r=s(e);if(u){let n=new Set(r.map(t=>t.apiKey));p.current=[...p.current.filter(t=>!n.has(t.apiKey)),...r];}else p.current=r;};return jsx(c,{"data-testid":"ColumnFilter_List",title:f("filterBy")||"Filter by",menuItems:E,style:x,sx:e=>({marginTop:"10px",textAlign:"left",boxShadow:e.shadows[3],".nested-menu-item":{height:41,zIndex:9999},...x}),updatedList:T,header:O,onKeyDown:M,footer:jsxs(K,{sx:{position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999},children:[jsx(b,{onClick:R,children:f("cancel")},"nested-dropdown-cancel"),jsx(L,{onClick:P,children:f("okay")},"nested-dropdown-ok")]})})}var v=memo(N);var se=v;export{q as a,K as b,L as c,b as d,se as e};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-27NBJWWB.js';import {a as a$1}from'./chunk-AJB47VOM.js';import {a}from'./chunk-4VFSZWB2.js';import {Jc,Oa,Pa,Na}from'./chunk-OIVTFRJE.js';import {Wc,Vc,Mc,Lc,Kc,Nc,be}from'./chunk-3JUTMTQV.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?Wc:Vc,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$1=useRef(null),[R,E]=useState(false),[c,xe]=useState(u),B=false,[Se,De]=useState(false),[Ie,N]=useState(Mc),[ve,j]=useState(Lc),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(Nc);},$e=()=>{j(Lc);},K=r=>{G(r);},ze=()=>{G();},Be=()=>{N(be);},Ne=()=>{N(Mc);},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$1,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:Kc,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-VRMS7VG4.js';import {a as a$1}from'./chunk-I7BXAQZS.js';import {a}from'./chunk-JKOFVMQP.js';import {Jc,Oa,Pa,Na}from'./chunk-ATSYOVOS.js';import {Wc,Vc,Mc,Lc,Kc,Nc,be}from'./chunk-3JUTMTQV.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?Wc:Vc,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$1=useRef(null),[R,E]=useState(false),[c,xe]=useState(u),B=false,[Se,De]=useState(false),[Ie,N]=useState(Mc),[ve,j]=useState(Lc),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(Nc);},$e=()=>{j(Lc);},K=r=>{G(r);},ze=()=>{G();},Be=()=>{N(be);},Ne=()=>{N(Mc);},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$1,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:Kc,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-GNY2VGGW.js';import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId,useRef,useMemo}from'react';import v from'@mui/material/Box';import ro from'@mui/material/Popover';import {styled}from'@mui/material/styles';import L from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var P=styled(v,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:r,disabled:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...r&&{borderColor:o.palette.info.dark,background:o.palette.common.white},"& .SelectDropdown_trailing-icon":{color:o.palette.text.primary},"&.SelectDropdown-open":{"& .SelectDropdown_trailing-arrow":{color:o.palette.info.dark}},"&.SelectDropdown-disabled":{"& .SelectDropdown_trailing-icon":{color:o.palette.text.disabled}},...e&&{cursor:"not-allowed"}})),I=styled(v)(({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:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a)(({theme:o,selected:r})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...r&&{backgroundColor:"#F8F8F8"}}));var D=jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"}),y={down:0,up:180,left:90,right:-90},Z=["down","up"],j="cubic-bezier(0.4, 0, 0.2, 1)";function q({direction:o="down",size:r=8,transitionEffect:e="rotation",transitionDurationMs:t=200,sx:n,className:p,...d}){let i=typeof r=="number"?r*5/8:"auto",m=e==="none"?"none":`opacity ${t}ms ease-in-out`,g=e==="none"?"none":`transform ${t}ms ${j}`,a=`${p??""} MUISvgIcon__trailing-arrow-icon`;return e==="fade"?jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"inherit",position:"relative",overflow:"visible",...n},className:a,...d,children:Z.map(s=>jsx("g",{transform:`rotate(${y[s]} 4 2.5)`,style:{opacity:o===s?1:0,transition:m,pointerEvents:"none"},children:D},s))}):jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"text.primary",transform:`rotate(${y[o]}deg)`,transformOrigin:"50% 50%",transition:g,...n},className:a,...d,children:D})}var T=q;var K="M0.110352 0.700684C0.107667 0.584484 0.13977 0.470009 0.203125 0.372559C0.266534 0.275041 0.358424 0.199466 0.46582 0.154785C0.573201 0.110137 0.691824 0.0987907 0.805664 0.122559C0.919306 0.146383 1.02308 0.203847 1.10352 0.287598L1.10547 0.289551L3.59766 2.78076L3.6748 2.85889L3.75293 2.78076L6.24512 0.289551L6.24609 0.287598C6.29924 0.23225 6.36317 0.188178 6.43359 0.157715C6.50408 0.12725 6.58044 0.110644 6.65723 0.109863C6.73385 0.109132 6.80991 0.123886 6.88086 0.152832C6.95193 0.18185 7.017 0.22453 7.07129 0.278809C7.12559 0.333107 7.16824 0.398144 7.19727 0.469238C7.22623 0.540187 7.24095 0.616243 7.24023 0.692871C7.23945 0.769659 7.22285 0.846017 7.19238 0.916504C7.1771 0.951852 7.1586 0.985627 7.13672 1.01709L7.0625 1.104L7.06055 1.10498L4.56934 3.59717L4.49121 3.67529L7.0625 6.24658C7.11787 6.29976 7.16193 6.36362 7.19238 6.43408C7.22278 6.50446 7.23942 6.58008 7.24023 6.65674C7.24101 6.73353 7.22629 6.81025 7.19727 6.88135C7.16829 6.95222 7.12539 7.01662 7.07129 7.0708C7.01702 7.12507 6.95191 7.16775 6.88086 7.19678C6.80988 7.22576 6.73389 7.24048 6.65723 7.23975C6.58044 7.23897 6.50408 7.22334 6.43359 7.19287C6.36315 7.16242 6.29925 7.11834 6.24609 7.06299L6.24512 7.06104L3.75293 4.56885L3.6748 4.4917L1.10449 7.06201L1.04004 7.11865C0.972059 7.17051 0.89296 7.20736 0.808594 7.2251C0.696438 7.24861 0.579855 7.23782 0.473633 7.19482C0.367223 7.15166 0.275113 7.07813 0.210938 6.98291C0.146759 6.88765 0.113309 6.77453 0.113281 6.65967C0.113345 6.5826 0.128185 6.50605 0.158203 6.43506C0.188279 6.36398 0.232716 6.29937 0.288086 6.24561L0.289063 6.24463L2.78125 3.75342L2.85938 3.67529L0.289063 1.10498L0.287109 1.104C0.17719 0.998435 0.11395 0.853049 0.110352 0.700684Z";function Q({size:o=8,strokeColor:r="white",strokeWidthSvg:e=.22006,sx:t,className:n,...p}){return jsx(L,{viewBox:"0 0 8 8",inheritViewBox:true,sx:{width:o,height:o,color:"inherit",...t},className:`${n??""} MUISvgIcon__trailing-close-icon`,...p,children:jsx("path",{d:K,fill:"currentColor",stroke:r,strokeWidth:e})})}var N=Q;function to(o){let{onClose:r,open:e,anchorEl:t,trigger:n,onOpen:p,children:d,disabled:i,listWrapperSx:m,hideArrow:g,onClear:a,hasValue:s,className:u,slotProps:A,...R}=o,E=Jc(useId(),"select-dropdown"),f=a&&s,w=useRef(void 0);e&&t&&t.clientWidth>0&&(w.current=t.clientWidth);let M=w.current,{listWrapper:O,popover:H}=A??{},{slotProps:$,...V}=H??{},{paper:F,...z}=$??{},l=F,G={...l,sx:[{width:M??t?.clientWidth,maxWidth:"unset",boxSizing:"border-box"},...l?.sx?Array.isArray(l.sx)?l.sx:[l.sx]:[]]},U=useMemo(()=>["SelectDropdown",e&&"SelectDropdown-open",i&&"SelectDropdown-disabled",u].filter(Boolean).join(" "),[u,e,i]);return jsxs(P,{id:E,open:e,onClick:p,"data-testid":"SelectDropdown",disabled:i,className:U,...R,children:[jsx(v,{className:"SelectDropdown_trigger",sx:{flex:1,cursor:"pointer"},children:n}),jsxs(v,{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:8,className:"SelectDropdown_trailing-icon",role:"button",...f&&{sx:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),h.preventDefault(),a();}},children:[!g&&!f&&jsx(T,{className:"SelectDropdown_trailing-arrow",direction:e?"up":"down",transitionEffect:"fade"}),f&&jsx(N,{className:"SelectDropdown_trailing-close"})]}),jsx(ro,{open:e,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},...V,slotProps:{...z,paper:G},children:jsx(I,{className:"SelectDropdown_list-wrapper",sx:m,...O,children:d})})]})}var _=memo(to);var _o=_;export{_o as a};
1
+ import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId,useRef,useMemo}from'react';import v from'@mui/material/Box';import ro from'@mui/material/Popover';import {styled}from'@mui/material/styles';import L from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var P=styled(v,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:r,disabled:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...r&&{borderColor:o.palette.info.dark,background:o.palette.common.white},"& .SelectDropdown_trailing-icon":{color:o.palette.text.primary},"&.SelectDropdown-open":{"& .SelectDropdown_trailing-arrow":{color:o.palette.info.dark}},"&.SelectDropdown-disabled":{"& .SelectDropdown_trailing-icon":{color:o.palette.text.disabled}},...e&&{cursor:"not-allowed"}})),I=styled(v)(({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:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a)(({theme:o,selected:r})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...r&&{backgroundColor:"#F8F8F8"}}));var D=jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"}),y={down:0,up:180,left:90,right:-90},Z=["down","up"],j="cubic-bezier(0.4, 0, 0.2, 1)";function q({direction:o="down",size:r=8,transitionEffect:e="rotation",transitionDurationMs:t=200,sx:n,className:p,...d}){let i=typeof r=="number"?r*5/8:"auto",m=e==="none"?"none":`opacity ${t}ms ease-in-out`,g=e==="none"?"none":`transform ${t}ms ${j}`,a=`${p??""} MUISvgIcon__trailing-arrow-icon`;return e==="fade"?jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"inherit",position:"relative",overflow:"visible",...n},className:a,...d,children:Z.map(s=>jsx("g",{transform:`rotate(${y[s]} 4 2.5)`,style:{opacity:o===s?1:0,transition:m,pointerEvents:"none"},children:D},s))}):jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"text.primary",transform:`rotate(${y[o]}deg)`,transformOrigin:"50% 50%",transition:g,...n},className:a,...d,children:D})}var T=q;var K="M0.110352 0.700684C0.107667 0.584484 0.13977 0.470009 0.203125 0.372559C0.266534 0.275041 0.358424 0.199466 0.46582 0.154785C0.573201 0.110137 0.691824 0.0987907 0.805664 0.122559C0.919306 0.146383 1.02308 0.203847 1.10352 0.287598L1.10547 0.289551L3.59766 2.78076L3.6748 2.85889L3.75293 2.78076L6.24512 0.289551L6.24609 0.287598C6.29924 0.23225 6.36317 0.188178 6.43359 0.157715C6.50408 0.12725 6.58044 0.110644 6.65723 0.109863C6.73385 0.109132 6.80991 0.123886 6.88086 0.152832C6.95193 0.18185 7.017 0.22453 7.07129 0.278809C7.12559 0.333107 7.16824 0.398144 7.19727 0.469238C7.22623 0.540187 7.24095 0.616243 7.24023 0.692871C7.23945 0.769659 7.22285 0.846017 7.19238 0.916504C7.1771 0.951852 7.1586 0.985627 7.13672 1.01709L7.0625 1.104L7.06055 1.10498L4.56934 3.59717L4.49121 3.67529L7.0625 6.24658C7.11787 6.29976 7.16193 6.36362 7.19238 6.43408C7.22278 6.50446 7.23942 6.58008 7.24023 6.65674C7.24101 6.73353 7.22629 6.81025 7.19727 6.88135C7.16829 6.95222 7.12539 7.01662 7.07129 7.0708C7.01702 7.12507 6.95191 7.16775 6.88086 7.19678C6.80988 7.22576 6.73389 7.24048 6.65723 7.23975C6.58044 7.23897 6.50408 7.22334 6.43359 7.19287C6.36315 7.16242 6.29925 7.11834 6.24609 7.06299L6.24512 7.06104L3.75293 4.56885L3.6748 4.4917L1.10449 7.06201L1.04004 7.11865C0.972059 7.17051 0.89296 7.20736 0.808594 7.2251C0.696438 7.24861 0.579855 7.23782 0.473633 7.19482C0.367223 7.15166 0.275113 7.07813 0.210938 6.98291C0.146759 6.88765 0.113309 6.77453 0.113281 6.65967C0.113345 6.5826 0.128185 6.50605 0.158203 6.43506C0.188279 6.36398 0.232716 6.29937 0.288086 6.24561L0.289063 6.24463L2.78125 3.75342L2.85938 3.67529L0.289063 1.10498L0.287109 1.104C0.17719 0.998435 0.11395 0.853049 0.110352 0.700684Z";function Q({size:o=8,strokeColor:r="white",strokeWidthSvg:e=.22006,sx:t,className:n,...p}){return jsx(L,{viewBox:"0 0 8 8",inheritViewBox:true,sx:{width:o,height:o,color:"inherit",...t},className:`${n??""} MUISvgIcon__trailing-close-icon`,...p,children:jsx("path",{d:K,fill:"currentColor",stroke:r,strokeWidth:e})})}var N=Q;function to(o){let{onClose:r,open:e,anchorEl:t,trigger:n,onOpen:p,children:d,disabled:i,listWrapperSx:m,hideArrow:g,onClear:a,hasValue:s,className:u,slotProps:A,...R}=o,E=Jc(useId(),"select-dropdown"),f=a&&s,w=useRef(void 0);e&&t&&t.clientWidth>0&&(w.current=t.clientWidth);let M=w.current,{listWrapper:O,popover:H}=A??{},{slotProps:$,...V}=H??{},{paper:F,...z}=$??{},l=F,G={...l,sx:[{width:M??t?.clientWidth,maxWidth:"unset",boxSizing:"border-box"},...l?.sx?Array.isArray(l.sx)?l.sx:[l.sx]:[]]},U=useMemo(()=>["SelectDropdown",e&&"SelectDropdown-open",i&&"SelectDropdown-disabled",u].filter(Boolean).join(" "),[u,e,i]);return jsxs(P,{id:E,open:e,onClick:p,"data-testid":"SelectDropdown",disabled:i,className:U,...R,children:[jsx(v,{className:"SelectDropdown_trigger",sx:{flex:1,cursor:"pointer"},children:n}),jsxs(v,{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:8,className:"SelectDropdown_trailing-icon",role:"button",...f&&{sx:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),h.preventDefault(),a();}},children:[!g&&!f&&jsx(T,{className:"SelectDropdown_trailing-arrow",direction:e?"up":"down",transitionEffect:"fade"}),f&&jsx(N,{className:"SelectDropdown_trailing-close"})]}),jsx(ro,{open:e,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},...V,slotProps:{...z,paper:G},children:jsx(I,{className:"SelectDropdown_list-wrapper",sx:m,...O,children:d})})]})}var _=memo(to);var _o=_;export{_o as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-BYJ2XLTW.js';import {Jc}from'./chunk-OIVTFRJE.js';import {Ln}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import {jsx}from'react/jsx-runtime';var n={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...Ln}},"Device Biometric":{text:"Biometric"}};function u({title:t,ref:r,...s}){let c=Jc(useId(),"authentication-type-chip"),i=n[t];return jsx(b,{id:c,"data-testid":"AuthenticationTypeChip",chipStyles:i?.styles,ref:r,...s,children:i?.text||t})}var h=memo(u);var W=h;export{W as a};
1
+ import {b}from'./chunk-P37RYOJW.js';import {Jc}from'./chunk-ATSYOVOS.js';import {Ln}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import {jsx}from'react/jsx-runtime';var n={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...Ln}},"Device Biometric":{text:"Biometric"}};function u({title:t,ref:r,...s}){let c=Jc(useId(),"authentication-type-chip"),i=n[t];return jsx(b,{id:c,"data-testid":"AuthenticationTypeChip",chipStyles:i?.styles,ref:r,...s,children:i?.text||t})}var h=memo(u);var W=h;export{W as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {useId,useState,useRef,useCallback,useEffect}from'react';import v from'@mui/material/Stack';import {jsx}from'react/jsx-runtime';var E=50,g=(t,s=E)=>{let e=t.scrollTop+t.clientHeight;return t.scrollHeight-e<=s},H=t=>{let{component:s=v,loadMoreItems:e,hasMore:l,loading:i,isFetchingNextPage:a,children:S,...R}=t,C=Jc(useId(),"scroll-loader"),[m,L]=useState(false),p=useRef(e),r=useRef(null);p.current=e;let k=s,n=useCallback(()=>{l&&!a&&p.current();},[l,a]),c=useCallback(()=>{let o=r.current;if(!o)return;g(o)&&n();},[n]);return useEffect(()=>{let o=r.current;if(o)return o.addEventListener("scroll",c),()=>o.removeEventListener("scroll",c)},[c]),useEffect(()=>{let o=r.current;if(!o||i||m)return;let d=setTimeout(()=>{L(true),g(o)&&n();},1e3);return ()=>{clearTimeout(d);}},[i,n,m]),jsx(k,{id:C,"data-testid":"ScrollLoader",overflow:"auto",ref:r,style:{overflow:"auto",height:"100%",maxHeight:"100%"},...R,children:S})},I=H;var q=I;export{q as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {useId,useState,useRef,useCallback,useEffect}from'react';import v from'@mui/material/Stack';import {jsx}from'react/jsx-runtime';var E=50,g=(t,s=E)=>{let e=t.scrollTop+t.clientHeight;return t.scrollHeight-e<=s},H=t=>{let{component:s=v,loadMoreItems:e,hasMore:l,loading:i,isFetchingNextPage:a,children:S,...R}=t,C=Jc(useId(),"scroll-loader"),[m,L]=useState(false),p=useRef(e),r=useRef(null);p.current=e;let k=s,n=useCallback(()=>{l&&!a&&p.current();},[l,a]),c=useCallback(()=>{let o=r.current;if(!o)return;g(o)&&n();},[n]);return useEffect(()=>{let o=r.current;if(o)return o.addEventListener("scroll",c),()=>o.removeEventListener("scroll",c)},[c]),useEffect(()=>{let o=r.current;if(!o||i||m)return;let d=setTimeout(()=>{L(true),g(o)&&n();},1e3);return ()=>{clearTimeout(d);}},[i,n,m]),jsx(k,{id:C,"data-testid":"ScrollLoader",overflow:"auto",ref:r,style:{overflow:"auto",height:"100%",maxHeight:"100%"},...R,children:S})},I=H;var q=I;export{q as a};
@@ -1,2 +1,2 @@
1
- import {h,g,a,f,e as e$1,d,c}from'./chunk-7LQ7FNTX.js';import {e}from'./chunk-P7ECTYML.js';import {Jc,Ta,r}from'./chunk-OIVTFRJE.js';import {qk,ha,Ra,Gf,ak,Wa,Qa,Pf,Of,Qf,Nf,Sf,xb,wb,sj,aj,eb,nj,B,w,A,D,Lg,$i,u,tj}from'./chunk-3JUTMTQV.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:o}){let[s,C]=useState(false),c=useTheme(),e=()=>{o||C(true);},i=()=>{C(false);},I=p?c.palette.common.white:c.palette.grey[700],u=s?c.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:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),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:I})]})})}var vt={inProgress:tj,initiated:tj,abandoned:u,cancelled:$i,reversed:Lg,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:nj,unCaptured:eb,captured:aj,authorized:sj,openFlag:wb,closedFlag:xb,unauthenticated:Sf,authenticated:Nf,paidOut:Qf,scheduled:Of,checked:Pf,dashedChecked:Qa,deactivated:Wa,destination:ak,destinationReversed:Gf,outstanding:Ra,active:ha,inactive:qk};var Nt=memo(p=>{let{variant:o="inActive",badgeCount:s,icon:C,label:c$1,dropdownOptions:e$2,selectedStatus:i,onButtonBodyClick:I,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=Jc(useId(),"status-button"),[Lt,M]=useState(0),{t:E}=useTranslation(),y=useRef(null),[T,f$1]=useState(null),[n,A]=useState(i??e$2?.[0]?.status);useEffect(()=>{i!==void 0&&A(i);},[i]);let d$1=useMemo(()=>!!e$2?.length,[e$2]),h$1=!!T&&Lt>1,l=o==="active",x=useMemo(()=>l?"active":"inActive",[l]),m=useMemo(()=>n?e$2?.find(t=>t.status===n):null,[n,e$2]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:o,children:m.icon});let t=n&&u[n]?n:C;if(t&&u[t])return jsx(g,{icon:t,variant:o,src:u[t],alt:`${t}-icon`})},[m,n,u,C,o]),wt=useMemo(()=>!s||Number.isNaN(Ta(s))?null:jsx(e,{variant:x,children:r(Number(s))}),[s,x]),H=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$1=useCallback(()=>{f$1(null);},[]),P=useCallback(()=>{d$1&&f$1(h$1?null:y.current);},[d$1,h$1]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),I?.(n||e$2?.[0]?.status||"all"),P(),M(B=>B+1);},[p,I,n,e$2,P]),D=useCallback(t=>B=>{t?.onClick?.(B),A(t.status),g$1();},[g$1]),Et=useMemo(()=>e$2?.map(t=>({...t,onClick:D(t)}))||[],[e$2,D]),yt=a[o],Tt=useMemo(()=>m?.label||(n?E(n):c$1),[m,n,E,c$1]);return jsxs(Fragment,{children:[jsx(yt,{id:St,"data-testid":"StatusButton",...bt,ref:y,onClick:Mt,statusVariant:o,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e$1,{variant:o,children:[kt,Tt,wt]}),H&&jsx(d,{children:H})]})}),h$1&&d$1&&jsx(c,{open:h$1,onClose:g$1,anchorEl:T,menuItems:Et})]})}),gt=Nt;var en=gt;
1
+ import {h,g,a,f,e as e$1,d,c}from'./chunk-AHKZYNFC.js';import {e}from'./chunk-E35LKQ6G.js';import {Jc,Ta,r}from'./chunk-ATSYOVOS.js';import {qk,ha,Ra,Gf,ak,Wa,Qa,Pf,Of,Qf,Nf,Sf,xb,wb,sj,aj,eb,nj,B,w,A,D,Lg,$i,u,tj}from'./chunk-3JUTMTQV.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:o}){let[s,C]=useState(false),c=useTheme(),e=()=>{o||C(true);},i=()=>{C(false);},I=p?c.palette.common.white:c.palette.grey[700],u=s?c.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:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),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:I})]})})}var vt={inProgress:tj,initiated:tj,abandoned:u,cancelled:$i,reversed:Lg,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:nj,unCaptured:eb,captured:aj,authorized:sj,openFlag:wb,closedFlag:xb,unauthenticated:Sf,authenticated:Nf,paidOut:Qf,scheduled:Of,checked:Pf,dashedChecked:Qa,deactivated:Wa,destination:ak,destinationReversed:Gf,outstanding:Ra,active:ha,inactive:qk};var Nt=memo(p=>{let{variant:o="inActive",badgeCount:s,icon:C,label:c$1,dropdownOptions:e$2,selectedStatus:i,onButtonBodyClick:I,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=Jc(useId(),"status-button"),[Lt,M]=useState(0),{t:E}=useTranslation(),y=useRef(null),[T,f$1]=useState(null),[n,A]=useState(i??e$2?.[0]?.status);useEffect(()=>{i!==void 0&&A(i);},[i]);let d$1=useMemo(()=>!!e$2?.length,[e$2]),h$1=!!T&&Lt>1,l=o==="active",x=useMemo(()=>l?"active":"inActive",[l]),m=useMemo(()=>n?e$2?.find(t=>t.status===n):null,[n,e$2]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:o,children:m.icon});let t=n&&u[n]?n:C;if(t&&u[t])return jsx(g,{icon:t,variant:o,src:u[t],alt:`${t}-icon`})},[m,n,u,C,o]),wt=useMemo(()=>!s||Number.isNaN(Ta(s))?null:jsx(e,{variant:x,children:r(Number(s))}),[s,x]),H=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$1=useCallback(()=>{f$1(null);},[]),P=useCallback(()=>{d$1&&f$1(h$1?null:y.current);},[d$1,h$1]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),I?.(n||e$2?.[0]?.status||"all"),P(),M(B=>B+1);},[p,I,n,e$2,P]),D=useCallback(t=>B=>{t?.onClick?.(B),A(t.status),g$1();},[g$1]),Et=useMemo(()=>e$2?.map(t=>({...t,onClick:D(t)}))||[],[e$2,D]),yt=a[o],Tt=useMemo(()=>m?.label||(n?E(n):c$1),[m,n,E,c$1]);return jsxs(Fragment,{children:[jsx(yt,{id:St,"data-testid":"StatusButton",...bt,ref:y,onClick:Mt,statusVariant:o,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e$1,{variant:o,children:[kt,Tt,wt]}),H&&jsx(d,{children:H})]})}),h$1&&d$1&&jsx(c,{open:h$1,onClose:g$1,anchorEl:T,menuItems:Et})]})}),gt=Nt;var en=gt;
2
2
  export{L as a,en as b};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId,useState,useRef}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p=styled(l)(({theme:e})=>({position:"absolute",color:e.palette.grey[700],zIndex:0})),u=styled(l)(()=>({position:"relative",flexGrow:1,fontSize:"11px"}));function D({value:e,updateValue:m,placeholder:f,sx:g,maxLength:r}){let x=Jc(useId(),"resizable-height-input"),[h,i]=useState(false),n=useRef(null);return jsxs(u,{id:x,"data-testid":"ResizableHeightInput",sx:g,onClick:()=>{n.current&&n.current.focus(),i(true);},children:[!h&&!e&&jsx(p,{children:f}),jsx(l,{contentEditable:true,suppressContentEditableWarning:true,sx:{outline:"none",flexGrow:1},onBlur:t=>{let o=t.target;m(o.innerText),i(false);},ref:n,onKeyDown:t=>{let o=t.target;r&&o.innerText.length>=r&&t.preventDefault();},children:e})]})}var c=memo(D);var k=c;export{k as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId,useState,useRef}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p=styled(l)(({theme:e})=>({position:"absolute",color:e.palette.grey[700],zIndex:0})),u=styled(l)(()=>({position:"relative",flexGrow:1,fontSize:"11px"}));function D({value:e,updateValue:m,placeholder:f,sx:g,maxLength:r}){let x=Jc(useId(),"resizable-height-input"),[h,i]=useState(false),n=useRef(null);return jsxs(u,{id:x,"data-testid":"ResizableHeightInput",sx:g,onClick:()=>{n.current&&n.current.focus(),i(true);},children:[!h&&!e&&jsx(p,{children:f}),jsx(l,{contentEditable:true,suppressContentEditableWarning:true,sx:{outline:"none",flexGrow:1},onBlur:t=>{let o=t.target;m(o.innerText),i(false);},ref:n,onKeyDown:t=>{let o=t.target;r&&o.innerText.length>=r&&t.preventDefault();},children:e})]})}var c=memo(D);var k=c;export{k as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId}from'react';import f from'@mui/material/Box';import a from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(a,{shouldForwardProp:o=>o!=="isError"})(({theme:o})=>({padding:"8px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",height:32,color:o.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:o.palette.grey[700],fontWeight:400}}));function i({isError:o,...t}){let l=Jc(useId(),"input");return jsx(f,{id:l,"data-testid":"Input",sx:{flexGrow:1},onClick:d=>{d.stopPropagation();},children:jsx(p,{...t,placeholder:t.placeholder,isError:o,disableUnderline:true})})}i.displayName="Input";var n=memo(i);var S=n;export{S as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import f from'@mui/material/Box';import a from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(a,{shouldForwardProp:o=>o!=="isError"})(({theme:o})=>({padding:"8px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",height:32,color:o.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:o.palette.grey[700],fontWeight:400}}));function i({isError:o,...t}){let l=Jc(useId(),"input");return jsx(f,{id:l,"data-testid":"Input",sx:{flexGrow:1},onClick:d=>{d.stopPropagation();},children:jsx(p,{...t,placeholder:t.placeholder,isError:o,disableUnderline:true})})}i.displayName="Input";var n=memo(i);var S=n;export{S as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-ORXU3VCN.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var i=styled(a)(({theme:t})=>({color:t.palette.text.primary,"&.CustomVariant_text":{height:24},display:"inline-flex"}));var n=({title:t,slotProps:e={},children:l})=>{let{chip:h={},tooltip:a={}}=e,{sx:s,...c}=h;return jsx(a$1,{...a,title:t,children:jsx(i,{...c,sx:{height:24,display:"inline-flex",color:"text.primary",...s},children:l})})},C=n;export{C as a};
1
+ import {a}from'./chunk-WH457HQP.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var i=styled(a)(({theme:t})=>({color:t.palette.text.primary,"&.CustomVariant_text":{height:24},display:"inline-flex"}));var n=({title:t,slotProps:e={},children:l})=>{let{chip:h={},tooltip:a={}}=e,{sx:s,...c}=h;return jsx(a$1,{...a,title:t,children:jsx(i,{...c,sx:{height:24,display:"inline-flex",color:"text.primary",...s},children:l})})},C=n;export{C as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-HQI3NKYJ.js';import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId}from'react';import f from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(f,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",color:"#20232B"})),r=styled(a$1)(({theme:e})=>({padding:0,width:"14px !important",svg:{width:"14px !important",height:"14px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}}));function g({isSelected:e,isDisabled:o,isIndeterminate:l,hideCheckbox:p,onClick:s,children:c,className:t,...x}){let b=Jc(useId(),"menu-item"),n=o?"disabled menu-item":"menu-item",u=t?`${n} ${t}`:n;return jsxs(a,{id:b,"data-testid":"MenuItem",className:u,onClick:s,disabled:o,...x,children:[!p&&jsx(r,{size:"small",checked:e,indeterminate:l,disabled:o}),c]})}var N=memo(g);export{N as a};
1
+ import {a as a$1}from'./chunk-DIFTS5M3.js';import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import f from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(f,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",color:"#20232B"})),r=styled(a$1)(({theme:e})=>({padding:0,width:"14px !important",svg:{width:"14px !important",height:"14px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}}));function g({isSelected:e,isDisabled:o,isIndeterminate:l,hideCheckbox:p,onClick:s,children:c,className:t,...x}){let b=Jc(useId(),"menu-item"),n=o?"disabled menu-item":"menu-item",u=t?`${n} ${t}`:n;return jsxs(a,{id:b,"data-testid":"MenuItem",className:u,onClick:s,disabled:o,...x,children:[!p&&jsx(r,{size:"small",checked:e,indeterminate:l,disabled:o}),c]})}var N=memo(g);export{N as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {useId}from'react';import a from'@mui/material/Box';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var e=styled(motion.div)(()=>({width:"100%",height:"100%",cursor:"pointer",".card-front > div, .card-back > div, .card-container":{width:"inherit",height:"inherit"},".card-container":{perspective:"1000px"},".card":{width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"},".card-front, .card-back":{position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},".card-back":{transform:"rotateY(180deg)"}}));function t({frontCard:d,backCard:n,isFlipped:p,isHovered:c}){let m=Jc(useId(),"flipping-card");return jsx(e,{id:m,"data-testid":"FlippingCard",children:jsx(motion.div,{className:"card-container",children:jsxs(motion.div,{className:"card",animate:{rotateY:p?180:c?20:0},transition:{duration:.3},children:[jsx(motion.div,{className:"card-front",children:jsx(a,{children:d})}),jsx(motion.div,{className:"card-back",children:jsx(a,{children:n})})]})})})}var N=t;export{N as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {useId}from'react';import a from'@mui/material/Box';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var e=styled(motion.div)(()=>({width:"100%",height:"100%",cursor:"pointer",".card-front > div, .card-back > div, .card-container":{width:"inherit",height:"inherit"},".card-container":{perspective:"1000px"},".card":{width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"},".card-front, .card-back":{position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},".card-back":{transform:"rotateY(180deg)"}}));function t({frontCard:d,backCard:n,isFlipped:p,isHovered:c}){let m=Jc(useId(),"flipping-card");return jsx(e,{id:m,"data-testid":"FlippingCard",children:jsx(motion.div,{className:"card-container",children:jsxs(motion.div,{className:"card",animate:{rotateY:p?180:c?20:0},transition:{duration:.3},children:[jsx(motion.div,{className:"card-front",children:jsx(a,{children:d})}),jsx(motion.div,{className:"card-back",children:jsx(a,{children:n})})]})})})}var N=t;export{N as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-BYJ2XLTW.js';import {Jc}from'./chunk-OIVTFRJE.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var r=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexDirection:"row"})),i=styled(b)(()=>({padding:"0.75px 12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"}));var x=({chips:t,containerSx:a,defaultChipSx:n,...l})=>{let u=Jc(useId(),"status-group-chips");return !t||t.length===0?null:jsx(r,{id:u,"data-testid":"StatusGroupChips",sx:a,...l,children:t.map(({key:d,content:C,sx:f,...m})=>jsx(i,{sx:{...n,...f},...m,children:C},d))})},y=x;export{y as a};
1
+ import {b}from'./chunk-P37RYOJW.js';import {Jc}from'./chunk-ATSYOVOS.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var r=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexDirection:"row"})),i=styled(b)(()=>({padding:"0.75px 12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"}));var x=({chips:t,containerSx:a,defaultChipSx:n,...l})=>{let u=Jc(useId(),"status-group-chips");return !t||t.length===0?null:jsx(r,{id:u,"data-testid":"StatusGroupChips",sx:a,...l,children:t.map(({key:d,content:C,sx:f,...m})=>jsx(i,{sx:{...n,...f},...m,children:C},d))})},y=x;export{y as a};
@@ -1 +1 @@
1
- import {c,d}from'./chunk-GONBJ7T4.js';import {a,c as c$1,d as d$1}from'./chunk-O6YEG23R.js';import {b,a as a$1}from'./chunk-WVGNLRZQ.js';import {Jc,Ga}from'./chunk-OIVTFRJE.js';import {Ke as Ke$1}from'./chunk-3JUTMTQV.js';import {createContext,memo,useRef,useId,useContext,useCallback,useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import Ue from'@mui/material/Box';import {Resizable}from're-resizable';import Xe from'react-draggable';import {motion}from'framer-motion';var O=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{}});var ye=555,Te=545;function q({children:e,isOpen:o,onClose:i,defaultWindowHeight:r,defaultWindowWidth:a,initialPosition:s,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}){let{height:n,width:f}=a$1(),u=a||ye,t=r||Te,[b,z]=useState({x:s?.x??f/2+u/2,y:s?.y??n/2-t/2}),[I,c]=useState(false),[v,P]=useState(false),[S,C]=useState(false),[h,R]=useState(true),w=useRef(),[E,W]=useState({width:a??0,height:r??0}),x=useCallback(g=>{w?.current?.updateSize(g);},[]),D=useCallback(g=>{w.current?.updateSize(g),W(B=>({width:g.width??B.width,height:g.height??B.height}));},[]),U=useMemo(()=>({position:b,setPosition:z,resizableRef:w,windowZIndex:1,isOpen:o,setIsMaximized:c,setIsSidebarExpanded:R,setIsToolbarAnimationDisabled:C,setIsResized:P,isMaximized:I,isToolbarAnimationDisabled:S,isSidebarExpanded:h,isResized:v,dimensions:E,setNewDimensions:W,viewerDefaultWidth:u,viewerDefaultHeight:t,onClose:i,fullWindowWidth:f,fullWindowHeight:n,updateRefSize:x,updateSize:D,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}),[b,z,w,o,c,R,C,P,I,S,h,v,E,W,f,n,u,t,x,D,i,l,d,p,m]);return jsx(O.Provider,{value:U,children:e})}var A=.5,de=183,pe=287,se=840,le=545,Y=35;function Pe({title:e,onClose:o,onMaximize:i,maximized:r=false,id:a$1,onRequestClick:s,isSidebarExpanded:l=false,isHovered:d$2=false,onMouseHover:p,onMouseLeave:m,showSectionsButton:n,rightActions:f,icon:u}){return jsx(c,{id:a$1,"data-testid":"UserTitleBar",maximized:r||false,children:jsx(d,{onMouseEnter:p,onMouseLeave:m,isMaximized:r,isHovered:d$2,title:e,icon:u||Ke$1,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:o}),jsx(c$1,{isMaximized:r,onClick:i}),n&&jsx(d$1,{onClick:s,isExpanded:!l,isHovered:d$2,children:"Sidebar"})]}),rightActions:f})})}var me=memo(Pe);var $=me;function ke({isMaximized:e,setIsToolbarAnimationDisabled:o,setIsMaximized:i,onClose:r,isSidebarExpanded:a,setIsSidebarExpanded:s,isToolbarAnimationDisabled:l,title:d,showSectionsButton:p,rightActions:m,icon:n}){let{isHovered:f,onMouseEnter:u,onMouseLeave:t}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx($,{title:d||"Users",showSectionsButton:p,onClose:r,onMaximize:()=>{i?.(b=>!b),o?.(true),setTimeout(()=>{o?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{o?.(false),s(!a);},isSidebarExpanded:a,isHovered:f,onMouseHover:u,onMouseLeave:t,rightActions:m,icon:n})})}var ue=memo(ke);var xe=ue;function qe({children:e,titleBar:o,titleBarText:i,mainAppOrder:r,mainAppIsMinimized:a,showSectionsButton:s=true,rightActions:l,titleBarIcon:d}){let p=useRef(null),m=Jc(useId(),"app-window"),{dimensions:n,position:f,resizableRef:u,isMaximized:t,isOpen:b,onClose:z,viewerDefaultWidth:I,viewerDefaultHeight:c,windowZIndex:v,setPosition:P,setNewDimensions:S,isToolbarAnimationDisabled:C,fullWindowWidth:h,fullWindowHeight:R,setIsMaximized:w,setIsResized:E,isResized:W,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:D,isSidebarExpanded:U,minWidth:g,maxWidth:B,minHeight:He,maxHeight:Ae}=useContext(O),j=Ga(),Ie=useCallback((Z,X,ee)=>{E(true),S({width:ee.offsetWidth,height:ee.offsetHeight});},[S,E]),M=n.width||I;return createPortal(jsx(Xe,{nodeRef:p,disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:h/2-M/2,y:R/2-c/2},position:{x:h-f.x,y:f.y},onStop:(Z,X)=>{P({x:h-X.x,y:X.y});},bounds:{top:10},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",zIndex:Number(r||0)+v,...a&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:j?M:"fit-content",height:j?c:"fit-content"},...t&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:W?"fit-content":M,height:W?"fit-content":"100%",...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{w(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:b,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,left:true,right:true,bottomRight:true,bottom:true,top:true},size:{width:n.width,height:n.height},maxHeight:Ae??R-40,maxWidth:B??h,minWidth:t?"100vw":g??I,minHeight:t?"100vh":He??c,ref:Z=>{u.current=Z;},onResizeStart:()=>{x(true);},onResizeStop:()=>{x(false);},onResize:Ie,defaultSize:{width:M,height:c},style:{background:"transparent",height:n.height,overflow:"hidden",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ue,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[o??jsx(xe,{setIsToolbarAnimationDisabled:x,onClose:z,setIsMaximized:w,isToolbarAnimationDisabled:C,setIsSidebarExpanded:D,isSidebarExpanded:U,title:i,isMaximized:t,showSectionsButton:s,rightActions:l,icon:d}),e]})})})}),document.body)}var ce=memo(qe);var Je=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:o?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Ke=styled(Button)(({theme:e,disabled:o})=>({background:o?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Qe=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),je=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),eo=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var K=ce;function oo({children:e,windowProps:o,...i}){return i.isOpen?jsx(q,{...i,children:jsx(K,{...o,children:e})}):null}var ge=oo;function io({title:e,maximized:o=false,id:i,isHovered:r=false,onMouseHover:a,onMouseLeave:s,leftActions:l,titleIconSrc:d$1,sx:p,...m}){return jsx(c,{className:"header-wrapper",id:i,maximized:o||false,sx:p,...m,children:jsx(d,{onMouseEnter:a,onMouseLeave:s,isMaximized:o,isHovered:r,title:e||"",icon:d$1,leftActions:l})})}var Q=memo(io);function ao({isMaximized:e,id:o,isToolbarAnimationDisabled:i,title:r,leftActions:a$1,onClose:s,onMaximize:l,sx:d}){let{isHovered:p,onMouseEnter:m,onMouseLeave:n}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(Q,{title:r,maximized:e,id:o||"draggable-dialog-title",isHovered:p,onMouseHover:m,onMouseLeave:n,leftActions:a$1||jsxs(Fragment,{children:[jsx(a,{onClick:s}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:d})})}var We=memo(ao);var lo=We;var Rt=ge;export{O as a,q as b,A as c,de as d,pe as e,se as f,le as g,Y as h,$ as i,Je as j,Ke as k,Qe as l,je as m,eo as n,K as o,Q as p,lo as q,Rt as r};
1
+ import {a,c as c$1,d as d$1}from'./chunk-O6YEG23R.js';import {c,d}from'./chunk-AG7327OT.js';import {b,a as a$1}from'./chunk-COAYA7GT.js';import {Jc,Ga}from'./chunk-ATSYOVOS.js';import {Ke as Ke$1}from'./chunk-3JUTMTQV.js';import {createContext,memo,useRef,useId,useContext,useCallback,useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import Ue from'@mui/material/Box';import {Resizable}from're-resizable';import Xe from'react-draggable';import {motion}from'framer-motion';var O=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{}});var ye=555,Te=545;function q({children:e,isOpen:o,onClose:i,defaultWindowHeight:r,defaultWindowWidth:a,initialPosition:s,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}){let{height:n,width:f}=a$1(),u=a||ye,t=r||Te,[b,z]=useState({x:s?.x??f/2+u/2,y:s?.y??n/2-t/2}),[I,c]=useState(false),[v,P]=useState(false),[S,C]=useState(false),[h,R]=useState(true),w=useRef(),[E,W]=useState({width:a??0,height:r??0}),x=useCallback(g=>{w?.current?.updateSize(g);},[]),D=useCallback(g=>{w.current?.updateSize(g),W(B=>({width:g.width??B.width,height:g.height??B.height}));},[]),U=useMemo(()=>({position:b,setPosition:z,resizableRef:w,windowZIndex:1,isOpen:o,setIsMaximized:c,setIsSidebarExpanded:R,setIsToolbarAnimationDisabled:C,setIsResized:P,isMaximized:I,isToolbarAnimationDisabled:S,isSidebarExpanded:h,isResized:v,dimensions:E,setNewDimensions:W,viewerDefaultWidth:u,viewerDefaultHeight:t,onClose:i,fullWindowWidth:f,fullWindowHeight:n,updateRefSize:x,updateSize:D,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}),[b,z,w,o,c,R,C,P,I,S,h,v,E,W,f,n,u,t,x,D,i,l,d,p,m]);return jsx(O.Provider,{value:U,children:e})}var A=.5,de=183,pe=287,se=840,le=545,Y=35;function Pe({title:e,onClose:o,onMaximize:i,maximized:r=false,id:a$1,onRequestClick:s,isSidebarExpanded:l=false,isHovered:d$2=false,onMouseHover:p,onMouseLeave:m,showSectionsButton:n,rightActions:f,icon:u}){return jsx(c,{id:a$1,"data-testid":"UserTitleBar",maximized:r||false,children:jsx(d,{onMouseEnter:p,onMouseLeave:m,isMaximized:r,isHovered:d$2,title:e,icon:u||Ke$1,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:o}),jsx(c$1,{isMaximized:r,onClick:i}),n&&jsx(d$1,{onClick:s,isExpanded:!l,isHovered:d$2,children:"Sidebar"})]}),rightActions:f})})}var me=memo(Pe);var $=me;function ke({isMaximized:e,setIsToolbarAnimationDisabled:o,setIsMaximized:i,onClose:r,isSidebarExpanded:a,setIsSidebarExpanded:s,isToolbarAnimationDisabled:l,title:d,showSectionsButton:p,rightActions:m,icon:n}){let{isHovered:f,onMouseEnter:u,onMouseLeave:t}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx($,{title:d||"Users",showSectionsButton:p,onClose:r,onMaximize:()=>{i?.(b=>!b),o?.(true),setTimeout(()=>{o?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{o?.(false),s(!a);},isSidebarExpanded:a,isHovered:f,onMouseHover:u,onMouseLeave:t,rightActions:m,icon:n})})}var ue=memo(ke);var xe=ue;function qe({children:e,titleBar:o,titleBarText:i,mainAppOrder:r,mainAppIsMinimized:a,showSectionsButton:s=true,rightActions:l,titleBarIcon:d}){let p=useRef(null),m=Jc(useId(),"app-window"),{dimensions:n,position:f,resizableRef:u,isMaximized:t,isOpen:b,onClose:z,viewerDefaultWidth:I,viewerDefaultHeight:c,windowZIndex:v,setPosition:P,setNewDimensions:S,isToolbarAnimationDisabled:C,fullWindowWidth:h,fullWindowHeight:R,setIsMaximized:w,setIsResized:E,isResized:W,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:D,isSidebarExpanded:U,minWidth:g,maxWidth:B,minHeight:He,maxHeight:Ae}=useContext(O),j=Ga(),Ie=useCallback((Z,X,ee)=>{E(true),S({width:ee.offsetWidth,height:ee.offsetHeight});},[S,E]),M=n.width||I;return createPortal(jsx(Xe,{nodeRef:p,disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:h/2-M/2,y:R/2-c/2},position:{x:h-f.x,y:f.y},onStop:(Z,X)=>{P({x:h-X.x,y:X.y});},bounds:{top:10},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",zIndex:Number(r||0)+v,...a&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:j?M:"fit-content",height:j?c:"fit-content"},...t&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:W?"fit-content":M,height:W?"fit-content":"100%",...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{w(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:b,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,left:true,right:true,bottomRight:true,bottom:true,top:true},size:{width:n.width,height:n.height},maxHeight:Ae??R-40,maxWidth:B??h,minWidth:t?"100vw":g??I,minHeight:t?"100vh":He??c,ref:Z=>{u.current=Z;},onResizeStart:()=>{x(true);},onResizeStop:()=>{x(false);},onResize:Ie,defaultSize:{width:M,height:c},style:{background:"transparent",height:n.height,overflow:"hidden",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ue,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[o??jsx(xe,{setIsToolbarAnimationDisabled:x,onClose:z,setIsMaximized:w,isToolbarAnimationDisabled:C,setIsSidebarExpanded:D,isSidebarExpanded:U,title:i,isMaximized:t,showSectionsButton:s,rightActions:l,icon:d}),e]})})})}),document.body)}var ce=memo(qe);var Je=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:o?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Ke=styled(Button)(({theme:e,disabled:o})=>({background:o?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Qe=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),je=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),eo=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var K=ce;function oo({children:e,windowProps:o,...i}){return i.isOpen?jsx(q,{...i,children:jsx(K,{...o,children:e})}):null}var ge=oo;function io({title:e,maximized:o=false,id:i,isHovered:r=false,onMouseHover:a,onMouseLeave:s,leftActions:l,titleIconSrc:d$1,sx:p,...m}){return jsx(c,{className:"header-wrapper",id:i,maximized:o||false,sx:p,...m,children:jsx(d,{onMouseEnter:a,onMouseLeave:s,isMaximized:o,isHovered:r,title:e||"",icon:d$1,leftActions:l})})}var Q=memo(io);function ao({isMaximized:e,id:o,isToolbarAnimationDisabled:i,title:r,leftActions:a$1,onClose:s,onMaximize:l,sx:d}){let{isHovered:p,onMouseEnter:m,onMouseLeave:n}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...i&&{duration:0}},children:jsx(Q,{title:r,maximized:e,id:o||"draggable-dialog-title",isHovered:p,onMouseHover:m,onMouseLeave:n,leftActions:a$1||jsxs(Fragment,{children:[jsx(a,{onClick:s}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:d})})}var We=memo(ao);var lo=We;var Rt=ge;export{O as a,q as b,A as c,de as d,pe as e,se as f,le as g,Y as h,$ as i,Je as j,Ke as k,Qe as l,je as m,eo as n,K as o,Q as p,lo as q,Rt as r};
@@ -1 +1 @@
1
- import {Ga,Jc}from'./chunk-OIVTFRJE.js';import I,{useId}from'react';import h from'@mui/material/Box';import y from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{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 w=Ga();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},m){let f=Jc(useId(),"input-number"),b=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}w&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(h,{id:f,"data-testid":"InputNumber",sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(a,{...t,ref:m,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:b,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var d=I.forwardRef(l);var H=d;export{H as a};
1
+ import {Ga,Jc}from'./chunk-ATSYOVOS.js';import I,{useId}from'react';import h from'@mui/material/Box';import y from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{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 w=Ga();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},m){let f=Jc(useId(),"input-number"),b=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}w&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(h,{id:f,"data-testid":"InputNumber",sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(a,{...t,ref:m,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:b,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var d=I.forwardRef(l);var H=d;export{H as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-KHM5KW53.js';import {eb,cb,Jc,nb}from'./chunk-OIVTFRJE.js';import {Jj,wa,va,ua,Hi}from'./chunk-3JUTMTQV.js';import {b as b$1}from'./chunk-YRT7GXGY.js';import {memo,useId}from'react';import M from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b=b$1(eb(),1);var D=styled(M,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:cb(t)?"18px":"24px"}));var e={DESKTOP:ua,PHONE:va,TABLET:wa,TERMINAL:Jj};var i=o=>!!e[o];function P({type:o,isTextShown:t,tableMode:E,...v}){let p=Jc(useId(),"device-icon"),{t:C}=useTranslation(),m=i(o)?e[o]:null;return jsx(a,{title:m?`Device - ${nb((o??"").toLowerCase())}`:C("unKnown"),children:t?jsx(D,{id:p,"data-testid":"DeviceIcon",tableMode:E,children:o?(0, b.default)(o):"Unknown"}):jsx(M,{...v,id:p,"data-testid":"DeviceIcon",component:"img",src:o?m||Hi:Hi,alt:o})})}var T=memo(P);var Y=T;export{e as a,i as b,Y as c};
1
+ import {a}from'./chunk-KHM5KW53.js';import {eb,cb,Jc,nb}from'./chunk-ATSYOVOS.js';import {Jj,wa,va,ua,Hi}from'./chunk-3JUTMTQV.js';import {b as b$1}from'./chunk-YRT7GXGY.js';import {memo,useId}from'react';import M from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b=b$1(eb(),1);var D=styled(M,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:cb(t)?"18px":"24px"}));var e={DESKTOP:ua,PHONE:va,TABLET:wa,TERMINAL:Jj};var i=o=>!!e[o];function P({type:o,isTextShown:t,tableMode:E,...v}){let p=Jc(useId(),"device-icon"),{t:C}=useTranslation(),m=i(o)?e[o]:null;return jsx(a,{title:m?`Device - ${nb((o??"").toLowerCase())}`:C("unKnown"),children:t?jsx(D,{id:p,"data-testid":"DeviceIcon",tableMode:E,children:o?(0, b.default)(o):"Unknown"}):jsx(M,{...v,id:p,"data-testid":"DeviceIcon",component:"img",src:o?m||Hi:Hi,alt:o})})}var T=memo(P);var Y=T;export{e as a,i as b,Y as c};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-ZI75N7BZ.js';import {a as a$3}from'./chunk-K26V7ISU.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a}from'./chunk-GNY2VGGW.js';import {fc,Jc}from'./chunk-OIVTFRJE.js';import {ui,vi,Bi,Yd}from'./chunk-3JUTMTQV.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=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"})),J=styled(p)(({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"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),b=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({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}})),O=styled(p)(()=>({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:x,isCreateLoading:U,progress:te,error:R,errorHint:oe,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:B,successFooter:pe,progressVariant:ne},ae)=>{let{t:n}=useTranslation(),[a,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:j,isDragReject:M,fileRejections:s}=useDropzone(x);useImperativeHandle(ae,()=>({open:f}),[f]),useEffect(()=>{H(j);},[j]);let C=fc(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return M||me?n("invalidFileType"):ce?`File is larger than ${C}`:R},[M,R,s,C,n]),W=useMemo(()=>a.length?jsxs(b,{sx:{fontWeight:600},children:[jsx(p,{children:a[0].name}),jsx(z,{children:fc(a[0].size)})]}):null,[a]);return P&&a.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:ui,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:vi,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:ie,onClick:()=>{re?.(a);},children:"Bulk Send"})]})]}):U&&a.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??n("uploading")}),jsx(g,{children:n("wait")})]}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[U&&jsx(a$3,{size:56,value:te,variant:ne}),W]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:n("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:B,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Bi:Yd,width:56,height:56}),oe,W,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:n("uploadAgain")})}):jsxs(b,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",C]}),e&&jsx(g,{children:n("supportedFormats",{accept:e})})]})]})]}),i]})});X.displayName="FileUploadBase";var Y=memo(X);var _=forwardRef((e,i)=>{let x=Jc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Y,{...e,ref:i})})});_.displayName="FileUpload";var ee=memo(_);var Qe=ee;export{Qe as a};
1
+ import {a as a$2}from'./chunk-EWAOFKBQ.js';import {a as a$3}from'./chunk-7B2FRRRI.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a}from'./chunk-GNY2VGGW.js';import {fc,Jc}from'./chunk-ATSYOVOS.js';import {ui,vi,Bi,Yd}from'./chunk-3JUTMTQV.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=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"})),J=styled(p)(({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"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),b=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({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}})),O=styled(p)(()=>({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:x,isCreateLoading:U,progress:te,error:R,errorHint:oe,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:B,successFooter:pe,progressVariant:ne},ae)=>{let{t:n}=useTranslation(),[a,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:j,isDragReject:M,fileRejections:s}=useDropzone(x);useImperativeHandle(ae,()=>({open:f}),[f]),useEffect(()=>{H(j);},[j]);let C=fc(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return M||me?n("invalidFileType"):ce?`File is larger than ${C}`:R},[M,R,s,C,n]),W=useMemo(()=>a.length?jsxs(b,{sx:{fontWeight:600},children:[jsx(p,{children:a[0].name}),jsx(z,{children:fc(a[0].size)})]}):null,[a]);return P&&a.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:ui,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:vi,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:ie,onClick:()=>{re?.(a);},children:"Bulk Send"})]})]}):U&&a.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??n("uploading")}),jsx(g,{children:n("wait")})]}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[U&&jsx(a$3,{size:56,value:te,variant:ne}),W]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:n("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:B,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Bi:Yd,width:56,height:56}),oe,W,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:n("uploadAgain")})}):jsxs(b,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",C]}),e&&jsx(g,{children:n("supportedFormats",{accept:e})})]})]})]}),i]})});X.displayName="FileUploadBase";var Y=memo(X);var _=forwardRef((e,i)=>{let x=Jc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Y,{...e,ref:i})})});_.displayName="FileUpload";var ee=memo(_);var Qe=ee;export{Qe as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId}from'react';import i from'@mui/material/Skeleton';import {jsx}from'react/jsx-runtime';function o({variant:n="rounded",height:r=16,...m}){let d=Jc(useId(),"skeleton");return jsx(i,{id:d,"data-testid":"Skeleton",variant:n,height:r,...m})}o.displayName="Skeleton";var t=memo(o);var g=t;export{g as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import i from'@mui/material/Skeleton';import {jsx}from'react/jsx-runtime';function o({variant:n="rounded",height:r=16,...m}){let d=Jc(useId(),"skeleton");return jsx(i,{id:d,"data-testid":"Skeleton",variant:n,height:r,...m})}o.displayName="Skeleton";var t=memo(o);var g=t;export{g as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-WN5DXLHY.js';import {Jc}from'./chunk-OIVTFRJE.js';import c,{forwardRef,useId,useMemo,useState,useRef,useEffect}from'react';import {styled,Box,useTheme}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=styled(forwardRef((t,o)=>{let{className:r,variant:n="text",...e}=t,i=`${r||""} CustomVariant_${n}`;return jsx(Box,{ref:o,...e,className:i})}),{shouldForwardProp:t=>t!=="icon"})(({theme:t,variant:o="text",icon:r})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"30px",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",...r&&{justifyContent:"flex-start",gap:t.spacing(1)},...o==="text"&&{padding:`${t.spacing(.75)} ${t.spacing(1)}`,height:"30px",maxWidth:"150px"},...o==="circular"&&{height:24,width:24},...o==="pill-icon"&&{height:24,width:36}})),C=styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)})),h=styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:"transparent",borderRadius:"16px"})),x=t=>{let{index:o,xDelta:r=39,shadow:n,itemsCount:e=0,expandDirection:i="RIGHT"}=t,a=(e-1)*6;return {start:{x:o*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:i==="RIGHT"?o*r:a+-1*((e-1-o)*r),transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:n}}};var $=forwardRef(({children:t,...o},r)=>{let n=Jc(useId(),"chip"),{icon:e}=o;return jsxs(f,{ref:r,id:n,"data-testid":"Chip",...o,children:[jsx(Fragment,{children:e}),t]})}),H=$;var F=({order:t,children:o,getSourceAnimation:r,sourceCount:n,expandDirection:e})=>{let i=r||x,a$1=useTheme(),p=useMemo(()=>i({index:t,shadow:a$1.shadows[4],itemsCount:n,expandDirection:e}),[t,a$1.shadows,i,n,e]);return jsx(a,{order:t,variants:p,children:o})},u=F;var g=({children:t,className:o,getSourceAnimation:r,expandDirection:n})=>{let e=c.Children.count(t),[i,a]=useState({width:0,height:0}),p=useRef(null);useEffect(()=>{if(!p.current)return;let s=p.current;a({width:s.clientWidth,height:s.clientHeight});},[]);let y=useMemo(()=>c.Children.map(t,s=>!c.isValidElement(s)||s.type!==u?(console.error(`\u26A0\uFE0F WARNING: "${g.name}" must contains only children of type "${u.name}"`),s):c.cloneElement(s,{...s.props,sourceCount:e,getSourceAnimation:r,expandDirection:n})),[t,r,e,n]);return jsx(C,{"data-testid":"styled-source-cell",sx:{...i},children:jsx(h,{ref:p,layout:true,className:o,whileHover:"animate",animate:"start",sourcesCount:e,variants:{animate:{width:e*38,zIndex:50}},style:{zIndex:29},children:y})})},L=g;export{H as a,u as b,L as c};
1
+ import {a}from'./chunk-WN5DXLHY.js';import {Jc}from'./chunk-ATSYOVOS.js';import c,{forwardRef,useId,useMemo,useState,useRef,useEffect}from'react';import {styled,Box,useTheme}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=styled(forwardRef((t,o)=>{let{className:r,variant:n="text",...e}=t,i=`${r||""} CustomVariant_${n}`;return jsx(Box,{ref:o,...e,className:i})}),{shouldForwardProp:t=>t!=="icon"})(({theme:t,variant:o="text",icon:r})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"30px",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",...r&&{justifyContent:"flex-start",gap:t.spacing(1)},...o==="text"&&{padding:`${t.spacing(.75)} ${t.spacing(1)}`,height:"30px",maxWidth:"150px"},...o==="circular"&&{height:24,width:24},...o==="pill-icon"&&{height:24,width:36}})),C=styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)})),h=styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:"transparent",borderRadius:"16px"})),x=t=>{let{index:o,xDelta:r=39,shadow:n,itemsCount:e=0,expandDirection:i="RIGHT"}=t,a=(e-1)*6;return {start:{x:o*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:i==="RIGHT"?o*r:a+-1*((e-1-o)*r),transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:n}}};var $=forwardRef(({children:t,...o},r)=>{let n=Jc(useId(),"chip"),{icon:e}=o;return jsxs(f,{ref:r,id:n,"data-testid":"Chip",...o,children:[jsx(Fragment,{children:e}),t]})}),H=$;var F=({order:t,children:o,getSourceAnimation:r,sourceCount:n,expandDirection:e})=>{let i=r||x,a$1=useTheme(),p=useMemo(()=>i({index:t,shadow:a$1.shadows[4],itemsCount:n,expandDirection:e}),[t,a$1.shadows,i,n,e]);return jsx(a,{order:t,variants:p,children:o})},u=F;var g=({children:t,className:o,getSourceAnimation:r,expandDirection:n})=>{let e=c.Children.count(t),[i,a]=useState({width:0,height:0}),p=useRef(null);useEffect(()=>{if(!p.current)return;let s=p.current;a({width:s.clientWidth,height:s.clientHeight});},[]);let y=useMemo(()=>c.Children.map(t,s=>!c.isValidElement(s)||s.type!==u?(console.error(`\u26A0\uFE0F WARNING: "${g.name}" must contains only children of type "${u.name}"`),s):c.cloneElement(s,{...s.props,sourceCount:e,getSourceAnimation:r,expandDirection:n})),[t,r,e,n]);return jsx(C,{"data-testid":"styled-source-cell",sx:{...i},children:jsx(h,{ref:p,layout:true,className:o,whileHover:"animate",animate:"start",sourcesCount:e,variants:{animate:{width:e*38,zIndex:50}},style:{zIndex:29},children:y})})},L=g;export{H as a,u as b,L as c};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {memo,useId}from'react';import s from'react-dom';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled(Box)(()=>({position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:999}));function a(m){let p=Jc(useId(),"custom-backdrop");return s.createPortal(jsx(t,{...m,id:p,"data-testid":"CustomBackdrop"}),document.body)}var r=memo(a);var b=r;export{b as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import s from'react-dom';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled(Box)(()=>({position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:999}));function a(m){let p=Jc(useId(),"custom-backdrop");return s.createPortal(jsx(t,{...m,id:p,"data-testid":"CustomBackdrop"}),document.body)}var r=memo(a);var b=r;export{b as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {Box,Typography}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:r=>!["value","isDecimal"].includes(r)})(({value:r,isDecimal:e,theme:o})=>({width:`${r}%`,minWidth:r>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:o.palette.background.gradient.darkShadedBlue,display:"flex",alignItems:"center",justifyContent:r>10?"flex-end":"center",paddingInlineEnd:r>10?"2px":"0px",...r===0&&{background:"#20232B1A"},...e&&{minWidth:r>=10?"40px":"36px"}})),d=styled(Box,{shouldForwardProp:r=>r!=="value"})(({value:r})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:"#20232B1A",borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...r===0&&{background:"#20232B00"}})),p=styled(Typography,{shouldForwardProp:r=>r!=="value"})(({value:r})=>({fontSize:"8px",fontWeight:700,color:"#FFF",padding:"2px 4px",...r===0&&{color:"#8D8D9480"}}));function s({value:r}){let e=Jc(useId(),"progress-bar"),o=!Number.isInteger(r);return jsx(a,{id:e,"data-testid":"ProgressBar",value:r,isDecimal:o,children:jsx(d,{value:r,children:jsxs(p,{value:r,children:[Number(r.toFixed(2)),"%"]})})})}var I=s;export{I as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {Box,Typography}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:r=>!["value","isDecimal"].includes(r)})(({value:r,isDecimal:e,theme:o})=>({width:`${r}%`,minWidth:r>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:o.palette.background.gradient.darkShadedBlue,display:"flex",alignItems:"center",justifyContent:r>10?"flex-end":"center",paddingInlineEnd:r>10?"2px":"0px",...r===0&&{background:"#20232B1A"},...e&&{minWidth:r>=10?"40px":"36px"}})),d=styled(Box,{shouldForwardProp:r=>r!=="value"})(({value:r})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:"#20232B1A",borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...r===0&&{background:"#20232B00"}})),p=styled(Typography,{shouldForwardProp:r=>r!=="value"})(({value:r})=>({fontSize:"8px",fontWeight:700,color:"#FFF",padding:"2px 4px",...r===0&&{color:"#8D8D9480"}}));function s({value:r}){let e=Jc(useId(),"progress-bar"),o=!Number.isInteger(r);return jsx(a,{id:e,"data-testid":"ProgressBar",value:r,isDecimal:o,children:jsx(d,{value:r,children:jsxs(p,{value:r,children:[Number(r.toFixed(2)),"%"]})})})}var I=s;export{I as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-OIVTFRJE.js';import {useId,useState,useEffect}from'react';import {LazyLoadImage}from'react-lazy-load-image-component';import {jsx}from'react/jsx-runtime';var l=LazyLoadImage,r={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')},u=f=>{let m=Jc(useId(),"lazy-image"),{wrapperProps:t,...o}=f,{effect:e}=o,{style:p}=t||{},[c,a]=useState(!!e);return useEffect(()=>{if(!e||!(e in r))return;let i=r[e];a(true),i().finally(()=>{a(false);});},[e]),c?null:jsx(l,{...o,id:m,"data-testid":"LazyImage",wrapperProps:{...t,style:{display:"flex",justifyContent:"center",alignItems:"center",...p}}})},n=u;var A=n;export{A as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {useId,useState,useEffect}from'react';import {LazyLoadImage}from'react-lazy-load-image-component';import {jsx}from'react/jsx-runtime';var l=LazyLoadImage,r={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')},u=f=>{let m=Jc(useId(),"lazy-image"),{wrapperProps:t,...o}=f,{effect:e}=o,{style:p}=t||{},[c,a]=useState(!!e);return useEffect(()=>{if(!e||!(e in r))return;let i=r[e];a(true),i().finally(()=>{a(false);});},[e]),c?null:jsx(l,{...o,id:m,"data-testid":"LazyImage",wrapperProps:{...t,style:{display:"flex",justifyContent:"center",alignItems:"center",...p}}})},n=u;var A=n;export{A as a};
@@ -1,4 +1,4 @@
1
- import {a as a$6}from'./chunk-PPEV33QB.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-5FY5WEAA.js';import {a as a$3}from'./chunk-4GLLOAFY.js';import {c,b as b$1,g}from'./chunk-P2M3F4LT.js';import {a as a$7}from'./chunk-ZI75N7BZ.js';import {a as a$4}from'./chunk-EUJTQSJL.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-HQI3NKYJ.js';import {b as b$3}from'./chunk-E6LKOOFL.js';import {Jc}from'./chunk-OIVTFRJE.js';import {Nc,A}from'./chunk-3JUTMTQV.js';import*as se from'react';import se__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import xt from'@mui/material/Button';import yt from'@mui/material/Input';import ao from'@mui/material/ListSubheader';import lo from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';import Pt from'@mui/material/Popper';import Mt from'@mui/material/TextField';function ct({onSubmit:e,methods:t,children:o}){let r=Jc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var pt=se__default.memo(ct);var Qe=se.forwardRef(({name:e,helperText:t,hideArrows:o,feedback:r,...n},i)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:i,hasError:!!u.error,helperText:t??u.error?.message,feedback:r,hideArrows:o,onChange:m=>{d.onChange(m),n.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Qe.displayName="RFHFormInput";var Xe=se.memo(Qe);var dt=Xe;function eo({phoneName:e,countries:t,countryName:o,helperText:r,isCountriesLoading:n,disabled:i,feedback:s,...d}){let{control:u,watch:m,setValue:f}=useFormContext(),F=m(o),S=x=>{f(o,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:a})=>jsx(h,{...d,phoneValue:l,countries:t,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:h=>{x(h);},disabled:i,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}eo.displayName="RFHPhoneInput";var oo=eo;var ft=oo;var Ce=(e,t)=>e.toFixed(t);function no({amountName:e,currencies:t,currencyName:o,helperText:r,isCurrenciesLoading:n,...i$1}){let{control:s,watch:d,setValue:u}=useFormContext(),m=d(o),f=d(e),F=S=>{u(o,S),u(e,Ce(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:t,hasError:!!l.error,helperText:r??l.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ce(Number(a),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:n})})}no.displayName="RFHAmountInput";var ro=no;var bt=ro;var Ct=keyframes`
1
+ import {a as a$6}from'./chunk-QRIVUSHJ.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-PB3ZRY6U.js';import {a as a$3}from'./chunk-AWJMELRN.js';import {c,b as b$1,g}from'./chunk-HJFHOPWU.js';import {a as a$7}from'./chunk-EWAOFKBQ.js';import {a as a$4}from'./chunk-AJVZK5T5.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-DIFTS5M3.js';import {b as b$3}from'./chunk-D6CBA46N.js';import {Jc}from'./chunk-ATSYOVOS.js';import {Nc,A}from'./chunk-3JUTMTQV.js';import*as se from'react';import se__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import xt from'@mui/material/Button';import yt from'@mui/material/Input';import ao from'@mui/material/ListSubheader';import lo from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';import Pt from'@mui/material/Popper';import Mt from'@mui/material/TextField';function ct({onSubmit:e,methods:t,children:o}){let r=Jc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var pt=se__default.memo(ct);var Qe=se.forwardRef(({name:e,helperText:t,hideArrows:o,feedback:r,...n},i)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:i,hasError:!!u.error,helperText:t??u.error?.message,feedback:r,hideArrows:o,onChange:m=>{d.onChange(m),n.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Qe.displayName="RFHFormInput";var Xe=se.memo(Qe);var dt=Xe;function eo({phoneName:e,countries:t,countryName:o,helperText:r,isCountriesLoading:n,disabled:i,feedback:s,...d}){let{control:u,watch:m,setValue:f}=useFormContext(),F=m(o),S=x=>{f(o,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:a})=>jsx(h,{...d,phoneValue:l,countries:t,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:h=>{x(h);},disabled:i,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}eo.displayName="RFHPhoneInput";var oo=eo;var ft=oo;var Ce=(e,t)=>e.toFixed(t);function no({amountName:e,currencies:t,currencyName:o,helperText:r,isCurrenciesLoading:n,...i$1}){let{control:s,watch:d,setValue:u}=useFormContext(),m=d(o),f=d(e),F=S=>{u(o,S),u(e,Ce(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:t,hasError:!!l.error,helperText:r??l.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ce(Number(a),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:n})})}no.displayName="RFHAmountInput";var ro=no;var bt=ro;var Ct=keyframes`
2
2
  0% {
3
3
  transform: rotate(-90deg);
4
4
  }