@tap-payments/os-micro-frontend-shared 0.3.240-test.31 → 0.3.241

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 (240) hide show
  1. package/build/_chunks/{chunk-MYQ54BZG.js → chunk-3T7G4PAY.js} +1 -1
  2. package/build/_chunks/{chunk-BS7VRTAV.js → chunk-3Z6ULCGA.js} +1 -1
  3. package/build/_chunks/{chunk-PJXOFZPW.js → chunk-52SSIU72.js} +1 -1
  4. package/build/_chunks/{chunk-EXLFOMSC.js → chunk-5H7MD7LO.js} +1 -1
  5. package/build/_chunks/{chunk-YO27LSWX.js → chunk-5WL77ZBM.js} +1 -1
  6. package/build/_chunks/{chunk-VBNMIWI4.js → chunk-6ASQZ2RI.js} +1 -1
  7. package/build/_chunks/{chunk-CSCIVTMM.js → chunk-6E2SGPTJ.js} +1 -1
  8. package/build/_chunks/{chunk-WL4X5KGY.js → chunk-6JLKJPL3.js} +1 -1
  9. package/build/_chunks/{chunk-3GXTVG5R.js → chunk-6RTZSBSD.js} +1 -1
  10. package/build/_chunks/{chunk-DJE254UH.js → chunk-6USHHZAA.js} +1 -1
  11. package/build/_chunks/{chunk-2MPXMNN4.js → chunk-7DMSRKG7.js} +1 -1
  12. package/build/_chunks/{chunk-HTLVX3G5.js → chunk-7FWE55BT.js} +1 -1
  13. package/build/_chunks/{chunk-YNKTXBPM.js → chunk-7PLZT2KW.js} +1 -1
  14. package/build/_chunks/{chunk-WGDRJVXR.js → chunk-7R6GKSYQ.js} +1 -1
  15. package/build/_chunks/{chunk-KO4LEPWI.js → chunk-7THWDMHL.js} +1 -1
  16. package/build/_chunks/chunk-AVTZV3J7.js +1 -0
  17. package/build/_chunks/{chunk-5QFR3DWY.js → chunk-B5TZKBR5.js} +1 -1
  18. package/build/_chunks/{chunk-4WDB6GQY.js → chunk-BA5OFEBT.js} +1 -1
  19. package/build/_chunks/{chunk-UQYYABJO.js → chunk-BMSJV3FH.js} +1 -1
  20. package/build/_chunks/{chunk-XCJECLRL.js → chunk-BQWD3KO4.js} +1 -1
  21. package/build/_chunks/{chunk-WD56ABUM.js → chunk-BUPWQI3W.js} +1 -1
  22. package/build/_chunks/{chunk-ZTP3WQBJ.js → chunk-CWNHOUN5.js} +1 -1
  23. package/build/_chunks/{chunk-5I5M4Y2L.js → chunk-D23EYDCG.js} +1 -1
  24. package/build/_chunks/{chunk-NOW327WP.js → chunk-ECBP7JZ6.js} +1 -1
  25. package/build/_chunks/{chunk-QDQKI2OP.js → chunk-EGFHFXWK.js} +1 -1
  26. package/build/_chunks/{chunk-P4MC3PFJ.js → chunk-EJ2GRPAY.js} +1 -1
  27. package/build/_chunks/{chunk-GZUDPTKY.js → chunk-FWPVRT34.js} +1 -1
  28. package/build/_chunks/{chunk-6KP3OKV3.js → chunk-G3QKYZM2.js} +1 -1
  29. package/build/_chunks/{chunk-SJDVKG2Q.js → chunk-GEJI7SEX.js} +1 -1
  30. package/build/_chunks/{chunk-Z4JLH4XB.js → chunk-GLTYG62E.js} +1 -1
  31. package/build/_chunks/{chunk-KLSGCSDA.js → chunk-GP7PBSOF.js} +1 -1
  32. package/build/_chunks/{chunk-KID3D7KU.js → chunk-GRKRA3TP.js} +1 -1
  33. package/build/_chunks/chunk-GUXJEFPL.js +2 -0
  34. package/build/_chunks/{chunk-XKDYZ4ZM.js → chunk-HWDODLOQ.js} +1 -1
  35. package/build/_chunks/{chunk-YL3FUXQI.js → chunk-I6RRJ7ME.js} +1 -1
  36. package/build/_chunks/{chunk-6PWHIZFE.js → chunk-I7KBFAH7.js} +1 -1
  37. package/build/_chunks/chunk-J7R6JFXM.js +1 -0
  38. package/build/_chunks/{chunk-LA7X2KPG.js → chunk-JCFOE4DQ.js} +1 -1
  39. package/build/_chunks/{chunk-WDZGN64W.js → chunk-JG5OM35T.js} +1 -1
  40. package/build/_chunks/{chunk-3QTAQRMI.js → chunk-JI5U3KGK.js} +1 -1
  41. package/build/_chunks/{chunk-YICDAFBX.js → chunk-KDRRRYZL.js} +1 -1
  42. package/build/_chunks/{chunk-BTR5PD6Y.js → chunk-KTFIN54Q.js} +1 -1
  43. package/build/_chunks/{chunk-GMQ53XVP.js → chunk-KVC3QSDQ.js} +1 -1
  44. package/build/_chunks/chunk-L7L22FDR.js +1 -0
  45. package/build/_chunks/chunk-LFBTKZ3V.js +1 -0
  46. package/build/_chunks/{chunk-M4DEHVYL.js → chunk-LOFKIY7J.js} +1 -1
  47. package/build/_chunks/{chunk-6CXB2LE2.js → chunk-LXD5Y42H.js} +1 -1
  48. package/build/_chunks/{chunk-4TXOJ4LP.js → chunk-MFZ3F3JQ.js} +1 -1
  49. package/build/_chunks/{chunk-JCOZG4PE.js → chunk-MXQFATMM.js} +1 -1
  50. package/build/_chunks/{chunk-MVKLLCHM.js → chunk-NPCTL2R7.js} +1 -1
  51. package/build/_chunks/{chunk-6KU44WGR.js → chunk-OBK62FOF.js} +1 -1
  52. package/build/_chunks/{chunk-4E4TCT4G.js → chunk-OMISGJLX.js} +1 -1
  53. package/build/_chunks/{chunk-TKYWVFNH.js → chunk-QDW7GZN6.js} +1 -1
  54. package/build/_chunks/{chunk-K473J5UJ.js → chunk-QHK62NO3.js} +1 -1
  55. package/build/_chunks/{chunk-5IWE2PGQ.js → chunk-QLF4C46U.js} +1 -1
  56. package/build/_chunks/{chunk-7DIB47I7.js → chunk-QLXQSDL7.js} +1 -1
  57. package/build/_chunks/{chunk-UVDVSMDQ.js → chunk-QWWU4QAA.js} +1 -1
  58. package/build/_chunks/{chunk-7PWNYYUK.js → chunk-R6Y42OPH.js} +1 -1
  59. package/build/_chunks/chunk-RE3HH2T6.js +2 -0
  60. package/build/_chunks/{chunk-R4CAXMKG.js → chunk-S4ZHXBPB.js} +1 -1
  61. package/build/_chunks/{chunk-CXPYYHID.js → chunk-SR3UFTU3.js} +1 -1
  62. package/build/_chunks/{chunk-EGWCKYZW.js → chunk-SYEHTDS6.js} +1 -1
  63. package/build/_chunks/{chunk-A5QRZLTA.js → chunk-TDFNWFK7.js} +1 -1
  64. package/build/_chunks/{chunk-GMOL7KWH.js → chunk-U2PXB4YH.js} +1 -1
  65. package/build/_chunks/{chunk-BT4OV2QN.js → chunk-V4YG7AP4.js} +1 -1
  66. package/build/_chunks/chunk-VNHVDZKL.js +1 -0
  67. package/build/_chunks/{chunk-3D6B42L2.js → chunk-VV5IC3DP.js} +1 -1
  68. package/build/_chunks/{chunk-UEXZDSF2.js → chunk-WZQR2LCT.js} +1 -1
  69. package/build/_chunks/{chunk-3HWDXRKR.js → chunk-X5HJKL6O.js} +1 -1
  70. package/build/_chunks/{chunk-BMBJPVOW.js → chunk-YNOCNDOA.js} +1 -1
  71. package/build/_chunks/{chunk-JEVXGACR.js → chunk-ZEQDF7FG.js} +1 -1
  72. package/build/components/ActionsDropdownMenu/index.js +1 -1
  73. package/build/components/ActiveFilterChip/index.js +1 -1
  74. package/build/components/Alert/index.js +1 -1
  75. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  76. package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -1
  77. package/build/components/AppServices/index.js +1 -1
  78. package/build/components/AppServicesBar/index.js +1 -1
  79. package/build/components/AppWindowWrapper/index.js +1 -1
  80. package/build/components/AreaChart/index.js +1 -1
  81. package/build/components/Autocomplete/index.js +1 -1
  82. package/build/components/AvatarStack/index.js +1 -1
  83. package/build/components/AvatarStack/style.d.ts +1 -1
  84. package/build/components/Calender/index.js +1 -1
  85. package/build/components/ColorPicker/index.js +1 -1
  86. package/build/components/ColumnViews/index.js +1 -1
  87. package/build/components/ColumnViews/styles.d.ts +1 -1
  88. package/build/components/ConfirmDialog/index.js +1 -1
  89. package/build/components/CountryFilter/index.js +1 -1
  90. package/build/components/CountryFlag/index.js +1 -1
  91. package/build/components/CurrenciesMenu/index.js +1 -1
  92. package/build/components/CurrencyAmount/index.js +1 -1
  93. package/build/components/CurrencyAmountInput/index.js +1 -1
  94. package/build/components/CurrencySymbol/index.js +1 -1
  95. package/build/components/DateFilter/DateFilter.d.ts +6 -15
  96. package/build/components/DateFilter/index.js +1 -1
  97. package/build/components/DeviceIcon/index.js +1 -1
  98. package/build/components/DropdownMenu/index.js +1 -1
  99. package/build/components/EmptyState/index.js +1 -1
  100. package/build/components/ErrorToast/index.js +1 -1
  101. package/build/components/FileDropbox/index.js +1 -1
  102. package/build/components/FilePreview/index.js +1 -1
  103. package/build/components/FileUploader/index.js +1 -1
  104. package/build/components/FilterDropdown/index.js +1 -1
  105. package/build/components/Filters/index.js +1 -1
  106. package/build/components/FlippingCard/index.js +1 -1
  107. package/build/components/FlippingCard/style.d.ts +1 -1
  108. package/build/components/FormSelect/index.js +1 -1
  109. package/build/components/GroupedSelect/index.js +1 -1
  110. package/build/components/HeatMap/index.js +1 -1
  111. package/build/components/IconWithBadge/index.js +1 -1
  112. package/build/components/ImageWrapper/ImageWrapper.d.ts +2 -2
  113. package/build/components/InputBase/index.js +1 -1
  114. package/build/components/Inputs/index.js +1 -1
  115. package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +4 -4
  116. package/build/components/JSONViewer/index.js +1 -1
  117. package/build/components/JSONViewer/style.d.ts +2 -2
  118. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  119. package/build/components/LeftPeekRightExpandingChip/style.d.ts +3 -3
  120. package/build/components/ListColumnFilter/index.js +1 -1
  121. package/build/components/ListHeader/index.js +1 -1
  122. package/build/components/ListHeader/types.d.ts +4 -15
  123. package/build/components/ListLayout/index.js +1 -1
  124. package/build/components/Loader/index.js +1 -1
  125. package/build/components/Logo/index.js +1 -1
  126. package/build/components/MFWidgetLoader/index.js +1 -1
  127. package/build/components/MaskedText/index.js +1 -1
  128. package/build/components/MultiSelect/index.js +1 -1
  129. package/build/components/NestedDropdown/index.js +1 -1
  130. package/build/components/NestedMultiSelect/index.js +1 -1
  131. package/build/components/PaymentSourceFilter/index.js +1 -1
  132. package/build/components/PhoneFilter/index.js +1 -1
  133. package/build/components/PhoneInput/index.js +1 -1
  134. package/build/components/ProgressRing/index.js +1 -1
  135. package/build/components/RadioGroup/index.js +1 -1
  136. package/build/components/RangeCalender/RangeCalender.d.ts +1 -1
  137. package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +6 -6
  138. package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +5 -5
  139. package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +5 -5
  140. package/build/components/RangeCalender/index.js +1 -1
  141. package/build/components/RangeCalender/type.d.ts +4 -27
  142. package/build/components/RangeCalender/utils.d.ts +1 -11
  143. package/build/components/RatingCount/index.js +1 -1
  144. package/build/components/ReferenceTypeFilter/index.js +1 -1
  145. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  146. package/build/components/RightLeftExpandingCenterChip/style.d.ts +13 -13
  147. package/build/components/SearchButton/index.js +1 -1
  148. package/build/components/SearchButton/styles.d.ts +2 -2
  149. package/build/components/SearchInput/index.js +1 -1
  150. package/build/components/SheetViewChip/index.js +1 -1
  151. package/build/components/Sidebar/index.js +1 -1
  152. package/build/components/StatusBar/index.js +1 -1
  153. package/build/components/StatusButton/index.js +1 -1
  154. package/build/components/StatusFilter/index.js +1 -1
  155. package/build/components/StatusIcons/AuthIcons/style.d.ts +2 -2
  156. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -1
  157. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +6 -6
  158. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -1
  159. package/build/components/StatusIcons/index.js +1 -1
  160. package/build/components/StatusLabel/index.js +1 -1
  161. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  162. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +1 -1
  163. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -1
  164. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +2 -2
  165. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -1
  166. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -1
  167. package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +1 -8
  168. package/build/components/TableCells/CustomCells/DateCell/DateViewer.d.ts +1 -5
  169. package/build/components/TableCells/CustomCells/DueDateCell/DueDateCell.d.ts +1 -1
  170. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -1
  171. package/build/components/TableCells/CustomCells/DueDateCell/type.d.ts +0 -6
  172. package/build/components/TableCells/CustomCells/DueDateCell/utils.d.ts +3 -4
  173. package/build/components/TableCells/CustomCells/InvoiceStatusCell/InvoiceStatusCell.d.ts +1 -1
  174. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -1
  175. package/build/components/TableCells/CustomCells/InvoiceStatusCell/type.d.ts +0 -6
  176. package/build/components/TableCells/CustomCells/PayoutDateCell/PayoutDateCell.d.ts +1 -1
  177. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
  178. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +5 -5
  179. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -1
  180. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -1
  181. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +2 -2
  182. package/build/components/TableCells/CustomCells/RefundStatusCell/RefundStatusCell.d.ts +1 -1
  183. package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatus.d.ts +1 -1
  184. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +2 -2
  185. package/build/components/TableCells/CustomCells/RefundStatusCell/type.d.ts +2 -6
  186. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -1
  187. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -1
  188. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +6 -6
  189. package/build/components/TableCells/CustomCells/index.d.ts +0 -1
  190. package/build/components/TableCells/CustomCells/style.d.ts +1 -1
  191. package/build/components/TableCells/CustomCells/type.d.ts +2 -8
  192. package/build/components/TableCells/index.js +1 -1
  193. package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -1
  194. package/build/components/TableReports/index.js +1 -1
  195. package/build/components/TableReports/style.d.ts +1 -1
  196. package/build/components/TextInput/index.js +1 -1
  197. package/build/components/Timepicker/index.js +1 -1
  198. package/build/components/ToggleView/index.js +1 -1
  199. package/build/components/Toolbar/index.js +1 -1
  200. package/build/components/TreeDropdown/index.js +1 -1
  201. package/build/components/VerificationIcon/index.js +1 -1
  202. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  203. package/build/components/VirtualTables/components/style.d.ts +1 -1
  204. package/build/components/VirtualTables/index.js +1 -1
  205. package/build/components/Widget/index.js +1 -1
  206. package/build/components/index.d.ts +0 -1
  207. package/build/components/index.js +1 -1
  208. package/build/components/primitives/Backdrop/style.d.ts +1 -0
  209. package/build/components/primitives/Backdrop/type.d.ts +15 -1
  210. package/build/components/primitives/index.js +1 -1
  211. package/build/constants/timezones.d.ts +0 -12
  212. package/build/hooks/index.js +1 -1
  213. package/build/index.js +1 -1
  214. package/build/types/appConfig.d.ts +0 -4
  215. package/build/types/day.d.ts +0 -2
  216. package/build/utils/date.d.ts +16 -33
  217. package/build/utils/index.js +1 -1
  218. package/build/utils/localStorage.d.ts +0 -2
  219. package/build/utils/payout.d.ts +3 -4
  220. package/build/utils/timezone.d.ts +0 -7
  221. package/package.json +2 -8
  222. package/build/_chunks/chunk-2NGD5ZN6.js +0 -1
  223. package/build/_chunks/chunk-4PIM52J3.js +0 -2
  224. package/build/_chunks/chunk-5FBYWZ3H.js +0 -2
  225. package/build/_chunks/chunk-O7HXFCBN.js +0 -1
  226. package/build/_chunks/chunk-OWIQBLU3.js +0 -1
  227. package/build/_chunks/chunk-OY44HMKS.js +0 -1
  228. package/build/_chunks/chunk-YAYRJE52.js +0 -1
  229. package/build/_chunks/chunk-ZKTR2WPD.js +0 -1
  230. package/build/components/CustomBackdrop/CustomBackdrop.d.ts +0 -5
  231. package/build/components/CustomBackdrop/index.d.ts +0 -2
  232. package/build/components/CustomBackdrop/index.js +0 -1
  233. package/build/components/CustomBackdrop/style.d.ts +0 -4
  234. package/build/components/TableCells/CustomCells/ZonedDateCell/ZonedDateCell.d.ts +0 -33
  235. package/build/components/TableCells/CustomCells/ZonedDateCell/index.d.ts +0 -2
  236. package/build/components/TableCells/CustomCells/utils.d.ts +0 -6
  237. package/build/datetime/index.d.ts +0 -9
  238. package/build/datetime/index.js +0 -1
  239. package/build/datetime/instant.d.ts +0 -73
  240. package/build/datetime/zone.d.ts +0 -31
