@tap-payments/os-micro-frontend-shared 0.3.289-test.1794853105 → 0.3.294

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 (268) hide show
  1. package/README.md +3 -2
  2. package/build/_chunks/chunk-2I5L7ASP.js +0 -0
  3. package/build/_chunks/{chunk-72FD3NW2.js → chunk-2MXRHXGS.js} +1 -1
  4. package/build/_chunks/chunk-2V7P76GA.js +1 -0
  5. package/build/_chunks/{chunk-7UCD3KUZ.js → chunk-2W2GZUKF.js} +1 -1
  6. package/build/_chunks/{chunk-2M6UER6N.js → chunk-2WOWP3QA.js} +1 -1
  7. package/build/_chunks/{chunk-JMPFZOV3.js → chunk-3ANVVXOL.js} +1 -1
  8. package/build/_chunks/chunk-3LLAL7SZ.js +2 -0
  9. package/build/_chunks/{chunk-XEYCTDD3.js → chunk-3MRO5CJP.js} +1 -1
  10. package/build/_chunks/{chunk-XLFVCH5I.js → chunk-45E65P5R.js} +1 -1
  11. package/build/_chunks/{chunk-LECTWR74.js → chunk-45GQW7K7.js} +1 -1
  12. package/build/_chunks/{chunk-DN33IHNY.js → chunk-52MTQXHO.js} +1 -1
  13. package/build/_chunks/{chunk-D52IZHFQ.js → chunk-6X4K2W2E.js} +1 -1
  14. package/build/_chunks/{chunk-7GJ5PPIY.js → chunk-73SAT4RE.js} +1 -1
  15. package/build/_chunks/{chunk-MTACYUU3.js → chunk-77K53QY2.js} +1 -1
  16. package/build/_chunks/chunk-7BA3JMDW.js +2 -0
  17. package/build/_chunks/{chunk-RTKA6K5L.js → chunk-7CT3QCVP.js} +1 -1
  18. package/build/_chunks/{chunk-PNRVZNL7.js → chunk-7LWPKOGV.js} +1 -1
  19. package/build/_chunks/{chunk-W3DEOBBE.js → chunk-7WMSYKS3.js} +1 -1
  20. package/build/_chunks/{chunk-XHFDGV2F.js → chunk-AJUXDLJF.js} +1 -1
  21. package/build/_chunks/chunk-AN73YAF5.js +1 -0
  22. package/build/_chunks/chunk-ANIJPMR3.js +1 -0
  23. package/build/_chunks/{chunk-ZGY3RIKJ.js → chunk-BAXN7S2I.js} +1 -1
  24. package/build/_chunks/{chunk-RFA33XQQ.js → chunk-BDW6QQXH.js} +1 -1
  25. package/build/_chunks/{chunk-CIB4WTBC.js → chunk-BTUNGKV3.js} +1 -1
  26. package/build/_chunks/chunk-CGGZ367Q.js +1 -0
  27. package/build/_chunks/chunk-CRSHY7OT.js +1 -0
  28. package/build/_chunks/chunk-DD3TYF3Y.js +1 -0
  29. package/build/_chunks/chunk-DJHXUNB6.js +1 -0
  30. package/build/_chunks/{chunk-MLZ63M2D.js → chunk-DXDJ7ZQI.js} +1 -1
  31. package/build/_chunks/chunk-E74Q7ILM.js +1 -0
  32. package/build/_chunks/{chunk-NHAXRGPW.js → chunk-F5H3U3NJ.js} +1 -1
  33. package/build/_chunks/chunk-FI5H6V55.js +2 -0
  34. package/build/_chunks/{chunk-AMOFAS7L.js → chunk-H6CKZAJN.js} +1 -1
  35. package/build/_chunks/chunk-HI2JOLXL.js +1 -0
  36. package/build/_chunks/{chunk-RK4UGNRY.js → chunk-HWNPJALM.js} +1 -1
  37. package/build/_chunks/{chunk-L42ISYQY.js → chunk-IEPHBQH7.js} +1 -1
  38. package/build/_chunks/{chunk-P6WIYEZX.js → chunk-JRQZANGX.js} +1 -1
  39. package/build/_chunks/{chunk-U5M6TIFS.js → chunk-JZK2QZX3.js} +1 -1
  40. package/build/_chunks/{chunk-JUEXC7Z2.js → chunk-K67DFHSS.js} +1 -1
  41. package/build/_chunks/{chunk-TQIWHM5B.js → chunk-L2PULJKK.js} +1 -1
  42. package/build/_chunks/{chunk-NDRHRXAO.js → chunk-L4KBXHZI.js} +2 -2
  43. package/build/_chunks/{chunk-HRQGL7NO.js → chunk-LBKOWCCN.js} +1 -1
  44. package/build/_chunks/{chunk-WLHB45KP.js → chunk-M2MILDFL.js} +1 -1
  45. package/build/_chunks/chunk-MBZF7BHG.js +1 -0
  46. package/build/_chunks/chunk-MBZVHLRC.js +1 -0
  47. package/build/_chunks/{chunk-KFBXVUQ5.js → chunk-MKDL4TYN.js} +1 -1
  48. package/build/_chunks/{chunk-47BHPSSP.js → chunk-MPIENGJC.js} +1 -1
  49. package/build/_chunks/{chunk-V5NBU5TE.js → chunk-N5K54WNL.js} +1 -1
  50. package/build/_chunks/{chunk-OCHPXIEK.js → chunk-NBVOXBIW.js} +1 -1
  51. package/build/_chunks/{chunk-GVXTYXRO.js → chunk-NIWGDILH.js} +1 -1
  52. package/build/_chunks/{chunk-TCI6NIBC.js → chunk-OEZIALDT.js} +1 -1
  53. package/build/_chunks/chunk-OTG5BKW6.js +1 -0
  54. package/build/_chunks/{chunk-7VUU5WEU.js → chunk-OW3B34TK.js} +1 -1
  55. package/build/_chunks/{chunk-PUI6B7OY.js → chunk-PF6NDV3G.js} +1 -1
  56. package/build/_chunks/chunk-PVUGMA6R.js +1 -0
  57. package/build/_chunks/{chunk-AXJZMO7Q.js → chunk-Q2GI76OF.js} +1 -1
  58. package/build/_chunks/{chunk-RYHHS7S3.js → chunk-QKUEMUT3.js} +1 -1
  59. package/build/_chunks/{chunk-6YAUL2OM.js → chunk-TMAA4QIY.js} +1 -1
  60. package/build/_chunks/{chunk-UGX2ZY27.js → chunk-UBMO65ZL.js} +1 -1
  61. package/build/_chunks/chunk-UGYJHC7J.js +2 -0
  62. package/build/_chunks/{chunk-WNQ3ONG2.js → chunk-UKV3UR3X.js} +1 -1
  63. package/build/_chunks/{chunk-OHN7F4WA.js → chunk-UPUJEOOS.js} +1 -1
  64. package/build/_chunks/{chunk-HZYY6NMO.js → chunk-VIIDA663.js} +1 -1
  65. package/build/_chunks/chunk-YWZJZGDA.js +1 -0
  66. package/build/_chunks/{chunk-HPDPFVUQ.js → chunk-ZLXQBIAQ.js} +1 -1
  67. package/build/_chunks/chunk-ZQ6WQPET.js +1 -0
  68. package/build/_chunks/{chunk-DKBPLNEE.js → chunk-ZQFDXQ4J.js} +1 -1
  69. package/build/components/ActionsDropdownMenu/index.js +1 -1
  70. package/build/components/Alert/index.js +1 -1
  71. package/build/components/Alert/style.d.ts +1 -1
  72. package/build/components/AreaChart/index.js +1 -1
  73. package/build/components/Autocomplete/index.js +1 -1
  74. package/build/components/AvatarStack/index.js +1 -1
  75. package/build/components/AvatarStack/style.d.ts +2 -2
  76. package/build/components/Calender/index.js +1 -1
  77. package/build/components/Calender/style.d.ts +4 -4
  78. package/build/components/Card/index.js +1 -1
  79. package/build/components/Card/style.d.ts +1 -1
  80. package/build/components/CardList/index.js +1 -1
  81. package/build/components/ColorPicker/index.js +1 -1
  82. package/build/components/ColorPicker/style.d.ts +2 -2
  83. package/build/components/ColumnViews/index.js +1 -1
  84. package/build/components/ColumnViews/styles.d.ts +4 -4
  85. package/build/components/ConfirmDialog/index.js +1 -1
  86. package/build/components/CountryFilter/index.js +1 -1
  87. package/build/components/CountryFlag/index.js +1 -1
  88. package/build/components/CurrenciesMenu/index.js +1 -1
  89. package/build/components/CurrenciesMenu/style.d.ts +2 -2
  90. package/build/components/CurrencyAmount/index.js +1 -1
  91. package/build/components/CurrencyAmount/style.d.ts +1 -1
  92. package/build/components/CurrencyAmountInput/index.js +1 -1
  93. package/build/components/CurrencyAmountInput/style.d.ts +1 -1
  94. package/build/components/CurrencySymbol/index.js +1 -1
  95. package/build/components/DateFilter/index.js +1 -1
  96. package/build/components/DateFilter/style.d.ts +3 -3
  97. package/build/components/DateInput/index.js +1 -1
  98. package/build/components/DeviceIcon/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/ExpandableChip/index.js +1 -1
  102. package/build/components/ExpandableChip/style.d.ts +10 -10
  103. package/build/components/ExportReportButton/index.js +1 -1
  104. package/build/components/ExportReportButton/style.d.ts +3 -3
  105. package/build/components/FileDropbox/index.js +1 -1
  106. package/build/components/FileDropbox/style.d.ts +2 -2
  107. package/build/components/FilePreview/index.js +1 -1
  108. package/build/components/FileUploader/index.js +1 -1
  109. package/build/components/FilterBar/index.js +1 -1
  110. package/build/components/FilterChip/index.js +1 -1
  111. package/build/components/FilterDropdown/index.js +1 -1
  112. package/build/components/FilterDropdown/style.d.ts +3 -3
  113. package/build/components/Filters/index.js +1 -1
  114. package/build/components/Filters/style.d.ts +3 -3
  115. package/build/components/FlipCard/index.js +1 -1
  116. package/build/components/FlipCard/style.d.ts +2 -2
  117. package/build/components/GroupedSelect/index.js +1 -1
  118. package/build/components/GroupedSelect/style.d.ts +2 -2
  119. package/build/components/HeatMap/index.js +1 -1
  120. package/build/components/ListColumnFilter/index.js +1 -1
  121. package/build/components/ListHeader/index.js +1 -1
  122. package/build/components/ListHeader/styles.d.ts +1 -1
  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/MaskedText/index.js +1 -1
  127. package/build/components/MultiLevelMenu/index.js +1 -1
  128. package/build/components/MultiLevelSelect/index.js +1 -1
  129. package/build/components/PhoneFilter/index.js +1 -1
  130. package/build/components/PhoneInput/index.js +1 -1
  131. package/build/components/ProgressRing/index.js +1 -1
  132. package/build/components/RadioGroup/index.js +1 -1
  133. package/build/components/RadioGroup/style.d.ts +2 -2
  134. package/build/components/RangeCalender/index.js +1 -1
  135. package/build/components/RatingCount/index.js +1 -1
  136. package/build/components/RatingCount/style.d.ts +2 -2
  137. package/build/components/SearchButton/index.js +1 -1
  138. package/build/components/SearchButton/style.d.ts +7 -7
  139. package/build/components/SearchInput/index.js +1 -1
  140. package/build/components/SearchInput/style.d.ts +2 -2
  141. package/build/components/Select/index.js +1 -1
  142. package/build/components/Select/style.d.ts +2 -2
  143. package/build/components/SheetViewChip/index.js +1 -1
  144. package/build/components/SheetViewChip/type.d.ts +1 -2
  145. package/build/components/Sidebar/index.js +1 -1
  146. package/build/components/StatusFilter/index.js +1 -1
  147. package/build/components/StatusIcons/AgreementIcon/style.d.ts +2 -2
  148. package/build/components/StatusIcons/AuthIcons/style.d.ts +4 -4
  149. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +2 -2
  150. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +12 -12
  151. package/build/components/StatusIcons/SourceIcons/style.d.ts +2 -2
  152. package/build/components/StatusIcons/index.js +1 -1
  153. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +3 -3
  154. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +4 -4
  155. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +4 -4
  156. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +2 -2
  157. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +2 -2
  158. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +3 -3
  159. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +2 -2
  160. package/build/components/TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon/style.d.ts +3 -3
  161. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +3 -3
  162. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +10 -10
  163. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +2 -2
  164. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +2 -2
  165. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +4 -4
  166. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +2 -2
  167. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +2 -2
  168. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +13 -13
  169. package/build/components/TableCells/CustomCells/style.d.ts +4 -4
  170. package/build/components/TableCells/index.js +1 -1
  171. package/build/components/TextInput/index.js +1 -1
  172. package/build/components/Timeline/index.js +1 -1
  173. package/build/components/Timepicker/index.js +1 -1
  174. package/build/components/Timepicker/style.d.ts +2 -2
  175. package/build/components/VerificationIcon/index.js +1 -1
  176. package/build/components/VirtualTables/index.js +1 -1
  177. package/build/components/Window/index.js +1 -1
  178. package/build/components/WindowServices/index.js +1 -1
  179. package/build/components/WindowServices/style.d.ts +1 -1
  180. package/build/components/WindowToolbar/index.js +1 -1
  181. package/build/components/WindowToolbar/style.d.ts +3 -3
  182. package/build/components/index.js +1 -1
  183. package/build/components/modules/JSONViewWindow/components/Content/style.d.ts +2 -2
  184. package/build/components/modules/JSONViewWindow/components/CopiedIndicator/style.d.ts +3 -3
  185. package/build/components/modules/JSONViewWindow/components/JSONSearchBar/style.d.ts +12 -12
  186. package/build/components/modules/JSONViewWindow/index.js +1 -1
  187. package/build/components/modules/JSONViewWindow/style.d.ts +5 -5
  188. package/build/components/modules/RangeCalender/components/QuickFilters/style.d.ts +1 -1
  189. package/build/components/modules/RangeCalender/components/RangeDatepicker/style.d.ts +1 -1
  190. package/build/components/modules/RangeCalender/index.js +1 -1
  191. package/build/components/modules/RangeCalender/style.d.ts +3 -3
  192. package/build/components/modules/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +1 -1
  193. package/build/components/modules/VirtualTables/components/ColumnFilter/style.d.ts +2 -2
  194. package/build/components/modules/VirtualTables/components/ErrorList/styles.d.ts +1 -1
  195. package/build/components/modules/VirtualTables/components/NestedMenu/styles.d.ts +1 -1
  196. package/build/components/modules/VirtualTables/components/TableFooter/style.d.ts +2 -2
  197. package/build/components/modules/VirtualTables/components/style.d.ts +3 -3
  198. package/build/components/modules/VirtualTables/index.js +1 -1
  199. package/build/components/modules/WindowShell/index.js +1 -1
  200. package/build/components/modules/WindowShell/style.d.ts +4 -4
  201. package/build/components/modules/index.js +1 -1
  202. package/build/components/primitives/Backdrop/style.d.ts +1 -1
  203. package/build/components/primitives/Input/style.d.ts +2 -2
  204. package/build/components/primitives/Slider/style.d.ts +1 -1
  205. package/build/components/primitives/Textarea/style.d.ts +2 -2
  206. package/build/components/primitives/index.js +1 -1
  207. package/build/constants/assets.d.ts +3 -0
  208. package/build/constants/index.js +1 -1
  209. package/build/datetime/components/DateRangeCalendar/TimePicker/style.d.ts +2 -2
  210. package/build/datetime/components/DateRangeCalendar/style.d.ts +5 -5
  211. package/build/datetime/components/index.js +1 -1
  212. package/build/datetime/index.js +1 -1
  213. package/build/datetime/wirePeriod.d.ts +3 -4
  214. package/build/hooks/core/index.d.ts +25 -0
  215. package/build/hooks/core/index.js +1 -0
  216. package/build/hooks/core/useCountMap.d.ts +12 -0
  217. package/build/hooks/core/useCountdown.d.ts +19 -0
  218. package/build/hooks/core/useCustomEventListener.d.ts +7 -0
  219. package/build/hooks/core/useCustomEventPublisher.d.ts +5 -0
  220. package/build/hooks/core/useDelayedVisibility.d.ts +6 -0
  221. package/build/hooks/core/useElementSize.d.ts +19 -0
  222. package/build/hooks/core/useIntersectionObserver.d.ts +14 -0
  223. package/build/hooks/core/useKeyDown.d.ts +10 -0
  224. package/build/hooks/core/useNetworkStatus.d.ts +25 -0
  225. package/build/hooks/core/useScrollShadow.d.ts +13 -0
  226. package/build/hooks/core/useScrollState.d.ts +32 -0
  227. package/build/hooks/core/useThemeMode.d.ts +9 -0
  228. package/build/hooks/core/useToastController.d.ts +40 -0
  229. package/build/hooks/core/useViewportSize.d.ts +11 -0
  230. package/build/hooks/index.js +1 -1
  231. package/build/hooks/useAppEventListener.d.ts +4 -1
  232. package/build/hooks/useAppEventPublisher.d.ts +4 -1
  233. package/build/hooks/useAppsInfo.d.ts +3 -0
  234. package/build/hooks/useBadgesCount.d.ts +3 -0
  235. package/build/hooks/useColumnFiltersGate.d.ts +2 -7
  236. package/build/hooks/useCountdown.d.ts +3 -0
  237. package/build/hooks/useDelayToSetValue.d.ts +3 -0
  238. package/build/hooks/useElementSizeObserver.d.ts +3 -14
  239. package/build/hooks/useFilterKeyDown.d.ts +3 -7
  240. package/build/hooks/useNetworkState.d.ts +6 -1
  241. package/build/hooks/useScrollWithShadow.d.ts +5 -2
  242. package/build/hooks/useScrolledTo.d.ts +6 -3
  243. package/build/hooks/useSelectedMerchantDetails.d.ts +1 -4
  244. package/build/hooks/useStickyHeaderShadow.d.ts +8 -2
  245. package/build/hooks/useTableViews.d.ts +3 -0
  246. package/build/hooks/useThemeMode.d.ts +4 -1
  247. package/build/hooks/useToast.d.ts +5 -1
  248. package/build/hooks/useWindowDimensions.d.ts +4 -4
  249. package/build/index.js +1 -1
  250. package/build/utils/index.js +1 -1
  251. package/package.json +5 -1
  252. package/build/_chunks/chunk-4NLQZJVN.js +0 -2
  253. package/build/_chunks/chunk-5KGT5D5O.js +0 -1
  254. package/build/_chunks/chunk-6WI5CW2I.js +0 -2
  255. package/build/_chunks/chunk-A2SC5BOB.js +0 -1
  256. package/build/_chunks/chunk-BQ46OLDY.js +0 -1
  257. package/build/_chunks/chunk-C2RHW4FN.js +0 -1
  258. package/build/_chunks/chunk-CNYQ4OI5.js +0 -1
  259. package/build/_chunks/chunk-EA5PYN5W.js +0 -1
  260. package/build/_chunks/chunk-EP5VELEJ.js +0 -1
  261. package/build/_chunks/chunk-HZ5YCUHJ.js +0 -2
  262. package/build/_chunks/chunk-LBFGWZXJ.js +0 -1
  263. package/build/_chunks/chunk-MSEBSRXG.js +0 -1
  264. package/build/_chunks/chunk-OSXKJYUX.js +0 -1
  265. package/build/_chunks/chunk-SO6E7CJM.js +0 -1
  266. package/build/_chunks/chunk-TXLFAI3O.js +0 -1
  267. package/build/_chunks/chunk-UVU4YIMS.js +0 -1
  268. package/build/_chunks/chunk-XTJZTHR6.js +0 -2
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  A comprehensive React component library providing:
11
11
 
