@tap-payments/os-micro-frontend-shared 0.1.467 → 0.1.468

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 (187) hide show
  1. package/build/{chunk-PU2PUKQU.js → chunk-53LSAOUC.js} +1 -1
  2. package/build/{chunk-ZNB6MBXM.js → chunk-5BOGGPLO.js} +1 -1
  3. package/build/{chunk-6LXIWC7I.js → chunk-5PG5ET7V.js} +1 -1
  4. package/build/{chunk-IWJQFTQ3.js → chunk-6GDMIEY5.js} +1 -1
  5. package/build/{chunk-IRBUC5MT.js → chunk-6JL7OYNL.js} +1 -1
  6. package/build/{chunk-HPPZODXW.js → chunk-6UVIPTCL.js} +1 -1
  7. package/build/{chunk-CD2O5J6Q.js → chunk-7NJGUKYC.js} +1 -1
  8. package/build/chunk-7NQH55W7.js +1 -0
  9. package/build/{chunk-623PVXPB.js → chunk-7RZPCFPC.js} +1 -1
  10. package/build/{chunk-XSYRN5IP.js → chunk-AKMJH6S3.js} +1 -1
  11. package/build/{chunk-F4MH3NYJ.js → chunk-BGTQK657.js} +1 -1
  12. package/build/{chunk-ZQMSF4KC.js → chunk-CUMIZCVI.js} +1 -1
  13. package/build/{chunk-NVTETNAM.js → chunk-CYB7L62W.js} +1 -1
  14. package/build/{chunk-JZVFDPJ5.js → chunk-D77VWPH4.js} +1 -1
  15. package/build/{chunk-FHBS4WYK.js → chunk-DK2LDTVL.js} +1 -1
  16. package/build/{chunk-FMARM5ST.js → chunk-DOJF4VE3.js} +1 -1
  17. package/build/{chunk-K2TYAMLF.js → chunk-E2JSVHM7.js} +1 -1
  18. package/build/{chunk-ZG6YDBWY.js → chunk-EUKRCYQ5.js} +1 -1
  19. package/build/{chunk-3A2AG7JZ.js → chunk-FDQG7SHF.js} +1 -1
  20. package/build/{chunk-SRJQUA7Y.js → chunk-FOBYRZWZ.js} +1 -1
  21. package/build/{chunk-YGKMW3CF.js → chunk-FQZHDWWR.js} +1 -1
  22. package/build/{chunk-QA3H4SUF.js → chunk-G4BMASAL.js} +1 -1
  23. package/build/{chunk-HJGJPHS4.js → chunk-G4YO7UYJ.js} +1 -1
  24. package/build/{chunk-R43OV26T.js → chunk-G6FNTS53.js} +1 -1
  25. package/build/{chunk-XZC6JFKN.js → chunk-GF2WBRKP.js} +1 -1
  26. package/build/{chunk-32AJ7RHH.js → chunk-GKHB2Q7M.js} +1 -1
  27. package/build/{chunk-3OMKAPUL.js → chunk-ILKEPMS6.js} +1 -1
  28. package/build/{chunk-MOHV2MTI.js → chunk-LPJI3I7G.js} +1 -1
  29. package/build/{chunk-VXZTRLTH.js → chunk-NOJNKAT2.js} +1 -1
  30. package/build/{chunk-AA5STGFS.js → chunk-NTVPPPKG.js} +1 -1
  31. package/build/{chunk-RKIQTM35.js → chunk-NUCESOHC.js} +1 -1
  32. package/build/{chunk-UVWJP2FB.js → chunk-OHPCPHUI.js} +1 -1
  33. package/build/{chunk-O4P4M74G.js → chunk-PGNIMMY2.js} +1 -1
  34. package/build/{chunk-THWAFBO3.js → chunk-PRCDDQGN.js} +1 -1
  35. package/build/{chunk-R4KHM2LO.js → chunk-PVEAHXTI.js} +1 -1
  36. package/build/{chunk-PKHNAGCP.js → chunk-QSGX4PSS.js} +1 -1
  37. package/build/{chunk-VO43DN7K.js → chunk-QUKNJNSV.js} +1 -1
  38. package/build/{chunk-5SSZL2G5.js → chunk-ROZWIDTB.js} +1 -1
  39. package/build/{chunk-MQ22JGUS.js → chunk-RQGOOWLM.js} +1 -1
  40. package/build/{chunk-Y2QAWXZX.js → chunk-RUZVVQOV.js} +1 -1
  41. package/build/{chunk-2IATRSJM.js → chunk-S25JE5SQ.js} +1 -1
  42. package/build/{chunk-OGW4TRG7.js → chunk-S3ZQRUHK.js} +1 -1
  43. package/build/{chunk-LQRG724F.js → chunk-SOT24MDS.js} +1 -1
  44. package/build/{chunk-2CJVSJ3N.js → chunk-SOXQM7YC.js} +1 -1
  45. package/build/{chunk-57JB7QWJ.js → chunk-SYYT7DQO.js} +1 -1
  46. package/build/{chunk-IFXWBQNA.js → chunk-T6Q57BTJ.js} +1 -1
  47. package/build/{chunk-JHU2PRHK.js → chunk-THS5VI2G.js} +1 -1
  48. package/build/{chunk-MFOA37OB.js → chunk-THT6247H.js} +1 -1
  49. package/build/{chunk-AIWLM7SE.js → chunk-TLA2DGH5.js} +1 -1
  50. package/build/{chunk-WNGH7Y7J.js → chunk-TMDT5RC5.js} +1 -1
  51. package/build/{chunk-KRG5UVJE.js → chunk-TUX5YWW5.js} +1 -1
  52. package/build/{chunk-6HECPQ2Y.js → chunk-TWSNEU6Q.js} +1 -1
  53. package/build/{chunk-MQLHAELL.js → chunk-U4GSKGGZ.js} +1 -1
  54. package/build/{chunk-ZRPJZRHX.js → chunk-UDHFX2EQ.js} +1 -1
  55. package/build/{chunk-P7NGC2AE.js → chunk-UKRSNMR4.js} +1 -1
  56. package/build/{chunk-DUWSFXNA.js → chunk-VKY7ZWWO.js} +1 -1
  57. package/build/{chunk-5IT2TVNT.js → chunk-VQMUQV6S.js} +1 -1
  58. package/build/{chunk-QOKOTRJF.js → chunk-W7AGUPPH.js} +1 -1
  59. package/build/{chunk-QHK5HEML.js → chunk-WQJCH446.js} +1 -1
  60. package/build/{chunk-S6S2VBJG.js → chunk-WQMJ3ZIW.js} +1 -1
  61. package/build/{chunk-TCN4ULPE.js → chunk-X7LRWIU3.js} +1 -1
  62. package/build/{chunk-YPOJNH2V.js → chunk-XR2H5OYZ.js} +1 -1
  63. package/build/{chunk-KEJIQ3MN.js → chunk-XV6KN7CM.js} +1 -1
  64. package/build/{chunk-FNJXH4LR.js → chunk-YBSYZXON.js} +1 -1
  65. package/build/{chunk-ANFIVBEJ.js → chunk-YHPPUVXW.js} +1 -1
  66. package/build/{chunk-HB7RYW2L.js → chunk-YL7EQZ4Q.js} +1 -1
  67. package/build/{chunk-IYRUW7WD.js → chunk-YOMBUEHO.js} +1 -1
  68. package/build/{chunk-F5P5E6ZF.js → chunk-YPD7K7KN.js} +1 -1
  69. package/build/{chunk-ZKJMD4T2.js → chunk-YS7RO5LC.js} +1 -1
  70. package/build/{chunk-BNRE5FTC.js → chunk-YWVCPFN2.js} +1 -1
  71. package/build/{chunk-FYCC2XEX.js → chunk-YZCJNDQ2.js} +1 -1
  72. package/build/{chunk-RBT32WLR.js → chunk-ZBJECG4V.js} +1 -1
  73. package/build/{chunk-TRHY4PBR.js → chunk-ZLJH4CXV.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/index.js +1 -1
  182. package/build/constants/table/cell/merchantsTableCellWidth.d.ts +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-RLMMWZYX.js +0 -1
@@ -1 +1 @@
1
- import'./chunk-QHK5HEML.js';import {a}from'./chunk-VO43DN7K.js';import {memo}from'react';import n from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var x="32px";var m=styled(n,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:o})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:o?x:"16px",height:"100%",overflow:"auto"})),u=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),l=styled(n,{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",fontWeight:600})),s=styled(n,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function B({sections:e,isMaximized:o,onClick:p,activeSection:b,activeSubSection:S}){let d=b||e?.[0]?.id,g=S||e?.[0]?.subSections?.[0]?.id;return jsx(m,{isMaximized:o,children:jsx(u,{children:e?.map(t=>jsx(a,{defaultExpanded:d===t.id,summarySx:{padding:0,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}},sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}},Header:jsx(s,{onClick:()=>{p?.(t.id,t.subSections?.[0]?.id);},isActive:d===t.id,children:t.title},t.id),children:jsx(Fragment,{children:t.subSections?.map(i=>jsx(l,{onClick:()=>{p?.(t.id,i.id);},isActive:g===i.id,children:i.title},`${t.id}-${i.id}`))})},`${t.id}`))})})}var f=memo(B);var P=f;export{P as a};
1
+ import'./chunk-WQJCH446.js';import {a}from'./chunk-QUKNJNSV.js';import {memo}from'react';import n from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var x="32px";var m=styled(n,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:o})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:o?x:"16px",height:"100%",overflow:"auto"})),u=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),l=styled(n,{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",fontWeight:600})),s=styled(n,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function B({sections:e,isMaximized:o,onClick:p,activeSection:b,activeSubSection:S}){let d=b||e?.[0]?.id,g=S||e?.[0]?.subSections?.[0]?.id;return jsx(m,{isMaximized:o,children:jsx(u,{children:e?.map(t=>jsx(a,{defaultExpanded:d===t.id,summarySx:{padding:0,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}},sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}},Header:jsx(s,{onClick:()=>{p?.(t.id,t.subSections?.[0]?.id);},isActive:d===t.id,children:t.title},t.id),children:jsx(Fragment,{children:t.subSections?.map(i=>jsx(l,{onClick:()=>{p?.(t.id,i.id);},isActive:g===i.id,children:i.title},`${t.id}-${i.id}`))})},`${t.id}`))})})}var f=memo(B);var P=f;export{P as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-S7OMWEM6.js';import {mb,Zc}from'./chunk-3OMKAPUL.js';import {useState,useCallback}from'react';import r from'@mui/material/Box';import O from'@mui/material/Popper';import {Box,ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),A=styled(r)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),b=styled(r)(()=>({width:16,height:16})),P=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",borderTopRightRadius:0,filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"max-content",minWidth:150})),D=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:130,width:"max-content",marginTop:"8px"})),v=styled(r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",...i&&{boxShadow:e.shadows[3]}})),N=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",height:32,padding:"8px 12px",cursor:"pointer",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:hover":{boxShadow:e.shadows[3]}}));function g({item:e,anchorEl:i,onMouseLeave:u,onSelectService:a}){return e?jsx(O,{open:true,anchorEl:i,placement:"left-start",onMouseLeave:u,sx:{zIndex:2e3},children:jsx(P,{children:e.services.map(t=>jsx(N,{onClick:x=>{x.stopPropagation(),a(e.appCode,t.serviceCode);},children:jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.iconUrl&&jsx("img",{src:t.iconUrl,alt:"service",width:16,height:16}),jsxs("span",{children:["View ",t.label]})]})},t.serviceCode))})}):null}function q({anchorEl:e,open:i,onClose:u,items:a$1,onSelectService:t,showViewApi:x=false,onViewApiClick:S}){let[B,y]=useState(null),[C,M]=useState(null),[H,h]=useState(false),z=useCallback((p,l)=>{y(p.currentTarget),M(l),h(false);},[]),w=useCallback(()=>{y(null),M(null),h(false);},[]),s=useCallback(()=>{u(),w();},[u,w]),R=useCallback((p,l)=>{t(p,l),s();},[t,s]),W=useCallback(p=>{p.stopPropagation(),S?.(),s();},[S,s]);return i?jsx(ClickAwayListener,{onClickAway:s,children:jsxs(r,{children:[jsx(a,{onClick:s}),jsx(O,{open:i,anchorEl:e,placement:"bottom-end",sx:{zIndex:2e3},children:jsx(D,{children:a$1.length===0&&!x?jsx(v,{sx:{cursor:"default","&:hover":{boxShadow:"none"}},children:jsx(c,{children:jsx(A,{sx:{fontSize:11,color:"text.secondary"},children:"No actions available"})})}):jsxs(Fragment,{children:[a$1.map(p=>jsxs(v,{onMouseOver:l=>z(l,p),open:C?.appCode===p.appCode,children:[jsxs(c,{children:[jsx(b,{children:jsx("img",{src:p.appIconUrl,alt:"app",width:16,height:16})}),jsx(A,{children:p.appName})]}),jsx(c,{children:jsx("img",{src:mb,alt:"icon",className:"arrow-icon"})})]},p.appCode)),x&&S&&jsx(v,{onClick:W,open:H,onMouseOver:()=>{M(null),h(true);},onMouseLeave:()=>h(false),children:jsxs(c,{children:[jsx(b,{children:jsx("img",{src:Zc,alt:"app",width:16,height:16})}),jsx(A,{children:"View API"})]})})]})})}),a$1.length>0&&jsx(g,{item:C,anchorEl:B,onMouseLeave:w,onSelectService:R})]})}):null}var G=q;export{g as a,G as b};
1
+ import {a}from'./chunk-S7OMWEM6.js';import {mb,Zc}from'./chunk-ILKEPMS6.js';import {useState,useCallback}from'react';import r from'@mui/material/Box';import O from'@mui/material/Popper';import {Box,ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),A=styled(r)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),b=styled(r)(()=>({width:16,height:16})),P=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",borderTopRightRadius:0,filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"max-content",minWidth:150})),D=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:130,width:"max-content",marginTop:"8px"})),v=styled(r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",...i&&{boxShadow:e.shadows[3]}})),N=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",height:32,padding:"8px 12px",cursor:"pointer",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:hover":{boxShadow:e.shadows[3]}}));function g({item:e,anchorEl:i,onMouseLeave:u,onSelectService:a}){return e?jsx(O,{open:true,anchorEl:i,placement:"left-start",onMouseLeave:u,sx:{zIndex:2e3},children:jsx(P,{children:e.services.map(t=>jsx(N,{onClick:x=>{x.stopPropagation(),a(e.appCode,t.serviceCode);},children:jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.iconUrl&&jsx("img",{src:t.iconUrl,alt:"service",width:16,height:16}),jsxs("span",{children:["View ",t.label]})]})},t.serviceCode))})}):null}function q({anchorEl:e,open:i,onClose:u,items:a$1,onSelectService:t,showViewApi:x=false,onViewApiClick:S}){let[B,y]=useState(null),[C,M]=useState(null),[H,h]=useState(false),z=useCallback((p,l)=>{y(p.currentTarget),M(l),h(false);},[]),w=useCallback(()=>{y(null),M(null),h(false);},[]),s=useCallback(()=>{u(),w();},[u,w]),R=useCallback((p,l)=>{t(p,l),s();},[t,s]),W=useCallback(p=>{p.stopPropagation(),S?.(),s();},[S,s]);return i?jsx(ClickAwayListener,{onClickAway:s,children:jsxs(r,{children:[jsx(a,{onClick:s}),jsx(O,{open:i,anchorEl:e,placement:"bottom-end",sx:{zIndex:2e3},children:jsx(D,{children:a$1.length===0&&!x?jsx(v,{sx:{cursor:"default","&:hover":{boxShadow:"none"}},children:jsx(c,{children:jsx(A,{sx:{fontSize:11,color:"text.secondary"},children:"No actions available"})})}):jsxs(Fragment,{children:[a$1.map(p=>jsxs(v,{onMouseOver:l=>z(l,p),open:C?.appCode===p.appCode,children:[jsxs(c,{children:[jsx(b,{children:jsx("img",{src:p.appIconUrl,alt:"app",width:16,height:16})}),jsx(A,{children:p.appName})]}),jsx(c,{children:jsx("img",{src:mb,alt:"icon",className:"arrow-icon"})})]},p.appCode)),x&&S&&jsx(v,{onClick:W,open:H,onMouseOver:()=>{M(null),h(true);},onMouseLeave:()=>h(false),children:jsxs(c,{children:[jsx(b,{children:jsx("img",{src:Zc,alt:"app",width:16,height:16})}),jsx(A,{children:"View API"})]})})]})})}),a$1.length>0&&jsx(g,{item:C,anchorEl:B,onMouseLeave:w,onSelectService:R})]})}):null}var G=q;export{g as a,G as b};
@@ -1 +1 @@
1
- import {a as a$4}from'./chunk-623PVXPB.js';import {a,c,e,f,b}from'./chunk-ZRPJZRHX.js';import {a as a$3}from'./chunk-237EA4BW.js';import {a as a$2}from'./chunk-R43OV26T.js';import {a as a$5}from'./chunk-VO43DN7K.js';import {a as a$6}from'./chunk-NKNRVF6Q.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {Gc,v}from'./chunk-3OMKAPUL.js';import*as w from'react';import w__default,{useState,useMemo}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';import P from'@mui/material/Box';import Le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {ListSubheader,Box,MenuItem}from'@mui/material';import Ke from'@mui/material/MenuItem';function Pe({onSubmit:e,methods:n,children:o}){return jsx(FormProvider,{...n,children:jsx("form",{onSubmit:e,noValidate:true,children:o})})}var Fe=w__default.memo(Pe);var J=w.forwardRef(({name:e,helperText:n,hideArrows:o,...t},l)=>{let{control:i}=useFormContext();return jsx(Controller,{name:e,control:i,defaultValue:t.defaultValue,render:({field:c,fieldState:a$1})=>jsx(a,{...t,...c,ref:l,hasError:!!a$1.error,helperText:n??a$1.error?.message,hideArrows:o,onChange:p=>{c.onChange(p),t.onChange?.(p);},onWheel:p=>{p.target instanceof HTMLElement&&p.target.blur();}})})});J.displayName="RFHFormInput";var Q=w.memo(J);var Ae=Q;function Y({phoneName:e$1,countries:n,countryName:o,helperText:t,isCountriesLoading:l,disabled:i,...c}){let{control:a,watch:p,setValue:x}=useFormContext(),h=p(o),b=u=>{x(o,u);};return jsx(Controller,{name:e$1,control:a,render:({field:{onChange:u,value:s},fieldState:f})=>jsx(e,{...c,phoneValue:s,countries:n,hasError:!!f.error,helperText:t??f.error?.message,onPhoneChange:d=>{u(d);},disabled:i,countryValue:h,onCountryChange:b,isCountriesLoading:l})})}Y.displayName="RFHPhoneInput";var Z=Y;var Ee=Z;var B=(e,n)=>e.toFixed(n);function j({amountName:e,currencies:n,currencyName:o,helperText:t,isCurrenciesLoading:l,...i}){let{control:c,watch:a,setValue:p}=useFormContext(),x=a(o),h=a(e),b=u=>{p(o,u),p(e,B(Number(h),u?.decimals||2));};return jsx(Controller,{name:e,control:c,render:({field:{onChange:u,value:s},fieldState:f$1})=>jsx(f,{...i,amountValue:s??"",currencies:n,hasError:!!f$1.error,helperText:t??f$1.error?.message,onAmountChange:d=>{u(d);},onAmountBlur:d=>{u(B(Number(d),x?.decimals||2));},currencyValue:x,onCurrencyChange:b,isCurrenciesLoading:l})})}j.displayName="RFHAmountInput";var ee=j;var We=ee;function te({name:e,helperText:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:l,fieldState:i})=>jsx(c,{...o,...l,hasError:!!i.error,helperText:n??i.error?.message})})}te.displayName="RFHSelect";var ne=w.memo(te);var k=ne;function le({name:e,disabled:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:{name:l,onBlur:i,onChange:c,value:a,disabled:p}})=>jsx(a$3,{...o,onChange:c,onBlur:i,name:l,disabled:p||n,checked:a??false})})}le.displayName="RFHSWitch";var ie=w.memo(le);var Te=ie;var me=styled(a$1)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$1)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var se=styled(P)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(Le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));var ce=styled(P)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(P)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(P)(({theme:e,maxWidth:n})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...n&&{maxWidth:`${n}%`}}));var ue=styled(a$1)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(P)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function $e({name:e,options:n,...o}){let[t,l]=useState(null),[i,c]=useState(0),a=!!t,p=s=>{l(a?null:s.currentTarget);},x=()=>{l(null);},{watch:h,setValue:b}=useFormContext(),u=h(e);return jsx(a$4,{open:a,anchorEl:t,onOpen:p,onClose:x,trigger:jsx(k,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(ce,{children:jsx(se,{"data-testid":"AccordionWrapper",children:n.map?.((s,f)=>{let d=i===f;return jsx(a$5,{Header:jsx(me,{variant:"caption",children:s.group}),defaultExpanded:true,sx:{flexShrink:0,border:0,...d&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}},summarySx:{backgroundColor:d?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28},expanded:d,onChange:(m,g)=>{m.stopPropagation(),m.preventDefault(),c(g?f:null);},children:(s?.options||[]).map((m,g)=>{let r=o?.isOptionEqualToValue?.(m,u);return jsxs(ue,{onClick:()=>{b(e,m,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),x();},children:[o.renderOption?.(m)||m.label,r&&jsx(a$6,{src:Gc,alt:"blue-check",sx:{width:14,height:10}})]},`${m.value}-${m.label}-${g}`)})},`${s.group}-group-${f}`)})})})})}var fe=$e;var Ue=fe;var xe=styled(a$2)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),he=styled(Le)(({theme:e})=>({width:"100%",height:36,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:"1px solid #F2F2F2",boxSizing:"border-box","&:hover":{borderColor:"#F2F2F2"},"&.Mui-focused":{borderColor:"#F2F2F2",backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}}));styled(Ke)(({theme:e})=>({opacity:1,paddingTop:0,paddingBottom:0,marginBottom:8,minHeight:"auto",pointerEvents:"none",backgroundColor:e.palette.common.white,"&:hover":{backgroundColor:e.palette.common.white},"&.Mui-focusVisible":{backgroundColor:e.palette.common.white},"&.Mui-disabled":{backgroundColor:e.palette.common.white,opacity:1}}));function M({name:e,helperText:n,getOptionValue:o,getOptionLabel:t,renderOption:l,isOptionEqualToValue:i,getOptionDisabled:c,showSearchInput:a=false,searchPlaceholder:p="Search",showCheckbox:x=true,options:h,...b$1}){let{control:u}=useFormContext(),[s,f]=useState(""),d=useMemo(()=>{if(!a||!s.trim())return h??[];let m=s.toLowerCase().trim();return (h??[]).filter(g=>{let r=(t?t(g):g?.label)??"";return String(r).toLowerCase().includes(m)})},[h,a,s,t]);return jsx(Controller,{name:e,control:u,defaultValue:[],render:({field:m,fieldState:g})=>jsxs(b,{...b$1,...m,options:d,getOptionLabel:t,hasError:!!g.error,helperText:n??g.error?.message,onChange:r=>m.onChange(r),MenuProps:{...b$1.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[a&&jsx(ListSubheader,{disableSticky:true,sx:{backgroundColor:"#fff",pt:1,pb:1},children:jsx(he,{placeholder:p,value:s,onChange:r=>f(r.target.value),onKeyDown:r=>r.stopPropagation(),onKeyUp:r=>r.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":p},endAdornment:jsx(Box,{component:"img",src:v,alt:"search",sx:{width:14,height:14,flexShrink:0}})})}),d?.map(r=>{let A=m.value?.some(F=>i?i(F,r):F?.id===r?.id),R=c?c(r):false,be=t?t(r):r.label,W=l?l(r):be;return jsx(MenuItem,{value:(o?o(r):r?.id)??"",disabled:R,sx:{fontSize:"12px",backgroundColor:F=>A?"#F8F8F8 !important":F.palette.common.white,"&.Mui-disabled":{opacity:1}},children:x?jsxs(Box,{sx:{display:"flex",alignItems:"center",width:"100%",gap:"8px"},children:[jsx(xe,{checked:A,sx:{...A&&R&&{"& svg rect":{fill:"#BDC1CC"}}}}),W]}):W},(o?o(r):r?.id)??"")})]})})}var Ze=M;var je=useForm;export{Fe as a,Ae as b,Ee as c,We as d,k as e,Te as f,Ue as g,Ze as h,je as i};
1
+ import {a as a$4}from'./chunk-7RZPCFPC.js';import {a,c,e,f,b}from'./chunk-UDHFX2EQ.js';import {a as a$3}from'./chunk-237EA4BW.js';import {a as a$2}from'./chunk-G6FNTS53.js';import {a as a$5}from'./chunk-QUKNJNSV.js';import {a as a$6}from'./chunk-NKNRVF6Q.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {Gc,v}from'./chunk-ILKEPMS6.js';import*as w from'react';import w__default,{useState,useMemo}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';import P from'@mui/material/Box';import Le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {ListSubheader,Box,MenuItem}from'@mui/material';import Ke from'@mui/material/MenuItem';function Pe({onSubmit:e,methods:n,children:o}){return jsx(FormProvider,{...n,children:jsx("form",{onSubmit:e,noValidate:true,children:o})})}var Fe=w__default.memo(Pe);var J=w.forwardRef(({name:e,helperText:n,hideArrows:o,...t},l)=>{let{control:i}=useFormContext();return jsx(Controller,{name:e,control:i,defaultValue:t.defaultValue,render:({field:c,fieldState:a$1})=>jsx(a,{...t,...c,ref:l,hasError:!!a$1.error,helperText:n??a$1.error?.message,hideArrows:o,onChange:p=>{c.onChange(p),t.onChange?.(p);},onWheel:p=>{p.target instanceof HTMLElement&&p.target.blur();}})})});J.displayName="RFHFormInput";var Q=w.memo(J);var Ae=Q;function Y({phoneName:e$1,countries:n,countryName:o,helperText:t,isCountriesLoading:l,disabled:i,...c}){let{control:a,watch:p,setValue:x}=useFormContext(),h=p(o),b=u=>{x(o,u);};return jsx(Controller,{name:e$1,control:a,render:({field:{onChange:u,value:s},fieldState:f})=>jsx(e,{...c,phoneValue:s,countries:n,hasError:!!f.error,helperText:t??f.error?.message,onPhoneChange:d=>{u(d);},disabled:i,countryValue:h,onCountryChange:b,isCountriesLoading:l})})}Y.displayName="RFHPhoneInput";var Z=Y;var Ee=Z;var B=(e,n)=>e.toFixed(n);function j({amountName:e,currencies:n,currencyName:o,helperText:t,isCurrenciesLoading:l,...i}){let{control:c,watch:a,setValue:p}=useFormContext(),x=a(o),h=a(e),b=u=>{p(o,u),p(e,B(Number(h),u?.decimals||2));};return jsx(Controller,{name:e,control:c,render:({field:{onChange:u,value:s},fieldState:f$1})=>jsx(f,{...i,amountValue:s??"",currencies:n,hasError:!!f$1.error,helperText:t??f$1.error?.message,onAmountChange:d=>{u(d);},onAmountBlur:d=>{u(B(Number(d),x?.decimals||2));},currencyValue:x,onCurrencyChange:b,isCurrenciesLoading:l})})}j.displayName="RFHAmountInput";var ee=j;var We=ee;function te({name:e,helperText:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:l,fieldState:i})=>jsx(c,{...o,...l,hasError:!!i.error,helperText:n??i.error?.message})})}te.displayName="RFHSelect";var ne=w.memo(te);var k=ne;function le({name:e,disabled:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:{name:l,onBlur:i,onChange:c,value:a,disabled:p}})=>jsx(a$3,{...o,onChange:c,onBlur:i,name:l,disabled:p||n,checked:a??false})})}le.displayName="RFHSWitch";var ie=w.memo(le);var Te=ie;var me=styled(a$1)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$1)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var se=styled(P)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(Le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));var ce=styled(P)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(P)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(P)(({theme:e,maxWidth:n})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...n&&{maxWidth:`${n}%`}}));var ue=styled(a$1)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(P)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function $e({name:e,options:n,...o}){let[t,l]=useState(null),[i,c]=useState(0),a=!!t,p=s=>{l(a?null:s.currentTarget);},x=()=>{l(null);},{watch:h,setValue:b}=useFormContext(),u=h(e);return jsx(a$4,{open:a,anchorEl:t,onOpen:p,onClose:x,trigger:jsx(k,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(ce,{children:jsx(se,{"data-testid":"AccordionWrapper",children:n.map?.((s,f)=>{let d=i===f;return jsx(a$5,{Header:jsx(me,{variant:"caption",children:s.group}),defaultExpanded:true,sx:{flexShrink:0,border:0,...d&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}},summarySx:{backgroundColor:d?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28},expanded:d,onChange:(m,g)=>{m.stopPropagation(),m.preventDefault(),c(g?f:null);},children:(s?.options||[]).map((m,g)=>{let r=o?.isOptionEqualToValue?.(m,u);return jsxs(ue,{onClick:()=>{b(e,m,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),x();},children:[o.renderOption?.(m)||m.label,r&&jsx(a$6,{src:Gc,alt:"blue-check",sx:{width:14,height:10}})]},`${m.value}-${m.label}-${g}`)})},`${s.group}-group-${f}`)})})})})}var fe=$e;var Ue=fe;var xe=styled(a$2)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),he=styled(Le)(({theme:e})=>({width:"100%",height:36,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:"1px solid #F2F2F2",boxSizing:"border-box","&:hover":{borderColor:"#F2F2F2"},"&.Mui-focused":{borderColor:"#F2F2F2",backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}}));styled(Ke)(({theme:e})=>({opacity:1,paddingTop:0,paddingBottom:0,marginBottom:8,minHeight:"auto",pointerEvents:"none",backgroundColor:e.palette.common.white,"&:hover":{backgroundColor:e.palette.common.white},"&.Mui-focusVisible":{backgroundColor:e.palette.common.white},"&.Mui-disabled":{backgroundColor:e.palette.common.white,opacity:1}}));function M({name:e,helperText:n,getOptionValue:o,getOptionLabel:t,renderOption:l,isOptionEqualToValue:i,getOptionDisabled:c,showSearchInput:a=false,searchPlaceholder:p="Search",showCheckbox:x=true,options:h,...b$1}){let{control:u}=useFormContext(),[s,f]=useState(""),d=useMemo(()=>{if(!a||!s.trim())return h??[];let m=s.toLowerCase().trim();return (h??[]).filter(g=>{let r=(t?t(g):g?.label)??"";return String(r).toLowerCase().includes(m)})},[h,a,s,t]);return jsx(Controller,{name:e,control:u,defaultValue:[],render:({field:m,fieldState:g})=>jsxs(b,{...b$1,...m,options:d,getOptionLabel:t,hasError:!!g.error,helperText:n??g.error?.message,onChange:r=>m.onChange(r),MenuProps:{...b$1.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[a&&jsx(ListSubheader,{disableSticky:true,sx:{backgroundColor:"#fff",pt:1,pb:1},children:jsx(he,{placeholder:p,value:s,onChange:r=>f(r.target.value),onKeyDown:r=>r.stopPropagation(),onKeyUp:r=>r.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":p},endAdornment:jsx(Box,{component:"img",src:v,alt:"search",sx:{width:14,height:14,flexShrink:0}})})}),d?.map(r=>{let A=m.value?.some(F=>i?i(F,r):F?.id===r?.id),R=c?c(r):false,be=t?t(r):r.label,W=l?l(r):be;return jsx(MenuItem,{value:(o?o(r):r?.id)??"",disabled:R,sx:{fontSize:"12px",backgroundColor:F=>A?"#F8F8F8 !important":F.palette.common.white,"&.Mui-disabled":{opacity:1}},children:x?jsxs(Box,{sx:{display:"flex",alignItems:"center",width:"100%",gap:"8px"},children:[jsx(xe,{checked:A,sx:{...A&&R&&{"& svg rect":{fill:"#BDC1CC"}}}}),W]}):W},(o?o(r):r?.id)??"")})]})})}var Ze=M;var je=useForm;export{Fe as a,Ae as b,Ee as c,We as d,k as e,Te as f,Ue as g,Ze as h,je as i};
@@ -1 +1 @@
1
- import'./chunk-3OMKAPUL.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-ILKEPMS6.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-CNIYZZCP.js';import {Yc,ch,dh,eh,fh,gh}from'./chunk-3OMKAPUL.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",Yc],["brand",ch],["entity",dh],["bank",eh],["individual",fh],["password",gh]]);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 {Yc,ch,dh,eh,fh,gh}from'./chunk-ILKEPMS6.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",Yc],["brand",ch],["entity",dh],["bank",eh],["individual",fh],["password",gh]]);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}from'./chunk-R43OV26T.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-G6FNTS53.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
@@ -1 +1 @@
1
- import {a as a$2}from'./chunk-623PVXPB.js';import {a as a$3}from'./chunk-ZRPJZRHX.js';import {a as a$1}from'./chunk-R43OV26T.js';import {a}from'./chunk-CNIYZZCP.js';import {vb,v,Gc}from'./chunk-3OMKAPUL.js';import {useState,useMemo}from'react';import c from'@mui/material/Box';import $ from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var Y=styled(a)(({theme:o})=>({fontSize:"10px",color:o.palette.grey[700],fontWeight:600,lineHeight:"10px"})),Z=styled(a)(({theme:o})=>({fontSize:"11px",color:o.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200})),_=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),k=styled($)(({theme:o})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:o.palette.info.dark}})),O=styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}})),W=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),ee=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),oe=styled(c)(({theme:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${o.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),F=styled(a)(({theme:o,selected:a})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...a&&{backgroundColor:"#F8F8F8"}}));function q({options:o,onChangeOption:a,selectedOption:l,placeholder:D,label:M,isLoading:z,renderOption:f,iconUrl:d,disabled:u,onClearValue:A}){let[g,S]=useState(null),[n,m]=useState(""),x=!!g,H=e=>{S(x?null:e.currentTarget);},h=()=>{S(null),m("");},T=z?jsx(CircularProgress,{size:16}):jsx(c,{component:"img",src:n?vb:v,alt:"search",onClick:()=>{n&&m("");}}),R=useMemo(()=>n?o.filter(e=>{let p=e?.label?.toLowerCase(),X=e?.value?.toLowerCase();return p?.includes(n.toLowerCase())||X?.includes(n.toLowerCase())}):o,[o,n]),V=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:d,alt:"icon",sx:{maxWidth:12,height:12}})}),[d]);return jsx(a$2,{disabled:u,open:x,anchorEl:g,onOpen:e=>!u&&H(e),onClose:h,hasValue:!!l?.value,onClear:A,trigger:jsx(a$3,{name:"name",placeholder:"Please Select",hasError:false,label:M,sx:{cursor:"pointer"},value:l?.label||"",InputLabelProps:{filled:!!l?.label},disabled:u,InputProps:{disableUnderline:true,...!!d&&{startAdornment:V}}}),children:jsxs(W,{children:[jsx(k,{placeholder:D||"Select",endAdornment:T,onClick:e=>{e.stopPropagation();},value:n,onChange:e=>{m(e.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...o.length&&{marginBottom:"4px"},...n&&{cursor:"pointer"}}}),R.map(e=>f?f(e,{closeDropdown:h,open:x}):jsxs(F,{selected:l?.value===e.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),l?.value===e.value?a(null):a(e),h();},children:[jsx("span",{children:e.label}),l?.value===e?.value&&jsx(c,{component:"img",src:Gc,alt:"close",sx:{width:10,height:7.5}})]},e.value))]})})}var L=q;var xe=L;export{Y as a,Z as b,_ as c,k as d,O as e,W as f,ee as g,oe as h,F as i,xe as j};
1
+ import {a as a$2}from'./chunk-7RZPCFPC.js';import {a as a$3}from'./chunk-UDHFX2EQ.js';import {a as a$1}from'./chunk-G6FNTS53.js';import {a}from'./chunk-CNIYZZCP.js';import {vb,v,Gc}from'./chunk-ILKEPMS6.js';import {useState,useMemo}from'react';import c from'@mui/material/Box';import $ from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var Y=styled(a)(({theme:o})=>({fontSize:"10px",color:o.palette.grey[700],fontWeight:600,lineHeight:"10px"})),Z=styled(a)(({theme:o})=>({fontSize:"11px",color:o.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200})),_=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),k=styled($)(({theme:o})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:o.palette.info.dark}})),O=styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}})),W=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),ee=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),oe=styled(c)(({theme:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${o.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),F=styled(a)(({theme:o,selected:a})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...a&&{backgroundColor:"#F8F8F8"}}));function q({options:o,onChangeOption:a,selectedOption:l,placeholder:D,label:M,isLoading:z,renderOption:f,iconUrl:d,disabled:u,onClearValue:A}){let[g,S]=useState(null),[n,m]=useState(""),x=!!g,H=e=>{S(x?null:e.currentTarget);},h=()=>{S(null),m("");},T=z?jsx(CircularProgress,{size:16}):jsx(c,{component:"img",src:n?vb:v,alt:"search",onClick:()=>{n&&m("");}}),R=useMemo(()=>n?o.filter(e=>{let p=e?.label?.toLowerCase(),X=e?.value?.toLowerCase();return p?.includes(n.toLowerCase())||X?.includes(n.toLowerCase())}):o,[o,n]),V=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:d,alt:"icon",sx:{maxWidth:12,height:12}})}),[d]);return jsx(a$2,{disabled:u,open:x,anchorEl:g,onOpen:e=>!u&&H(e),onClose:h,hasValue:!!l?.value,onClear:A,trigger:jsx(a$3,{name:"name",placeholder:"Please Select",hasError:false,label:M,sx:{cursor:"pointer"},value:l?.label||"",InputLabelProps:{filled:!!l?.label},disabled:u,InputProps:{disableUnderline:true,...!!d&&{startAdornment:V}}}),children:jsxs(W,{children:[jsx(k,{placeholder:D||"Select",endAdornment:T,onClick:e=>{e.stopPropagation();},value:n,onChange:e=>{m(e.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...o.length&&{marginBottom:"4px"},...n&&{cursor:"pointer"}}}),R.map(e=>f?f(e,{closeDropdown:h,open:x}):jsxs(F,{selected:l?.value===e.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),l?.value===e.value?a(null):a(e),h();},children:[jsx("span",{children:e.label}),l?.value===e?.value&&jsx(c,{component:"img",src:Gc,alt:"close",sx:{width:10,height:7.5}})]},e.value))]})})}var L=q;var xe=L;export{Y as a,Z as b,_ as c,k as d,O as e,W as f,ee as g,oe as h,F as i,xe as j};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-YL7EQZ4Q.js';var e=a;export{e as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-CNIYZZCP.js';import {Oc,tb,vb}from'./chunk-3OMKAPUL.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?Oc:tb,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:vb,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 {Oc,tb,vb}from'./chunk-ILKEPMS6.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?Oc:tb,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:vb,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 {Dc,$b}from'./chunk-3OMKAPUL.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:$b,error:Dc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
1
+ import {Dc,$b}from'./chunk-ILKEPMS6.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:$b,error:Dc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-LQRG724F.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-SOT24MDS.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-LQRG724F.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-SOT24MDS.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 {Pa}from'./chunk-Y2QAWXZX.js';import y from'react';import c from'@mui/material/Box';import m from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(m,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var x=Pa();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},d){let f=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}x&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(c,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:d,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:f,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var u=y.forwardRef(l);var B=u;export{B as a};
1
+ import {Pa}from'./chunk-RUZVVQOV.js';import y from'react';import c from'@mui/material/Box';import m from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(m,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var x=Pa();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},d){let f=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}x&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(c,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:d,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:f,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var u=y.forwardRef(l);var B=u;export{B as a};
@@ -1,4 +1,4 @@
1
- import {Yl}from'./chunk-3OMKAPUL.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(l)`
1
+ import {Yl}from'./chunk-ILKEPMS6.js';import {b,c as c$1}from'./chunk-5QGYWOQI.js';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(l)`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(3, 1fr);
4
4
  grid-gap: 10px;
@@ -1 +1 @@
1
- import {a}from'./chunk-LQRG724F.js';import {Jg,Ui}from'./chunk-3OMKAPUL.js';import {memo,useState}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var x=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:"80px",flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),r=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),h=styled(a)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),f=styled(P)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:11,height:32,gap:8}));function K({onSearchChange:t,placeholder:I,...v}){let[a,p]=useState(false),[n,s]=useState(""),{t:b}=useTranslation(),w=useTheme(),B=()=>{p(false),t?.(""),s("");},C=()=>{p(true),l();},l=()=>{n&&t?.(n);},k=i=>{i.key==="Enter"&&t?.(n);},E=i=>{s(i.currentTarget.value);};return jsxs(f,{children:[jsx(AnimatePresence,{children:a&&jsxs(Fragment,{children:[jsx(x,{initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${w.palette.divider}`,boxShadow:"none"},placeholder:I??(b("search")||""),onKeyDown:k,onChange:E}),jsx(r,{style:{right:48},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},src:Jg,alt:"close",onClick:B}),jsx(r,{style:{right:9},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},src:Ui,alt:"search",onClick:l})]})}),jsx(h,{...v,variant:a?"active":"inActive",icon:"search",onClick:C})]})}var g=memo(K);var Y=g;export{Y as a};
1
+ import {a}from'./chunk-SOT24MDS.js';import {Jg,Ui}from'./chunk-ILKEPMS6.js';import {memo,useState}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var x=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:"80px",flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),r=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),h=styled(a)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),f=styled(P)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:11,height:32,gap:8}));function K({onSearchChange:t,placeholder:I,...v}){let[a,p]=useState(false),[n,s]=useState(""),{t:b}=useTranslation(),w=useTheme(),B=()=>{p(false),t?.(""),s("");},C=()=>{p(true),l();},l=()=>{n&&t?.(n);},k=i=>{i.key==="Enter"&&t?.(n);},E=i=>{s(i.currentTarget.value);};return jsxs(f,{children:[jsx(AnimatePresence,{children:a&&jsxs(Fragment,{children:[jsx(x,{initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${w.palette.divider}`,boxShadow:"none"},placeholder:I??(b("search")||""),onKeyDown:k,onChange:E}),jsx(r,{style:{right:48},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},src:Jg,alt:"close",onClick:B}),jsx(r,{style:{right:9},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},src:Ui,alt:"search",onClick:l})]})}),jsx(h,{...v,variant:a?"active":"inActive",icon:"search",onClick:C})]})}var g=memo(K);var Y=g;export{Y as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-VXZTRLTH.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {tb}from'./chunk-3OMKAPUL.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:tb,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-NOJNKAT2.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {tb}from'./chunk-ILKEPMS6.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:tb,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-Y2QAWXZX.js';import {memo}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(l)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function p({amount:m,currencyCode:i,...s}){let{integerAmount:u,decimalAmount:f}=ab(m,i);return jsxs(e,{...s,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:f})]})}p.displayName="DisplayAmount";var a=memo(p);var B=a;export{B as a};
1
+ import {ab}from'./chunk-RUZVVQOV.js';import {memo}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(l)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function p({amount:m,currencyCode:i,...s}){let{integerAmount:u,decimalAmount:f}=ab(m,i);return jsxs(e,{...s,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:f})]})}p.displayName="DisplayAmount";var a=memo(p);var B=a;export{B as a};
@@ -1 +1 @@
1
- import {zb,jc}from'./chunk-Y2QAWXZX.js';import {ma,ka,Ll}from'./chunk-3OMKAPUL.js';import {useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:s,textColor:r=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:d=false,padding:i,minWidth:n,maxWidth:a,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:r,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:n||"67px",maxWidth:a||"none",width:"fit-content",overflow:"hidden",textOverflow:a?"ellipsis":"unset",boxSizing:"border-box",...s&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),u=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),I=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var H=({children:o,unknownText:s,copyText:r,expandDirection:e="right",chipStyles:c,containerStyles:d,fullWidth:i=false,...n})=>{let[a,l]=useState(false),{t:C}=useTranslation(),p=n.isSelected,g=p&&r,w=useCallback(x=>{if(x.stopPropagation(),r){l(true),zb(r);let R=setTimeout(()=>{l(false);},2e3);return ()=>{clearTimeout(R);}}},[r]),S=useMemo(()=>jsx(I,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:w,src:a?ma:ka,style:{height:12,width:12,objectFit:"contain"}})}),[a,w,e]),b=g&&e==="right",v=g&&e==="left";return o?jsxs(motion.div,{style:{position:"relative",...d,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...n,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(u,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...n,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...b&&{paddingRight:12},...v&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:v&&S}),jsx(u,{"data-is-arabic":typeof o=="string"&&jc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...Ll,...n,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:C(s||"unknown")})},M=H;var D=M;export{D as a};
1
+ import {zb,jc}from'./chunk-RUZVVQOV.js';import {ma,ka,Ll}from'./chunk-ILKEPMS6.js';import {useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:s,textColor:r=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:d=false,padding:i,minWidth:n,maxWidth:a,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:r,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:n||"67px",maxWidth:a||"none",width:"fit-content",overflow:"hidden",textOverflow:a?"ellipsis":"unset",boxSizing:"border-box",...s&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),u=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),I=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var H=({children:o,unknownText:s,copyText:r,expandDirection:e="right",chipStyles:c,containerStyles:d,fullWidth:i=false,...n})=>{let[a,l]=useState(false),{t:C}=useTranslation(),p=n.isSelected,g=p&&r,w=useCallback(x=>{if(x.stopPropagation(),r){l(true),zb(r);let R=setTimeout(()=>{l(false);},2e3);return ()=>{clearTimeout(R);}}},[r]),S=useMemo(()=>jsx(I,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:w,src:a?ma:ka,style:{height:12,width:12,objectFit:"contain"}})}),[a,w,e]),b=g&&e==="right",v=g&&e==="left";return o?jsxs(motion.div,{style:{position:"relative",...d,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...n,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(u,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...n,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...b&&{paddingRight:12},...v&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:v&&S}),jsx(u,{"data-is-arabic":typeof o=="string"&&jc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...Ll,...n,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:C(s||"unknown")})},M=H;var D=M;export{D as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-NVTETNAM.js';import {tb,v as v$1,Ke}from'./chunk-3OMKAPUL.js';import {memo,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import Ie from'@mui/material/ClickAwayListener';import Se from'@mui/material/Popper';import M from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var H=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),f=styled(TextField,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hasError:t,hideArrows:i})=>({"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:"1px solid #F2F2F2",borderRadius:"4px","& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{border:`1px solid ${e.palette.error.main}`},...i&&{"& 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}}})),c=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),A=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"rgba(255, 122, 0, 0.15)",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));var T=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),N=styled(f)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),q=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function S(e){let t=useRef(null);return jsxs(Fragment,{children:[jsxs(T,{"data-testid":"InputContainer",children:[jsx(N,{value:t.current?.files?.[0]?.name||"",...e}),jsx(q,{onClick:()=>{t.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:t,style:{display:"none"}})]})}var he=S;var _=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"})),K=styled$1(C)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),U=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),V=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"})),G=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),J=styled$1(C)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var O=styled$1(C)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),Q=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Ce({defaultCountry:e,value:t,onChangeCountry:i,required:p,countries:n=[],isLoading:ne=false}){let[E,k]=useState(null),[ie,u]=useState([]),[pe,P]=useState(),ae=()=>{if(n&&e){let o=n.find(l=>l.iso2===e);o&&i?.(o);}};useEffect(()=>{u(n||[]),ae();},[n]);let R=!!E,le=o=>{o.stopPropagation(),k(o.currentTarget);},L=()=>{k(null),P(void 0);},se=o=>{i?.(o),L(),u(n);},de=o=>{let l=Number(o.target.value);if(P(l),!l){u(n);return}u(n.filter(ue=>ue.idd_prefix.toString().startsWith(l.toString())));};return ne?jsx(M,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Ie,{onClickAway:L,children:jsxs(C,{"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(_,{type:"button",onClick:le,sx:{backgroundColor:"transparent",border:"none",height:34},children:[t?.logo?jsx("img",{src:t.logo,alt:"c",className:"logo"}):jsx(M,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${t?.idd_prefix}`}),p&&jsx(J,{component:"span",children:"*"}),jsx(C,{component:"img",src:tb,alt:"d",className:"arrow",sx:{...R&&{transform:"rotate(180deg)"}}})]}),jsx(Se,{open:R,anchorEl:E,children:jsxs(K,{component:"article","data-testid":"CountriesWrapper",children:[jsx(G,{endAdornment:jsx("img",{src:v$1,alt:"arrow"}),onChange:de,value:pe,hideArrows:true}),jsx(U,{children:ie.map(o=>jsxs(V,{onClick:()=>{se(o);},children:[o.logo?jsx("img",{src:o.logo,alt:"c",className:"logo"}):jsx(M,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${o.idd_prefix}`})]},`country-code-${o.countryId}`))})]})})]})})}var Y=memo(Ce);var we=Y;function F(e){let{control:t}=useFormContext();return jsx(Controller,{name:e.name,control:t,render:({field:i,fieldState:{error:p}})=>jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(H,{"data-testid":"InputWrapper",children:jsx(f,{rows:1,hasError:!!p,...i,variant:"standard",label:e.placeholder,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px"}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),e?.warningMessage&&jsx(A,{children:e.warningMessage}),p?.message&&jsx(c,{children:p?.message})]})})}var v=F;var j=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),ee=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function B({showSearchIcon:e=true,...t}){return jsxs(Box,{children:[jsx(v,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:v$1,alt:"search"}),sx:{...t.error&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...t.error&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t}),t.error&&jsxs(ee,{children:[jsx(j,{src:Ke}),jsx(Typography,{color:"red",fontSize:"10px",children:t.errorMessage})]})]})}var Ee=B;function W(e){let{control:t}=useFormContext();return jsx(Controller,{name:e.name,control:t,render:({field:i,fieldState:{error:p}})=>jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...i,value:i.value??"",error:!!p,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...p&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(n=>jsx(MenuItem,{value:n.value??"",sx:{fontSize:"12px"},children:n.label},n.value??""))})]}),jsx(c,{children:p?.message})]})})}var Ae=W;export{he as a,O as b,Q as c,we as d,v as e,Ee as f,Ae as g};
1
+ import {a}from'./chunk-CYB7L62W.js';import {tb,v as v$1,Ke}from'./chunk-ILKEPMS6.js';import {memo,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import Ie from'@mui/material/ClickAwayListener';import Se from'@mui/material/Popper';import M from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var H=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),f=styled(TextField,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hasError:t,hideArrows:i})=>({"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:"1px solid #F2F2F2",borderRadius:"4px","& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{border:`1px solid ${e.palette.error.main}`},...i&&{"& 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}}})),c=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),A=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"rgba(255, 122, 0, 0.15)",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));var T=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),N=styled(f)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),q=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function S(e){let t=useRef(null);return jsxs(Fragment,{children:[jsxs(T,{"data-testid":"InputContainer",children:[jsx(N,{value:t.current?.files?.[0]?.name||"",...e}),jsx(q,{onClick:()=>{t.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:t,style:{display:"none"}})]})}var he=S;var _=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"})),K=styled$1(C)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),U=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),V=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"})),G=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),J=styled$1(C)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var O=styled$1(C)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),Q=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Ce({defaultCountry:e,value:t,onChangeCountry:i,required:p,countries:n=[],isLoading:ne=false}){let[E,k]=useState(null),[ie,u]=useState([]),[pe,P]=useState(),ae=()=>{if(n&&e){let o=n.find(l=>l.iso2===e);o&&i?.(o);}};useEffect(()=>{u(n||[]),ae();},[n]);let R=!!E,le=o=>{o.stopPropagation(),k(o.currentTarget);},L=()=>{k(null),P(void 0);},se=o=>{i?.(o),L(),u(n);},de=o=>{let l=Number(o.target.value);if(P(l),!l){u(n);return}u(n.filter(ue=>ue.idd_prefix.toString().startsWith(l.toString())));};return ne?jsx(M,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Ie,{onClickAway:L,children:jsxs(C,{"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(_,{type:"button",onClick:le,sx:{backgroundColor:"transparent",border:"none",height:34},children:[t?.logo?jsx("img",{src:t.logo,alt:"c",className:"logo"}):jsx(M,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${t?.idd_prefix}`}),p&&jsx(J,{component:"span",children:"*"}),jsx(C,{component:"img",src:tb,alt:"d",className:"arrow",sx:{...R&&{transform:"rotate(180deg)"}}})]}),jsx(Se,{open:R,anchorEl:E,children:jsxs(K,{component:"article","data-testid":"CountriesWrapper",children:[jsx(G,{endAdornment:jsx("img",{src:v$1,alt:"arrow"}),onChange:de,value:pe,hideArrows:true}),jsx(U,{children:ie.map(o=>jsxs(V,{onClick:()=>{se(o);},children:[o.logo?jsx("img",{src:o.logo,alt:"c",className:"logo"}):jsx(M,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${o.idd_prefix}`})]},`country-code-${o.countryId}`))})]})})]})})}var Y=memo(Ce);var we=Y;function F(e){let{control:t}=useFormContext();return jsx(Controller,{name:e.name,control:t,render:({field:i,fieldState:{error:p}})=>jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(H,{"data-testid":"InputWrapper",children:jsx(f,{rows:1,hasError:!!p,...i,variant:"standard",label:e.placeholder,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px"}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),e?.warningMessage&&jsx(A,{children:e.warningMessage}),p?.message&&jsx(c,{children:p?.message})]})})}var v=F;var j=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),ee=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function B({showSearchIcon:e=true,...t}){return jsxs(Box,{children:[jsx(v,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:v$1,alt:"search"}),sx:{...t.error&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...t.error&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t}),t.error&&jsxs(ee,{children:[jsx(j,{src:Ke}),jsx(Typography,{color:"red",fontSize:"10px",children:t.errorMessage})]})]})}var Ee=B;function W(e){let{control:t}=useFormContext();return jsx(Controller,{name:e.name,control:t,render:({field:i,fieldState:{error:p}})=>jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...i,value:i.value??"",error:!!p,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...p&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(n=>jsx(MenuItem,{value:n.value??"",sx:{fontSize:"12px"},children:n.label},n.value??""))})]}),jsx(c,{children:p?.message})]})})}var Ae=W;export{he as a,O as b,Q as c,we as d,v as e,Ee as f,Ae as g};
@@ -1 +1 @@
1
- import {Dc}from'./chunk-3OMKAPUL.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var t=styled(i)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function d({error:r,...p}){return jsxs(t,{...p,children:[jsx("img",{src:Dc,alt:"w"}),r]})}var e=memo(d);var S=e;export{S as a};
1
+ import {Dc}from'./chunk-ILKEPMS6.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var t=styled(i)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function d({error:r,...p}){return jsxs(t,{...p,children:[jsx("img",{src:Dc,alt:"w"}),r]})}var e=memo(d);var S=e;export{S as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-IFXWBQNA.js';import {Bc,J,ab}from'./chunk-Y2QAWXZX.js';import {xl}from'./chunk-3OMKAPUL.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===xl.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===xl.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-T6Q57BTJ.js';import {Bc,J,ab}from'./chunk-RUZVVQOV.js';import {xl}from'./chunk-ILKEPMS6.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===xl.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===xl.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 {b}from'./chunk-KRG5UVJE.js';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var e=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexDirection:"row"})),r=styled(b)(()=>({padding:"0.75px 12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"}));var d=({chips:t,containerSx:s,defaultChipSx:a,...l})=>!t||t.length===0?null:jsx(e,{sx:s,...l,children:t.map(({key:n,content:C,sx:u,...f})=>jsx(r,{sx:{...a,...u},...f,children:C},n))}),x=d;export{x as a};
1
+ import {b}from'./chunk-TUX5YWW5.js';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var e=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexDirection:"row"})),r=styled(b)(()=>({padding:"0.75px 12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"}));var d=({chips:t,containerSx:s,defaultChipSx:a,...l})=>!t||t.length===0?null:jsx(e,{sx:s,...l,children:t.map(({key:n,content:C,sx:u,...f})=>jsx(r,{sx:{...a,...u},...f,children:C},n))}),x=d;export{x as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-KRG5UVJE.js';import {fe}from'./chunk-3OMKAPUL.js';import {jsxs,jsx}from'react/jsx-runtime';var x=({text:t,startLength:p=8,endLength:r=4,chipIndex:a,copyText:i,selectionProps:d})=>{let c=t.slice(0,p),m=t.slice(t.length-r);return jsxs(b,{chipIndex:a,copyText:i,selectionProps:d,children:[c,jsx("img",{src:fe,alt:"passwordDots"}),m]})},s=x;var M=s;export{M as a};
1
+ import {b}from'./chunk-TUX5YWW5.js';import {fe}from'./chunk-ILKEPMS6.js';import {jsxs,jsx}from'react/jsx-runtime';var x=({text:t,startLength:p=8,endLength:r=4,chipIndex:a,copyText:i,selectionProps:d})=>{let c=t.slice(0,p),m=t.slice(t.length-r);return jsxs(b,{chipIndex:a,copyText:i,selectionProps:d,children:[c,jsx("img",{src:fe,alt:"passwordDots"}),m]})},s=x;var M=s;export{M as a};
@@ -1 +1 @@
1
- import {Xl,Wl}from'./chunk-3OMKAPUL.js';import {memo}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function i(o){return jsx(Checkbox,{disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"16px !important",height:"16px !important"}}),checkedIcon:o.disabled?Xl:Wl,...o})}i.displayName="CheckboxInput";var p=memo(i);var l=p;export{l as a};
1
+ import {Xl,Wl}from'./chunk-ILKEPMS6.js';import {memo}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function i(o){return jsx(Checkbox,{disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"16px !important",height:"16px !important"}}),checkedIcon:o.disabled?Xl:Wl,...o})}i.displayName="CheckboxInput";var p=memo(i);var l=p;export{l as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-VBQVGZ4J.js';import {a as a$3}from'./chunk-R7QVUQBN.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {rc}from'./chunk-Y2QAWXZX.js';import {Ph,Qh,Vh,Od}from'./chunk-3OMKAPUL.js';import {memo,useState,useEffect,useMemo}from'react';import n from'@mui/material/Box';import {useDropzone}from'react-dropzone';import {useTranslation}from'react-i18next';import {Button}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var x=styled(n)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),m=styled(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),H=styled(n)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),u=styled(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),f=styled(n)(({theme:e})=>({width:431,height:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),g=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),$=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),h=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),F=styled(n)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),J=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),L=styled(n)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));function ie({accept:e,footer:i,options:b,isCreateLoading:y,progress:V,error:k,subtitleComponent:S,isSuccess:z,onConfirm:X,isSendDisabled:q}){let{t:a}=useTranslation(),[p,T]=useState([]),{getRootProps:G,getInputProps:K,open:U,acceptedFiles:I,isDragReject:P,fileRejections:s}=useDropzone(b);useEffect(()=>{T(I);},[I]);let w=rc(b?.maxSize||0,0).toUpperCase(),d=useMemo(()=>{let O=s.length&&s[0].errors.some(W=>W.code==="file-invalid-type"),Q=s.length&&s[0].errors.some(W=>W.code==="file-too-large");return P||O?a("invalidFileType"):Q?`File is larger than ${w}`:k},[P,k,s]);return z&&p.length&&!y?jsxs(x,{children:[jsxs(n,{children:[jsx(m,{children:"File uploaded"}),S]}),jsx(f,{children:jsxs(g,{children:[z&&jsx(n,{component:"img",src:Ph,width:56,height:56}),jsxs(h,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(F,{children:rc(p[0].size)})]})]})}),jsxs(L,{children:[jsx(a$1,{onClick:()=>{T([]);},children:jsx(a$2,{src:Qh,alt:"delete",sx:{width:14,height:14}})}),jsx(J,{disabled:q,onClick:()=>{X?.(p);},children:"Bulk Send"})]})]}):y&&p.length?jsxs(x,{children:[jsxs(n,{children:[jsx(m,{children:a("uploading")}),jsx(u,{children:a("wait")}),S]}),jsx(f,{children:jsxs(g,{children:[y&&jsx(a$3,{size:56,value:V}),jsxs(h,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(F,{children:rc(p[0].size)})]})]})}),i&&i]}):jsxs(x,{children:[jsxs(n,{children:[jsx(m,{isError:!!d,children:d||a("uploadBulkFile")}),!!d&&jsx(u,{children:"Supported formats: xls, xlxs"}),S]}),jsxs(f,{...G(),children:[jsx("input",{...K()}),jsxs(g,{children:[jsx(n,{component:"img",src:d?Vh:Od,width:56,height:56}),d?jsx(Fragment,{children:jsx(H,{onClick:U,children:a("uploadAgain")})}):jsxs(h,{children:[jsxs(n,{children:[jsx($,{onClick:U,children:"Click to upload"})," or drag and drop"]}),jsxs(F,{children:["Maximum file size ",w]}),e&&jsx(u,{children:a("supportedFormats",{accept:e})})]})]})]}),i&&i]})}var N=memo(ie);var Te=N;export{Te as a};
1
+ import {a as a$1}from'./chunk-VBQVGZ4J.js';import {a as a$3}from'./chunk-R7QVUQBN.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {rc}from'./chunk-RUZVVQOV.js';import {Ph,Qh,Vh,Od}from'./chunk-ILKEPMS6.js';import {memo,useState,useEffect,useMemo}from'react';import n from'@mui/material/Box';import {useDropzone}from'react-dropzone';import {useTranslation}from'react-i18next';import {Button}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var x=styled(n)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),m=styled(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),H=styled(n)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),u=styled(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),f=styled(n)(({theme:e})=>({width:431,height:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),g=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),$=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),h=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),F=styled(n)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),J=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),L=styled(n)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));function ie({accept:e,footer:i,options:b,isCreateLoading:y,progress:V,error:k,subtitleComponent:S,isSuccess:z,onConfirm:X,isSendDisabled:q}){let{t:a}=useTranslation(),[p,T]=useState([]),{getRootProps:G,getInputProps:K,open:U,acceptedFiles:I,isDragReject:P,fileRejections:s}=useDropzone(b);useEffect(()=>{T(I);},[I]);let w=rc(b?.maxSize||0,0).toUpperCase(),d=useMemo(()=>{let O=s.length&&s[0].errors.some(W=>W.code==="file-invalid-type"),Q=s.length&&s[0].errors.some(W=>W.code==="file-too-large");return P||O?a("invalidFileType"):Q?`File is larger than ${w}`:k},[P,k,s]);return z&&p.length&&!y?jsxs(x,{children:[jsxs(n,{children:[jsx(m,{children:"File uploaded"}),S]}),jsx(f,{children:jsxs(g,{children:[z&&jsx(n,{component:"img",src:Ph,width:56,height:56}),jsxs(h,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(F,{children:rc(p[0].size)})]})]})}),jsxs(L,{children:[jsx(a$1,{onClick:()=>{T([]);},children:jsx(a$2,{src:Qh,alt:"delete",sx:{width:14,height:14}})}),jsx(J,{disabled:q,onClick:()=>{X?.(p);},children:"Bulk Send"})]})]}):y&&p.length?jsxs(x,{children:[jsxs(n,{children:[jsx(m,{children:a("uploading")}),jsx(u,{children:a("wait")}),S]}),jsx(f,{children:jsxs(g,{children:[y&&jsx(a$3,{size:56,value:V}),jsxs(h,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(F,{children:rc(p[0].size)})]})]})}),i&&i]}):jsxs(x,{children:[jsxs(n,{children:[jsx(m,{isError:!!d,children:d||a("uploadBulkFile")}),!!d&&jsx(u,{children:"Supported formats: xls, xlxs"}),S]}),jsxs(f,{...G(),children:[jsx("input",{...K()}),jsxs(g,{children:[jsx(n,{component:"img",src:d?Vh:Od,width:56,height:56}),d?jsx(Fragment,{children:jsx(H,{onClick:U,children:a("uploadAgain")})}):jsxs(h,{children:[jsxs(n,{children:[jsx($,{onClick:U,children:"Click to upload"})," or drag and drop"]}),jsxs(F,{children:["Maximum file size ",w]}),e&&jsx(u,{children:a("supportedFormats",{accept:e})})]})]})]}),i&&i]})}var N=memo(ie);var Te=N;export{Te as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-YPOJNH2V.js';import {e}from'./chunk-IYRUW7WD.js';import {eg}from'./chunk-3OMKAPUL.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:eg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
1
+ import {b}from'./chunk-XR2H5OYZ.js';import {e}from'./chunk-YOMBUEHO.js';import {eg}from'./chunk-ILKEPMS6.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:eg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};