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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/build/_chunks/{chunk-IQGGEFTS.js → chunk-2ZQWIYKE.js} +1 -1
  2. package/build/_chunks/{chunk-2IDI5FIT.js → chunk-44OIHCXG.js} +1 -1
  3. package/build/_chunks/{chunk-6IBFFDYO.js → chunk-4IN4MNIL.js} +1 -1
  4. package/build/_chunks/{chunk-OU26R2ZH.js → chunk-4METKSOV.js} +1 -1
  5. package/build/_chunks/{chunk-CZIIDBGD.js → chunk-4N5L3C7E.js} +1 -1
  6. package/build/_chunks/{chunk-GKOMALZH.js → chunk-55Y5JZSW.js} +1 -1
  7. package/build/_chunks/{chunk-264AVQZB.js → chunk-5CVP7UHB.js} +1 -1
  8. package/build/_chunks/{chunk-H6A7LB3N.js → chunk-6HPHRTSG.js} +1 -1
  9. package/build/_chunks/{chunk-LYFXQM4Y.js → chunk-6TBC5ZFW.js} +1 -1
  10. package/build/_chunks/{chunk-P53QM5ZH.js → chunk-6YBJRXXJ.js} +1 -1
  11. package/build/_chunks/{chunk-7HIN4SP6.js → chunk-7B2FRRRI.js} +1 -1
  12. package/build/_chunks/{chunk-ASRZLEZV.js → chunk-7ECPGY56.js} +1 -1
  13. package/build/_chunks/{chunk-QI5ONUIK.js → chunk-7Q5JHJMB.js} +1 -1
  14. package/build/_chunks/{chunk-U4O4343E.js → chunk-A5BRE7MI.js} +1 -1
  15. package/build/_chunks/{chunk-CNPPHOFA.js → chunk-A7BYIGKD.js} +1 -1
  16. package/build/_chunks/{chunk-644HXTAE.js → chunk-A7IDM5R6.js} +1 -1
  17. package/build/_chunks/{chunk-TTMCRWE5.js → chunk-AEF4XWQU.js} +1 -1
  18. package/build/_chunks/{chunk-5Z2NA3V4.js → chunk-AG7327OT.js} +1 -1
  19. package/build/_chunks/{chunk-KFQ6O6W4.js → chunk-AHKZYNFC.js} +1 -1
  20. package/build/_chunks/{chunk-2SZM47F2.js → chunk-AJVZK5T5.js} +1 -1
  21. package/build/_chunks/chunk-ATSYOVOS.js +1 -0
  22. package/build/_chunks/{chunk-5S3T3XNY.js → chunk-AW3ILDEO.js} +1 -1
  23. package/build/_chunks/{chunk-ANJRT2B4.js → chunk-AWJMELRN.js} +1 -1
  24. package/build/_chunks/{chunk-KQVBQWAY.js → chunk-BIRJZLQQ.js} +1 -1
  25. package/build/_chunks/{chunk-UB3MA7UL.js → chunk-C2E6BXXL.js} +1 -1
  26. package/build/_chunks/{chunk-RIKXHYPW.js → chunk-COAYA7GT.js} +1 -1
  27. package/build/_chunks/{chunk-JIJNZQG6.js → chunk-CW3PX3MJ.js} +1 -1
  28. package/build/_chunks/{chunk-3MZJFU75.js → chunk-D6CBA46N.js} +1 -1
  29. package/build/_chunks/{chunk-ONAXBL6X.js → chunk-DHR22HF5.js} +1 -1
  30. package/build/_chunks/{chunk-4SY2RHF6.js → chunk-DIFTS5M3.js} +1 -1
  31. package/build/_chunks/{chunk-YTOCVVWT.js → chunk-DU4WILJE.js} +1 -1
  32. package/build/_chunks/{chunk-OUZKELT6.js → chunk-DWELXSQ2.js} +1 -1
  33. package/build/_chunks/{chunk-RIJTT6QH.js → chunk-DWEUYV7O.js} +1 -1
  34. package/build/_chunks/{chunk-B7J5INEP.js → chunk-E35LKQ6G.js} +1 -1
  35. package/build/_chunks/{chunk-CVUX77JW.js → chunk-EE7K4JK2.js} +1 -1
  36. package/build/_chunks/{chunk-WNBENFER.js → chunk-EGGEELUP.js} +1 -1
  37. package/build/_chunks/{chunk-V5PNP75S.js → chunk-EGIAXPM6.js} +1 -1
  38. package/build/_chunks/{chunk-ZPST4MU4.js → chunk-EMXCLBWT.js} +1 -1
  39. package/build/_chunks/{chunk-37FU3HTL.js → chunk-ER66NQ2X.js} +1 -1
  40. package/build/_chunks/{chunk-VSKVOLMX.js → chunk-EVDEPVIW.js} +1 -1
  41. package/build/_chunks/{chunk-425IBHKE.js → chunk-EVJ7I7KT.js} +1 -1
  42. package/build/_chunks/{chunk-ASJ6GAAA.js → chunk-EWAOFKBQ.js} +1 -1
  43. package/build/_chunks/{chunk-WUS2EVHL.js → chunk-F5A4P7NM.js} +1 -1
  44. package/build/_chunks/{chunk-JUKEYCTU.js → chunk-F5YEURPO.js} +1 -1
  45. package/build/_chunks/{chunk-DKQRANZG.js → chunk-FIXHFGQM.js} +1 -1
  46. package/build/_chunks/{chunk-COBEFFDC.js → chunk-FJNBLAP6.js} +1 -1
  47. package/build/_chunks/{chunk-PXRISNLH.js → chunk-FLYJ436H.js} +1 -1
  48. package/build/_chunks/{chunk-KDBZ73Y5.js → chunk-GKHOITZE.js} +1 -1
  49. package/build/_chunks/{chunk-24GIPYTV.js → chunk-HC7WHE7M.js} +1 -1
  50. package/build/_chunks/{chunk-PRHUY2CD.js → chunk-HCO2FZKF.js} +1 -1
  51. package/build/_chunks/{chunk-65AWRJJE.js → chunk-HJFHOPWU.js} +1 -1
  52. package/build/_chunks/{chunk-FX73HHSU.js → chunk-I7BXAQZS.js} +1 -1
  53. package/build/_chunks/{chunk-LDCV2JMD.js → chunk-ITRIODTY.js} +1 -1
  54. package/build/_chunks/{chunk-QGSBHZTO.js → chunk-J2VRPJRB.js} +1 -1
  55. package/build/_chunks/{chunk-YDPDHWVC.js → chunk-JKOFVMQP.js} +1 -1
  56. package/build/_chunks/{chunk-D3PKO4EA.js → chunk-JM7JGI5D.js} +1 -1
  57. package/build/_chunks/{chunk-3MIQWQQL.js → chunk-JPSWQQN6.js} +1 -1
  58. package/build/_chunks/{chunk-O6HUXU74.js → chunk-KLJYL5XA.js} +1 -1
  59. package/build/_chunks/{chunk-5IVJR7ID.js → chunk-KNP2Q2XT.js} +1 -1
  60. package/build/_chunks/{chunk-TNRTGLOJ.js → chunk-L5W3FQGI.js} +1 -1
  61. package/build/_chunks/{chunk-JF6PWJZY.js → chunk-L7KNDQIN.js} +1 -1
  62. package/build/_chunks/{chunk-CYUHMSLI.js → chunk-LQCRTVTV.js} +1 -1
  63. package/build/_chunks/{chunk-5ZTK2DTR.js → chunk-LYEN4LAJ.js} +1 -1
  64. package/build/_chunks/{chunk-CRGXVUQV.js → chunk-MEWGN3RQ.js} +1 -1
  65. package/build/_chunks/{chunk-G2ULHE77.js → chunk-MH3PHXU4.js} +1 -1
  66. package/build/_chunks/{chunk-QL4R766B.js → chunk-MIZ2W4YF.js} +1 -1
  67. package/build/_chunks/{chunk-IRN4UAJD.js → chunk-MW3TIUDF.js} +1 -1
  68. package/build/_chunks/{chunk-QBD3O77Y.js → chunk-NCB4ZE2Q.js} +1 -1
  69. package/build/_chunks/{chunk-EJCYMB26.js → chunk-NUB35BS5.js} +1 -1
  70. package/build/_chunks/{chunk-E3WHOVVW.js → chunk-OP35J26Q.js} +1 -1
  71. package/build/_chunks/{chunk-PGMSTAF5.js → chunk-OTQLFUDS.js} +1 -1
  72. package/build/_chunks/{chunk-JHBGSF4J.js → chunk-P37RYOJW.js} +1 -1
  73. package/build/_chunks/{chunk-ND3CQPHU.js → chunk-P4TQ24MF.js} +1 -1
  74. package/build/_chunks/{chunk-QA56IEXS.js → chunk-PB3ZRY6U.js} +1 -1
  75. package/build/_chunks/{chunk-YDPQT7J7.js → chunk-PKN6JRU3.js} +1 -1
  76. package/build/_chunks/{chunk-COPHDTAJ.js → chunk-PRALNONH.js} +1 -1
  77. package/build/_chunks/{chunk-WJLRJAUM.js → chunk-PWN3QZBX.js} +1 -1
  78. package/build/_chunks/{chunk-KAQE76SE.js → chunk-QRIVUSHJ.js} +1 -1
  79. package/build/_chunks/{chunk-6AJO36AF.js → chunk-QVU7E6R3.js} +1 -1
  80. package/build/_chunks/{chunk-7MJVA3JB.js → chunk-R5LCSECF.js} +1 -1
  81. package/build/_chunks/{chunk-B6GU33JP.js → chunk-RENOZ7NM.js} +1 -1
  82. package/build/_chunks/{chunk-BWJPQOMN.js → chunk-SNEXYGFV.js} +1 -1
  83. package/build/_chunks/{chunk-OPT6Q26G.js → chunk-SOJRPME6.js} +1 -1
  84. package/build/_chunks/{chunk-TFSDMTHE.js → chunk-U3KQLP32.js} +1 -1
  85. package/build/_chunks/{chunk-QV6X6ZN6.js → chunk-UC66CU45.js} +1 -1
  86. package/build/_chunks/{chunk-E6IVKR44.js → chunk-UDTRZUQL.js} +1 -1
  87. package/build/_chunks/{chunk-FCN2PNOQ.js → chunk-UHUT65RB.js} +1 -1
  88. package/build/_chunks/{chunk-SJ6HXWDZ.js → chunk-V4REQ4ZP.js} +1 -1
  89. package/build/_chunks/{chunk-2R3RHB6S.js → chunk-V5UEYSM5.js} +1 -1
  90. package/build/_chunks/{chunk-3UW23XJL.js → chunk-VBDBPJ6A.js} +1 -1
  91. package/build/_chunks/{chunk-CILKCYEG.js → chunk-VRAGDMAQ.js} +1 -1
  92. package/build/_chunks/{chunk-UPH4OINU.js → chunk-VRMS7VG4.js} +1 -1
  93. package/build/_chunks/{chunk-HZKRAADE.js → chunk-WH457HQP.js} +1 -1
  94. package/build/_chunks/{chunk-DSFHY45V.js → chunk-WL4B2ZSK.js} +1 -1
  95. package/build/_chunks/{chunk-S36DJQ7J.js → chunk-WPGDLFWS.js} +1 -1
  96. package/build/_chunks/{chunk-PMDVZJAI.js → chunk-WS7EHNFE.js} +1 -1
  97. package/build/_chunks/{chunk-YZFKWXML.js → chunk-X6OKY5JJ.js} +1 -1
  98. package/build/_chunks/{chunk-AKFLA3AI.js → chunk-X774JJV4.js} +1 -1
  99. package/build/_chunks/{chunk-VYZDFZAK.js → chunk-XUOSECWP.js} +1 -1
  100. package/build/_chunks/{chunk-7Z7U2OMA.js → chunk-YWMPDGZ3.js} +1 -1
  101. package/build/_chunks/{chunk-WKDLZKPO.js → chunk-ZDUBBHB5.js} +1 -1
  102. package/build/_chunks/{chunk-F42NLFOM.js → chunk-ZHXCRQM2.js} +1 -1
  103. package/build/_chunks/{chunk-5MLLBPE3.js → chunk-ZONG4FCE.js} +1 -1
  104. package/build/_chunks/chunk-ZXAC3YAM.js +1 -0
  105. package/build/components/Accordion/index.js +1 -1
  106. package/build/components/AccountDropdown/index.js +1 -1
  107. package/build/components/ActionMenu/index.js +1 -1
  108. package/build/components/ActionsDropdownMenu/index.js +1 -1
  109. package/build/components/ActiveFilterChip/index.js +1 -1
  110. package/build/components/ActivityAreaChart/index.js +1 -1
  111. package/build/components/Amount/index.js +1 -1
  112. package/build/components/AmountConversionFilter/index.js +1 -1
  113. package/build/components/AmountInput/index.js +1 -1
  114. package/build/components/AmountSlider/index.js +1 -1
  115. package/build/components/AmountStatusChip/index.js +1 -1
  116. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  117. package/build/components/AppServices/index.js +1 -1
  118. package/build/components/AppServicesBar/index.js +1 -1
  119. package/build/components/AppWindowWrapper/index.js +1 -1
  120. package/build/components/AuthenticationTypeChip/index.js +1 -1
  121. package/build/components/Autocomplete/index.js +1 -1
  122. package/build/components/BetaBanner/index.js +1 -1
  123. package/build/components/BrandLogo/index.js +1 -1
  124. package/build/components/Button/index.js +1 -1
  125. package/build/components/Calender/index.js +1 -1
  126. package/build/components/CardEmptyState/index.js +1 -1
  127. package/build/components/Checkbox/index.js +1 -1
  128. package/build/components/Chip/index.js +1 -1
  129. package/build/components/ChipStack/index.js +1 -1
  130. package/build/components/CircularProgressWithLabel/index.js +1 -1
  131. package/build/components/Collapse/index.js +1 -1
  132. package/build/components/ColorPicker/index.js +1 -1
  133. package/build/components/ColumnViews/index.js +1 -1
  134. package/build/components/ConfirmDialog/index.js +1 -1
  135. package/build/components/CopyImage/index.js +1 -1
  136. package/build/components/CountBadge/index.js +1 -1
  137. package/build/components/CountryFilter/index.js +1 -1
  138. package/build/components/CountryFlag/index.js +1 -1
  139. package/build/components/CurrencyAmount/index.js +1 -1
  140. package/build/components/CurrencyFilter/index.js +1 -1
  141. package/build/components/CurrencySymbol/index.js +1 -1
  142. package/build/components/CustomBackdrop/index.js +1 -1
  143. package/build/components/Customer/index.js +1 -1
  144. package/build/components/DateFilter/index.js +1 -1
  145. package/build/components/DeviceIcon/index.js +1 -1
  146. package/build/components/Dialog/index.js +1 -1
  147. package/build/components/Discount/index.js +1 -1
  148. package/build/components/DisplayAmount/index.js +1 -1
  149. package/build/components/Dropdown2/index.js +1 -1
  150. package/build/components/DropdownButton/index.js +1 -1
  151. package/build/components/DropdownMenu/index.js +1 -1
  152. package/build/components/Error/index.js +1 -1
  153. package/build/components/ErrorToast/index.js +1 -1
  154. package/build/components/ExpandableSideBar/index.js +1 -1
  155. package/build/components/FieldFeedback/index.js +1 -1
  156. package/build/components/FileInputPreview/index.js +1 -1
  157. package/build/components/FilePreview/index.js +1 -1
  158. package/build/components/FileUpload/index.js +1 -1
  159. package/build/components/FileUploader/index.js +1 -1
  160. package/build/components/FilterDropdown/index.js +1 -1
  161. package/build/components/Filters/index.js +1 -1
  162. package/build/components/FlagDetails/index.js +1 -1
  163. package/build/components/FlippingCard/index.js +1 -1
  164. package/build/components/HeatMap/index.js +1 -1
  165. package/build/components/IOSSwitch/index.js +1 -1
  166. package/build/components/Icon/index.js +1 -1
  167. package/build/components/IconWithBadge/index.js +1 -1
  168. package/build/components/Input/index.js +1 -1
  169. package/build/components/InputBase/index.js +1 -1
  170. package/build/components/InputNumber/index.js +1 -1
  171. package/build/components/Inputs/index.js +1 -1
  172. package/build/components/JSONViewer/index.js +1 -1
  173. package/build/components/LanguageDropdown/index.js +1 -1
  174. package/build/components/LazyImage/index.js +1 -1
  175. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  176. package/build/components/ListColumnFilter/index.js +1 -1
  177. package/build/components/ListHeader/index.js +1 -1
  178. package/build/components/ListLayout/index.js +1 -1
  179. package/build/components/Loader/index.js +1 -1
  180. package/build/components/MFWidgetLoader/index.js +1 -1
  181. package/build/components/MaskedText/index.js +1 -1
  182. package/build/components/Menu/index.js +1 -1
  183. package/build/components/MenuItem/index.js +1 -1
  184. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  185. package/build/components/MerchantLogo/index.js +1 -1
  186. package/build/components/MerchantsDropdown/index.js +1 -1
  187. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  188. package/build/components/MultiSelectWithSearch/index.js +1 -1
  189. package/build/components/NestedDropdown/index.js +1 -1
  190. package/build/components/NoInternet/index.js +1 -1
  191. package/build/components/OpenFileInNewTab/index.js +1 -1
  192. package/build/components/PartnersFilter/index.js +1 -1
  193. package/build/components/PaymentSourceFilter/index.js +1 -1
  194. package/build/components/PhoneFilter/index.js +1 -1
  195. package/build/components/ProgressBar/index.js +1 -1
  196. package/build/components/ProgressRing/index.js +1 -1
  197. package/build/components/RFH/index.js +1 -1
  198. package/build/components/RadioButton/index.js +1 -1
  199. package/build/components/RadioGroup/index.js +1 -1
  200. package/build/components/RangeCalender/index.js +1 -1
  201. package/build/components/ReceiptsViewer/index.js +1 -1
  202. package/build/components/ReferenceTypeFilter/index.js +1 -1
  203. package/build/components/ResizableHeightInput/index.js +1 -1
  204. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  205. package/build/components/SalesChannelFilter/index.js +1 -1
  206. package/build/components/ScrollLoader/index.js +1 -1
  207. package/build/components/SearchButton/index.js +1 -1
  208. package/build/components/SearchListInput/index.js +1 -1
  209. package/build/components/SelectDropdown/index.js +1 -1
  210. package/build/components/SelectWithSearch/index.js +1 -1
  211. package/build/components/SimpleDialog/index.js +1 -1
  212. package/build/components/Skeleton/index.js +1 -1
  213. package/build/components/Slider/index.js +1 -1
  214. package/build/components/StatusBar/index.js +1 -1
  215. package/build/components/StatusButton/index.js +1 -1
  216. package/build/components/StatusChip/index.js +1 -1
  217. package/build/components/StatusChipWithCopy/index.js +1 -1
  218. package/build/components/StatusFilter/index.js +1 -1
  219. package/build/components/StatusGroupChips/index.js +1 -1
  220. package/build/components/StatusIcons/index.js +1 -1
  221. package/build/components/StatusLabel/index.js +1 -1
  222. package/build/components/TableCells/index.js +1 -1
  223. package/build/components/TableReports/index.js +1 -1
  224. package/build/components/Timepicker/index.js +1 -1
  225. package/build/components/ToggleButtons/index.js +1 -1
  226. package/build/components/ToggleView/index.js +1 -1
  227. package/build/components/Toolbar/index.js +1 -1
  228. package/build/components/TooltipChip/index.js +1 -1
  229. package/build/components/TreeDropdown/index.js +1 -1
  230. package/build/components/VAT/index.js +1 -1
  231. package/build/components/VerificationIcon/index.js +1 -1
  232. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  233. package/build/components/VirtualTables/index.js +1 -1
  234. package/build/components/Widget/index.js +1 -1
  235. package/build/components/WindowAppIcon/index.js +1 -1
  236. package/build/components/WindowBackdrop/index.js +1 -1
  237. package/build/components/WindowSideBar/index.js +1 -1
  238. package/build/components/_v2/index.js +1 -1
  239. package/build/components/index.js +1 -1
  240. package/build/hooks/index.js +1 -1
  241. package/build/index.js +1 -1
  242. package/build/utils/date.d.ts +5 -2
  243. package/build/utils/index.js +1 -1
  244. package/package.json +1 -1
  245. package/build/_chunks/chunk-25IWFELL.js +0 -1
  246. package/build/_chunks/chunk-5LSKIBCX.js +0 -1