@@ -1 +0,0 @@
1
- import {j as j$1,a as a$2}from'./chunk-YL3FUXQI.js';import {a}from'./chunk-4TXOJ4LP.js';import {a as a$1}from'./chunk-YAYRJE52.js';import {b as b$1}from'./chunk-BT4OV2QN.js';import {R,x,h}from'./chunk-5FBYWZ3H.js';import {Bc}from'./chunk-ZKTR2WPD.js';import {Uc,Vc,Uj,Vj,Wj,dc,ec,Xj,cc}from'./chunk-GCJPCGH3.js';import {d,g,e,f,b,c,p,h as h$1}from'./chunk-OY44HMKS.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import D from'@mui/material/Box';import Et from'@mui/material/Popper';import Kt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import pt from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import Te from'@mui/material/Button';import oe from'react-date-object';import gt from'react-date-object/calendars/arabic';import xt from'react-date-object/calendars/gregorian';import bt from'react-date-object/locales/arabic_ar';import yt from'react-date-object/locales/arabic_en';import ht from'react-date-object/locales/gregorian_ar';import wt from'react-date-object/locales/gregorian_en';var Je=styled(D)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Xe=styled(D,{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]}})),Ve=styled(D)(({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"})),eo=styled(D)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var to={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function lt({sx:e,groupBy:o,isCalenderOpen:a,onUpdate:t}){let[i,p]=useState(null),s=!!i&&a,{t:l}=useTranslation(),c=()=>{p(null);},u=n=>{p(n.currentTarget);},d=n=>{t?.(n),c();};return jsx(pt,{onClickAway:c,children:jsxs(D,{sx:e,children:[jsx(Je,{children:l("groupedBy")}),jsxs(Xe,{onClick:u,open:s,children:[jsx("span",{children:to[o]}),jsx(D,{component:"img",src:Vc,alt:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:s,anchorEl:i,children:jsx(Ve,{sx:{width:i?.clientWidth},children:Object.entries(to).map(([n,m])=>jsx(eo,{onClick:()=>{d(n);},className:o===n?"active":"",children:m},`${n}-groupedBy`))})})]})})}var no=memo(lt);var io=no;var ao=styled(D)(({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 xe({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(D,{children:jsxs(ao,{children:[jsxs(D,{children:[jsx("img",{src:cc,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(h,{checked:e,onChange:t})]})})}var so=xe;var co=styled(Te)(({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}})),uo=styled(D)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var te=({isHijri:e,isAr:o=false})=>e?o?bt:yt:o?ht:wt,re=e=>e?gt:xt,B=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),I=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),fo=e=>e&&c(e)?e:void 0,go=(e,o)=>fo(e)??fo(o)??f()??b,ne=(e,o,a=7)=>{if(e?.[0]instanceof Date&&e[1]instanceof Date)return [new oe(e[0]),new oe(e[1])];let[t,i]=p(a,o)??[new Date,new Date];return [new oe(t),new oe(i)]},xo=e=>({countryCode:d(e)?.countryCode??"",label:g(e),timezone:e,offset:(h$1(e)??0)/60});function ye({onChange:e,isHijri:o,isAr:a=false}){let t={locale:te({isHijri:o,isAr:a}),calendar:re(o)},i=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(D,{"data-testid":"RangeCalender_QuickFilters",children:jsx(uo,{children:i.map(s=>jsx(co,{onClick:l=>{l.preventDefault(),e(s.value);},children:p(s.id)},s.id))})})}var bo=ye;var yo=styled(Te)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var zt=["Su","Mo","Tu","We","Th","Fr","Sa"];function Bt({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:i=2,...p},s){let l=c=>c==="right"?e?dc:ec:e?ec:dc;return jsx(Calendar,{ref:s,numberOfMonths:i,value:a,onChange:t,calendar:re(o),locale:te({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(yo,{onClick:u,children:jsx("img",{src:l(c),alt:"arrow"})}),weekDays:e?void 0:zt,maxDate:new Date,...p})}var ho=forwardRef(Bt);var wo=ho;var Co=styled(D)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),ie=styled(D)(({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"})),ko=styled(D,{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"}})),F=styled(D)(({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"}})),H=styled(D)(()=>({width:12,height:12})),j=styled(D)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function we({selectedZone:e$1,onChange:o,timezoneCountriesCodes:a$1,countryZone:t}){let[i,p]=useState(null),s=n=>{i||p(n.currentTarget);},l=()=>{i&&p(null);},c=(n,m)=>{n.stopPropagation(),o(m);},u=useMemo(()=>a$1?.flatMap(n=>{let m=e(n);return m?[m]:[]})??[],[a$1]),d$1=useMemo(()=>u.some(n=>n.id===e$1),[u,e$1]);return jsxs(F,{onMouseEnter:s,onMouseLeave:l,onClick:()=>{e$1&&o(d$1?e$1:t);},children:[d$1?jsx("img",{src:Xj,alt:"icon"}):jsx(H,{}),jsx("img",{src:Vj,alt:"entity-timezone"}),jsx(a,{countryCode:d(d$1&&e$1?e$1:t)?.countryCode}),jsx(j,{className:d$1?"selected":"",children:g(d$1&&e$1?e$1:t)}),jsx(Et,{open:!!i,anchorEl:i,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(ie,{sx:{maxHeight:300},children:u.map((n,m)=>{let R=n.id===e$1;return jsxs(F,{onClick:G=>{c(G,n.id);},sx:{gap:"4px"},children:[R?jsx("img",{src:Xj,alt:"icon"}):jsx(H,{}),jsx(a,{countryCode:n.countryCode}),jsx(j,{className:R?"selected":"",children:g(n.id)})]},`timezone-item-${m}`)})})})]})}function Ce({onChange:e,selectedZone:o,browserZone:a$1}){let t=useMemo(()=>d(a$1??f()??""),[a$1]),i=()=>{t&&e(t.id);},p=t?.id===o;return jsxs(F,{onClick:i,children:[p?jsx("img",{src:Xj,alt:"icon"}):jsx(H,{}),jsx("img",{src:Uj,alt:"user-timezone"}),jsx(a,{countryCode:t?.countryCode}),jsx(j,{className:p?"selected":"",children:t&&g(t.id)})]})}function Ft({onChange:e,selectedZone:o,browserZone:a$1,countryZone:t,timezoneCountriesCodes:i}){let[p,s]=useState(null),l=!!p,c=()=>{s(null);},u=m=>{e(m),c();},d$1=m=>{s(m.currentTarget);},n=useMemo(()=>a$1===o?Uj:o===t?Vj:Wj,[a$1,t,o]);return jsx(pt,{onClickAway:c,children:jsxs(Co,{"data-testid":"CustomTimezone",children:[jsxs(ko,{open:l,onClick:d$1,children:[jsx("img",{src:n,alt:"timezone-icon"}),jsx(a,{countryCode:d(o??"")?.countryCode}),jsx("span",{children:o&&g(o)})]}),jsx(Et,{open:l,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(ie,{"data-testid":"CustomTimezone_dropdown",children:[jsx(we,{onChange:u,selectedZone:o,countryZone:t,timezoneCountriesCodes:i}),jsx(Ce,{onChange:u,selectedZone:o,browserZone:a$1})]})})]})})}var So=memo(Ft);var Mo=So;var Do=styled(D,{shouldForwardProp:e=>e!=="$isSingleMonth"})(({theme:e,$isSingleMonth:o})=>({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",...o&&{width:"100%"}},".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,...o&&{display:"block !important"}},".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"}})),zo=styled(Te)(({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}})),Bo=styled(Te)(({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}})),Io=styled(D)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),Eo=styled(Te,{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]}})),Oo=styled(D)(({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"})),Po=styled(D)(({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"})),Ro=styled(D)(()=>({display:"flex",alignItems:"center",gap:"10px"})),Lo=styled(D)(()=>({position:"relative"})),Ao=styled(D)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Zo=styled(D,{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}}})),Wo=styled(D)(()=>({width:235})),Fo=styled(D)(({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(${Uc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Ho=styled(D)(({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 Yt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),i=new DateObject(e[1]),[p,s]=useState(t.dayOfYear===i.dayOfYear&&t.hour===0&&t.minute===0&&i.hour===23&&i.minute===59),l=({period:d,hour:n})=>d==="PM"&&n!==12?n+12:d==="AM"&&n===12?0:n,c=({hour:d,minute:n,period:m})=>{o([t.setHour(l({hour:d,period:m})).setMinute(n).setSecond(0),i]);},u=({hour:d,minute:n,period:m})=>{o([t,i.setHour(l({hour:d,period:m})).setMinute(n).setSecond(59)]);};return jsx(Wo,{children:jsxs(Ho,{children:[jsxs(Zo,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(h,{checked:p,onChange:d=>{s(!p),d.target.checked?o([B(e[0]),I(e[1])]):o(e);}})]}),!p&&jsxs(Fo,{children:[jsx(j$1,{defaultTime:{hour:a$2(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j$1,{defaultTime:{hour:a$2(i.hour),minute:i.minute,period:i.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Yo=Yt;var $o=Yo;function qt({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:i,noTimezone:p,noQuickFilter:s,maxDateRange:l,onCalendarGroupChange:c,groupBy:u,zone:d,onChangeZone:n,countryZone:m,browserTimezone:R,renderCalendarButton:G,mainSx:Uo,popperProps:No,rangeDatePickerProps:Ko,timezone:_o,onChangeTimezone:qo,defaultCountryTimezone:Jo,timezoneCountriesCodes:Me}){let Q=d??_o?.timezone,de=m??Jo?.timezone,L=go(Q,de),[C,De]=useState(()=>ne(e,L)),[x$1,T]=useState(C),[A,ze]=useState(Q??null),[Be,Xo]=useState(u||"day"),[Ie,Ee]=useState(null),h=!!Ie,[Oe,Pe]=useState(false),{t:le}=useTranslation(),Z=useRef(null),Vo=Bc(useId(),"range-calender"),se=a==="hijri",U=()=>{Ee(null);},Re=r=>{Ee(r.currentTarget);};useEffect(()=>{if(!h){if(i===1)return;T(ne(e,L));}},[h,L]),useEffect(()=>{if(e){let r=ne(e,L);De(r),T(r),Z.current&&Z.current.set("date",r[0]);}},[e,L]),useEffect(()=>{ze(Q??null);},[Q,h]);let Le=()=>{De(x$1),U();let r;x$1[0].dayOfYear===x$1[1].dayOfYear?r=[x$1[0],x$1[1]]:r=[B(x$1[0]),I(x$1[1])],o([r[0].toDate(),r[1].toDate()],A??void 0),c?.(Be||"day"),A&&(n?.(A),qo?.(xo(A)));},et=useCallback(()=>{let r=C[0].format("MMM D"),N=C[1]?C[1].format("MMM D"):C[0].format("MMM D");return r===N&&!p?r:`${r} - ${N}`},[C,p]),ot=r=>{if(r.length<2||!l){T(r);return}let N=B(r[0]).toDate(),nt=I(r[1]).toDate(),Ae=Kt(nt).diff(N,"day");if(Ae<=l){T(r);return}Pe(true),T([r[0],r[1].subtract(Ae-l,"d")]),setTimeout(()=>{Pe(false);},3e3);},tt=r=>{T([B(r[0]),I(r[1])]),Z.current&&Z.current.set("date",r[0]);},rt=r=>{r.key==="Enter"&&x$1[1]&&!Oe?(r.stopPropagation(),Le()):r.key==="Escape"&&(r.stopPropagation(),U());};return jsxs(Lo,{id:Vo,"data-testid":"RangeCalender",sx:Uo,children:[G?G(h,Re):jsx(Eo,{onClick:Re,open:h,children:(C[0]||C[1])&&et()}),h&&jsx(a$1,{onClick:r=>{r.stopPropagation(),U();}}),jsx(Et,{open:h,anchorEl:Ie,placement:"bottom-end",...No,children:jsxs(Do,{onKeyDown:rt,$isSingleMonth:i===1,children:[!s&&jsxs(Po,{children:[jsx(bo,{onChange:tt,isHijri:se}),jsxs(Ao,{children:[u&&jsx(io,{groupBy:Be,isCalenderOpen:h,onUpdate:r=>{Xo(r);}}),jsx(so,{isHijri:se,onCalendarModeSwitch:t})]})]}),jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(wo,{values:x$1,onChange:ot,isHijri:se,ref:Z,numberOfMonths:i,...Ko}),jsx(x,{in:Oe&&!!l,children:jsx(b$1,{severity:"error",message:le("dateRangeError",{number:l}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(Oo,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&de&&R&&Me&&jsx(Ro,{children:jsx(Mo,{onChange:ze,selectedZone:A,browserZone:R,countryZone:de,timezoneCountriesCodes:Me},String(h))}),new DateObject(x$1[0]).dayOfYear===new DateObject(x$1[1]).dayOfYear&&jsx($o,{values:x$1,setValues:T}),jsxs(Io,{children:[jsx(zo,{variant:"contained",onClick:U,children:le("cancel")}),jsx(Bo,{variant:"contained",onClick:Le,disabled:!x$1[1],children:le("okay")})]})]})]})]})})]})}var Qo=qt;var Oi=Qo;export{go as a,Oi as b};