@tap-payments/os-micro-frontend-shared 0.1.449 → 0.1.450

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 (194) hide show
  1. package/build/{chunk-CWII5RPV.js → chunk-22GUXZOC.js} +1 -1
  2. package/build/{chunk-ZP5JV6AX.js → chunk-2FD65MGA.js} +1 -1
  3. package/build/{chunk-P3MJSUZY.js → chunk-2WN4TENN.js} +1 -1
  4. package/build/chunk-3DNCZF5Y.js +2 -0
  5. package/build/{chunk-PF4VRJGN.js → chunk-3QEJTWHD.js} +1 -1
  6. package/build/{chunk-5IC4YOPT.js → chunk-3YBFA42C.js} +1 -1
  7. package/build/{chunk-K27ASABP.js → chunk-42Y4I5MV.js} +1 -1
  8. package/build/{chunk-DAI72ALX.js → chunk-47REBZL6.js} +1 -1
  9. package/build/{chunk-PO26TUWC.js → chunk-4AMHL4LM.js} +1 -1
  10. package/build/{chunk-YDIP2BHB.js → chunk-5AZKEVNM.js} +1 -1
  11. package/build/{chunk-YIBQQ3NA.js → chunk-5VJUMJGA.js} +1 -1
  12. package/build/{chunk-CHHA7R62.js → chunk-A2MUMQBD.js} +1 -1
  13. package/build/chunk-AEMJ4WXD.js +4 -0
  14. package/build/{chunk-NQ4RWVBO.js → chunk-BQ5QOQDX.js} +1 -1
  15. package/build/{chunk-VZSVLOEC.js → chunk-BZDENEOE.js} +1 -1
  16. package/build/chunk-COVT4N5Z.js +1 -0
  17. package/build/{chunk-MVNNPBOO.js → chunk-D2FCJQ36.js} +1 -1
  18. package/build/{chunk-F5DEUHUB.js → chunk-D5PN4RXU.js} +1 -1
  19. package/build/{chunk-OFSCVJWC.js → chunk-DPCZ2FQQ.js} +1 -1
  20. package/build/{chunk-FM4VYDLS.js → chunk-DTQKDQVQ.js} +1 -1
  21. package/build/{chunk-VDVK6BF7.js → chunk-E7KRDBRX.js} +1 -1
  22. package/build/{chunk-WA7PT73F.js → chunk-EDUJUXK3.js} +1 -1
  23. package/build/{chunk-TXC4TTA5.js → chunk-EIYLX6CB.js} +1 -1
  24. package/build/{chunk-LM5XVNC6.js → chunk-F54JJ3B2.js} +1 -1
  25. package/build/{chunk-H5IAN2EY.js → chunk-F6IKXDTG.js} +1 -1
  26. package/build/{chunk-IG2OL6J3.js → chunk-GS4KQCZ2.js} +1 -1
  27. package/build/{chunk-J5QLEISH.js → chunk-HJIMGY5E.js} +1 -1
  28. package/build/{chunk-XXKA7EPY.js → chunk-I6IOAVOR.js} +1 -1
  29. package/build/{chunk-35YBHQOC.js → chunk-IB4EIKTQ.js} +1 -1
  30. package/build/{chunk-LJ65VWKM.js → chunk-IL5C34B2.js} +1 -1
  31. package/build/{chunk-DHXSNRU3.js → chunk-JLJGOTVP.js} +1 -1
  32. package/build/{chunk-B5ES24FC.js → chunk-JV4JBCYN.js} +1 -1
  33. package/build/{chunk-5K5KR64U.js → chunk-JYEFBREK.js} +1 -1
  34. package/build/{chunk-RYV2OB6M.js → chunk-KHUPFZWU.js} +1 -1
  35. package/build/{chunk-CTRH4PJX.js → chunk-KTS3A7ED.js} +1 -1
  36. package/build/{chunk-6EZ4JK6Y.js → chunk-MYZZUBCT.js} +1 -1
  37. package/build/{chunk-BJFSLPYF.js → chunk-NDHVECD6.js} +1 -1
  38. package/build/chunk-NQFQSHOZ.js +1 -0
  39. package/build/{chunk-ZS4BZL5V.js → chunk-O4QDL5BC.js} +1 -1
  40. package/build/{chunk-3WWNV3BH.js → chunk-OOADTANZ.js} +1 -1
  41. package/build/{chunk-F4BUW5UK.js → chunk-OU4EHBWR.js} +1 -1
  42. package/build/{chunk-OFL57YJN.js → chunk-OUIOAVYC.js} +1 -1
  43. package/build/{chunk-F6NIA57X.js → chunk-PCUPYTDK.js} +1 -1
  44. package/build/{chunk-RYUMSSNJ.js → chunk-PMOD5N3T.js} +1 -1
  45. package/build/{chunk-ERNOOXNX.js → chunk-PONBJDSI.js} +1 -1
  46. package/build/{chunk-DPZW7X7C.js → chunk-PS34IOU7.js} +1 -1
  47. package/build/{chunk-XQFTITQ3.js → chunk-PTP62THF.js} +1 -1
  48. package/build/{chunk-OKCJGLTE.js → chunk-Q6PLZXQL.js} +2 -2
  49. package/build/{chunk-YB6KMUY2.js → chunk-QHHH5SLB.js} +2 -2
  50. package/build/{chunk-ZQK3CD47.js → chunk-RCDE5HEB.js} +1 -1
  51. package/build/{chunk-RX72ZO5Z.js → chunk-RKZL3AAU.js} +1 -1
  52. package/build/chunk-RVUCQIS4.js +1 -0
  53. package/build/{chunk-QVTNBCJ3.js → chunk-SJA5VLRT.js} +1 -1
  54. package/build/chunk-STG4EDNJ.js +1 -0
  55. package/build/{chunk-S7RPBLGD.js → chunk-T3W45STF.js} +1 -1
  56. package/build/{chunk-UNQSXR6O.js → chunk-TINHFPGP.js} +1 -1
  57. package/build/{chunk-4BFLB6EN.js → chunk-TN5JFKFR.js} +1 -1
  58. package/build/{chunk-TWSU3WF7.js → chunk-TVCJYW4R.js} +1 -1
  59. package/build/{chunk-54Z6CNTM.js → chunk-UGYBFOV5.js} +1 -1
  60. package/build/{chunk-VJQOM3VO.js → chunk-UIM3GNPB.js} +1 -1
  61. package/build/{chunk-UMZQJYAT.js → chunk-UPEF7RIN.js} +1 -1
  62. package/build/{chunk-HOLPUO2K.js → chunk-URKNOAHN.js} +1 -1
  63. package/build/chunk-VS2X5ENM.js +1 -0
  64. package/build/{chunk-AGKVDD6Y.js → chunk-VWWSXM3H.js} +1 -1
  65. package/build/{chunk-IZNNN6PY.js → chunk-W5FBPB6K.js} +1 -1
  66. package/build/{chunk-GF5EUCFB.js → chunk-WA5GDTQV.js} +1 -1
  67. package/build/{chunk-3SO6BVEX.js → chunk-WCVOH3HW.js} +1 -1
  68. package/build/{chunk-L5DC4D5G.js → chunk-WU7W35CG.js} +1 -1
  69. package/build/chunk-Y3CKIZT7.js +1 -0
  70. package/build/{chunk-SDEJNIDB.js → chunk-YBGSZYNG.js} +1 -1
  71. package/build/{chunk-SNWQE74F.js → chunk-YG7TACUO.js} +1 -1
  72. package/build/{chunk-KCZPZF5B.js → chunk-ZSHN3FLA.js} +1 -1
  73. package/build/{chunk-TEDSWDMZ.js → chunk-ZW7F3HRM.js} +1 -1
  74. package/build/components/AccordionAdapter/index.js +1 -1
  75. package/build/components/AccountDropdown/index.js +1 -1
  76. package/build/components/ActivityAreaChart/index.js +1 -1
  77. package/build/components/Amount/index.js +1 -1
  78. package/build/components/AmountConversionFilter/index.js +1 -1
  79. package/build/components/AmountInput/index.js +1 -1
  80. package/build/components/AmountStatusChip/index.js +1 -1
  81. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  82. package/build/components/AppServices/index.js +1 -1
  83. package/build/components/AppServicesActionMenu/index.js +1 -1
  84. package/build/components/AppServicesBar/index.js +1 -1
  85. package/build/components/AppWindowWrapper/index.js +1 -1
  86. package/build/components/AuthenticationTypeChip/index.js +1 -1
  87. package/build/components/Autocomplete/index.js +1 -1
  88. package/build/components/BrandLogo/index.js +1 -1
  89. package/build/components/Button/index.js +1 -1
  90. package/build/components/Calender/index.js +1 -1
  91. package/build/components/CardEmptyState/index.js +1 -1
  92. package/build/components/Checkbox/index.js +1 -1
  93. package/build/components/ColorPicker/index.js +1 -1
  94. package/build/components/CopyImage/index.js +1 -1
  95. package/build/components/CountBadge/index.js +1 -1
  96. package/build/components/CountryFilter/index.js +1 -1
  97. package/build/components/CountryFlag/index.js +1 -1
  98. package/build/components/CurrencyFilter/index.js +1 -1
  99. package/build/components/CurrencySymbol/index.js +1 -1
  100. package/build/components/Customer/index.js +1 -1
  101. package/build/components/DateButton/index.js +1 -1
  102. package/build/components/DateFilter/index.js +1 -1
  103. package/build/components/DeviceIcon/index.js +1 -1
  104. package/build/components/Dialog/index.js +1 -1
  105. package/build/components/Discount/index.js +1 -1
  106. package/build/components/DisplayAmount/index.js +1 -1
  107. package/build/components/Dropdown2/index.js +1 -1
  108. package/build/components/DropdownButton/index.js +1 -1
  109. package/build/components/Error/index.js +1 -1
  110. package/build/components/ErrorToast/index.js +1 -1
  111. package/build/components/ExpandableSideBar/index.js +1 -1
  112. package/build/components/FileInputPreview/index.js +1 -1
  113. package/build/components/FilePreview/index.js +1 -1
  114. package/build/components/FileUpload/index.js +1 -1
  115. package/build/components/FileUploader/index.js +1 -1
  116. package/build/components/FilterDropdown/index.js +1 -1
  117. package/build/components/FilteredIds/index.js +1 -1
  118. package/build/components/Filters/index.js +1 -1
  119. package/build/components/FlagDetails/index.js +1 -1
  120. package/build/components/IconGallery/index.js +1 -1
  121. package/build/components/IconWithBadge/index.js +1 -1
  122. package/build/components/IconWithLabel/index.js +1 -1
  123. package/build/components/IconsDropdown/index.js +1 -1
  124. package/build/components/InputBase/index.js +1 -1
  125. package/build/components/InputNumber/index.js +1 -1
  126. package/build/components/Inputs/index.js +1 -1
  127. package/build/components/JSONViewer/index.js +1 -1
  128. package/build/components/LabeledIconDropdown/index.js +1 -1
  129. package/build/components/LanguageDropdown/index.js +1 -1
  130. package/build/components/ListColumnFilter/index.js +1 -1
  131. package/build/components/MFWidgetLoader/index.js +1 -1
  132. package/build/components/MaskedText/index.js +1 -1
  133. package/build/components/MenuItem/index.js +1 -1
  134. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  135. package/build/components/MerchantLogo/index.js +1 -1
  136. package/build/components/MerchantsDropdown/index.js +1 -1
  137. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  138. package/build/components/MultiSelectStatusButton/index.js +1 -1
  139. package/build/components/MultiSelectWithSearch/index.js +1 -1
  140. package/build/components/NestedDropdown/index.js +1 -1
  141. package/build/components/PartnersFilter/index.js +1 -1
  142. package/build/components/PaymentSourceFilter/index.js +1 -1
  143. package/build/components/PhoneFilter/index.js +1 -1
  144. package/build/components/ProgressRing/index.js +1 -1
  145. package/build/components/RFH/index.js +1 -1
  146. package/build/components/RangeCalender/index.js +1 -1
  147. package/build/components/ReceiptsViewer/index.js +1 -1
  148. package/build/components/ReferenceTypeFilter/index.js +1 -1
  149. package/build/components/SalesChannelFilter/index.js +1 -1
  150. package/build/components/Sandbox/index.js +1 -1
  151. package/build/components/SearchButton/index.js +1 -1
  152. package/build/components/SearchListInput/index.js +1 -1
  153. package/build/components/SelectDropdown/index.js +1 -1
  154. package/build/components/SelectWithSearch/index.js +1 -1
  155. package/build/components/StatusBar/index.js +1 -1
  156. package/build/components/StatusButton/index.js +1 -1
  157. package/build/components/StatusChip/index.js +1 -1
  158. package/build/components/StatusChipWithCopy/index.js +1 -1
  159. package/build/components/StatusFilter/index.js +1 -1
  160. package/build/components/StatusGroupChips/index.js +1 -1
  161. package/build/components/StatusIcons/index.js +1 -1
  162. package/build/components/StatusLabel/index.js +1 -1
  163. package/build/components/TableCells/index.js +1 -1
  164. package/build/components/TableHeader/index.js +1 -1
  165. package/build/components/TableReports/index.js +1 -1
  166. package/build/components/TableView/index.js +1 -1
  167. package/build/components/Timepicker/index.js +1 -1
  168. package/build/components/Toaster/index.js +1 -1
  169. package/build/components/ToggleView/index.js +1 -1
  170. package/build/components/Toolbar/index.js +1 -1
  171. package/build/components/ToolbarIcon/index.js +1 -1
  172. package/build/components/TreeDropdown/index.js +1 -1
  173. package/build/components/VAT/index.js +1 -1
  174. package/build/components/VerificationIcon/index.js +1 -1
  175. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  176. package/build/components/VirtualTables/index.js +1 -1
  177. package/build/components/Widget/index.js +1 -1
  178. package/build/components/Window/index.js +1 -1
  179. package/build/components/WindowSideBar/index.js +1 -1
  180. package/build/components/index.js +1 -1
  181. package/build/constants/assets.d.ts +3 -0
  182. package/build/constants/index.js +1 -1
  183. package/build/hooks/index.js +1 -1
  184. package/build/index.js +1 -1
  185. package/build/utils/index.js +1 -1
  186. package/package.json +1 -1
  187. package/build/chunk-235SVVGR.js +0 -1
  188. package/build/chunk-3FTPB2S4.js +0 -1
  189. package/build/chunk-HEYOVYUR.js +0 -4
  190. package/build/chunk-KAI7ZCLU.js +0 -1
  191. package/build/chunk-KK4RD6ZD.js +0 -1
  192. package/build/chunk-KPXTVAWQ.js +0 -1
  193. package/build/chunk-NDP36V5Z.js +0 -2
  194. package/build/chunk-UVUNQGYQ.js +0 -1