@@ -1 +1 @@
1
- import {ia,Qb,K,Ec,Fc}from'./chunk-25IWFELL.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function D(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function me(){let[e,n]=useState(D());return useEffect(()=>{function t(){n(D());}return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t);}},[]),e}var fe=()=>{let[e,n]=useState(false),[t,o]=useState(false);return {onMouseContentEnter:()=>{o(true);},onMouseContentLeave:()=>{o(false);},isHovered:e,isContentHovered:t,onMouseEnter:()=>{n(true);},onMouseLeave:()=>{n(false);}}};function we({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let s;return e?o(e):s=setTimeout(()=>{o(e);},n),()=>{clearTimeout(s);}},[e]),t}var Ce=()=>{let[e,n]=useState(null),[t,o]=useState(void 0),[s,r]=useState(void 0),[i,c]=useState(false),[m,u]=useState(true);return {actionMenuAnchor:e,actionMenuOptions:t,selectedActionMenuId:s,isActionMenuCheckMarkHighlighted:i,setActionMenuAnchor:n,setActionMenuOptions:o,setSelectedActionMenuId:r,setIsActionMenuCheckMarkHighlighted:c,handleCloseActionMenu:l=>{if(l&&e?.getBoundingClientRect()){let{pageX:d,pageY:g}=l,f=e?.getBoundingClientRect(),{left:v,right:w,bottom:h,top:E}=f;if(d>v&&d<w&&g>E&&g<h){c(true),setTimeout(()=>{c(false);},2e3);return}}n(null),o(void 0),r(void 0);},hideDropdown:()=>{u(false),setTimeout(()=>{u(true);},100);},showActionsDropdown:m}};function ye(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(r=>({...r,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(r=>r?t[r]:"",[t])}}var Le=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{ia()||(window.location.href="/login");},[e]);};function De(e){return {isParameterSelected:(o,s)=>s?.map(r=>Qb(e,o,r)),getColumnOrder:o=>{let s=e.findIndex(r=>r.name?.toLowerCase()===o?.toLowerCase());return s===-1?100:s}}}var Ge=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});e?.current&&o.observe(e.current);}),{showShadow:n}};var Pe=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function We(){let[e,n]=useState(0),t=useRef(null),o=K(e),s=()=>{t.current&&(clearInterval(t.current),t.current=null);},r=()=>{s(),n(0);},i=c=>{c<=0||(t.current&&s(),n(c),t.current=setInterval(()=>{n(m=>{let u=m-1;return u<=0&&s(),u});},1e3));};return useEffect(()=>()=>{s();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:s,resetTimer:r}}var Je=e=>{let n=useCallback(r=>e.find(i=>i.code.toLowerCase()===r.toLowerCase()),[e]),t=useCallback(({appCode:r,serviceCode:i})=>n(r)?.app_services.find(({code:c})=>c.toLowerCase()===i.toLowerCase()),[n]),o=useCallback(({appCode:r,serviceCode:i})=>t({appCode:r,serviceCode:i})?.functions??[],[t]),s=useCallback(({appCode:r,serviceCode:i,functionCode:c})=>o({appCode:r,serviceCode:i}).find(({code:m})=>m.toLowerCase()===c.toLowerCase()),[o]);return {getAppInfo:n,getServiceInfo:t,getServiceFunctions:o,getFunctionInfo:s}};function R(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Qe(e,n){useEffect(()=>{let t=o=>{n(...o.detail||[]);};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t);}},[e,n]);}var tt=(e,n)=>{let t=useMemo(()=>n?.entities.find(r=>r.id===e?.entityId),[n,e?.entityId]),o=useMemo(()=>t?.merchants?.find(r=>r.id===e?.merchantId),[t,e?.merchantId]),s=useMemo(()=>o?.display_name??o?.legacy_id??"Select",[o]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:s}};var oe=()=>crypto.randomUUID();function st(){let e=R("on-toast"),n=useCallback(t=>(o,s)=>{let r=s?.id??oe();return e({action:"show",variant:t,message:o,options:{...s,id:r}}),r},[e]);return useMemo(()=>{let t=n("default");return t.success=n("success"),t.error=n("error"),t.loading=n("loading"),t.custom=n("custom"),t.dismiss=o=>{e({action:"dismiss",variant:"dismiss",toastId:o});},t.remove=o=>{e({action:"remove",variant:"remove",toastId:o});},t},[n,e])}var se=10;function ut({threshold:e=se,containerRef:n}={}){let[t,o]=useState(true),[s,r]=useState(false),[i,c]=useState(false),m=useCallback(a=>{let{scrollTop:p,scrollHeight:l,clientHeight:d}=a;c(l>d+e),o(p<=e),r(l-(p+d)<=e);},[e]),u=useCallback(a=>{if(a){if("currentTarget"in a){m(a.currentTarget);return}m(a);}},[m]);return useEffect(()=>{if(!n?.current)return;let a=n.current;u(a);let p=new ResizeObserver(()=>{u(a);});return p.observe(a),()=>{p.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:s,scrollable:i}}var mt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:s=5e3}=e,r=typeof window<"u"&&typeof navigator<"u",[i,c]=useState(r?navigator.onLine:true),[m,u]=useState(false),[a,p]=useState(null),l=useRef(null),d=useRef(null),g=useCallback(f=>{l.current!==null&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{c(f),l.current=null;},o);},[o]);return useEffect(()=>{if(!r)return;let f=null,v=()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null);},w=async()=>{u(true),p(null),f?.abort(),f=new AbortController;try{let C=window.setTimeout(()=>{f?.abort();},s),x=await fetch(n,{method:"GET",cache:"no-store",signal:f.signal});window.clearTimeout(C);let A=x.ok;g(A),A?v():p(`Health check failed with status ${x.status}`);}catch{g(false),p("Unable to reach network");}finally{u(false);}},h=()=>{v(),g(true);},E=()=>{g(false),v(),w(),d.current=window.setInterval(w,t);};return window.addEventListener("online",h),window.addEventListener("offline",E),navigator.onLine||(w(),d.current=window.setInterval(w,t)),()=>{window.removeEventListener("online",h),window.removeEventListener("offline",E),l.current!==null&&window.clearTimeout(l.current),v(),f?.abort();}},[r,n,t,o,s,g]),r?{isOnline:i,isChecking:m,error:a}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var gt=(e={},n,t)=>{let o=Ec(e,t.requiredFilterKeys);return {columns:useMemo(()=>Fc(n,o,t),[n,o])}};function Et(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}export{me as a,fe as b,we as c,Ce as d,ye as e,Le as f,De as g,Ge as h,Pe as i,We as j,Je as k,R as l,Qe as m,tt as n,st as o,ut as p,mt as q,gt as r,Et as s};
1
+ import {ia,Qb,K,Ec,Fc}from'./chunk-ATSYOVOS.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function D(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function me(){let[e,n]=useState(D());return useEffect(()=>{function t(){n(D());}return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t);}},[]),e}var fe=()=>{let[e,n]=useState(false),[t,o]=useState(false);return {onMouseContentEnter:()=>{o(true);},onMouseContentLeave:()=>{o(false);},isHovered:e,isContentHovered:t,onMouseEnter:()=>{n(true);},onMouseLeave:()=>{n(false);}}};function we({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let s;return e?o(e):s=setTimeout(()=>{o(e);},n),()=>{clearTimeout(s);}},[e]),t}var Ce=()=>{let[e,n]=useState(null),[t,o]=useState(void 0),[s,r]=useState(void 0),[i,c]=useState(false),[m,u]=useState(true);return {actionMenuAnchor:e,actionMenuOptions:t,selectedActionMenuId:s,isActionMenuCheckMarkHighlighted:i,setActionMenuAnchor:n,setActionMenuOptions:o,setSelectedActionMenuId:r,setIsActionMenuCheckMarkHighlighted:c,handleCloseActionMenu:l=>{if(l&&e?.getBoundingClientRect()){let{pageX:d,pageY:g}=l,f=e?.getBoundingClientRect(),{left:v,right:w,bottom:h,top:E}=f;if(d>v&&d<w&&g>E&&g<h){c(true),setTimeout(()=>{c(false);},2e3);return}}n(null),o(void 0),r(void 0);},hideDropdown:()=>{u(false),setTimeout(()=>{u(true);},100);},showActionsDropdown:m}};function ye(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(r=>({...r,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(r=>r?t[r]:"",[t])}}var Le=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{ia()||(window.location.href="/login");},[e]);};function De(e){return {isParameterSelected:(o,s)=>s?.map(r=>Qb(e,o,r)),getColumnOrder:o=>{let s=e.findIndex(r=>r.name?.toLowerCase()===o?.toLowerCase());return s===-1?100:s}}}var Ge=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});e?.current&&o.observe(e.current);}),{showShadow:n}};var Pe=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function We(){let[e,n]=useState(0),t=useRef(null),o=K(e),s=()=>{t.current&&(clearInterval(t.current),t.current=null);},r=()=>{s(),n(0);},i=c=>{c<=0||(t.current&&s(),n(c),t.current=setInterval(()=>{n(m=>{let u=m-1;return u<=0&&s(),u});},1e3));};return useEffect(()=>()=>{s();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:s,resetTimer:r}}var Je=e=>{let n=useCallback(r=>e.find(i=>i.code.toLowerCase()===r.toLowerCase()),[e]),t=useCallback(({appCode:r,serviceCode:i})=>n(r)?.app_services.find(({code:c})=>c.toLowerCase()===i.toLowerCase()),[n]),o=useCallback(({appCode:r,serviceCode:i})=>t({appCode:r,serviceCode:i})?.functions??[],[t]),s=useCallback(({appCode:r,serviceCode:i,functionCode:c})=>o({appCode:r,serviceCode:i}).find(({code:m})=>m.toLowerCase()===c.toLowerCase()),[o]);return {getAppInfo:n,getServiceInfo:t,getServiceFunctions:o,getFunctionInfo:s}};function R(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Qe(e,n){useEffect(()=>{let t=o=>{n(...o.detail||[]);};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t);}},[e,n]);}var tt=(e,n)=>{let t=useMemo(()=>n?.entities.find(r=>r.id===e?.entityId),[n,e?.entityId]),o=useMemo(()=>t?.merchants?.find(r=>r.id===e?.merchantId),[t,e?.merchantId]),s=useMemo(()=>o?.display_name??o?.legacy_id??"Select",[o]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:s}};var oe=()=>crypto.randomUUID();function st(){let e=R("on-toast"),n=useCallback(t=>(o,s)=>{let r=s?.id??oe();return e({action:"show",variant:t,message:o,options:{...s,id:r}}),r},[e]);return useMemo(()=>{let t=n("default");return t.success=n("success"),t.error=n("error"),t.loading=n("loading"),t.custom=n("custom"),t.dismiss=o=>{e({action:"dismiss",variant:"dismiss",toastId:o});},t.remove=o=>{e({action:"remove",variant:"remove",toastId:o});},t},[n,e])}var se=10;function ut({threshold:e=se,containerRef:n}={}){let[t,o]=useState(true),[s,r]=useState(false),[i,c]=useState(false),m=useCallback(a=>{let{scrollTop:p,scrollHeight:l,clientHeight:d}=a;c(l>d+e),o(p<=e),r(l-(p+d)<=e);},[e]),u=useCallback(a=>{if(a){if("currentTarget"in a){m(a.currentTarget);return}m(a);}},[m]);return useEffect(()=>{if(!n?.current)return;let a=n.current;u(a);let p=new ResizeObserver(()=>{u(a);});return p.observe(a),()=>{p.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:s,scrollable:i}}var mt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:s=5e3}=e,r=typeof window<"u"&&typeof navigator<"u",[i,c]=useState(r?navigator.onLine:true),[m,u]=useState(false),[a,p]=useState(null),l=useRef(null),d=useRef(null),g=useCallback(f=>{l.current!==null&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{c(f),l.current=null;},o);},[o]);return useEffect(()=>{if(!r)return;let f=null,v=()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null);},w=async()=>{u(true),p(null),f?.abort(),f=new AbortController;try{let C=window.setTimeout(()=>{f?.abort();},s),x=await fetch(n,{method:"GET",cache:"no-store",signal:f.signal});window.clearTimeout(C);let A=x.ok;g(A),A?v():p(`Health check failed with status ${x.status}`);}catch{g(false),p("Unable to reach network");}finally{u(false);}},h=()=>{v(),g(true);},E=()=>{g(false),v(),w(),d.current=window.setInterval(w,t);};return window.addEventListener("online",h),window.addEventListener("offline",E),navigator.onLine||(w(),d.current=window.setInterval(w,t)),()=>{window.removeEventListener("online",h),window.removeEventListener("offline",E),l.current!==null&&window.clearTimeout(l.current),v(),f?.abort();}},[r,n,t,o,s,g]),r?{isOnline:i,isChecking:m,error:a}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var gt=(e={},n,t)=>{let o=Ec(e,t.requiredFilterKeys);return {columns:useMemo(()=>Fc(n,o,t),[n,o])}};function Et(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}export{me as a,fe as b,we as c,Ce as d,ye as e,Le as f,De as g,Ge as h,Pe as i,We as j,Je as k,R as l,Qe as m,tt as n,st as o,ut as p,mt as q,gt as r,Et as s};
@@ -1 +1 @@
1
- import {a}from'./chunk-UPH4OINU.js';import {Jc,ob}from'./chunk-25IWFELL.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=Jc(useId(),"progress-ring"),m=t==null||t==="",F=ob(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};
1
+ import {a}from'./chunk-VRMS7VG4.js';import {Jc,ob}from'./chunk-ATSYOVOS.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=Jc(useId(),"progress-ring"),m=t==null||t==="",F=ob(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};
@@ -1,2 +1,2 @@
1
- import {Jc}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import {Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import W from'@mui/material/Accordion';import $ from'@mui/material/AccordionDetails';import T from'@mui/material/AccordionSummary';import {styled}from'@mui/material/styles';function f({sx:o}){return jsx(Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)",...o},children:jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})})})}f.displayName="AccordionExpandIcon";var i=memo(f);var A="#f2f2f2",G="#fbfbfb",u=styled(W)(({theme:o})=>({overflow:"hidden",border:`1px solid ${A}`,borderWidth:1,borderRadius:o.shape.borderRadius,margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0}})),g=styled(T)(()=>({background:G,minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),h=styled($)(()=>({padding:0,borderTop:`1px solid ${A}`}));function C({expanded:o,onChange:I,label:w,content:S,labelStartAdornment:a,labelEndAdornment:p,slotProps:r={},disabled:L=false,expandIcon:B}){let e=Jc(useId()),E=`accordion-${e}`,l=`accordion-content-${e}`,s=`accordion-label-${e}`,{showArrow:m,...P}=r?.label??{},R=m===true||m===void 0,k=jsxs(Fragment,{children:[a!=null&&jsx(Box,{component:"span",sx:{flexShrink:0},children:a}),jsx(Box,{component:"span",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:w}),p!=null&&jsx(Box,{component:"span",sx:{flexShrink:0,marginLeft:"auto"},children:p})]}),v=B??(R?jsx(i,{}):null);return jsxs(u,{id:E,"data-testid":"Accordion",disabled:L,expanded:o,onChange:()=>I(!o),...r.root,children:[jsx(g,{"aria-controls":l,"aria-expanded":o,expandIcon:v,id:s,...P,children:k}),jsx(h,{id:l,role:"region","aria-labelledby":s,...r.content,children:S})]})}C.displayName="Accordion";var b=memo(C);var io=b;
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import {Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import W from'@mui/material/Accordion';import $ from'@mui/material/AccordionDetails';import T from'@mui/material/AccordionSummary';import {styled}from'@mui/material/styles';function f({sx:o}){return jsx(Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)",...o},children:jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})})})}f.displayName="AccordionExpandIcon";var i=memo(f);var A="#f2f2f2",G="#fbfbfb",u=styled(W)(({theme:o})=>({overflow:"hidden",border:`1px solid ${A}`,borderWidth:1,borderRadius:o.shape.borderRadius,margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0}})),g=styled(T)(()=>({background:G,minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),h=styled($)(()=>({padding:0,borderTop:`1px solid ${A}`}));function C({expanded:o,onChange:I,label:w,content:S,labelStartAdornment:a,labelEndAdornment:p,slotProps:r={},disabled:L=false,expandIcon:B}){let e=Jc(useId()),E=`accordion-${e}`,l=`accordion-content-${e}`,s=`accordion-label-${e}`,{showArrow:m,...P}=r?.label??{},R=m===true||m===void 0,k=jsxs(Fragment,{children:[a!=null&&jsx(Box,{component:"span",sx:{flexShrink:0},children:a}),jsx(Box,{component:"span",sx:{minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},children:w}),p!=null&&jsx(Box,{component:"span",sx:{flexShrink:0,marginLeft:"auto"},children:p})]}),v=B??(R?jsx(i,{}):null);return jsxs(u,{id:E,"data-testid":"Accordion",disabled:L,expanded:o,onChange:()=>I(!o),...r.root,children:[jsx(g,{"aria-controls":l,"aria-expanded":o,expandIcon:v,id:s,...P,children:k}),jsx(h,{id:l,role:"region","aria-labelledby":s,...r.content,children:S})]})}C.displayName="Accordion";var b=memo(C);var io=b;
2
2
  export{i as a,io as b};
@@ -1 +1 @@
1
- import {b}from'./chunk-JHBGSF4J.js';import {Jc}from'./chunk-25IWFELL.js';import {pe}from'./chunk-3JUTMTQV.js';import {useId}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=({text:t,startLength:r=8,endLength:d=4,chipIndex:a,copyText:i,selectionProps:m})=>{let n=Jc(useId(),"masked-text"),c=t.slice(0,r),x=t.slice(t.length-d);return jsxs(b,{id:n,"data-testid":"MaskedText",chipIndex:a,copyText:i,selectionProps:m,children:[c,jsx("img",{src:pe,alt:"passwordDots"}),x]})},p=T;var g=p;export{g as a};
1
+ import {b}from'./chunk-P37RYOJW.js';import {Jc}from'./chunk-ATSYOVOS.js';import {pe}from'./chunk-3JUTMTQV.js';import {useId}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=({text:t,startLength:r=8,endLength:d=4,chipIndex:a,copyText:i,selectionProps:m})=>{let n=Jc(useId(),"masked-text"),c=t.slice(0,r),x=t.slice(t.length-d);return jsxs(b,{id:n,"data-testid":"MaskedText",chipIndex:a,copyText:i,selectionProps:m,children:[c,jsx("img",{src:pe,alt:"passwordDots"}),x]})},p=T;var g=p;export{g as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-25IWFELL.js';import {Xn,Wn}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function p(o){let m=Jc(useId(),"checkbox");return jsx(Checkbox,{id:m,"data-testid":"Checkbox",disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"16px !important",height:"16px !important"}}),checkedIcon:o.disabled?Xn:Wn,...o})}p.displayName="CheckboxInput";var d=memo(p);var u=d;export{u as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {Xn,Wn}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import {Checkbox}from'@mui/material';import {jsx}from'react/jsx-runtime';function p(o){let m=Jc(useId(),"checkbox");return jsx(Checkbox,{id:m,"data-testid":"Checkbox",disableRipple:true,sx:r=>({'[data-testid="IndeterminateCheckBoxIcon"]':{fill:r.palette.info.dark,width:"16px !important",height:"16px !important"}}),checkedIcon:o.disabled?Xn:Wn,...o})}p.displayName="CheckboxInput";var d=memo(p);var u=d;export{u as a};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-GNY2VGGW.js';import {r}from'./chunk-25IWFELL.js';import F from'react';import {useTranslation}from'react-i18next';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var y="37px",f=styled(a,{shouldForwardProp:o=>o!=="showBackDrop"&&o!=="areTotalRowsNotFillingHeight"&&o!=="sandboxMode"&&o!=="maximized"})(({theme:o,showBackDrop:i,areTotalRowsNotFillingHeight:r,sandboxMode:n,maximized:p})=>({minHeight:y,...!p&&{borderBottomLeftRadius:o.spacing(1.5),borderBottomRightRadius:o.spacing(1.5)},display:"flex",alignItems:"center",border:"none",justifyContent:"space-between",padding:"6px 32px",background:n?o.palette.common.lightOrange:o.palette.grey[300],backdropFilter:"blur(32px)",boxShadow:i?o.shadows[24]:"none",borderTop:r?`1px outset ${o.palette.grey[800]}`:"none",width:"100%",marginTop:"auto",flexShrink:0,cursor:"move"})),u=styled("div")(({theme:o})=>({position:"absolute",top:0,left:0,right:0,height:"1.5px",backgroundColor:o.palette.grey[300],boxShadow:`inset 0 1px 0 0 ${o.palette.grey[300]}`})),d=styled(a)(({theme:o})=>({borderRadius:"37.5px",border:"0.75px solid rgba(242, 242, 242, 0.70)",backgroundColor:o.palette.common.white,opacity:1,paddingInline:o.spacing(1),display:"flex",alignItems:"center",height:24,gap:"7px",maxWidth:"max-content"})),x=styled(a$1)(()=>({fontSize:"9px",fontWeight:400,lineHeight:"10.8px"})),g=styled(a$1)(()=>({fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px"}));styled(a)(()=>({display:"flex",gap:"3px",alignItems:"center"}));styled(a)(()=>({display:"flex",gap:"6px"}));styled("span")(()=>({fontWeight:400}));function R({totalCount:o,showBackDrop:i=false,showSeparator:r$1,sandboxMode:n,maximized:p,selectedCount:m,...T}){let{t:b}=useTranslation();return jsxs(f,{component:"footer","data-testid":"TableFooter",maximized:p??false,sandboxMode:n,showBackDrop:i,areTotalRowsNotFillingHeight:!!r$1,...T,children:[r$1&&jsx(u,{}),m?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("selected")}),jsx(g,{children:r(m)})]}):null,o||o===0?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("count")}),jsx(g,{children:r(o||0)})]}):null]})}var h=F.memo(R);var M=h;export{y as a,h as b,M as c};
1
+ import {a as a$1}from'./chunk-GNY2VGGW.js';import {r}from'./chunk-ATSYOVOS.js';import F from'react';import {useTranslation}from'react-i18next';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var y="37px",f=styled(a,{shouldForwardProp:o=>o!=="showBackDrop"&&o!=="areTotalRowsNotFillingHeight"&&o!=="sandboxMode"&&o!=="maximized"})(({theme:o,showBackDrop:i,areTotalRowsNotFillingHeight:r,sandboxMode:n,maximized:p})=>({minHeight:y,...!p&&{borderBottomLeftRadius:o.spacing(1.5),borderBottomRightRadius:o.spacing(1.5)},display:"flex",alignItems:"center",border:"none",justifyContent:"space-between",padding:"6px 32px",background:n?o.palette.common.lightOrange:o.palette.grey[300],backdropFilter:"blur(32px)",boxShadow:i?o.shadows[24]:"none",borderTop:r?`1px outset ${o.palette.grey[800]}`:"none",width:"100%",marginTop:"auto",flexShrink:0,cursor:"move"})),u=styled("div")(({theme:o})=>({position:"absolute",top:0,left:0,right:0,height:"1.5px",backgroundColor:o.palette.grey[300],boxShadow:`inset 0 1px 0 0 ${o.palette.grey[300]}`})),d=styled(a)(({theme:o})=>({borderRadius:"37.5px",border:"0.75px solid rgba(242, 242, 242, 0.70)",backgroundColor:o.palette.common.white,opacity:1,paddingInline:o.spacing(1),display:"flex",alignItems:"center",height:24,gap:"7px",maxWidth:"max-content"})),x=styled(a$1)(()=>({fontSize:"9px",fontWeight:400,lineHeight:"10.8px"})),g=styled(a$1)(()=>({fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px"}));styled(a)(()=>({display:"flex",gap:"3px",alignItems:"center"}));styled(a)(()=>({display:"flex",gap:"6px"}));styled("span")(()=>({fontWeight:400}));function R({totalCount:o,showBackDrop:i=false,showSeparator:r$1,sandboxMode:n,maximized:p,selectedCount:m,...T}){let{t:b}=useTranslation();return jsxs(f,{component:"footer","data-testid":"TableFooter",maximized:p??false,sandboxMode:n,showBackDrop:i,areTotalRowsNotFillingHeight:!!r$1,...T,children:[r$1&&jsx(u,{}),m?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("selected")}),jsx(g,{children:r(m)})]}):null,o||o===0?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("count")}),jsx(g,{children:r(o||0)})]}):null]})}var h=F.memo(R);var M=h;export{y as a,h as b,M as c};
@@ -1 +1 @@
1
- import {a}from'./chunk-UPH4OINU.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import i from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(i)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gridTemplateRows:`repeat(${e}, 1fr)`,gap:"6px"})),g=styled(i)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0"})),$=styled(i)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),M=styled(g)(()=>({fontSize:"9px"})),O=styled(i)(()=>({display:"flex",flexDirection:"row",gap:"10px",padding:"22px 12px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:m,tooltip:l}){let s=Jc(useId(),"heat-map"),c=e.labels,d=t.labels;return jsxs(O,{id:s,"data-testid":"HeatMap",children:[jsxs(u,{rows:d.length,columns:1,children:[jsx("span",{}),d.map((r,o)=>jsx(M,{sx:{minWidth:"25px"},children:t.render?t.render(r):r},`${o}-${r}`))]}),jsxs(u,{rows:d.length,columns:c.length,children:[c.map((r,o)=>jsx(g,{children:e.render?e.render(r):r},`${o}-${r}`)),d.map(r=>c.map((o,h)=>{if(m)return jsx(a,{variant:"rectangular",width:"24px",height:"8px"},`${o}-${h}`);let f=n?.[o]?.[r]??{};return jsx(a$1,{title:l?.render&&f?.value?l.render(f,o,r):null,children:jsx($,{percentage:f?.colorOpacityDegree})},`${o}-${h}`)}))]})]})}var k=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let m=n-t,l=(e-t)/m,s=Math.floor(l*10);return k[Math.max(0,Math.min(10,s))]}var B=x;export{D as a,B as b};
1
+ import {a}from'./chunk-VRMS7VG4.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-ATSYOVOS.js';import {useId}from'react';import i from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(i)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gridTemplateRows:`repeat(${e}, 1fr)`,gap:"6px"})),g=styled(i)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0"})),$=styled(i)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),M=styled(g)(()=>({fontSize:"9px"})),O=styled(i)(()=>({display:"flex",flexDirection:"row",gap:"10px",padding:"22px 12px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:m,tooltip:l}){let s=Jc(useId(),"heat-map"),c=e.labels,d=t.labels;return jsxs(O,{id:s,"data-testid":"HeatMap",children:[jsxs(u,{rows:d.length,columns:1,children:[jsx("span",{}),d.map((r,o)=>jsx(M,{sx:{minWidth:"25px"},children:t.render?t.render(r):r},`${o}-${r}`))]}),jsxs(u,{rows:d.length,columns:c.length,children:[c.map((r,o)=>jsx(g,{children:e.render?e.render(r):r},`${o}-${r}`)),d.map(r=>c.map((o,h)=>{if(m)return jsx(a,{variant:"rectangular",width:"24px",height:"8px"},`${o}-${h}`);let f=n?.[o]?.[r]??{};return jsx(a$1,{title:l?.render&&f?.value?l.render(f,o,r):null,children:jsx($,{percentage:f?.colorOpacityDegree})},`${o}-${h}`)}))]})]})}var k=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let m=n-t,l=(e-t)/m,s=Math.floor(l*10);return k[Math.max(0,Math.min(10,s))]}var B=x;export{D as a,B as b};
@@ -1 +1 @@
1
- import'./chunk-SJ6HXWDZ.js';import {b as b$1}from'./chunk-3MZJFU75.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useId,useState,useEffect}from'react';import d from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var s="32px";var f=styled(d,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:r})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:r?s:"16px",height:"100%",overflow:"auto"})),b=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),g=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:r?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),S=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function H({sections:e,isMaximized:r,onClick:x,activeSection:h,activeSubSection:E}){let A=Jc(useId(),"expandable-side-bar"),i=h||e?.[0]?.id,k=E||e?.[0]?.subSections?.[0]?.id,[I,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,a={...t};for(let l of e)l.id in a||(a[l.id]=i===l.id,o=true);return o?a:t});},[e,i]),useEffect(()=>{i&&c(t=>({...t,[i]:true}));},[i]),jsx(f,{isMaximized:r,id:A,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(b$1,{expanded:I[t.id]??false,onChange:o=>c(a=>({...a,[t.id]:o})),label:jsx(S,{onClick:()=>{x?.(t.id,t.subSections?.[0]?.id);},isActive:i===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(g,{onClick:()=>{x?.(t.id,o.id);},isActive:k===o.id,children:o.title},`${t.id}-${o.id}`))}),slotProps:{root:{component:"section",sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}}},label:{sx:{padding:0,paddingRight:1,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}}},content:{sx:{borderTop:"none",padding:0}}}},`${t.id}`))})})}var B=memo(H);var K=B;export{K as a};
1
+ import'./chunk-V4REQ4ZP.js';import {b as b$1}from'./chunk-D6CBA46N.js';import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId,useState,useEffect}from'react';import d from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var s="32px";var f=styled(d,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:r})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:r?s:"16px",height:"100%",overflow:"auto"})),b=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),g=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:r?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),S=styled(d,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:r})=>({background:r?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function H({sections:e,isMaximized:r,onClick:x,activeSection:h,activeSubSection:E}){let A=Jc(useId(),"expandable-side-bar"),i=h||e?.[0]?.id,k=E||e?.[0]?.subSections?.[0]?.id,[I,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,a={...t};for(let l of e)l.id in a||(a[l.id]=i===l.id,o=true);return o?a:t});},[e,i]),useEffect(()=>{i&&c(t=>({...t,[i]:true}));},[i]),jsx(f,{isMaximized:r,id:A,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(b$1,{expanded:I[t.id]??false,onChange:o=>c(a=>({...a,[t.id]:o})),label:jsx(S,{onClick:()=>{x?.(t.id,t.subSections?.[0]?.id);},isActive:i===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(g,{onClick:()=>{x?.(t.id,o.id);},isActive:k===o.id,children:o.title},`${t.id}-${o.id}`))}),slotProps:{root:{component:"section",sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}}},label:{sx:{padding:0,paddingRight:1,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}}},content:{sx:{borderTop:"none",padding:0}}}},`${t.id}`))})})}var B=memo(H);var K=B;export{K as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-25IWFELL.js';import {kb}from'./chunk-3JUTMTQV.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Jc(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:kb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
1
+ import {a}from'./chunk-KHM5KW53.js';import {Jc,q}from'./chunk-ATSYOVOS.js';import {kb}from'./chunk-3JUTMTQV.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useId}from'react';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var c=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(c||{});var I=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,x=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,E=new Map([["compact",.5],["round",0],["normal",2]]),d=styled("span")(({theme:e,variant:t,compact:r,round:n,pointer:C})=>({padding:r?"0.08031rem 0.16056rem":n?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(E.get(n?"round":r?"compact":"normal")||2),backgroundColor:I(t,e),color:x(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:C?"pointer":"auto"}));d.displayName="CountBadge";var u=d;var A=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),p=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),f=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function N({totalPaymentsCount:e,index:t}){let r=Jc(useId(),"count-animated-badge"),{t:n}=useTranslation();return jsx(a,{title:n("totalPaymentCount",{amount:q(e)}),children:jsx(A,{id:r,order:t,variants:p(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(f,{children:[jsx("img",{src:kb,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var _=u;export{c as a,A as b,p as c,N as d,_ as e};
@@ -1 +1 @@
1
- import {a as a$4}from'./chunk-ANJRT2B4.js';import {a as a$3}from'./chunk-IQGGEFTS.js';import {j,a as a$5}from'./chunk-3MIQWQQL.js';import {a}from'./chunk-CRGXVUQV.js';import {a as a$1}from'./chunk-YDPDHWVC.js';import {a as a$2}from'./chunk-DSFHY45V.js';import {wc,Jc,y}from'./chunk-25IWFELL.js';import {Sc,Tc,Ni,Oi,Pi,bc,cc,Qi,jn,ac}from'./chunk-3JUTMTQV.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import Rt from'@mui/material/Collapse';import xt from'@mui/material/Popper';import Pt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import No from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import et from'react-date-object/calendars/arabic';import ot from'react-date-object/calendars/gregorian';import tt from'react-date-object/locales/arabic_ar';import rt from'react-date-object/locales/arabic_en';import nt from'react-date-object/locales/gregorian_ar';import it from'react-date-object/locales/gregorian_en';var Ue=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ne=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),Ke=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),_e=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Ze={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function _o({sx:e,groupBy:o,isCalenderOpen:a$1,onUpdate:t}){let[n,p]=useState(null),l=!!n&&a$1,{t:m}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},s=d=>{t?.(d),c();};return jsx(No,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ue,{children:m("groupedBy")}),jsxs(Ne,{onClick:u,open:l,children:[jsx("span",{children:Ze[o]}),jsx(S,{component:"img",src:Tc,alt:"arrow",sx:{...l&&{transform:"rotate(180deg)"}}})]}),jsx(a,{open:l,anchorEl:n,children:jsx(Ke,{sx:{width:n?.clientWidth},children:Object.entries(Ze).map(([d,i])=>jsx(_e,{onClick:()=>{s(d);},className:o===d?"active":"",children:i},`${d}-groupedBy`))})})]})})}var Xe=memo(_o);var Ve=Xe;var eo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function le({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(eo,{children:[jsxs(S,{children:[jsx("img",{src:ac,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(a$4,{checked:e,onChange:t})]})})}var ro=le;var io=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),ao=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var Z=({isHijri:e,isAr:o=false})=>e?o?tt:rt:o?nt:it,J=e=>e?et:ot,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),X=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o,a]=y();return [new q(o),new q(a)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:a=false}){let t={locale:Z({isHijri:o,isAr:a}),calendar:J(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,a]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(ao,{children:n.map(l=>jsx(io,{onClick:m=>{m.preventDefault(),e(l.value);},children:p(l.id)},l.id))})})}var po=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ut=["Su","Mo","Tu","We","Th","Fr","Sa"];function ft({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:n=2,...p},l){let m=c=>c==="right"?e?bc:cc:e?cc:bc;return jsx(Calendar,{ref:l,numberOfMonths:n,value:a,onChange:t,calendar:J(o),locale:Z({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:m(c),alt:"arrow"})}),weekDays:e?void 0:ut,maxDate:new Date,...p})}var lo=forwardRef(ft);var mo=lo;var co=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),uo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),W=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:a,defaultCountryTimezone:t}){let[n,p]=useState(null),l=i=>{n||p(i.currentTarget);},m=()=>{n&&p(null);},c=(i,D)=>{i.stopPropagation(),o(D);},u=useMemo(()=>a?.map(i=>wc(i)),[a]),s=useMemo(()=>u?.some(i=>e?.timezone===i?.timezone),[u,e]),d=useMemo(()=>e&&s?e:t,[e,t,s]);return jsxs(L,{onMouseEnter:l,onMouseLeave:m,onClick:()=>{e&&o(d);},children:[s?jsx("img",{src:Qi,alt:"icon"}):jsx(A,{}),jsx("img",{src:Oi,alt:"entity-timezone"}),jsx(a$1,{countryCode:d?.countryCode}),jsx(W,{className:s?"selected":"",children:s?e?.label:t?.label}),jsx(xt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((i,D)=>{let j=i?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,i);},sx:{gap:"4px"},children:[j?jsx("img",{src:Qi,alt:"icon"}):jsx(A,{}),jsx(a$1,{countryCode:i?.countryCode}),jsx(W,{className:j?"selected":"",children:i?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:a}){let t=useMemo(()=>jn.find(({timezone:l})=>l===a),[a]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Qi,alt:"icon"}):jsx(A,{}),jsx("img",{src:Ni,alt:"user-timezone"}),jsx(a$1,{countryCode:t?.countryCode}),jsx(W,{className:p?"selected":"",children:t?.label})]})}function zt({onChange:e,selectedTimezone:o,browserTimezone:a,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,l]=useState(null),m=!!p,c=()=>{l(null);},u=i=>{e(i),c();},s=i=>{l(i.currentTarget);},d=useMemo(()=>a===o?.timezone?Ni:o?.timezone===t.timezone?Oi:Pi,[a,t.timezone,o?.timezone]);return jsx(No,{onClickAway:c,children:jsxs(co,{"data-testid":"CustomTimezone",children:[jsxs(uo,{open:m,onClick:s,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a$1,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(xt,{open:m,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:a})]})})]})})}var go=memo(zt);var xo=go;var bo=styled(S)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),ho=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),wo=styled(S)(()=>({display:"flex",gap:8})),Co=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),To=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),ko=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),zo=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),So=styled(S)(()=>({position:"relative"})),vo=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Do=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Mo=styled(S)(()=>({width:235})),Bo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Sc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Dt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,l]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),m=({period:s,hour:d})=>s==="PM"&&d!==12?d+12:s==="AM"&&d===12?0:d,c=({hour:s,minute:d,period:i})=>{o([t.setHour(m({hour:s,period:i})).setMinute(d).setSecond(0),n]);},u=({hour:s,minute:d,period:i})=>{o([t,n.setHour(m({hour:s,period:i})).setMinute(d).setSecond(59)]);};return jsx(Mo,{children:jsxs(Eo,{children:[jsxs(Do,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(a$4,{checked:p,onChange:s=>{l(!p),s.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Bo,{children:[jsx(j,{defaultTime:{hour:a$5(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$5(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Ro=Dt;var Io=Ro;function At({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:l,maxDateRange:m,onCalendarGroupChange:c,groupBy:u,timezone:s,onChangeTimezone:d,browserTimezone:i,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Ao,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(X(e)),[x,C]=useState(w),[ze,Se]=useState(s??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),I=useRef(null),Fo=Jc(useId(),"range-calender"),ne=a==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(X(e));}},[y]),useEffect(()=>{if(e){let r=X(e);ke(r),C(r),I.current&&I.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(s??null);},[s,y]);let Re=()=>{ke(x),Y();let r;x[0].dayOfYear===x[1].dayOfYear?r=[x[0],x[1]]:r=[M(x[0]),B(x[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},Ho=useCallback(()=>{let r=w[0].format("MMM D"),G=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===G&&!p?r:`${r} - ${G}`},[w,p]),jo=r=>{if(r.length<2||!m){C(r);return}let G=M(r[0]).toDate(),$o=B(r[1]).toDate(),Ie=Pt($o).diff(G,"day");if(Ie<=m){C(r);return}Ee(true),C([r[0],r[1].subtract(Ie-m,"d")]),setTimeout(()=>{Ee(false);},3e3);},Yo=r=>{C([M(r[0]),B(r[1])]),I.current&&I.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(So,{id:Fo,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(Co,{onClick:Oe,open:y,children:(w[0]||w[1])&&Ho()}),y&&jsx(a$2,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(xt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(bo,{onKeyDown:Go,children:[!l&&jsxs(ko,{children:[jsx(po,{onChange:Yo,isHijri:ne}),jsxs(vo,{children:[u&&jsx(Ve,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(ro,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(mo,{values:x,onChange:jo,isHijri:ne,ref:I,numberOfMonths:n,...Ao}),jsx(Rt,{in:Be&&!!m,children:jsx(a$3,{error:re("dateRangeError",{number:m}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(To,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&i&&Te?jsx(zo,{children:jsx(xo,{onChange:Se,selectedTimezone:ze,browserTimezone:i,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}):jsx("div",{}),new DateObject(x[0]).dayOfYear===new DateObject(x[1]).dayOfYear&&jsx(Io,{values:x,setValues:C}),jsxs(wo,{children:[jsx(ho,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(yo,{variant:"contained",onClick:Re,disabled:!x[1],children:re("okay")})]})]})]})]})})]})}var Lo=At;var xi=Lo;export{xi as a};
1
+ import {a as a$4}from'./chunk-AWJMELRN.js';import {a as a$3}from'./chunk-2ZQWIYKE.js';import {j,a as a$5}from'./chunk-JPSWQQN6.js';import {a}from'./chunk-MEWGN3RQ.js';import {a as a$1}from'./chunk-JKOFVMQP.js';import {a as a$2}from'./chunk-WL4B2ZSK.js';import {wc,Jc,y}from'./chunk-ATSYOVOS.js';import {Sc,Tc,Ni,Oi,Pi,bc,cc,Qi,jn,ac}from'./chunk-3JUTMTQV.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import S from'@mui/material/Box';import Rt from'@mui/material/Collapse';import xt from'@mui/material/Popper';import Pt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import No from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import he from'@mui/material/Button';import q from'react-date-object';import et from'react-date-object/calendars/arabic';import ot from'react-date-object/calendars/gregorian';import tt from'react-date-object/locales/arabic_ar';import rt from'react-date-object/locales/arabic_en';import nt from'react-date-object/locales/gregorian_ar';import it from'react-date-object/locales/gregorian_en';var Ue=styled(S)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ne=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),Ke=styled(S)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),_e=styled(S)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var Ze={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function _o({sx:e,groupBy:o,isCalenderOpen:a$1,onUpdate:t}){let[n,p]=useState(null),l=!!n&&a$1,{t:m}=useTranslation(),c=()=>{p(null);},u=d=>{p(d.currentTarget);},s=d=>{t?.(d),c();};return jsx(No,{onClickAway:c,children:jsxs(S,{sx:e,children:[jsx(Ue,{children:m("groupedBy")}),jsxs(Ne,{onClick:u,open:l,children:[jsx("span",{children:Ze[o]}),jsx(S,{component:"img",src:Tc,alt:"arrow",sx:{...l&&{transform:"rotate(180deg)"}}})]}),jsx(a,{open:l,anchorEl:n,children:jsx(Ke,{sx:{width:n?.clientWidth},children:Object.entries(Ze).map(([d,i])=>jsx(_e,{onClick:()=>{s(d);},className:o===d?"active":"",children:i},`${d}-groupedBy`))})})]})})}var Xe=memo(_o);var Ve=Xe;var eo=styled(S)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function le({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(S,{children:jsxs(eo,{children:[jsxs(S,{children:[jsx("img",{src:ac,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(a$4,{checked:e,onChange:t})]})})}var ro=le;var io=styled(he)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),ao=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var Z=({isHijri:e,isAr:o=false})=>e?o?tt:rt:o?nt:it,J=e=>e?et:ot,M=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),B=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),X=e=>{if(!(e?.[0]instanceof Date)||!(e?.[1]instanceof Date)){let[o,a]=y();return [new q(o),new q(a)]}return [new q(e?.[0]),new q(e?.[1])]};function ce({onChange:e,isHijri:o,isAr:a=false}){let t={locale:Z({isHijri:o,isAr:a}),calendar:J(o)},n=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,a]),{t:p}=useTranslation();return jsx(S,{"data-testid":"RangeCalender_QuickFilters",children:jsx(ao,{children:n.map(l=>jsx(io,{onClick:m=>{m.preventDefault(),e(l.value);},children:p(l.id)},l.id))})})}var po=ce;var so=styled(he)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var ut=["Su","Mo","Tu","We","Th","Fr","Sa"];function ft({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:n=2,...p},l){let m=c=>c==="right"?e?bc:cc:e?cc:bc;return jsx(Calendar,{ref:l,numberOfMonths:n,value:a,onChange:t,calendar:J(o),locale:Z({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(so,{onClick:u,children:jsx("img",{src:m(c),alt:"arrow"})}),weekDays:e?void 0:ut,maxDate:new Date,...p})}var lo=forwardRef(ft);var mo=lo;var co=styled(S)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),V=styled(S)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),uo=styled(S,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),L=styled(S)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),A=styled(S)(()=>({width:12,height:12})),W=styled(S)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function ge({selectedTimezone:e,onChange:o,timezoneCountriesCodes:a,defaultCountryTimezone:t}){let[n,p]=useState(null),l=i=>{n||p(i.currentTarget);},m=()=>{n&&p(null);},c=(i,D)=>{i.stopPropagation(),o(D);},u=useMemo(()=>a?.map(i=>wc(i)),[a]),s=useMemo(()=>u?.some(i=>e?.timezone===i?.timezone),[u,e]),d=useMemo(()=>e&&s?e:t,[e,t,s]);return jsxs(L,{onMouseEnter:l,onMouseLeave:m,onClick:()=>{e&&o(d);},children:[s?jsx("img",{src:Qi,alt:"icon"}):jsx(A,{}),jsx("img",{src:Oi,alt:"entity-timezone"}),jsx(a$1,{countryCode:d?.countryCode}),jsx(W,{className:s?"selected":"",children:s?e?.label:t?.label}),jsx(xt,{open:!!n,anchorEl:n,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(V,{sx:{maxHeight:300},children:u?.map((i,D)=>{let j=i?.timezone===e?.timezone;return jsxs(L,{onClick:te=>{c(te,i);},sx:{gap:"4px"},children:[j?jsx("img",{src:Qi,alt:"icon"}):jsx(A,{}),jsx(a$1,{countryCode:i?.countryCode}),jsx(W,{className:j?"selected":"",children:i?.label})]},`timezone-item-${D}`)})})})]})}function xe({onChange:e,selectedTimezone:o,browserTimezone:a}){let t=useMemo(()=>jn.find(({timezone:l})=>l===a),[a]),n=()=>{t&&e(t);},p=t?.timezone===o?.timezone;return jsxs(L,{onClick:n,children:[p?jsx("img",{src:Qi,alt:"icon"}):jsx(A,{}),jsx("img",{src:Ni,alt:"user-timezone"}),jsx(a$1,{countryCode:t?.countryCode}),jsx(W,{className:p?"selected":"",children:t?.label})]})}function zt({onChange:e,selectedTimezone:o,browserTimezone:a,defaultCountryTimezone:t,timezoneCountriesCodes:n}){let[p,l]=useState(null),m=!!p,c=()=>{l(null);},u=i=>{e(i),c();},s=i=>{l(i.currentTarget);},d=useMemo(()=>a===o?.timezone?Ni:o?.timezone===t.timezone?Oi:Pi,[a,t.timezone,o?.timezone]);return jsx(No,{onClickAway:c,children:jsxs(co,{"data-testid":"CustomTimezone",children:[jsxs(uo,{open:m,onClick:s,children:[jsx("img",{src:d,alt:"timezone-icon"}),jsx(a$1,{countryCode:o?.countryCode}),jsx("span",{children:o?.label})]}),jsx(xt,{open:m,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(V,{"data-testid":"CustomTimezone_dropdown",children:[jsx(ge,{onChange:u,selectedTimezone:o,defaultCountryTimezone:t,timezoneCountriesCodes:n}),jsx(xe,{onChange:u,selectedTimezone:o,browserTimezone:a})]})})]})})}var go=memo(zt);var xo=go;var bo=styled(S)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),ho=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),yo=styled(he)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),wo=styled(S)(()=>({display:"flex",gap:8})),Co=styled(he,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),To=styled(S)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),ko=styled(S)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),zo=styled(S)(()=>({display:"flex",alignItems:"center",gap:"10px"})),So=styled(S)(()=>({position:"relative"})),vo=styled(S)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Do=styled(S,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Mo=styled(S)(()=>({width:235})),Bo=styled(S)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Sc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Eo=styled(S)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Dt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),n=new DateObject(e[1]),[p,l]=useState(t.dayOfYear===n.dayOfYear&&t.hour===0&&t.minute===0&&n.hour===23&&n.minute===59),m=({period:s,hour:d})=>s==="PM"&&d!==12?d+12:s==="AM"&&d===12?0:d,c=({hour:s,minute:d,period:i})=>{o([t.setHour(m({hour:s,period:i})).setMinute(d).setSecond(0),n]);},u=({hour:s,minute:d,period:i})=>{o([t,n.setHour(m({hour:s,period:i})).setMinute(d).setSecond(59)]);};return jsx(Mo,{children:jsxs(Eo,{children:[jsxs(Do,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(a$4,{checked:p,onChange:s=>{l(!p),s.target.checked?o([M(e[0]),B(e[1])]):o(e);}})]}),!p&&jsxs(Bo,{children:[jsx(j,{defaultTime:{hour:a$5(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j,{defaultTime:{hour:a$5(n.hour),minute:n.minute,period:n.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Ro=Dt;var Io=Ro;function At({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:n,noTimezone:p,noQuickFilter:l,maxDateRange:m,onCalendarGroupChange:c,groupBy:u,timezone:s,onChangeTimezone:d,browserTimezone:i,renderCalendarButton:D,mainSx:j,popperProps:te,rangeDatePickerProps:Ao,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te}){let[w,ke]=useState(X(e)),[x,C]=useState(w),[ze,Se]=useState(s??null),[ve,Wo]=useState(u||"day"),[De,Me]=useState(null),y=!!De,[Be,Ee]=useState(false),{t:re}=useTranslation(),I=useRef(null),Fo=Jc(useId(),"range-calender"),ne=a==="hijri",Y=()=>{Me(null);},Oe=r=>{Me(r.currentTarget);};useEffect(()=>{if(!y){if(n===1)return;C(X(e));}},[y]),useEffect(()=>{if(e){let r=X(e);ke(r),C(r),I.current&&I.current.set("date",r[0]);}},[e]),useEffect(()=>{Se(s??null);},[s,y]);let Re=()=>{ke(x),Y();let r;x[0].dayOfYear===x[1].dayOfYear?r=[x[0],x[1]]:r=[M(x[0]),B(x[1])],o([r[0].toDate(),r[1].toDate()]),c?.(ve||"day"),d?.(ze);},Ho=useCallback(()=>{let r=w[0].format("MMM D"),G=w[1]?w[1].format("MMM D"):w[0].format("MMM D");return r===G&&!p?r:`${r} - ${G}`},[w,p]),jo=r=>{if(r.length<2||!m){C(r);return}let G=M(r[0]).toDate(),$o=B(r[1]).toDate(),Ie=Pt($o).diff(G,"day");if(Ie<=m){C(r);return}Ee(true),C([r[0],r[1].subtract(Ie-m,"d")]),setTimeout(()=>{Ee(false);},3e3);},Yo=r=>{C([M(r[0]),B(r[1])]),I.current&&I.current.set("date",r[0]);},Go=r=>{r.key==="Enter"&&x[1]&&!Be?(r.stopPropagation(),Re()):r.key==="Escape"&&(r.stopPropagation(),Y());};return jsxs(So,{id:Fo,"data-testid":"RangeCalender",sx:j,children:[D?D(y,Oe):jsx(Co,{onClick:Oe,open:y,children:(w[0]||w[1])&&Ho()}),y&&jsx(a$2,{onClick:r=>{r.stopPropagation(),Y();}}),jsx(xt,{open:y,anchorEl:De,placement:"bottom-end",...te,children:jsxs(bo,{onKeyDown:Go,children:[!l&&jsxs(ko,{children:[jsx(po,{onChange:Yo,isHijri:ne}),jsxs(vo,{children:[u&&jsx(Ve,{groupBy:ve,isCalenderOpen:y,onUpdate:r=>{Wo(r);}}),jsx(ro,{isHijri:ne,onCalendarModeSwitch:t})]})]}),jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(mo,{values:x,onChange:jo,isHijri:ne,ref:I,numberOfMonths:n,...Ao}),jsx(Rt,{in:Be&&!!m,children:jsx(a$3,{error:re("dateRangeError",{number:m}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(To,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&Ce&&i&&Te?jsx(zo,{children:jsx(xo,{onChange:Se,selectedTimezone:ze,browserTimezone:i,defaultCountryTimezone:Ce,timezoneCountriesCodes:Te},String(y))}):jsx("div",{}),new DateObject(x[0]).dayOfYear===new DateObject(x[1]).dayOfYear&&jsx(Io,{values:x,setValues:C}),jsxs(wo,{children:[jsx(ho,{variant:"contained",onClick:Y,children:re("cancel")}),jsx(yo,{variant:"contained",onClick:Re,disabled:!x[1],children:re("okay")})]})]})]})]})})]})}var Lo=At;var xi=Lo;export{xi as a};
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-WUS2EVHL.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=Jc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
1
+ import {f}from'./chunk-F5A4P7NM.js';import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=Jc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
2
2
  export{m as a,go as b};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import f from'@mui/material/Radio';import {jsx}from'react/jsx-runtime';var e={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},n={small:{iconSize:15,maxWidth:"24px"}},g=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),l=styled(g)({backgroundColor:e.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),c=styled(f,{shouldForwardProp:o=>!["iconSize","checkedColor","disabledColor","hoverColor"].includes(o)})(({iconSize:o,checkedColor:d,disabledColor:t,hoverColor:r})=>({"& .MuiSvgIcon-root":{fontSize:o||n.small.iconSize},maxWidth:n.small.maxWidth,cursor:"pointer",color:e.color,"&.Mui-checked":{color:d||e.checkedColor},"&:hover":r?{backgroundColor:"transparent",color:r}:void 0,"&.Mui-disabled":{color:t||e.disabledColor}}));function p({size:o="small",customCheckedIcon:d,checkedColor:t,disabledColor:r,hoverColor:m,iconSize:u,showRipple:h=false,sx:C,...x}){let b=Jc(useId(),"radio-button");return jsx(c,{id:b,"data-testid":"RadioButton",size:o==="large"?"medium":o,disableRipple:!h,checkedIcon:d||jsx(l,{}),iconSize:u,checkedColor:t,disabledColor:r,hoverColor:m,sx:C,...x})}p.displayName="RadioButton";var k=memo(p);export{k as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import f from'@mui/material/Radio';import {jsx}from'react/jsx-runtime';var e={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},n={small:{iconSize:15,maxWidth:"24px"}},g=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),l=styled(g)({backgroundColor:e.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),c=styled(f,{shouldForwardProp:o=>!["iconSize","checkedColor","disabledColor","hoverColor"].includes(o)})(({iconSize:o,checkedColor:d,disabledColor:t,hoverColor:r})=>({"& .MuiSvgIcon-root":{fontSize:o||n.small.iconSize},maxWidth:n.small.maxWidth,cursor:"pointer",color:e.color,"&.Mui-checked":{color:d||e.checkedColor},"&:hover":r?{backgroundColor:"transparent",color:r}:void 0,"&.Mui-disabled":{color:t||e.disabledColor}}));function p({size:o="small",customCheckedIcon:d,checkedColor:t,disabledColor:r,hoverColor:m,iconSize:u,showRipple:h=false,sx:C,...x}){let b=Jc(useId(),"radio-button");return jsx(c,{id:b,"data-testid":"RadioButton",size:o==="large"?"medium":o,disableRipple:!h,checkedIcon:d||jsx(l,{}),iconSize:u,checkedColor:t,disabledColor:r,hoverColor:m,sx:C,...x})}p.displayName="RadioButton";var k=memo(p);export{k as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-25IWFELL.js';import {Bm}from'./chunk-3JUTMTQV.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=Jc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=Jc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===Bm.reports.code||o===Bm.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {Bm}from'./chunk-3JUTMTQV.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=Jc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=Jc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===Bm.reports.code||o===Bm.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
@@ -1 +1 @@
1
- import {b}from'./chunk-B6GU33JP.js';import {Jc}from'./chunk-25IWFELL.js';import {nh}from'./chunk-3JUTMTQV.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=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:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=Jc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:nh,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
1
+ import {b}from'./chunk-RENOZ7NM.js';import {Jc}from'./chunk-ATSYOVOS.js';import {nh}from'./chunk-3JUTMTQV.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=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:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=Jc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:nh,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-25IWFELL.js';import {hh,ih}from'./chunk-3JUTMTQV.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(d,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:hh,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:ih,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=Jc(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {hh,ih}from'./chunk-3JUTMTQV.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(d,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:hh,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:ih,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=Jc(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
@@ -1 +1 @@
1
- import {b as b$1,g,a as a$3}from'./chunk-GH7TAMPJ.js';import {a as a$2}from'./chunk-ASJ6GAAA.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Jc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
1
+ import {b as b$1,g,a as a$3}from'./chunk-GH7TAMPJ.js';import {a as a$2}from'./chunk-EWAOFKBQ.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-ATSYOVOS.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Jc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
@@ -1 +1 @@
1
- import {Jc}from'./chunk-25IWFELL.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var d=styled("img")(({theme:o})=>({width:o.spacing(2),height:o.spacing(2),verticalAlign:"middle"})),f=forwardRef((o,n)=>{let r=Jc(useId(),"icon");return jsx(d,{id:r,"data-testid":"Icon",sx:o.sx,...o,ref:n})}),e=memo(f);var L=e;export{L as a};
1
+ import {Jc}from'./chunk-ATSYOVOS.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var d=styled("img")(({theme:o})=>({width:o.spacing(2),height:o.spacing(2),verticalAlign:"middle"})),f=forwardRef((o,n)=>{let r=Jc(useId(),"icon");return jsx(d,{id:r,"data-testid":"Icon",sx:o.sx,...o,ref:n})}),e=memo(f);var L=e;export{L as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-4SY2RHF6.js';import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var m=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"}}}})),g=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}}})),h=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),x=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),D=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"}})),z=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]}`}})),A=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}})),W=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),B=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),S=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 H({open:t,menuItems:n,anchorEl:a,onClose:d,footer:I,selected:f,multiple:w,allowShadows:p=true,...M}){let k=Jc(useId(),"dropdown-menu"),l=useTheme();return jsxs(g,{id:k,"data-testid":"DropdownMenu",open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...M,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(m,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:C=>{o.onClick&&o.onClick(C);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===f&&{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none"},...o.sx},children:[w&&jsx(S,{size:"small",checked:o.selected}),o.icon&&jsx(h,{children:o.icon}),jsx(x,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),I]})}var b=H;var Y=b;export{D as a,z as b,A as c,W as d,B as e,Y as f};
1
+ import {a}from'./chunk-DIFTS5M3.js';import {Jc}from'./chunk-ATSYOVOS.js';import {useId}from'react';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var m=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"}}}})),g=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}}})),h=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),x=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),D=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"}})),z=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]}`}})),A=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}})),W=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),B=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),S=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 H({open:t,menuItems:n,anchorEl:a,onClose:d,footer:I,selected:f,multiple:w,allowShadows:p=true,...M}){let k=Jc(useId(),"dropdown-menu"),l=useTheme();return jsxs(g,{id:k,"data-testid":"DropdownMenu",open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...M,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(m,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:C=>{o.onClick&&o.onClick(C);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===f&&{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none"},...o.sx},children:[w&&jsx(S,{size:"small",checked:o.selected}),o.icon&&jsx(h,{children:o.icon}),jsx(x,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),I]})}var b=H;var Y=b;export{D as a,z as b,A as c,W as d,B as e,Y as f};
@@ -1 +1 @@
1
- import {a}from'./chunk-QL4R766B.js';import {Jc}from'./chunk-25IWFELL.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=Jc(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
1
+ import {a}from'./chunk-MIZ2W4YF.js';import {Jc}from'./chunk-ATSYOVOS.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=Jc(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
@@ -1 +1 @@
1
- import {a}from'./chunk-V5PNP75S.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useId,useMemo}from'react';import L from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import y from'@mui/material/FormControlLabel';import {FormControl,FormLabel,Stack}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var R=styled(y,{shouldForwardProp:o=>!["size","showHoverEffects","labelSx"].includes(o)})(({size:o="small",showHoverEffects:e=true,labelSx:r})=>({margin:"0",width:"100%",cursor:"pointer",padding:o==="small"?"7.5px 16px 7.5px 8px":o==="medium"?"9px 16px 9px 10px":"11px 16px 11px 12px",maxHeight:o==="small"?"35px":o==="medium"?"40px":"45px",...e&&{"&:hover":{boxShadow:"0px 0px 16px 0px #00000021",borderLeft:"1px solid transparent"}},"& .MuiFormControlLabel-label":{fontSize:o==="small"?"11px":o==="medium"?"13px":"15px",fontWeight:"500",color:"#20232B",width:"100%",cursor:"pointer",...r},"& .MuiRadio-root":{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:"#1F88D0"}}}));function k({option:o,size:e="small",customLabelRenderer:r,labelPosition:m="end",showHoverEffects:i=true,customRadioProps:n,labelSx:s,icon:l,...d}){let p=r?r(o):o.label,u=useMemo(()=>l?jsxs(Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[p,jsx("img",{alt:"icon",...l})]}):p,[l,p]);return jsx(R,{value:o.value,control:jsx(a,{size:e,...n,...o.customProps}),label:u,disabled:o.disabled,size:e,labelPlacement:m,showHoverEffects:i,labelSx:s,...d})}function h({options:o,onOptionChange:e,size:r="small",customLabelRenderer:m,layout:i="vertical",spacing:n=0,labelPosition:s="end",showHoverEffects:l=true,customRadioProps:d,labelSx:p,onChange:u,title:c,sx:g,...S}){let v=t=>{let x=t.target.value;e?.(x),u?.(t,x);},w=Jc(useId(),"radio-group");return jsxs(FormControl,{id:w,"data-testid":"RadioGroup",children:[typeof c=="string"?jsx(FormLabel,{children:c}):c,jsx(L,{onChange:v,sx:{display:"flex",flexDirection:i==="horizontal"?"row":"column",gap:n,...g},...S,children:o.map(t=>jsx(k,{icon:t.icon,option:t,size:r,customLabelRenderer:m,labelPosition:s,showHoverEffects:l,customRadioProps:d,labelSx:p},t.value))})]})}h.displayName="RadioGroup";var B=memo(h);export{B as a};
1
+ import {a}from'./chunk-EGIAXPM6.js';import {Jc}from'./chunk-ATSYOVOS.js';import {memo,useId,useMemo}from'react';import L from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import y from'@mui/material/FormControlLabel';import {FormControl,FormLabel,Stack}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var R=styled(y,{shouldForwardProp:o=>!["size","showHoverEffects","labelSx"].includes(o)})(({size:o="small",showHoverEffects:e=true,labelSx:r})=>({margin:"0",width:"100%",cursor:"pointer",padding:o==="small"?"7.5px 16px 7.5px 8px":o==="medium"?"9px 16px 9px 10px":"11px 16px 11px 12px",maxHeight:o==="small"?"35px":o==="medium"?"40px":"45px",...e&&{"&:hover":{boxShadow:"0px 0px 16px 0px #00000021",borderLeft:"1px solid transparent"}},"& .MuiFormControlLabel-label":{fontSize:o==="small"?"11px":o==="medium"?"13px":"15px",fontWeight:"500",color:"#20232B",width:"100%",cursor:"pointer",...r},"& .MuiRadio-root":{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:"#1F88D0"}}}));function k({option:o,size:e="small",customLabelRenderer:r,labelPosition:m="end",showHoverEffects:i=true,customRadioProps:n,labelSx:s,icon:l,...d}){let p=r?r(o):o.label,u=useMemo(()=>l?jsxs(Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[p,jsx("img",{alt:"icon",...l})]}):p,[l,p]);return jsx(R,{value:o.value,control:jsx(a,{size:e,...n,...o.customProps}),label:u,disabled:o.disabled,size:e,labelPlacement:m,showHoverEffects:i,labelSx:s,...d})}function h({options:o,onOptionChange:e,size:r="small",customLabelRenderer:m,layout:i="vertical",spacing:n=0,labelPosition:s="end",showHoverEffects:l=true,customRadioProps:d,labelSx:p,onChange:u,title:c,sx:g,...S}){let v=t=>{let x=t.target.value;e?.(x),u?.(t,x);},w=Jc(useId(),"radio-group");return jsxs(FormControl,{id:w,"data-testid":"RadioGroup",children:[typeof c=="string"?jsx(FormLabel,{children:c}):c,jsx(L,{onChange:v,sx:{display:"flex",flexDirection:i==="horizontal"?"row":"column",gap:n,...g},...S,children:o.map(t=>jsx(k,{icon:t.icon,option:t,size:r,customLabelRenderer:m,labelPosition:s,showHoverEffects:l,customRadioProps:d,labelSx:p},t.value))})]})}h.displayName="RadioGroup";var B=memo(h);export{B as a};