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

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 (266) hide show
  1. package/build/_chunks/{chunk-G5BBSHQW.js → chunk-25P32HJ3.js} +1 -1
  2. package/build/_chunks/{chunk-LMCW646D.js → chunk-2ITQR6AV.js} +1 -1
  3. package/build/_chunks/{chunk-ULTZSXGL.js → chunk-2QTISYZC.js} +1 -1
  4. package/build/_chunks/{chunk-HV67Q3BH.js → chunk-347S4JS5.js} +1 -1
  5. package/build/_chunks/{chunk-GE72N6QO.js → chunk-3FWBPCYF.js} +1 -1
  6. package/build/_chunks/chunk-3LYDDROA.js +1 -0
  7. package/build/_chunks/{chunk-3NOAPCBD.js → chunk-3MXAUJ6B.js} +1 -1
  8. package/build/_chunks/chunk-4RAIPDCL.js +1 -0
  9. package/build/_chunks/{chunk-LFL66DMX.js → chunk-4VUMJS3Q.js} +1 -1
  10. package/build/_chunks/{chunk-E45DSLUY.js → chunk-4ZK5WIJY.js} +1 -1
  11. package/build/_chunks/{chunk-7UMUTMW5.js → chunk-5JB32U76.js} +1 -1
  12. package/build/_chunks/{chunk-FI2VNGJY.js → chunk-6AEYAZ7J.js} +1 -1
  13. package/build/_chunks/{chunk-PEABY5S3.js → chunk-6QI7MBR2.js} +1 -1
  14. package/build/_chunks/{chunk-F6QSKDIU.js → chunk-6RUN2A52.js} +1 -1
  15. package/build/_chunks/{chunk-XAGLFLVC.js → chunk-6WS2AF7Z.js} +1 -1
  16. package/build/_chunks/chunk-6X4Q3E4C.js +1 -0
  17. package/build/_chunks/{chunk-SOEJOBJJ.js → chunk-6XFGO7ZO.js} +2 -2
  18. package/build/_chunks/{chunk-43GG5XMM.js → chunk-75FA6O7J.js} +1 -1
  19. package/build/_chunks/{chunk-QKNDEA5K.js → chunk-A6JU6IHH.js} +1 -1
  20. package/build/_chunks/chunk-BDONG5DZ.js +1 -0
  21. package/build/_chunks/{chunk-AB2X3XRB.js → chunk-BKQKE7RW.js} +1 -1
  22. package/build/_chunks/{chunk-3JGD4PPG.js → chunk-BUGQY66X.js} +1 -1
  23. package/build/_chunks/{chunk-Z55SVEYQ.js → chunk-BWHXUPA4.js} +1 -1
  24. package/build/_chunks/{chunk-5MR34WB7.js → chunk-C5HVRHFE.js} +1 -1
  25. package/build/_chunks/{chunk-FM4JAAIM.js → chunk-CFJKHUF7.js} +1 -1
  26. package/build/_chunks/{chunk-RWWU4LGX.js → chunk-CHNDTZFE.js} +1 -1
  27. package/build/_chunks/{chunk-UAL36NUI.js → chunk-CKGHTFE6.js} +1 -1
  28. package/build/_chunks/{chunk-2TCBTF25.js → chunk-CSZ3BKQ6.js} +1 -1
  29. package/build/_chunks/{chunk-PUE2YZXC.js → chunk-CVYHM5O4.js} +1 -1
  30. package/build/_chunks/{chunk-67IM2YAF.js → chunk-D46TFQTH.js} +1 -1
  31. package/build/_chunks/chunk-DSHV2G5D.js +2 -0
  32. package/build/_chunks/{chunk-BAWOSUO6.js → chunk-DZBGGQBF.js} +1 -1
  33. package/build/_chunks/{chunk-S4HTCR2F.js → chunk-E6OJ5PER.js} +1 -1
  34. package/build/_chunks/{chunk-M3ZVFZ6O.js → chunk-EBXZYMSR.js} +1 -1
  35. package/build/_chunks/{chunk-2LTJGTU4.js → chunk-EE263HCZ.js} +1 -1
  36. package/build/_chunks/chunk-EZPGM3YA.js +1 -0
  37. package/build/_chunks/{chunk-ALVYHOVH.js → chunk-FA3LRBSM.js} +1 -1
  38. package/build/_chunks/{chunk-UXXTKKBH.js → chunk-FR7AI525.js} +1 -1
  39. package/build/_chunks/{chunk-ET4XPMUX.js → chunk-FRJQXNZF.js} +1 -1
  40. package/build/_chunks/{chunk-E3RGJZ4K.js → chunk-G3KITYB7.js} +2 -2
  41. package/build/_chunks/{chunk-DUFPY4VS.js → chunk-G3UNARKB.js} +1 -1
  42. package/build/_chunks/{chunk-3ISZITQ3.js → chunk-GBIWQ52O.js} +1 -1
  43. package/build/_chunks/{chunk-PLH4I55I.js → chunk-GCJHBKRY.js} +1 -1
  44. package/build/_chunks/{chunk-4ZCORZ57.js → chunk-GIKP4LIN.js} +1 -1
  45. package/build/_chunks/{chunk-PXV74IUA.js → chunk-GNAKZ2VQ.js} +1 -1
  46. package/build/_chunks/chunk-GS5HU2W2.js +1 -0
  47. package/build/_chunks/{chunk-NCCXUMRS.js → chunk-GY37OJXL.js} +1 -1
  48. package/build/_chunks/{chunk-D3QBMAFS.js → chunk-H5GIJAFY.js} +1 -1
  49. package/build/_chunks/{chunk-U4F32GEP.js → chunk-HDMYS6QD.js} +1 -1
  50. package/build/_chunks/{chunk-MB2LC72Z.js → chunk-HEAHZEQF.js} +1 -1
  51. package/build/_chunks/{chunk-WG3WCFPA.js → chunk-HZ37ITG2.js} +1 -1
  52. package/build/_chunks/{chunk-FK7WBNB4.js → chunk-IBSQ66TO.js} +1 -1
  53. package/build/_chunks/{chunk-3RBPKC7D.js → chunk-JDUQR4LP.js} +1 -1
  54. package/build/_chunks/{chunk-WWX26QY3.js → chunk-JOMXFKP5.js} +1 -1
  55. package/build/_chunks/{chunk-4ZUBEXBD.js → chunk-JPNEQBKC.js} +1 -1
  56. package/build/_chunks/{chunk-DVCE7ZZZ.js → chunk-JWYLOQS7.js} +1 -1
  57. package/build/_chunks/{chunk-GS3QPF7T.js → chunk-JZV3ZJBB.js} +1 -1
  58. package/build/_chunks/{chunk-GA2FILY7.js → chunk-KBAJZUXB.js} +1 -1
  59. package/build/_chunks/{chunk-W3UCTYNR.js → chunk-KJILJZZL.js} +1 -1
  60. package/build/_chunks/{chunk-IG667KW3.js → chunk-KUVU47NF.js} +1 -1
  61. package/build/_chunks/{chunk-M6MHR2UM.js → chunk-LE2RDJDQ.js} +1 -1
  62. package/build/_chunks/{chunk-3DLBDPQS.js → chunk-LI36HMPN.js} +1 -1
  63. package/build/_chunks/{chunk-XQCGUFI2.js → chunk-LMV5CX6B.js} +1 -1
  64. package/build/_chunks/{chunk-MYKDRHE3.js → chunk-MHPDSXWW.js} +1 -1
  65. package/build/_chunks/{chunk-YO2DJVRO.js → chunk-N6QA6D2G.js} +1 -1
  66. package/build/_chunks/{chunk-URNOM7FQ.js → chunk-N7RC2LPM.js} +1 -1
  67. package/build/_chunks/{chunk-3QY6ERII.js → chunk-N7TZLACN.js} +1 -1
  68. package/build/_chunks/{chunk-M3V5SG2U.js → chunk-NKRK4PAN.js} +1 -1
  69. package/build/_chunks/{chunk-TQLVEE6D.js → chunk-NML2KBRY.js} +1 -1
  70. package/build/_chunks/{chunk-AR62ECSF.js → chunk-NOVPYXJS.js} +1 -1
  71. package/build/_chunks/{chunk-KEXNVPHC.js → chunk-NTF472EL.js} +1 -1
  72. package/build/_chunks/{chunk-BNOR7BTK.js → chunk-NUCD26IC.js} +1 -1
  73. package/build/_chunks/{chunk-SU535LFR.js → chunk-O2I3RFJL.js} +1 -1
  74. package/build/_chunks/{chunk-33IPHQRF.js → chunk-OC76NYQO.js} +1 -1
  75. package/build/_chunks/{chunk-L6Z6VLJ2.js → chunk-ONOCM5IO.js} +1 -1
  76. package/build/_chunks/{chunk-C6LGOHSD.js → chunk-OUUPKKXY.js} +1 -1
  77. package/build/_chunks/{chunk-7TVW7YQQ.js → chunk-P63BAZED.js} +1 -1
  78. package/build/_chunks/chunk-QAJQQ6VZ.js +2 -0
  79. package/build/_chunks/{chunk-OY6MZ77P.js → chunk-QPZJ3EE6.js} +1 -1
  80. package/build/_chunks/chunk-QWAZOXVA.js +1 -0
  81. package/build/_chunks/{chunk-2U3LOQFG.js → chunk-RP4EQUEN.js} +1 -1
  82. package/build/_chunks/{chunk-BZK6ACMR.js → chunk-STAU6ZUC.js} +1 -1
  83. package/build/_chunks/{chunk-AOSZKAOT.js → chunk-T6ELU7DI.js} +1 -1
  84. package/build/_chunks/{chunk-XSXVAK62.js → chunk-TB2YZ7LP.js} +1 -1
  85. package/build/_chunks/{chunk-JFLUHEXZ.js → chunk-TD57M3ZC.js} +1 -1
  86. package/build/_chunks/{chunk-R7EUYUIK.js → chunk-TLIKGGIL.js} +1 -1
  87. package/build/_chunks/{chunk-P2BGQFDL.js → chunk-URTGHZ5G.js} +1 -1
  88. package/build/_chunks/{chunk-M5L2JW6T.js → chunk-UUO3QCDI.js} +1 -1
  89. package/build/_chunks/{chunk-2CPNOT3J.js → chunk-UXLTK54A.js} +1 -1
  90. package/build/_chunks/{chunk-JKKOD3QX.js → chunk-UZTGBJST.js} +1 -1
  91. package/build/_chunks/{chunk-Z7MOO4NI.js → chunk-V5UDRW53.js} +1 -1
  92. package/build/_chunks/{chunk-RU2VNNA5.js → chunk-WJ563EIM.js} +1 -1
  93. package/build/_chunks/{chunk-JX7TWI7X.js → chunk-WLGP5VR2.js} +1 -1
  94. package/build/_chunks/{chunk-IBZN2BA2.js → chunk-X7RH7OAH.js} +1 -1
  95. package/build/_chunks/{chunk-VJ3GZXWB.js → chunk-XDCJLWA2.js} +1 -1
  96. package/build/_chunks/{chunk-Z6RMAXWB.js → chunk-XFXM4LRU.js} +2 -2
  97. package/build/_chunks/{chunk-QNMDN2UM.js → chunk-XHEVVGGE.js} +1 -1
  98. package/build/_chunks/{chunk-DUNJ3GBD.js → chunk-XODILRBP.js} +1 -1
  99. package/build/_chunks/{chunk-3X4ZBS7U.js → chunk-XRSE2L75.js} +1 -1
  100. package/build/_chunks/{chunk-AJBFP5I6.js → chunk-Y2TYYOG5.js} +1 -1
  101. package/build/_chunks/{chunk-GVI26L2O.js → chunk-Y6SN5NQH.js} +1 -1
  102. package/build/_chunks/{chunk-FUKW5NXB.js → chunk-YKPYXS5F.js} +1 -1
  103. package/build/_chunks/{chunk-UK3IXYRM.js → chunk-YSPWF36D.js} +1 -1
  104. package/build/_chunks/{chunk-WWODNHVW.js → chunk-YZK3GHXU.js} +1 -1
  105. package/build/_chunks/chunk-Z42POOES.js +1 -0
  106. package/build/_chunks/{chunk-OZGZLWJ2.js → chunk-Z7ZZN6BM.js} +1 -1
  107. package/build/_chunks/{chunk-KNPVTLVV.js → chunk-ZFNXPCDH.js} +1 -1
  108. package/build/_chunks/{chunk-WIOYRAEZ.js → chunk-ZJ3Y7NGV.js} +1 -1
  109. package/build/_chunks/{chunk-DNBMVC4L.js → chunk-ZZGDPPWY.js} +1 -1
  110. package/build/_chunks/{chunk-R77L45PQ.js → chunk-ZZUHBUBW.js} +1 -1
  111. package/build/components/Accordion/index.js +1 -1
  112. package/build/components/AccountDropdown/index.js +1 -1
  113. package/build/components/ActionMenu/index.js +1 -1
  114. package/build/components/ActionsDropdownMenu/index.js +1 -1
  115. package/build/components/ActiveFilterChip/index.js +1 -1
  116. package/build/components/ActivityAreaChart/index.js +1 -1
  117. package/build/components/Amount/index.js +1 -1
  118. package/build/components/AmountConversionFilter/index.js +1 -1
  119. package/build/components/AmountInput/index.js +1 -1
  120. package/build/components/AmountSlider/index.js +1 -1
  121. package/build/components/AmountStatusChip/index.js +1 -1
  122. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  123. package/build/components/AppServices/index.js +1 -1
  124. package/build/components/AppServicesBar/index.js +1 -1
  125. package/build/components/AppWindowWrapper/index.js +1 -1
  126. package/build/components/AuthenticationTypeChip/index.js +1 -1
  127. package/build/components/Autocomplete/index.js +1 -1
  128. package/build/components/BetaBanner/index.js +1 -1
  129. package/build/components/BrandLogo/index.js +1 -1
  130. package/build/components/Button/index.js +1 -1
  131. package/build/components/Calender/index.js +1 -1
  132. package/build/components/CardEmptyState/index.js +1 -1
  133. package/build/components/Checkbox/index.js +1 -1
  134. package/build/components/Chip/index.js +1 -1
  135. package/build/components/ChipStack/index.js +1 -1
  136. package/build/components/CircularProgressWithLabel/index.js +1 -1
  137. package/build/components/Collapse/index.js +1 -1
  138. package/build/components/ColorPicker/index.js +1 -1
  139. package/build/components/ColumnViews/index.js +1 -1
  140. package/build/components/ConfirmDialog/index.js +1 -1
  141. package/build/components/CopyImage/index.js +1 -1
  142. package/build/components/CountBadge/index.js +1 -1
  143. package/build/components/CountryFilter/index.js +1 -1
  144. package/build/components/CountryFlag/index.js +1 -1
  145. package/build/components/CurrencyAmount/index.js +1 -1
  146. package/build/components/CurrencyFilter/index.js +1 -1
  147. package/build/components/CurrencySymbol/index.js +1 -1
  148. package/build/components/CustomBackdrop/index.js +1 -1
  149. package/build/components/Customer/index.js +1 -1
  150. package/build/components/DateFilter/index.js +1 -1
  151. package/build/components/DeviceIcon/index.js +1 -1
  152. package/build/components/Dialog/index.js +1 -1
  153. package/build/components/Discount/index.js +1 -1
  154. package/build/components/DisplayAmount/index.js +1 -1
  155. package/build/components/Dropdown2/index.js +1 -1
  156. package/build/components/DropdownButton/index.js +1 -1
  157. package/build/components/DropdownMenu/index.js +1 -1
  158. package/build/components/Error/index.js +1 -1
  159. package/build/components/ErrorToast/index.js +1 -1
  160. package/build/components/ExpandableSideBar/index.js +1 -1
  161. package/build/components/FieldFeedback/index.js +1 -1
  162. package/build/components/FileInputPreview/index.js +1 -1
  163. package/build/components/FilePreview/index.js +1 -1
  164. package/build/components/FileUpload/index.js +1 -1
  165. package/build/components/FileUploader/index.js +1 -1
  166. package/build/components/FilterDropdown/index.js +1 -1
  167. package/build/components/Filters/index.js +1 -1
  168. package/build/components/FlagDetails/index.js +1 -1
  169. package/build/components/FlippingCard/index.js +1 -1
  170. package/build/components/HeatMap/index.js +1 -1
  171. package/build/components/IOSSwitch/index.js +1 -1
  172. package/build/components/Icon/index.js +1 -1
  173. package/build/components/IconWithBadge/index.js +1 -1
  174. package/build/components/Input/index.js +1 -1
  175. package/build/components/InputBase/index.js +1 -1
  176. package/build/components/InputNumber/index.js +1 -1
  177. package/build/components/Inputs/index.js +1 -1
  178. package/build/components/JSONViewer/index.js +1 -1
  179. package/build/components/LanguageDropdown/index.js +1 -1
  180. package/build/components/LazyImage/index.js +1 -1
  181. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  182. package/build/components/ListColumnFilter/index.js +1 -1
  183. package/build/components/ListHeader/index.js +1 -1
  184. package/build/components/ListLayout/index.js +1 -1
  185. package/build/components/Loader/index.js +1 -1
  186. package/build/components/MFWidgetLoader/index.js +1 -1
  187. package/build/components/MaskedText/index.js +1 -1
  188. package/build/components/Menu/index.js +1 -1
  189. package/build/components/MenuItem/index.js +1 -1
  190. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  191. package/build/components/MerchantLogo/index.js +1 -1
  192. package/build/components/MerchantsDropdown/index.js +1 -1
  193. package/build/components/MultiDatakeyDonut/index.js +1 -1
  194. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  195. package/build/components/MultiSelectWithSearch/index.js +1 -1
  196. package/build/components/NestedDropdown/index.js +1 -1
  197. package/build/components/NoInternet/index.js +1 -1
  198. package/build/components/OpenFileInNewTab/index.js +1 -1
  199. package/build/components/PartnersFilter/index.js +1 -1
  200. package/build/components/PaymentSourceFilter/index.js +1 -1
  201. package/build/components/PhoneFilter/index.js +1 -1
  202. package/build/components/ProgressBar/index.js +1 -1
  203. package/build/components/ProgressRing/index.js +1 -1
  204. package/build/components/RFH/index.js +1 -1
  205. package/build/components/RadioButton/index.js +1 -1
  206. package/build/components/RadioGroup/index.js +1 -1
  207. package/build/components/RangeCalender/index.js +1 -1
  208. package/build/components/ReceiptsViewer/index.js +1 -1
  209. package/build/components/ReferenceTypeFilter/index.js +1 -1
  210. package/build/components/ResizableHeightInput/index.js +1 -1
  211. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  212. package/build/components/SalesChannelFilter/index.js +1 -1
  213. package/build/components/ScrollLoader/index.js +1 -1
  214. package/build/components/SearchButton/index.js +1 -1
  215. package/build/components/SearchListInput/index.js +1 -1
  216. package/build/components/SelectDropdown/index.js +1 -1
  217. package/build/components/SelectWithSearch/index.js +1 -1
  218. package/build/components/SimpleDialog/index.js +1 -1
  219. package/build/components/Skeleton/index.js +1 -1
  220. package/build/components/Slider/index.js +1 -1
  221. package/build/components/StatusBar/index.js +1 -1
  222. package/build/components/StatusButton/index.js +1 -1
  223. package/build/components/StatusChip/index.js +1 -1
  224. package/build/components/StatusChipWithCopy/index.js +1 -1
  225. package/build/components/StatusFilter/index.js +1 -1
  226. package/build/components/StatusGroupChips/index.js +1 -1
  227. package/build/components/StatusIcons/index.js +1 -1
  228. package/build/components/StatusLabel/index.js +1 -1
  229. package/build/components/TableCells/index.js +1 -1
  230. package/build/components/TableReports/index.js +1 -1
  231. package/build/components/Timepicker/index.js +1 -1
  232. package/build/components/Toaster/index.js +1 -1
  233. package/build/components/ToggleButtons/index.js +1 -1
  234. package/build/components/ToggleView/index.js +1 -1
  235. package/build/components/Toolbar/index.js +1 -1
  236. package/build/components/ToolbarIcon/index.js +1 -1
  237. package/build/components/TooltipChip/index.js +1 -1
  238. package/build/components/TreeDropdown/index.js +1 -1
  239. package/build/components/VAT/index.js +1 -1
  240. package/build/components/VerificationIcon/index.js +1 -1
  241. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  242. package/build/components/VirtualTables/index.js +1 -1
  243. package/build/components/Widget/index.js +1 -1
  244. package/build/components/Window/index.js +1 -1
  245. package/build/components/WindowAppIcon/index.js +1 -1
  246. package/build/components/WindowBackdrop/index.js +1 -1
  247. package/build/components/WindowSideBar/index.js +1 -1
  248. package/build/components/_v2/index.js +1 -1
  249. package/build/components/index.js +1 -1
  250. package/build/constants/assets.d.ts +6 -0
  251. package/build/constants/index.js +1 -1
  252. package/build/hooks/index.js +1 -1
  253. package/build/index.js +1 -1
  254. package/build/utils/date.d.ts +8 -0
  255. package/build/utils/index.js +1 -1
  256. package/package.json +1 -1
  257. package/build/_chunks/chunk-4KWLRMRN.js +0 -1
  258. package/build/_chunks/chunk-4NESBBQ5.js +0 -1
  259. package/build/_chunks/chunk-B75BO3RI.js +0 -2
  260. package/build/_chunks/chunk-BMZ3TZKG.js +0 -1
  261. package/build/_chunks/chunk-IUXIBZV3.js +0 -2
  262. package/build/_chunks/chunk-KW7K557I.js +0 -1
  263. package/build/_chunks/chunk-NEOEKPIQ.js +0 -1
  264. package/build/_chunks/chunk-PZY3HICJ.js +0 -1
  265. package/build/_chunks/chunk-S6PL6BXX.js +0 -1
  266. package/build/_chunks/chunk-UX76H3LK.js +0 -1
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-2LTJGTU4.js';import {a as a$3}from'./chunk-RWWU4LGX.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a}from'./chunk-GNY2VGGW.js';import {ec,Ic}from'./chunk-4NESBBQ5.js';import {ri,si,yi,Vd}from'./chunk-IUXIBZV3.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=ec(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:ec(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:ri,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:si,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?yi:Vd,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=Ic(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-EE263HCZ.js';import {a as a$3}from'./chunk-CHNDTZFE.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a}from'./chunk-GNY2VGGW.js';import {fc,Jc}from'./chunk-QWAZOXVA.js';import {ri,si,yi,Vd}from'./chunk-DSHV2G5D.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:ri,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:si,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?yi:Vd,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,2 +1,2 @@
1
- import {Ic}from'./chunk-4NESBBQ5.js';import {memo,useId}from'react';import {Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import W from'@mui/material/Accordion';import $ from'@mui/material/AccordionDetails';import T from'@mui/material/AccordionSummary';import {styled}from'@mui/material/styles';function f({sx:o}){return jsx(Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)",...o},children:jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})})})}f.displayName="AccordionExpandIcon";var i=memo(f);var A="#f2f2f2",G="#fbfbfb",u=styled(W)(({theme:o})=>({overflow:"hidden",border:`1px solid ${A}`,borderWidth:1,borderRadius:o.shape.borderRadius,margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0}})),g=styled(T)(()=>({background:G,minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),h=styled($)(()=>({padding:0,borderTop:`1px solid ${A}`}));function C({expanded:o,onChange:I,label:w,content:S,labelStartAdornment:a,labelEndAdornment:p,slotProps:r={},disabled:L=false,expandIcon:B}){let e=Ic(useId()),E=`accordion-${e}`,l=`accordion-content-${e}`,s=`accordion-label-${e}`,{showArrow:m,...P}=r?.label??{},R=m===true||m===void 0,k=jsxs(Fragment,{children:[a!=null&&jsx(Box,{component:"span",sx:{flexShrink:0},children:a}),jsx(Box,{component:"span",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:w}),p!=null&&jsx(Box,{component:"span",sx:{flexShrink:0,marginLeft:"auto"},children:p})]}),v=B??(R?jsx(i,{}):null);return jsxs(u,{id:E,"data-testid":"Accordion",disabled:L,expanded:o,onChange:()=>I(!o),...r.root,children:[jsx(g,{"aria-controls":l,"aria-expanded":o,expandIcon:v,id:s,...P,children:k}),jsx(h,{id:l,role:"region","aria-labelledby":s,...r.content,children:S})]})}C.displayName="Accordion";var b=memo(C);var io=b;
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {memo,useId}from'react';import {Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import W from'@mui/material/Accordion';import $ from'@mui/material/AccordionDetails';import T from'@mui/material/AccordionSummary';import {styled}from'@mui/material/styles';function f({sx:o}){return jsx(Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)",...o},children:jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})})})}f.displayName="AccordionExpandIcon";var i=memo(f);var A="#f2f2f2",G="#fbfbfb",u=styled(W)(({theme:o})=>({overflow:"hidden",border:`1px solid ${A}`,borderWidth:1,borderRadius:o.shape.borderRadius,margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0}})),g=styled(T)(()=>({background:G,minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),h=styled($)(()=>({padding:0,borderTop:`1px solid ${A}`}));function C({expanded:o,onChange:I,label:w,content:S,labelStartAdornment:a,labelEndAdornment:p,slotProps:r={},disabled:L=false,expandIcon:B}){let e=Jc(useId()),E=`accordion-${e}`,l=`accordion-content-${e}`,s=`accordion-label-${e}`,{showArrow:m,...P}=r?.label??{},R=m===true||m===void 0,k=jsxs(Fragment,{children:[a!=null&&jsx(Box,{component:"span",sx:{flexShrink:0},children:a}),jsx(Box,{component:"span",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:w}),p!=null&&jsx(Box,{component:"span",sx:{flexShrink:0,marginLeft:"auto"},children:p})]}),v=B??(R?jsx(i,{}):null);return jsxs(u,{id:E,"data-testid":"Accordion",disabled:L,expanded:o,onChange:()=>I(!o),...r.root,children:[jsx(g,{"aria-controls":l,"aria-expanded":o,expandIcon:v,id:s,...P,children:k}),jsx(h,{id:l,role:"region","aria-labelledby":s,...r.content,children:S})]})}C.displayName="Accordion";var b=memo(C);var io=b;
2
2
  export{i as a,io as b};
@@ -1 +1 @@
1
- import {Ic,oc}from'./chunk-4NESBBQ5.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import x from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1,Avatar}from'@mui/material';import {motion}from'framer-motion';var p=styled(x,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var h=forwardRef(({children:e,...o},r)=>{let d=Ic(useId(),"table-cell");return jsx(p,{id:d,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),a=memo(h);var W=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?oc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),A=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),F=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),$=styled$1("img")(()=>({width:"12px",height:"12px"})),z=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),G=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),L=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),O=styled$1(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),l=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),V=styled$1(l)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),E=styled$1(l)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),H=styled$1(a)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),M=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Z=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),q=styled$1("img")(()=>({width:"36px",height:"24px"})),D=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{a,W as b,A as c,F as d,$ as e,z as f,G as g,L as h,O as i,l as j,V as k,E as l,H as m,M as n,Z as o,q as p,D as q};
1
+ import {Jc,pc}from'./chunk-QWAZOXVA.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import x from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1,Avatar}from'@mui/material';import {motion}from'framer-motion';var p=styled(x,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var h=forwardRef(({children:e,...o},r)=>{let d=Jc(useId(),"table-cell");return jsx(p,{id:d,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),a=memo(h);var W=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?pc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),A=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),F=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),$=styled$1("img")(()=>({width:"12px",height:"12px"})),z=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),G=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),L=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),O=styled$1(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),l=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),V=styled$1(l)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),E=styled$1(l)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),H=styled$1(a)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),M=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Z=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),q=styled$1("img")(()=>({width:"36px",height:"24px"})),D=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{a,W as b,A as c,F as d,$ as e,z as f,G as g,L as h,O as i,l as j,V as k,E as l,H as m,M as n,Z as o,q as p,D as q};
@@ -1 +1 @@
1
- import {a}from'./chunk-OY6MZ77P.js';import {d}from'./chunk-GS3QPF7T.js';import {Ic}from'./chunk-4NESBBQ5.js';import {memo,useState,useId}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';var c=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),C=styled(l)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(l)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),h=styled(l)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function p({children:o,index:e,dialogRef:a,height:t,onClick:r,order:s,dragControls:d,style:m}){let n=Ic(useId(),"dialog");return jsx(c,{id:n,"data-testid":"Dialog",drag:true,dragListener:false,dragMomentum:false,dragControls:d,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+s},onClick:r,ref:a,style:m,children:o})}function L({title:o,onCloseDialog:e,...a$1}){let[t,r]=useState(false);return jsx(d,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:n=>{n.stopPropagation(),e();}}),...a$1})}var M=memo(L);var K=p;export{C as a,b,h as c,M as d,K as e};
1
+ import {a}from'./chunk-QPZJ3EE6.js';import {d}from'./chunk-JZV3ZJBB.js';import {Jc}from'./chunk-QWAZOXVA.js';import {memo,useState,useId}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';var c=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),C=styled(l)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(l)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),h=styled(l)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function p({children:o,index:e,dialogRef:a,height:t,onClick:r,order:s,dragControls:d,style:m}){let n=Jc(useId(),"dialog");return jsx(c,{id:n,"data-testid":"Dialog",drag:true,dragListener:false,dragMomentum:false,dragControls:d,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+s},onClick:r,ref:a,style:m,children:o})}function L({title:o,onCloseDialog:e,...a$1}){let[t,r]=useState(false);return jsx(d,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:n=>{n.stopPropagation(),e();}}),...a$1})}var M=memo(L);var K=p;export{C as a,b,h as c,M as d,K as e};
@@ -1 +1 @@
1
- import {a}from'./chunk-GNY2VGGW.js';import {Ic}from'./chunk-4NESBBQ5.js';import {yi,Vd,Bb}from'./chunk-IUXIBZV3.js';import {useId,useCallback}from'react';import F from'@mui/material/Box';import A from'@mui/material/Stack';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var C=styled(Box)(({theme:t})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:"pointer"})),h=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),i=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),s=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),I=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),U=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),b=styled(a)(({theme:t})=>({color:t.palette.error.main,fontSize:"8px",fontWeight:500})),k=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16}));var H=({getRootProps:t,getInputProps:w,open:B,onChangeFiles:P,processFiles:c,disabled:S,errorMessage:a,onResetError:l,maxFileSize:M,preventDuplicates:T,label:E="Click to upload",hintText:j,sx:v})=>{let z=Ic(useId(),"file-uploader"),d=w(),D=useCallback(p=>{p.stopPropagation(),l?.(p);},[l]);return jsxs(C,{id:z,"data-testid":"FileUploader_root",...t(),sx:v,onClick:B,children:[jsx("input",{"data-slot":"input",...d,onChange:p=>{if(d.onChange?.(p),!c)return;let m=c(Array.from(p.target.files||[]));(m.length>0||!T)&&P?.(m);},disabled:S}),jsxs(h,{"data-slot":"content",flex:1,children:[jsx(U,{"data-slot":"icon-wrapper",children:jsx(F,{component:"img",src:a?yi:Vd,width:16,height:16})}),a?jsxs(A,{direction:"row",alignItems:"center",flex:1,children:[jsxs(s,{flex:1,children:[jsx(b,{children:a}),jsx(i,{children:"Click to upload again"})]}),l&&jsx(k,{component:"button","data-slot":"close-icon-wrapper",onClick:D,children:jsx(F,{component:"img",src:Bb,width:10,height:10})})]}):jsxs(s,{children:[jsx(i,{children:E}),jsx(I,{children:j||`PDF, JPG or PNG files up to ${M}`})]})]})]})},W=H;var ot=W;export{ot as a};
1
+ import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-QWAZOXVA.js';import {yi,Vd,Bb}from'./chunk-DSHV2G5D.js';import {useId,useCallback}from'react';import F from'@mui/material/Box';import A from'@mui/material/Stack';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var C=styled(Box)(({theme:t})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:"pointer"})),h=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),i=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),s=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),I=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),U=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),b=styled(a)(({theme:t})=>({color:t.palette.error.main,fontSize:"8px",fontWeight:500})),k=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16}));var H=({getRootProps:t,getInputProps:w,open:B,onChangeFiles:P,processFiles:c,disabled:S,errorMessage:a,onResetError:l,maxFileSize:M,preventDuplicates:T,label:E="Click to upload",hintText:j,sx:v})=>{let z=Jc(useId(),"file-uploader"),d=w(),D=useCallback(p=>{p.stopPropagation(),l?.(p);},[l]);return jsxs(C,{id:z,"data-testid":"FileUploader_root",...t(),sx:v,onClick:B,children:[jsx("input",{"data-slot":"input",...d,onChange:p=>{if(d.onChange?.(p),!c)return;let m=c(Array.from(p.target.files||[]));(m.length>0||!T)&&P?.(m);},disabled:S}),jsxs(h,{"data-slot":"content",flex:1,children:[jsx(U,{"data-slot":"icon-wrapper",children:jsx(F,{component:"img",src:a?yi:Vd,width:16,height:16})}),a?jsxs(A,{direction:"row",alignItems:"center",flex:1,children:[jsxs(s,{flex:1,children:[jsx(b,{children:a}),jsx(i,{children:"Click to upload again"})]}),l&&jsx(k,{component:"button","data-slot":"close-icon-wrapper",onClick:D,children:jsx(F,{component:"img",src:Bb,width:10,height:10})})]}):jsxs(s,{children:[jsx(i,{children:E}),jsx(I,{children:j||`PDF, JPG or PNG files up to ${M}`})]})]})]})},W=H;var ot=W;export{ot as a};
@@ -1 +1 @@
1
- import {Ic,fc}from'./chunk-4NESBBQ5.js';import {Bb}from'./chunk-IUXIBZV3.js';import {useId}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var m=styled(i)(({theme:e})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:e.palette.grey[400],gap:"8px"})),x=styled(i)(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"})),f=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.palette.text.primary,cursor:"pointer",gap:"8px"})),u=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.text.primary,cursor:"pointer",fontSize:"8px"})),y=styled(i)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:e.palette.text.primary})),I=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",background:e.palette.common.white,borderRadius:"4px",border:`1px solid ${e.palette.divider}`})),g=styled(i)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"}));var T=({files:e,disabled:w,sx:C,onRemoveFile:W,getFilePreview:h,renderBrandLogo:v,renderOpenFileInNewTab:P})=>{let b=Ic(useId(),"file-preview");return jsx(Fragment,{children:e?.map((t,s)=>{let a=fc(t)?h(t.file):null,j=fc(t)&&t.file.type.includes("application/pdf"),n=fc(t)?t.file:t;return jsx(m,{id:`${b}-${s}`,"data-testid":"FilePreview",sx:C,children:jsxs(x,{"data-slot":"file-wrapper",children:[jsxs(f,{"data-slot":"file-Content",children:[jsx(I,{"data-slot":"file-icon-wrapper",children:fc(t)&&a?jsx(i,{component:"img",src:a,width:24,height:24,sx:{borderRadius:"50%",objectFit:j?"none":"cover"},onError:k=>{k.currentTarget.src=n.name;}}):v?.(n.id)}),jsxs(y,{"data-slot":"text-wrapper",children:[jsx(u,{"data-slot":"filename",children:n.name}),!fc(t)&&!a&&P?.(n.id)]})]}),!w&&jsx(g,{"data-slot":"close-icon-wrapper",onClick:()=>{W?.(t);},children:jsx(i,{component:"img",src:Bb,width:10,height:10})})]})},s)})})},A=T;export{m as a,x as b,f as c,u as d,y as e,I as f,g,A as h};
1
+ import {Jc,gc}from'./chunk-QWAZOXVA.js';import {Bb}from'./chunk-DSHV2G5D.js';import {useId}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var m=styled(i)(({theme:e})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:e.palette.grey[400],gap:"8px"})),x=styled(i)(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"})),f=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.palette.text.primary,cursor:"pointer",gap:"8px"})),u=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.text.primary,cursor:"pointer",fontSize:"8px"})),y=styled(i)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:e.palette.text.primary})),I=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",background:e.palette.common.white,borderRadius:"4px",border:`1px solid ${e.palette.divider}`})),g=styled(i)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"}));var T=({files:e,disabled:w,sx:C,onRemoveFile:W,getFilePreview:h,renderBrandLogo:v,renderOpenFileInNewTab:P})=>{let b=Jc(useId(),"file-preview");return jsx(Fragment,{children:e?.map((t,s)=>{let a=gc(t)?h(t.file):null,j=gc(t)&&t.file.type.includes("application/pdf"),n=gc(t)?t.file:t;return jsx(m,{id:`${b}-${s}`,"data-testid":"FilePreview",sx:C,children:jsxs(x,{"data-slot":"file-wrapper",children:[jsxs(f,{"data-slot":"file-Content",children:[jsx(I,{"data-slot":"file-icon-wrapper",children:gc(t)&&a?jsx(i,{component:"img",src:a,width:24,height:24,sx:{borderRadius:"50%",objectFit:j?"none":"cover"},onError:k=>{k.currentTarget.src=n.name;}}):v?.(n.id)}),jsxs(y,{"data-slot":"text-wrapper",children:[jsx(u,{"data-slot":"filename",children:n.name}),!gc(t)&&!a&&P?.(n.id)]})]}),!w&&jsx(g,{"data-slot":"close-icon-wrapper",onClick:()=>{W?.(t);},children:jsx(i,{component:"img",src:Bb,width:10,height:10})})]})},s)})})},A=T;export{m as a,x as b,f as c,u as d,y as e,I as f,g,A as h};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.js';import {useId,useMemo,useEffect}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.info.dark,cursor:"pointer",fontSize:"9px",textDecoration:"underline"}));var i=window.URL||window.webkitURL,b=({data:e,isLoading:r,isError:l})=>{let p=Ic(useId(),"open-file-in-new-tab"),o=useMemo(()=>e?i.createObjectURL(e):"",[e]);useEffect(()=>()=>{o&&i.revokeObjectURL(o);},[o]);let a=()=>{o&&window.open(o,"_blank");};return r||l?null:jsx(t,{id:p,"data-testid":"OpenFileInNewTab",onClick:a,children:"View"})},c=b;export{c as a};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {useId,useMemo,useEffect}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.info.dark,cursor:"pointer",fontSize:"9px",textDecoration:"underline"}));var i=window.URL||window.webkitURL,b=({data:e,isLoading:r,isError:l})=>{let p=Jc(useId(),"open-file-in-new-tab"),o=useMemo(()=>e?i.createObjectURL(e):"",[e]);useEffect(()=>()=>{o&&i.revokeObjectURL(o);},[o]);let a=()=>{o&&window.open(o,"_blank");};return r||l?null:jsx(t,{id:p,"data-testid":"OpenFileInNewTab",onClick:a,children:"View"})},c=b;export{c as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-3DLBDPQS.js';import {a as a$2}from'./chunk-R77L45PQ.js';import {a}from'./chunk-GNY2VGGW.js';import {Ic,Sa}from'./chunk-4NESBBQ5.js';import {Tj,Uj}from'./chunk-IUXIBZV3.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var L=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),B=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),d=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),S=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),z=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),$=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),h=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=e=>e===0?12:e<=12?e:e-12,ue=e=>e>=12?"PM":"AM",j=()=>new Date().getMinutes(),F=()=>{let e=new Date().getHours();return _(e)},ce=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var N=["AM","PM"],f=12,g=59;function R({onChange:e,defaultTime:o,enableRealTimeChange:p,size:O="large"}){let U=Ic(useId(),"time-picker"),[A,y]=useState(null),[a$1,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[s,w]=useState(o?.hour??F()),[u,C]=useState(o?.minute??j()),H=!!A;useEffect(()=>{p&&e?.({hour:s,minute:u,period:a$1});},[s,u,a$1,p]);let G=r=>{y(r.currentTarget);},J=()=>{y(null),e?.({hour:s,minute:u,period:a$1});},K=r=>{q(r);},i=r=>r<10?`0${r}`:r.toString(),Q=r=>{let c=Sa(i(Number(r.target.value)));if(c>12){r.preventDefault();return}w(c);},I=()=>{w(r=>r===12?1:r+1);},v=()=>{w(r=>r===1?12:r-1);},V=r=>{let c=Sa(i(Number(r.target.value)));if(c>59){r.preventDefault();return}C(c);},X=()=>{C(r=>r===59?(I(),0):r+1);},Y=()=>{C(r=>r===0?(v(),59):r-1);};return jsx(te,{onClickAway:J,children:jsxs(m,{id:U,"data-testid":"TimePicker",children:[jsx(B,{size:O,open:H,onClick:G,children:`${i(s)}:${i(u)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(L,{children:[jsxs($,{children:[jsxs(k,{children:[jsx(d,{onClick:I,children:jsx("img",{src:Tj,alt:"arrow"})}),jsx(h,{value:i(s),onChange:Q}),jsx(d,{onClick:v,children:jsx("img",{src:Uj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:Tj,alt:"arrow"})}),jsx(h,{value:i(u),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:Uj,alt:"arrow"})})]})]}),jsx(z,{children:N.map(r=>jsx(S,{onClick:()=>{K(r);},selected:a$1===r,children:r},r))})]})})]})})}var ve=R;export{_ as a,ue as b,j as c,F as d,ce as e,N as f,f as g,g as h,R as i,ve as j};
1
+ import {a as a$1}from'./chunk-LI36HMPN.js';import {a as a$2}from'./chunk-ZZUHBUBW.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc,Ta}from'./chunk-QWAZOXVA.js';import {Tj,Uj}from'./chunk-DSHV2G5D.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var L=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),B=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),d=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),S=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),z=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),$=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),h=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=e=>e===0?12:e<=12?e:e-12,ue=e=>e>=12?"PM":"AM",j=()=>new Date().getMinutes(),F=()=>{let e=new Date().getHours();return _(e)},ce=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var N=["AM","PM"],f=12,g=59;function R({onChange:e,defaultTime:o,enableRealTimeChange:p,size:O="large"}){let U=Jc(useId(),"time-picker"),[A,y]=useState(null),[a$1,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[s,w]=useState(o?.hour??F()),[u,C]=useState(o?.minute??j()),H=!!A;useEffect(()=>{p&&e?.({hour:s,minute:u,period:a$1});},[s,u,a$1,p]);let G=r=>{y(r.currentTarget);},J=()=>{y(null),e?.({hour:s,minute:u,period:a$1});},K=r=>{q(r);},i=r=>r<10?`0${r}`:r.toString(),Q=r=>{let c=Ta(i(Number(r.target.value)));if(c>12){r.preventDefault();return}w(c);},I=()=>{w(r=>r===12?1:r+1);},v=()=>{w(r=>r===1?12:r-1);},V=r=>{let c=Ta(i(Number(r.target.value)));if(c>59){r.preventDefault();return}C(c);},X=()=>{C(r=>r===59?(I(),0):r+1);},Y=()=>{C(r=>r===0?(v(),59):r-1);};return jsx(te,{onClickAway:J,children:jsxs(m,{id:U,"data-testid":"TimePicker",children:[jsx(B,{size:O,open:H,onClick:G,children:`${i(s)}:${i(u)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(L,{children:[jsxs($,{children:[jsxs(k,{children:[jsx(d,{onClick:I,children:jsx("img",{src:Tj,alt:"arrow"})}),jsx(h,{value:i(s),onChange:Q}),jsx(d,{onClick:v,children:jsx("img",{src:Uj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:Tj,alt:"arrow"})}),jsx(h,{value:i(u),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:Uj,alt:"arrow"})})]})]}),jsx(z,{children:N.map(r=>jsx(S,{onClick:()=>{K(r);},selected:a$1===r,children:r},r))})]})})]})})}var ve=R;export{_ as a,ue as b,j as c,F as d,ce as e,N as f,f as g,g as h,R as i,ve as j};
@@ -1 +1 @@
1
- import {c,b,g}from'./chunk-L6Z6VLJ2.js';import {a}from'./chunk-3DLBDPQS.js';import {Ic}from'./chunk-4NESBBQ5.js';import {zb,z as z$1,Re}from'./chunk-IUXIBZV3.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import L from'@mui/material/Box';import ve from'@mui/material/ClickAwayListener';import Be from'@mui/material/Popper';import W from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var K=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),y=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:a,hideArrows:t})=>{let{borderColor:i}=c(e,o),l=a?"4px 4px 0 0":"4px",m="#F2F2F2";return o&&(m=i),n&&!o&&(m=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${m}`,borderBottom:a?"none":void 0,borderRadius:l,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),U=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var V=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(y)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function P(e){let n=Ic(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(V,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Ce=P;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(L)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(L)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(L)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:a,countries:t=[],isLoading:i=false}){let l=Ic(useId(),"countries-dropdown"),[m,g]=useState(null),[b,u]=useState([]),[S,D]=useState(),ue=()=>{if(t&&e){let r=t.find(c=>c.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A=!!m,ce=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),D(void 0);},xe=r=>{o?.(r),N(),u(t);},fe=r=>{let c=Number(r.target.value);if(D(c),!c){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(c.toString())));};return i?jsx(W,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(ve,{onClickAway:N,children:jsxs(L,{id:l,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:ce,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),a&&jsx(ee,{component:"span",children:"*"}),jsx(L,{component:"img",src:zb,alt:"d",className:"arrow",sx:{...A&&{transform:"rotate(180deg)"}}})]}),jsx(Be,{open:A,anchorEl:m,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:z$1,alt:"arrow"}),onChange:fe,value:S,hideArrows:true}),jsx(Y,{children:b.map(r=>jsxs(Z,{onClick:()=>{xe(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=Ic(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>{let i=e.feedback!==void 0&&e.feedback!==null,l=b(e.feedback),m=e.label??e.placeholder,g$1=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b$1=t?.message??e.helperText,u=!i&&b$1?jsx(U,{children:b$1}):null,S=l?jsx(g,{...l}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(K,{id:n,"data-testid":"InputWrapper",children:jsx(y,{rows:1,hasError:(!!t?.message||!!e.error)&&!i,hasFeedback:!!l,feedbackType:l?.type,...a,variant:"standard",label:m,placeholder:g$1,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:l?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),u,S]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function T({showSearchIcon:e=true,error:n,errorMessage:o,feedback:a,...t}){let i=Ic(useId(),"search-input"),l=!!(n&&o&&!a);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:z$1,alt:"search"}),sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:a,error:n,...t}),l&&jsxs(le,{children:[jsx(pe,{src:Re}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=T;function z(e){let n=Ic(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...a,value:a.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=z;export{Ce as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
1
+ import {c,b,g}from'./chunk-ONOCM5IO.js';import {a}from'./chunk-LI36HMPN.js';import {Jc}from'./chunk-QWAZOXVA.js';import {zb,z as z$1,Re}from'./chunk-DSHV2G5D.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import L from'@mui/material/Box';import ve from'@mui/material/ClickAwayListener';import Be from'@mui/material/Popper';import W from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var K=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),y=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:a,hideArrows:t})=>{let{borderColor:i}=c(e,o),l=a?"4px 4px 0 0":"4px",m="#F2F2F2";return o&&(m=i),n&&!o&&(m=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${m}`,borderBottom:a?"none":void 0,borderRadius:l,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),U=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var V=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(y)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function P(e){let n=Jc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(V,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Ce=P;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(L)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(L)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(L)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:a,countries:t=[],isLoading:i=false}){let l=Jc(useId(),"countries-dropdown"),[m,g]=useState(null),[b,u]=useState([]),[S,D]=useState(),ue=()=>{if(t&&e){let r=t.find(c=>c.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A=!!m,ce=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),D(void 0);},xe=r=>{o?.(r),N(),u(t);},fe=r=>{let c=Number(r.target.value);if(D(c),!c){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(c.toString())));};return i?jsx(W,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(ve,{onClickAway:N,children:jsxs(L,{id:l,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:ce,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),a&&jsx(ee,{component:"span",children:"*"}),jsx(L,{component:"img",src:zb,alt:"d",className:"arrow",sx:{...A&&{transform:"rotate(180deg)"}}})]}),jsx(Be,{open:A,anchorEl:m,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:z$1,alt:"arrow"}),onChange:fe,value:S,hideArrows:true}),jsx(Y,{children:b.map(r=>jsxs(Z,{onClick:()=>{xe(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(W,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=Jc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>{let i=e.feedback!==void 0&&e.feedback!==null,l=b(e.feedback),m=e.label??e.placeholder,g$1=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b$1=t?.message??e.helperText,u=!i&&b$1?jsx(U,{children:b$1}):null,S=l?jsx(g,{...l}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(K,{id:n,"data-testid":"InputWrapper",children:jsx(y,{rows:1,hasError:(!!t?.message||!!e.error)&&!i,hasFeedback:!!l,feedbackType:l?.type,...a,variant:"standard",label:m,placeholder:g$1,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:l?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),u,S]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function T({showSearchIcon:e=true,error:n,errorMessage:o,feedback:a,...t}){let i=Jc(useId(),"search-input"),l=!!(n&&o&&!a);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:z$1,alt:"search"}),sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...l&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:a,error:n,...t}),l&&jsxs(le,{children:[jsx(pe,{src:Re}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=T;function z(e){let n=Jc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:a,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...a,value:a.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=z;export{Ce as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
@@ -1 +1 @@
1
- import {a}from'./chunk-OZGZLWJ2.js';import {memo}from'react';import t from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(t)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(t)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var l=styled(t)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),p=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:r})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...r&&{cursor:"move"},margin:0})),I=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),s=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:r})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...r&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),f=styled(p)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));function v({onMouseEnter:o,onMouseLeave:r,isMaximized:g,isHovered:m,children:w,rightActions:x,leftActions:a$1,title:b,icon:y,...u}){return jsx(s,{onMouseEnter:o,onMouseLeave:r,maximized:g,id:"toolbar","data-testid":"Toolbar",isHovered:m,...u,children:jsxs(l,{className:"toolbar-wrapper",children:[a$1?jsx(d,{className:"action-box",children:a$1}):jsx("div",{}),jsx(a,{title:b,icon:y}),x||jsx("div",{})]})})}var c=memo(v);var D=c;export{p as a,I as b,f as c,D as d};
1
+ import {a}from'./chunk-Z7ZZN6BM.js';import {memo}from'react';import t from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(t)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(t)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var l=styled(t)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),p=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:r})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...r&&{cursor:"move"},margin:0})),I=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),s=styled(t,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:r})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...r&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),f=styled(p)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));function v({onMouseEnter:o,onMouseLeave:r,isMaximized:g,isHovered:m,children:w,rightActions:x,leftActions:a$1,title:b,icon:y,...u}){return jsx(s,{onMouseEnter:o,onMouseLeave:r,maximized:g,id:"toolbar","data-testid":"Toolbar",isHovered:m,...u,children:jsxs(l,{className:"toolbar-wrapper",children:[a$1?jsx(d,{className:"action-box",children:a$1}):jsx("div",{}),jsx(a,{title:b,icon:y}),x||jsx("div",{})]})})}var c=memo(v);var D=c;export{p as a,I as b,f as c,D as d};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-PZY3HICJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Ic}from'./chunk-4NESBBQ5.js';import {sb}from'./chunk-IUXIBZV3.js';import {memo,useState,useRef,useEffect,useMemo,useId}from'react';import Z from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var z=styled(a)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1)})),L=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:r})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:r?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),k=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),R=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),H=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),$=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),A=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),O=styled(Box)(({theme:e})=>({position:"relative",backgroundColor:e.palette.common.white,zIndex:999999}));function j({label:e,icon:r,name:s,menuItems:t,setSelected:y,onSelect:P,selected:p,displayChildrenCount:C,disabled:i,placement:x="right",sx:g,menuSx:I}){let[u,S]=useState(null),l=useRef(null),[a,n]=useState(false),h=o=>{!i&&p!==void 0&&(y({name:o,selected:!p}),p||n(false));};return useEffect(()=>{n(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(L,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${u?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!u&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{u&&S(null);},onClick:o=>{i||(o.stopPropagation(),h(s));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[p!==void 0&&jsx(R,{size:"small",indeterminate:a,checked:p,disabled:i}),jsxs(H,{children:[r&&r,jsxs($,{children:[e&&jsx(B,{children:e}),!!t?.length&&jsxs(G,{children:[C&&jsx(A,{children:t.length}),jsx("img",{src:sb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(Z,{open:!!(u&&t?.length),anchorEl:u,placement:x==="left"?"left-start":"right-start",sx:{zIndex:99999,...I},children:jsx(V,{className:"child-dropdown",menuItems:t,placement:x,onChildrenChange:o=>{let w=o.every(d=>d.selected);p!==void 0&&!i&&(w&&y({name:s,selected:true}),o.every(d=>!d.selected)&&y({name:s,selected:false}),n(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!w));},onSelect:o=>{P(o,s);}})})]})}var M=memo(j);function te({title:e,menuItems:r,onChildrenChange:s,onSelect:t,className:y,updatedList:P,footer:p,header:C,placement:i="right",...x}){let[g,I]=useState({name:"",selected:false}),[u,S]=useState();return useEffect(()=>{S(r);},[r]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,n=[],h=d=>d?.map(m=>(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}})),w=(d=>d.map(m=>m.name===l?(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}}):m))(u);S(w),P&&P(w),s&&s(w),t&&t(n);}},[g]),jsxs(k,{component:"article",className:`tap-dropdown ${y||""}`,...x,children:[jsx(O,{children:e&&jsx(z,{component:"p",children:e})}),C,jsx(F,{children:u?.map((l,a)=>jsx(M,{setSelected:({name:n,selected:h})=>{I({name:n,selected:h});},onSelect:n=>{t&&t(n);},placement:i,...l},`${l.name}-${a}`))}),p&&p]})}var V=memo(te);var K=(e,{menuItemSx:r,menuSx:s})=>(e.forEach(t=>{t.sx={...r,...t.sx},t.menuSx={...s,...t.menuSx},t.menuItems?.length&&K(t.menuItems,{menuItemSx:r,menuSx:s});}),e);function le({title:e,menuItems:r,onSelect:s,updatedList:t,header:y,placement:P="right",menuItemSx:p={},menuSx:C={},...i}){let x=useMemo(()=>K(r,{menuItemSx:p,menuSx:C}),[r,p,C]),[g,I]=useState(x),u=Ic(useId(),"nested-dropdown");useEffect(()=>{I(x);},[x]);let S=l=>{let a=h=>h.map(o=>({...o,selected:l.find(w=>o.name===w.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),n=a(g);I(n),t&&t(n);};return jsx(V,{id:u,"data-testid":"NestedDropdown",placement:P,menuItems:g,title:e,header:y,onSelect:l=>{s&&s(l),S(l);},...i})}var Q=memo(le);var Ne=Q;export{M as a,V as b,Ne as c};
1
+ import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-Z42POOES.js';import {Jc}from'./chunk-QWAZOXVA.js';import {sb}from'./chunk-DSHV2G5D.js';import {memo,useState,useRef,useEffect,useMemo,useId}from'react';import Z from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var z=styled(a)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1)})),L=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:r})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:r?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),k=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),R=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),H=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),$=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),A=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),O=styled(Box)(({theme:e})=>({position:"relative",backgroundColor:e.palette.common.white,zIndex:999999}));function j({label:e,icon:r,name:s,menuItems:t,setSelected:y,onSelect:P,selected:p,displayChildrenCount:C,disabled:i,placement:x="right",sx:g,menuSx:I}){let[u,S]=useState(null),l=useRef(null),[a,n]=useState(false),h=o=>{!i&&p!==void 0&&(y({name:o,selected:!p}),p||n(false));};return useEffect(()=>{n(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(L,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${u?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!u&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{u&&S(null);},onClick:o=>{i||(o.stopPropagation(),h(s));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[p!==void 0&&jsx(R,{size:"small",indeterminate:a,checked:p,disabled:i}),jsxs(H,{children:[r&&r,jsxs($,{children:[e&&jsx(B,{children:e}),!!t?.length&&jsxs(G,{children:[C&&jsx(A,{children:t.length}),jsx("img",{src:sb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(Z,{open:!!(u&&t?.length),anchorEl:u,placement:x==="left"?"left-start":"right-start",sx:{zIndex:99999,...I},children:jsx(V,{className:"child-dropdown",menuItems:t,placement:x,onChildrenChange:o=>{let w=o.every(d=>d.selected);p!==void 0&&!i&&(w&&y({name:s,selected:true}),o.every(d=>!d.selected)&&y({name:s,selected:false}),n(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!w));},onSelect:o=>{P(o,s);}})})]})}var M=memo(j);function te({title:e,menuItems:r,onChildrenChange:s,onSelect:t,className:y,updatedList:P,footer:p,header:C,placement:i="right",...x}){let[g,I]=useState({name:"",selected:false}),[u,S]=useState();return useEffect(()=>{S(r);},[r]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,n=[],h=d=>d?.map(m=>(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}})),w=(d=>d.map(m=>m.name===l?(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}}):m))(u);S(w),P&&P(w),s&&s(w),t&&t(n);}},[g]),jsxs(k,{component:"article",className:`tap-dropdown ${y||""}`,...x,children:[jsx(O,{children:e&&jsx(z,{component:"p",children:e})}),C,jsx(F,{children:u?.map((l,a)=>jsx(M,{setSelected:({name:n,selected:h})=>{I({name:n,selected:h});},onSelect:n=>{t&&t(n);},placement:i,...l},`${l.name}-${a}`))}),p&&p]})}var V=memo(te);var K=(e,{menuItemSx:r,menuSx:s})=>(e.forEach(t=>{t.sx={...r,...t.sx},t.menuSx={...s,...t.menuSx},t.menuItems?.length&&K(t.menuItems,{menuItemSx:r,menuSx:s});}),e);function le({title:e,menuItems:r,onSelect:s,updatedList:t,header:y,placement:P="right",menuItemSx:p={},menuSx:C={},...i}){let x=useMemo(()=>K(r,{menuItemSx:p,menuSx:C}),[r,p,C]),[g,I]=useState(x),u=Jc(useId(),"nested-dropdown");useEffect(()=>{I(x);},[x]);let S=l=>{let a=h=>h.map(o=>({...o,selected:l.find(w=>o.name===w.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),n=a(g);I(n),t&&t(n);};return jsx(V,{id:u,"data-testid":"NestedDropdown",placement:P,menuItems:g,title:e,header:y,onSelect:l=>{s&&s(l),S(l);},...i})}var Q=memo(le);var Ne=Q;export{M as a,V as b,Ne as c};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var g=styled(Box)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),p=styled(Box,{shouldForwardProp:o=>o!=="active"})(({active:o})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",backgroundColor:o?"white":"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:o?"0px 0px 3px 0px #00000033":"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"}));var T=({options:o,activeKey:a,onChange:i,containerProps:d,buttonProps:u})=>{let m=Ic(useId(),"toggle-buttons");return jsx(g,{id:m,"data-testid":"ToggleButtons",...d,children:o.map(t=>jsx(p,{active:a===t.key,onClick:()=>i(t.key),...u,children:t.content},t.key))})},l=T;var w=l;export{w as a};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var g=styled(Box)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),p=styled(Box,{shouldForwardProp:o=>o!=="active"})(({active:o})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",backgroundColor:o?"white":"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:o?"0px 0px 3px 0px #00000033":"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"}));var T=({options:o,activeKey:a,onChange:i,containerProps:d,buttonProps:u})=>{let m=Jc(useId(),"toggle-buttons");return jsx(g,{id:m,"data-testid":"ToggleButtons",...d,children:o.map(t=>jsx(p,{active:a===t.key,onClick:()=>i(t.key),...u,children:t.content},t.key))})},l=T;var w=l;export{w as a};
@@ -1 +1 @@
1
- import {Ic,Qa}from'./chunk-4NESBBQ5.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=Ic(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Qa(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
1
+ import {Jc,Ra}from'./chunk-QWAZOXVA.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=Jc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Ra(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-KHM5KW53.js';import {Ic,q}from'./chunk-4NESBBQ5.js';import {jb}from'./chunk-IUXIBZV3.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Ic(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:jb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
1
+ import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-QWAZOXVA.js';import {jb}from'./chunk-DSHV2G5D.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Jc(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:jb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
@@ -1 +1 @@
1
- import {Fa,Ic}from'./chunk-4NESBBQ5.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=Fa();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},m){let f=Ic(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-QWAZOXVA.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 {Ic}from'./chunk-4NESBBQ5.js';import {sm}from'./chunk-IUXIBZV3.js';import {useId}from'react';import f from'@mui/material/Stack';import p from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let t=Ic(useId(),"default-mf-widget-loader");return jsxs(f,{id:t,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:n=>n.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(p,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let t=Ic(useId(),"reports-mf-widget-loader");return jsx(f,{id:t,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((n,u)=>jsx(p,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(p,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(p,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:t})=>t===sm.reports.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {ym}from'./chunk-DSHV2G5D.js';import {useId}from'react';import f from'@mui/material/Stack';import p from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let t=Jc(useId(),"default-mf-widget-loader");return jsxs(f,{id:t,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:n=>n.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(p,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let t=Jc(useId(),"reports-mf-widget-loader");return jsx(f,{id:t,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((n,u)=>jsx(p,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(p,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(p,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:t})=>t===ym.reports.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.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=Ic(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-QWAZOXVA.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 {a}from'./chunk-KEXNVPHC.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-NTF472EL.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'./chunk-AOSZKAOT.js';import {b as b$1}from'./chunk-U4F32GEP.js';import {Ic}from'./chunk-4NESBBQ5.js';import {memo,useId,useState,useEffect}from'react';import d from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var s="32px";var f=styled(d,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:r})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:r?s:"16px",height:"100%",overflow:"auto"})),b=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),g=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:r?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),S=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function H({sections:e,isMaximized:r,onClick:x,activeSection:h,activeSubSection:E}){let A=Ic(useId(),"expandable-side-bar"),i=h||e?.[0]?.id,k=E||e?.[0]?.subSections?.[0]?.id,[I,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,a={...t};for(let l of e)l.id in a||(a[l.id]=i===l.id,o=true);return o?a:t});},[e,i]),useEffect(()=>{i&&c(t=>({...t,[i]:true}));},[i]),jsx(f,{isMaximized:r,id:A,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(b$1,{expanded:I[t.id]??false,onChange:o=>c(a=>({...a,[t.id]:o})),label:jsx(S,{onClick:()=>{x?.(t.id,t.subSections?.[0]?.id);},isActive:i===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(g,{onClick:()=>{x?.(t.id,o.id);},isActive:k===o.id,children:o.title},`${t.id}-${o.id}`))}),slotProps:{root:{component:"section",sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}}},label:{sx:{padding:0,paddingRight:1,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}}},content:{sx:{borderTop:"none",padding:0}}}},`${t.id}`))})})}var B=memo(H);var K=B;export{K as a};
1
+ import'./chunk-T6ELU7DI.js';import {b as b$1}from'./chunk-HDMYS6QD.js';import {Jc}from'./chunk-QWAZOXVA.js';import {memo,useId,useState,useEffect}from'react';import d from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var s="32px";var f=styled(d,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:r})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:r?s:"16px",height:"100%",overflow:"auto"})),b=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),g=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:r?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),S=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function H({sections:e,isMaximized:r,onClick:x,activeSection:h,activeSubSection:E}){let A=Jc(useId(),"expandable-side-bar"),i=h||e?.[0]?.id,k=E||e?.[0]?.subSections?.[0]?.id,[I,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,a={...t};for(let l of e)l.id in a||(a[l.id]=i===l.id,o=true);return o?a:t});},[e,i]),useEffect(()=>{i&&c(t=>({...t,[i]:true}));},[i]),jsx(f,{isMaximized:r,id:A,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(b$1,{expanded:I[t.id]??false,onChange:o=>c(a=>({...a,[t.id]:o})),label:jsx(S,{onClick:()=>{x?.(t.id,t.subSections?.[0]?.id);},isActive:i===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(g,{onClick:()=>{x?.(t.id,o.id);},isActive:k===o.id,children:o.title},`${t.id}-${o.id}`))}),slotProps:{root:{component:"section",sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}}},label:{sx:{padding:0,paddingRight:1,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}}},content:{sx:{borderTop:"none",padding:0}}}},`${t.id}`))})})}var B=memo(H);var K=B;export{K as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Ic}from'./chunk-4NESBBQ5.js';import {Ci}from'./chunk-IUXIBZV3.js';import {memo,useId}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(r)(({theme:t})=>({border:`1px solid ${t.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:t})=>({padding:"8px 12px",borderBottom:`1px solid ${t.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40})),f=styled(a)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),g=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),I=styled(r)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(r)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(r)(()=>({margin:"12px "}));function N({children:t,...e}){let i=Ic(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...e,children:t})}var S=memo(N);function P({children:t,action:e,...i}){let d=Ic(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:t}),e&&e]})}var T=memo(P);function A({allowShadow:t=true,children:e,...i}){let d=Ic(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=a$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[e,L&&t&&jsx(r,{component:"img",src:Ci,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var E=memo(A);function G({children:t,icon:e,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[e&&e,jsx(f,{noWrap:true,className:"content",children:t})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ut=S;export{T as a,E as b,J as c,ut as d};
1
+ import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-QWAZOXVA.js';import {Ci}from'./chunk-DSHV2G5D.js';import {memo,useId}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(r)(({theme:t})=>({border:`1px solid ${t.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:t})=>({padding:"8px 12px",borderBottom:`1px solid ${t.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40})),f=styled(a)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),g=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),I=styled(r)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(r)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(r)(()=>({margin:"12px "}));function N({children:t,...e}){let i=Jc(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...e,children:t})}var S=memo(N);function P({children:t,action:e,...i}){let d=Jc(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:t}),e&&e]})}var T=memo(P);function A({allowShadow:t=true,children:e,...i}){let d=Jc(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=a$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[e,L&&t&&jsx(r,{component:"img",src:Ci,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var E=memo(A);function G({children:t,icon:e,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[e&&e,jsx(f,{noWrap:true,className:"content",children:t})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ut=S;export{T as a,E as b,J as c,ut as d};
@@ -1 +1 @@
1
- import {pj,nj,lj,ij,_i,aj,qj,Zi,Yi,oj,Bg,pb,bj,nb,cj,ej,fj,kj,jj,dj}from'./chunk-IUXIBZV3.js';var b={ABANDONED:Bg,IN_PROGRESS:qj,VOID:oj,CANCELLED:Yi,CAPTURED:Zi,INITIATED:qj,FAILED:aj,DECLINED:_i,RESTRICTED:ij,TIMEDOUT:lj,UNKNOWN:nj,AUTHORIZED:pj},C={UNKNOWN:{gatewayIcon:bj,acquirerIcon:pb,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:bj,acquirerIcon:pb,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:bj,acquirerIcon:pb,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:cj,acquirerIcon:nb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:cj,acquirerIcon:nb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:bj,acquirerIcon:pb,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:bj,acquirerIcon:pb,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:bj,acquirerIcon:pb}},R={PENDING:fj,REFUNDED:ej},S={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},O={PAID_OUT:dj,SETTLED:jj,PENDING:kj},k={AUTHORIZED:pj},w={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};export{b as a,C as b,R as c,S as d,O as e,k as f,w as g};
1
+ import {pj,nj,lj,ij,_i,aj,qj,Zi,Yi,oj,Bg,pb,bj,nb,cj,ej,fj,kj,jj,dj}from'./chunk-DSHV2G5D.js';var b={ABANDONED:Bg,IN_PROGRESS:qj,VOID:oj,CANCELLED:Yi,CAPTURED:Zi,INITIATED:qj,FAILED:aj,DECLINED:_i,RESTRICTED:ij,TIMEDOUT:lj,UNKNOWN:nj,AUTHORIZED:pj},C={UNKNOWN:{gatewayIcon:bj,acquirerIcon:pb,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:bj,acquirerIcon:pb,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:bj,acquirerIcon:pb,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:cj,acquirerIcon:nb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:cj,acquirerIcon:nb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:bj,acquirerIcon:pb,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:bj,acquirerIcon:pb,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:bj,acquirerIcon:pb}},R={PENDING:fj,REFUNDED:ej},S={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},O={PAID_OUT:dj,SETTLED:jj,PENDING:kj},k={AUTHORIZED:pj},w={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};export{b as a,C as b,R as c,S as d,O as e,k as f,w as g};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-KW7K557I.js';import {a}from'./chunk-R77L45PQ.js';import {a as a$2}from'./chunk-F6QSKDIU.js';import {Ic}from'./chunk-4NESBBQ5.js';import {zb}from'./chunk-IUXIBZV3.js';import {Box}from'@mui/material';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useId,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(r,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),w=styled(r)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(r)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),v=styled(r)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function i({defaultValue:o,label:a$3,onChange:D,options:l}){let M=Ic(useId(),"dropdown2"),[d,s]=useState(null),[y,E]=useState(o),t=!!d,W=e=>{t||s(e.currentTarget);},m=()=>{t&&s(null);},k=e=>{E(e),D?.(e),m();};return jsxs(h,{onClick:W,open:t,id:M,"data-testid":"Dropdown2",children:[jsxs(w,{children:[jsx(b,{children:a$3}),jsx(v,{children:y})]}),jsx(Box,{component:"img",src:zb,alt:"down arrow",sx:{width:15,...t&&{transform:"rotate(180deg)"}}}),jsx(a,{open:t,anchorEl:d,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:l.map((e,B)=>jsx(a$1,{onClick:()=>{k(e.value);},sx:T=>({...B!==l.length-1&&{borderBottom:`1px solid ${T.palette.divider}`}}),children:e.label},e.value))}),t&&jsx(a$2,{onClick:m})]})}var Q=i;export{Q as a};
1
+ import {a as a$1}from'./chunk-EZPGM3YA.js';import {a}from'./chunk-ZZUHBUBW.js';import {a as a$2}from'./chunk-6RUN2A52.js';import {Jc}from'./chunk-QWAZOXVA.js';import {zb}from'./chunk-DSHV2G5D.js';import {Box}from'@mui/material';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useId,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(r,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),w=styled(r)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(r)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),v=styled(r)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function i({defaultValue:o,label:a$3,onChange:D,options:l}){let M=Jc(useId(),"dropdown2"),[d,s]=useState(null),[y,E]=useState(o),t=!!d,W=e=>{t||s(e.currentTarget);},m=()=>{t&&s(null);},k=e=>{E(e),D?.(e),m();};return jsxs(h,{onClick:W,open:t,id:M,"data-testid":"Dropdown2",children:[jsxs(w,{children:[jsx(b,{children:a$3}),jsx(v,{children:y})]}),jsx(Box,{component:"img",src:zb,alt:"down arrow",sx:{width:15,...t&&{transform:"rotate(180deg)"}}}),jsx(a,{open:t,anchorEl:d,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:l.map((e,B)=>jsx(a$1,{onClick:()=>{k(e.value);},sx:T=>({...B!==l.length-1&&{borderBottom:`1px solid ${T.palette.divider}`}}),children:e.label},e.value))}),t&&jsx(a$2,{onClick:m})]})}var Q=i;export{Q as a};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.js';import {memo,useId}from'react';import {styled,Switch}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(Switch)(({theme:i})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:i.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:i.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:i.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:i.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function r(i){let d=Ic(useId(),"ios-switch");return jsx(o,{id:d,"data-testid":"IOSSwitch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...i})}r.displayName="IOSSwitch";var a=memo(r);var f=a;export{f as a};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {memo,useId}from'react';import {styled,Switch}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(Switch)(({theme:i})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:i.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:i.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:i.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:i.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function r(i){let d=Jc(useId(),"ios-switch");return jsx(o,{id:d,"data-testid":"IOSSwitch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...i})}r.displayName="IOSSwitch";var a=memo(r);var f=a;export{f as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-WN5DXLHY.js';import {Ic}from'./chunk-4NESBBQ5.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=Ic(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-QWAZOXVA.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 {Ic}from'./chunk-4NESBBQ5.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=Ic(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=Jc(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.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=Ic(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-QWAZOXVA.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 {a}from'./chunk-GNY2VGGW.js';import {Ic}from'./chunk-4NESBBQ5.js';import {Uc,zb}from'./chunk-IUXIBZV3.js';import {memo,useId}from'react';import n from'@mui/material/Box';import W from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),s=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),c=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function H({onClose:o,open:e,anchorEl:t,trigger:b,onOpen:f,children:u,disabled:h}){let w=Ic(useId(),"account-dropdown");return jsxs(x,{id:w,open:e,onClick:f,"data-testid":"Dropdown",disabled:h,children:[jsx(s,{children:b}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Uc:zb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(W,{open:e,anchorEl:t,sx:{width:t?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:t?.clientWidth,maxWidth:"unset"}}},children:jsx(c,{children:u})})]})}var g=memo(H);var j=g;export{j as a};
1
+ import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-QWAZOXVA.js';import {Uc,zb}from'./chunk-DSHV2G5D.js';import {memo,useId}from'react';import n from'@mui/material/Box';import W from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),s=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),c=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function H({onClose:o,open:e,anchorEl:t,trigger:b,onOpen:f,children:u,disabled:h}){let w=Jc(useId(),"account-dropdown");return jsxs(x,{id:w,open:e,onClick:f,"data-testid":"Dropdown",disabled:h,children:[jsx(s,{children:b}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Uc:zb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(W,{open:e,anchorEl:t,sx:{width:t?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:t?.clientWidth,maxWidth:"unset"}}},children:jsx(c,{children:u})})]})}var g=memo(H);var j=g;export{j as a};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.js';import {Re,Qe,Te,Pe}from'./chunk-IUXIBZV3.js';import {useId}from'react';import {styled,alpha}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var C=new Map([["warning",Qe],["success",Te],["info",Pe],["error",Re]]),c=styled("img")(()=>({width:"12px",height:"12px",flexShrink:0,marginTop:"2px"})),i=e=>e?.message===void 0||e.message===null||e.message===""?null:{...e,message:e.message,type:e.type??"error"},a=(e,o)=>{switch(o??"error"){case "warning":return {borderColor:alpha(e.palette.custom[500],.15),backgroundColor:alpha(e.palette.custom[500],.15),textColor:e.palette.custom[500]};case "success":return {borderColor:alpha(e.palette.success.dark,.15),backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark};case "info":return {borderColor:alpha(e.palette.info.dark,.12),backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark};default:return {borderColor:"#F7D9D9",backgroundColor:"#F7D9D9",textColor:"#CC0000"}}},p=e=>C.get(e??"error")??Re;var n=styled("div",{shouldForwardProp:e=>e!=="type"})(({theme:e,type:o})=>{let{backgroundColor:d}=a(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:d,borderRadius:"0 0 4px 4px"}}),s=styled("div",{shouldForwardProp:e=>e!=="type"})(({theme:e,type:o})=>{let{textColor:d}=a(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:d,wordBreak:"break-word"}});function F({type:e,message:o,icon:d}){let x=Ic(useId(),"field-feedback"),r=i({type:e,message:o,icon:d});return r?jsxs(n,{id:x,"data-testid":"FieldFeedback",type:r.type,children:[r.icon??jsx(c,{src:p(r.type),alt:""}),jsx(s,{type:r.type,children:r.message})]}):null}export{c as a,i as b,a as c,p as d,n as e,s as f,F as g};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {Re,Qe,Te,Pe}from'./chunk-DSHV2G5D.js';import {useId}from'react';import {styled,alpha}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var C=new Map([["warning",Qe],["success",Te],["info",Pe],["error",Re]]),c=styled("img")(()=>({width:"12px",height:"12px",flexShrink:0,marginTop:"2px"})),i=e=>e?.message===void 0||e.message===null||e.message===""?null:{...e,message:e.message,type:e.type??"error"},a=(e,o)=>{switch(o??"error"){case "warning":return {borderColor:alpha(e.palette.custom[500],.15),backgroundColor:alpha(e.palette.custom[500],.15),textColor:e.palette.custom[500]};case "success":return {borderColor:alpha(e.palette.success.dark,.15),backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark};case "info":return {borderColor:alpha(e.palette.info.dark,.12),backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark};default:return {borderColor:"#F7D9D9",backgroundColor:"#F7D9D9",textColor:"#CC0000"}}},p=e=>C.get(e??"error")??Re;var n=styled("div",{shouldForwardProp:e=>e!=="type"})(({theme:e,type:o})=>{let{backgroundColor:d}=a(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:d,borderRadius:"0 0 4px 4px"}}),s=styled("div",{shouldForwardProp:e=>e!=="type"})(({theme:e,type:o})=>{let{textColor:d}=a(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:d,wordBreak:"break-word"}});function F({type:e,message:o,icon:d}){let x=Jc(useId(),"field-feedback"),r=i({type:e,message:o,icon:d});return r?jsxs(n,{id:x,"data-testid":"FieldFeedback",type:r.type,children:[r.icon??jsx(c,{src:p(r.type),alt:""}),jsx(s,{type:r.type,children:r.message})]}):null}export{c as a,i as b,a as c,p as d,n as e,s as f,F as g};
@@ -1 +1 @@
1
- import {Ic}from'./chunk-4NESBBQ5.js';import {eh,fh}from'./chunk-IUXIBZV3.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(d,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:eh,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:fh,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=Ic(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
1
+ import {Jc}from'./chunk-QWAZOXVA.js';import {eh,fh}from'./chunk-DSHV2G5D.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(d,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:eh,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:fh,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=Jc(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
@@ -1 +1 @@
1
- import {b as b$1,g,a as a$3}from'./chunk-M3V5SG2U.js';import {a as a$2}from'./chunk-2LTJGTU4.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {a}from'./chunk-GNY2VGGW.js';import {Ic}from'./chunk-4NESBBQ5.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Ic(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
1
+ import {b as b$1,g,a as a$3}from'./chunk-NKRK4PAN.js';import {a as a$2}from'./chunk-EE263HCZ.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-QWAZOXVA.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Jc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};