@@ -1 +1 @@
1
- import {jb}from'./chunk-NDP36V5Z.js';import {useCallback}from'react';import A,{autocompleteClasses}from'@mui/material/Autocomplete';import M from'@mui/material/Box';import {styled}from'@mui/material/styles';import P from'@mui/material/TextField';import C from'@mui/material/Popper';import {jsx}from'react/jsx-runtime';var i=styled(P)({"& .MuiInputBase-root":{paddingTop:13,paddingBottom:13,borderRadius:4,"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderStyle:"solid",borderColor:"#F2F2F2"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#F2F2F2"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0"}}},[`& .${autocompleteClasses.input}`]:{fontSize:11,paddingTop:0,paddingBottom:0,paddingLeft:0},[`& .${autocompleteClasses.endAdornment}`]:{marginRight:8}}}),a=styled(C)({fontSize:11,borderRadius:"8px",border:"1px solid #F2F2F2",boxShadow:"0px 2px 56px 0px #20232B24"});var g=s=>{let{options:u,value:m,onChange:f,label:t,renderInput:x,slotProps:p,textFieldProps:e,...c}=s,b=useCallback(l=>{let F=typeof e=="function"?e(l):e;return jsx(i,{...l,...F,label:t})},[e,t]);return jsx(A,{options:u,value:m,onChange:f,popupIcon:jsx(M,{component:"img",src:jb,sx:{transform:"rotate(90deg)"},width:8,alt:"close"}),renderInput:x||b,PopperComponent:a,...c,slotProps:{...p,popper:{modifiers:[{name:"offset",options:{offset:[0,4]}}],...p?.popper}}})},I=g;export{I as a};
1
+ import {mb}from'./chunk-3DNCZF5Y.js';import {useCallback}from'react';import A,{autocompleteClasses}from'@mui/material/Autocomplete';import M from'@mui/material/Box';import {styled}from'@mui/material/styles';import P from'@mui/material/TextField';import C from'@mui/material/Popper';import {jsx}from'react/jsx-runtime';var i=styled(P)({"& .MuiInputBase-root":{paddingTop:13,paddingBottom:13,borderRadius:4,"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderStyle:"solid",borderColor:"#F2F2F2"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#F2F2F2"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0"}}},[`& .${autocompleteClasses.input}`]:{fontSize:11,paddingTop:0,paddingBottom:0,paddingLeft:0},[`& .${autocompleteClasses.endAdornment}`]:{marginRight:8}}}),a=styled(C)({fontSize:11,borderRadius:"8px",border:"1px solid #F2F2F2",boxShadow:"0px 2px 56px 0px #20232B24"});var g=s=>{let{options:u,value:m,onChange:f,label:t,renderInput:x,slotProps:p,textFieldProps:e,...c}=s,b=useCallback(l=>{let F=typeof e=="function"?e(l):e;return jsx(i,{...l,...F,label:t})},[e,t]);return jsx(A,{options:u,value:m,onChange:f,popupIcon:jsx(M,{component:"img",src:mb,sx:{transform:"rotate(90deg)"},width:8,alt:"close"}),renderInput:x||b,PopperComponent:a,...c,slotProps:{...p,popper:{modifiers:[{name:"offset",options:{offset:[0,4]}}],...p?.popper}}})},I=g;export{I as a};
@@ -1 +1 @@
1
- import {Kl,Jl}from'./chunk-NDP36V5Z.js';import {memo}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function C(o){return jsx(Checkbox,{disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"14px !important",height:"16px !important"}}),checkedIcon:o.disabled?Kl:Jl,...o})}var i=memo(C);var l=i;export{l as a};
1
+ import {Nl,Ml}from'./chunk-3DNCZF5Y.js';import {memo}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function C(o){return jsx(Checkbox,{disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"14px !important",height:"16px !important"}}),checkedIcon:o.disabled?Nl:Ml,...o})}var i=memo(C);var l=i;export{l as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-3QA32K6H.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {Ii,Gi,Ei,Bi,ri,ti,Ji,qi,pi,Hi,Zf,ib,ui,gb,vi,xi,yi,Di,Ci,wi}from'./chunk-3DNCZF5Y.js';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var k={ABANDONED:Zf,IN_PROGRESS:Ji,VOID:Hi,CANCELLED:pi,CAPTURED:qi,INITIATED:Ji,FAILED:ti,DECLINED:ri,RESTRICTED:Bi,TIMEDOUT:Ei,UNKNOWN:Gi,AUTHORIZED:Ii},R={UNKNOWN:{gatewayIcon:ui,acquirerIcon:ib,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:ui,acquirerIcon:ib,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:ui,acquirerIcon:ib,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:vi,acquirerIcon:gb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:vi,acquirerIcon:gb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:ui,acquirerIcon:ib,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:ui,acquirerIcon:ib,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:ui,acquirerIcon:ib}},z={PENDING:yi,REFUNDED:xi},H={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},K={PAID_OUT:wi,SETTLED:Ci,PENDING:Di},M={AUTHORIZED:Ii},O={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};var L=styled(h)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),q=styled(a)(({theme:r})=>({color:r.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function I({tooltip:r,status:e,statusCode:U}){let d=R[e]??O[e]??null;return jsx(a$1,{title:r,children:jsxs(L,{sx:{backgroundColor:d?.background||"transparent"},children:[jsx(a$2,{src:k[e]}),jsx(q,{sx:P=>({backgroundColor:d?.color||P.palette.info.dark}),children:U})]})})}var ro=I;export{k as a,R as b,z as c,H as d,K as e,M as f,O as g,ro as h};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {Kc,pb}from'./chunk-NDP36V5Z.js';import {memo}from'react';import n from'@mui/material/Box';import w from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:r})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...r&&{cursor:"not-allowed"}})),x=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),s=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function F({onClose:o,open:e,anchorEl:r,trigger:g,onOpen:b,children:f,disabled:h}){return jsxs(l,{open:e,onClick:b,"data-testid":"Dropdown",disabled:h,children:[jsx(x,{children:g}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Kc:pb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(w,{open:e,anchorEl:r,sx:{width:r?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:r?.clientWidth,maxWidth:"unset"}}},children:jsx(s,{children:f})})]})}var m=memo(F);var M=m;export{M as a};
1
+ import {a}from'./chunk-CNIYZZCP.js';import {Nc,sb}from'./chunk-3DNCZF5Y.js';import {memo}from'react';import n from'@mui/material/Box';import w from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:r})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...r&&{cursor:"not-allowed"}})),x=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),s=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function F({onClose:o,open:e,anchorEl:r,trigger:g,onOpen:b,children:f,disabled:h}){return jsxs(l,{open:e,onClick:b,"data-testid":"Dropdown",disabled:h,children:[jsx(x,{children:g}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Nc:sb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(w,{open:e,anchorEl:r,sx:{width:r?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:r?.clientWidth,maxWidth:"unset"}}},children:jsx(s,{children:f})})]})}var m=memo(F);var M=m;export{M as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-TXC4TTA5.js';import {e}from'./chunk-SNWQE74F.js';import {db,p as p$1}from'./chunk-GF5EUCFB.js';import {Ha,ef,nj,Ma,Ga,nf,mf,of,lf,qf,mb,lb,Fi,ni,Wa,Ai,v,r,u,x,ag,mi,p,Gi}from'./chunk-NDP36V5Z.js';import {memo,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var mt={inProgress:Gi,initiated:Gi,abandoned:p,cancelled:mi,reversed:ag,reports:x,search:u,chevronDown:r,unAuthorized:v,unSettled:Ai,unCaptured:Wa,captured:ni,authorized:Fi,openFlag:lb,closedFlag:mb,unauthenticated:qf,authenticated:lf,paidOut:of,scheduled:mf,checked:nf,dashedChecked:Ga,deactivated:Ma,destination:nj,destinationReversed:ef,outstanding:Ha};var At=memo(I=>{let{variant:r="inActive",badgeCount:i,icon:g$1,label:k,dropdownOptions:o,selectedStatus:d$1,onButtonBodyClick:E,iconMapper:l=mt,buttonSx:ft,...Ct}=I,[Bt,y]=useState(0),{t:T}=useTranslation(),w=useRef(null),[A,h$1]=useState(null),[n,L]=useState(d$1??o?.[0]?.status);useEffect(()=>{d$1!==void 0&&L(d$1);},[d$1]);let c$1=useMemo(()=>!!o?.length,[o]),p=!!A&&Bt>1,s=r==="active",M=useMemo(()=>s?"active":"inActive",[s]),u=useMemo(()=>n?o?.find(t=>t.status===n):null,[n,o]),vt=useMemo(()=>{if(u?.icon)return jsx(h,{variant:r,children:u.icon});let t=n&&l[n]?n:g$1;if(t&&l[t])return jsx(g,{icon:t,variant:r,src:l[t],alt:`${t}-icon`})},[u,n,l,g$1,r]),St=useMemo(()=>!i||Number.isNaN(db(i))?null:jsx(e,{variant:M,children:p$1(Number(i))}),[i,M]),x=useMemo(()=>c$1?jsx(a,{isActive:s}):null,[c$1,s]);useEffect(()=>{s||(y(0),h$1(null));},[s]);let f$1=useCallback(()=>{h$1(null);},[]),D=useCallback(()=>{c$1&&h$1(p?null:w.current);},[c$1,p]),bt=useCallback(t=>{t.stopPropagation(),I?.onClick?.(t),E?.(n||o?.[0]?.status||"all"),D(),y(C=>C+1);},[I,E,n,o,D]),N=useCallback(t=>C=>{t?.onClick?.(C),L(t.status),f$1();},[f$1]),gt=useMemo(()=>o?.map(t=>({...t,onClick:N(t)}))||[],[o,N]),kt=a$1[r],Et=useMemo(()=>u?.label||(n?T(n):k),[u,n,T,k]);return jsxs(Fragment,{children:[jsx(kt,{"data-testid":"StatusButton",...Ct,ref:w,onClick:bt,sx:{...c$1&&{paddingInlineEnd:"27px"},...ft},children:jsxs(f,{children:[jsxs(e$1,{variant:r,children:[vt,Et,St]}),x&&jsx(d,{children:x})]})}),p&&c$1&&jsx(c,{open:p,onClose:f$1,anchorEl:A,menuItems:gt})]})}),ht=At;var $t=ht;export{$t as a};
1
+ import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-EIYLX6CB.js';import {e}from'./chunk-YG7TACUO.js';import {db,p as p$1}from'./chunk-WA5GDTQV.js';import {Ka,hf,qj,Pa,Ja,qf,pf,rf,of,tf,pb,ob,Ii,qi,Za,Di,v,r,u,x,dg,pi,p,Ji}from'./chunk-3DNCZF5Y.js';import {memo,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var mt={inProgress:Ji,initiated:Ji,abandoned:p,cancelled:pi,reversed:dg,reports:x,search:u,chevronDown:r,unAuthorized:v,unSettled:Di,unCaptured:Za,captured:qi,authorized:Ii,openFlag:ob,closedFlag:pb,unauthenticated:tf,authenticated:of,paidOut:rf,scheduled:pf,checked:qf,dashedChecked:Ja,deactivated:Pa,destination:qj,destinationReversed:hf,outstanding:Ka};var At=memo(I=>{let{variant:r="inActive",badgeCount:i,icon:g$1,label:k,dropdownOptions:o,selectedStatus:d$1,onButtonBodyClick:E,iconMapper:l=mt,buttonSx:ft,...Ct}=I,[Bt,y]=useState(0),{t:T}=useTranslation(),w=useRef(null),[A,h$1]=useState(null),[n,L]=useState(d$1??o?.[0]?.status);useEffect(()=>{d$1!==void 0&&L(d$1);},[d$1]);let c$1=useMemo(()=>!!o?.length,[o]),p=!!A&&Bt>1,s=r==="active",M=useMemo(()=>s?"active":"inActive",[s]),u=useMemo(()=>n?o?.find(t=>t.status===n):null,[n,o]),vt=useMemo(()=>{if(u?.icon)return jsx(h,{variant:r,children:u.icon});let t=n&&l[n]?n:g$1;if(t&&l[t])return jsx(g,{icon:t,variant:r,src:l[t],alt:`${t}-icon`})},[u,n,l,g$1,r]),St=useMemo(()=>!i||Number.isNaN(db(i))?null:jsx(e,{variant:M,children:p$1(Number(i))}),[i,M]),x=useMemo(()=>c$1?jsx(a,{isActive:s}):null,[c$1,s]);useEffect(()=>{s||(y(0),h$1(null));},[s]);let f$1=useCallback(()=>{h$1(null);},[]),D=useCallback(()=>{c$1&&h$1(p?null:w.current);},[c$1,p]),bt=useCallback(t=>{t.stopPropagation(),I?.onClick?.(t),E?.(n||o?.[0]?.status||"all"),D(),y(C=>C+1);},[I,E,n,o,D]),N=useCallback(t=>C=>{t?.onClick?.(C),L(t.status),f$1();},[f$1]),gt=useMemo(()=>o?.map(t=>({...t,onClick:N(t)}))||[],[o,N]),kt=a$1[r],Et=useMemo(()=>u?.label||(n?T(n):k),[u,n,T,k]);return jsxs(Fragment,{children:[jsx(kt,{"data-testid":"StatusButton",...Ct,ref:w,onClick:bt,sx:{...c$1&&{paddingInlineEnd:"27px"},...ft},children:jsxs(f,{children:[jsxs(e$1,{variant:r,children:[vt,Et,St]}),x&&jsx(d,{children:x})]})}),p&&c$1&&jsx(c,{open:p,onClose:f$1,anchorEl:A,menuItems:gt})]})}),ht=At;var $t=ht;export{$t as a};
@@ -1 +1 @@
1
- import {e}from'./chunk-F4BUW5UK.js';import {a}from'./chunk-3SO6BVEX.js';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';import {memo,useState}from'react';var f=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),v=styled(n)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(n)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),C=styled(n)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function l({children:o,index:e,dialogRef:a,height:t,onClick:r,order:p,dragControls:s,style:d}){return jsx(f,{drag:true,dragListener:false,dragMomentum:false,dragControls:s,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+p},onClick:r,ref:a,style:d,children:o})}function T({title:o,onCloseDialog:e$1,...a$1}){let[t,r]=useState(false);return jsx(e,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:c=>{c.stopPropagation(),e$1();}}),...a$1})}var I=memo(T);var z=l;export{v as a,b,C as c,I as d,z as e};
1
+ import {e}from'./chunk-OU4EHBWR.js';import {a}from'./chunk-WCVOH3HW.js';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';import {memo,useState}from'react';var f=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),v=styled(n)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(n)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),C=styled(n)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function l({children:o,index:e,dialogRef:a,height:t,onClick:r,order:p,dragControls:s,style:d}){return jsx(f,{drag:true,dragListener:false,dragMomentum:false,dragControls:s,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+p},onClick:r,ref:a,style:d,children:o})}function T({title:o,onCloseDialog:e$1,...a$1}){let[t,r]=useState(false);return jsx(e,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:c=>{c.stopPropagation(),e$1();}}),...a$1})}var I=memo(T);var z=l;export{v as a,b,C as c,I as d,z as e};
@@ -1 +1 @@
1
- import {a}from'./chunk-3QA32K6H.js';import {tb,Ab}from'./chunk-GF5EUCFB.js';import {qa,pa,oa,Uh}from'./chunk-NDP36V5Z.js';import {c}from'./chunk-5TBO732O.js';import {memo}from'react';import T from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=c(tb(),1);var f=styled(T,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:t==="sheet"?"18px":"24px"}));var e={DESKTOP:oa,PHONE:pa,TABLET:qa};var i=o=>!!e[o];function O({type:o,isTextShown:t,tableMode:I,...b}){let{t:D}=useTranslation(),n=i(o)?e[o]:null;return jsx(a,{title:n?`Device - ${Ab((o??"").toLowerCase())}`:D("unKnown"),children:t?jsxs(f,{tableMode:I,children:[" ",o?(0, d.default)(o):"Unknown"]}):jsx(T,{...b,component:"img",src:o?n||Uh:Uh,alt:o})})}var x=memo(O);var G=x;export{e as a,i as b,G as c};
1
+ import {a}from'./chunk-3QA32K6H.js';import {tb,Ab}from'./chunk-WA5GDTQV.js';import {qa,pa,oa,Xh}from'./chunk-3DNCZF5Y.js';import {c}from'./chunk-5TBO732O.js';import {memo}from'react';import T from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d=c(tb(),1);var f=styled(T,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:t==="sheet"?"18px":"24px"}));var e={DESKTOP:oa,PHONE:pa,TABLET:qa};var i=o=>!!e[o];function O({type:o,isTextShown:t,tableMode:I,...b}){let{t:D}=useTranslation(),n=i(o)?e[o]:null;return jsx(a,{title:n?`Device - ${Ab((o??"").toLowerCase())}`:D("unKnown"),children:t?jsxs(f,{tableMode:I,children:[" ",o?(0, d.default)(o):"Unknown"]}):jsx(T,{...b,component:"img",src:o?n||Xh:Xh,alt:o})})}var x=memo(O);var G=x;export{e as a,i as b,G as c};
@@ -1 +1 @@
1
- import {a,d,b,c,j as j$1,e}from'./chunk-ZQK3CD47.js';import {Sb,Tb}from'./chunk-NDP36V5Z.js';import {memo,useState}from'react';import X from'@mui/material/ClickAwayListener';import Z from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {DateObject,Calendar}from'react-multi-date-picker';import i from'@mui/material/Box';import l from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(l)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),O=styled(i)(()=>({position:"relative"})),z=styled(i,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({display:t?"flex":"none",flexDirection:"column",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),top:37,color:e.palette.text.primary,fontSize:"11px",margin:"8px 0",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"}})),H=styled(l,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,padding:e.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,textTransform:"none",height:32,...t&&{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),j=styled(i)(({theme:t})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,padding:"16px",borderTop:`1px solid ${t.palette.divider}`})),A=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:t.palette.text.primary,border:"1px solid",borderColor:t.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:t.palette.text.primary}})),E=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:t.palette.info.dark,"&:hover":{background:t.palette.info.dark}})),Y=styled(i)(()=>({display:"flex",gap:"8px"}));var te=["Su","Mo","Tu","We","Th","Fr","Sa"];function re({isAr:t=false,value:e$1,setValue:y,enableTimePicker:p,placement:L,sx:R,...I}){let[w,k]=useState(null),[C,N]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),[D,g]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),V=e$1?.hour?a(e$1.hour):d(),$=e$1?.hour?b(e$1.hour):b(new Date().getHours()),[a$1,q]=useState({hour:V,minute:e$1?.minute??c(),period:$}),{t:B}=useTranslation(),u=!!w,G=r=>r==="right"?t?Sb:Tb:t?Tb:Sb,J=r=>{k(r.currentTarget);},f=()=>{k(null);},K=()=>{let r=a$1.hour;p&&(r=e(a$1.hour,a$1.period||"AM"));let d=p?D.setHour(r).setMinute(a$1.minute):D;N(d),y&&y(d),f();},Q=r=>{q(r);};return jsx(X,{onClickAway:f,children:jsxs(O,{sx:{...R},children:[jsx(H,{onClick:J,open:u,className:"date-button",children:C.format("MMM D, YYYY")}),jsx(Z,{open:u,anchorEl:w,placement:L,children:jsxs(z,{className:"calender-content",open:u,children:[jsx(Calendar,{numberOfMonths:1,format:"MMM DD YYYY",monthYearSeparator:" ",renderButton:(r,d)=>jsx(W,{onClick:d,children:jsx("img",{src:G(r),alt:"arrow"})}),onMonthChange:r=>{g(r);},onYearChange:r=>{g(r);},onChange:r=>{g(r);},weekDays:t?void 0:te,minDate:new Date,value:C,...I}),jsxs(j,{sx:{...p&&{justifyContent:"space-between"}},children:[p&&jsx(j$1,{enableRealTimeChange:true,onChange:Q,defaultTime:a$1}),jsxs(Y,{children:[jsx(A,{variant:"contained",onClick:f,children:B("cancel")}),jsx(E,{variant:"contained",onClick:K,children:B("okay")})]})]})]})})]})})}var F=memo(re);var Ce=F;export{Ce as a};
1
+ import {a,d,b,c,j as j$1,e}from'./chunk-RCDE5HEB.js';import {Vb,Wb}from'./chunk-3DNCZF5Y.js';import {memo,useState}from'react';import X from'@mui/material/ClickAwayListener';import Z from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {DateObject,Calendar}from'react-multi-date-picker';import i from'@mui/material/Box';import l from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(l)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),O=styled(i)(()=>({position:"relative"})),z=styled(i,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({display:t?"flex":"none",flexDirection:"column",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),top:37,color:e.palette.text.primary,fontSize:"11px",margin:"8px 0",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"}})),H=styled(l,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,padding:e.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,textTransform:"none",height:32,...t&&{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),j=styled(i)(({theme:t})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,padding:"16px",borderTop:`1px solid ${t.palette.divider}`})),A=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:t.palette.text.primary,border:"1px solid",borderColor:t.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:t.palette.text.primary}})),E=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:t.palette.info.dark,"&:hover":{background:t.palette.info.dark}})),Y=styled(i)(()=>({display:"flex",gap:"8px"}));var te=["Su","Mo","Tu","We","Th","Fr","Sa"];function re({isAr:t=false,value:e$1,setValue:y,enableTimePicker:p,placement:L,sx:R,...I}){let[w,k]=useState(null),[C,N]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),[D,g]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),V=e$1?.hour?a(e$1.hour):d(),$=e$1?.hour?b(e$1.hour):b(new Date().getHours()),[a$1,q]=useState({hour:V,minute:e$1?.minute??c(),period:$}),{t:B}=useTranslation(),u=!!w,G=r=>r==="right"?t?Vb:Wb:t?Wb:Vb,J=r=>{k(r.currentTarget);},f=()=>{k(null);},K=()=>{let r=a$1.hour;p&&(r=e(a$1.hour,a$1.period||"AM"));let d=p?D.setHour(r).setMinute(a$1.minute):D;N(d),y&&y(d),f();},Q=r=>{q(r);};return jsx(X,{onClickAway:f,children:jsxs(O,{sx:{...R},children:[jsx(H,{onClick:J,open:u,className:"date-button",children:C.format("MMM D, YYYY")}),jsx(Z,{open:u,anchorEl:w,placement:L,children:jsxs(z,{className:"calender-content",open:u,children:[jsx(Calendar,{numberOfMonths:1,format:"MMM DD YYYY",monthYearSeparator:" ",renderButton:(r,d)=>jsx(W,{onClick:d,children:jsx("img",{src:G(r),alt:"arrow"})}),onMonthChange:r=>{g(r);},onYearChange:r=>{g(r);},onChange:r=>{g(r);},weekDays:t?void 0:te,minDate:new Date,value:C,...I}),jsxs(j,{sx:{...p&&{justifyContent:"space-between"}},children:[p&&jsx(j$1,{enableRealTimeChange:true,onChange:Q,defaultTime:a$1}),jsxs(Y,{children:[jsx(A,{variant:"contained",onClick:f,children:B("cancel")}),jsx(E,{variant:"contained",onClick:K,children:B("okay")})]})]})]})})]})})}var F=memo(re);var Ce=F;export{Ce as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-TXC4TTA5.js';import {e}from'./chunk-SNWQE74F.js';import {_f}from'./chunk-NDP36V5Z.js';import {memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongerString"})(({theme:t,isLongerString:r})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:r?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));styled("div")(()=>({padding:"3.5px",background:"rgba(32, 35, 43, 0.10);",display:"flex",borderRadius:"50px"}));styled("button")(()=>({padding:0,cursor:"pointer",width:"auto",marginLeft:"auto",paddingRight:0,background:"none",border:"none"}));function u({Ids:t,onCancelClick:r,isShown:l,cardNumber:o}){return l?jsxs(a,{isLongerString:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),jsx(e,{pointer:true,round:true,onClick:r,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:_f,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
1
+ import {b}from'./chunk-EIYLX6CB.js';import {e}from'./chunk-YG7TACUO.js';import {bg}from'./chunk-3DNCZF5Y.js';import {memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongerString"})(({theme:t,isLongerString:r})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:r?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));styled("div")(()=>({padding:"3.5px",background:"rgba(32, 35, 43, 0.10);",display:"flex",borderRadius:"50px"}));styled("button")(()=>({padding:0,cursor:"pointer",width:"auto",marginLeft:"auto",paddingRight:0,background:"none",border:"none"}));function u({Ids:t,onCancelClick:r,isShown:l,cardNumber:o}){return l?jsxs(a,{isLongerString:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),jsx(e,{pointer:true,round:true,onClick:r,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:bg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
@@ -1 +1 @@
1
- import {f as f$1}from'./chunk-BJFSLPYF.js';import {styled,Button,Box,alpha}from'@mui/material';var p=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),c=styled(Button)(({theme:t})=>({...p(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),l=styled(Button)(({theme:t})=>({...p(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}})),g={active:c,inActive:l};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var h=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),y=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),f=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),S=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),v=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),B=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{g as a,h as b,y as c,f as d,b as e,S as f,v as g,B as h};
1
+ import {f as f$1}from'./chunk-NDHVECD6.js';import {styled,Button,Box,alpha}from'@mui/material';var p=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),c=styled(Button)(({theme:t})=>({...p(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),l=styled(Button)(({theme:t})=>({...p(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}})),g={active:c,inActive:l};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var h=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),y=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),f=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),S=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),v=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),B=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{g as a,h as b,y as c,f as d,b as e,S as f,v as g,B as h};
@@ -1 +1 @@
1
- import {Pa}from'./chunk-GF5EUCFB.js';import b from'react';import y from'@mui/material/Box';import f from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(f,{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 c=Pa();function x({isError:r,hideArrows:o,inputProps:u,onKeyDown:n,...t},s){let d=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}c&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(y,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:s,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...u,type:"number"},onKeyDown:d,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}var l=b.forwardRef(x);var M=l;export{M as a};
1
+ import {Pa}from'./chunk-WA5GDTQV.js';import b from'react';import y from'@mui/material/Box';import f from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(f,{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 c=Pa();function x({isError:r,hideArrows:o,inputProps:u,onKeyDown:n,...t},s){let d=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}c&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(y,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:s,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...u,type:"number"},onKeyDown:d,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}var l=b.forwardRef(x);var M=l;export{M as a};
@@ -1 +1 @@
1
- import'./chunk-NDP36V5Z.js';import {memo,useState,useRef,useMemo,useEffect}from'react';import {useTheme}from'@mui/material';import {motion}from'framer-motion';import {Resizable}from're-resizable';import X from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b={boxShadow:"rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px",display:"flex",flexDirection:"column",overflow:"visible",width:"-webkit-fill-available",height:"100% !important",margin:"auto"},x={position:"fixed",right:0,left:24,top:88,overflow:"visible",borderRadius:"12px"},C={width:"inherit",height:"inherit",gridRowStart:1,gridColumnStart:1,position:"relative",display:"flex",justifyContent:"center"},S=styled(motion.div,{shouldForwardProp:t=>t!=="maximized"})(({maximized:t})=>({overflow:"hidden",display:"flex",flexDirection:"column",width:"100%",height:"100%",zIndex:1,borderRadius:"12px",...t&&{transform:"translate(0,0) !important"}})),R=styled(X)(()=>({flexGrow:1})),w=styled(motion.div)(()=>({width:"inherit",height:"100%",overflow:"hidden",flexGrow:1,position:"relative",display:"grid",gridTemplateColumns:"1fr"}));function V({children:t,id:l,onResize:v,isMaximized:e,isMinimized:y,dragControls:H,onClick:n,options:{width:r,height:E,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,order:s,openOrder:i=1},sandboxMode:d=false,sx:T}){let m=useTheme(),[I,f]=useState(true),_=useRef(null),N=useRef(null),g=useRef(),G=()=>{f(true);},L=()=>{n?.(),f(false);},k=useMemo(()=>({...b,maxWidth:r,borderRadius:e?"0 !important":12,...!e&&{top:0},background:d?m.palette.common.lightOrange:m.palette.background.transparent[0],backdropFilter:"blur(32px)"}),[r,e,d]);return useEffect(()=>{g.current?.updateSize({width:e?"100vw":r,height:e?"100vh":"100%"});},[e,r]),jsx(R,{id:"app-container-wrapper","data-testid":"AppContainerWrapper",sx:T,children:jsx(w,{"data-testid":"AppContainerContainer",children:jsx(motion.div,{id:"app-content","data-add-id":l,"data-testid":"AppContent",ref:N,initial:C,children:jsx(S,{id:"content-wrapper",drag:!e&&I,dragMomentum:false,dragConstraints:false,onDragStart:n,onDragEnter:n,onClick:n,dragControls:H,dragListener:false,style:{...s&&{zIndex:Number(s)+3},...x,height:E},initial:{marginInline:"auto",scale:0,left:0,...!e&&{left:48*(i-1)}},animate:{width:r,...e&&{width:"100vw"},scale:+!y,top:e?0:88+24*(i-1),left:e?0:48*(i-1)},ref:_,maximized:e,transition:{duration:e?.3:0},children:jsx(Resizable,{"data-id":l,ref:u=>{g.current=u;},style:k,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,onResizeStart:L,onResizeStop:G,onResize:(u,Y,B)=>{v?.(B);},children:t})})})})})}var W=memo(V);var ge=W;export{ge as a};
1
+ import'./chunk-3DNCZF5Y.js';import {memo,useState,useRef,useMemo,useEffect}from'react';import {useTheme}from'@mui/material';import {motion}from'framer-motion';import {Resizable}from're-resizable';import X from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b={boxShadow:"rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px",display:"flex",flexDirection:"column",overflow:"visible",width:"-webkit-fill-available",height:"100% !important",margin:"auto"},x={position:"fixed",right:0,left:24,top:88,overflow:"visible",borderRadius:"12px"},C={width:"inherit",height:"inherit",gridRowStart:1,gridColumnStart:1,position:"relative",display:"flex",justifyContent:"center"},S=styled(motion.div,{shouldForwardProp:t=>t!=="maximized"})(({maximized:t})=>({overflow:"hidden",display:"flex",flexDirection:"column",width:"100%",height:"100%",zIndex:1,borderRadius:"12px",...t&&{transform:"translate(0,0) !important"}})),R=styled(X)(()=>({flexGrow:1})),w=styled(motion.div)(()=>({width:"inherit",height:"100%",overflow:"hidden",flexGrow:1,position:"relative",display:"grid",gridTemplateColumns:"1fr"}));function V({children:t,id:l,onResize:v,isMaximized:e,isMinimized:y,dragControls:H,onClick:n,options:{width:r,height:E,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,order:s,openOrder:i=1},sandboxMode:d=false,sx:T}){let m=useTheme(),[I,f]=useState(true),_=useRef(null),N=useRef(null),g=useRef(),G=()=>{f(true);},L=()=>{n?.(),f(false);},k=useMemo(()=>({...b,maxWidth:r,borderRadius:e?"0 !important":12,...!e&&{top:0},background:d?m.palette.common.lightOrange:m.palette.background.transparent[0],backdropFilter:"blur(32px)"}),[r,e,d]);return useEffect(()=>{g.current?.updateSize({width:e?"100vw":r,height:e?"100vh":"100%"});},[e,r]),jsx(R,{id:"app-container-wrapper","data-testid":"AppContainerWrapper",sx:T,children:jsx(w,{"data-testid":"AppContainerContainer",children:jsx(motion.div,{id:"app-content","data-add-id":l,"data-testid":"AppContent",ref:N,initial:C,children:jsx(S,{id:"content-wrapper",drag:!e&&I,dragMomentum:false,dragConstraints:false,onDragStart:n,onDragEnter:n,onClick:n,dragControls:H,dragListener:false,style:{...s&&{zIndex:Number(s)+3},...x,height:E},initial:{marginInline:"auto",scale:0,left:0,...!e&&{left:48*(i-1)}},animate:{width:r,...e&&{width:"100vw"},scale:+!y,top:e?0:88+24*(i-1),left:e?0:48*(i-1)},ref:_,maximized:e,transition:{duration:e?.3:0},children:jsx(Resizable,{"data-id":l,ref:u=>{g.current=u;},style:k,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,onResizeStart:L,onResizeStop:G,onResize:(u,Y,B)=>{v?.(B);},children:t})})})})})}var W=memo(V);var ge=W;export{ge as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-5IC4YOPT.js';import {Bc,J,ab}from'./chunk-GF5EUCFB.js';import {ql}from'./chunk-NDP36V5Z.js';import {useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import S from'dayjs';import U from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var M=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),b=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),w=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),K=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),B=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var L=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===ql.AMOUNT?`${ab(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),W=(t,i,r=0)=>{let a=S(t).add(r,"hour").format(),n=new Date,o=S(a).isSame(n,"year");return J(a,i?void 0:{sameDay:`[Today] ${o?"":"YYYY"}`,nextDay:`[Tomorrow] ${o?"":"YYYY"}`,lastDay:`[Yesterday] ${o?"":"YYYY"}`,sameElse:`MMM DD ${o?"":", YYYY"}`,lastWeek:`MMM DD ${o?"":", YYYY"}`,nextWeek:`MMM DD ${o?"":", YYYY"}`},void 0,void 0,r!==void 0)};var V=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),o=S(r?.[0]),u=S(r?.[1]),d=o?.isSame(u,"day");if(t&&i?.length){let e=i[0],f=Bc(e?.dataKey,e?.value),y=e?.payload?.date&&W(e?.payload?.date,d,e?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(b,{children:y??e?.payload?.date}),jsxs(w,{children:[e?.dataKey===ql.AMOUNT&&jsxs(K,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(B,{children:a$1})]}),jsx(U,{children:`${L(e,n(f),a$1)}`})]})]})}return null},x=V;var N=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],j=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:N,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=j;var tt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let o=useTheme(),[u,d]=useState(false),[e,f]=useState({x:0,y:0}),y=t?.length===0,P=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},O=useMemo(()=>jsx(x,{position:e,dateRange:a,selectedCurrency:n}),[e,a,n]);return r||y?jsx(T,{}):jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:P,children:[t.length>0&&jsx(Tooltip,{content:O,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:o.palette.success.dark,activeDot:{r:5,fill:o.palette.success.dark,strokeWidth:2,stroke:"white",cursor:u?"pointer":"default",onMouseOver:()=>d(true),onMouseLeave:()=>d(false)}})]})})},E=tt;var St=E;export{x as a,T as b,St as c};
1
+ import {a}from'./chunk-3YBFA42C.js';import {Bc,J,ab}from'./chunk-WA5GDTQV.js';import {tl}from'./chunk-3DNCZF5Y.js';import {useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import S from'dayjs';import U from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var M=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),b=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),w=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),K=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),B=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var L=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===tl.AMOUNT?`${ab(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),W=(t,i,r=0)=>{let a=S(t).add(r,"hour").format(),n=new Date,o=S(a).isSame(n,"year");return J(a,i?void 0:{sameDay:`[Today] ${o?"":"YYYY"}`,nextDay:`[Tomorrow] ${o?"":"YYYY"}`,lastDay:`[Yesterday] ${o?"":"YYYY"}`,sameElse:`MMM DD ${o?"":", YYYY"}`,lastWeek:`MMM DD ${o?"":", YYYY"}`,nextWeek:`MMM DD ${o?"":", YYYY"}`},void 0,void 0,r!==void 0)};var V=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),o=S(r?.[0]),u=S(r?.[1]),d=o?.isSame(u,"day");if(t&&i?.length){let e=i[0],f=Bc(e?.dataKey,e?.value),y=e?.payload?.date&&W(e?.payload?.date,d,e?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(b,{children:y??e?.payload?.date}),jsxs(w,{children:[e?.dataKey===tl.AMOUNT&&jsxs(K,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(B,{children:a$1})]}),jsx(U,{children:`${L(e,n(f),a$1)}`})]})]})}return null},x=V;var N=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],j=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:N,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=j;var tt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let o=useTheme(),[u,d]=useState(false),[e,f]=useState({x:0,y:0}),y=t?.length===0,P=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},O=useMemo(()=>jsx(x,{position:e,dateRange:a,selectedCurrency:n}),[e,a,n]);return r||y?jsx(T,{}):jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:P,children:[t.length>0&&jsx(Tooltip,{content:O,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:o.palette.success.dark,activeDot:{r:5,fill:o.palette.success.dark,strokeWidth:2,stroke:"white",cursor:u?"pointer":"default",onMouseOver:()=>d(true),onMouseLeave:()=>d(false)}})]})})},E=tt;var St=E;export{x as a,T as b,St as c};
@@ -1 +1 @@
1
- import {wg,xg}from'./chunk-NDP36V5Z.js';import {styled,Box}from'@mui/material';import v,{useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),d=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),u=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var x=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(x||{});var h=e=>{let o=v.Children.count(e.children)-1;return jsx(c,{...e,sx:{width:o*30+2}})},m=h;var V=[{icon:jsx("img",{src:wg,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:xg,alt:"LIST"}),value:"LIST"}],y=e=>{let{currentView:o,onToggleClick:a,getOverrideViews:t}=e,l=useMemo(()=>t?t(V):V,[t]),f=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return a?jsxs(m,{children:[l.map(r=>jsx(d,{onClick:()=>a(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(u,{activeIndex:f})]}):null},T=y;var M=T;export{x as a,M as b};
1
+ import {zg,Ag}from'./chunk-3DNCZF5Y.js';import {styled,Box}from'@mui/material';import v,{useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),d=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),u=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var x=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(x||{});var h=e=>{let o=v.Children.count(e.children)-1;return jsx(c,{...e,sx:{width:o*30+2}})},m=h;var V=[{icon:jsx("img",{src:zg,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:Ag,alt:"LIST"}),value:"LIST"}],y=e=>{let{currentView:o,onToggleClick:a,getOverrideViews:t}=e,l=useMemo(()=>t?t(V):V,[t]),f=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return a?jsxs(m,{children:[l.map(r=>jsx(d,{onClick:()=>a(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(u,{activeIndex:f})]}):null},T=y;var M=T;export{x as a,M as b};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {Kc,pb,rb}from'./chunk-NDP36V5Z.js';import {memo}from'react';import p from'@mui/material/Box';import y from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(p,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),b=styled(p)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a)(({theme:o,selected:e})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...e&&{backgroundColor:"#F8F8F8"}}));function k({onClose:o,open:e,anchorEl:t,trigger:g,onOpen:h,children:u,disabled:w,listWrapperSx:W,hideArrow:v,onClear:n,hasValue:C}){let a=n&&C;return jsxs(m,{open:e,onClick:h,"data-testid":"Dropdown",disabled:w,children:[jsx(p,{sx:{flex:1,cursor:"pointer"},children:g}),!v&&!a&&jsx(p,{sx:{width:16,height:16,display:"flex",alignItems:"center",position:"absolute",right:8},children:jsx(p,{component:"img",src:e?Kc:pb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),a&&jsx(p,{sx:{width:16,height:16,display:"flex",alignItems:"center",position:"absolute",right:8,cursor:"pointer"},children:jsx(p,{component:"img",src:rb,alt:"clear",onClick:n})}),jsx(y,{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(b,{sx:W,children:u})})]})}var f=memo(k);var j=f;export{j as a};
1
+ import {a}from'./chunk-CNIYZZCP.js';import {Nc,sb,ub}from'./chunk-3DNCZF5Y.js';import {memo}from'react';import p from'@mui/material/Box';import y from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(p,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),b=styled(p)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a)(({theme:o,selected:e})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...e&&{backgroundColor:"#F8F8F8"}}));function k({onClose:o,open:e,anchorEl:t,trigger:g,onOpen:h,children:u,disabled:w,listWrapperSx:W,hideArrow:v,onClear:n,hasValue:C}){let a=n&&C;return jsxs(m,{open:e,onClick:h,"data-testid":"Dropdown",disabled:w,children:[jsx(p,{sx:{flex:1,cursor:"pointer"},children:g}),!v&&!a&&jsx(p,{sx:{width:16,height:16,display:"flex",alignItems:"center",position:"absolute",right:8},children:jsx(p,{component:"img",src:e?Nc:sb,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),a&&jsx(p,{sx:{width:16,height:16,display:"flex",alignItems:"center",position:"absolute",right:8,cursor:"pointer"},children:jsx(p,{component:"img",src:ub,alt:"clear",onClick:n})}),jsx(y,{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(b,{sx:W,children:u})})]})}var f=memo(k);var j=f;export{j as a};
@@ -1 +1 @@
1
- import {c}from'./chunk-54Z6CNTM.js';import {memo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import g from'@mui/material/Box';import k from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var A=styled(g)(({theme:e})=>({background:e.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),I=styled(g)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),h=styled(k)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${e.palette.info.dark}`,backgroundColor:e.palette.info.dark,fontWeight:700,fontSize:"11px",color:e.palette.common.white,"&:hover":{backgroundColor:e.palette.info.dark}})),w=styled(k)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,fontWeight:500,fontSize:"11px",color:e.palette.text.primary,"&:hover":{background:"transparent"}}));function T({onCloseDropdown:e,filter:r,styles:f}){let[C,L]=useState([]),[S,O]=useState([]),{t:u}=useTranslation(),x=t=>{let o=r?.data?.[r.apiKey]??[];if(Array.isArray(o)&&o.length)return new Set(o).has(t)};useEffect(()=>{let t=o=>o.map(({placeholder:s,value:n,isSelected:a,icon:l,options:i})=>({...s&&{label:s},name:n,selected:(a||x(n)||i?.every(({value:p})=>x(p)))??false,...l&&{icon:l},...i?.length&&{menuItems:t(i)}}));r.options&&O(t(r.options));},[r?.data]);let V=t=>{e(t);},v=t=>{let o=C.reduce((n,{options:a,apiKey:l,isSelected:i})=>{if(a){let p=a.filter(({isSelected:m})=>m);p.length&&n.push(...p.map(({apiKey:m})=>m));}else i&&n.push(l);return n},[]),s=new Set(o);Object.keys(C).length&&r?.onConfirm?.({[r.apiKey]:[...s]}),e(t);},B=t=>{let o=s=>s.map(({name:n,selected:a,menuItems:l,label:i})=>({...i&&{placeholder:i},apiKey:n,isSelected:a,...l?.length&&{options:o(l)}}));L(o(t));};return jsx(c,{"data-testid":"ColumnFilter_List",title:u("filterBy")||"Filter by",menuItems:S,style:f,sx:t=>({marginTop:"10px",textAlign:"left",boxShadow:t.shadows[3],".nested-menu-item":{height:41,zIndex:9999},...f}),updatedList:B,footer:jsxs(I,{sx:{position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999},children:[jsx(w,{onClick:V,children:u("cancel")},"nested-dropdown-cancel"),jsx(h,{onClick:v,children:u("okay")},"nested-dropdown-ok")]})})}var b=memo(T);var Q=b;export{A as a,I as b,h as c,w as d,Q as e};
1
+ import {c}from'./chunk-UGYBFOV5.js';import {memo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import g from'@mui/material/Box';import k from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var A=styled(g)(({theme:e})=>({background:e.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),I=styled(g)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),h=styled(k)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${e.palette.info.dark}`,backgroundColor:e.palette.info.dark,fontWeight:700,fontSize:"11px",color:e.palette.common.white,"&:hover":{backgroundColor:e.palette.info.dark}})),w=styled(k)(({theme:e})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,fontWeight:500,fontSize:"11px",color:e.palette.text.primary,"&:hover":{background:"transparent"}}));function T({onCloseDropdown:e,filter:r,styles:f}){let[C,L]=useState([]),[S,O]=useState([]),{t:u}=useTranslation(),x=t=>{let o=r?.data?.[r.apiKey]??[];if(Array.isArray(o)&&o.length)return new Set(o).has(t)};useEffect(()=>{let t=o=>o.map(({placeholder:s,value:n,isSelected:a,icon:l,options:i})=>({...s&&{label:s},name:n,selected:(a||x(n)||i?.every(({value:p})=>x(p)))??false,...l&&{icon:l},...i?.length&&{menuItems:t(i)}}));r.options&&O(t(r.options));},[r?.data]);let V=t=>{e(t);},v=t=>{let o=C.reduce((n,{options:a,apiKey:l,isSelected:i})=>{if(a){let p=a.filter(({isSelected:m})=>m);p.length&&n.push(...p.map(({apiKey:m})=>m));}else i&&n.push(l);return n},[]),s=new Set(o);Object.keys(C).length&&r?.onConfirm?.({[r.apiKey]:[...s]}),e(t);},B=t=>{let o=s=>s.map(({name:n,selected:a,menuItems:l,label:i})=>({...i&&{placeholder:i},apiKey:n,isSelected:a,...l?.length&&{options:o(l)}}));L(o(t));};return jsx(c,{"data-testid":"ColumnFilter_List",title:u("filterBy")||"Filter by",menuItems:S,style:f,sx:t=>({marginTop:"10px",textAlign:"left",boxShadow:t.shadows[3],".nested-menu-item":{height:41,zIndex:9999},...f}),updatedList:B,footer:jsxs(I,{sx:{position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999},children:[jsx(w,{onClick:V,children:u("cancel")},"nested-dropdown-cancel"),jsx(h,{onClick:v,children:u("okay")},"nested-dropdown-ok")]})})}var b=memo(T);var Q=b;export{A as a,I as b,h as c,w as d,Q as e};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-XQFTITQ3.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {pb}from'./chunk-NDP36V5Z.js';import {Box}from'@mui/material';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(n,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),h=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(n)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),w=styled(n)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$3,onChange:M,options:i}){let[s,d]=useState(null),[y,D]=useState(o),r=!!s,E=e=>{r||d(e.currentTarget);},m=()=>{r&&d(null);},I=e=>{D(e),M?.(e),m();};return jsxs(g,{onClick:E,open:r,children:[jsxs(h,{children:[jsx(b,{children:a$3}),jsx(w,{children:y})]}),jsx(Box,{component:"img",src:pb,alt:"down arrow",sx:{width:15,...r&&{transform:"rotate(180deg)"}}}),jsx(a,{open:r,anchorEl:s,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,W)=>jsx(a$1,{onClick:()=>{I(e.value);},sx:k=>({...W!==i.length-1&&{borderBottom:`1px solid ${k.palette.divider}`}}),children:e.label},e.value))}),r&&jsx(a$2,{onClick:m})]})}var G=l;export{G as a};
1
+ import {a as a$1}from'./chunk-PTP62THF.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {sb}from'./chunk-3DNCZF5Y.js';import {Box}from'@mui/material';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(n,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),h=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(n)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),w=styled(n)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$3,onChange:M,options:i}){let[s,d]=useState(null),[y,D]=useState(o),r=!!s,E=e=>{r||d(e.currentTarget);},m=()=>{r&&d(null);},I=e=>{D(e),M?.(e),m();};return jsxs(g,{onClick:E,open:r,children:[jsxs(h,{children:[jsx(b,{children:a$3}),jsx(w,{children:y})]}),jsx(Box,{component:"img",src:sb,alt:"down arrow",sx:{width:15,...r&&{transform:"rotate(180deg)"}}}),jsx(a,{open:r,anchorEl:s,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,W)=>jsx(a$1,{onClick:()=>{I(e.value);},sx:k=>({...W!==i.length-1&&{borderBottom:`1px solid ${k.palette.divider}`}}),children:e.label},e.value))}),r&&jsx(a$2,{onClick:m})]})}var G=l;export{G as a};
@@ -1 +1 @@
1
- import {ab}from'./chunk-GF5EUCFB.js';import {memo}from'react';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(f)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function l({amount:m,currencyCode:a,...i}){let{integerAmount:u,decimalAmount:s}=ab(m,a);return jsxs(e,{...i,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:s})]})}var p=memo(l);var B=p;export{B as a};
1
+ import {ab}from'./chunk-WA5GDTQV.js';import {memo}from'react';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(f)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function l({amount:m,currencyCode:a,...i}){let{integerAmount:u,decimalAmount:s}=ab(m,a);return jsxs(e,{...i,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:s})]})}var p=memo(l);var B=p;export{B as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-LM5XVNC6.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {pb,u}from'./chunk-NDP36V5Z.js';import je,{memo,forwardRef,useMemo,useState,useEffect}from'react';import Q from'@mui/material/Box';import {styled}from'@mui/material/styles';import Ve from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1,Popper,Box,CircularProgress,ClickAwayListener}from'@mui/material';import pt from'@mui/material/InputLabel';import lt from'@mui/material/MenuItem';import nt from'@mui/material/FormControl';import re from'@mui/material/Select';import bt from'@mui/material/Skeleton';import Rt from'@mui/material/Input';var Z=styled(Q)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0 !important"}})),V=styled(Ve,{shouldForwardProp:e=>e!=="hideArrows"})(({theme:e,error:t,hideArrows:n,disabled:o})=>({border:`1px solid ${e.palette.divider}`,...o&&{backgroundColor:e.palette.grey[400]},borderRadius:"4px",...!!t&&{border:`1px solid ${e.palette.error.main}`},...n&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important",fontSize:"11px",height:"40px",padding:"8px",borderRadius:"4px"},"& .MuiInputBase-input":{margin:0,padding:0,color:e.palette.text.primary},"& .MuiFormLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)",color:e.palette.grey[700],padding:"8px","&.MuiFormLabel-filled, &.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) "},"&.Mui-focused":{fontSize:"10px",fontWeight:500,lineHeight:"100%"}}})),j=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var ee=je.forwardRef(({name:e,onChange:t,hasError:n,helperText:o,hideArrows:f,...i},p)=>{let l=d=>{t?.(d.target.value??"");};return jsxs(Q,{children:[jsx(Z,{"data-testid":"InputBase",children:jsx(V,{rows:1,error:n,fullWidth:true,size:"small",variant:"standard",ref:p,name:e,type:i.type??"text",label:i.placeholder||i.label,onChange:l,InputProps:{disableUnderline:true},hideArrows:f,...i})}),jsx(j,{children:o})]})});ee.displayName="InputBase";var te=ee;var rt=te;var H=styled(nt)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(re)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var N=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),z=styled(re)(({theme:e,error:t})=>({width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:"4px",fontSize:"11px"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedStart > div:nth-of-type(1)":{backgroundColor:"red"},...t&&{border:`1px solid ${e.palette.error.main}`}})),$=styled(Q)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function st({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=m=>{i?.(m);},S=()=>d?d(o):y?y(o):o.label;return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{sx:{height:"100%"},id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{"data-testid":"SelectBase_Select",ref:C,value:(s?s(o):o?.id)??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:S,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:m=>m.palette.grey.A400}}):null,children:u||p?.map((m,B)=>{let r=l?l(m,o):m?.id===o?.id;return jsx(lt,{disabled:!!m.disabled,value:(s?s(m):m?.id)??"",onClick:()=>{a(m);},sx:{fontSize:"12px",backgroundColor:c=>r?c.palette.action.hover:c.palette.common.white},children:d?d(m):m.label},`country-item-${B}`)})})]}),jsx(N,{children:f})]})}var ne=je.forwardRef(st);function gt({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=r=>{i?.(r);},S=()=>s?o?.map(s):o?.map(r=>r?.id),m=useMemo(()=>p?.filter(r=>o?.some(c=>l?l(r,c):r.id===c?.id)),[p,o,l]),B=()=>m?.map(r=>y?y(r):r.label)?.join(", ");return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{multiple:true,"data-testid":"SelectBase_Select",ref:C,value:S()??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:B,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:r=>r.palette.grey.A400}}):null,onChange:r=>{let L=r.target.value?.map(I=>p?.find(X=>s?s(X)===I:X.id===I));i?.([...L]);},children:u||p?.map((r,c)=>{let L=l?l(r,o):r?.id===o?.id;return jsx(lt,{value:(s?s(r):r?.id)??"",onClick:()=>{a(r);},sx:{fontSize:"12px",backgroundColor:I=>L?I.palette.action.hover:I.palette.common.white},children:d?d(r):r.label},`country-item-${c}`)})})]}),jsx(N,{children:f})]})}var ie=je.forwardRef(gt);var xt=ne;var pe=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),le=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),se=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),de=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"})),ue=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),me=styled$1(Box)(()=>({color:"red !important"}));function xe({isLoading:e,countries:t,value:n,onCountryChange:o,required:f,disabled:i}){let[p,l]=useState(),[d,s]=useState(null),[g,u$1]=useState([]),[y,h]=useState(""),C=!!d&&!i,a=r=>{r.stopPropagation(),s(r.currentTarget);},S=()=>{s(null);},m=r=>{o?.(r),l(r),S(),u$1(t);},B=r=>{let c=r.target.value.toString()??"";if(h(c),!c){u$1(t);return}let L=t.filter(I=>I.idd_prefix.toString().startsWith(c)||I.iso2.toLowerCase().startsWith(c.toLowerCase()));u$1(L);};return useEffect(()=>{n&&l(n);},[n?.countryId]),useEffect(()=>{t.length&&u$1(t);},[t.length]),jsxs(Q,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(pe,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:a,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),f&&jsx(me,{component:"span",children:"*"}),jsx(Q,{component:"img",src:pb,alt:"d",className:"arrow",sx:{...C&&{transform:"rotate(180deg)"}}})]})}),C&&jsx(a$1,{onClick:S,sx:{zIndex:9999}}),C&&jsx(ClickAwayListener,{onClickAway:S,children:jsxs(le,{id:"CountriesList_CountriesWrapper",open:C,anchorEl:d,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(ue,{endAdornment:jsx("img",{src:u,alt:"arrow"}),onChange:B,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:y}),jsx(se,{"data-testid":"CountriesList_CountriesListStyled",children:g.map(r=>{let c=p?.countryId===r.countryId;return jsxs(de,{onClick:()=>{m(r);},sx:{backgroundColor:c?"#F9F9F9":"transparent",color:c?"#000":"#8D8D94"},children:[jsx("img",{src:r.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`)})})]})})]})}xe.displayName="CountriesList";var ye=memo(xe);var _=ye;var Ce=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),be=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Se=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Ie=styled(Q)(()=>({flex:1}));function Be({phoneValue:e,hasError:t,countries:n,isCountriesLoading:o,countryValue:f,onCountryChange:i,onPhoneChange:p,helperText:l,countryError:d,required:s,disabled:g,...u},y){return jsxs(Ie,{"data-testid":"PhoneInput",children:[jsxs(Ce,{"data-testid":"PhoneInput_MobileWrapper",hasError:t,children:[jsx(_,{isLoading:o,countries:n,value:f,onCountryChange:a=>{i?.(a);},required:s,disabled:g}),jsx(be,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,disabled:g,...u,onChange:a=>{p?.(a.target.value);},hideArrows:true})]}),jsx(Se,{children:l})]})}Be.displayName="PhoneInputBase";var Le=je.forwardRef(Be);var Mt=Le;var we=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"})),ve=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Pe=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Re=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"})),Ee=styled$1(Box)(()=>({color:"red !important"}));function Fe({isLoading:e,currencies:t,value:n,onCurrencyChange:o,required:f}){let[i,p]=useState(),[l,d]=useState(null),[s,g]=useState([]),u=!!l,y=a=>{a.stopPropagation(),d(a.currentTarget);},h=()=>{d(null);},C=a=>{o?.(a),p(a),h(),g(t);};return useEffect(()=>{n&&p(n);},[n?.currencyId]),useEffect(()=>{t.length&&g(t);},[t.length]),jsxs(Q,{"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(we,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:y,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[i&&jsxs(Fragment,{children:[jsx("img",{src:i.logo,alt:"c",className:"logo"}),jsx("span",{children:i?.code.english})]}),f&&jsx(Ee,{component:"span",children:"*"}),jsx(Q,{component:"img",src:pb,alt:"d",className:"arrow",sx:{...u&&{transform:"rotate(180deg)"}}})]})}),u&&jsx(a$1,{onClick:h}),u&&jsx(ve,{id:"currenciesList_currenciesWrapper",open:u,anchorEl:l,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(Pe,{"data-testid":"currenciesList_currenciesListStyled",children:s.map(a=>{let S=i?.currencyId===a.currencyId;return jsxs(Re,{onClick:()=>{C(a);},sx:{backgroundColor:S?"#F9F9F9":"transparent",color:S?"#000":"#8D8D94"},children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx("span",{children:a?.code.english})]},`currency-code-${a.currencyId}`)})})})]})}Fe.displayName="CurrenciesList";var He=memo(Fe);var Ne=He;var $e=styled(Rt,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),Te=styled(Q)(()=>({flex:1}));function Wt({hasError:e,hideArrows:t,inputProps:n,...o},f){return jsx(Te,{onClick:i=>{i.stopPropagation();},children:jsx($e,{ref:f,placeholder:o.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...n,type:"number"},onKeyDown:i=>{["e","E","+","-"].includes(i.key)&&i.preventDefault();},...o})})}var De=forwardRef(Wt);var qe=De;var Oe=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Ue=styled(Q)(()=>({width:"50px"})),Ge=styled(qe)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Je=styled(Q)(()=>({flex:1}));function Xe({amountValue:e,hasError:t,currencies:n,isCurrenciesLoading:o,currencyValue:f,onCurrencyChange:i,onAmountChange:p,onAmountBlur:l,helperText:d,required:s,...g},u){return jsxs(Je,{"data-testid":"AmountInput",children:[jsxs(Oe,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(Ne,{isLoading:o,currencies:n,value:f,onCurrencyChange:a=>{i?.(a);},required:s}),jsx(Ue,{children:jsx(Ge,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:u,inputProps:{autoComplete:"off"},error:t,...g,onChange:a=>{p?.(a.target.value);},onBlur:a=>{l?.(a.target.value);},hideArrows:true})})]}),jsx(Ke,{children:d})]})}Xe.displayName="AmountInputBase";var Ye=je.forwardRef(Xe);var At=Ye;export{rt as a,ie as b,xt as c,_ as d,Mt as e,At as f};
1
+ import {a}from'./chunk-F54JJ3B2.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {sb,u}from'./chunk-3DNCZF5Y.js';import je,{memo,forwardRef,useMemo,useState,useEffect}from'react';import Q from'@mui/material/Box';import {styled}from'@mui/material/styles';import Ve from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1,Popper,Box,CircularProgress,ClickAwayListener}from'@mui/material';import pt from'@mui/material/InputLabel';import lt from'@mui/material/MenuItem';import nt from'@mui/material/FormControl';import re from'@mui/material/Select';import bt from'@mui/material/Skeleton';import Rt from'@mui/material/Input';var Z=styled(Q)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0 !important"}})),V=styled(Ve,{shouldForwardProp:e=>e!=="hideArrows"})(({theme:e,error:t,hideArrows:n,disabled:o})=>({border:`1px solid ${e.palette.divider}`,...o&&{backgroundColor:e.palette.grey[400]},borderRadius:"4px",...!!t&&{border:`1px solid ${e.palette.error.main}`},...n&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important",fontSize:"11px",height:"40px",padding:"8px",borderRadius:"4px"},"& .MuiInputBase-input":{margin:0,padding:0,color:e.palette.text.primary},"& .MuiFormLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)",color:e.palette.grey[700],padding:"8px","&.MuiFormLabel-filled, &.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) "},"&.Mui-focused":{fontSize:"10px",fontWeight:500,lineHeight:"100%"}}})),j=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var ee=je.forwardRef(({name:e,onChange:t,hasError:n,helperText:o,hideArrows:f,...i},p)=>{let l=d=>{t?.(d.target.value??"");};return jsxs(Q,{children:[jsx(Z,{"data-testid":"InputBase",children:jsx(V,{rows:1,error:n,fullWidth:true,size:"small",variant:"standard",ref:p,name:e,type:i.type??"text",label:i.placeholder||i.label,onChange:l,InputProps:{disableUnderline:true},hideArrows:f,...i})}),jsx(j,{children:o})]})});ee.displayName="InputBase";var te=ee;var rt=te;var H=styled(nt)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(re)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var N=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),z=styled(re)(({theme:e,error:t})=>({width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:"4px",fontSize:"11px"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedStart > div:nth-of-type(1)":{backgroundColor:"red"},...t&&{border:`1px solid ${e.palette.error.main}`}})),$=styled(Q)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function st({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=m=>{i?.(m);},S=()=>d?d(o):y?y(o):o.label;return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{sx:{height:"100%"},id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{"data-testid":"SelectBase_Select",ref:C,value:(s?s(o):o?.id)??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:S,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:m=>m.palette.grey.A400}}):null,children:u||p?.map((m,B)=>{let r=l?l(m,o):m?.id===o?.id;return jsx(lt,{disabled:!!m.disabled,value:(s?s(m):m?.id)??"",onClick:()=>{a(m);},sx:{fontSize:"12px",backgroundColor:c=>r?c.palette.action.hover:c.palette.common.white},children:d?d(m):m.label},`country-item-${B}`)})})]}),jsx(N,{children:f})]})}var ne=je.forwardRef(st);function gt({required:e,hasError:t,label:n,value:o,helperText:f,onChange:i,options:p,isOptionEqualToValue:l,renderOption:d,getOptionValue:s,isLoading:g,children:u,getOptionLabel:y,...h},C){let a=r=>{i?.(r);},S=()=>s?o?.map(s):o?.map(r=>r?.id),m=useMemo(()=>p?.filter(r=>o?.some(c=>l?l(r,c):r.id===c?.id)),[p,o,l]),B=()=>m?.map(r=>y?y(r):r.label)?.join(", ");return jsxs($,{children:[jsxs(H,{variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(pt,{id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(z,{multiple:true,"data-testid":"SelectBase_Select",ref:C,value:S()??"",error:t,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:B,...h,disabled:h.disabled||g,endAdornment:g?jsx(CircularProgress,{size:20,sx:{backgroundColor:"transparent",color:r=>r.palette.grey.A400}}):null,onChange:r=>{let L=r.target.value?.map(I=>p?.find(X=>s?s(X)===I:X.id===I));i?.([...L]);},children:u||p?.map((r,c)=>{let L=l?l(r,o):r?.id===o?.id;return jsx(lt,{value:(s?s(r):r?.id)??"",onClick:()=>{a(r);},sx:{fontSize:"12px",backgroundColor:I=>L?I.palette.action.hover:I.palette.common.white},children:d?d(r):r.label},`country-item-${c}`)})})]}),jsx(N,{children:f})]})}var ie=je.forwardRef(gt);var xt=ne;var pe=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),le=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),se=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),de=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"})),ue=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),me=styled$1(Box)(()=>({color:"red !important"}));function xe({isLoading:e,countries:t,value:n,onCountryChange:o,required:f,disabled:i}){let[p,l]=useState(),[d,s]=useState(null),[g,u$1]=useState([]),[y,h]=useState(""),C=!!d&&!i,a=r=>{r.stopPropagation(),s(r.currentTarget);},S=()=>{s(null);},m=r=>{o?.(r),l(r),S(),u$1(t);},B=r=>{let c=r.target.value.toString()??"";if(h(c),!c){u$1(t);return}let L=t.filter(I=>I.idd_prefix.toString().startsWith(c)||I.iso2.toLowerCase().startsWith(c.toLowerCase()));u$1(L);};return useEffect(()=>{n&&l(n);},[n?.countryId]),useEffect(()=>{t.length&&u$1(t);},[t.length]),jsxs(Q,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(pe,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:a,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),f&&jsx(me,{component:"span",children:"*"}),jsx(Q,{component:"img",src:sb,alt:"d",className:"arrow",sx:{...C&&{transform:"rotate(180deg)"}}})]})}),C&&jsx(a$1,{onClick:S,sx:{zIndex:9999}}),C&&jsx(ClickAwayListener,{onClickAway:S,children:jsxs(le,{id:"CountriesList_CountriesWrapper",open:C,anchorEl:d,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(ue,{endAdornment:jsx("img",{src:u,alt:"arrow"}),onChange:B,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:y}),jsx(se,{"data-testid":"CountriesList_CountriesListStyled",children:g.map(r=>{let c=p?.countryId===r.countryId;return jsxs(de,{onClick:()=>{m(r);},sx:{backgroundColor:c?"#F9F9F9":"transparent",color:c?"#000":"#8D8D94"},children:[jsx("img",{src:r.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`)})})]})})]})}xe.displayName="CountriesList";var ye=memo(xe);var _=ye;var Ce=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),be=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Se=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Ie=styled(Q)(()=>({flex:1}));function Be({phoneValue:e,hasError:t,countries:n,isCountriesLoading:o,countryValue:f,onCountryChange:i,onPhoneChange:p,helperText:l,countryError:d,required:s,disabled:g,...u},y){return jsxs(Ie,{"data-testid":"PhoneInput",children:[jsxs(Ce,{"data-testid":"PhoneInput_MobileWrapper",hasError:t,children:[jsx(_,{isLoading:o,countries:n,value:f,onCountryChange:a=>{i?.(a);},required:s,disabled:g}),jsx(be,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,disabled:g,...u,onChange:a=>{p?.(a.target.value);},hideArrows:true})]}),jsx(Se,{children:l})]})}Be.displayName="PhoneInputBase";var Le=je.forwardRef(Be);var Mt=Le;var we=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"})),ve=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Pe=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Re=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"})),Ee=styled$1(Box)(()=>({color:"red !important"}));function Fe({isLoading:e,currencies:t,value:n,onCurrencyChange:o,required:f}){let[i,p]=useState(),[l,d]=useState(null),[s,g]=useState([]),u=!!l,y=a=>{a.stopPropagation(),d(a.currentTarget);},h=()=>{d(null);},C=a=>{o?.(a),p(a),h(),g(t);};return useEffect(()=>{n&&p(n);},[n?.currencyId]),useEffect(()=>{t.length&&g(t);},[t.length]),jsxs(Q,{"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(we,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:y,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(bt,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[i&&jsxs(Fragment,{children:[jsx("img",{src:i.logo,alt:"c",className:"logo"}),jsx("span",{children:i?.code.english})]}),f&&jsx(Ee,{component:"span",children:"*"}),jsx(Q,{component:"img",src:sb,alt:"d",className:"arrow",sx:{...u&&{transform:"rotate(180deg)"}}})]})}),u&&jsx(a$1,{onClick:h}),u&&jsx(ve,{id:"currenciesList_currenciesWrapper",open:u,anchorEl:l,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(Pe,{"data-testid":"currenciesList_currenciesListStyled",children:s.map(a=>{let S=i?.currencyId===a.currencyId;return jsxs(Re,{onClick:()=>{C(a);},sx:{backgroundColor:S?"#F9F9F9":"transparent",color:S?"#000":"#8D8D94"},children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx("span",{children:a?.code.english})]},`currency-code-${a.currencyId}`)})})})]})}Fe.displayName="CurrenciesList";var He=memo(Fe);var Ne=He;var $e=styled(Rt,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),Te=styled(Q)(()=>({flex:1}));function Wt({hasError:e,hideArrows:t,inputProps:n,...o},f){return jsx(Te,{onClick:i=>{i.stopPropagation();},children:jsx($e,{ref:f,placeholder:o.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...n,type:"number"},onKeyDown:i=>{["e","E","+","-"].includes(i.key)&&i.preventDefault();},...o})})}var De=forwardRef(Wt);var qe=De;var Oe=styled(Q,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Ue=styled(Q)(()=>({width:"50px"})),Ge=styled(qe)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),Je=styled(Q)(()=>({flex:1}));function Xe({amountValue:e,hasError:t,currencies:n,isCurrenciesLoading:o,currencyValue:f,onCurrencyChange:i,onAmountChange:p,onAmountBlur:l,helperText:d,required:s,...g},u){return jsxs(Je,{"data-testid":"AmountInput",children:[jsxs(Oe,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(Ne,{isLoading:o,currencies:n,value:f,onCurrencyChange:a=>{i?.(a);},required:s}),jsx(Ue,{children:jsx(Ge,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:u,inputProps:{autoComplete:"off"},error:t,...g,onChange:a=>{p?.(a.target.value);},onBlur:a=>{l?.(a.target.value);},hideArrows:true})})]}),jsx(Ke,{children:d})]})}Xe.displayName="AmountInputBase";var Ye=je.forwardRef(Xe);var At=Ye;export{rt as a,ie as b,xt as c,_ as d,Mt as e,At as f};
@@ -1 +1 @@
1
- import {be}from'./chunk-NDP36V5Z.js';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),n=styled("img")({cursor:"pointer"}),s=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function x({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:d}){return jsxs(a,{toastPosition:l,children:[jsx(s,{children:o}),jsx(n,{onClick:m=>t?.(m),src:d||be,alt:"toast-icon"})]})}var i=x;var I=i;export{I as a};
1
+ import {ee}from'./chunk-3DNCZF5Y.js';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),n=styled("img")({cursor:"pointer"}),s=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function x({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:d}){return jsxs(a,{toastPosition:l,children:[jsx(s,{children:o}),jsx(n,{onClick:m=>t?.(m),src:d||ee,alt:"toast-icon"})]})}var i=x;var I=i;export{I as a};
@@ -1 +1 @@
1
- import {$f}from'./chunk-NDP36V5Z.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F6F8FACC",gap:"0.5rem",height:"100%"})),m=styled("img")(()=>({width:"2rem",height:"2rem"})),n=styled("h1")(({theme:t})=>({fontWeight:600,fontSize:"1rem",color:t.palette.text?.primary,padding:0,margin:0})),s=styled("p")(({theme:t})=>({fontWeight:400,fontSize:"0.75rem",color:t.palette.text?.primary,padding:0,margin:0,opacity:.5}));function o({heading:t,message:y,...d}){let{t:p}=useTranslation();return jsxs(a,{...d,children:[jsx(m,{src:$f,alt:"empty container"}),jsx(n,{children:p(t)}),jsx(s,{children:p(y)})]})}var I=o;export{I as a};
1
+ import {cg}from'./chunk-3DNCZF5Y.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F6F8FACC",gap:"0.5rem",height:"100%"})),m=styled("img")(()=>({width:"2rem",height:"2rem"})),n=styled("h1")(({theme:t})=>({fontWeight:600,fontSize:"1rem",color:t.palette.text?.primary,padding:0,margin:0})),s=styled("p")(({theme:t})=>({fontWeight:400,fontSize:"0.75rem",color:t.palette.text?.primary,padding:0,margin:0,opacity:.5}));function o({heading:t,message:y,...d}){let{t:p}=useTranslation();return jsxs(a,{...d,children:[jsx(m,{src:cg,alt:"empty container"}),jsx(n,{children:p(t)}),jsx(s,{children:p(y)})]})}var I=o;export{I as a};
@@ -1 +1 @@
1
- import {Ub}from'./chunk-NDP36V5Z.js';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(motion.img,{shouldForwardProp:i=>i!=="width"&&i!=="height"})(({width:i,height:t})=>({width:i||"16px",height:t||"16px"}));var a=({width:i,height:t,sx:e}={})=>jsx(o,{src:Ub,alt:"Loading",className:"spinner-loader",width:i,height:t,sx:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}),r=a;var y=r;export{y as a};
1
+ import {Xb}from'./chunk-3DNCZF5Y.js';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var o=styled(motion.img,{shouldForwardProp:i=>i!=="width"&&i!=="height"})(({width:i,height:t})=>({width:i||"16px",height:t||"16px"}));var a=({width:i,height:t,sx:e}={})=>jsx(o,{src:Xb,alt:"Loading",className:"spinner-loader",width:i,height:t,sx:e,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}),r=a;var y=r;export{y as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-F5DEUHUB.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function A({isFilteredIdsShown:i,availableStatuses:f,status:e,onStatusChange:l,buttonSx:S}){let{t:v}=useTranslation(),I=useCallback(s=>s===e&&!i?"active":"inActive",[e,i]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:f?.map(({render:s,...a$1},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a$1,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a$1.status))return createElement(a,{...a$1,key:`status-button-array-${a$1.status}`,variant:I(a$1.status),onClick:()=>{Array.isArray(a$1.status)||u(a$1.status);},buttonSx:S});if(!a$1.status)return null;let o=a$1.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],m=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(a,{...a$1,selectedStatus:m?e:void 0,variant:m?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||v(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},o[0]?.value)})})}var c=memo(A);var $=c;export{$ as a};
1
+ import {a}from'./chunk-D5PN4RXU.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function A({isFilteredIdsShown:i,availableStatuses:f,status:e,onStatusChange:l,buttonSx:S}){let{t:v}=useTranslation(),I=useCallback(s=>s===e&&!i?"active":"inActive",[e,i]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:f?.map(({render:s,...a$1},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a$1,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a$1.status))return createElement(a,{...a$1,key:`status-button-array-${a$1.status}`,variant:I(a$1.status),onClick:()=>{Array.isArray(a$1.status)||u(a$1.status);},buttonSx:S});if(!a$1.status)return null;let o=a$1.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],m=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(a,{...a$1,selectedStatus:m?e:void 0,variant:m?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||v(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},o[0]?.value)})})}var c=memo(A);var $=c;export{$ as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-VZSVLOEC.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
1
+ import {a}from'./chunk-BZDENEOE.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
@@ -0,0 +1 @@
1
+ import {c,e}from'./chunk-OU4EHBWR.js';import {a,c as c$1,d}from'./chunk-WCVOH3HW.js';import {b,a as a$1}from'./chunk-4AMHL4LM.js';import {Pa}from'./chunk-WA5GDTQV.js';import {xe}from'./chunk-3DNCZF5Y.js';import {createContext,memo,useRef,useContext,useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import Ce from'@mui/material/Box';import {Resizable}from're-resizable';import Me from'react-draggable';import {motion}from'framer-motion';var _=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{}});var ge=555,be=545;function V({children:e,isOpen:o,onClose:r,defaultWindowHeight:d,defaultWindowWidth:s,initialPosition:l}){let{height:p,width:n}=a$1(),i=s||ge,a=d||be,[m,t]=useState({x:l?.x??n/2+i/2,y:l?.y??p/2-a/2}),[c,h]=useState(false),[b,u]=useState(false),[E,S]=useState(false),[y,R]=useState(true),f=useRef(),[W,H]=useState({width:0,height:0}),T=({width:x,height:F})=>{f?.current?.updateSize({width:x,height:F});},v=useMemo(()=>({position:m,setPosition:t,resizableRef:f,windowZIndex:1,isOpen:o,setIsMaximized:h,setIsSidebarExpanded:R,setIsToolbarAnimationDisabled:S,setIsResized:u,isMaximized:c,isToolbarAnimationDisabled:E,isSidebarExpanded:y,isResized:b,dimensions:W,setNewDimensions:H,viewerDefaultWidth:i,viewerDefaultHeight:a,onClose:r,fullWindowWidth:n,fullWindowHeight:p,updateRefSize:T}),[m,t,f,o,h,R,S,u,c,E,y,b,W,H,n,p,i,a,T,r]);return jsx(_.Provider,{value:v,children:e})}var g=.5,ee=183,oe=287,te=840,ie=545,N=35;function Ae({title:e$1,onClose:o,onMaximize:r,maximized:d$1=false,id:s,onRequestClick:l,isSidebarExpanded:p=false,isHovered:n=false,onMouseHover:i,onMouseLeave:a$1,showSectionsButton:m,rightActions:t}){return jsx(c,{id:s,"data-testid":"UserTitleBar",maximized:d$1||false,children:jsx(e,{onMouseEnter:i,onMouseLeave:a$1,isMaximized:d$1,isHovered:n,title:e$1,icon:xe,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:o}),jsx(c$1,{isMaximized:d$1,onClick:r}),m&&jsx(d,{onClick:l,isExpanded:!p,isHovered:n,children:"Sidebar"})]}),rightActions:t})})}var re=memo(Ae);var U=re;function Re({isMaximized:e,setIsToolbarAnimationDisabled:o,setIsMaximized:r,onClose:d,isSidebarExpanded:s,setIsSidebarExpanded:l,isToolbarAnimationDisabled:p,title:n,showSectionsButton:i,rightActions:a}){let{isHovered:m,onMouseEnter:t,onMouseLeave:c}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...p&&{duration:0}},children:jsx(U,{title:n||"Users",showSectionsButton:i,onClose:d,onMaximize:()=>{r?.(h=>!h),o?.(true),setTimeout(()=>{o?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{o?.(false),l(!s);},isSidebarExpanded:s,isHovered:m,onMouseHover:t,onMouseLeave:c,rightActions:a})})}var ae=memo(Re);var de=ae;function _e({children:e,titleBar:o,titleBarText:r,mainAppOrder:d,mainAppIsMinimized:s,showSectionsButton:l=true,rightActions:p}){let n=useRef(null),{dimensions:i,position:a,resizableRef:m,isMaximized:t,isOpen:c,onClose:h,viewerDefaultWidth:b,viewerDefaultHeight:u,windowZIndex:E,setPosition:S,setNewDimensions:y,isToolbarAnimationDisabled:R,fullWindowWidth:f,fullWindowHeight:W,setIsMaximized:H,setIsResized:T,isResized:v,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:F,isSidebarExpanded:xe}=useContext(_),Y=Pa(),D=i.width||b;return createPortal(jsx(Me,{nodeRef:n,disabled:t,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:f/2-D/2,y:W/2-u/2},position:{x:f-a.x,y:a.y},onStop:(G,O)=>{S({x:f-O.x,y:O.y});},bounds:{top:10},children:jsx(Dialog,{ref:n,sx:{backgroundColor:"transparent",zIndex:Number(d||0)+E,...s&&{display:"none"},transform:"translate(180px, 14px)",...!t&&{width:Y?D:"fit-content",height:Y?u:"fit-content"},...t&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:v?"fit-content":D,height:v?"fit-content":"100%",...t&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{H(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:c,hideBackdrop:true,fullScreen:t,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{left:true,right:true,bottomRight:true,bottom:true,top:true},size:{width:i.width,height:i.height},maxHeight:W-40,maxWidth:f,minWidth:t?"100vw":b,minHeight:t?"100vh":u,ref:G=>{m.current=G;},onResizeStart:()=>{x(true);},onResizeStop:()=>{x(false);},onResize:(G,O,$)=>{T(true),y({width:$.offsetWidth,height:$.offsetHeight});},defaultSize:{width:D,height:u},style:{background:"transparent",height:i.height,overflow:"hidden",...t&&{height:"100% !important",width:"100% !important",flex:1},...t&&{position:"relative"}},children:jsxs(Ce,{sx:{height:"100%"},"data-testid":"AppWindow",children:[o??jsx(de,{setIsToolbarAnimationDisabled:x,onClose:h,setIsMaximized:H,isToolbarAnimationDisabled:R,setIsSidebarExpanded:F,isSidebarExpanded:xe,title:r,isMaximized:t,showSectionsButton:l,rightActions:p}),e]})})})}),document.body)}var pe=memo(_e);var Fe=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:o?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Ge=styled(Button)(({theme:e,disabled:o})=>({background:o?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Oe=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),Ve=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),Ne=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var X=pe;function Ue({children:e,windowProps:o,...r}){return r.isOpen?jsx(V,{...r,children:jsx(X,{...o,children:e})}):null}var me=Ue;function Xe({title:e$1,maximized:o=false,id:r,isHovered:d=false,onMouseHover:s,onMouseLeave:l,leftActions:p,titleIconSrc:n,sx:i,...a}){return jsx(c,{className:"header-wrapper",id:r,maximized:o||false,sx:i,...a,children:jsx(e,{onMouseEnter:s,onMouseLeave:l,isMaximized:o,isHovered:d,title:e$1||"",icon:n,leftActions:p})})}var q=memo(Xe);function $e({isMaximized:e,id:o,isToolbarAnimationDisabled:r,title:d,leftActions:s,onClose:l,onMaximize:p,sx:n}){let{isHovered:i,onMouseEnter:a$1,onMouseLeave:m}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...r&&{duration:0}},children:jsx(q,{title:d,maximized:e,id:o||"draggable-dialog-title",isHovered:i,onMouseHover:a$1,onMouseLeave:m,leftActions:s||jsxs(Fragment,{children:[jsx(a,{onClick:l}),jsx(c$1,{isMaximized:e,onClick:()=>p?.(!e)})]}),sx:n})})}var ue=memo($e);var Qe=ue;var ut=me;export{_ as a,V as b,g as c,ee as d,oe as e,te as f,ie as g,N as h,U as i,Fe as j,Ge as k,Oe as l,Ve as m,Ne as n,X as o,q as p,Qe as q,ut as r};
@@ -1 +1 @@
1
- import {b as b$1}from'./chunk-F6NIA57X.js';import {memo}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(b$1)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),p=styled("span")(()=>({display:"flex",alignItems:"center"}));function l({amount:m,currency:t,...s}){return jsx(n,{disableAnimation:true,expandDirection:"left",...s,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(p,{children:t}),m]})})}var i=memo(l);var b=i;export{b as a};
1
+ import {b as b$1}from'./chunk-PCUPYTDK.js';import {memo}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(b$1)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),p=styled("span")(()=>({display:"flex",alignItems:"center"}));function l({amount:m,currency:t,...s}){return jsx(n,{disableAnimation:true,expandDirection:"left",...s,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(p,{children:t}),m]})})}var i=memo(l);var b=i;export{b as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-F5DEUHUB.js';import {memo}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var p=styled(a$1)(({theme:t})=>({...t.typography.subtitle1,fontWeight:t.typography.fontWeightMedium,borderRadius:"4px",paddingInline:"8px",paddingBlock:"8.5px",minWidth:"auto"}));function a(t){return jsx(p,{...t,variant:"inActive"})}var i=memo(a);var y=i;export{y as a};
1
+ import {a as a$1}from'./chunk-D5PN4RXU.js';import {memo}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var p=styled(a$1)(({theme:t})=>({...t.typography.subtitle1,fontWeight:t.typography.fontWeightMedium,borderRadius:"4px",paddingInline:"8px",paddingBlock:"8.5px",minWidth:"auto"}));function a(t){return jsx(p,{...t,variant:"inActive"})}var i=memo(a);var y=i;export{y as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {Tc,Xg,Yg,Zg,_g,$g}from'./chunk-NDP36V5Z.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",Tc],["brand",Xg],["entity",Yg],["bank",Zg],["individual",_g],["password",$g]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
1
+ import {a}from'./chunk-CNIYZZCP.js';import {Wc,_g,$g,ah,bh,ch}from'./chunk-3DNCZF5Y.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",Wc],["brand",_g],["entity",$g],["bank",ah],["individual",bh],["password",ch]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-46KYXTXT.js';import {Cg,u}from'./chunk-NDP36V5Z.js';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(a$1)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),s=styled(h)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var g=({value:o,name:c,placeholder:d,onSearchChange:m,onSearchReset:l,...u$1})=>jsx(s,{...u$1,children:jsx(a,{className:"input",name:c,placeholder:d,onChange:f=>m(f.target.value),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(h,{component:"img","data-icon":o?"close":"search",src:o?Cg:u,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:l})})}),i=g;var k=i;export{k as a};
1
+ import {a as a$1}from'./chunk-46KYXTXT.js';import {Fg,u}from'./chunk-3DNCZF5Y.js';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(a$1)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),s=styled(h)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var g=({value:o,name:c,placeholder:d,onSearchChange:m,onSearchReset:l,...u$1})=>jsx(s,{...u$1,children:jsx(a,{className:"input",name:c,placeholder:d,onChange:f=>m(f.target.value),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(h,{component:"img","data-icon":o?"close":"search",src:o?Fg:u,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:l})})}),i=g;var k=i;export{k as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-UNQSXR6O.js';import {memo,useMemo}from'react';import {jsx}from'react/jsx-runtime';var n=({chipIndex:r,rowIndex:i,colIndex:e,selectedId:s})=>{let[,t,o,p]=(s??"").split("-");return Number(t)===i&&Number(o)===e&&Number(p)===r};function d({children:r,copyText:i,chipIndex:e,selectionProps:{onClick:s,rowIndex:t,colIndex:o,selectedId:p},...m}){let u=useMemo(()=>n({rowIndex:t,colIndex:o,selectedId:p,chipIndex:e}),[t,o,p,e]);return jsx(a,{...m,copyText:i,onClick:h=>{s?.(h,e);},isSelected:u,children:r})}var l=memo(d);var N=l;export{n as a,N as b};
1
+ import {a}from'./chunk-TINHFPGP.js';import {memo,useMemo}from'react';import {jsx}from'react/jsx-runtime';var n=({chipIndex:r,rowIndex:i,colIndex:e,selectedId:s})=>{let[,t,o,p]=(s??"").split("-");return Number(t)===i&&Number(o)===e&&Number(p)===r};function d({children:r,copyText:i,chipIndex:e,selectionProps:{onClick:s,rowIndex:t,colIndex:o,selectedId:p},...m}){let u=useMemo(()=>n({rowIndex:t,colIndex:o,selectedId:p,chipIndex:e}),[t,o,p,e]);return jsx(a,{...m,copyText:i,onClick:h=>{s?.(h,e);},isSelected:u,children:r})}var l=memo(d);var N=l;export{n as a,N as b};
@@ -1 +1 @@
1
- import {Kd}from'./chunk-NDP36V5Z.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(Box,{shouldForwardProp:e=>e!=="isHovered"&&e!=="isContentHovered"&&e!=="hideSandbox"})(({hideSandbox:e})=>({width:"6.4rem",display:"flex",justifyContent:"flex-end",alignItems:"center",transition:"opacity 0.2s ease-in-out",visibility:e?"hidden":"visible"})),l=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center"})),g=styled("img")(()=>({height:"0.75rem",width:"0.75rem",opacity:0,transition:"opacity 0.2s ease-in-out","&:hover":{opacity:1}})),p=styled(g,{shouldForwardProp:e=>e!=="isHovered"})(({isHovered:e})=>({opacity:e?1:0,transition:"opacity 0.2s ease-in-out",height:"auto",width:"auto",cursor:"pointer"})),c=styled("p",{shouldForwardProp:e=>e!=="isContentHovered"})(({theme:e,isContentHovered:o})=>({color:e.palette.common.orange,fontSize:"0.62rem",fontWeight:600,paddingRight:"0.25rem",opacity:o?1:0,display:o?"block":"none",transition:"opacity 0.2s ease-in-out",margin:0})),x=styled("div",{shouldForwardProp:e=>e!=="isHovered"&&e!=="active"})(({theme:e,isHovered:o,active:n})=>({width:12,height:12,borderRadius:50,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n?e.palette.common.orange:o?`${e.palette.grey[200]}40`:`${e.palette.grey[200]}14`,transition:"background-color 0.2s ease-in-out"}));function h({appInfo:e,onToggleSandbox:o,isHovered:n,isContentHovered:r,onMouseContentEnter:b,onMouseContentLeave:m}){let{t:S}=useTranslation(),u=e?.isMaximized&&!e?.sandboxMode&&!n;return jsx(s,{hideSandbox:u,children:jsxs(l,{onClick:o,children:[jsx(c,{isContentHovered:r||e?.sandboxMode,children:S("sandboxMode")}),jsx(x,{active:r||e?.sandboxMode,isHovered:n,onMouseEnter:b,onMouseLeave:m,children:jsx(p,{isHovered:n||e?.sandboxMode,src:Kd,alt:"Sandbox icon"})})]})})}var y=h;var B=y;export{B as a};
1
+ import {Nd}from'./chunk-3DNCZF5Y.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(Box,{shouldForwardProp:e=>e!=="isHovered"&&e!=="isContentHovered"&&e!=="hideSandbox"})(({hideSandbox:e})=>({width:"6.4rem",display:"flex",justifyContent:"flex-end",alignItems:"center",transition:"opacity 0.2s ease-in-out",visibility:e?"hidden":"visible"})),l=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center"})),g=styled("img")(()=>({height:"0.75rem",width:"0.75rem",opacity:0,transition:"opacity 0.2s ease-in-out","&:hover":{opacity:1}})),p=styled(g,{shouldForwardProp:e=>e!=="isHovered"})(({isHovered:e})=>({opacity:e?1:0,transition:"opacity 0.2s ease-in-out",height:"auto",width:"auto",cursor:"pointer"})),c=styled("p",{shouldForwardProp:e=>e!=="isContentHovered"})(({theme:e,isContentHovered:o})=>({color:e.palette.common.orange,fontSize:"0.62rem",fontWeight:600,paddingRight:"0.25rem",opacity:o?1:0,display:o?"block":"none",transition:"opacity 0.2s ease-in-out",margin:0})),x=styled("div",{shouldForwardProp:e=>e!=="isHovered"&&e!=="active"})(({theme:e,isHovered:o,active:n})=>({width:12,height:12,borderRadius:50,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:n?e.palette.common.orange:o?`${e.palette.grey[200]}40`:`${e.palette.grey[200]}14`,transition:"background-color 0.2s ease-in-out"}));function h({appInfo:e,onToggleSandbox:o,isHovered:n,isContentHovered:r,onMouseContentEnter:b,onMouseContentLeave:m}){let{t:S}=useTranslation(),u=e?.isMaximized&&!e?.sandboxMode&&!n;return jsx(s,{hideSandbox:u,children:jsxs(l,{onClick:o,children:[jsx(c,{isContentHovered:r||e?.sandboxMode,children:S("sandboxMode")}),jsx(x,{active:r||e?.sandboxMode,isHovered:n,onMouseEnter:b,onMouseLeave:m,children:jsx(p,{isHovered:n||e?.sandboxMode,src:Nd,alt:"Sandbox icon"})})]})})}var y=h;var B=y;export{B as a};