12
12
  - **100+ UI components** (buttons, tables, dialogs, forms, filters)
13
- - **18 custom hooks** (toast, window dimensions, theme mode)
13
+ - **14 domain-free core hooks** plus the 18 legacy hooks (deprecated)
14
14
  - **47 utility modules** (date/currency formatting, validation)
15
15
  - **Full TypeScript support** with type definitions
16
16
  - **MUI-based theming** with dark/light modes and RTL/LTR support
@@ -49,6 +49,7 @@ function MyApp() {
49
49
  | **[Architecture](./docs/03-architecture.md)** | Layout, exports, module boundaries | 15 min |
50
50
  | **[Component Guide](./docs/04-component-guide.md)** | All components categorized with examples | Reference |
51
51
  | **[Component Development](./docs/05-component-development.md)** | Building new components | 20 min |
52
+ | **[Hooks](./docs/07-hooks.md)** | Domain-free core vs legacy hooks | 10 min |
52
53
 
53
54
  **For Developers**: Read in order: [overview](./docs/01-overview.md) → [setup](./docs/02-setup.md) → [component guide](./docs/04-component-guide.md).
54
55
 
@@ -127,7 +128,7 @@ See [Development](./docs/02-setup.md#development) for the detailed guide.
127
128
  ```
128
129
  src/
129
130
  ├── components/ # 100+ React components
130
- ├── hooks/ # 18 custom React hooks
131
+ ├── hooks/ # 14 core hooks + 18 legacy hooks
131
132
  ├── utils/ # 47 utility modules
132
133
  ├── types/ # TypeScript type definitions
133
134
  ├── constants/ # App constants and configs
File without changes
@@ -1 +1 @@
1
- import {p}from'./chunk-4NLQZJVN.js';import {nc}from'./chunk-EP5VELEJ.js';import {Nj,Mj,Lj,Jj,Hj,Ij,Kj}from'./chunk-XTJZTHR6.js';import {forwardRef,memo}from'react';import F from'lodash/startCase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var x="os-shared-VerificationIcon",n={root:`${x}-root`,img:`${x}-img`},h=(o=>(o.Verified="verified",o.Reviewed="reviewed",o.Completed="completed",o.Incomplete="incomplete",o.Rejected="rejected",o.Closed="closed",o.Archived="archived",o))(h||{});var a={verified:Kj,reviewed:Ij,completed:Hj,incomplete:Jj,rejected:Lj,closed:Mj,archived:Nj},t={verified:"#2ACE0029",reviewed:"#11D0FA29",completed:"#11D0FA29",incomplete:"#D9D9D929",rejected:"#FF3D0029",closed:"#D9D9D929",archived:"#D9D9D929"};var G=2.3,$=styled("span",{shouldForwardProp:r=>!["$variant","$bgColor","$size"].includes(r)})(({$variant:r="default",$bgColor:c,$size:e=10.5})=>{let i=Math.round(e*G);return {display:"inline-flex",alignItems:"center",justifyContent:"center",...r==="circle"&&{width:`${i}px`,height:`${i}px`,borderRadius:"50%",backgroundColor:c||t.incomplete}}});var R=forwardRef(({className:r,sx:c,icon:e,label:i,variant:D="default",size:s=10.5,width:N,height:o,...w},S)=>{let b=a[e]||a.incomplete,B=t[e]||t.incomplete,p$1=i===null?"":i||F(e),M=N??s,P=o??s,l=jsx($,{ref:S,className:nc(n.root,r),sx:c,"data-testid":"VerificationIcon",$variant:D,$bgColor:B,$size:s,...w,children:jsx("img",{className:n.img,loading:"lazy",src:b,alt:p$1||e,width:M,height:P})});return i===null?l:jsx(p,{title:p$1,wrapperProps:{display:"inline-flex"},children:l})});R.displayName="VerificationIcon";var E=memo(R);export{n as a,h as b,a as c,t as d,E as e};
1
+ import {p}from'./chunk-3LLAL7SZ.js';import {Hb}from'./chunk-2V7P76GA.js';import {Nj,Mj,Lj,Jj,Hj,Ij,Kj}from'./chunk-FI5H6V55.js';import {forwardRef,memo}from'react';import F from'lodash/startCase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var x="os-shared-VerificationIcon",n={root:`${x}-root`,img:`${x}-img`},h=(o=>(o.Verified="verified",o.Reviewed="reviewed",o.Completed="completed",o.Incomplete="incomplete",o.Rejected="rejected",o.Closed="closed",o.Archived="archived",o))(h||{});var a={verified:Kj,reviewed:Ij,completed:Hj,incomplete:Jj,rejected:Lj,closed:Mj,archived:Nj},t={verified:"#2ACE0029",reviewed:"#11D0FA29",completed:"#11D0FA29",incomplete:"#D9D9D929",rejected:"#FF3D0029",closed:"#D9D9D929",archived:"#D9D9D929"};var G=2.3,$=styled("span",{shouldForwardProp:r=>!["$variant","$bgColor","$size"].includes(r)})(({$variant:r="default",$bgColor:c,$size:e=10.5})=>{let i=Math.round(e*G);return {display:"inline-flex",alignItems:"center",justifyContent:"center",...r==="circle"&&{width:`${i}px`,height:`${i}px`,borderRadius:"50%",backgroundColor:c||t.incomplete}}});var R=forwardRef(({className:r,sx:c,icon:e,label:i,variant:D="default",size:s=10.5,width:N,height:o,...w},S)=>{let b=a[e]||a.incomplete,B=t[e]||t.incomplete,p$1=i===null?"":i||F(e),M=N??s,P=o??s,l=jsx($,{ref:S,className:Hb(n.root,r),sx:c,"data-testid":"VerificationIcon",$variant:D,$bgColor:B,$size:s,...w,children:jsx("img",{className:n.img,loading:"lazy",src:b,alt:p$1||e,width:M,height:P})});return i===null?l:jsx(p,{title:p$1,wrapperProps:{display:"inline-flex"},children:l})});R.displayName="VerificationIcon";var E=memo(R);export{n as a,h as b,a as c,t as d,E as e};
@@ -0,0 +1 @@
1
+ import {v as v$1}from'./chunk-DJHXUNB6.js';import {Kn as Kn$1,so as so$1,qo as qo$1,ro as ro$1,po,Fn,Mn,to as to$1,mo as mo$1,lo as lo$1,ko,jo as jo$1,io,ho as ho$1,Un as Un$1,Zn,go as go$1,bo,co,ao as ao$1,eo as eo$1,$n,_n as _n$1,Xn,fo as fo$1,Yn as Yn$1,Vn as Vn$1,do as _do,Wn as Wn$1,Nn,On as On$1,ep,Ye as Ye$1,Fo as Fo$1,Eo as Eo$1,Go}from'./chunk-FI5H6V55.js';import He from'lodash/orderBy';import Se from'lodash/get';import je from'axios';import Ke from'lodash/forOwn';import Le from'color';import nt from'dayjs';import Ue from'lodash/capitalize';import Fe from'lodash/startCase';import {getTimezone,getCountryForTimezone,getCountry}from'countries-and-timezones';import We from'dompurify';function Ft({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?He(e,t,r):e}var Rt=(e=[],t)=>e.length?e.sort((r,n)=>Se(r,t).localeCompare(Se(n,t))):[];function vt(e){return (e||[]).filter(t=>!!t)}var Mt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var Ee=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var be=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Ee(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},Ge=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},Ye=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),Bt=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return Ye(t)?Ge({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var _e="Test_Fixed_Secret_Key",S="tap-dashboard-navigation-data",Ae="tap-dashboard-user-data",E="tap-dashboard-user-jwt",b="tap-dashboard-report",_="tap-dashboard-calender-timezone",A="tap-dashboard-calender-timezone-history",w="tap-dashboard-global-table-mode",we="sheetview_columns",D="dock-preview-windows",C="views";function Gt(){localStorage.setItem(_e,Mn);}function De(){return localStorage.getItem(_e)}function Yt(e){localStorage.setItem(S,JSON.stringify(e));}function Kt(){try{let e=localStorage.getItem(S);if(!e)return null;let t=JSON.parse(e);return Ke(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Jt(){localStorage.removeItem(S);}var jt=e=>{localStorage.setItem(E,e);},I=()=>localStorage.getItem(E),qt=()=>{localStorage.removeItem(E);},Xt=e=>{localStorage.setItem(Ae,JSON.stringify(e));},O=()=>{let e=localStorage.getItem(Ae);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Zt=()=>{let e=O();return e?be(e?.segments,e?.active_segment_id,e?.active_segments):null},Qt=()=>{let e=O();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},Je=()=>{let e=I();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},er=()=>!Je()&&!!O(),tr=(e,t)=>{localStorage.setItem(`${b}-${e}`,t);},rr=e=>localStorage.getItem(`${b}-${e}`),nr=e=>{localStorage.removeItem(`${b}-${e}`);},or=e=>{localStorage.setItem(_,JSON.stringify(e));},sr=e=>{localStorage.setItem(A,JSON.stringify(e));},ir=()=>{try{let e=localStorage.getItem(_);return e?JSON.parse(e):null}catch{return null}},ar=()=>{try{let e=localStorage.getItem(A);return e?JSON.parse(e):null}catch{return null}},cr=()=>{localStorage.removeItem(_);},lr=()=>{localStorage.removeItem(A);},ur=e=>{localStorage.setItem(w,e);},dr=()=>localStorage.getItem(w)||"default",pr=()=>{localStorage.removeItem(w);},mr=e=>localStorage.setItem(we,JSON.stringify(e)),gr=()=>JSON.parse(localStorage.getItem(we)||"{}"),fr=e=>{try{localStorage.setItem(D,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},xr=()=>{try{let e=localStorage.getItem(D);return e?JSON.parse(e):[]}catch{return []}},yr=()=>{try{localStorage.removeItem(D);}catch(e){console.warn("Failed to remove preview storage:",e);}},Tr=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(C)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},hr=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(C)??"{}");localStorage.setItem(C,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},Ie=()=>{localStorage.clear();};var qe={headers:{"Content-Type":"application/json",Accept:"application/json"}},L=je.create({baseURL:Kn$1,headers:{...qe}}),Xe=["users/switch-segment","users/update-segment"];L.interceptors.request.use(e=>new Promise(t=>{let r=false;if(Xe.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));L.interceptors.request.use(e=>{e.headers.Authorization=I();let t=De();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});L.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&(Ie(),window.location.href="/login"),Promise.reject(e)));function Ar(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...l}=e??{};return {...l,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function Dr(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var Ir=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Or=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Fr(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function Rr(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var Oe={r:0,g:0,b:0,alpha:1},vr=e=>{try{let t=Le(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=Oe;return {value:Oe,stringified:`rgba(${r},${n},${o},${s})`}}},Mr=e=>Le(e).hexa();var $r={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},Ne={BHD:3,KWD:3,JOD:3,OMR:3},N=new Map,Br=(e,t)=>{if(Number.isNaN(e))return "0";try{return N.has(t)||N.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:Ne[t]?3:2})),N.get(t).format(e)}catch(r){return console.error(r),"0"}},Ze=e=>e%1===0,Qe=e=>e%.1===0,et=e=>Math.abs(e*10%1)===.1,Wr=(e,t)=>{let r=Ne[t],n=e.toString();return Number.isInteger(e)&&Ze(e)?n=e.toFixed(r?3:2):et(e)?n=`${n}${r?"00":"0"}`:Qe(e)&&(n=`${n}${r?"00":"0"}`),n};function tt(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,l]=0 .toFixed(t).split("."),u=`${a}.${l}`;return {integerAmount:a,decimalAmount:l,fullAmount:u}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function Vr(e=0,t=""){return tt(e,to$1[t]?.decimals??2)}function Hr(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var Gr=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var rt=new Intl.DisplayNames(["en"],{type:"region"});function Pe(e){try{return rt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function Kr(e){return e==="SA"}function Jr(e){return e==="OM"}var y=e=>v$1(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),Zr=(e,t)=>{if(!e)return "";let r=new Date,n=nt(e).isSame(r,"year");return t?v$1(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?v$1(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):v$1(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},Qr=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${y(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${y(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${y(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${y(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${y(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var rn=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},nn=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return Wn$1[t][r];case "refund":return _do[t][r];case "authorization":return Vn$1[t][r];case "intents":return Yn$1[t][r];case "topups":return fo$1[t][r];case "destinations":return Xn[t][r];case "leads":return _n$1[t][r];case "orders":return $n[t][r];case "tokens":return eo$1[t][r];case "payouts":return ao$1[t][r];case "protectCharges":return co[t][r];case "protectAuthorizations":return bo[t][r];case "wallet":return go$1[t][r];case "invoices":return Zn[t][r];case "authentications":return Un$1[t][r];case "walletDetails":return ho$1[t][r];case "walletStatement":return io[t][r];case "merchants":return jo$1[t][r];case "terminals":return ko[t][r];case "orchestrationTerminals":return lo$1[t][r];case "orchestrationRouting":return mo$1[t][r];default:return "100px"}},on=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},ot=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},sn=e=>{let t=ot();return e<t+1},an=e=>e==="default",cn=e=>e==="sheet",ln=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:Fn.authentication.code,serviceCode:Fn.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:Fn.order.code,serviceCode:Fn.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Fn.protect.code,serviceCode:Fn.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Fn.protect.code,serviceCode:Fn.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:Fn.tokens.code,serviceCode:Fn.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:Fn.payouts.code,serviceCode:Fn.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:Fn.acceptance.code,serviceCode:Fn.acceptance.services.topups.code,icon:"capture"}});var mn=e=>typeof e=="string"&&e.trim().length>0,F=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},P=new Map,R=(e,t)=>(P.has(t)||P.set(t,new RegExp(t,"gi")),e.match(P.get(t))?.length??0),gn=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),fn=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),xn=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},yn=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),Tn=e=>{let[t]=e.split("%");return parseFloat(t)||0},hn=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,Cn=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return Fe(n)},Sn=e=>Ue(Fe(e));var bn=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,_n=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function wn({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,l=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:l}}function In(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var v=e=>e==null||e==="";function On(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!v(r)):typeof t=="object"?Object.values(t||{}).some(r=>!v(r)):!v(t)))}var Pn=()=>Nn===On$1.TAPSTERS_FRONTEND;var Rn=e=>e.replace(/[^0-9]/g,"");function Un({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,l)=>{let u=o?l:Se(e,l);return typeof u=="string"&&t?.some(p=>u.includes(p)&&R(F(u,p),"_")===0)&&a.push(u),Array.isArray(u)&&u.length>0&&u.every(p=>typeof p=="string"&&t?.some(m=>p.includes(m)&&R(F(p,m),"_")===0))&&a.push(...u),a},[])}var Bn=450,Wn=600;var Vn=3;var zn=20,at=(r=>(r.Index="index",r.Date="date",r))(at||{}),Hn={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Gn={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Yn={date:"Date",index:"Index"},Kn={sheet:["sheet"],default:["advanced","default"],text:["text"]},Jn={sheet:"Advanced",default:"Sheet",text:"text"},ct={id:"default",label:"Default"},jn={id:"custom",label:"Custom view"},qn=[ct];function eo(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(m=>{let Ve=m.code?.toLowerCase()===o?.toLowerCase(),ze=m.name?.toLowerCase()===o?.toLowerCase();return (Ve||ze)&&m.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(m=>m.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,l=!!s&&(a||!i),p=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(l||p)})}function to(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function ro(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function no(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:f(r.name,t),name:f(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:Fe(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function oo(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var so=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function ao(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var Re=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},lo=(e,t)=>Re({type:"content",content:e},t),uo=(e,t)=>Re({type:"url",url:e},t);var ut=e=>!!(e?.isAxiosError&&!e?.response),mo=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,go=e=>!!e,dt=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,fo=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),T=({code:e,message:t})=>e?`${t} - ${e}`:t,xo=({error:e,fallbackMessage:t})=>{if(ut(e)){let n=t??"networkError";return {code:null,message:n,formatted:T({code:null,message:n})}}if(dt(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:T({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:T({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:T({code:null,message:r})}};var ho=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:Fe(e)}));function So(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function mt(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}function gt(e,t){return e.name===t.name&&e.size===t.size}function Eo(e,t){return t?.length?t.some(r=>mt(r)?gt(r.file,e):r.name===e.name):false}var Ao=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return ep[t]??Ye$1},wo=(e,t,r)=>`${e}-${t}-${r}`;var Io=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Oo(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var f=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,Lo=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Po=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},ft={AMERICAN_EXPRESS:"AMEX"},ve=e=>ft[e.toUpperCase()]??e.toUpperCase(),Fo=(e,t)=>!!e&&!!t&&ve(e)===ve(t);var vo=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var Uo=(e,t)=>{if(t==null)return "";let r=Fo$1[e];return e===Eo$1.COUNT?t===1?r:`${r}s`:r};var d={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},g={thin:"0.5px",thick:"1px",none:"0px"},Me={minHeight:"28px",fullHeight:"100%"},Bo=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?xt():t&&!r?yt():r?Tt(o):{}:{},xt=()=>({backgroundColor:d.background,color:d.primary}),yt=()=>({border:`${g.thin} solid ${d.primary}`,backgroundColor:d.background,color:d.primary,borderRadius:"2px"}),Tt=e=>{let t=ht(),r=Ct(e);return {borderWidth:t,borderStyle:"solid",borderColor:d.primary,borderBottom:r,height:Me.fullHeight,minHeight:Me.minHeight,display:"flex",alignItems:"center"}},ht=()=>{let{none:e,thin:t}=g;return `${e} ${t} ${t} ${t}`},Ct=e=>e?`${g.thick} solid ${d.primary}`:`${g.thin} solid ${d.border}`,Wo=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${g.thin} solid ${d.primary}`,borderBottom:`${g.thin} solid ${d.primary}`,borderRight:`${g.thin} solid ${r?d.primary:"none"}`,borderLeft:`${g.thin} solid ${t&&e?d.primary:"transparent"}`}),Vo={left:"flex-start",center:"center",right:"flex-end"};function zo(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Ho(...e){return e.filter(Boolean).join(" ")||void 0}var M=k(po,ro$1,qo$1);function k(e,t,r){let n=getTimezone(r);return n?{countryCode:e,label:`(GMT${n.utcOffsetStr}) ${Pe(e)??t}`,timezone:r,offset:n.utcOffset/so$1}:M}var bt=e=>{let t=getCountry(e),r=t?.timezones[0];if(!(!t||!r))return k(e,t.name,r)},jo=e=>bt(e)??M,qo=e=>{let t=getCountryForTimezone(e),r=getTimezone(e);return !t||!r?M:k(t.id,t.name,e)};function rs(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ue(Fe(f(t?.name))),type:t?.code,icon:Go[t.code]??Go.CARD,options:t.payment_methods?.map(r=>({name:f(r.name),type:r.code}))}))}}function ns(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:Ue(Fe(f(t?.name))),type:t?.code}))}}var Be=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],_t={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},At={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},wt={id:"action_icon",header:"",width:"36px",order:Be.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Dt=(e=Be)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [_t,At,...t,wt]},ss=(e,t,r)=>r&&t?Dt():[...e];var as=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let l=a.code?.toLowerCase();if(!l||!o.has(l))return a;let u=o.get(l)??false;return {...a,default:u,fields:a.fields?.map(p=>({...p,default:u}))}})}));return {...r,layout:s}});var us=(e,t)=>t.some(r=>!!e[r]),ds=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,l=typeof i.header=="function"?Fe(a):i.header;return {...i,header:l}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&We.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var Ot={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},gs=e=>typeof window>"u"?"":String(We.sanitize(e||"",Ot));var xs=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),ys=e=>e.toISOString();function hs(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Lt(e){return e!=null&&e!==""}function Ss(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Lt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}export{Br as $,ro as $a,sr as A,hn as Aa,vo as Ab,ir as B,Cn as Ba,Uo as Bb,ar as C,Sn as Ca,d as Cb,cr as D,bn as Da,Bo as Db,lr as E,_n as Ea,Wo as Eb,ur as F,wn as Fa,Vo as Fb,dr as G,In as Ga,zo as Gb,pr as H,v as Ha,Ho as Hb,mr as I,On as Ia,jo as Ib,gr as J,Pn as Ja,qo as Jb,fr as K,Rn as Ka,rs as Kb,xr as L,Un as La,ns as Lb,yr as M,Bn as Ma,Be as Mb,Tr as N,Wn as Na,Dt as Nb,hr as O,Vn as Oa,ss as Ob,Ie as P,zn as Pa,as as Pb,L as Q,at as Qa,us as Qb,Ar as R,Hn as Ra,ds as Rb,Dr as S,Gn as Sa,gs as Sb,Ir as T,Yn as Ta,xs as Tb,Or as U,Kn as Ua,ys as Ub,Fr as V,Jn as Va,hs as Vb,Rr as W,ct as Wa,Lt as Wb,vr as X,jn as Xa,Ss as Xb,Mr as Y,qn as Ya,$r as Z,eo as Za,Ne as _,to as _a,Ft as a,Wr as aa,no as ab,Rt as b,tt as ba,oo as bb,vt as c,Vr as ca,so as cb,Mt as d,Hr as da,ao as db,be as e,Gr as ea,Re as eb,Ge as f,Pe as fa,lo as fb,Ye as g,Kr as ga,uo as gb,Bt as h,Jr as ha,ut as hb,Gt as i,y as ia,mo as ib,De as j,Zr as ja,go as jb,Yt as k,Qr as ka,dt as kb,Kt as l,rn as la,fo as lb,Jt as m,nn as ma,xo as mb,jt as n,on as na,ho as nb,I as o,sn as oa,So as ob,qt as p,an as pa,mt as pb,Xt as q,cn as qa,gt as qb,O as r,ln as ra,Eo as rb,Zt as s,mn as sa,Ao as sb,Qt as t,F as ta,wo as tb,Je as u,R as ua,Io as ub,er as v,gn as va,Oo as vb,tr as w,fn as wa,f as wb,rr as x,xn as xa,Lo as xb,nr as y,yn as ya,Po as yb,or as z,Tn as za,Fo as zb};
@@ -1,2 +1,2 @@
1
- import {a as a$2}from'./chunk-TQIWHM5B.js';import {a as a$1}from'./chunk-WNQ3ONG2.js';import {aa,ba}from'./chunk-4NLQZJVN.js';import {Dc,nc}from'./chunk-EP5VELEJ.js';import {forwardRef,useState,useMemo,useCallback,memo}from'react';import w from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';import qe from'react-date-object';import _ from'react-date-object/calendars/arabic';import Ke from'react-date-object/calendars/gregorian';import q from'react-date-object/locales/arabic_en';import Xe from'react-date-object/locales/gregorian_en';var r={gregorian:"gregorian",hijri:"hijri"};var s="os-shared-DateInput",a={root:`${s}-root`,card:`${s}-card`,header:`${s}-header`,label:`${s}-label`,parts:`${s}-parts`,day:`${s}-day`,month:`${s}-month`,year:`${s}-year`,switcher:`${s}-switcher`,switcherLabel:`${s}-switcherLabel`,helperText:`${s}-helperText`},Ie=r.gregorian,ge="Day",De="Month",Me="Year",Se="Switch to Hijri Calendar",we="Switch to Gregorian Calendar",Ce=4,$e=8,Pe=.85,A=.55,Ve=4,S={day:52,year:72},Oe={day:44},je={day:1,month:3,year:1},ke=200,J=1900,ve=10,Fe=["January","February","March","April","May","June","July","August","September","October","November","December"],Le=["Muharram","Safar","Rabi' al-Awwal","Rabi' al-Thani","Jumada al-Awwal","Jumada al-Thani","Rajab","Sha'ban","Ramadan","Shawwal","Dhul-Qa'dah","Dhul-Hijjah"],He={day:null,month:null,year:null},vt=256,ye=30,be={height:ye,minHeight:ye,boxSizing:"border-box"},D={MenuListProps:{sx:{gap:0}},PaperProps:{sx:{maxHeight:vt,[`& .${a$1.option}`]:be,"& .MuiMenuItem-root":be}}},Ne={...D,PaperProps:{...D.PaperProps,sx:{...D.PaperProps.sx,minWidth:S.year}}};function We(e){return jsxs("svg",{width:12,height:12,viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,...e,children:[jsx("path",{d:"M7.375 8.625H1.625C0.935 8.625 0.375 8.065 0.375 7.375V1.625C0.375 0.935 0.935 0.375 1.625 0.375H7.375C8.065 0.375 8.625 0.935 8.625 1.625V7.375C8.625 8.065 8.065 8.625 7.375 8.625Z",stroke:"currentColor",strokeWidth:"0.75"}),jsx("path",{d:"M0.375 2.375H8.625",stroke:"currentColor",strokeWidth:"0.75"}),jsx("circle",{cx:"2.375",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"6.625",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"2.375",cy:"6.625",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"6.625",r:"0.625",fill:"currentColor"})]})}var{day:Lt,month:Ht,year:Nt}=je,Re=[`& .${a.day}`,`& .${a.month}`,`& .${a.year}`].join(", "),U={boxSizing:"border-box",maxWidth:"100%",overflow:"hidden",minWidth:0},Te=styled(w)({display:"flex",flexDirection:"column",width:"100%",minWidth:0,containerType:"inline-size"}),Ye=styled(w,{shouldForwardProp:e=>!["$error","$feedbackType","$hasSwitcher","$hasFeedback"].includes(e)})(({theme:e,$error:t,$feedbackType:n,$hasSwitcher:o,$hasFeedback:l})=>{let m=(n?aa(e,n).borderColor:void 0)??(t?e.palette.error.main:e.v2.palette.grey[100]),y=`${Ce}px`,P=l?0:o?`${$e}px`:y;return {display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",boxSizing:"border-box",backgroundColor:e.palette.common.white,border:`1px solid ${m}`,borderBottom:l?"none":`1px solid ${m}`,borderRadius:`${y} ${y} ${P} ${P}`,"& .MuiInputBase-root.Mui-disabled":{opacity:Pe}}}),Ge=styled(w)({display:"flex",flexDirection:"column",gap:8,padding:8,boxSizing:"border-box",width:"100%"}),Be=styled(w)({display:"flex",alignItems:"center",gap:4,minHeight:10}),ze=styled("span")(({theme:e})=>({fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"100%",letterSpacing:0,color:e.palette.grey[700]})),Ee=styled(w)({"--date-input-day-min":`${S.day}px`,"--date-input-year-min":`${S.year}px`,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",gap:Ve,width:"100%",minWidth:0,boxSizing:"border-box",[`& .${a.day}`]:{...U,flex:`${Lt} 0 0`,minWidth:"var(--date-input-day-min)"},[`& .${a.month}`]:{...U,flex:`${Ht} 0 0`},[`& .${a.year}`]:{...U,flex:`${Nt} 0 0`,minWidth:"var(--date-input-year-min)"},[`${Re} .MuiFormControl-root, ${Re} .MuiInputBase-root`]:{width:"100%",maxWidth:"100%",boxSizing:"border-box"},[`& .${a.day} .MuiFormControl-root`]:{minWidth:"var(--date-input-day-min)"},[`& .${a.month} .MuiFormControl-root`]:{minWidth:0},[`& .${a.year} .MuiFormControl-root`]:{minWidth:"var(--date-input-year-min)"},[`& .${a.year} .${a$1.value}`]:{flex:"0 0 auto",minWidth:"4ch",fontVariantNumeric:"tabular-nums",textOverflow:"clip"},[`@container (max-width: ${ke}px)`]:{"--date-input-day-min":`${Oe.day}px`,[`& .${a.day}`]:{flex:"0 0 var(--date-input-day-min)"},[`& .${a.month}`]:{flex:"1 1 0"},[`& .${a.year}`]:{flex:"0 0 var(--date-input-year-min)"}}}),Ae=styled("button")(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",width:"100%",minHeight:32,margin:0,padding:8,boxSizing:"border-box",border:"none",borderRadius:0,backgroundColor:alpha(e.palette.common.black,.05),color:e.palette.text.primary,cursor:"pointer",appearance:"none",fontFamily:"inherit",whiteSpace:"nowrap","&:hover:not(:disabled)":{backgroundColor:alpha(e.palette.common.black,.08)},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"},"&:focus-visible:not(:disabled)":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:-2}})),Je=styled("span")({display:"inline-flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:4,minWidth:0,whiteSpace:"nowrap"}),Ue=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({$disabled:e=false})=>({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",opacity:e?A:1,"& svg":{display:"block",width:12,height:12}})),Qe=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>({display:"block",fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"16px",letterSpacing:0,whiteSpace:"nowrap",color:e.v2.palette.base.black,opacity:t?A:1})),Ze=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.palette.common.black,.6),fontSize:10,lineHeight:"10px",marginTop:4,display:"block"})),F={width:"100%",maxWidth:"100%"},_e={...F,minWidth:0};function i(e){if(e==null||e==="")return null;let t=Number(e);return Number.isFinite(t)?t:null}function et(e){return i(e.day)!=null&&i(e.month)!=null&&i(e.year)!=null}function tt(e){return {day:e.day,month:e.month.number,year:e.year}}function at(e,t){let n=i(e.day),o=i(e.month),l=i(e.year);if(n==null||o==null||l==null)return null;let u=t===r.hijri,m=new qe({year:l,month:o,day:1,calendar:u?_:Ke,locale:u?q:Xe}),y=m.month.length;return m.setDay(Math.min(Math.max(n,1),y)),m}function Z(e){let t=at(e,r.gregorian);return t?(t.convert(_,q),tt(t)):null}function Wt(e){let t=at(e,r.hijri);return t?(t.convert(Ke,Xe),tt(t)):null}function rt(e,t){return t!==r.hijri?e:Z(e)??{day:null,month:null,year:null}}function nt(e,t){return t!==r.hijri?e:Wt(e)}function Rt(e,t){return new Date(e,t,0).getDate()}function K(e,t,n){return t==null||t<1||t>12?30:n===r.hijri?e==null?30:new qe({year:e,month:t,day:1,calendar:_,locale:q}).month.length:Rt(e??2001,t)}function ot(e){let t=Math.max(1,Math.min(31,Math.floor(e)));return Array.from({length:t},(n,o)=>{let l=o+1;return {value:l,label:String(l)}})}function lt(e){return (e===r.hijri?Le:Fe).map((n,o)=>({value:o+1,label:n}))}function it(e,t){let n=Math.floor(Math.min(e,t)),o=Math.floor(Math.max(e,t)),l=[];for(let u=o;u>=n;u-=1)l.push({value:u,label:String(u)});return l}function pt(e,t){let n=Z({day:1,month:1,year:e}),o=Z({day:31,month:12,year:t});return {yearMin:i(n?.year)??e,yearMax:i(o?.year)??t}}function ut(){return new Date().getFullYear()+ve}function dt(e,t){let n=i(e.day);if(n==null)return e;let o=K(i(e.year),i(e.month),t);return n<=o?e:{...e,day:o}}function st(e){return e===r.hijri?r.gregorian:r.hijri}function ct(e){return e==null?null:Array.isArray(e)?e[0]??null:e}var mt=forwardRef(function({label:t,value:n,onChange:o,dayOptions:l,monthOptions:u,yearOptions:m,dayLabel:y=ge,monthLabel:P=De,yearLabel:xt=Me,hasCalendarSwitcher:ae=false,calendarMode:re,onCalendarModeChange:ne,switcherLabel:ft,yearMin:L=J,yearMax:yt,disabled:x=false,error:bt=false,helperText:oe,feedback:H,id:M="DateInput",className:It,sx:gt,dateInputClassNames:f},Dt){let N=n!==void 0,[Mt,St]=useState(He),W=N?n:Mt,R=re!==void 0,[wt,Ct]=useState(Ie),V=R?re:wt,[le,T]=useState(null),$t=!!(l||u||m),b=V===r.hijri&&!$t,{isProvided:ie,isVisible:pe,type:Pt}=Dc(H),ue=!!bt&&!ie,de=t?.trim()??"",se=ft??(V===r.hijri?we:Se),I=useMemo(()=>{if(!b)return W;let d=rt(W,r.hijri);return et(d)?d:le??d},[le,b,W]),Y=yt??ut(),O=useMemo(()=>b?pt(L,Y):{yearMin:L,yearMax:Y},[b,Y,L]),G=b?r.hijri:r.gregorian,ce=K(i(I.year),i(I.month),G),Vt=useMemo(()=>l??ot(ce),[ce,l]),Ot=useMemo(()=>u??lt(G),[G,u]),jt=useMemo(()=>m??it(O.yearMin,O.yearMax),[O.yearMax,O.yearMin,m]),B=useCallback(d=>{let j=l?d:dt(d,r.gregorian);N||St(j),o?.(j);},[l,N,o]),z=useCallback(d=>j=>{let E={...I,[d]:ct(j)};if(!b){B(E);return}let me=nt(E,r.hijri);if(me){T(null),B(me);return}T(E);},[B,I,b]),kt=useCallback(()=>{if(x)return;let d=st(V);T(null),R||Ct(d),ne?.(d);},[V,x,R,ne]);return jsxs(Te,{ref:Dt,id:M,"data-testid":"DateInput",className:nc(a.root,f?.root,It),sx:gt,children:[jsxs(Ye,{className:nc(a.card,f?.card),$error:ue,$feedbackType:pe?Pt:void 0,$hasSwitcher:ae,$hasFeedback:pe,children:[jsxs(Ge,{children:[de?jsx(Be,{className:nc(a.header,f?.header),children:jsx(ze,{className:nc(a.label,f?.label),children:de})}):null,jsxs(Ee,{className:nc(a.parts,f?.parts),children:[jsx(w,{className:a.day,children:jsx(a$2,{id:`${M}-day`,label:y,options:Vt,value:I.day,onChange:z("day"),disabled:x,MenuProps:D,sx:F})}),jsx(w,{className:a.month,children:jsx(a$2,{id:`${M}-month`,label:P,options:Ot,value:I.month,onChange:z("month"),disabled:x,MenuProps:D,sx:_e})}),jsx(w,{className:a.year,children:jsx(a$2,{id:`${M}-year`,label:xt,options:jt,value:I.year,onChange:z("year"),disabled:x,MenuProps:Ne,sx:F})})]})]}),ae?jsx(Ae,{type:"button",id:`${M}-switcher`,className:nc(a.switcher,f?.switcher),onClick:kt,disabled:x,"aria-label":se,children:jsxs(Je,{children:[jsx(Ue,{$disabled:x,children:jsx(We,{"aria-hidden":true})}),jsx(Qe,{className:nc(a.switcherLabel,f?.switcherLabel),$disabled:x,children:se})]})}):null]}),H?jsx(ba,{...H}):null,!ie&&oe?jsx(Ze,{className:nc(a.helperText,f?.helperText),$error:ue,children:oe}):null]})});mt.displayName="DateInput";var ht=memo(mt);
1
+ import {a as a$2}from'./chunk-L2PULJKK.js';import {a as a$1}from'./chunk-UKV3UR3X.js';import {aa,ba}from'./chunk-3LLAL7SZ.js';import {Xb,Hb}from'./chunk-2V7P76GA.js';import {forwardRef,useState,useMemo,useCallback,memo}from'react';import w from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';import qe from'react-date-object';import _ from'react-date-object/calendars/arabic';import Ke from'react-date-object/calendars/gregorian';import q from'react-date-object/locales/arabic_en';import Xe from'react-date-object/locales/gregorian_en';var r={gregorian:"gregorian",hijri:"hijri"};var s="os-shared-DateInput",a={root:`${s}-root`,card:`${s}-card`,header:`${s}-header`,label:`${s}-label`,parts:`${s}-parts`,day:`${s}-day`,month:`${s}-month`,year:`${s}-year`,switcher:`${s}-switcher`,switcherLabel:`${s}-switcherLabel`,helperText:`${s}-helperText`},Ie=r.gregorian,ge="Day",De="Month",Me="Year",Se="Switch to Hijri Calendar",we="Switch to Gregorian Calendar",Ce=4,$e=8,Pe=.85,A=.55,Ve=4,S={day:52,year:72},Oe={day:44},je={day:1,month:3,year:1},ke=200,J=1900,ve=10,Fe=["January","February","March","April","May","June","July","August","September","October","November","December"],Le=["Muharram","Safar","Rabi' al-Awwal","Rabi' al-Thani","Jumada al-Awwal","Jumada al-Thani","Rajab","Sha'ban","Ramadan","Shawwal","Dhul-Qa'dah","Dhul-Hijjah"],He={day:null,month:null,year:null},vt=256,ye=30,be={height:ye,minHeight:ye,boxSizing:"border-box"},D={MenuListProps:{sx:{gap:0}},PaperProps:{sx:{maxHeight:vt,[`& .${a$1.option}`]:be,"& .MuiMenuItem-root":be}}},Ne={...D,PaperProps:{...D.PaperProps,sx:{...D.PaperProps.sx,minWidth:S.year}}};function We(e){return jsxs("svg",{width:12,height:12,viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,...e,children:[jsx("path",{d:"M7.375 8.625H1.625C0.935 8.625 0.375 8.065 0.375 7.375V1.625C0.375 0.935 0.935 0.375 1.625 0.375H7.375C8.065 0.375 8.625 0.935 8.625 1.625V7.375C8.625 8.065 8.065 8.625 7.375 8.625Z",stroke:"currentColor",strokeWidth:"0.75"}),jsx("path",{d:"M0.375 2.375H8.625",stroke:"currentColor",strokeWidth:"0.75"}),jsx("circle",{cx:"2.375",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"6.625",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"2.375",cy:"6.625",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"6.625",r:"0.625",fill:"currentColor"})]})}var{day:Lt,month:Ht,year:Nt}=je,Re=[`& .${a.day}`,`& .${a.month}`,`& .${a.year}`].join(", "),U={boxSizing:"border-box",maxWidth:"100%",overflow:"hidden",minWidth:0},Te=styled(w)({display:"flex",flexDirection:"column",width:"100%",minWidth:0,containerType:"inline-size"}),Ye=styled(w,{shouldForwardProp:e=>!["$error","$feedbackType","$hasSwitcher","$hasFeedback"].includes(e)})(({theme:e,$error:t,$feedbackType:n,$hasSwitcher:o,$hasFeedback:l})=>{let m=(n?aa(e,n).borderColor:void 0)??(t?e.palette.error.main:e.v2.palette.grey[100]),y=`${Ce}px`,P=l?0:o?`${$e}px`:y;return {display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",boxSizing:"border-box",backgroundColor:e.palette.common.white,border:`1px solid ${m}`,borderBottom:l?"none":`1px solid ${m}`,borderRadius:`${y} ${y} ${P} ${P}`,"& .MuiInputBase-root.Mui-disabled":{opacity:Pe}}}),Ge=styled(w)({display:"flex",flexDirection:"column",gap:8,padding:8,boxSizing:"border-box",width:"100%"}),Be=styled(w)({display:"flex",alignItems:"center",gap:4,minHeight:10}),ze=styled("span")(({theme:e})=>({fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"100%",letterSpacing:0,color:e.palette.grey[700]})),Ee=styled(w)({"--date-input-day-min":`${S.day}px`,"--date-input-year-min":`${S.year}px`,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",gap:Ve,width:"100%",minWidth:0,boxSizing:"border-box",[`& .${a.day}`]:{...U,flex:`${Lt} 0 0`,minWidth:"var(--date-input-day-min)"},[`& .${a.month}`]:{...U,flex:`${Ht} 0 0`},[`& .${a.year}`]:{...U,flex:`${Nt} 0 0`,minWidth:"var(--date-input-year-min)"},[`${Re} .MuiFormControl-root, ${Re} .MuiInputBase-root`]:{width:"100%",maxWidth:"100%",boxSizing:"border-box"},[`& .${a.day} .MuiFormControl-root`]:{minWidth:"var(--date-input-day-min)"},[`& .${a.month} .MuiFormControl-root`]:{minWidth:0},[`& .${a.year} .MuiFormControl-root`]:{minWidth:"var(--date-input-year-min)"},[`& .${a.year} .${a$1.value}`]:{flex:"0 0 auto",minWidth:"4ch",fontVariantNumeric:"tabular-nums",textOverflow:"clip"},[`@container (max-width: ${ke}px)`]:{"--date-input-day-min":`${Oe.day}px`,[`& .${a.day}`]:{flex:"0 0 var(--date-input-day-min)"},[`& .${a.month}`]:{flex:"1 1 0"},[`& .${a.year}`]:{flex:"0 0 var(--date-input-year-min)"}}}),Ae=styled("button")(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",width:"100%",minHeight:32,margin:0,padding:8,boxSizing:"border-box",border:"none",borderRadius:0,backgroundColor:alpha(e.palette.common.black,.05),color:e.palette.text.primary,cursor:"pointer",appearance:"none",fontFamily:"inherit",whiteSpace:"nowrap","&:hover:not(:disabled)":{backgroundColor:alpha(e.palette.common.black,.08)},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"},"&:focus-visible:not(:disabled)":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:-2}})),Je=styled("span")({display:"inline-flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:4,minWidth:0,whiteSpace:"nowrap"}),Ue=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({$disabled:e=false})=>({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",opacity:e?A:1,"& svg":{display:"block",width:12,height:12}})),Qe=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>({display:"block",fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"16px",letterSpacing:0,whiteSpace:"nowrap",color:e.v2.palette.base.black,opacity:t?A:1})),Ze=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.palette.common.black,.6),fontSize:10,lineHeight:"10px",marginTop:4,display:"block"})),F={width:"100%",maxWidth:"100%"},_e={...F,minWidth:0};function i(e){if(e==null||e==="")return null;let t=Number(e);return Number.isFinite(t)?t:null}function et(e){return i(e.day)!=null&&i(e.month)!=null&&i(e.year)!=null}function tt(e){return {day:e.day,month:e.month.number,year:e.year}}function at(e,t){let n=i(e.day),o=i(e.month),l=i(e.year);if(n==null||o==null||l==null)return null;let u=t===r.hijri,m=new qe({year:l,month:o,day:1,calendar:u?_:Ke,locale:u?q:Xe}),y=m.month.length;return m.setDay(Math.min(Math.max(n,1),y)),m}function Z(e){let t=at(e,r.gregorian);return t?(t.convert(_,q),tt(t)):null}function Wt(e){let t=at(e,r.hijri);return t?(t.convert(Ke,Xe),tt(t)):null}function rt(e,t){return t!==r.hijri?e:Z(e)??{day:null,month:null,year:null}}function nt(e,t){return t!==r.hijri?e:Wt(e)}function Rt(e,t){return new Date(e,t,0).getDate()}function K(e,t,n){return t==null||t<1||t>12?30:n===r.hijri?e==null?30:new qe({year:e,month:t,day:1,calendar:_,locale:q}).month.length:Rt(e??2001,t)}function ot(e){let t=Math.max(1,Math.min(31,Math.floor(e)));return Array.from({length:t},(n,o)=>{let l=o+1;return {value:l,label:String(l)}})}function lt(e){return (e===r.hijri?Le:Fe).map((n,o)=>({value:o+1,label:n}))}function it(e,t){let n=Math.floor(Math.min(e,t)),o=Math.floor(Math.max(e,t)),l=[];for(let u=o;u>=n;u-=1)l.push({value:u,label:String(u)});return l}function pt(e,t){let n=Z({day:1,month:1,year:e}),o=Z({day:31,month:12,year:t});return {yearMin:i(n?.year)??e,yearMax:i(o?.year)??t}}function ut(){return new Date().getFullYear()+ve}function dt(e,t){let n=i(e.day);if(n==null)return e;let o=K(i(e.year),i(e.month),t);return n<=o?e:{...e,day:o}}function st(e){return e===r.hijri?r.gregorian:r.hijri}function ct(e){return e==null?null:Array.isArray(e)?e[0]??null:e}var mt=forwardRef(function({label:t,value:n,onChange:o,dayOptions:l,monthOptions:u,yearOptions:m,dayLabel:y=ge,monthLabel:P=De,yearLabel:xt=Me,hasCalendarSwitcher:ae=false,calendarMode:re,onCalendarModeChange:ne,switcherLabel:ft,yearMin:L=J,yearMax:yt,disabled:x=false,error:bt=false,helperText:oe,feedback:H,id:M="DateInput",className:It,sx:gt,dateInputClassNames:f},Dt){let N=n!==void 0,[Mt,St]=useState(He),W=N?n:Mt,R=re!==void 0,[wt,Ct]=useState(Ie),V=R?re:wt,[le,T]=useState(null),$t=!!(l||u||m),b=V===r.hijri&&!$t,{isProvided:ie,isVisible:pe,type:Pt}=Xb(H),ue=!!bt&&!ie,de=t?.trim()??"",se=ft??(V===r.hijri?we:Se),I=useMemo(()=>{if(!b)return W;let d=rt(W,r.hijri);return et(d)?d:le??d},[le,b,W]),Y=yt??ut(),O=useMemo(()=>b?pt(L,Y):{yearMin:L,yearMax:Y},[b,Y,L]),G=b?r.hijri:r.gregorian,ce=K(i(I.year),i(I.month),G),Vt=useMemo(()=>l??ot(ce),[ce,l]),Ot=useMemo(()=>u??lt(G),[G,u]),jt=useMemo(()=>m??it(O.yearMin,O.yearMax),[O.yearMax,O.yearMin,m]),B=useCallback(d=>{let j=l?d:dt(d,r.gregorian);N||St(j),o?.(j);},[l,N,o]),z=useCallback(d=>j=>{let E={...I,[d]:ct(j)};if(!b){B(E);return}let me=nt(E,r.hijri);if(me){T(null),B(me);return}T(E);},[B,I,b]),kt=useCallback(()=>{if(x)return;let d=st(V);T(null),R||Ct(d),ne?.(d);},[V,x,R,ne]);return jsxs(Te,{ref:Dt,id:M,"data-testid":"DateInput",className:Hb(a.root,f?.root,It),sx:gt,children:[jsxs(Ye,{className:Hb(a.card,f?.card),$error:ue,$feedbackType:pe?Pt:void 0,$hasSwitcher:ae,$hasFeedback:pe,children:[jsxs(Ge,{children:[de?jsx(Be,{className:Hb(a.header,f?.header),children:jsx(ze,{className:Hb(a.label,f?.label),children:de})}):null,jsxs(Ee,{className:Hb(a.parts,f?.parts),children:[jsx(w,{className:a.day,children:jsx(a$2,{id:`${M}-day`,label:y,options:Vt,value:I.day,onChange:z("day"),disabled:x,MenuProps:D,sx:F})}),jsx(w,{className:a.month,children:jsx(a$2,{id:`${M}-month`,label:P,options:Ot,value:I.month,onChange:z("month"),disabled:x,MenuProps:D,sx:_e})}),jsx(w,{className:a.year,children:jsx(a$2,{id:`${M}-year`,label:xt,options:jt,value:I.year,onChange:z("year"),disabled:x,MenuProps:Ne,sx:F})})]})]}),ae?jsx(Ae,{type:"button",id:`${M}-switcher`,className:Hb(a.switcher,f?.switcher),onClick:kt,disabled:x,"aria-label":se,children:jsxs(Je,{children:[jsx(Ue,{$disabled:x,children:jsx(We,{"aria-hidden":true})}),jsx(Qe,{className:Hb(a.switcherLabel,f?.switcherLabel),$disabled:x,children:se})]})}):null]}),H?jsx(ba,{...H}):null,!ie&&oe?jsx(Ze,{className:Hb(a.helperText,f?.helperText),$error:ue,children:oe}):null]})});mt.displayName="DateInput";var ht=memo(mt);
2
2
  export{r as a,a as b,ht as c};
@@ -1,2 +1,2 @@
1
- import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-4NLQZJVN.js';import {nc}from'./chunk-EP5VELEJ.js';import {createContext,memo,forwardRef,useId,useRef,useState,useCallback,useMemo,useEffect,useImperativeHandle,useContext}from'react';import In from'@mui/material/ClickAwayListener';import un from'lodash/debounce';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import G from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var L="os-shared-MultiLevelMenu",a={root:`${L}-root`,panel:`${L}-panel`,submenu:`${L}-submenu`,header:`${L}-header`,footer:`${L}-footer`,search:`${L}-search`,searchButton:`${L}-searchButton`,list:`${L}-list`,item:`${L}-item`,itemActive:`${L}-itemActive`,itemAction:`${L}-itemAction`,itemOpen:`${L}-itemOpen`,itemFlipped:`${L}-itemFlipped`,startAdornment:`${L}-startAdornment`,content:`${L}-content`,label:`${L}-label`,hint:`${L}-hint`,count:`${L}-count`,chevron:`${L}-chevron`,endAdornment:`${L}-endAdornment`,empty:`${L}-empty`,loader:`${L}-loader`},me="data-multi-level-submenu",Me="data-multi-level-submenu-anchor",pe="data-multi-level-item",Ze=80,qe=100,Ue=300,fe=300,Qe={strategy:"fixed"},Ye={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"},Ge=["searchText","label"],Ne="Search",Je="No results found";var ke=createContext(null),Jt=()=>{let e=useContext(ke);if(!e)throw new Error("MultiLevelMenu parts must render inside MultiLevelMenu.");return e},Xe=Jt;var Y=e=>Array.isArray(e.options),_=e=>e.kind==="action",et=e=>(e.options??[]).filter(t=>!_(t)),tt=e=>Y(e)?et(e).length:null;function nt(e,t,n,l){if(_(l)||t==="none")return false;if(l.isSelectable!==void 0)return l.isSelectable;let o=t==="multiple"?true:!Y(l);return e===void 0?o:typeof e=="boolean"?e:typeof e=="function"?e(n,l):(e[n]??o)}function lt(e){let t=new Map,n=[],l=(o,u,c)=>{for(let s of o)t.set(s.id,{node:s,parentId:u,depth:c}),n.push(s.id),s.options&&l(s.options,s.id,c+1);};return l(e,null,0),{entries:t,order:n}}function ot(e,t){let n=[],l=t?e.entries.get(t):void 0;for(;l;)n.unshift(l.node),l=l.parentId?e.entries.get(l.parentId):void 0;return n}var it=(e,t=[])=>{for(let n of e.options??[])t.push(n.id),it(n,t);return t},rt=(e,t,n)=>!_(e)&&!e.isDisabled&&n(e,t);function Ie(e,t,n,l){let o=new Set(e),u=new Set,c=new Set;if(n)for(let i of Array.from(o)){let r=t.entries.get(i);if(!r||!Y(r.node))continue;let M=(p,S)=>{for(let y of p.options??[])(rt(y,S+1,l)||Y(y))&&o.add(y.id),M(y,S+1);};M(r.node,r.depth);}let s=(i,r)=>{let M=et(i).filter(v=>!v.isDisabled),p=(i.options??[]).map(v=>s(v,r+1)),S,y=p.some(v=>v!=="unchecked");if(n&&M.length>0){if(S=M.every(T=>u.has(T.id))?"checked":y?"indeterminate":"unchecked",S==="checked"&&!l(i,r))return u.add(i.id),o.delete(i.id),S;S==="checked"?o.add(i.id):o.delete(i.id);}else S=o.has(i.id)?"checked":y?"indeterminate":"unchecked";return S==="checked"&&u.add(i.id),S==="indeterminate"&&c.add(i.id),S};for(let i of t.order){let r=t.entries.get(i);r&&r.parentId===null&&s(r.node,0);}let d=t.order.filter(i=>o.has(i)),C=Array.from(o).filter(i=>!t.entries.has(i));return {value:[...d,...C],checked:u,indeterminate:c}}function ut(e,t,n,l,o,u,c){if(l==="none")return e;if(l==="single")return n?[t]:e.filter(i=>i!==t);let s=new Set(e),d=u.entries.get(t);if(!o||!d)return n?s.add(t):s.delete(t),Array.from(s);let C=[t,...it(d.node)];if(n)for(let i of C){let r=u.entries.get(i);r&&(i===t||rt(r.node,r.depth,c)||Y(r.node))&&s.add(i);}else {for(let r of C)s.delete(r);let i=d.parentId;for(;i;)s.delete(i),i=u.entries.get(i)?.parentId??null;}return Array.from(s)}var st=(e,t)=>e.order.filter(n=>{let l=e.entries.get(n);return !!(l&&!l.node.isDisabled&&!_(l.node)&&t(l.node,l.depth))});function Ee(e,t,n){return e.reduce((l,o)=>{let u=o.options?Ee(o.options,t,n):void 0;return (t.has(o.id)||n.has(o.id)||u&&u.length>0)&&l.push({...o,...o.options?{options:u}:{}}),l},[])}var Xt=(e,t)=>{let n=e[t],l=e.data&&typeof e.data=="object"?e.data[t]:void 0,o=n??l;return typeof o=="string"||typeof o=="number"?String(o):""},_t=(e,t,n)=>n.some(l=>Xt(e,l).toLowerCase().includes(t));function Te(e,t,n,l){return !t||n.isServerSide?e:n.filterNode?e.reduce((o,u)=>{let c=n.filterNode?.(u,t);return c&&o.push(c),o},[]):e.reduce((o,u)=>{if(_t(u,t,l))return o.push(u),o;if(u.options){let c=Te(u.options,t,n,l);c.length>0&&o.push({...u,options:c});}return o},[])}var ve=e=>e?.length===1&&Y(e[0])&&!_(e[0])?e[0]:null,at=e=>{let t=e.options?{...e,options:e.options.map(at)}:e,n=ve(t.options);for(;n;)t={...t,options:n.options,submenu:{...t.submenu,...n.submenu}},n=ve(t.options);return t};function ct(e,t){let n=e.map(at),l=t,o=ve(n);for(;o;)l={...l,...o.submenu},n=o.options??[],o=ve(n);return {options:n,level:l}}var en=(e,t="right")=>{let n=e?.closest(`.${Q.panel}`);if(!e||!n)return 0;let l=e.getBoundingClientRect(),o=n.getBoundingClientRect(),u=t.startsWith("left")?l.left-o.left:o.right-l.right;return Math.max(0,u)},dt=(e,t)=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:n})=>[0,en(e.current,n)]}},{name:"multiLevelMenuPlacementTracker",enabled:true,phase:"afterWrite",fn:({state:n})=>t(n.placement)}],_e=(e,t)=>t instanceof Node&&!!e?.contains(t),mt=(e,t,n)=>{if(_e(t,e)||_e(n,e))return true;if(!(e instanceof Element)||!n)return false;let l=e.closest(`[${me}]`)?.getAttribute(Me),o=l?document.getElementById(l):null;return !!(o&&n.contains(o))},he=e=>Array.from(e?.querySelectorAll(`[${pe}]:not([aria-disabled="true"])`)??[]);function ge(e,t,n){let l=he(e);if(l.length===0)return;if(n==="first")return l[0].focus();if(n==="last")return l[l.length-1].focus();let o=l.findIndex(c=>c===t),u=o===-1?n===1?0:l.length-1:(o+n+l.length)%l.length;l[u].focus();}function Re(e,t=20){window.setTimeout(()=>{let n=e();if(he(n).length>0){ge(n,null,"first");return}t>1&&Re(e,t-1);},16);}var ln=({options:e,selectionMode:t,isCascading:n,isSelectable:l,value:o,defaultValue:u,onChange:c})=>{let[s,d]=useState(u??[]),C=o!==void 0,i=C?o:s,r=useMemo(()=>lt(e),[e]),M=t==="multiple"&&n,p=useCallback((h,g)=>nt(l,t,g,h),[l,t]),S=useCallback((h,g)=>{let D=r.entries.get(h.id);return D?p(D.node,D.depth):p(h,g)},[r,p]),y=useMemo(()=>Ie(i,r,M,p),[i,r,M,p]),v=useRef(y);v.current=y;let T=useCallback(h=>h.map(g=>r.entries.get(g)?.node).filter(g=>!!g),[r]),k=useCallback((h,g,D)=>{let O=Ie(h,r,M,p);C||d(O.value),c?.(O.value,{node:g,isSelected:D,selectedNodes:T(O.value)});},[r,M,p,C,c,T]),K=useCallback((h,g)=>{k(ut(v.current.value,h.id,g,t,M,r,p),h,g);},[k,t,M,r,p]),R=useCallback(()=>{t==="multiple"&&k(st(r,p),null,true);},[k,t,r,p]),H=useCallback(()=>k([],null,false),[k]),V=useCallback(()=>T(v.current.value),[T]),J=useCallback(()=>Ee(e,v.current.checked,v.current.indeterminate),[e]);return {index:r,canSelectRow:S,snapshot:y,toggle:K,selectAll:R,clear:H,getSelectedNodes:V,getSelectedTree:J}},pt=ln;var sn=(e,t)=>{let[n,l]=useState(""),[o,u]=useState(""),c=useRef(t?.onSearch);c.current=t?.onSearch;let s=t?.debounceMs??Ue,d=useMemo(()=>un(p=>{u(p.toLowerCase()),c.current?.(p);},s),[s]);useEffect(()=>()=>d.cancel(),[d]);let C=useCallback(p=>{l(p),d(p.trim());},[d]),i=useCallback(()=>{d.cancel(),l(""),u(""),c.current?.("");},[d]),r=t?.searchBy??Ge,M=useMemo(()=>t?Te(e,o,t,r):e,[e,o,t,r]);return {inputValue:n,query:o,filteredOptions:M,isSearching:!!(t&&o),handleChange:C,handleClear:i}},gt=sn;var Lt=()=>jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M0.40999 4.88245e-05C0.327141 0.00131442 0.246554 0.0272714 0.178541 0.0745982C0.110529 0.121925 0.0581841 0.188469 0.0282057 0.265715C-0.00177272 0.34296 -0.00802105 0.427394 0.01026 0.508211C0.0285411 0.589028 0.0705201 0.662552 0.130825 0.719375L4.54108 5.0001L0.130825 9.28083C0.0907115 9.3187 0.0585239 9.36416 0.0361329 9.41458C0.0137419 9.465 0.00159394 9.51937 0.00039481 9.57452C-0.000804325 9.62967 0.00896913 9.68452 0.0291477 9.73586C0.0493262 9.7872 0.0795072 9.83403 0.117937 9.87361C0.156367 9.91319 0.202279 9.94473 0.253007 9.96641C0.303734 9.9881 0.358264 9.99948 0.413429 9.99991C0.468594 10.0003 0.523294 9.98979 0.57435 9.9689C0.625406 9.948 0.6718 9.91717 0.710837 9.87819L5.42899 5.29878C5.46895 5.25997 5.50071 5.21354 5.52241 5.16224C5.5441 5.11094 5.55527 5.0558 5.55527 5.0001C5.55527 4.9444 5.5441 4.88926 5.52241 4.83796C5.50071 4.78666 5.46895 4.74023 5.42899 4.70142L0.710837 0.122015C0.671414 0.0825733 0.62447 0.0514536 0.572791 0.0305023C0.521111 0.00955091 0.465749 -0.00080514 0.40999 4.88245e-05Z",fill:"currentColor"})}),St=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),yt=()=>jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Mn=()=>{let[e,t]=useState(null),n=useRef(null),l=useCallback(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null);},[]),o=useCallback(s=>{l(),t(s);},[l]),u=useCallback(s=>{l(),t(d=>s===void 0||d===s?null:d);},[l]),c=useCallback((s,d,C,i)=>{mt(d,C,i)||(l(),n.current=window.setTimeout(()=>{n.current=null,t(r=>r===s?null:r);},Ze));},[l]);return useEffect(()=>l,[l]),{openId:e,open:o,close:u,scheduleClose:c,cancelClose:l}},bt=Mn;var Ct=styled(G)({display:"flex",flexDirection:"column",maxWidth:340}),Ae={flexShrink:0},wt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),Nt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),kt=styled(G)(({theme:e})=>({...Ae,padding:e.v2.spacing(8)})),It=styled(G)({display:"flex",flexDirection:"column",maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"}),re=styled(G)(({theme:e})=>({...e.v2.typography.textVariants.body.small.medium,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",minHeight:36,padding:`${e.v2.spacing(4)} ${e.v2.spacing(12)}`,color:alpha(e.v2.palette.base.black,.4),cursor:"default",textAlign:"center"})),Et=styled(V)(({theme:e})=>{let{brand:t,base:n}=e.v2.palette,l={boxShadow:e.v2.elevation[200],zIndex:1};return {minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,textTransform:"none",backgroundColor:n.white,outline:"none","&:hover":l,[`&.${a.itemOpen}`]:l,[`&.${a.itemActive}`]:l,"&:focus-visible":{boxShadow:`inset 0 0 0 1px ${t[500]}, ${e.v2.elevation[200]}`,zIndex:1},[`&.${a.itemAction}`]:{color:t[500]}}}),Tt=styled("span")({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& img, & svg":{display:"block",maxWidth:20,maxHeight:20}}),De=styled(G)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),flex:1,minWidth:0})),Rt=styled(G)({display:"flex",flexDirection:"column",flex:1,minWidth:0}),At={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.body.small.regular,...At,lineHeight:"normal",color:"inherit"})),Pt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.caption.regular,...At,fontSize:8,lineHeight:"normal",color:alpha(e.v2.palette.base.black,.5)})),Ht=styled("span",{shouldForwardProp:e=>e!=="$isOneDigit"})(({theme:e,$isOneDigit:t=true})=>({...e.v2.typography.textVariants.caption.semibold,fontSize:8,fontWeight:700,lineHeight:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:14,boxSizing:"border-box",...t?{width:13,borderRadius:"50%"}:{padding:`0 ${e.v2.spacing(3)}`,borderRadius:e.v2.radius(4)},backgroundColor:e.v2.palette.grey[100],color:e.v2.palette.grey[900]})),$t=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Bt=styled("span")({display:"flex",alignItems:"center",flexShrink:0}),Ot=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:8,flexShrink:0,color:e.v2.palette.grey[900],transition:"transform 120ms ease",[`.${a.itemFlipped} &`]:{transform:"rotate(180deg)"}})),Ft=styled(f)({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root, svg":{width:"12px !important",height:"12px !important"}}),Kt=styled(l)({padding:0}),Pe=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:16,height:16,padding:0,margin:"1px 0 0 8px",border:0,borderRadius:"50%",background:"transparent",cursor:"pointer","&:disabled":{cursor:"default"},"& svg":{display:"block"}});function gn({node:e,depth:t,path:n,isSubmenuOpen:l,isHoverDisabled:o,isTabStop:u,onSubmenuOpen:c,onSubmenuClose:s,onSubmenuScheduleClose:d,onSubmenuCancelClose:C}){let i=Xe(),{selectionMode:r,submenuTrigger:M,checked:p,indeterminate:S,activePath:y,canSelectRow:v,getItemCount:T,renderItem:k}=i,K=useId(),R$1=useRef(null),[H,V]=useState(null),J=useCallback(f=>{R$1.current=f,V(f);},[]),h=useRef(null),[g,D]=useState(false),O=useMemo(()=>dt(R$1,f=>D(f.startsWith("left"))),[]),b=Y(e),W=_(e),A=!!e.isDisabled,I=v(e,t),E=p.has(e.id),z=!E&&S.has(e.id),q=y.has(e.id),w=b&&l&&!A,F=b?T(e):null,j=useRef(i.onSubmenuOpen);j.current=i.onSubmenuOpen,useEffect(()=>{w&&j.current?.(e);},[w]);let U=useCallback(()=>{A||(I&&i.toggle(e,r==="single"?true:!E),b&&(M==="click"||!I)&&(w&&M==="click"?s(e.id):c(e.id)),e.onClick?.(e,n),i.onNodeClick?.(e,n),!b&&i.isClosingOnSelect&&(I||r==="none"||W)&&i.requestClose("select"));},[i,b,W,A,w,I,E,e,s,c,n,r,M]),m=f=>{f.stopPropagation(),U();},$=()=>{M!=="hover"||o||A||!b||c(e.id);},ue=f=>{M!=="hover"||!b||d(e.id,f.relatedTarget,R$1.current,h.current);},le=()=>Re(()=>h.current?.querySelector(`.${a.list}`)??null),se=f=>{if(!(f.target===R$1.current)){w&&(f.key==="ArrowLeft"||f.key==="Escape")&&(f.preventDefault(),f.stopPropagation(),s(e.id),R$1.current?.focus());return}if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),U(),b&&!I&&le();return}f.key==="ArrowRight"&&b&&!A&&(f.preventDefault(),f.stopPropagation(),c(e.id),le());},ae={depth:t,path:n,isSelected:E,isIndeterminate:z,isActive:q,isDisabled:A,isSelectable:I,hasOptions:b,isSubmenuOpen:w,isSubmenuFlipped:g,itemCount:F},ee=null;I&&r==="multiple"&&(ee=jsx(Ft,{size:"small",checked:E,indeterminate:z,tabIndex:-1})),I&&r==="single"&&(ee=jsx(Kt,{checked:E,tabIndex:-1}));let Q=null;e.endAdornment!==void 0?Q=e.endAdornment===null?null:jsx(Bt,{className:a.endAdornment,children:e.endAdornment}):(b||W)&&(Q=jsx(Ot,{className:a.chevron,"aria-hidden":true,children:jsx(Lt,{})}));let X="menuitem";return I&&r==="multiple"&&(X="menuitemcheckbox"),I&&r==="single"&&(X="menuitemradio"),jsxs(Et,{ref:J,id:K,role:X,tabIndex:u?0:-1,"aria-checked":I?z?"mixed":E:void 0,"aria-haspopup":b?"menu":void 0,"aria-expanded":b?w:void 0,"aria-disabled":A||void 0,"aria-current":q||void 0,"data-testid":"MultiLevelMenuItem","data-node-id":e.id,[pe]:"",className:nc(a.item,q&&a.itemActive,W&&a.itemAction,w&&a.itemOpen,w&&g&&a.itemFlipped),isSelected:E,isIndeterminate:z,isDisabled:A,startAdornment:ee,onClick:m,onMouseEnter:$,onMouseLeave:ue,onKeyDown:se,children:[k?jsx(De,{className:a.content,children:k(e,ae)}):jsxs(De,{className:a.content,children:[e.startAdornment?jsx(Tt,{className:a.startAdornment,children:e.startAdornment}):null,jsxs(Rt,{children:[jsx(Dt,{className:a.label,title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.hint?jsx(Pt,{className:a.hint,title:typeof e.hint=="string"?e.hint:void 0,children:e.hint}):null]})]}),F&&!k||Q!==null?jsxs($t,{children:[F&&!k?jsx(Ht,{className:a.count,$isOneDigit:F<10,children:F}):null,Q]}):null,b?jsx(R,{ref:h,[me]:"",[Me]:K,open:w&&H!==null,anchorEl:H,placement:"right-start",modifiers:O,popperOptions:Qe,sx:i.submenuSx,panelProps:{role:"menu",className:nc(a.panel,a.submenu,i.className),"data-depth":t+1,"data-level-key":e.submenu?.levelKey},onClick:f=>f.stopPropagation(),onMouseEnter:C,onMouseLeave:f=>d(e.id,f.relatedTarget,R$1.current,h.current),children:jsx(ye,{options:e.options??[],level:e.submenu??{},depth:t+1,path:n})}):null]})}var zt=memo(gn);function bn({options:e,level:t,depth:n$1,path:l}){let{header:o,footer:u,search:c,emptyState:s,isLoading:d,hasMore:C,isLoadingMore:i,onLoadMore:r}=t,M=useRef(null),p=useRef(null),[S,y]=useState(void 0),v$1=useRef(null),[T,k]=useState(false),{openId:K,open:R,close:H,scheduleClose:V,cancelClose:J}=bt(),{inputValue:h,filteredOptions:g,isSearching:D,handleChange:O,handleClear:b}=gt(e,c),W=m=>{m&&!h&&y(p.current?.getBoundingClientRect().width),m||y(void 0),O(m);},A=()=>{y(void 0),b();};useEffect(()=>()=>{v$1.current!==null&&window.clearTimeout(v$1.current);},[]);let I=useCallback(()=>{k(true),H(),v$1.current!==null&&window.clearTimeout(v$1.current),v$1.current=window.setTimeout(()=>{v$1.current=null,k(false);},qe);},[H]),E=m=>{let $=Ye[m.key];$===void 0||!he(M.current).includes(m.target)||(m.preventDefault(),m.stopPropagation(),ge(M.current,m.target,$));},z=m=>{m.key==="ArrowDown"&&(m.preventDefault(),ge(M.current,null,"first"));},q=g.find(m=>!m.isDisabled)?.id,w=g.map(m=>jsx(zt,{node:m,depth:n$1,path:[...l,m],isSubmenuOpen:K===m.id,isHoverDisabled:T,isTabStop:m.id===q,onSubmenuOpen:R,onSubmenuClose:H,onSubmenuScheduleClose:V,onSubmenuCancelClose:J},m.id)),F=!d&&g.length===0&&D,j=null;d?j=jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):F?j=jsx(re,{className:a.empty,role:"status",children:c?.noResults??Je}):g.length===0&&s&&(j=jsx(re,{className:a.empty,role:"status",children:s}));let U=i?jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):null;return jsxs(Ct,{ref:p,"data-depth":n$1,sx:S?{minWidth:S}:void 0,children:[o?jsxs(Fragment,{children:[jsx(wt,{className:a.header,children:o}),jsx(v,{flexItem:true})]}):null,c?jsxs(Fragment,{children:[jsx(kt,{className:a.search,children:jsx(L$1,{fullWidth:true,size:"md",placeholder:c.placeholder??Ne,value:h,onChange:m=>W(m.target.value),onKeyDown:z,inputProps:{autoComplete:"off","aria-label":c.placeholder??Ne},endAdornment:h?jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Clear search",onMouseDown:m=>m.preventDefault(),onClick:m=>{m.stopPropagation(),A();},children:jsx(yt,{})}):jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Search",tabIndex:-1,disabled:true,children:jsx(St,{})})})}),jsx(v,{flexItem:true})]}):null,j??(r?jsxs(da,{ref:M,className:a.list,loadMoreItems:async()=>r(),hasMore:C,isFetchingNextPage:!!i,onScroll:I,onKeyDown:E,sx:{maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"},children:[w,U]}):jsxs(It,{ref:M,className:a.list,onScroll:I,onKeyDown:E,children:[w,U]})),u?jsxs(Fragment,{children:[jsx(v,{flexItem:true}),jsx(Nt,{className:a.footer,children:u})]}):null]})}var ye=memo(bn);function En(e,t){let{id:n,options:l,anchorEl:o,open:u,placement:c="bottom-start",onClose:s,selectionMode:d="multiple",isCascading:C=true,isSelectable:i,value:r,defaultValue:M,onChange:p,activeId:S,onNodeClick:y,onSubmenuOpen:v,isClosingOnSelect:T=d!=="multiple",submenuTrigger:k="hover",shouldPromoteSingleChild:K=false,getItemCount:R$1=tt,renderItem:H,className:V,sx:J,submenuSx:h,popperProps:g,header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}=e,w=u??!!o,F=useRef(null),j=pt({options:l,selectionMode:d,isCascading:C,isSelectable:i,value:r,defaultValue:M,onChange:p}),{index:U,canSelectRow:m,snapshot:$,toggle:ue,selectAll:le,clear:se,getSelectedNodes:ae,getSelectedTree:ee}=j,Q=useMemo(()=>({header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}),[D,O,b,W,A,I,E,z,q]),X=useMemo(()=>K?ct(l,Q):{options:l,level:Q},[K,l,Q]),f=useMemo(()=>new Set(ot(U,S).map(B=>B.id)),[U,S]),Ce=useRef(s);Ce.current=s;let oe=useCallback(B=>Ce.current?.(B),[]);useEffect(()=>{if(!w)return;let B=Oe=>{Oe.key==="Escape"&&!Oe.defaultPrevented&&oe("escape");};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[w,oe]),useImperativeHandle(t,()=>({get element(){return F.current},getValue:()=>$.value,getSelectedNodes:ae,getSelectedTree:ee,selectAll:le,clear:se}),[$.value,ae,ee,le,se]);let Ut=useMemo(()=>({selectionMode:d,submenuTrigger:k,isClosingOnSelect:T,checked:$.checked,indeterminate:$.indeterminate,activePath:f,className:V,submenuSx:h,canSelectRow:m,getItemCount:R$1,toggle:ue,requestClose:oe,onNodeClick:y,onSubmenuOpen:v,renderItem:H}),[d,k,T,$.checked,$.indeterminate,f,V,h,m,R$1,ue,oe,y,v,H]),Qt=B=>{w&&(o&&B.target instanceof Node&&o.contains(B.target)||oe("clickAway"));};return jsx(ke.Provider,{value:Ut,children:jsx(In,{onClickAway:Qt,children:jsx(R,{...g,ref:F,id:n,"data-testid":n??"MultiLevelMenu",open:w,anchorEl:o,placement:c,sx:J,onClick:B=>B.stopPropagation(),panelProps:{role:"menu",className:nc(a.root,a.panel,V),"aria-multiselectable":d==="multiple"||void 0,"data-depth":0,"data-level-key":X.level.levelKey},children:jsx(ye,{options:X.options,level:X.level,depth:0,path:[]})})})})}var qt=memo(forwardRef(En));qt.displayName="MultiLevelMenu";var Tn=qt;
1
+ import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-3LLAL7SZ.js';import {Hb}from'./chunk-2V7P76GA.js';import {createContext,memo,forwardRef,useId,useRef,useState,useCallback,useMemo,useEffect,useImperativeHandle,useContext}from'react';import In from'@mui/material/ClickAwayListener';import un from'lodash/debounce';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import G from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var L="os-shared-MultiLevelMenu",a={root:`${L}-root`,panel:`${L}-panel`,submenu:`${L}-submenu`,header:`${L}-header`,footer:`${L}-footer`,search:`${L}-search`,searchButton:`${L}-searchButton`,list:`${L}-list`,item:`${L}-item`,itemActive:`${L}-itemActive`,itemAction:`${L}-itemAction`,itemOpen:`${L}-itemOpen`,itemFlipped:`${L}-itemFlipped`,startAdornment:`${L}-startAdornment`,content:`${L}-content`,label:`${L}-label`,hint:`${L}-hint`,count:`${L}-count`,chevron:`${L}-chevron`,endAdornment:`${L}-endAdornment`,empty:`${L}-empty`,loader:`${L}-loader`},me="data-multi-level-submenu",Me="data-multi-level-submenu-anchor",pe="data-multi-level-item",Ze=80,qe=100,Ue=300,fe=300,Qe={strategy:"fixed"},Ye={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"},Ge=["searchText","label"],Ne="Search",Je="No results found";var ke=createContext(null),Jt=()=>{let e=useContext(ke);if(!e)throw new Error("MultiLevelMenu parts must render inside MultiLevelMenu.");return e},Xe=Jt;var Y=e=>Array.isArray(e.options),_=e=>e.kind==="action",et=e=>(e.options??[]).filter(t=>!_(t)),tt=e=>Y(e)?et(e).length:null;function nt(e,t,n,l){if(_(l)||t==="none")return false;if(l.isSelectable!==void 0)return l.isSelectable;let o=t==="multiple"?true:!Y(l);return e===void 0?o:typeof e=="boolean"?e:typeof e=="function"?e(n,l):(e[n]??o)}function lt(e){let t=new Map,n=[],l=(o,u,c)=>{for(let s of o)t.set(s.id,{node:s,parentId:u,depth:c}),n.push(s.id),s.options&&l(s.options,s.id,c+1);};return l(e,null,0),{entries:t,order:n}}function ot(e,t){let n=[],l=t?e.entries.get(t):void 0;for(;l;)n.unshift(l.node),l=l.parentId?e.entries.get(l.parentId):void 0;return n}var it=(e,t=[])=>{for(let n of e.options??[])t.push(n.id),it(n,t);return t},rt=(e,t,n)=>!_(e)&&!e.isDisabled&&n(e,t);function Ie(e,t,n,l){let o=new Set(e),u=new Set,c=new Set;if(n)for(let i of Array.from(o)){let r=t.entries.get(i);if(!r||!Y(r.node))continue;let M=(p,S)=>{for(let y of p.options??[])(rt(y,S+1,l)||Y(y))&&o.add(y.id),M(y,S+1);};M(r.node,r.depth);}let s=(i,r)=>{let M=et(i).filter(v=>!v.isDisabled),p=(i.options??[]).map(v=>s(v,r+1)),S,y=p.some(v=>v!=="unchecked");if(n&&M.length>0){if(S=M.every(T=>u.has(T.id))?"checked":y?"indeterminate":"unchecked",S==="checked"&&!l(i,r))return u.add(i.id),o.delete(i.id),S;S==="checked"?o.add(i.id):o.delete(i.id);}else S=o.has(i.id)?"checked":y?"indeterminate":"unchecked";return S==="checked"&&u.add(i.id),S==="indeterminate"&&c.add(i.id),S};for(let i of t.order){let r=t.entries.get(i);r&&r.parentId===null&&s(r.node,0);}let d=t.order.filter(i=>o.has(i)),C=Array.from(o).filter(i=>!t.entries.has(i));return {value:[...d,...C],checked:u,indeterminate:c}}function ut(e,t,n,l,o,u,c){if(l==="none")return e;if(l==="single")return n?[t]:e.filter(i=>i!==t);let s=new Set(e),d=u.entries.get(t);if(!o||!d)return n?s.add(t):s.delete(t),Array.from(s);let C=[t,...it(d.node)];if(n)for(let i of C){let r=u.entries.get(i);r&&(i===t||rt(r.node,r.depth,c)||Y(r.node))&&s.add(i);}else {for(let r of C)s.delete(r);let i=d.parentId;for(;i;)s.delete(i),i=u.entries.get(i)?.parentId??null;}return Array.from(s)}var st=(e,t)=>e.order.filter(n=>{let l=e.entries.get(n);return !!(l&&!l.node.isDisabled&&!_(l.node)&&t(l.node,l.depth))});function Ee(e,t,n){return e.reduce((l,o)=>{let u=o.options?Ee(o.options,t,n):void 0;return (t.has(o.id)||n.has(o.id)||u&&u.length>0)&&l.push({...o,...o.options?{options:u}:{}}),l},[])}var Xt=(e,t)=>{let n=e[t],l=e.data&&typeof e.data=="object"?e.data[t]:void 0,o=n??l;return typeof o=="string"||typeof o=="number"?String(o):""},_t=(e,t,n)=>n.some(l=>Xt(e,l).toLowerCase().includes(t));function Te(e,t,n,l){return !t||n.isServerSide?e:n.filterNode?e.reduce((o,u)=>{let c=n.filterNode?.(u,t);return c&&o.push(c),o},[]):e.reduce((o,u)=>{if(_t(u,t,l))return o.push(u),o;if(u.options){let c=Te(u.options,t,n,l);c.length>0&&o.push({...u,options:c});}return o},[])}var ve=e=>e?.length===1&&Y(e[0])&&!_(e[0])?e[0]:null,at=e=>{let t=e.options?{...e,options:e.options.map(at)}:e,n=ve(t.options);for(;n;)t={...t,options:n.options,submenu:{...t.submenu,...n.submenu}},n=ve(t.options);return t};function ct(e,t){let n=e.map(at),l=t,o=ve(n);for(;o;)l={...l,...o.submenu},n=o.options??[],o=ve(n);return {options:n,level:l}}var en=(e,t="right")=>{let n=e?.closest(`.${Q.panel}`);if(!e||!n)return 0;let l=e.getBoundingClientRect(),o=n.getBoundingClientRect(),u=t.startsWith("left")?l.left-o.left:o.right-l.right;return Math.max(0,u)},dt=(e,t)=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:n})=>[0,en(e.current,n)]}},{name:"multiLevelMenuPlacementTracker",enabled:true,phase:"afterWrite",fn:({state:n})=>t(n.placement)}],_e=(e,t)=>t instanceof Node&&!!e?.contains(t),mt=(e,t,n)=>{if(_e(t,e)||_e(n,e))return true;if(!(e instanceof Element)||!n)return false;let l=e.closest(`[${me}]`)?.getAttribute(Me),o=l?document.getElementById(l):null;return !!(o&&n.contains(o))},he=e=>Array.from(e?.querySelectorAll(`[${pe}]:not([aria-disabled="true"])`)??[]);function ge(e,t,n){let l=he(e);if(l.length===0)return;if(n==="first")return l[0].focus();if(n==="last")return l[l.length-1].focus();let o=l.findIndex(c=>c===t),u=o===-1?n===1?0:l.length-1:(o+n+l.length)%l.length;l[u].focus();}function Re(e,t=20){window.setTimeout(()=>{let n=e();if(he(n).length>0){ge(n,null,"first");return}t>1&&Re(e,t-1);},16);}var ln=({options:e,selectionMode:t,isCascading:n,isSelectable:l,value:o,defaultValue:u,onChange:c})=>{let[s,d]=useState(u??[]),C=o!==void 0,i=C?o:s,r=useMemo(()=>lt(e),[e]),M=t==="multiple"&&n,p=useCallback((h,g)=>nt(l,t,g,h),[l,t]),S=useCallback((h,g)=>{let D=r.entries.get(h.id);return D?p(D.node,D.depth):p(h,g)},[r,p]),y=useMemo(()=>Ie(i,r,M,p),[i,r,M,p]),v=useRef(y);v.current=y;let T=useCallback(h=>h.map(g=>r.entries.get(g)?.node).filter(g=>!!g),[r]),k=useCallback((h,g,D)=>{let O=Ie(h,r,M,p);C||d(O.value),c?.(O.value,{node:g,isSelected:D,selectedNodes:T(O.value)});},[r,M,p,C,c,T]),K=useCallback((h,g)=>{k(ut(v.current.value,h.id,g,t,M,r,p),h,g);},[k,t,M,r,p]),R=useCallback(()=>{t==="multiple"&&k(st(r,p),null,true);},[k,t,r,p]),H=useCallback(()=>k([],null,false),[k]),V=useCallback(()=>T(v.current.value),[T]),J=useCallback(()=>Ee(e,v.current.checked,v.current.indeterminate),[e]);return {index:r,canSelectRow:S,snapshot:y,toggle:K,selectAll:R,clear:H,getSelectedNodes:V,getSelectedTree:J}},pt=ln;var sn=(e,t)=>{let[n,l]=useState(""),[o,u]=useState(""),c=useRef(t?.onSearch);c.current=t?.onSearch;let s=t?.debounceMs??Ue,d=useMemo(()=>un(p=>{u(p.toLowerCase()),c.current?.(p);},s),[s]);useEffect(()=>()=>d.cancel(),[d]);let C=useCallback(p=>{l(p),d(p.trim());},[d]),i=useCallback(()=>{d.cancel(),l(""),u(""),c.current?.("");},[d]),r=t?.searchBy??Ge,M=useMemo(()=>t?Te(e,o,t,r):e,[e,o,t,r]);return {inputValue:n,query:o,filteredOptions:M,isSearching:!!(t&&o),handleChange:C,handleClear:i}},gt=sn;var Lt=()=>jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M0.40999 4.88245e-05C0.327141 0.00131442 0.246554 0.0272714 0.178541 0.0745982C0.110529 0.121925 0.0581841 0.188469 0.0282057 0.265715C-0.00177272 0.34296 -0.00802105 0.427394 0.01026 0.508211C0.0285411 0.589028 0.0705201 0.662552 0.130825 0.719375L4.54108 5.0001L0.130825 9.28083C0.0907115 9.3187 0.0585239 9.36416 0.0361329 9.41458C0.0137419 9.465 0.00159394 9.51937 0.00039481 9.57452C-0.000804325 9.62967 0.00896913 9.68452 0.0291477 9.73586C0.0493262 9.7872 0.0795072 9.83403 0.117937 9.87361C0.156367 9.91319 0.202279 9.94473 0.253007 9.96641C0.303734 9.9881 0.358264 9.99948 0.413429 9.99991C0.468594 10.0003 0.523294 9.98979 0.57435 9.9689C0.625406 9.948 0.6718 9.91717 0.710837 9.87819L5.42899 5.29878C5.46895 5.25997 5.50071 5.21354 5.52241 5.16224C5.5441 5.11094 5.55527 5.0558 5.55527 5.0001C5.55527 4.9444 5.5441 4.88926 5.52241 4.83796C5.50071 4.78666 5.46895 4.74023 5.42899 4.70142L0.710837 0.122015C0.671414 0.0825733 0.62447 0.0514536 0.572791 0.0305023C0.521111 0.00955091 0.465749 -0.00080514 0.40999 4.88245e-05Z",fill:"currentColor"})}),St=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),yt=()=>jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Mn=()=>{let[e,t]=useState(null),n=useRef(null),l=useCallback(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null);},[]),o=useCallback(s=>{l(),t(s);},[l]),u=useCallback(s=>{l(),t(d=>s===void 0||d===s?null:d);},[l]),c=useCallback((s,d,C,i)=>{mt(d,C,i)||(l(),n.current=window.setTimeout(()=>{n.current=null,t(r=>r===s?null:r);},Ze));},[l]);return useEffect(()=>l,[l]),{openId:e,open:o,close:u,scheduleClose:c,cancelClose:l}},bt=Mn;var Ct=styled(G)({display:"flex",flexDirection:"column",maxWidth:340}),Ae={flexShrink:0},wt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),Nt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),kt=styled(G)(({theme:e})=>({...Ae,padding:e.v2.spacing(8)})),It=styled(G)({display:"flex",flexDirection:"column",maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"}),re=styled(G)(({theme:e})=>({...e.v2.typography.textVariants.body.small.medium,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",minHeight:36,padding:`${e.v2.spacing(4)} ${e.v2.spacing(12)}`,color:alpha(e.v2.palette.base.black,.4),cursor:"default",textAlign:"center"})),Et=styled(V)(({theme:e})=>{let{brand:t,base:n}=e.v2.palette,l={boxShadow:e.v2.elevation[200],zIndex:1};return {minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,textTransform:"none",backgroundColor:n.white,outline:"none","&:hover":l,[`&.${a.itemOpen}`]:l,[`&.${a.itemActive}`]:l,"&:focus-visible":{boxShadow:`inset 0 0 0 1px ${t[500]}, ${e.v2.elevation[200]}`,zIndex:1},[`&.${a.itemAction}`]:{color:t[500]}}}),Tt=styled("span")({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& img, & svg":{display:"block",maxWidth:20,maxHeight:20}}),De=styled(G)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),flex:1,minWidth:0})),Rt=styled(G)({display:"flex",flexDirection:"column",flex:1,minWidth:0}),At={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.body.small.regular,...At,lineHeight:"normal",color:"inherit"})),Pt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.caption.regular,...At,fontSize:8,lineHeight:"normal",color:alpha(e.v2.palette.base.black,.5)})),Ht=styled("span",{shouldForwardProp:e=>e!=="$isOneDigit"})(({theme:e,$isOneDigit:t=true})=>({...e.v2.typography.textVariants.caption.semibold,fontSize:8,fontWeight:700,lineHeight:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:14,boxSizing:"border-box",...t?{width:13,borderRadius:"50%"}:{padding:`0 ${e.v2.spacing(3)}`,borderRadius:e.v2.radius(4)},backgroundColor:e.v2.palette.grey[100],color:e.v2.palette.grey[900]})),$t=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Bt=styled("span")({display:"flex",alignItems:"center",flexShrink:0}),Ot=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:8,flexShrink:0,color:e.v2.palette.grey[900],transition:"transform 120ms ease",[`.${a.itemFlipped} &`]:{transform:"rotate(180deg)"}})),Ft=styled(f)({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root, svg":{width:"12px !important",height:"12px !important"}}),Kt=styled(l)({padding:0}),Pe=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:16,height:16,padding:0,margin:"1px 0 0 8px",border:0,borderRadius:"50%",background:"transparent",cursor:"pointer","&:disabled":{cursor:"default"},"& svg":{display:"block"}});function gn({node:e,depth:t,path:n,isSubmenuOpen:l,isHoverDisabled:o,isTabStop:u,onSubmenuOpen:c,onSubmenuClose:s,onSubmenuScheduleClose:d,onSubmenuCancelClose:C}){let i=Xe(),{selectionMode:r,submenuTrigger:M,checked:p,indeterminate:S,activePath:y,canSelectRow:v,getItemCount:T,renderItem:k}=i,K=useId(),R$1=useRef(null),[H,V]=useState(null),J=useCallback(f=>{R$1.current=f,V(f);},[]),h=useRef(null),[g,D]=useState(false),O=useMemo(()=>dt(R$1,f=>D(f.startsWith("left"))),[]),b=Y(e),W=_(e),A=!!e.isDisabled,I=v(e,t),E=p.has(e.id),z=!E&&S.has(e.id),q=y.has(e.id),w=b&&l&&!A,F=b?T(e):null,j=useRef(i.onSubmenuOpen);j.current=i.onSubmenuOpen,useEffect(()=>{w&&j.current?.(e);},[w]);let U=useCallback(()=>{A||(I&&i.toggle(e,r==="single"?true:!E),b&&(M==="click"||!I)&&(w&&M==="click"?s(e.id):c(e.id)),e.onClick?.(e,n),i.onNodeClick?.(e,n),!b&&i.isClosingOnSelect&&(I||r==="none"||W)&&i.requestClose("select"));},[i,b,W,A,w,I,E,e,s,c,n,r,M]),m=f=>{f.stopPropagation(),U();},$=()=>{M!=="hover"||o||A||!b||c(e.id);},ue=f=>{M!=="hover"||!b||d(e.id,f.relatedTarget,R$1.current,h.current);},le=()=>Re(()=>h.current?.querySelector(`.${a.list}`)??null),se=f=>{if(!(f.target===R$1.current)){w&&(f.key==="ArrowLeft"||f.key==="Escape")&&(f.preventDefault(),f.stopPropagation(),s(e.id),R$1.current?.focus());return}if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),U(),b&&!I&&le();return}f.key==="ArrowRight"&&b&&!A&&(f.preventDefault(),f.stopPropagation(),c(e.id),le());},ae={depth:t,path:n,isSelected:E,isIndeterminate:z,isActive:q,isDisabled:A,isSelectable:I,hasOptions:b,isSubmenuOpen:w,isSubmenuFlipped:g,itemCount:F},ee=null;I&&r==="multiple"&&(ee=jsx(Ft,{size:"small",checked:E,indeterminate:z,tabIndex:-1})),I&&r==="single"&&(ee=jsx(Kt,{checked:E,tabIndex:-1}));let Q=null;e.endAdornment!==void 0?Q=e.endAdornment===null?null:jsx(Bt,{className:a.endAdornment,children:e.endAdornment}):(b||W)&&(Q=jsx(Ot,{className:a.chevron,"aria-hidden":true,children:jsx(Lt,{})}));let X="menuitem";return I&&r==="multiple"&&(X="menuitemcheckbox"),I&&r==="single"&&(X="menuitemradio"),jsxs(Et,{ref:J,id:K,role:X,tabIndex:u?0:-1,"aria-checked":I?z?"mixed":E:void 0,"aria-haspopup":b?"menu":void 0,"aria-expanded":b?w:void 0,"aria-disabled":A||void 0,"aria-current":q||void 0,"data-testid":"MultiLevelMenuItem","data-node-id":e.id,[pe]:"",className:Hb(a.item,q&&a.itemActive,W&&a.itemAction,w&&a.itemOpen,w&&g&&a.itemFlipped),isSelected:E,isIndeterminate:z,isDisabled:A,startAdornment:ee,onClick:m,onMouseEnter:$,onMouseLeave:ue,onKeyDown:se,children:[k?jsx(De,{className:a.content,children:k(e,ae)}):jsxs(De,{className:a.content,children:[e.startAdornment?jsx(Tt,{className:a.startAdornment,children:e.startAdornment}):null,jsxs(Rt,{children:[jsx(Dt,{className:a.label,title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.hint?jsx(Pt,{className:a.hint,title:typeof e.hint=="string"?e.hint:void 0,children:e.hint}):null]})]}),F&&!k||Q!==null?jsxs($t,{children:[F&&!k?jsx(Ht,{className:a.count,$isOneDigit:F<10,children:F}):null,Q]}):null,b?jsx(R,{ref:h,[me]:"",[Me]:K,open:w&&H!==null,anchorEl:H,placement:"right-start",modifiers:O,popperOptions:Qe,sx:i.submenuSx,panelProps:{role:"menu",className:Hb(a.panel,a.submenu,i.className),"data-depth":t+1,"data-level-key":e.submenu?.levelKey},onClick:f=>f.stopPropagation(),onMouseEnter:C,onMouseLeave:f=>d(e.id,f.relatedTarget,R$1.current,h.current),children:jsx(ye,{options:e.options??[],level:e.submenu??{},depth:t+1,path:n})}):null]})}var zt=memo(gn);function bn({options:e,level:t,depth:n$1,path:l}){let{header:o,footer:u,search:c,emptyState:s,isLoading:d,hasMore:C,isLoadingMore:i,onLoadMore:r}=t,M=useRef(null),p=useRef(null),[S,y]=useState(void 0),v$1=useRef(null),[T,k]=useState(false),{openId:K,open:R,close:H,scheduleClose:V,cancelClose:J}=bt(),{inputValue:h,filteredOptions:g,isSearching:D,handleChange:O,handleClear:b}=gt(e,c),W=m=>{m&&!h&&y(p.current?.getBoundingClientRect().width),m||y(void 0),O(m);},A=()=>{y(void 0),b();};useEffect(()=>()=>{v$1.current!==null&&window.clearTimeout(v$1.current);},[]);let I=useCallback(()=>{k(true),H(),v$1.current!==null&&window.clearTimeout(v$1.current),v$1.current=window.setTimeout(()=>{v$1.current=null,k(false);},qe);},[H]),E=m=>{let $=Ye[m.key];$===void 0||!he(M.current).includes(m.target)||(m.preventDefault(),m.stopPropagation(),ge(M.current,m.target,$));},z=m=>{m.key==="ArrowDown"&&(m.preventDefault(),ge(M.current,null,"first"));},q=g.find(m=>!m.isDisabled)?.id,w=g.map(m=>jsx(zt,{node:m,depth:n$1,path:[...l,m],isSubmenuOpen:K===m.id,isHoverDisabled:T,isTabStop:m.id===q,onSubmenuOpen:R,onSubmenuClose:H,onSubmenuScheduleClose:V,onSubmenuCancelClose:J},m.id)),F=!d&&g.length===0&&D,j=null;d?j=jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):F?j=jsx(re,{className:a.empty,role:"status",children:c?.noResults??Je}):g.length===0&&s&&(j=jsx(re,{className:a.empty,role:"status",children:s}));let U=i?jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):null;return jsxs(Ct,{ref:p,"data-depth":n$1,sx:S?{minWidth:S}:void 0,children:[o?jsxs(Fragment,{children:[jsx(wt,{className:a.header,children:o}),jsx(v,{flexItem:true})]}):null,c?jsxs(Fragment,{children:[jsx(kt,{className:a.search,children:jsx(L$1,{fullWidth:true,size:"md",placeholder:c.placeholder??Ne,value:h,onChange:m=>W(m.target.value),onKeyDown:z,inputProps:{autoComplete:"off","aria-label":c.placeholder??Ne},endAdornment:h?jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Clear search",onMouseDown:m=>m.preventDefault(),onClick:m=>{m.stopPropagation(),A();},children:jsx(yt,{})}):jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Search",tabIndex:-1,disabled:true,children:jsx(St,{})})})}),jsx(v,{flexItem:true})]}):null,j??(r?jsxs(da,{ref:M,className:a.list,loadMoreItems:async()=>r(),hasMore:C,isFetchingNextPage:!!i,onScroll:I,onKeyDown:E,sx:{maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"},children:[w,U]}):jsxs(It,{ref:M,className:a.list,onScroll:I,onKeyDown:E,children:[w,U]})),u?jsxs(Fragment,{children:[jsx(v,{flexItem:true}),jsx(Nt,{className:a.footer,children:u})]}):null]})}var ye=memo(bn);function En(e,t){let{id:n,options:l,anchorEl:o,open:u,placement:c="bottom-start",onClose:s,selectionMode:d="multiple",isCascading:C=true,isSelectable:i,value:r,defaultValue:M,onChange:p,activeId:S,onNodeClick:y,onSubmenuOpen:v,isClosingOnSelect:T=d!=="multiple",submenuTrigger:k="hover",shouldPromoteSingleChild:K=false,getItemCount:R$1=tt,renderItem:H,className:V,sx:J,submenuSx:h,popperProps:g,header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}=e,w=u??!!o,F=useRef(null),j=pt({options:l,selectionMode:d,isCascading:C,isSelectable:i,value:r,defaultValue:M,onChange:p}),{index:U,canSelectRow:m,snapshot:$,toggle:ue,selectAll:le,clear:se,getSelectedNodes:ae,getSelectedTree:ee}=j,Q=useMemo(()=>({header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}),[D,O,b,W,A,I,E,z,q]),X=useMemo(()=>K?ct(l,Q):{options:l,level:Q},[K,l,Q]),f=useMemo(()=>new Set(ot(U,S).map(B=>B.id)),[U,S]),Ce=useRef(s);Ce.current=s;let oe=useCallback(B=>Ce.current?.(B),[]);useEffect(()=>{if(!w)return;let B=Oe=>{Oe.key==="Escape"&&!Oe.defaultPrevented&&oe("escape");};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[w,oe]),useImperativeHandle(t,()=>({get element(){return F.current},getValue:()=>$.value,getSelectedNodes:ae,getSelectedTree:ee,selectAll:le,clear:se}),[$.value,ae,ee,le,se]);let Ut=useMemo(()=>({selectionMode:d,submenuTrigger:k,isClosingOnSelect:T,checked:$.checked,indeterminate:$.indeterminate,activePath:f,className:V,submenuSx:h,canSelectRow:m,getItemCount:R$1,toggle:ue,requestClose:oe,onNodeClick:y,onSubmenuOpen:v,renderItem:H}),[d,k,T,$.checked,$.indeterminate,f,V,h,m,R$1,ue,oe,y,v,H]),Qt=B=>{w&&(o&&B.target instanceof Node&&o.contains(B.target)||oe("clickAway"));};return jsx(ke.Provider,{value:Ut,children:jsx(In,{onClickAway:Qt,children:jsx(R,{...g,ref:F,id:n,"data-testid":n??"MultiLevelMenu",open:w,anchorEl:o,placement:c,sx:J,onClick:B=>B.stopPropagation(),panelProps:{role:"menu",className:Hb(a.root,a.panel,V),"aria-multiselectable":d==="multiple"||void 0,"data-depth":0,"data-level-key":X.level.levelKey},children:jsx(ye,{options:X.options,level:X.level,depth:0,path:[]})})})})}var qt=memo(forwardRef(En));qt.displayName="MultiLevelMenu";var Tn=qt;
2
2
  export{a,Tn as b};
@@ -1 +1 @@
1
- import {r,p as p$1}from'./chunk-4NLQZJVN.js';import {Bc}from'./chunk-EP5VELEJ.js';import {useId,Fragment}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(p)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`auto repeat(${t}, 1fr)`,gridTemplateRows:`auto repeat(${e}, 1fr)`,gap:"6px"})),L=styled(p)(()=>({width:24,position:"sticky",top:0,left:0,zIndex:3})),g=styled(p)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0",position:"sticky",top:0,zIndex:2,backgroundColor:"#fbfbfb"})),M=styled(p)(({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)})),O=styled(g)(()=>({fontSize:"9px",top:"auto",left:0,zIndex:1})),w=styled(p)(()=>({padding:"22px 12px",overflow:"auto",maxHeight:"480px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:s,tooltip:l}){let c=Bc(useId(),"heat-map"),d=e.labels,y=t.labels;return jsxs(w,{id:c,"data-testid":"HeatMap",children:[jsxs(u,{className:"x-labels",rows:1,columns:d.length,children:[jsx(L,{}),d.map((r,i)=>jsx(g,{children:e.render?e.render(r):r},`x-${i}-${r}`))]}),jsx(u,{className:"y-labels",rows:y.length,columns:d.length,children:y.map((r$1,i)=>jsxs(Fragment,{children:[jsx(O,{sx:{minWidth:"25px"},children:t.render?t.render(r$1):r$1},`y-${i}-${r$1}`),d.map((m,h)=>{if(s)return jsx(r,{variant:"rectangular",width:"24px",height:"8px"},`${m}-${h}`);let f=n?.[m]?.[r$1]??{};return jsx(p$1,{title:l?.render&&f?.value?l.render(f,m,r$1):null,children:jsx(M,{percentage:f?.colorOpacityDegree})},`${m}-${h}`)})]},`y-${i}-${r$1}`))})]})}var H=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let s=n-t,l=(e-t)/s,c=Math.floor(l*10);return H[Math.max(0,Math.min(10,c))]}var j=x;export{D as a,j as b};
1
+ import {r,p as p$1}from'./chunk-3LLAL7SZ.js';import {Vb}from'./chunk-2V7P76GA.js';import {useId,Fragment}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(p)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`auto repeat(${t}, 1fr)`,gridTemplateRows:`auto repeat(${e}, 1fr)`,gap:"6px"})),L=styled(p)(()=>({width:24,position:"sticky",top:0,left:0,zIndex:3})),g=styled(p)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0",position:"sticky",top:0,zIndex:2,backgroundColor:"#fbfbfb"})),M=styled(p)(({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)})),O=styled(g)(()=>({fontSize:"9px",top:"auto",left:0,zIndex:1})),w=styled(p)(()=>({padding:"22px 12px",overflow:"auto",maxHeight:"480px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:s,tooltip:l}){let c=Vb(useId(),"heat-map"),d=e.labels,y=t.labels;return jsxs(w,{id:c,"data-testid":"HeatMap",children:[jsxs(u,{className:"x-labels",rows:1,columns:d.length,children:[jsx(L,{}),d.map((r,i)=>jsx(g,{children:e.render?e.render(r):r},`x-${i}-${r}`))]}),jsx(u,{className:"y-labels",rows:y.length,columns:d.length,children:y.map((r$1,i)=>jsxs(Fragment,{children:[jsx(O,{sx:{minWidth:"25px"},children:t.render?t.render(r$1):r$1},`y-${i}-${r$1}`),d.map((m,h)=>{if(s)return jsx(r,{variant:"rectangular",width:"24px",height:"8px"},`${m}-${h}`);let f=n?.[m]?.[r$1]??{};return jsx(p$1,{title:l?.render&&f?.value?l.render(f,m,r$1):null,children:jsx(M,{percentage:f?.colorOpacityDegree})},`${m}-${h}`)})]},`y-${i}-${r$1}`))})]})}var H=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let s=n-t,l=(e-t)/s,c=Math.floor(l*10);return H[Math.max(0,Math.min(10,c))]}var j=x;export{D as a,j as b};
@@ -0,0 +1,2 @@
1
+ import {Hb,Vb,Gb,xa as xa$1,ub,Wb,T as T$1}from'./chunk-2V7P76GA.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],f=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:Hb(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:Hb(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Vb(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:Hb(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:Hb(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:Hb(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:Hb(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:Hb(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:Hb(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:Hb(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:Hb(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:Hb(Fe.root,e),sx:Gb({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:Hb(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:Hb(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:Hb(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:Hb(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:Hb(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),xa$1(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(Xt,{ref:n,className:Hb(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:Hb(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:Hb(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:Hb(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(t&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(xa$1(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=m&&typeof t=="string"?ub(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,m,h,p]),L=useMemo(()=>m?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(pr,{})}),jsx(mo,{$visible:u,children:jsx(dr,{})})]}):null,[m,u,g]);return jsxs(mr,{ref:f,"data-testid":"Chip",className:Hb($.root,e,`CustomVariant_${a}`),sx:Gb(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:Hb(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(hr,{ref:c,className:Hb(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>Hb(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[t,r,a,z,Se,f,u,h]),Xa=useMemo(()=>Hb(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||T$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(wr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(zr,{className:Hb(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...f})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return 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:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(o),k=m?e:h,M=(oo,pe)=>{m||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:Gb({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:Gb({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:Hb(P.root,c,v),sx:Gb(f??{},N),...I,...u,children:[jsx(Or,{className:Hb(P.summary,W),sx:Gb({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=Hb(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:Hb(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:y,onScroll:M,className:L,sx:Gb(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:Hb(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=Hb(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=Hb(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:Gb(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=o??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:Hb(Xe.root,c??r),sx:f!=null?Gb(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Wb(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:Hb(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{o&&!r&&u.current();},[o,r]),h=useCallback(()=>{let g=y.current;g&&Io(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||t||c)return;let k=window.setTimeout(()=>{f(true),Io(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[t,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:Hb(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
2
+ export{ie as $,Ve as A,jt as B,R as C,Jt as D,Q as E,sr as F,$ as G,gr as H,D as I,br as J,x as K,Mr as L,te as M,Ar as N,P as O,Yr as P,ye as Q,ta as R,A as S,da as T,G as U,Ca as V,se as W,So as X,Ba as Y,Xe as Z,Ma as _,T as a,Qe as aa,Eo as b,Va as ba,Ne as c,eo as ca,Vo as d,Ga as da,V as e,Xo as f,we as g,Qo as h,ke as i,tt as j,Be as k,pt as l,O as m,gt as n,w as o,vt as p,Fe as q,kt as r,ze as s,Pt as t,Ae as u,Ft as v,Ee as w,Dt as x,We as y,Vt as z};
@@ -1 +1 @@
1
- import {V,R}from'./chunk-4NLQZJVN.js';import {Bc}from'./chunk-EP5VELEJ.js';import {xb}from'./chunk-XTJZTHR6.js';import {useId,useState,useRef,useMemo}from'react';import T from'@mui/material/Box';import {ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var h=styled("span")(()=>({fontSize:"11px"})),I=styled(V)(()=>({display:"flex",alignItems:"center",paddingInline:"16px",gap:"4px",borderBlock:"1px solid #F2F2F2",fontSize:"11px","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}})),M=styled(V)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:"#F4F4F4",fontWeight:600,paddingInline:"16px",fontSize:"11px",gap:"4px"})),k=styled(V)(()=>({gap:"2px",paddingInline:"16px",fontSize:"11px","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}})),A=styled("img")({marginLeft:"auto",width:16,height:12}),b=styled("img")({borderRadius:"2px",width:16,height:12,flexShrink:0}),w={marginTop:"8px",marginBottom:"8px",maxHeight:"190px",overflow:"auto"},P={zIndex:99999};function s({onCountriesChange:e,sx:L,selectedCountries:r,countriesOptions:i}){let B=Bc(useId(),"country-filter"),[a,g]=useState(null),f=useRef(null),y=!!a,E=()=>{if(!y){g(f.current);return}d();},d=()=>{g(null);},z=t=>r?.includes(t)??false,u=t=>{e(t);},H=t=>{let o=r?.includes(t)?r?.filter(m=>m!==t):[...r??[],t];u(o),e(o);},x=useMemo(()=>r?.length===i.length,[r,i]);return jsx(ClickAwayListener,{onClickAway:d,children:jsxs(T,{ref:f,sx:L,id:B,"data-testid":"CountryFilter",children:[jsx(T,{children:jsxs(I,{onMouseEnter:t=>{t.stopPropagation(),E();},startAdornment:null,children:[jsx(h,{children:"Country"}),jsx(A,{src:xb,alt:""})]})}),jsxs(R,{open:y,anchorEl:a,sx:w,placement:"right-start",popperSx:P,children:[jsx(M,{onClick:t=>{t.stopPropagation(),x?(u([]),e([])):(u(i.map(({value:o})=>o)),e(i.map(({value:o})=>o)));},isSelected:x,children:x?"Unselect All":"Select All"}),i.map(({value:t,label:o,icon:m})=>jsxs(k,{isSelected:z(t),onClick:()=>H(t),children:[jsx(b,{src:m,alt:""}),o]},t))]})]})})}var tt=s;export{s as a,tt as b};
1
+ import {V,R}from'./chunk-3LLAL7SZ.js';import {Vb}from'./chunk-2V7P76GA.js';import {xb}from'./chunk-FI5H6V55.js';import {useId,useState,useRef,useMemo}from'react';import T from'@mui/material/Box';import {ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var h=styled("span")(()=>({fontSize:"11px"})),I=styled(V)(()=>({display:"flex",alignItems:"center",paddingInline:"16px",gap:"4px",borderBlock:"1px solid #F2F2F2",fontSize:"11px","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}})),M=styled(V)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:"#F4F4F4",fontWeight:600,paddingInline:"16px",fontSize:"11px",gap:"4px"})),k=styled(V)(()=>({gap:"2px",paddingInline:"16px",fontSize:"11px","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}})),A=styled("img")({marginLeft:"auto",width:16,height:12}),b=styled("img")({borderRadius:"2px",width:16,height:12,flexShrink:0}),w={marginTop:"8px",marginBottom:"8px",maxHeight:"190px",overflow:"auto"},P={zIndex:99999};function s({onCountriesChange:e,sx:L,selectedCountries:r,countriesOptions:i}){let B=Vb(useId(),"country-filter"),[a,g]=useState(null),f=useRef(null),y=!!a,E=()=>{if(!y){g(f.current);return}d();},d=()=>{g(null);},z=t=>r?.includes(t)??false,u=t=>{e(t);},H=t=>{let o=r?.includes(t)?r?.filter(m=>m!==t):[...r??[],t];u(o),e(o);},x=useMemo(()=>r?.length===i.length,[r,i]);return jsx(ClickAwayListener,{onClickAway:d,children:jsxs(T,{ref:f,sx:L,id:B,"data-testid":"CountryFilter",children:[jsx(T,{children:jsxs(I,{onMouseEnter:t=>{t.stopPropagation(),E();},startAdornment:null,children:[jsx(h,{children:"Country"}),jsx(A,{src:xb,alt:""})]})}),jsxs(R,{open:y,anchorEl:a,sx:w,placement:"right-start",popperSx:P,children:[jsx(M,{onClick:t=>{t.stopPropagation(),x?(u([]),e([])):(u(i.map(({value:o})=>o)),e(i.map(({value:o})=>o)));},isSelected:x,children:x?"Unselect All":"Select All"}),i.map(({value:t,label:o,icon:m})=>jsxs(k,{isSelected:z(t),onClick:()=>H(t),children:[jsx(b,{src:m,alt:""}),o]},t))]})]})})}var tt=s;export{s as a,tt as b};
@@ -1 +1 @@
1
- import {nc}from'./chunk-EP5VELEJ.js';import {Th}from'./chunk-XTJZTHR6.js';import {forwardRef,memo}from'react';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-EmptyState",t={root:`${o}-root`,icon:`${o}-icon`,title:`${o}-title`,description:`${o}-description`},l="Empty state",n="No data found",y="There is nothing to show here yet.";var c=styled(h)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem"})),S=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:e})=>({fontWeight:600,fontSize:"1rem",color:e.palette.text?.primary,padding:0,margin:0,textAlign:"center"})),f=styled("p")(({theme:e})=>({fontWeight:400,fontSize:"0.75rem",color:e.palette.text?.primary,padding:0,margin:0,opacity:.5,textAlign:"center"}));var T=jsx(S,{src:Th,alt:l,className:t.icon}),x=forwardRef(({className:e,sx:E,icon:g=T,title:m=n,description:r=y,children:N,...u},D)=>jsxs(c,{ref:D,className:nc(t.root,e),sx:E,"data-testid":"EmptyState",...u,children:[g,m?jsx(d,{className:t.title,children:m}):null,r?jsx(f,{className:t.description,children:r}):null,N]}));x.displayName="EmptyState";var A=memo(x);export{t as a,A as b};
1
+ import {Hb}from'./chunk-2V7P76GA.js';import {Th}from'./chunk-FI5H6V55.js';import {forwardRef,memo}from'react';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-EmptyState",t={root:`${o}-root`,icon:`${o}-icon`,title:`${o}-title`,description:`${o}-description`},l="Empty state",n="No data found",y="There is nothing to show here yet.";var c=styled(h)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem"})),S=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:e})=>({fontWeight:600,fontSize:"1rem",color:e.palette.text?.primary,padding:0,margin:0,textAlign:"center"})),f=styled("p")(({theme:e})=>({fontWeight:400,fontSize:"0.75rem",color:e.palette.text?.primary,padding:0,margin:0,opacity:.5,textAlign:"center"}));var T=jsx(S,{src:Th,alt:l,className:t.icon}),x=forwardRef(({className:e,sx:E,icon:g=T,title:m=n,description:r=y,children:N,...u},D)=>jsxs(c,{ref:D,className:Hb(t.root,e),sx:E,"data-testid":"EmptyState",...u,children:[g,m?jsx(d,{className:t.title,children:m}):null,r?jsx(f,{className:t.description,children:r}):null,N]}));x.displayName="EmptyState";var A=memo(x);export{t as a,A as b};
@@ -1 +1 @@
1
- import {d}from'./chunk-4NLQZJVN.js';import {mc,nc}from'./chunk-EP5VELEJ.js';import {Pj,j,m}from'./chunk-XTJZTHR6.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var x="os-shared-CountryFlag",a={root:`${x}-root`};var p=styled(d)({width:"auto",height:"auto"});var f=forwardRef(({countryCode:o,currencyCode:t,width:y=16,height:i,alt:u,id:s,className:F,sx:C},c)=>jsx(p,{ref:c,id:s,"data-testid":s??"CountryFlag",src:o&&j(o)||t&&m(t)||Pj,alt:u??o??t??"flag",loading:"lazy",onError:d=>{d.currentTarget.src=Pj;},className:nc(a.root,F),sx:mc({width:y,height:i},C)}));f.displayName="CountryFlag";var P=memo(f);export{a,P as b};
1
+ import {d}from'./chunk-3LLAL7SZ.js';import {Gb,Hb}from'./chunk-2V7P76GA.js';import {Pj,j,m}from'./chunk-FI5H6V55.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var x="os-shared-CountryFlag",a={root:`${x}-root`};var p=styled(d)({width:"auto",height:"auto"});var f=forwardRef(({countryCode:o,currencyCode:t,width:y=16,height:i,alt:u,id:s,className:F,sx:C},c)=>jsx(p,{ref:c,id:s,"data-testid":s??"CountryFlag",src:o&&j(o)||t&&m(t)||Pj,alt:u??o??t??"flag",loading:"lazy",onError:d=>{d.currentTarget.src=Pj;},className:Hb(a.root,F),sx:Gb({width:y,height:i},C)}));f.displayName="CountryFlag";var P=memo(f);export{a,P as b};
@@ -1,2 +1,2 @@
1
- import {j}from'./chunk-4NLQZJVN.js';import {nc}from'./chunk-EP5VELEJ.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"currentColor"})}),m=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:nc(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
1
+ import {j}from'./chunk-3LLAL7SZ.js';import {Hb}from'./chunk-2V7P76GA.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"currentColor"})}),m=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:Hb(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
2
2
  export{r as a,M as b};