@tap-payments/os-micro-frontend-shared 0.3.308 → 0.3.310-test.1795520903

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 (265) hide show
  1. package/build/_chunks/{chunk-JYVB2MAR.js → chunk-2MGV5XP4.js} +1 -1
  2. package/build/_chunks/{chunk-L2CUT2AZ.js → chunk-3YBLN7RZ.js} +1 -1
  3. package/build/_chunks/{chunk-JBDIMDMZ.js → chunk-3YZF4W2L.js} +1 -1
  4. package/build/_chunks/chunk-3ZUUAIFN.js +1 -0
  5. package/build/_chunks/{chunk-3TZY3PB4.js → chunk-4V64TJJW.js} +1 -1
  6. package/build/_chunks/{chunk-D4FXMX5O.js → chunk-565FQDLE.js} +1 -1
  7. package/build/_chunks/{chunk-XK5TVDKR.js → chunk-632OM3TB.js} +1 -1
  8. package/build/_chunks/{chunk-K5QISMYX.js → chunk-7UR5RTMD.js} +1 -1
  9. package/build/_chunks/{chunk-247ZI55C.js → chunk-AIKE5IVU.js} +1 -1
  10. package/build/_chunks/{chunk-ALG4KR24.js → chunk-AM66KDGG.js} +1 -1
  11. package/build/_chunks/{chunk-LTTRVHN5.js → chunk-AO5BBZSP.js} +1 -1
  12. package/build/_chunks/chunk-BE2RKFQJ.js +1 -0
  13. package/build/_chunks/{chunk-PYVM4SKE.js → chunk-EGIKB732.js} +1 -1
  14. package/build/_chunks/{chunk-EKOQHUCL.js → chunk-FXTZ22TS.js} +1 -1
  15. package/build/_chunks/{chunk-XVIGXV43.js → chunk-G4W4TPFT.js} +1 -1
  16. package/build/_chunks/{chunk-YMEGCVZ4.js → chunk-GGX2FEQV.js} +1 -1
  17. package/build/_chunks/{chunk-5FR3LFXC.js → chunk-HNVAFVUA.js} +1 -1
  18. package/build/_chunks/{chunk-ZPYQLESN.js → chunk-JBD7LBKC.js} +1 -1
  19. package/build/_chunks/{chunk-DIN6W5Q6.js → chunk-JGXI5MLK.js} +1 -1
  20. package/build/_chunks/{chunk-4SDKOPUI.js → chunk-KLN3YM53.js} +1 -1
  21. package/build/_chunks/{chunk-YIVUI2NW.js → chunk-L2SDX2MP.js} +1 -1
  22. package/build/_chunks/{chunk-UXDNAGHP.js → chunk-LQSTGJBJ.js} +1 -1
  23. package/build/_chunks/{chunk-OJO5GAN7.js → chunk-MXZD4IG6.js} +1 -1
  24. package/build/_chunks/{chunk-LKYA6XFU.js → chunk-NFDDJIRN.js} +1 -1
  25. package/build/_chunks/{chunk-GD5PXPUD.js → chunk-OL6JOGIF.js} +1 -1
  26. package/build/_chunks/{chunk-7H5HCDY6.js → chunk-PEQGKPA2.js} +1 -1
  27. package/build/_chunks/{chunk-YG4CT6O4.js → chunk-PI263RZJ.js} +1 -1
  28. package/build/_chunks/{chunk-W2FF6EIY.js → chunk-Q6MQJAZI.js} +1 -1
  29. package/build/_chunks/{chunk-DHSYX6K2.js → chunk-QIUS47UY.js} +1 -1
  30. package/build/_chunks/{chunk-XKEBWPJM.js → chunk-R6E5X56S.js} +1 -1
  31. package/build/_chunks/{chunk-R2J57DPG.js → chunk-RF6JK6KJ.js} +1 -1
  32. package/build/_chunks/{chunk-SSK26DK7.js → chunk-SKDHJYOO.js} +1 -1
  33. package/build/_chunks/{chunk-RW26DPMJ.js → chunk-SMGH6EBP.js} +1 -1
  34. package/build/_chunks/{chunk-D7Q6GITS.js → chunk-TJ3OEL7X.js} +1 -1
  35. package/build/_chunks/{chunk-EAAJJGUI.js → chunk-TKWUFXNT.js} +1 -1
  36. package/build/_chunks/{chunk-PF4KBDPV.js → chunk-UHP2ZQJO.js} +1 -1
  37. package/build/_chunks/{chunk-M3TZIB3C.js → chunk-V4ZKOYOF.js} +1 -1
  38. package/build/_chunks/{chunk-AGNZUPPF.js → chunk-VLOXMCB3.js} +1 -1
  39. package/build/_chunks/{chunk-ODDV623H.js → chunk-VLXDIIDL.js} +1 -1
  40. package/build/_chunks/{chunk-TJMY7Q26.js → chunk-W755BEL7.js} +1 -1
  41. package/build/_chunks/{chunk-EM7XGO3A.js → chunk-WE5WS7B2.js} +1 -1
  42. package/build/_chunks/chunk-XCUFNIDV.js +2 -0
  43. package/build/_chunks/{chunk-RGQ5AGHK.js → chunk-XJOPGP7Y.js} +1 -1
  44. package/build/_chunks/chunk-Z6D3LMCU.js +2 -0
  45. package/build/_chunks/{chunk-JBE2LXDH.js → chunk-Z7GYOTVN.js} +1 -1
  46. package/build/components/ActionMenu/ActionMenu.d.ts +4 -0
  47. package/build/components/ActionMenu/ActionMenuFlyoutRow.d.ts +4 -0
  48. package/build/components/ActionMenu/ActionMenuGroupList.d.ts +4 -0
  49. package/build/components/ActionMenu/ActionMenuLeafRow.d.ts +4 -0
  50. package/build/components/ActionMenu/ActionMenuRow.d.ts +7 -0
  51. package/build/components/ActionMenu/ActionMenuRowLeading.d.ts +4 -0
  52. package/build/components/ActionMenu/ActionMenuRowTrailing.d.ts +4 -0
  53. package/build/components/ActionMenu/constants.d.ts +42 -0
  54. package/build/components/ActionMenu/index.d.ts +3 -0
  55. package/build/components/ActionMenu/index.js +1 -0
  56. package/build/components/ActionMenu/style.d.ts +46 -0
  57. package/build/components/ActionMenu/type.d.ts +103 -0
  58. package/build/components/ActionMenu/utils.d.ts +6 -0
  59. package/build/components/Alert/index.js +1 -1
  60. package/build/components/Autocomplete/index.js +1 -1
  61. package/build/components/AvatarStack/index.js +1 -1
  62. package/build/components/Card/index.js +1 -1
  63. package/build/components/ColorPicker/index.js +1 -1
  64. package/build/components/ColumnViews/index.js +1 -1
  65. package/build/components/ConfirmDialog/index.js +1 -1
  66. package/build/components/CountryFlag/index.js +1 -1
  67. package/build/components/CurrencyAmount/index.js +1 -1
  68. package/build/components/CurrencyAmountInput/index.js +1 -1
  69. package/build/components/CurrencySymbol/index.js +1 -1
  70. package/build/components/DeviceIcon/index.js +1 -1
  71. package/build/components/ErrorToast/index.js +1 -1
  72. package/build/components/ExportReportButton/index.js +1 -1
  73. package/build/components/FileDropbox/index.js +1 -1
  74. package/build/components/FilePreview/index.js +1 -1
  75. package/build/components/FileUploader/index.js +1 -1
  76. package/build/components/FilterBar/index.js +1 -1
  77. package/build/components/FilterPopover/index.js +1 -1
  78. package/build/components/GroupedSelect/index.js +1 -1
  79. package/build/components/HeatMap/index.js +1 -1
  80. package/build/components/ListHeader/index.js +1 -1
  81. package/build/components/Loader/index.js +1 -1
  82. package/build/components/Logo/index.js +1 -1
  83. package/build/components/MultiLevelMenu/index.js +1 -1
  84. package/build/components/MultiLevelSelect/index.js +1 -1
  85. package/build/components/PhoneInput/index.js +1 -1
  86. package/build/components/ProgressRing/index.js +1 -1
  87. package/build/components/RadioGroup/index.js +1 -1
  88. package/build/components/RatingCount/index.js +1 -1
  89. package/build/components/SearchButton/index.js +1 -1
  90. package/build/components/SearchInput/index.js +1 -1
  91. package/build/components/Select/index.js +1 -1
  92. package/build/components/Sidebar/index.js +1 -1
  93. package/build/components/{TableCells/CustomCells/RefundStatusCell/components → StatusIcons/RefundStatusIcon}/RefundStateIcon.d.ts +2 -2
  94. package/build/components/StatusIcons/RefundStatusIcon/RefundStatusIcon.d.ts +3 -0
  95. package/build/components/StatusIcons/RefundStatusIcon/constant.d.ts +2 -0
  96. package/build/components/StatusIcons/RefundStatusIcon/index.d.ts +3 -0
  97. package/build/components/StatusIcons/RefundStatusIcon/type.d.ts +15 -0
  98. package/build/components/StatusIcons/index.d.ts +1 -0
  99. package/build/components/StatusIcons/index.js +1 -1
  100. package/build/components/StatusIcons/style.d.ts +2 -0
  101. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.d.ts +2 -5
  102. package/build/components/TableCells/CustomCells/ActionCell/components/{ActionMenu.d.ts → ActionCellMenu.d.ts} +4 -4
  103. package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -13
  104. package/build/components/TableCells/CustomCells/AmountCell/index.d.ts +0 -2
  105. package/build/components/TableCells/CustomCells/AmountCell/type.d.ts +0 -11
  106. package/build/components/TableCells/CustomCells/CustomerCell/index.d.ts +0 -1
  107. package/build/components/TableCells/CustomCells/CustomerCell/type.d.ts +0 -2
  108. package/build/components/TableCells/CustomCells/DestinationCell/index.d.ts +0 -1
  109. package/build/components/TableCells/CustomCells/DestinationCell/type.d.ts +0 -1
  110. package/build/components/TableCells/CustomCells/IndividualsCell/IndividualsCell.d.ts +2 -2
  111. package/build/components/TableCells/CustomCells/IndividualsCell/type.d.ts +1 -1
  112. package/build/components/TableCells/CustomCells/OrderCell/OrderCell.d.ts +2 -2
  113. package/build/components/TableCells/CustomCells/OrderCell/index.d.ts +1 -1
  114. package/build/components/TableCells/CustomCells/OrderCell/type.d.ts +5 -0
  115. package/build/components/TableCells/CustomCells/ReferenceCell/type.d.ts +0 -2
  116. package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCell.d.ts +2 -2
  117. package/build/components/TableCells/CustomCells/SalesChannelCell/SalesChannelCellSheet.d.ts +2 -2
  118. package/build/components/TableCells/CustomCells/SalesChannelCell/type.d.ts +2 -2
  119. package/build/components/TableCells/CustomCells/SourceCell/SourceCell.d.ts +2 -2
  120. package/build/components/TableCells/CustomCells/SourceCell/type.d.ts +1 -1
  121. package/build/components/TableCells/CustomCells/StatusCell/index.d.ts +0 -1
  122. package/build/components/TableCells/CustomCells/index.d.ts +0 -24
  123. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  124. package/build/components/TableCells/CustomCells/type.d.ts +15 -38
  125. package/build/components/TableCells/index.js +1 -1
  126. package/build/components/TextInput/index.js +1 -1
  127. package/build/components/VerificationIcon/index.js +1 -1
  128. package/build/components/VirtualTables/index.js +1 -1
  129. package/build/components/WindowServices/index.js +1 -1
  130. package/build/components/WindowToolbar/index.js +1 -1
  131. package/build/components/index.d.ts +1 -1
  132. package/build/components/index.js +1 -1
  133. package/build/components/modules/JSONViewWindow/index.js +1 -1
  134. package/build/components/modules/VirtualTables/index.js +1 -1
  135. package/build/components/modules/WindowShell/index.js +1 -1
  136. package/build/components/modules/index.js +1 -1
  137. package/build/components/primitives/MenuItem/icons.d.ts +8 -4
  138. package/build/components/primitives/index.js +1 -1
  139. package/build/datetime/components/index.js +1 -1
  140. package/build/datetime/index.js +1 -1
  141. package/build/index.js +1 -1
  142. package/package.json +1 -1
  143. package/build/_chunks/chunk-EEONDBAL.js +0 -2
  144. package/build/_chunks/chunk-F7I3KDV5.js +0 -2
  145. package/build/_chunks/chunk-GQZXKKCE.js +0 -1
  146. package/build/_chunks/chunk-IXFXTDH7.js +0 -1
  147. package/build/components/ActionsDropdownMenu/ActionsDropdownMenu.d.ts +0 -3
  148. package/build/components/ActionsDropdownMenu/AppMenuItem.d.ts +0 -15
  149. package/build/components/ActionsDropdownMenu/constants.d.ts +0 -1
  150. package/build/components/ActionsDropdownMenu/index.d.ts +0 -3
  151. package/build/components/ActionsDropdownMenu/index.js +0 -1
  152. package/build/components/ActionsDropdownMenu/style.d.ts +0 -16
  153. package/build/components/ActionsDropdownMenu/types.d.ts +0 -42
  154. package/build/components/TableCells/CustomCells/AmountCell/AmountCellSheet.d.ts +0 -4
  155. package/build/components/TableCells/CustomCells/AmountCell/AmountCellText.d.ts +0 -4
  156. package/build/components/TableCells/CustomCells/AuthenticationCell/AuthenticationCell.d.ts +0 -4
  157. package/build/components/TableCells/CustomCells/AuthenticationCell/constant.d.ts +0 -49
  158. package/build/components/TableCells/CustomCells/AuthenticationCell/index.d.ts +0 -2
  159. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -555
  160. package/build/components/TableCells/CustomCells/AuthenticationCell/type.d.ts +0 -8
  161. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/AuthenticationStatusCell.d.ts +0 -4
  162. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/constant.d.ts +0 -48
  163. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/index.d.ts +0 -3
  164. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/type.d.ts +0 -15
  165. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/AuthenticationTypeCell.d.ts +0 -4
  166. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/constant.d.ts +0 -8
  167. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/index.d.ts +0 -2
  168. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/type.d.ts +0 -6
  169. package/build/components/TableCells/CustomCells/BankCell/BankCell.d.ts +0 -4
  170. package/build/components/TableCells/CustomCells/BankCell/index.d.ts +0 -2
  171. package/build/components/TableCells/CustomCells/BankCell/style.d.ts +0 -6
  172. package/build/components/TableCells/CustomCells/BankCell/type.d.ts +0 -6
  173. package/build/components/TableCells/CustomCells/BankReferenceCell/BankReferenceCell.d.ts +0 -6
  174. package/build/components/TableCells/CustomCells/BankReferenceCell/index.d.ts +0 -1
  175. package/build/components/TableCells/CustomCells/BankReferenceCell/style.d.ts +0 -4
  176. package/build/components/TableCells/CustomCells/BrandCell/BrandCell.d.ts +0 -4
  177. package/build/components/TableCells/CustomCells/BrandCell/index.d.ts +0 -2
  178. package/build/components/TableCells/CustomCells/BrandCell/style.d.ts +0 -4
  179. package/build/components/TableCells/CustomCells/BrandCell/type.d.ts +0 -5
  180. package/build/components/TableCells/CustomCells/ChannelsCell/ChannelsCell.d.ts +0 -4
  181. package/build/components/TableCells/CustomCells/ChannelsCell/constant.d.ts +0 -5
  182. package/build/components/TableCells/CustomCells/ChannelsCell/index.d.ts +0 -2
  183. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -287
  184. package/build/components/TableCells/CustomCells/ChannelsCell/type.d.ts +0 -7
  185. package/build/components/TableCells/CustomCells/CheckoutStatusCell/CheckoutStatusCell.d.ts +0 -4
  186. package/build/components/TableCells/CustomCells/CheckoutStatusCell/constant.d.ts +0 -4
  187. package/build/components/TableCells/CustomCells/CheckoutStatusCell/index.d.ts +0 -2
  188. package/build/components/TableCells/CustomCells/CheckoutStatusCell/type.d.ts +0 -6
  189. package/build/components/TableCells/CustomCells/CustomerCell/CustomerCellSheet.d.ts +0 -4
  190. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCellText.d.ts +0 -4
  191. package/build/components/TableCells/CustomCells/DestinationStatusCell/DestinationStatusCell.d.ts +0 -4
  192. package/build/components/TableCells/CustomCells/DestinationStatusCell/constant.d.ts +0 -16
  193. package/build/components/TableCells/CustomCells/DestinationStatusCell/index.d.ts +0 -2
  194. package/build/components/TableCells/CustomCells/DestinationStatusCell/type.d.ts +0 -9
  195. package/build/components/TableCells/CustomCells/DeviceCell/DeviceCell.d.ts +0 -4
  196. package/build/components/TableCells/CustomCells/DeviceCell/index.d.ts +0 -1
  197. package/build/components/TableCells/CustomCells/IntentsStatusCell/IntentsStatusCell.d.ts +0 -3
  198. package/build/components/TableCells/CustomCells/IntentsStatusCell/constant.d.ts +0 -6
  199. package/build/components/TableCells/CustomCells/IntentsStatusCell/index.d.ts +0 -2
  200. package/build/components/TableCells/CustomCells/IntentsStatusCell/type.d.ts +0 -9
  201. package/build/components/TableCells/CustomCells/InvoiceStatusCell/ChargeStatusIcon.d.ts +0 -11
  202. package/build/components/TableCells/CustomCells/InvoiceStatusCell/InvoiceStatusCell.d.ts +0 -4
  203. package/build/components/TableCells/CustomCells/InvoiceStatusCell/constant.d.ts +0 -16
  204. package/build/components/TableCells/CustomCells/InvoiceStatusCell/index.d.ts +0 -2
  205. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -269
  206. package/build/components/TableCells/CustomCells/InvoiceStatusCell/type.d.ts +0 -16
  207. package/build/components/TableCells/CustomCells/InvoiceStatusCell/utils.d.ts +0 -6
  208. package/build/components/TableCells/CustomCells/MetadataCell/MetadataCell.d.ts +0 -6
  209. package/build/components/TableCells/CustomCells/MetadataCell/index.d.ts +0 -1
  210. package/build/components/TableCells/CustomCells/OrderCell/OrderCellSheet.d.ts +0 -4
  211. package/build/components/TableCells/CustomCells/OrderCell/constant.d.ts +0 -1
  212. package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.d.ts +0 -23
  213. package/build/components/TableCells/CustomCells/OrdersCell/index.d.ts +0 -1
  214. package/build/components/TableCells/CustomCells/PaymentAgreementCell/PaymentAgreementCellSheet.d.ts +0 -4
  215. package/build/components/TableCells/CustomCells/PaymentAgreementCell/constant.d.ts +0 -6
  216. package/build/components/TableCells/CustomCells/PaymentAgreementCell/index.d.ts +0 -1
  217. package/build/components/TableCells/CustomCells/PaymentAgreementCell/type.d.ts +0 -6
  218. package/build/components/TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon/AnimatedSpinnerIcon.d.ts +0 -9
  219. package/build/components/TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon/index.d.ts +0 -2
  220. package/build/components/TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon/style.d.ts +0 -280
  221. package/build/components/TableCells/CustomCells/PayoutReportCell/PayoutReportCell.d.ts +0 -10
  222. package/build/components/TableCells/CustomCells/PayoutReportCell/index.d.ts +0 -1
  223. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -278
  224. package/build/components/TableCells/CustomCells/PayoutStatusCell/PayoutStatusCell.d.ts +0 -4
  225. package/build/components/TableCells/CustomCells/PayoutStatusCell/constant.d.ts +0 -11
  226. package/build/components/TableCells/CustomCells/PayoutStatusCell/index.d.ts +0 -3
  227. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1314
  228. package/build/components/TableCells/CustomCells/PayoutStatusCell/type.d.ts +0 -7
  229. package/build/components/TableCells/CustomCells/ProductsCell/ProductsCell.d.ts +0 -4
  230. package/build/components/TableCells/CustomCells/ProductsCell/index.d.ts +0 -2
  231. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -275
  232. package/build/components/TableCells/CustomCells/ProductsCell/type.d.ts +0 -4
  233. package/build/components/TableCells/CustomCells/PurposeCell/PurposeCell.d.ts +0 -3
  234. package/build/components/TableCells/CustomCells/PurposeCell/constants.d.ts +0 -8
  235. package/build/components/TableCells/CustomCells/PurposeCell/index.d.ts +0 -2
  236. package/build/components/TableCells/CustomCells/PurposeCell/style.d.ts +0 -9
  237. package/build/components/TableCells/CustomCells/PurposeCell/type.d.ts +0 -5
  238. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.d.ts +0 -3
  239. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCellSheet.d.ts +0 -3
  240. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCellText.d.ts +0 -3
  241. package/build/components/TableCells/CustomCells/ReceiptCell/index.d.ts +0 -3
  242. package/build/components/TableCells/CustomCells/ReceiptCell/type.d.ts +0 -3
  243. package/build/components/TableCells/CustomCells/RefundChargeCell/RefundChargeCell.d.ts +0 -4
  244. package/build/components/TableCells/CustomCells/RefundChargeCell/constant.d.ts +0 -14
  245. package/build/components/TableCells/CustomCells/RefundChargeCell/index.d.ts +0 -1
  246. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -531
  247. package/build/components/TableCells/CustomCells/RefundChargeCell/type.d.ts +0 -12
  248. package/build/components/TableCells/CustomCells/RefundChargeCell/utils.d.ts +0 -1
  249. package/build/components/TableCells/CustomCells/RefundStatusCell/RefundStatusCell.d.ts +0 -4
  250. package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatus.d.ts +0 -3
  251. package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatusIcon.d.ts +0 -3
  252. package/build/components/TableCells/CustomCells/RefundStatusCell/components/index.d.ts +0 -3
  253. package/build/components/TableCells/CustomCells/RefundStatusCell/constant.d.ts +0 -7
  254. package/build/components/TableCells/CustomCells/RefundStatusCell/hooks/useRefundStyles.d.ts +0 -50
  255. package/build/components/TableCells/CustomCells/RefundStatusCell/index.d.ts +0 -3
  256. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -279
  257. package/build/components/TableCells/CustomCells/RefundStatusCell/type.d.ts +0 -20
  258. package/build/components/TableCells/CustomCells/StatusCell/StatusCellText.d.ts +0 -7
  259. package/build/components/TableCells/CustomCells/TextWithBadgeCell/TextWithBadgeCell.d.ts +0 -4
  260. package/build/components/TableCells/CustomCells/TextWithBadgeCell/index.d.ts +0 -2
  261. package/build/components/TableCells/CustomCells/TextWithBadgeCell/type.d.ts +0 -6
  262. package/build/components/TableCells/CustomCells/TokenStatusCell/TokenStatusCell.d.ts +0 -4
  263. package/build/components/TableCells/CustomCells/TokenStatusCell/constant.d.ts +0 -8
  264. package/build/components/TableCells/CustomCells/TokenStatusCell/index.d.ts +0 -2
  265. package/build/components/TableCells/CustomCells/TokenStatusCell/type.d.ts +0 -17
@@ -1,2 +1,2 @@
1
- import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.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:Eb(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:Eb(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:Eb(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-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.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:Eb(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:Eb(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:Eb(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-F7I3KDV5.js';import {Sb}from'./chunk-XBJ4RS2B.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=Sb(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-Z6D3LMCU.js';import {Sb}from'./chunk-XBJ4RS2B.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=Sb(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 @@
1
+ import Z from'dayjs';import ne from'dayjs/plugin/calendar.js';import oe from'dayjs/plugin/customParseFormat.js';import re from'dayjs/plugin/utc.js';import {getTimezone,getCountry}from'countries-and-timezones';var T=/(?:Z|[+-]\d{2}:?\d{2})$/i,c=e=>{if(e==null||e==="")return;if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e;if(typeof e=="number"){if(!Number.isFinite(e))return;let o=new Date(e);return Number.isNaN(o.getTime())?void 0:o}let t=e.trim();if(!T.test(t))return;let n=new Date(t);return Number.isNaN(n.getTime())?void 0:n},C=e=>{let t=new Date(Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.ms));return t.setUTCFullYear(e.year),t.getTime()};var w=(e,t=2)=>String(e).padStart(t,"0"),_=new Map,V=e=>{let t=_.get(e);if(t)return t;try{let n=new Intl.DateTimeFormat("en-US",{timeZone:e,hourCycle:"h23",era:"short",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});return _.set(e,n),n}catch{return}},q=e=>{let t=r=>Number(e.find(s=>s.type===r)?.value??0),n=t("year");return {year:e.find(r=>r.type==="era")?.value==="BC"?1-n:n,month:t("month"),day:t("day"),hour:t("hour"),minute:t("minute"),second:t("second"),ms:0}},Q=new Set(["Africa/Cairo","Egypt"]),v=2023,R=new Map,ee=(e,t)=>{let n=R.get(e);if(n)return n;let o=t.resolvedOptions().timeZone;return R.set(e,o),o},O=(e,t,n)=>{let o=new Date(Date.UTC(e,t+1,0));return o.getUTCDate()-(o.getUTCDay()-n+7)%7},te=e=>{let t=new Date(e).getUTCFullYear();if(t<v)return;let n=Date.UTC(t,3,O(t,3,5))-2*36e5,o=Date.UTC(t,9,O(t,9,4)+1)-3*36e5;return e>=n&&e<o?180:120},i=(e,t=Date.now())=>{let n=c(t),o=V(e);if(!n||!o)return;if(Q.has(ee(e,o))){let s=te(n.getTime());if(s!==void 0)return s}let r=Math.floor(n.getTime()/1e3)*1e3;return Math.round((C(q(o.formatToParts(n)))-r)/6e4)},Fe=(e,t,n=Date.now())=>{let o=i(e,n),r=i(t,n);return o!==void 0&&r!==void 0&&o!==r},Y=(e,t=Date.now())=>{let n=i(e,t);if(n===void 0)return "";let o=Math.abs(n);return `UTC${n<0?"-":"+"}${w(Math.floor(o/60))}:${w(o%60)}`};Z.extend(re);Z.extend(oe);Z.extend(ne);var E=Z;var L=e=>`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")} ${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}.${String(e.ms).padStart(3,"0")}`,l=e=>({year:e.year(),month:e.month()+1,day:e.date(),hour:e.hour(),minute:e.minute(),second:e.second(),ms:e.millisecond()}),B=e=>Number.isNaN(e.getTime())?void 0:{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),ms:e.getMilliseconds()},se=[31,28,31,30,31,30,31,31,30,31,30,31],ie=e=>e%4===0&&(e%100!==0||e%400===0),ae=68,de=e=>e>=48&&e<=57,M=e=>e.length>0&&[...e].every(t=>t>="0"&&t<="9"),$=e=>{let t=e.month===2&&ie(e.year)?29:se[e.month-1];return e.month<1||e.month>12||e.day<1||e.day>(t??0)||e.hour>23||e.minute>59||e.second>59?void 0:e},ue=e=>{let t=0;for(;t<e.length&&(de(e.charCodeAt(t))||e[t]==="-"||e[t]==="/");)t++;return t},ce=e=>{let t=e.split("-"),n=[4,2,2];return t.length===3&&t.every((o,r)=>o.length===n[r]&&M(o))?t.map(Number):void 0},me=e=>{let t=e.split("/");if(t.length!==3||!t.every(M))return;let[n,o,r]=t;if(n.length>2||o.length>2||r.length<2||r.length>4)return;let s=Number(r);return [s<100?(s>ae?1900:2e3)+s:s,Number(o),Number(n)]},le=e=>{let[t,n,o="0"]=e.split(":"),[r,s="0"]=o.split(".");if(!(t===void 0||n===void 0)&&!(s.length>3||![t,n,r,s].every(M)))return {hour:Number(t),minute:Number(n),second:Number(r),ms:Number(s.padEnd(3,"0"))}},F=e=>{let t=e.trim(),n=t.slice(0,ue(t)),o=n.includes("/"),r=o?me(n):ce(n);if(!r)return;let[s,u,f]=r,a=t.slice(n.length).trim(),[g="",K=""]=(a[0]==="T"||a[0]==="t"?a.slice(1):a).trim().split(" ").filter(Boolean),y=K.toUpperCase();if(y&&(!o||y!=="AM"&&y!=="PM"))return;if(!g)return $({year:s,month:u,day:f,hour:0,minute:0,second:0,ms:0});let D=le(g);if(!D||y&&(D.hour<1||D.hour>12))return;let J=y?D.hour%12+(y==="PM"?12:0):D.hour;return $({year:s,month:u,day:f,...D,hour:J})},Oe=e=>{let t=F(e);return t&&H(t)},H=e=>{let t=new Date(0);return t.setFullYear(e.year,e.month-1,e.day),t.setHours(e.hour,e.minute,e.second,e.ms),t},d=(e,t)=>{let n=c(e);if(!n)return;let o=i(t,n);if(o!==void 0)return E.utc(n.getTime()+o*6e4)},Ye=(e,t)=>{let n=d(e,t);if(n)return H(l(n))},k=(e,t,n)=>{let o=d(e,n),r=d(t,n);return o&&r?[l(o),l(r)]:void 0},fe=(e,t)=>e.year===t.year&&e.month===t.month&&e.day===t.day,Ee=(e,t,n)=>{let o=k(e,t,n);return !!o&&fe(o[0],o[1])},$e=(e,t,n)=>{let o=k(e,t,n);return !!o&&o[0].year===o[1].year},P=e=>Date.UTC(e.year,e.month-1,e.day),Pe=(e,t,n)=>{let o=k(e,t,n);if(o)return Math.abs(P(o[1])-P(o[0]))/864e5};var pe=(e,t)=>{let n=C(e),o=i(t,n-864e5),r=i(t,n+864e5);if(o===void 0||r===void 0)return;let u=(o===r?[o]:[o,r]).map(a=>n-a*6e4),f=u.filter(a=>a+(i(t,a)??NaN)*6e4===n);return new Date(f.length?Math.min(...f):Math.max(...u))},p=(e,t)=>{if(e==null||e==="")return;if(!(e instanceof Date)){if(typeof e=="number"){if(!Number.isFinite(e))return;let o=new Date(e);return Number.isNaN(o.getTime())?void 0:o}if(T.test(e.trim()))return c(e)}let n=typeof e=="string"?F(e):B(e);if(n)return pe(n,t)};var Ve=(e,t)=>{if(!(typeof e!="number"||!Number.isFinite(e))&&!(Math.abs(e)>864e13))return p(new Date(e).toISOString().replace(/Z$/,""),t)},S=(e,t)=>{let n=c(e);if(!n)return;let o=i(t,n);if(o!==void 0)return n.getTime()+o*6e4};var ye=e=>{let t=", h:mma",n=e?"MMM DD":"MMM DD, YYYY";return {sameDay:`[Today]${t}`,nextDay:`[Tomorrow]${t}`,lastDay:`[Yesterday]${t}`,sameElse:`${n}${t}`,lastWeek:`${n}${t}`,nextWeek:`${n}${t}`}},ve=e=>({sameDay:e,nextDay:e,lastDay:e,sameElse:e,lastWeek:e,nextWeek:e}),et=(e,t,n)=>{let o=d(e,t),r=d(Date.now(),t);return !o||!r?"":o.calendar(r,n??ye(o.isSame(r,"year")))};var De=(e,t)=>{let n=p(e?.[0],t),o=p(e?.[1],t);return n&&o?[n,o]:void 0},z=(e,t)=>{let n=De(e,t);if(!n)return;let o=d(n[0],t),r=d(n[1],t);if(!(!o||!r))return [{fields:l(o),instant:n[0]},{fields:l(r),instant:n[1]}]},X=(e,t=0)=>{let n=new Date(Date.UTC(e.year,e.month-1,e.day+t));return L({year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:0,minute:0,second:0,ms:0})},b=(e,t,n=0)=>p(X(e,n),t),N=(e,t)=>{let n=p(X(e,1),t);return n&&new Date(n.getTime()-1)},ge=(e,t)=>{let n=b(e.fields,t);return !!n&&n.getTime()===e.instant.getTime()||e.fields.hour===23&&e.fields.minute===59},st=(e,t)=>{let n=z(e,t);if(!n)return false;let[o,r]=n;return o.fields.year!==r.fields.year||o.fields.month!==r.fields.month||o.fields.day!==r.fields.day||ge(r,t)},it=(e,t)=>{let n=z(e,t);if(!n)return;let o=b(n[0].fields,t),r=N(n[1].fields,t);return o&&r?[o,r]:void 0},at=(e,t)=>{let n=d(Date.now(),t);if(!n)return;let o=l(n),r=Number.isFinite(e)&&e>=1?Math.floor(e):1,s=N(o,t),u=b(o,t,-(r-1));return u&&s?[u,s]:void 0},dt=(e,t)=>{let n=d(Date.now(),t);if(!n)return;let o=l(n),r=Number.isFinite(e)&&e>=1?Math.floor(e):1,s=new Date(Date.UTC(o.year,o.month-1-r,1)),u=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,0)).getUTCDate(),f={...o,year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:Math.min(o.day,u)},a=b(f,t),g=N(o,t);return a&&g?[a,g]:void 0},ut=(e,t)=>({from:S(e[0],t),to:S(e[1],t)});var he=new Intl.DisplayNames(["en"],{type:"region"}),W=e=>{try{return he.of(e)}catch{return}},Te={US:"America/New_York",CA:"America/Toronto",BR:"America/Sao_Paulo",MX:"America/Mexico_City",AR:"America/Argentina/Buenos_Aires",CL:"America/Santiago",AU:"Australia/Sydney",NZ:"Pacific/Auckland",RU:"Europe/Moscow",UA:"Europe/Kyiv",ES:"Europe/Madrid",PT:"Europe/Lisbon",ID:"Asia/Jakarta",KZ:"Asia/Almaty",UZ:"Asia/Tashkent",MN:"Asia/Ulaanbaatar"},h="UTC",j={id:h,countryCode:h,countryName:h},U=e=>{if(!e)return false;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch{return false}},G=e=>{if(!e)return;if(e===h)return j;let t=getTimezone(e);if(t){let[n]=t.countries;return {id:e,countryCode:n??"",countryName:W(n)??n??e}}return U(e)?{id:e,countryCode:"",countryName:e}:void 0},Ze=e=>{let t=e?.trim().toUpperCase();if(!t)return;if(t===h)return j;let n=getCountry(t),o=Te[t]??n?.timezones[0];if(o)return {id:o,countryCode:t,countryName:W(t)??n?.name??t}},ft=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}},A=(e,t)=>({zone:e,countryCode:t?.trim().toUpperCase()||G(e)?.countryCode||""}),pt=e=>{if(e){if(typeof e=="string")return U(e)?A(e):void 0;if(!(!e.timezone||!U(e.timezone)))return A(e.timezone,e.countryCode)}},yt=e=>{let t=Ze(e);return t?A(t.id,t.countryCode):void 0},Dt=(e,t)=>!!e&&!!t&&e.zone===t.zone&&e.countryCode===t.countryCode,be=(e,t=Date.now())=>{let n=Y(e.zone,t).replace("UTC","GMT");return n?`(${n}) ${W(e.countryCode)??G(e.zone)?.countryName??e.zone}`:""},gt=e=>({timezone:e.zone,countryCode:e.countryCode,label:be(e),offset:(i(e.zone)??0)/60});export{yt as A,Dt as B,be as C,gt as D,i as a,Fe as b,Y as c,Oe as d,Ye as e,Ee as f,$e as g,Pe as h,p as i,Ve as j,S as k,ve as l,et as m,De as n,st as o,it as p,at as q,dt as r,ut as s,h as t,U as u,G as v,Ze as w,ft as x,A as y,pt as z};
@@ -1 +1 @@
1
- import {p as p$1}from'./chunk-F7I3KDV5.js';import {Sb}from'./chunk-XBJ4RS2B.js';import {b}from'./chunk-TIPJC5YT.js';import {ob}from'./chunk-EYLBXWXJ.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {styled}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var p=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),s=styled(motion.span)(({order:t})=>({zIndex:(t||0)+1}));var g=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function x({value:t,index:o}){let m=Sb(useId(),"rating-count"),{t:d}=useTranslation();return jsx(p$1,{title:d("totalPaymentCount",{amount:b(t)}),wrapperProps:{display:"inline-flex"},children:jsx(s,{id:m,order:o,variants:p(o),"data-testid":"RatingCount",children:jsxs(g,{children:[jsx("img",{src:ob,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{x as a};
1
+ import {p as p$1}from'./chunk-Z6D3LMCU.js';import {Sb}from'./chunk-XBJ4RS2B.js';import {b}from'./chunk-TIPJC5YT.js';import {ob}from'./chunk-EYLBXWXJ.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {styled}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var p=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),s=styled(motion.span)(({order:t})=>({zIndex:(t||0)+1}));var g=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function x({value:t,index:o}){let m=Sb(useId(),"rating-count"),{t:d}=useTranslation();return jsx(p$1,{title:d("totalPaymentCount",{amount:b(t)}),wrapperProps:{display:"inline-flex"},children:jsx(s,{id:m,order:o,variants:p(o),"data-testid":"RatingCount",children:jsxs(g,{children:[jsx("img",{src:ob,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{x as a};
@@ -1 +1 @@
1
- import {d as d$1}from'./chunk-F7I3KDV5.js';import {Eb,Db}from'./chunk-XBJ4RS2B.js';import {t,s}from'./chunk-EYLBXWXJ.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var d="os-shared-CurrencySymbol",m={root:`${d}-root`,masked:`${d}-masked`},u={SAR:s,AED:t};var k=styled(d$1)({width:"auto",height:10}),C=styled("span")(({$symbol:o,$fontSize:e,$color:r})=>({display:"inline-block",height:e,width:e,backgroundColor:r,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var g=forwardRef(({currency:o,fontSize:e,color:r,alt:n,id:t,className:y,sx:i},x)=>{let a=o!=null?u[o]:void 0;return a?r?jsx(C,{id:t,"data-testid":t??"CurrencySymbol",role:"img","aria-label":n??o,$symbol:a,$fontSize:e,$color:r,className:Eb(m.masked,y),sx:i}):jsx(k,{ref:x,id:t,"data-testid":t??"CurrencySymbol",src:a,alt:n??o??"",className:Eb(m.root,y),sx:Db(e!=null?{height:e}:{},i)}):jsx(Fragment,{children:o})});g.displayName="CurrencySymbol";var M=memo(g);export{m as a,M as b};
1
+ import {d as d$1}from'./chunk-Z6D3LMCU.js';import {Eb,Db}from'./chunk-XBJ4RS2B.js';import {t,s}from'./chunk-EYLBXWXJ.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var d="os-shared-CurrencySymbol",m={root:`${d}-root`,masked:`${d}-masked`},u={SAR:s,AED:t};var k=styled(d$1)({width:"auto",height:10}),C=styled("span")(({$symbol:o,$fontSize:e,$color:r})=>({display:"inline-block",height:e,width:e,backgroundColor:r,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var g=forwardRef(({currency:o,fontSize:e,color:r,alt:n,id:t,className:y,sx:i},x)=>{let a=o!=null?u[o]:void 0;return a?r?jsx(C,{id:t,"data-testid":t??"CurrencySymbol",role:"img","aria-label":n??o,$symbol:a,$fontSize:e,$color:r,className:Eb(m.masked,y),sx:i}):jsx(k,{ref:x,id:t,"data-testid":t??"CurrencySymbol",src:a,alt:n??o??"",className:Eb(m.root,y),sx:Db(e!=null?{height:e}:{},i)}):jsx(Fragment,{children:o})});g.displayName="CurrencySymbol";var M=memo(g);export{m as a,M as b};
@@ -1 +1 @@
1
- import {b as b$1,a}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,useState,useRef,useEffect,memo}from'react';import {styled,alpha,useTheme}from'@mui/material/styles';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import it from'@mui/material/Box';var r="os-shared-SearchButton",e={root:`${r}-root`,field:`${r}-field`,clear:`${r}-clear`,clearIcon:`${r}-clearIcon`,trigger:`${r}-trigger`,triggerActive:`${r}-triggerActive`},n=12,l=30,E=32,I=30,m=200,b={duration:.18,ease:"easeInOut"},A={duration:.05,ease:"easeIn"},y=3,O=10,f=11,H=48;var L=t=>jsx("svg",{width:n,height:n,viewBox:"0 0 7 7",fill:"none","aria-hidden":"true",...t,children:jsx("path",{d:"M2.55453 0C1.14683 0 0 1.15002 0 2.56164C0 3.97325 1.14683 5.12328 2.55453 5.12328C3.16345 5.12328 3.72322 4.90758 4.16281 4.54912L5.89118 6.28229C5.91553 6.30772 5.9447 6.32803 5.97697 6.34202C6.00925 6.356 6.04398 6.36339 6.07913 6.36375C6.11429 6.36411 6.14917 6.35743 6.18172 6.3441C6.21427 6.33078 6.24384 6.31107 6.2687 6.28614C6.29356 6.26121 6.31321 6.23156 6.3265 6.19892C6.33979 6.16627 6.34645 6.1313 6.3461 6.09605C6.34574 6.06079 6.33837 6.02596 6.32442 5.9936C6.31047 5.96124 6.29022 5.93199 6.26486 5.90757L4.53649 4.17439C4.89396 3.73358 5.10906 3.17225 5.10906 2.56164C5.10906 1.15002 3.96223 0 2.55453 0ZM2.55453 0.529994C3.6766 0.529994 4.58054 1.43645 4.58054 2.56164C4.58054 3.10976 4.36494 3.60497 4.0152 3.96978C3.99364 3.98567 3.97461 4.00475 3.95877 4.02637C3.59497 4.37708 3.10113 4.59328 2.55453 4.59328C1.43247 4.59328 0.528524 3.68682 0.528524 2.56164C0.528524 1.43645 1.43247 0.529994 2.55453 0.529994Z",fill:"currentColor"})}),D=t=>jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":"true",...t,children: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:"currentColor"})});var U=styled(it)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:y,width:"fit-content",height:t.v2.spacing(32),gap:t.v2.spacing(8)})),G=styled(motion.input)(({theme:t})=>{let{base:i,grey:o,brand:s}=t.v2.palette;return {padding:t.v2.spacing(8),paddingRight:t.v2.spacing(24),borderRadius:t.v2.radius(4),height:t.v2.spacing(32),color:o[900],fontSize:t.v2.typography.textVariants.body.small.regular.fontSize,outline:0,position:"relative",zIndex:O,background:i.white,display:"flex",minWidth:0,flexGrow:0,flexShrink:0,boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`,border:`1px solid ${s[500]}`,willChange:"width","::placeholder":{color:"#D5D5D5"}}}),F=styled(motion.button)(({theme:t})=>({position:"absolute",zIndex:f,top:0,bottom:0,right:t.v2.spacing(H),marginBlock:"auto",width:t.v2.spacing(24),height:t.v2.spacing(24),padding:0,border:"none",background:"transparent",color:t.v2.palette.grey[500],cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"flex-end",lineHeight:0,[`& .${e.clearIcon}`]:{backgroundColor:t.v2.palette.grey[100],borderRadius:"50%"}})),k=styled(b$1)(({theme:t})=>{let{base:i}=t.v2.palette,o="linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)";return {position:"relative",zIndex:f,"&&":{boxSizing:"border-box",width:t.v2.spacing(l),minWidth:t.v2.spacing(l),height:t.v2.spacing(E),padding:0,borderWidth:"1px",borderStyle:"solid",borderRadius:t.v2.radius(4)},[`&& .${a.icon}`]:{width:t.v2.spacing(n),height:t.v2.spacing(n)},"&:hover":{opacity:.7},[`&&.${e.triggerActive}`]:{boxSizing:"border-box",width:t.v2.spacing(l),minWidth:t.v2.spacing(l),height:t.v2.spacing(E),padding:0,border:"1px solid transparent",backgroundColor:"transparent",backgroundImage:o,backgroundClip:"padding-box",backgroundOrigin:"padding-box",color:i.white,boxShadow:"none",outline:"none","&:hover, &:focus, &:focus-visible":{opacity:.8}}}});var W=forwardRef(({onSearchChange:t,placeholder:i,defaultValue:o,id:s,className:z,sx:M,disabled:V,title:K,"aria-label":Y},j)=>{let[c,S]=useState(!!o),[q,g]=useState(false),[p,T]=useState(o??""),B=useRef(null),d=useRef(false),J=useTheme(),{t:Q}=useTranslation(),R=i??(Q("search")||"");useEffect(()=>{T(o??""),S(!!o);},[o]),useEffect(()=>{if(!c){d.current=false;return}d.current&&(d.current=false,B.current?.focus());},[c]);let tt=()=>{g(true),S(false),t?.(""),T("");},et=()=>{p&&t?.(p);},ot=()=>{c||(d.current=true),g(false),S(true),et();},rt=_=>{_.key==="Enter"&&t?.(p);},nt=_=>{T(_.currentTarget.value);},at=c||q;return jsxs(U,{ref:j,id:s,className:Eb(e.root,z),sx:M,"data-testid":s??"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>g(false),children:c&&jsxs(Fragment,{children:[jsx(G,{ref:B,className:e.field,initial:{width:I},animate:{width:m},exit:{width:I,border:`1px solid ${J.v2.palette.grey[100]}`,boxShadow:"none"},transition:b,placeholder:R,value:p,onKeyDown:rt,onChange:nt,"aria-label":R||"Search"}),jsx(F,{className:e.clear,type:"button",initial:{opacity:1},exit:{opacity:0},transition:A,"aria-label":"Clear search",onClick:tt,children:jsx(D,{className:e.clearIcon})})]})}),jsx(k,{type:"button",variant:"secondary",icon:jsx(L,{}),"aria-label":Y??"Search",disabled:V,title:K,className:Eb(e.trigger,at&&e.triggerActive),onClick:ot})]})});W.displayName="SearchButton";var X=memo(W);export{e as a,X as b};
1
+ import {b as b$1,a}from'./chunk-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,useState,useRef,useEffect,memo}from'react';import {styled,alpha,useTheme}from'@mui/material/styles';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import it from'@mui/material/Box';var r="os-shared-SearchButton",e={root:`${r}-root`,field:`${r}-field`,clear:`${r}-clear`,clearIcon:`${r}-clearIcon`,trigger:`${r}-trigger`,triggerActive:`${r}-triggerActive`},n=12,l=30,E=32,I=30,m=200,b={duration:.18,ease:"easeInOut"},A={duration:.05,ease:"easeIn"},y=3,O=10,f=11,H=48;var L=t=>jsx("svg",{width:n,height:n,viewBox:"0 0 7 7",fill:"none","aria-hidden":"true",...t,children:jsx("path",{d:"M2.55453 0C1.14683 0 0 1.15002 0 2.56164C0 3.97325 1.14683 5.12328 2.55453 5.12328C3.16345 5.12328 3.72322 4.90758 4.16281 4.54912L5.89118 6.28229C5.91553 6.30772 5.9447 6.32803 5.97697 6.34202C6.00925 6.356 6.04398 6.36339 6.07913 6.36375C6.11429 6.36411 6.14917 6.35743 6.18172 6.3441C6.21427 6.33078 6.24384 6.31107 6.2687 6.28614C6.29356 6.26121 6.31321 6.23156 6.3265 6.19892C6.33979 6.16627 6.34645 6.1313 6.3461 6.09605C6.34574 6.06079 6.33837 6.02596 6.32442 5.9936C6.31047 5.96124 6.29022 5.93199 6.26486 5.90757L4.53649 4.17439C4.89396 3.73358 5.10906 3.17225 5.10906 2.56164C5.10906 1.15002 3.96223 0 2.55453 0ZM2.55453 0.529994C3.6766 0.529994 4.58054 1.43645 4.58054 2.56164C4.58054 3.10976 4.36494 3.60497 4.0152 3.96978C3.99364 3.98567 3.97461 4.00475 3.95877 4.02637C3.59497 4.37708 3.10113 4.59328 2.55453 4.59328C1.43247 4.59328 0.528524 3.68682 0.528524 2.56164C0.528524 1.43645 1.43247 0.529994 2.55453 0.529994Z",fill:"currentColor"})}),D=t=>jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":"true",...t,children: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:"currentColor"})});var U=styled(it)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:y,width:"fit-content",height:t.v2.spacing(32),gap:t.v2.spacing(8)})),G=styled(motion.input)(({theme:t})=>{let{base:i,grey:o,brand:s}=t.v2.palette;return {padding:t.v2.spacing(8),paddingRight:t.v2.spacing(24),borderRadius:t.v2.radius(4),height:t.v2.spacing(32),color:o[900],fontSize:t.v2.typography.textVariants.body.small.regular.fontSize,outline:0,position:"relative",zIndex:O,background:i.white,display:"flex",minWidth:0,flexGrow:0,flexShrink:0,boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`,border:`1px solid ${s[500]}`,willChange:"width","::placeholder":{color:"#D5D5D5"}}}),F=styled(motion.button)(({theme:t})=>({position:"absolute",zIndex:f,top:0,bottom:0,right:t.v2.spacing(H),marginBlock:"auto",width:t.v2.spacing(24),height:t.v2.spacing(24),padding:0,border:"none",background:"transparent",color:t.v2.palette.grey[500],cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"flex-end",lineHeight:0,[`& .${e.clearIcon}`]:{backgroundColor:t.v2.palette.grey[100],borderRadius:"50%"}})),k=styled(b$1)(({theme:t})=>{let{base:i}=t.v2.palette,o="linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)";return {position:"relative",zIndex:f,"&&":{boxSizing:"border-box",width:t.v2.spacing(l),minWidth:t.v2.spacing(l),height:t.v2.spacing(E),padding:0,borderWidth:"1px",borderStyle:"solid",borderRadius:t.v2.radius(4)},[`&& .${a.icon}`]:{width:t.v2.spacing(n),height:t.v2.spacing(n)},"&:hover":{opacity:.7},[`&&.${e.triggerActive}`]:{boxSizing:"border-box",width:t.v2.spacing(l),minWidth:t.v2.spacing(l),height:t.v2.spacing(E),padding:0,border:"1px solid transparent",backgroundColor:"transparent",backgroundImage:o,backgroundClip:"padding-box",backgroundOrigin:"padding-box",color:i.white,boxShadow:"none",outline:"none","&:hover, &:focus, &:focus-visible":{opacity:.8}}}});var W=forwardRef(({onSearchChange:t,placeholder:i,defaultValue:o,id:s,className:z,sx:M,disabled:V,title:K,"aria-label":Y},j)=>{let[c,S]=useState(!!o),[q,g]=useState(false),[p,T]=useState(o??""),B=useRef(null),d=useRef(false),J=useTheme(),{t:Q}=useTranslation(),R=i??(Q("search")||"");useEffect(()=>{T(o??""),S(!!o);},[o]),useEffect(()=>{if(!c){d.current=false;return}d.current&&(d.current=false,B.current?.focus());},[c]);let tt=()=>{g(true),S(false),t?.(""),T("");},et=()=>{p&&t?.(p);},ot=()=>{c||(d.current=true),g(false),S(true),et();},rt=_=>{_.key==="Enter"&&t?.(p);},nt=_=>{T(_.currentTarget.value);},at=c||q;return jsxs(U,{ref:j,id:s,className:Eb(e.root,z),sx:M,"data-testid":s??"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>g(false),children:c&&jsxs(Fragment,{children:[jsx(G,{ref:B,className:e.field,initial:{width:I},animate:{width:m},exit:{width:I,border:`1px solid ${J.v2.palette.grey[100]}`,boxShadow:"none"},transition:b,placeholder:R,value:p,onKeyDown:rt,onChange:nt,"aria-label":R||"Search"}),jsx(F,{className:e.clear,type:"button",initial:{opacity:1},exit:{opacity:0},transition:A,"aria-label":"Clear search",onClick:tt,children:jsx(D,{className:e.clearIcon})})]})}),jsx(k,{type:"button",variant:"secondary",icon:jsx(L,{}),"aria-label":Y??"Search",disabled:V,title:K,className:Eb(e.trigger,at&&e.triggerActive),onClick:ot})]})});W.displayName="SearchButton";var X=memo(W);export{e as a,X as b};
@@ -1,2 +1,2 @@
1
- import {P as P$1,O}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,useMemo,useState,memo}from'react';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a="os-shared-Sidebar",e={root:`${a}-root`,header:`${a}-header`,content:`${a}-content`,footer:`${a}-footer`,link:`${a}-link`,group:`${a}-group`,groupSummary:`${a}-groupSummary`,groupSummaryActive:`${a}-groupSummaryActive`,groupSummaryExpanded:`${a}-groupSummaryExpanded`,groupHeader:`${a}-groupHeader`,groupContent:`${a}-groupContent`,groupItem:`${a}-groupItem`,startAdornment:`${a}-startAdornment`,endAdornment:`${a}-endAdornment`};var G=r=>{let{palette:n}=useTheme();return jsx("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:jsx("path",{d:"M9.97437 5.23633C10.0426 5.23465 10.1087 5.25507 10.1648 5.29395C10.2207 5.33278 10.264 5.3876 10.2888 5.45117C10.3136 5.51487 10.3195 5.5852 10.3064 5.65234C10.2934 5.71873 10.2614 5.77954 10.2146 5.82813L7.23608 9.01172C7.17462 9.07723 7.08968 9.11518 6.99976 9.11523C6.90985 9.11523 6.82492 9.07717 6.76343 9.01172L3.78394 5.8291L3.78491 5.82812C3.73877 5.77985 3.70612 5.71999 3.69312 5.6543C3.68007 5.58802 3.68575 5.51818 3.70972 5.45508C3.7337 5.39201 3.77618 5.33717 3.83081 5.29785C3.88553 5.25857 3.95095 5.23732 4.01831 5.2373C4.0635 5.23736 4.10797 5.24702 4.14917 5.26562C4.18997 5.28407 4.2263 5.31071 4.25659 5.34375L6.99878 8.27246L9.74194 5.34375C9.80179 5.27779 9.88521 5.23858 9.97437 5.23633Z",fill:n.text.textSecondary,stroke:n.text.textSecondary,strokeWidth:"0.204167"})})};var E="linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",H=styled("div")(({theme:r})=>{let{base:n}=r.v2.palette;return {backgroundColor:alpha(n.white,.7),backdropFilter:r.v2.blur[16],width:"100%",position:"sticky",padding:`${r.v2.spacing(8)} ${r.v2.spacing(8)}`,height:"100%",overflow:"hidden",display:"flex",flexDirection:"column",gap:r.v2.spacing(8)}}),L=styled("div")({flexShrink:0}),R=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(4),flex:1,minHeight:0,overflow:"auto"})),P=styled("div")({flexShrink:0}),C={border:"none",width:"100%",textAlign:"left",font:"inherit",cursor:"pointer"},f=styled("span")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),x=styled("span")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:"auto"}),F=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,flexShrink:0,...r.v2.typography.textVariants.body.small.regular,background:n?E:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n?o.white:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}}),V=styled(P$1)(({theme:r})=>({flexShrink:0,"&&":{background:"transparent",boxShadow:"none"},border:"none !important",borderRadius:"4px !important",[`& .${O.summary}`]:{padding:0,paddingRight:8,minHeight:"24px",height:"24px","&.Mui-expanded":{minHeight:"24px",height:"24px"},borderRadius:"4px !important",background:"transparent",transition:"none"},[`& .${O.summary}.${e.groupSummaryActive}`]:{backgroundColor:r.v2.palette.base.white},[`& .${O.summary}.${e.groupSummaryExpanded}`]:{backgroundColor:r.v2.palette.base.white},[`& .${O.content}`]:{borderTop:"none",padding:0},[`& .${O.labelContent}`]:{flexGrow:1,minWidth:0}})),D=styled("span",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,...r.v2.typography.textVariants.body.small.regular,background:n?o.white:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4),width:"100%",cursor:"pointer"}}),j=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(4),paddingTop:r.v2.spacing(4)})),M=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,flexShrink:0,...r.v2.typography.textVariants.body.small.regular,background:n?E:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n?o.white:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}});var $=r=>!!r.sections?.length;function T(r,n){let o=n??r?.[0]?.sections?.[0]?.id??r?.[0]?.id,d=r?.find(c=>c.id===o),u=!d||!$(d),l=u?r?.find(c=>c.sections?.some(y=>y.id===o)):d,g=l?.id??d?.id??o,b=l?u?o:l.sections?.[0]?.id:void 0;return {activeId:o,activeGroupId:g,activeLeafId:b}}var B=forwardRef(({sections:r,activeSectionId:n,onSelect:o,defaultExpandedIds:d,header:u,footer:l,id:g,className:b,sx:c},y)=>{let{activeId:h,activeGroupId:A,activeLeafId:k}=useMemo(()=>T(r,n),[r,n]),[O,W]=useState(()=>Object.fromEntries((d??[]).map(t=>[t,true])));return jsxs(H,{ref:y,id:g,"data-testid":g??"Sidebar",className:Eb(e.root,b),sx:c,children:[u?jsx(L,{className:e.header,children:u}):null,jsx(R,{className:e.content,children:r?.map(t=>{if(!$(t))return jsxs(F,{type:"button",$isActive:h===t.id,"aria-current":h===t.id?"true":void 0,onClick:()=>o?.(t,void 0,[t]),className:e.link,children:[t.startAdornment?jsx(f,{className:e.startAdornment,children:t.startAdornment}):null,t.title,t.endAdornment?jsx(x,{className:e.endAdornment,children:t.endAdornment}):null]},t.id);let I=O[t.id]??t.id===A;return jsx(V,{className:e.group,expanded:I,onChange:i=>W(Z=>({...Z,[t.id]:i})),expandIcon:jsx(G,{}),slotProps:{root:{component:"section"},summary:{className:Eb(e.groupSummary,A===t.id&&e.groupSummaryActive,I&&e.groupSummaryExpanded)}},label:jsxs(D,{$isActive:A===t.id,className:e.groupHeader,children:[t.startAdornment?jsx(f,{className:e.startAdornment,children:t.startAdornment}):null,t.title,t.endAdornment?jsx(x,{className:e.endAdornment,children:t.endAdornment}):null]}),content:jsx(j,{className:e.groupContent,children:t.sections?.map(i=>jsxs(M,{type:"button",$isActive:k===i.id,"aria-current":k===i.id?"true":void 0,onClick:()=>o?.(i,t,[t,i]),className:e.groupItem,children:[i.startAdornment?jsx(f,{className:e.startAdornment,children:i.startAdornment}):null,i.title,i.endAdornment?jsx(x,{className:e.endAdornment,children:i.endAdornment}):null]},`${t.id}-${i.id}`))})},t.id)})}),l?jsx(P,{className:e.footer,children:l}):null]})});B.displayName="Sidebar";var X=memo(B);
1
+ import {P as P$1,O}from'./chunk-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,useMemo,useState,memo}from'react';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var a="os-shared-Sidebar",e={root:`${a}-root`,header:`${a}-header`,content:`${a}-content`,footer:`${a}-footer`,link:`${a}-link`,group:`${a}-group`,groupSummary:`${a}-groupSummary`,groupSummaryActive:`${a}-groupSummaryActive`,groupSummaryExpanded:`${a}-groupSummaryExpanded`,groupHeader:`${a}-groupHeader`,groupContent:`${a}-groupContent`,groupItem:`${a}-groupItem`,startAdornment:`${a}-startAdornment`,endAdornment:`${a}-endAdornment`};var G=r=>{let{palette:n}=useTheme();return jsx("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:jsx("path",{d:"M9.97437 5.23633C10.0426 5.23465 10.1087 5.25507 10.1648 5.29395C10.2207 5.33278 10.264 5.3876 10.2888 5.45117C10.3136 5.51487 10.3195 5.5852 10.3064 5.65234C10.2934 5.71873 10.2614 5.77954 10.2146 5.82813L7.23608 9.01172C7.17462 9.07723 7.08968 9.11518 6.99976 9.11523C6.90985 9.11523 6.82492 9.07717 6.76343 9.01172L3.78394 5.8291L3.78491 5.82812C3.73877 5.77985 3.70612 5.71999 3.69312 5.6543C3.68007 5.58802 3.68575 5.51818 3.70972 5.45508C3.7337 5.39201 3.77618 5.33717 3.83081 5.29785C3.88553 5.25857 3.95095 5.23732 4.01831 5.2373C4.0635 5.23736 4.10797 5.24702 4.14917 5.26562C4.18997 5.28407 4.2263 5.31071 4.25659 5.34375L6.99878 8.27246L9.74194 5.34375C9.80179 5.27779 9.88521 5.23858 9.97437 5.23633Z",fill:n.text.textSecondary,stroke:n.text.textSecondary,strokeWidth:"0.204167"})})};var E="linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",H=styled("div")(({theme:r})=>{let{base:n}=r.v2.palette;return {backgroundColor:alpha(n.white,.7),backdropFilter:r.v2.blur[16],width:"100%",position:"sticky",padding:`${r.v2.spacing(8)} ${r.v2.spacing(8)}`,height:"100%",overflow:"hidden",display:"flex",flexDirection:"column",gap:r.v2.spacing(8)}}),L=styled("div")({flexShrink:0}),R=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(4),flex:1,minHeight:0,overflow:"auto"})),P=styled("div")({flexShrink:0}),C={border:"none",width:"100%",textAlign:"left",font:"inherit",cursor:"pointer"},f=styled("span")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),x=styled("span")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:"auto"}),F=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,flexShrink:0,...r.v2.typography.textVariants.body.small.regular,background:n?E:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n?o.white:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}}),V=styled(P$1)(({theme:r})=>({flexShrink:0,"&&":{background:"transparent",boxShadow:"none"},border:"none !important",borderRadius:"4px !important",[`& .${O.summary}`]:{padding:0,paddingRight:8,minHeight:"24px",height:"24px","&.Mui-expanded":{minHeight:"24px",height:"24px"},borderRadius:"4px !important",background:"transparent",transition:"none"},[`& .${O.summary}.${e.groupSummaryActive}`]:{backgroundColor:r.v2.palette.base.white},[`& .${O.summary}.${e.groupSummaryExpanded}`]:{backgroundColor:r.v2.palette.base.white},[`& .${O.content}`]:{borderTop:"none",padding:0},[`& .${O.labelContent}`]:{flexGrow:1,minWidth:0}})),D=styled("span",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,...r.v2.typography.textVariants.body.small.regular,background:n?o.white:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4),width:"100%",cursor:"pointer"}}),j=styled("div")(({theme:r})=>({display:"flex",flexDirection:"column",gap:r.v2.spacing(4),paddingTop:r.v2.spacing(4)})),M=styled("button",{shouldForwardProp:r=>r!=="$isActive"})(({theme:r,$isActive:n=false})=>{let{base:o,foreground:d}=r.v2.palette;return {...C,flexShrink:0,...r.v2.typography.textVariants.body.small.regular,background:n?E:"transparent",borderRadius:r.v2.radius(4),padding:`${r.v2.spacing(4)} ${r.v2.spacing(8)}`,color:n?o.white:d.primary,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:r.v2.spacing(4)}});var $=r=>!!r.sections?.length;function T(r,n){let o=n??r?.[0]?.sections?.[0]?.id??r?.[0]?.id,d=r?.find(c=>c.id===o),u=!d||!$(d),l=u?r?.find(c=>c.sections?.some(y=>y.id===o)):d,g=l?.id??d?.id??o,b=l?u?o:l.sections?.[0]?.id:void 0;return {activeId:o,activeGroupId:g,activeLeafId:b}}var B=forwardRef(({sections:r,activeSectionId:n,onSelect:o,defaultExpandedIds:d,header:u,footer:l,id:g,className:b,sx:c},y)=>{let{activeId:h,activeGroupId:A,activeLeafId:k}=useMemo(()=>T(r,n),[r,n]),[O,W]=useState(()=>Object.fromEntries((d??[]).map(t=>[t,true])));return jsxs(H,{ref:y,id:g,"data-testid":g??"Sidebar",className:Eb(e.root,b),sx:c,children:[u?jsx(L,{className:e.header,children:u}):null,jsx(R,{className:e.content,children:r?.map(t=>{if(!$(t))return jsxs(F,{type:"button",$isActive:h===t.id,"aria-current":h===t.id?"true":void 0,onClick:()=>o?.(t,void 0,[t]),className:e.link,children:[t.startAdornment?jsx(f,{className:e.startAdornment,children:t.startAdornment}):null,t.title,t.endAdornment?jsx(x,{className:e.endAdornment,children:t.endAdornment}):null]},t.id);let I=O[t.id]??t.id===A;return jsx(V,{className:e.group,expanded:I,onChange:i=>W(Z=>({...Z,[t.id]:i})),expandIcon:jsx(G,{}),slotProps:{root:{component:"section"},summary:{className:Eb(e.groupSummary,A===t.id&&e.groupSummaryActive,I&&e.groupSummaryExpanded)}},label:jsxs(D,{$isActive:A===t.id,className:e.groupHeader,children:[t.startAdornment?jsx(f,{className:e.startAdornment,children:t.startAdornment}):null,t.title,t.endAdornment?jsx(x,{className:e.endAdornment,children:t.endAdornment}):null]}),content:jsx(j,{className:e.groupContent,children:t.sections?.map(i=>jsxs(M,{type:"button",$isActive:k===i.id,"aria-current":k===i.id?"true":void 0,onClick:()=>o?.(i,t,[t,i]),className:e.groupItem,children:[i.startAdornment?jsx(f,{className:e.startAdornment,children:i.startAdornment}):null,i.title,i.endAdornment?jsx(x,{className:e.endAdornment,children:i.endAdornment}):null]},`${t.id}-${i.id}`))})},t.id)})}),l?jsx(P,{className:e.footer,children:l}):null]})});B.displayName="Sidebar";var X=memo(B);
2
2
  export{e as a,X as b};
@@ -1 +1 @@
1
- import {k as k$1,j as j$1,g}from'./chunk-ISC5KT5E.js';import {j as j$2}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {Ta,Ce,bb,Ra,Sa,Te}from'./chunk-EYLBXWXJ.js';import {forwardRef,useState,useCallback,memo}from'react';import m from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d="os-shared-WindowToolbar",e={root:`${d}-root`,start:`${d}-start`,end:`${d}-end`,title:`${d}-title`,titleIcon:`${d}-titleIcon`,icon:`${d}-icon`,expand:`${d}-expand`,expandIcon:`${d}-expandIcon`,expandText:`${d}-expandText`};var P=styled(m,{shouldForwardProp:o=>o!=="$isDragging"})(({theme:o,$isDragging:t=false})=>({margin:0,position:"sticky",top:0,left:0,right:0,cursor:t?"move":"default",flexShrink:0,height:32,display:"flex",width:"100%",justifyContent:"safe center",backgroundColor:j$1,backdropFilter:k$1,transition:"background-color 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),'[data-window-maximized="true"] & .action-box':{visibility:"hidden"},'[data-window-maximized="true"] &:hover .action-box':{visibility:"visible"},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1},[`.${e.expandIcon}`]:{backgroundColor:`${o.palette.success.main} !important`}},"&:focus-within":{[`.${e.expandText}`]:{opacity:1}}})),D=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:"1 1 0px",minWidth:0,gap:o.spacing(1),zIndex:1})),$=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"1 1 0px",minWidth:0,gap:o.spacing(1)})),v=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center",flex:"1 1 0px",minWidth:0,maxWidth:"100%",overflow:"hidden"})),z=styled("img")(()=>({width:14,height:14,verticalAlign:"center"})),A=styled(j$2)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),p=styled(m)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}})),k=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.error.main}})),M=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.warning.main}})),E=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.info.dark}})),R=styled(p,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({...t&&{backgroundColor:`${o.palette.common.orange} !important`,"& img":{filter:"brightness(0) invert(1)",opacity:1}},"&&.header-icon:hover":{backgroundColor:o.palette.common.orange,"& img":{filter:"brightness(0) invert(1)"}}})),F=styled(m)(()=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",cursor:"pointer","&:hover":{"& .sandbox-text":{display:"block"}}})),L=styled(j$2,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({fontSize:"10px",fontWeight:600,color:o.palette.common.orange,whiteSpace:"nowrap",display:t?"block":"none"})),j=styled(p,{shouldForwardProp:o=>o!=="$direction"})(({theme:o,$direction:t="right"})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},"& img":{transform:t==="left"?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out, opacity 0.2s ease-in-out"}})),B=styled(m,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t=false})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px",...t&&{"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`},"& .header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1}},"&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),O=styled(j$2)(()=>({fontFamily:"Tap Sans, sans-serif",fontWeight:600,fontSize:"10px",lineHeight:"100%",letterSpacing:"0%",textBoxTrim:"trim-start",textBoxEdge:"cap alphabetic",color:"rgba(42, 206, 0, 1)",opacity:0,transition:"opacity 0.2s ease-in-out"}));var _=forwardRef(function({children:t,id:r,className:a,sx:l,"data-testid":s,"data-id":x},X){let[Y,w]=useState(false),Z=useCallback(()=>{w(true);},[]),T=useCallback(()=>{w(false);},[]);return jsx(P,{ref:X,id:r,"data-testid":s??r??"WindowToolbar",...(x??r)!=null?{"data-id":x??r}:null,className:Eb(e.root,g,a),sx:l,$isDragging:Y,onPointerDown:Z,onPointerUp:T,onPointerCancel:T,children:t})});_.displayName="WindowToolbar";var ro=memo(_);function ao({className:o,id:t,...r}){return jsx(k,{...r,id:t,"data-testid":t??"CloseIcon",className:Eb(e.icon,"header-icon",o),children:jsx("img",{src:Ta,alt:"close"})})}var lo=memo(ao);function po({direction:o,active:t=false,children:r,className:a,id:l,...s}){return jsxs(B,{...s,id:l,"data-testid":l??"DirectionIcon",className:Eb(e.expand,a),$active:t,children:[jsx(j,{className:Eb(e.expandIcon,"header-icon"),$direction:o,children:jsx(m,{component:"img",src:Ce,alt:"arrow"})}),jsx(O,{className:Eb(e.expandText,"request-text"),children:r})]})}var co=memo(po);function xo({isMaximized:o=false,className:t,id:r,...a}){return jsx(E,{...a,id:r,"data-testid":r??"MaximizeIcon",className:Eb(e.icon,"header-icon",t),children:jsx("img",{src:o?bb:Ra,alt:"maximize"})})}var wo=memo(xo);function yo({className:o,id:t,...r}){return jsx(M,{...r,id:t,"data-testid":t??"MinimizeIcon",className:Eb(e.icon,"header-icon",o),children:jsx("img",{src:Sa,alt:"minimize"})})}var go=memo(yo);function uo({active:o=false,label:t="Sandbox mode",className:r,id:a,...l}){return jsxs(F,{...l,id:a,"data-testid":a??"SandboxIcon",className:r,children:[jsx(L,{$active:o,className:"sandbox-text",children:t}),jsx(R,{$active:o,className:Eb(e.icon,"header-icon"),children:jsx("img",{src:Te,alt:"sandbox"})})]})}var So=memo(uo);var G=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx(D,{ref:s,id:r,"data-testid":r??"WindowToolbarStartAdornment",className:Eb(e.start,"action-box",a),sx:l,children:t})});G.displayName="WindowToolbarStartAdornment";var No=memo(G);var J=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx($,{ref:s,id:r,"data-testid":r??"WindowToolbarEndAdornment",className:Eb(e.end,a),sx:l,children:t})});J.displayName="WindowToolbarEndAdornment";var vo=memo(J);function V({title:o,icon:t,className:r}){return jsxs(v,{className:Eb("action-box",r),children:[t?jsx(z,{src:t,alt:"icon",className:Eb(e.titleIcon)}):null,o?jsx(A,{className:Eb(e.title),children:o}):null]})}V.displayName="WindowToolbarTitle";var ko=memo(V);export{e as a,ro as b,lo as c,co as d,wo as e,go as f,So as g,No as h,vo as i,ko as j};
1
+ import {k as k$1,j as j$1,g}from'./chunk-ISC5KT5E.js';import {j as j$2}from'./chunk-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {Ta,Ce,bb,Ra,Sa,Te}from'./chunk-EYLBXWXJ.js';import {forwardRef,useState,useCallback,memo}from'react';import m from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d="os-shared-WindowToolbar",e={root:`${d}-root`,start:`${d}-start`,end:`${d}-end`,title:`${d}-title`,titleIcon:`${d}-titleIcon`,icon:`${d}-icon`,expand:`${d}-expand`,expandIcon:`${d}-expandIcon`,expandText:`${d}-expandText`};var P=styled(m,{shouldForwardProp:o=>o!=="$isDragging"})(({theme:o,$isDragging:t=false})=>({margin:0,position:"sticky",top:0,left:0,right:0,cursor:t?"move":"default",flexShrink:0,height:32,display:"flex",width:"100%",justifyContent:"safe center",backgroundColor:j$1,backdropFilter:k$1,transition:"background-color 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),'[data-window-maximized="true"] & .action-box':{visibility:"hidden"},'[data-window-maximized="true"] &:hover .action-box':{visibility:"visible"},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1},[`.${e.expandIcon}`]:{backgroundColor:`${o.palette.success.main} !important`}},"&:focus-within":{[`.${e.expandText}`]:{opacity:1}}})),D=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:"1 1 0px",minWidth:0,gap:o.spacing(1),zIndex:1})),$=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"1 1 0px",minWidth:0,gap:o.spacing(1)})),v=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center",flex:"1 1 0px",minWidth:0,maxWidth:"100%",overflow:"hidden"})),z=styled("img")(()=>({width:14,height:14,verticalAlign:"center"})),A=styled(j$2)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),p=styled(m)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}})),k=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.error.main}})),M=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.warning.main}})),E=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.info.dark}})),R=styled(p,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({...t&&{backgroundColor:`${o.palette.common.orange} !important`,"& img":{filter:"brightness(0) invert(1)",opacity:1}},"&&.header-icon:hover":{backgroundColor:o.palette.common.orange,"& img":{filter:"brightness(0) invert(1)"}}})),F=styled(m)(()=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",cursor:"pointer","&:hover":{"& .sandbox-text":{display:"block"}}})),L=styled(j$2,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({fontSize:"10px",fontWeight:600,color:o.palette.common.orange,whiteSpace:"nowrap",display:t?"block":"none"})),j=styled(p,{shouldForwardProp:o=>o!=="$direction"})(({theme:o,$direction:t="right"})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},"& img":{transform:t==="left"?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out, opacity 0.2s ease-in-out"}})),B=styled(m,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t=false})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px",...t&&{"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`},"& .header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1}},"&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),O=styled(j$2)(()=>({fontFamily:"Tap Sans, sans-serif",fontWeight:600,fontSize:"10px",lineHeight:"100%",letterSpacing:"0%",textBoxTrim:"trim-start",textBoxEdge:"cap alphabetic",color:"rgba(42, 206, 0, 1)",opacity:0,transition:"opacity 0.2s ease-in-out"}));var _=forwardRef(function({children:t,id:r,className:a,sx:l,"data-testid":s,"data-id":x},X){let[Y,w]=useState(false),Z=useCallback(()=>{w(true);},[]),T=useCallback(()=>{w(false);},[]);return jsx(P,{ref:X,id:r,"data-testid":s??r??"WindowToolbar",...(x??r)!=null?{"data-id":x??r}:null,className:Eb(e.root,g,a),sx:l,$isDragging:Y,onPointerDown:Z,onPointerUp:T,onPointerCancel:T,children:t})});_.displayName="WindowToolbar";var ro=memo(_);function ao({className:o,id:t,...r}){return jsx(k,{...r,id:t,"data-testid":t??"CloseIcon",className:Eb(e.icon,"header-icon",o),children:jsx("img",{src:Ta,alt:"close"})})}var lo=memo(ao);function po({direction:o,active:t=false,children:r,className:a,id:l,...s}){return jsxs(B,{...s,id:l,"data-testid":l??"DirectionIcon",className:Eb(e.expand,a),$active:t,children:[jsx(j,{className:Eb(e.expandIcon,"header-icon"),$direction:o,children:jsx(m,{component:"img",src:Ce,alt:"arrow"})}),jsx(O,{className:Eb(e.expandText,"request-text"),children:r})]})}var co=memo(po);function xo({isMaximized:o=false,className:t,id:r,...a}){return jsx(E,{...a,id:r,"data-testid":r??"MaximizeIcon",className:Eb(e.icon,"header-icon",t),children:jsx("img",{src:o?bb:Ra,alt:"maximize"})})}var wo=memo(xo);function yo({className:o,id:t,...r}){return jsx(M,{...r,id:t,"data-testid":t??"MinimizeIcon",className:Eb(e.icon,"header-icon",o),children:jsx("img",{src:Sa,alt:"minimize"})})}var go=memo(yo);function uo({active:o=false,label:t="Sandbox mode",className:r,id:a,...l}){return jsxs(F,{...l,id:a,"data-testid":a??"SandboxIcon",className:r,children:[jsx(L,{$active:o,className:"sandbox-text",children:t}),jsx(R,{$active:o,className:Eb(e.icon,"header-icon"),children:jsx("img",{src:Te,alt:"sandbox"})})]})}var So=memo(uo);var G=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx(D,{ref:s,id:r,"data-testid":r??"WindowToolbarStartAdornment",className:Eb(e.start,"action-box",a),sx:l,children:t})});G.displayName="WindowToolbarStartAdornment";var No=memo(G);var J=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx($,{ref:s,id:r,"data-testid":r??"WindowToolbarEndAdornment",className:Eb(e.end,a),sx:l,children:t})});J.displayName="WindowToolbarEndAdornment";var vo=memo(J);function V({title:o,icon:t,className:r}){return jsxs(v,{className:Eb("action-box",r),children:[t?jsx(z,{src:t,alt:"icon",className:Eb(e.titleIcon)}):null,o?jsx(A,{className:Eb(e.title),children:o}):null]})}V.displayName="WindowToolbarTitle";var ko=memo(V);export{e as a,ro as b,lo as c,co as d,wo as e,go as f,So as g,No as h,vo as i,ko as j};
@@ -1 +1 @@
1
- import {p}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {Nj,Mj,Lj,Jj,Hj,Ij,Kj}from'./chunk-EYLBXWXJ.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:Eb(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-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {Nj,Mj,Lj,Jj,Hj,Ij,Kj}from'./chunk-EYLBXWXJ.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:Eb(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 +1 @@
1
- import {d,j}from'./chunk-F7I3KDV5.js';import {ob,lb,Eb}from'./chunk-XBJ4RS2B.js';import {Lj,Re,Gb}from'./chunk-EYLBXWXJ.js';import {forwardRef,useState,useCallback,useMemo,memo}from'react';import {useDropzone}from'react-dropzone';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p="os-shared-FileUploader",a={root:`${p}-root`,content:`${p}-content`,iconWrapper:`${p}-iconWrapper`,textWrapper:`${p}-textWrapper`,upload:`${p}-upload`,maximum:`${p}-maximum`,errorMessage:`${p}-errorMessage`,closeButton:`${p}-closeButton`};var E=styled("div",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>{let{grey:s}=e.v2.palette;return {width:"100%",borderRadius:e.v2.radius(4),padding:`${e.v2.spacing(4)} ${e.v2.spacing(8)}`,display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:s[50],gap:e.v2.spacing(8),cursor:o?"default":"pointer",position:"relative",'& [data-slot="input"]':{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"},...o&&{'& [data-slot="content"], & [data-slot="icon-wrapper"]':{cursor:"default",opacity:.6}}}}),V=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:"inherit",cursor:"pointer",gap:e.v2.spacing(8)})),v=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:e.v2.spacing(4),color:"inherit"})),G=styled("div")(({theme:e})=>{let{grey:o,base:s}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,padding:e.v2.spacing(7),backgroundColor:s.white,borderRadius:e.v2.radius(4),border:`1px solid ${o[100]}`}}),H=styled("button")(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16,padding:0,marginLeft:"auto"}));function J(e,o){return e||(o?`PDF, JPG or PNG files up to ${o}`:"PDF, JPG or PNG files")}var pe="Click to upload",L=forwardRef(function({options:o,files:s,onChange:$,processFiles:U,disabled:f,error:I,invalidFileTypeText:P="Invalid file type",fileTooLargePrefix:W="File is larger than",maxFileSize:F,preventDuplicates:y,label:A=pe,hintText:K,onResetError:C,className:O,sx:Q,id:w},Y){let[S,g]=useState(null),T=useCallback(t=>{if(g(null),U)return U(t);if(!y)return t.map(r=>({file:r,id:r.name}));let l=[],n=[];for(let r of t)ob(r,s??[])?l.push(r.name):n.push({file:r,id:r.name});if(l.length>0){let r=l.length===1?"file":"files";g(`Duplicate ${r} detected: ${l.join(", ")}`);}return n},[s,y,U]),Z=useCallback(t=>{if(t.length===0){g(null);return}let l=T(t);(l.length>0||!y)&&$?.(l);},[T,y,$]),{getRootProps:_,getInputProps:ee,open:te,isDragReject:j$1,fileRejections:d$1}=useDropzone({...o,disabled:f||o?.disabled,onDrop:(t,l,n)=>{o?.onDrop?.(t,l,n),Z(t);}}),x=useMemo(()=>{if(F)return F;if(o?.maxSize)return lb(o.maxSize,0).toUpperCase()},[F,o?.maxSize]),c=useMemo(()=>{let t=!!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-invalid-type"));return !!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-too-large"))&&x?`${W} ${x}`:t||j$1?P:S||I},[j$1,d$1,x,S,I,P,W]),oe=J(K,x),re=useCallback(t=>{t.stopPropagation(),g(null),C?.(t);},[C]);return jsxs(E,{ref:Y,id:w,"data-testid":w??"FileUploader",..._(),className:Eb(a.root,O),sx:Q,$disabled:f,onClick:f?void 0:te,children:[jsx("input",{"data-slot":"input",...ee(),disabled:f}),jsxs(V,{"data-slot":"content",className:a.content,children:[jsx(G,{"data-slot":"icon-wrapper",className:a.iconWrapper,children:jsx(d,{src:c?Lj:Re,alt:c?"Upload error":"Upload file",sx:{width:16,height:16}})}),c?jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"micro.medium",className:a.errorMessage,sx:t=>({color:t.v2.palette.error[500]}),children:c}),jsx(j,{textVariant:"caption.medium",className:a.upload,children:"Click to upload again"})]}):jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"caption.medium",className:a.upload,children:A}),jsx(j,{textVariant:"micro.medium",className:a.maximum,sx:{opacity:.7},children:oe})]})]}),c&&C&&jsx(H,{type:"button","data-slot":"close-icon-wrapper",className:a.closeButton,onClick:re,"aria-label":"Dismiss upload error",children:jsx(d,{src:Gb,alt:"Dismiss",sx:{width:10,height:10}})})]})});L.displayName="FileUploader";var X=memo(L);export{a,X as b};
1
+ import {d,j}from'./chunk-Z6D3LMCU.js';import {ob,lb,Eb}from'./chunk-XBJ4RS2B.js';import {Lj,Re,Gb}from'./chunk-EYLBXWXJ.js';import {forwardRef,useState,useCallback,useMemo,memo}from'react';import {useDropzone}from'react-dropzone';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p="os-shared-FileUploader",a={root:`${p}-root`,content:`${p}-content`,iconWrapper:`${p}-iconWrapper`,textWrapper:`${p}-textWrapper`,upload:`${p}-upload`,maximum:`${p}-maximum`,errorMessage:`${p}-errorMessage`,closeButton:`${p}-closeButton`};var E=styled("div",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>{let{grey:s}=e.v2.palette;return {width:"100%",borderRadius:e.v2.radius(4),padding:`${e.v2.spacing(4)} ${e.v2.spacing(8)}`,display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:s[50],gap:e.v2.spacing(8),cursor:o?"default":"pointer",position:"relative",'& [data-slot="input"]':{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"},...o&&{'& [data-slot="content"], & [data-slot="icon-wrapper"]':{cursor:"default",opacity:.6}}}}),V=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:"inherit",cursor:"pointer",gap:e.v2.spacing(8)})),v=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:e.v2.spacing(4),color:"inherit"})),G=styled("div")(({theme:e})=>{let{grey:o,base:s}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,padding:e.v2.spacing(7),backgroundColor:s.white,borderRadius:e.v2.radius(4),border:`1px solid ${o[100]}`}}),H=styled("button")(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16,padding:0,marginLeft:"auto"}));function J(e,o){return e||(o?`PDF, JPG or PNG files up to ${o}`:"PDF, JPG or PNG files")}var pe="Click to upload",L=forwardRef(function({options:o,files:s,onChange:$,processFiles:U,disabled:f,error:I,invalidFileTypeText:P="Invalid file type",fileTooLargePrefix:W="File is larger than",maxFileSize:F,preventDuplicates:y,label:A=pe,hintText:K,onResetError:C,className:O,sx:Q,id:w},Y){let[S,g]=useState(null),T=useCallback(t=>{if(g(null),U)return U(t);if(!y)return t.map(r=>({file:r,id:r.name}));let l=[],n=[];for(let r of t)ob(r,s??[])?l.push(r.name):n.push({file:r,id:r.name});if(l.length>0){let r=l.length===1?"file":"files";g(`Duplicate ${r} detected: ${l.join(", ")}`);}return n},[s,y,U]),Z=useCallback(t=>{if(t.length===0){g(null);return}let l=T(t);(l.length>0||!y)&&$?.(l);},[T,y,$]),{getRootProps:_,getInputProps:ee,open:te,isDragReject:j$1,fileRejections:d$1}=useDropzone({...o,disabled:f||o?.disabled,onDrop:(t,l,n)=>{o?.onDrop?.(t,l,n),Z(t);}}),x=useMemo(()=>{if(F)return F;if(o?.maxSize)return lb(o.maxSize,0).toUpperCase()},[F,o?.maxSize]),c=useMemo(()=>{let t=!!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-invalid-type"));return !!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-too-large"))&&x?`${W} ${x}`:t||j$1?P:S||I},[j$1,d$1,x,S,I,P,W]),oe=J(K,x),re=useCallback(t=>{t.stopPropagation(),g(null),C?.(t);},[C]);return jsxs(E,{ref:Y,id:w,"data-testid":w??"FileUploader",..._(),className:Eb(a.root,O),sx:Q,$disabled:f,onClick:f?void 0:te,children:[jsx("input",{"data-slot":"input",...ee(),disabled:f}),jsxs(V,{"data-slot":"content",className:a.content,children:[jsx(G,{"data-slot":"icon-wrapper",className:a.iconWrapper,children:jsx(d,{src:c?Lj:Re,alt:c?"Upload error":"Upload file",sx:{width:16,height:16}})}),c?jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"micro.medium",className:a.errorMessage,sx:t=>({color:t.v2.palette.error[500]}),children:c}),jsx(j,{textVariant:"caption.medium",className:a.upload,children:"Click to upload again"})]}):jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"caption.medium",className:a.upload,children:A}),jsx(j,{textVariant:"micro.medium",className:a.maximum,sx:{opacity:.7},children:oe})]})]}),c&&C&&jsx(H,{type:"button","data-slot":"close-icon-wrapper",className:a.closeButton,onClick:re,"aria-label":"Dismiss upload error",children:jsx(d,{src:Gb,alt:"Dismiss",sx:{width:10,height:10}})})]})});L.displayName="FileUploader";var X=memo(L);export{a,X as b};
@@ -1 +1 @@
1
- import {L,ba,aa}from'./chunk-F7I3KDV5.js';import {Sb,Ub,Db,Eb,pa}from'./chunk-XBJ4RS2B.js';import {i,j}from'./chunk-TIPJC5YT.js';import {forwardRef,useId,useRef,useLayoutEffect,memo}from'react';import ge from'@mui/material/Box';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p="os-shared-TextInput",a={root:`${p}-root`,field:`${p}-field`,label:`${p}-label`,input:`${p}-input`,helperText:`${p}-helperText`},A=new Set(["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);var F=styled(ge)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%"}));function R(e,t){let{borderColor:r}=aa(e,t),l=e.v2.radius(4);return {borderColor:r,borderBottom:"none",borderRadius:`${l} ${l} 0 0`,"&:focus-within":{borderColor:r,boxShadow:"none"}}}var $=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.v2.palette.base.black,.6),fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function K(e,t){let r=typeof e=="string"&&pa(e)?e:void 0;return {resolvedLabel:r??t??void 0,resolvedPlaceholder:r&&typeof t=="string"?t:void 0}}function D(e,t){!(e.metaKey||e.ctrlKey||e.altKey)&&!A.has(e.key)&&(e.key==="."?String(e.currentTarget.value??"").replace(/,/g,"").includes(".")&&e.preventDefault():/^[0-9]$/.test(e.key)||e.preventDefault()),t?.(e);}var B=forwardRef(({onChange:e,error:t=false,helperText:r,feedback:l,label:g,placeholder:O,disabled:V,fullWidth:z=true,startAdornment:U,endAdornment:_,readOnly:j$1,inputProps:q,InputProps:G,InputLabelProps:Ce,className:J,sx:Q,id:m="TextInput",type:X,value:d,defaultValue:f,onKeyDown:b,hasThousandSeparator:n=false,...Y},u)=>{let Z=useTheme(),ee=Sb(useId(),"text-input"),x=useRef(null),s=useRef(null),te=o=>{x.current=o,typeof u=="function"?u(o):u&&(u.current=o);},re=o=>{if(!n){e?.(o.target.value??"");return}let T=o.target.value??"",Te=o.target.selectionStart??T.length,Ie=T.slice(0,Te).replace(/,/g,"").length,h=i(T);s.current=j(h,Ie),e?.(h);};useLayoutEffect(()=>{!n||s.current==null||!x.current||(x.current.setSelectionRange(s.current,s.current),s.current=null);},[n,d]);let{isProvided:y,isVisible:oe,type:ne}=Ub(l),{resolvedLabel:le,resolvedPlaceholder:se}=K(g,O),S=!!t&&!y,{sx:pe,startAdornment:ae,endAdornment:de,readOnly:ue,inputProps:ie,disabled:ce}=G??{},me=oe?R(Z,ne):{},fe=Db(Db(me,pe),Q),xe=n&&d!=null?i(String(d)):d,ye=n&&f!=null?i(String(f)):f;return jsxs(ge,{className:a.root,children:[jsx(F,{id:ee,"data-testid":"TextInput",children:jsx(L,{id:m,...Y,ref:te,type:n?"text":X,value:xe,defaultValue:ye,label:le,placeholder:se,disabled:V??ce,fullWidth:z,error:S,startAdornment:U??ae,endAdornment:_??de,readOnly:j$1??ue,inputProps:{...n?{inputMode:"decimal"}:{},...ie,...q},onKeyDown:n?o=>D(o,b):b,onChange:re,className:Eb(a.field,J),sx:fe})}),y?jsx(ba,{...l}):null,!y&&r?jsx($,{className:a.helperText,id:m?`${m}-helper-text`:void 0,$error:S,children:r}):null]})});B.displayName="TextInput";var W=memo(B);export{a,W as b};
1
+ import {L,ba,aa}from'./chunk-Z6D3LMCU.js';import {Sb,Ub,Db,Eb,pa}from'./chunk-XBJ4RS2B.js';import {i,j}from'./chunk-TIPJC5YT.js';import {forwardRef,useId,useRef,useLayoutEffect,memo}from'react';import ge from'@mui/material/Box';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p="os-shared-TextInput",a={root:`${p}-root`,field:`${p}-field`,label:`${p}-label`,input:`${p}-input`,helperText:`${p}-helperText`},A=new Set(["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);var F=styled(ge)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%"}));function R(e,t){let{borderColor:r}=aa(e,t),l=e.v2.radius(4);return {borderColor:r,borderBottom:"none",borderRadius:`${l} ${l} 0 0`,"&:focus-within":{borderColor:r,boxShadow:"none"}}}var $=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.v2.palette.base.black,.6),fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function K(e,t){let r=typeof e=="string"&&pa(e)?e:void 0;return {resolvedLabel:r??t??void 0,resolvedPlaceholder:r&&typeof t=="string"?t:void 0}}function D(e,t){!(e.metaKey||e.ctrlKey||e.altKey)&&!A.has(e.key)&&(e.key==="."?String(e.currentTarget.value??"").replace(/,/g,"").includes(".")&&e.preventDefault():/^[0-9]$/.test(e.key)||e.preventDefault()),t?.(e);}var B=forwardRef(({onChange:e,error:t=false,helperText:r,feedback:l,label:g,placeholder:O,disabled:V,fullWidth:z=true,startAdornment:U,endAdornment:_,readOnly:j$1,inputProps:q,InputProps:G,InputLabelProps:Ce,className:J,sx:Q,id:m="TextInput",type:X,value:d,defaultValue:f,onKeyDown:b,hasThousandSeparator:n=false,...Y},u)=>{let Z=useTheme(),ee=Sb(useId(),"text-input"),x=useRef(null),s=useRef(null),te=o=>{x.current=o,typeof u=="function"?u(o):u&&(u.current=o);},re=o=>{if(!n){e?.(o.target.value??"");return}let T=o.target.value??"",Te=o.target.selectionStart??T.length,Ie=T.slice(0,Te).replace(/,/g,"").length,h=i(T);s.current=j(h,Ie),e?.(h);};useLayoutEffect(()=>{!n||s.current==null||!x.current||(x.current.setSelectionRange(s.current,s.current),s.current=null);},[n,d]);let{isProvided:y,isVisible:oe,type:ne}=Ub(l),{resolvedLabel:le,resolvedPlaceholder:se}=K(g,O),S=!!t&&!y,{sx:pe,startAdornment:ae,endAdornment:de,readOnly:ue,inputProps:ie,disabled:ce}=G??{},me=oe?R(Z,ne):{},fe=Db(Db(me,pe),Q),xe=n&&d!=null?i(String(d)):d,ye=n&&f!=null?i(String(f)):f;return jsxs(ge,{className:a.root,children:[jsx(F,{id:ee,"data-testid":"TextInput",children:jsx(L,{id:m,...Y,ref:te,type:n?"text":X,value:xe,defaultValue:ye,label:le,placeholder:se,disabled:V??ce,fullWidth:z,error:S,startAdornment:U??ae,endAdornment:_??de,readOnly:j$1??ue,inputProps:{...n?{inputMode:"decimal"}:{},...ie,...q},onKeyDown:n?o=>D(o,b):b,onChange:re,className:Eb(a.field,J),sx:fe})}),y?jsx(ba,{...l}):null,!y&&r?jsx($,{className:a.helperText,id:m?`${m}-helper-text`:void 0,$error:S,children:r}):null]})});B.displayName="TextInput";var W=memo(B);export{a,W as b};
@@ -1 +1 @@
1
- import {j,k,d,l}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,memo}from'react';import B from'@mui/material/FormControl';import j$1 from'@mui/material/FormControlLabel';import q from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var i="os-shared-RadioGroup",t={root:`${i}-root`,title:`${i}-title`,group:`${i}-group`,item:`${i}-item`,label:`${i}-label`,icon:`${i}-icon`},V=["sm","md","lg"],W=["vertical","horizontal"],u="sm",S="vertical",I=0,A={sm:[7.5,16,7.5,8],md:[9,16,9,10],lg:[11,16,11,12]},T={sm:35,md:40,lg:45},U={sm:o=>({...o.v2.typography.textVariants.body.small.medium}),md:o=>({...o.v2.typography.textVariants.body.medium.medium}),lg:o=>({...o.v2.typography.textVariants.body.large.semibold,fontWeight:o.v2.typography.fontWeightMedium})};function J(o,r){let[e,a,s,d]=A[r];return `${o.v2.spacing(e)} ${o.v2.spacing(a)} ${o.v2.spacing(s)} ${o.v2.spacing(d)}`}var D=styled(B)({display:"flex",flexDirection:"column",width:"100%",minWidth:0}),C=styled(j)(({theme:o})=>({color:o.v2.palette.grey[700],marginBottom:o.v2.spacing(4)})),N=styled(q,{shouldForwardProp:o=>o!=="$layout"&&o!=="$spacing"})(({theme:o,$layout:r,$spacing:e})=>({display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:o.v2.spacing(e),...r==="horizontal"&&{[`& .${t.item}`]:{width:"auto",flexShrink:0}}})),v=styled(j$1,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:r})=>{let{brand:e,grey:a}=o.v2.palette;return {margin:0,width:"100%",cursor:"pointer",padding:J(o,r),maxHeight:o.v2.spacing(T[r]),"& .MuiFormControlLabel-label":{...U[r](o),color:a[900],display:"block",width:"100%",cursor:"pointer"},[`& .${k.root}`]:{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:e[500]}}}}),E=styled("span")(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:o.v2.spacing(8),width:"100%",minWidth:0})),$=styled(d)({flexShrink:0,display:"block",marginLeft:"auto"});var z=forwardRef(({option:o,size:r=u,customLabelRenderer:e,labelPosition:a="end",customRadioProps:s,labelSx:d,className:R,sx:y,...G},f)=>{let m=e?e(o):o.label,{src:l$1,...g}=o.icon??{};return jsx(v,{ref:f,value:o.value,control:jsx(l,{...s,...o.customProps}),label:jsxs(E,{className:t.label,sx:d,children:[m,l$1?jsx($,{...g,src:l$1,className:Eb(t.icon,o.icon?.className)}):null]}),disabled:o.disabled,labelPlacement:a,$size:r,className:Eb(t.item,R),sx:y,...G})});z.displayName="RadioItem";var F=memo(z);var w=forwardRef(({options:o,onOptionChange:r,size:e=u,customLabelRenderer:a,layout:s=S,spacing:d=I,labelPosition:R="end",customRadioProps:y,labelSx:G,onChange:f,title:m,id:l,className:g,sx:M,"data-testid":k,...H},Z)=>{let Y=(c,b)=>{r?.(b),f?.(c,b);};return jsxs(D,{ref:Z,id:l,"data-testid":k??l??"RadioGroup",className:Eb(t.root,g),sx:M,children:[typeof m=="string"?jsx(C,{component:"span",textVariant:"body.small.medium",className:t.title,children:m}):m,jsx(N,{className:t.group,$layout:s,$spacing:d,onChange:Y,...H,children:o.map(c=>jsx(F,{option:c,size:e,customLabelRenderer:a,labelPosition:R,customRadioProps:y,labelSx:G},c.value))})]})});w.displayName="RadioGroup";var to=memo(w);export{t as a,V as b,W as c,u as d,S as e,I as f,to as g};
1
+ import {j,k,d,l}from'./chunk-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,memo}from'react';import B from'@mui/material/FormControl';import j$1 from'@mui/material/FormControlLabel';import q from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var i="os-shared-RadioGroup",t={root:`${i}-root`,title:`${i}-title`,group:`${i}-group`,item:`${i}-item`,label:`${i}-label`,icon:`${i}-icon`},V=["sm","md","lg"],W=["vertical","horizontal"],u="sm",S="vertical",I=0,A={sm:[7.5,16,7.5,8],md:[9,16,9,10],lg:[11,16,11,12]},T={sm:35,md:40,lg:45},U={sm:o=>({...o.v2.typography.textVariants.body.small.medium}),md:o=>({...o.v2.typography.textVariants.body.medium.medium}),lg:o=>({...o.v2.typography.textVariants.body.large.semibold,fontWeight:o.v2.typography.fontWeightMedium})};function J(o,r){let[e,a,s,d]=A[r];return `${o.v2.spacing(e)} ${o.v2.spacing(a)} ${o.v2.spacing(s)} ${o.v2.spacing(d)}`}var D=styled(B)({display:"flex",flexDirection:"column",width:"100%",minWidth:0}),C=styled(j)(({theme:o})=>({color:o.v2.palette.grey[700],marginBottom:o.v2.spacing(4)})),N=styled(q,{shouldForwardProp:o=>o!=="$layout"&&o!=="$spacing"})(({theme:o,$layout:r,$spacing:e})=>({display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:o.v2.spacing(e),...r==="horizontal"&&{[`& .${t.item}`]:{width:"auto",flexShrink:0}}})),v=styled(j$1,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:r})=>{let{brand:e,grey:a}=o.v2.palette;return {margin:0,width:"100%",cursor:"pointer",padding:J(o,r),maxHeight:o.v2.spacing(T[r]),"& .MuiFormControlLabel-label":{...U[r](o),color:a[900],display:"block",width:"100%",cursor:"pointer"},[`& .${k.root}`]:{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:e[500]}}}}),E=styled("span")(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:o.v2.spacing(8),width:"100%",minWidth:0})),$=styled(d)({flexShrink:0,display:"block",marginLeft:"auto"});var z=forwardRef(({option:o,size:r=u,customLabelRenderer:e,labelPosition:a="end",customRadioProps:s,labelSx:d,className:R,sx:y,...G},f)=>{let m=e?e(o):o.label,{src:l$1,...g}=o.icon??{};return jsx(v,{ref:f,value:o.value,control:jsx(l,{...s,...o.customProps}),label:jsxs(E,{className:t.label,sx:d,children:[m,l$1?jsx($,{...g,src:l$1,className:Eb(t.icon,o.icon?.className)}):null]}),disabled:o.disabled,labelPlacement:a,$size:r,className:Eb(t.item,R),sx:y,...G})});z.displayName="RadioItem";var F=memo(z);var w=forwardRef(({options:o,onOptionChange:r,size:e=u,customLabelRenderer:a,layout:s=S,spacing:d=I,labelPosition:R="end",customRadioProps:y,labelSx:G,onChange:f,title:m,id:l,className:g,sx:M,"data-testid":k,...H},Z)=>{let Y=(c,b)=>{r?.(b),f?.(c,b);};return jsxs(D,{ref:Z,id:l,"data-testid":k??l??"RadioGroup",className:Eb(t.root,g),sx:M,children:[typeof m=="string"?jsx(C,{component:"span",textVariant:"body.small.medium",className:t.title,children:m}):m,jsx(N,{className:t.group,$layout:s,$spacing:d,onChange:Y,...H,children:o.map(c=>jsx(F,{option:c,size:e,customLabelRenderer:a,labelPosition:R,customRadioProps:y,labelSx:G},c.value))})]})});w.displayName="RadioGroup";var to=memo(w);export{t as a,V as b,W as c,u as d,S as e,I as f,to as g};
@@ -1 +1 @@
1
- import {j,r as r$1}from'./chunk-F7I3KDV5.js';import {Eb,wa}from'./chunk-XBJ4RS2B.js';import {forwardRef,useId,memo}from'react';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var i="os-shared-ProgressRing",r={root:`${i}-root`,svg:`${i}-svg`,track:`${i}-track`,indicator:`${i}-indicator`,content:`${i}-content`,value:`${i}-value`,label:`${i}-label`,skeleton:`${i}-skeleton`},x=172,h=22,G="----",I=17,O=1,T=.5,v=[{offset:"0.67%",color:"#3DA6E1"},{offset:"98.91%",color:"#147DC5"}],a={gap:6,value:{width:51,height:16},label:{width:84,height:8}};var b=styled("div",{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o})=>({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",width:e.v2.spacing(o),height:e.v2.spacing(o)})),$=styled("svg")({position:"absolute",top:0,left:0}),D=styled("circle")(({theme:e})=>({stroke:e.v2.palette.grey[100],fill:"transparent"})),k=styled("div")({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),L=styled(j,{shouldForwardProp:e=>e!=="$isEmpty"})(({theme:e,$isEmpty:o})=>{let{grey:n,foreground:t}=e.v2.palette;return {fontSize:e.v2.spacing(I),fontWeight:e.v2.typography.textVariants.body.default.bold.fontWeight,lineHeight:"normal",color:o?t.disabled:n[900]}}),A=styled(j,{shouldForwardProp:e=>e!=="$isEmpty"})(({theme:e,$isEmpty:o})=>{let{grey:n,foreground:t}=e.v2.palette;return {...e.v2.typography.textVariants.body.small.medium,lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:o?t.disabled:n[500]}}),w=styled("span")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:e.v2.spacing(a.gap)}));function U(){return jsxs(w,{className:r.skeleton,children:[jsx(r$1,{width:a.value.width,height:a.value.height}),jsx(r$1,{width:a.label.width,height:a.label.height})]})}var C=e=>e==null||e==="",V=e=>Math.min(Math.max(wa(e||"0")??0,0),100),M=e=>`${Number.isInteger(e)?e:e.toFixed(1)}%`,H=(e,o)=>{let n=e/2,t=(e-o)/2;return {center:n,radius:t,circumference:2*Math.PI*t}},K=e=>`progress-ring-gradient-${e.replace(/[^a-zA-Z0-9_-]/g,"")}`;var W=forwardRef(({id:e,value:o,label:n,size:t=x,strokeWidth:R=h,isLoading:c=false,className:X,sx:Y},B)=>{let P=K(useId()),d=C(o),_=V(o),{center:g,radius:y,circumference:p}=H(t,R),q=c?p:p-p*_/100;return jsxs(b,{ref:B,id:e,"data-testid":e??"ProgressRing",$size:t,className:Eb(r.root,X),sx:Y,children:[jsxs($,{className:r.svg,width:t,height:t,viewBox:`0 0 ${t} ${t}`,"aria-hidden":true,children:[jsx("defs",{children:jsx("linearGradient",{id:P,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:v.map(({offset:E,color:J})=>jsx("stop",{offset:E,stopColor:J},E))})}),jsx(D,{className:r.track,cx:g,cy:g,r:y,strokeWidth:R}),jsx(motion.circle,{className:r.indicator,cx:g,cy:g,r:y,stroke:`url(#${P})`,strokeWidth:R,fill:"transparent",strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:p,transform:`rotate(-90 ${g} ${g})`,animate:{strokeDashoffset:q},transition:{duration:O,ease:"easeOut"}})]}),jsxs(k,{className:r.content,children:[jsx(L,{component:"p",className:r.value,$isEmpty:d,children:c?jsx(U,{}):d?G:jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:T},children:M(_)})}),!c&&n?jsx(A,{component:"p",className:r.label,$isEmpty:d,children:n}):null]})]})});W.displayName="ProgressRing";var te=memo(W);export{r as a,te as b};
1
+ import {j,r as r$1}from'./chunk-Z6D3LMCU.js';import {Eb,wa}from'./chunk-XBJ4RS2B.js';import {forwardRef,useId,memo}from'react';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var i="os-shared-ProgressRing",r={root:`${i}-root`,svg:`${i}-svg`,track:`${i}-track`,indicator:`${i}-indicator`,content:`${i}-content`,value:`${i}-value`,label:`${i}-label`,skeleton:`${i}-skeleton`},x=172,h=22,G="----",I=17,O=1,T=.5,v=[{offset:"0.67%",color:"#3DA6E1"},{offset:"98.91%",color:"#147DC5"}],a={gap:6,value:{width:51,height:16},label:{width:84,height:8}};var b=styled("div",{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o})=>({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",width:e.v2.spacing(o),height:e.v2.spacing(o)})),$=styled("svg")({position:"absolute",top:0,left:0}),D=styled("circle")(({theme:e})=>({stroke:e.v2.palette.grey[100],fill:"transparent"})),k=styled("div")({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),L=styled(j,{shouldForwardProp:e=>e!=="$isEmpty"})(({theme:e,$isEmpty:o})=>{let{grey:n,foreground:t}=e.v2.palette;return {fontSize:e.v2.spacing(I),fontWeight:e.v2.typography.textVariants.body.default.bold.fontWeight,lineHeight:"normal",color:o?t.disabled:n[900]}}),A=styled(j,{shouldForwardProp:e=>e!=="$isEmpty"})(({theme:e,$isEmpty:o})=>{let{grey:n,foreground:t}=e.v2.palette;return {...e.v2.typography.textVariants.body.small.medium,lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:o?t.disabled:n[500]}}),w=styled("span")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:e.v2.spacing(a.gap)}));function U(){return jsxs(w,{className:r.skeleton,children:[jsx(r$1,{width:a.value.width,height:a.value.height}),jsx(r$1,{width:a.label.width,height:a.label.height})]})}var C=e=>e==null||e==="",V=e=>Math.min(Math.max(wa(e||"0")??0,0),100),M=e=>`${Number.isInteger(e)?e:e.toFixed(1)}%`,H=(e,o)=>{let n=e/2,t=(e-o)/2;return {center:n,radius:t,circumference:2*Math.PI*t}},K=e=>`progress-ring-gradient-${e.replace(/[^a-zA-Z0-9_-]/g,"")}`;var W=forwardRef(({id:e,value:o,label:n,size:t=x,strokeWidth:R=h,isLoading:c=false,className:X,sx:Y},B)=>{let P=K(useId()),d=C(o),_=V(o),{center:g,radius:y,circumference:p}=H(t,R),q=c?p:p-p*_/100;return jsxs(b,{ref:B,id:e,"data-testid":e??"ProgressRing",$size:t,className:Eb(r.root,X),sx:Y,children:[jsxs($,{className:r.svg,width:t,height:t,viewBox:`0 0 ${t} ${t}`,"aria-hidden":true,children:[jsx("defs",{children:jsx("linearGradient",{id:P,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:v.map(({offset:E,color:J})=>jsx("stop",{offset:E,stopColor:J},E))})}),jsx(D,{className:r.track,cx:g,cy:g,r:y,strokeWidth:R}),jsx(motion.circle,{className:r.indicator,cx:g,cy:g,r:y,stroke:`url(#${P})`,strokeWidth:R,fill:"transparent",strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:p,transform:`rotate(-90 ${g} ${g})`,animate:{strokeDashoffset:q},transition:{duration:O,ease:"easeOut"}})]}),jsxs(k,{className:r.content,children:[jsx(L,{component:"p",className:r.value,$isEmpty:d,children:c?jsx(U,{}):d?G:jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:T},children:M(_)})}),!c&&n?jsx(A,{component:"p",className:r.label,$isEmpty:d,children:n}):null]})]})});W.displayName="ProgressRing";var te=memo(W);export{r as a,te as b};
@@ -1 +1 @@
1
- import {L,K,j}from'./chunk-F7I3KDV5.js';import {T,ca,Eb}from'./chunk-XBJ4RS2B.js';import {h}from'./chunk-TIPJC5YT.js';import {forwardRef,useState,useMemo,memo}from'react';import V from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var r="os-shared-CurrencyAmountInput",t={root:`${r}-root`,field:`${r}-field`,display:`${r}-display`,integer:`${r}-integer`,separator:`${r}-separator`,decimal:`${r}-decimal`};var N=styled(V)(({theme:e})=>({color:e.v2.palette.foreground.primary,border:`1px solid ${e.v2.palette.border.default}`,padding:e.v2.spacing(8),borderRadius:e.v2.radius(4),display:"flex",alignItems:"center",justifyContent:"flex-end",width:93,height:32,textAlign:"right",input:{fontSize:"11px",border:"none",color:e.v2.palette.foreground.primary,height:30,padding:0,textAlign:"right"}})),I=styled(L)(({theme:e})=>({flexGrow:1,maxWidth:"100%",padding:0,border:"none",backgroundColor:"transparent",borderRadius:"none",height:24,[`& .${K.input}`]:{padding:0},input:{textAlign:"right",width:"100%",fontWeight:e.v2.typography.fontWeightRegular}})),b=styled(j)(({theme:e})=>({...e.v2.typography.textVariants.body.small.bold,display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",overflow:"auto"})),v=styled("span")(({theme:e})=>({fontWeight:e.v2.typography.fontWeightRegular}));var q=T(),D=forwardRef(({amount:e,setAmount:u,maxAmount:l,isError:R,placeholder:E,selectedCurrency:p,id:o,className:k,sx:P,...B},M)=>{let[W,m]=useState(false),[c,S]=useState(e||""),{integerAmount:F,decimalAmount:d}=ca(e,p?.code?.english),K=useMemo(()=>h(p?.decimals),[p]),T=n=>{let i=Number(n.target.value)||0;if(l&&i>l)return false;S(i),u(i);},H=()=>{m(false),u(Number(c));},L=n=>{q&&isNaN(Number(n.key))&&n.key!=="Backspace"&&n.key!=="."&&n.preventDefault();};return jsx(N,{id:o,"data-testid":o??"CurrencyAmountInput",className:Eb(t.root,k),sx:P,...B,children:W?jsx(I,{ref:M,id:o,className:t.field,type:"number",placeholder:E??K,value:c,onChange:T,onBlur:H,onKeyDown:L,error:!!R,inputProps:{step:"0.01"},hideArrows:true,autoFocus:true,disableFocusRing:true}):jsxs(b,{id:o?`${o}-display`:void 0,"data-testid":o?`${o}-display`:"CurrencyAmount",className:t.display,component:"span",onClick:()=>{m(true);},children:[jsx("span",{className:t.integer,children:F}),d?jsxs(Fragment,{children:[jsx("span",{className:t.separator,children:"."}),jsx(v,{className:t.decimal,children:d})]}):null]})})});D.displayName="CurrencyAmountInput";var J=memo(D);export{t as a,J as b};
1
+ import {L,K,j}from'./chunk-Z6D3LMCU.js';import {T,ca,Eb}from'./chunk-XBJ4RS2B.js';import {h}from'./chunk-TIPJC5YT.js';import {forwardRef,useState,useMemo,memo}from'react';import V from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var r="os-shared-CurrencyAmountInput",t={root:`${r}-root`,field:`${r}-field`,display:`${r}-display`,integer:`${r}-integer`,separator:`${r}-separator`,decimal:`${r}-decimal`};var N=styled(V)(({theme:e})=>({color:e.v2.palette.foreground.primary,border:`1px solid ${e.v2.palette.border.default}`,padding:e.v2.spacing(8),borderRadius:e.v2.radius(4),display:"flex",alignItems:"center",justifyContent:"flex-end",width:93,height:32,textAlign:"right",input:{fontSize:"11px",border:"none",color:e.v2.palette.foreground.primary,height:30,padding:0,textAlign:"right"}})),I=styled(L)(({theme:e})=>({flexGrow:1,maxWidth:"100%",padding:0,border:"none",backgroundColor:"transparent",borderRadius:"none",height:24,[`& .${K.input}`]:{padding:0},input:{textAlign:"right",width:"100%",fontWeight:e.v2.typography.fontWeightRegular}})),b=styled(j)(({theme:e})=>({...e.v2.typography.textVariants.body.small.bold,display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",overflow:"auto"})),v=styled("span")(({theme:e})=>({fontWeight:e.v2.typography.fontWeightRegular}));var q=T(),D=forwardRef(({amount:e,setAmount:u,maxAmount:l,isError:R,placeholder:E,selectedCurrency:p,id:o,className:k,sx:P,...B},M)=>{let[W,m]=useState(false),[c,S]=useState(e||""),{integerAmount:F,decimalAmount:d}=ca(e,p?.code?.english),K=useMemo(()=>h(p?.decimals),[p]),T=n=>{let i=Number(n.target.value)||0;if(l&&i>l)return false;S(i),u(i);},H=()=>{m(false),u(Number(c));},L=n=>{q&&isNaN(Number(n.key))&&n.key!=="Backspace"&&n.key!=="."&&n.preventDefault();};return jsx(N,{id:o,"data-testid":o??"CurrencyAmountInput",className:Eb(t.root,k),sx:P,...B,children:W?jsx(I,{ref:M,id:o,className:t.field,type:"number",placeholder:E??K,value:c,onChange:T,onBlur:H,onKeyDown:L,error:!!R,inputProps:{step:"0.01"},hideArrows:true,autoFocus:true,disableFocusRing:true}):jsxs(b,{id:o?`${o}-display`:void 0,"data-testid":o?`${o}-display`:"CurrencyAmount",className:t.display,component:"span",onClick:()=>{m(true);},children:[jsx("span",{className:t.integer,children:F}),d?jsxs(Fragment,{children:[jsx("span",{className:t.separator,children:"."}),jsx(v,{className:t.decimal,children:d})]}):null]})})});D.displayName="CurrencyAmountInput";var J=memo(D);export{t as a,J as b};
@@ -1,4 +1,4 @@
1
- import {b,a}from'./chunk-JBE2LXDH.js';import {y,x,B as B$1,aa as aa$1}from'./chunk-YG4CT6O4.js';import {aa,ba}from'./chunk-F7I3KDV5.js';import {Ub,Eb,Db}from'./chunk-XBJ4RS2B.js';import {Sc,A}from'./chunk-EYLBXWXJ.js';import {memo,useCallback,useMemo}from'react';import No,{autocompleteClasses}from'@mui/material/Autocomplete';import W from'@mui/material/Box';import ko from'@mui/material/Popper';import wo from'@mui/material/TextField';import {keyframes,styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m="os-shared-Autocomplete",u={root:`${m}-root`,input:`${m}-input`,popper:`${m}-popper`,option:`${m}-option`,clear:`${m}-clear`,popupIndicator:`${m}-popupIndicator`,feedback:`${m}-feedback`},k={bottom:"bottom",top:"top"},ye=k.bottom,V=false,Pe="No results found",Se="Loading\u2026",B="",Ce=8,z=4,w=24,Me=4,Ae=4,So=8,Co={disableRipple:true},Mo={elevation:0},Ao={name:"offset",options:{offset:[0,So]}};function Io(e){return {name:"flip",enabled:e!==k.top,options:{fallbackPlacements:["top-start"]}}}function Oo(e){return e===k.top?"top-start":"bottom-start"}function Ie(e){let{menuDirection:o,slotProps:n,popperClassName:r}=e;return {...n,clearIndicator:{...Co,...n?.clearIndicator},paper:{...Mo,...n?.paper},popper:{...n?.popper,placement:n?.popper?.placement??Oo(o),modifiers:[Ao,Io(o),...n?.popper?.modifiers??[]],className:r}}}var ke=e=>({[`& .${autocompleteClasses.clearIndicator}`]:{visibility:"visible",padding:0,width:12,height:12,margin:0,backgroundColor:"transparent",color:e.v2.palette.base.black,"&:hover":{backgroundColor:"transparent",color:e.v2.palette.base.black},"& svg":{width:8,height:8,fontSize:8,display:"block"}}}),To=keyframes`
1
+ import {b,a}from'./chunk-Z7GYOTVN.js';import {y,x,B as B$1,aa as aa$1}from'./chunk-PI263RZJ.js';import {aa,ba}from'./chunk-Z6D3LMCU.js';import {Ub,Eb,Db}from'./chunk-XBJ4RS2B.js';import {Sc,A}from'./chunk-EYLBXWXJ.js';import {memo,useCallback,useMemo}from'react';import No,{autocompleteClasses}from'@mui/material/Autocomplete';import W from'@mui/material/Box';import ko from'@mui/material/Popper';import wo from'@mui/material/TextField';import {keyframes,styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m="os-shared-Autocomplete",u={root:`${m}-root`,input:`${m}-input`,popper:`${m}-popper`,option:`${m}-option`,clear:`${m}-clear`,popupIndicator:`${m}-popupIndicator`,feedback:`${m}-feedback`},k={bottom:"bottom",top:"top"},ye=k.bottom,V=false,Pe="No results found",Se="Loading\u2026",B="",Ce=8,z=4,w=24,Me=4,Ae=4,So=8,Co={disableRipple:true},Mo={elevation:0},Ao={name:"offset",options:{offset:[0,So]}};function Io(e){return {name:"flip",enabled:e!==k.top,options:{fallbackPlacements:["top-start"]}}}function Oo(e){return e===k.top?"top-start":"bottom-start"}function Ie(e){let{menuDirection:o,slotProps:n,popperClassName:r}=e;return {...n,clearIndicator:{...Co,...n?.clearIndicator},paper:{...Mo,...n?.paper},popper:{...n?.popper,placement:n?.popper?.placement??Oo(o),modifiers:[Ao,Io(o),...n?.popper?.modifiers??[]],className:r}}}var ke=e=>({[`& .${autocompleteClasses.clearIndicator}`]:{visibility:"visible",padding:0,width:12,height:12,margin:0,backgroundColor:"transparent",color:e.v2.palette.base.black,"&:hover":{backgroundColor:"transparent",color:e.v2.palette.base.black},"& svg":{width:8,height:8,fontSize:8,display:"block"}}}),To=keyframes`
2
2
  0% {
3
3
  transform: rotate(-90deg);
4
4
  }
@@ -1 +1 @@
1
- import {f,g,h as h$2,i as i$1,b}from'./chunk-2BU56HDE.js';import {d,c as c$1}from'./chunk-PF4KBDPV.js';import {h as h$1,i,b as b$1,c as c$2,f as f$2,e,d as d$1,j as j$1}from'./chunk-5FR3LFXC.js';import {h,c,f as f$1}from'./chunk-ISC5KT5E.js';import {Db,Eb}from'./chunk-XBJ4RS2B.js';import'./chunk-EYLBXWXJ.js';import {memo,forwardRef,useState,useEffect,useRef}from'react';import {createPortal}from'react-dom';import oo from'@mui/material/Backdrop';import {styled,alpha}from'@mui/material/styles';import v from'@mui/material/Box';import {motion,animate}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var H="os-shared-WindowShell",x={root:`${H}-root`,sidebar:`${H}-sidebar`,body:`${H}-body`,panel:`${H}-panel`};var we=styled(v)(()=>({display:"flex",flexDirection:"row",flex:1,minHeight:0,height:"100%",backgroundColor:"transparent"})),xe=styled(v)(()=>({flexShrink:0,overflow:"hidden auto",backgroundColor:"transparent",transition:"none"})),be=styled(v)(({theme:e})=>({flexShrink:0,overflow:"hidden auto",borderLeft:`1px solid ${e.palette.divider}`,backgroundColor:"transparent",transition:"none"})),ye=styled(v)(()=>({display:"flex",flexDirection:"column",flex:1,minWidth:0,minHeight:0})),ze=styled(v,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative",width:e})),Ne=styled(motion.div)(()=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative"})),Ce=styled(motion.div,{shouldForwardProp:e=>e!=="$slotWidth"})(({$slotWidth:e})=>({width:e,minWidth:e,minHeight:"100%",height:"100%",overflow:"hidden"})),Ie=styled(v,{shouldForwardProp:e=>e!=="$visible"&&e!=="$duration"})(({$visible:e=true,$duration:o=h})=>({display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:0,maxWidth:e?160:0,opacity:e?1:0,pointerEvents:e?"auto":"none",transition:o>0?`max-width ${.3*o}s ease-in-out, opacity ${.24*o}s ease-in-out`:"none"})),Te=styled(h$1,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e}:null})),Pe=styled(i,{shouldForwardProp:e=>e!=="$width"&&e!=="$justifyContent"})(({$width:e,$justifyContent:o="flex-start"})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e,justifyContent:o}:null}));var Ue=220;function ge(e,o,a){return Math.min(Math.max(e,o??0),a??1/0)}function Ae(e,o,a,n){if(Math.abs(e-o)<=1)return;let r=animate(0,1,{duration:a,onUpdate:t=>{n(s=>({...s,width:e+(o-e)*t}));}});return ()=>r.stop()}function G(e,o){if(e===false)return {duration:0,resize:o};let a=typeof e=="object"?e:void 0,n=a?.duration;return {duration:typeof n=="number"&&Number.isFinite(n)?Math.max(0,n):h,resize:a?.resize??o}}function j(e){return e?.children==null||e.expand?.isExpanded===false?false:e.expand?.isExpanded===true}function F(e,o=Ue){let a=Array.isArray(e)?e.flat():[e];for(let n=a.length-1;n>=0;n--){let r=a[n];if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&typeof r.width=="number")return r.width}return o}function Ee(e){let o=e["data-id"]??e.id;return o!=null?{"data-id":o}:{}}function Me({kind:e,slot:o,isOpen:a,fullWidth:n,wrapperWidth:r,animateWrapperWidth:t,animation:s}){let p=e==="sidebar"?xe:be,d=e==="sidebar"?x.sidebar:x.panel,m=o["data-testid"]?`${o["data-testid"]}Wrapper`:e==="sidebar"?"WindowShellSidebarWrapper":"WindowShellPanelWrapper",i=o["data-testid"]??o.id??(e==="sidebar"?"WindowShellSidebar":"WindowShellPanel"),l=Ee(o),u=jsx(p,{id:o.id,className:Eb(d,o.className),"data-testid":i,...l,sx:Db({width:n,minWidth:0},o.sx),children:jsx(Ce,{$slotWidth:n,initial:false,animate:{x:a?0:-n},transition:{duration:s.duration},children:o.children})});return t?jsx(Ne,{"data-testid":m,...l,initial:false,animate:{width:r},transition:{duration:s.duration},children:u}):jsx(ze,{"data-testid":m,...l,$width:r,children:u})}Me.displayName="WindowShellSlotColumn";var J=memo(Me);function De({baseWindowWidth:e,sidebar:o,panel:a,content:n,bodyContent:r,sidebarOpen:t,showPanel:s,sidebarFullWidth:p,panelFullWidth:d,sidebarAnimation:m,panelAnimation:i}){let{size:l}=b(),u=i.resize==="window",W=typeof e=="number"?Math.max(0,e-(u?d:0)-(m.resize==="window"&&!t?p:0)):l.width,b$1=u?s?Math.min(d,Math.max(0,l.width-W)):0:s?d:0,y=t?p:0;return jsxs(we,{className:Eb(x.root),children:[o?.children?jsx(J,{kind:"sidebar",slot:o,isOpen:t,fullWidth:p,wrapperWidth:y,animateWrapperWidth:true,animation:m}):null,jsx(ye,{id:n?.id?`${n.id}Body`:void 0,className:Eb(x.body,n?.className),"data-testid":n?.["data-testid"]?`${n["data-testid"]}Body`:n?.id?`${n.id}Body`:"WindowShellBody",...(n?.["data-id"]??n?.id)!=null?{"data-id":n?.["data-id"]?`${n["data-id"]}Body`:`${n?.id}Body`}:null,sx:n?.sx,children:r}),a?.children?jsx(J,{kind:"panel",slot:a,isOpen:s,fullWidth:d,wrapperWidth:b$1,animateWrapperWidth:!u,animation:i}):null]})}De.displayName="WindowShellSlotsLayout";var Re=memo(De);function $e({sidebarOpen:e,showPanel:o,sidebarResize:a,panelResize:n,sidebarDuration:r,panelDuration:t}){let{size:s,setSize:p,defaultSize:d,minSize:m,maxSize:i}=b(),l=useRef(s);l.current=s;let u=useRef(d.width),W=useRef(e),b$1=useRef(o),y=useRef(d.width);return useEffect(()=>{let C=b$1.current!==o,w=W.current!==e,E=y.current!==d.width;b$1.current=o,W.current=e,y.current=d.width;let S;if(w&&a==="window"?S=r:(C&&n==="window"||E&&!C&&!w)&&(S=t),S==null)return;let h=ge(d.width,m?.width,i?.width);return u.current=h,Ae(l.current.width,h,S,p)},[d.width,o,e,a,n,r,t,m?.width,i?.width,p]),null}$e.displayName="WindowShellAnimator";var Oe=memo($e);function ve({toolbar:e$1,sidebar:o,panel:a,animationDuration:n=h}){let{title:r,titleIcon:t,onClose:s,onMinimize:p,onMaximize:d,startAdornment:m,endAdornment:i,id:l,className:u,"data-testid":W,"data-id":b$2,sx:y}=e$1??{},{isMaximized:C}=b(),w=typeof s=="function"?s:void 0,E=typeof p=="function"?p:void 0,S=typeof d=="function"?d:void 0,h=o?.expand,c=a?.expand,z=j(a),L=h?.isExpanded??true,M=h!=null&&o?.children!=null,D=c!=null&&a?.children!=null&&z,k=M&&D,V=F(a?.sx),_=o!=null?F(o.sx):0,I=Math.max(_,V),T=k&&L?I:void 0,Z=D?I:void 0,X=D;return jsxs(b$1,{id:l??f$1,className:u,"data-testid":W??l??"WindowToolbar","data-id":b$2??l,sx:y,children:[jsxs(Te,{$width:T,children:[w?jsx(c$2,{onClick:w}):null,E?jsx(f$2,{onClick:E}):null,S?jsx(e,{isMaximized:C,onClick:S}):null,M&&h?jsx(d$1,{direction:h.isExpanded??true?"left":"right",active:h.isExpanded??true,onClick:h.onExpand,children:h.label}):null,m]}),jsx(j$1,{title:r,icon:t}),jsxs(Pe,{$width:Z,$justifyContent:i?"space-between":"flex-start",children:[D?jsx(Ie,{$visible:X,$duration:n,children:jsx(d$1,{sx:{flexShrink:0},direction:c?.isExpanded??true?"left":"right",active:z,onClick:c?.onExpand,children:c?.label})}):null,i]})]})}ve.displayName="WindowShellToolbar";var Fe=memo(ve);var Be=forwardRef(function({isOpen:o,className:a,sx:n,toolbar:r,services:t,sidebar:s,panel:p,footer:d$1,content:m,window:i,backdrop:l},u){let W=t?.list??[],b=(t?.isLoading??false)||W.length>0,y=d$1!=null&&(d$1.isVisible??true),C=s?.children,w=F(s?.sx),E=p?.children,S=p!=null?F(p.sx):0,h=m?.children,c$2=s?.expand?.isExpanded??C!=null,z=j(p),L=!!(C||E),[M,D]=useState(w),[k,V]=useState(S);useEffect(()=>{c$2&&D(w),z&&V(S);},[c$2,w,z,S]);let _=r?.onClose??r?.onMinimize??(()=>{}),I=G(s?.animation,"in-place"),T=G(p?.animation,"in-place"),Z=(()=>{let P=i?.defaultSize;if(typeof P?.width!="number")return P;let oe=(I.resize==="window"&&!c$2?M:0)+(T.resize==="window"&&!z?k:0);return oe>0?{...P,width:Math.max(0,P.width-oe)}:P})(),X={height:i?.minSize?.height??i?.defaultSize?.height??c,...i?.minSize?.width!=null?{width:i.minSize.width}:null},Le=l!=null&&(l.isVisible??true)&&o&&!i?.isMinimized,_e=(i?.order??0)+10-1,ee=jsx(oo,{open:true,onClick:_,id:l?.id,className:l?.className,"data-testid":l?.["data-testid"]??l?.id??"WindowShellBackdrop",...(l?.["data-id"]??l?.id)!=null?{"data-id":l?.["data-id"]??l?.id}:null,sx:Db({zIndex:_e,backgroundColor:P=>alpha(P.palette.common.black,.3)},l?.sx)});return jsxs(Fragment,{children:[Le&&(i?.disablePortal?ee:createPortal(ee,document.body)),jsxs(f,{ref:u,isOpen:o,onClose:_,defaultSize:Z,minSize:X,maxSize:i?.maxSize,defaultPosition:i?.defaultPosition,containerRef:i?.containerRef,order:i?.order,isMinimized:i?.isMinimized,isMaximized:i?.isMaximized,id:i?.id,className:Eb(x.root,i?.className,a),sx:n,onResize:i?.onResize,onDragStart:i?.onDragStart,onMouseDown:i?.onMouseDown,onClick:i?.onClick,disablePortal:i?.disablePortal,"data-testid":i?.["data-testid"]??i?.id,"data-id":i?.["data-id"]??i?.id,children:[jsx(Oe,{sidebarOpen:c$2,showPanel:z,sidebarWidth:M,panelWidth:k,sidebarResize:I.resize,panelResize:T.resize,sidebarDuration:I.duration,panelDuration:T.duration}),jsx(Fe,{toolbar:r,sidebar:s,panel:p,animationDuration:T.duration}),b?t?.isLoading?jsx(d,{appCode:t?.appCode,id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:Db({height:"auto",flexShrink:0},t?.sx)}):jsx(c$1,{services:W,serviceCode:t?.activeCode??"",onOpenService:t?.onOpen,onOpenServiceInNewWindow:t?.onOpenInNewWindow,language:t?.language??"en",openInNewWindowLabel:t?.openInNewWindowLabel??"Open in new window",id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:t?.sx}):null,jsx(g,{id:m?.id,className:m?.className,"data-testid":m?.["data-testid"]??m?.id,"data-id":m?.["data-id"]??m?.id,sx:L?void 0:m?.sx,children:L?jsx(Re,{baseWindowWidth:typeof i?.defaultSize?.width=="number"?i.defaultSize.width:void 0,sidebar:s,panel:p,content:m,bodyContent:h,sidebarOpen:c$2,showPanel:z,sidebarFullWidth:M,panelFullWidth:k,sidebarAnimation:I,panelAnimation:T}):h}),y?jsxs(h$2,{id:d$1?.id,className:d$1?.className,"data-testid":d$1?.["data-testid"]??d$1?.id,"data-id":d$1?.["data-id"]??d$1?.id,sx:d$1?.isVisible===true?Db(d$1?.sx??{},{"&:empty, &:has(> :only-child:empty)":{display:"flex"}}):d$1?.sx,children:[d$1?.children,d$1?.actions?jsx(i$1,{children:d$1.actions}):null]}):null]})]})});Be.displayName="WindowShell";var to=memo(Be);export{x as a,to as b};
1
+ import {f,g,h as h$2,i as i$1,b}from'./chunk-2BU56HDE.js';import {d,c as c$1}from'./chunk-UHP2ZQJO.js';import {h as h$1,i,b as b$1,c as c$2,f as f$2,e,d as d$1,j as j$1}from'./chunk-HNVAFVUA.js';import {h,c,f as f$1}from'./chunk-ISC5KT5E.js';import {Db,Eb}from'./chunk-XBJ4RS2B.js';import'./chunk-EYLBXWXJ.js';import {memo,forwardRef,useState,useEffect,useRef}from'react';import {createPortal}from'react-dom';import oo from'@mui/material/Backdrop';import {styled,alpha}from'@mui/material/styles';import v from'@mui/material/Box';import {motion,animate}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var H="os-shared-WindowShell",x={root:`${H}-root`,sidebar:`${H}-sidebar`,body:`${H}-body`,panel:`${H}-panel`};var we=styled(v)(()=>({display:"flex",flexDirection:"row",flex:1,minHeight:0,height:"100%",backgroundColor:"transparent"})),xe=styled(v)(()=>({flexShrink:0,overflow:"hidden auto",backgroundColor:"transparent",transition:"none"})),be=styled(v)(({theme:e})=>({flexShrink:0,overflow:"hidden auto",borderLeft:`1px solid ${e.palette.divider}`,backgroundColor:"transparent",transition:"none"})),ye=styled(v)(()=>({display:"flex",flexDirection:"column",flex:1,minWidth:0,minHeight:0})),ze=styled(v,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative",width:e})),Ne=styled(motion.div)(()=>({flexShrink:0,overflow:"hidden",display:"flex",alignItems:"stretch",position:"relative"})),Ce=styled(motion.div,{shouldForwardProp:e=>e!=="$slotWidth"})(({$slotWidth:e})=>({width:e,minWidth:e,minHeight:"100%",height:"100%",overflow:"hidden"})),Ie=styled(v,{shouldForwardProp:e=>e!=="$visible"&&e!=="$duration"})(({$visible:e=true,$duration:o=h})=>({display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap",flexShrink:0,maxWidth:e?160:0,opacity:e?1:0,pointerEvents:e?"auto":"none",transition:o>0?`max-width ${.3*o}s ease-in-out, opacity ${.24*o}s ease-in-out`:"none"})),Te=styled(h$1,{shouldForwardProp:e=>e!=="$width"})(({$width:e})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e}:null})),Pe=styled(i,{shouldForwardProp:e=>e!=="$width"&&e!=="$justifyContent"})(({$width:e,$justifyContent:o="flex-start"})=>({...e!=null?{flex:`0 0 ${e}px`,maxWidth:e,justifyContent:o}:null}));var Ue=220;function ge(e,o,a){return Math.min(Math.max(e,o??0),a??1/0)}function Ae(e,o,a,n){if(Math.abs(e-o)<=1)return;let r=animate(0,1,{duration:a,onUpdate:t=>{n(s=>({...s,width:e+(o-e)*t}));}});return ()=>r.stop()}function G(e,o){if(e===false)return {duration:0,resize:o};let a=typeof e=="object"?e:void 0,n=a?.duration;return {duration:typeof n=="number"&&Number.isFinite(n)?Math.max(0,n):h,resize:a?.resize??o}}function j(e){return e?.children==null||e.expand?.isExpanded===false?false:e.expand?.isExpanded===true}function F(e,o=Ue){let a=Array.isArray(e)?e.flat():[e];for(let n=a.length-1;n>=0;n--){let r=a[n];if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&typeof r.width=="number")return r.width}return o}function Ee(e){let o=e["data-id"]??e.id;return o!=null?{"data-id":o}:{}}function Me({kind:e,slot:o,isOpen:a,fullWidth:n,wrapperWidth:r,animateWrapperWidth:t,animation:s}){let p=e==="sidebar"?xe:be,d=e==="sidebar"?x.sidebar:x.panel,m=o["data-testid"]?`${o["data-testid"]}Wrapper`:e==="sidebar"?"WindowShellSidebarWrapper":"WindowShellPanelWrapper",i=o["data-testid"]??o.id??(e==="sidebar"?"WindowShellSidebar":"WindowShellPanel"),l=Ee(o),u=jsx(p,{id:o.id,className:Eb(d,o.className),"data-testid":i,...l,sx:Db({width:n,minWidth:0},o.sx),children:jsx(Ce,{$slotWidth:n,initial:false,animate:{x:a?0:-n},transition:{duration:s.duration},children:o.children})});return t?jsx(Ne,{"data-testid":m,...l,initial:false,animate:{width:r},transition:{duration:s.duration},children:u}):jsx(ze,{"data-testid":m,...l,$width:r,children:u})}Me.displayName="WindowShellSlotColumn";var J=memo(Me);function De({baseWindowWidth:e,sidebar:o,panel:a,content:n,bodyContent:r,sidebarOpen:t,showPanel:s,sidebarFullWidth:p,panelFullWidth:d,sidebarAnimation:m,panelAnimation:i}){let{size:l}=b(),u=i.resize==="window",W=typeof e=="number"?Math.max(0,e-(u?d:0)-(m.resize==="window"&&!t?p:0)):l.width,b$1=u?s?Math.min(d,Math.max(0,l.width-W)):0:s?d:0,y=t?p:0;return jsxs(we,{className:Eb(x.root),children:[o?.children?jsx(J,{kind:"sidebar",slot:o,isOpen:t,fullWidth:p,wrapperWidth:y,animateWrapperWidth:true,animation:m}):null,jsx(ye,{id:n?.id?`${n.id}Body`:void 0,className:Eb(x.body,n?.className),"data-testid":n?.["data-testid"]?`${n["data-testid"]}Body`:n?.id?`${n.id}Body`:"WindowShellBody",...(n?.["data-id"]??n?.id)!=null?{"data-id":n?.["data-id"]?`${n["data-id"]}Body`:`${n?.id}Body`}:null,sx:n?.sx,children:r}),a?.children?jsx(J,{kind:"panel",slot:a,isOpen:s,fullWidth:d,wrapperWidth:b$1,animateWrapperWidth:!u,animation:i}):null]})}De.displayName="WindowShellSlotsLayout";var Re=memo(De);function $e({sidebarOpen:e,showPanel:o,sidebarResize:a,panelResize:n,sidebarDuration:r,panelDuration:t}){let{size:s,setSize:p,defaultSize:d,minSize:m,maxSize:i}=b(),l=useRef(s);l.current=s;let u=useRef(d.width),W=useRef(e),b$1=useRef(o),y=useRef(d.width);return useEffect(()=>{let C=b$1.current!==o,w=W.current!==e,E=y.current!==d.width;b$1.current=o,W.current=e,y.current=d.width;let S;if(w&&a==="window"?S=r:(C&&n==="window"||E&&!C&&!w)&&(S=t),S==null)return;let h=ge(d.width,m?.width,i?.width);return u.current=h,Ae(l.current.width,h,S,p)},[d.width,o,e,a,n,r,t,m?.width,i?.width,p]),null}$e.displayName="WindowShellAnimator";var Oe=memo($e);function ve({toolbar:e$1,sidebar:o,panel:a,animationDuration:n=h}){let{title:r,titleIcon:t,onClose:s,onMinimize:p,onMaximize:d,startAdornment:m,endAdornment:i,id:l,className:u,"data-testid":W,"data-id":b$2,sx:y}=e$1??{},{isMaximized:C}=b(),w=typeof s=="function"?s:void 0,E=typeof p=="function"?p:void 0,S=typeof d=="function"?d:void 0,h=o?.expand,c=a?.expand,z=j(a),L=h?.isExpanded??true,M=h!=null&&o?.children!=null,D=c!=null&&a?.children!=null&&z,k=M&&D,V=F(a?.sx),_=o!=null?F(o.sx):0,I=Math.max(_,V),T=k&&L?I:void 0,Z=D?I:void 0,X=D;return jsxs(b$1,{id:l??f$1,className:u,"data-testid":W??l??"WindowToolbar","data-id":b$2??l,sx:y,children:[jsxs(Te,{$width:T,children:[w?jsx(c$2,{onClick:w}):null,E?jsx(f$2,{onClick:E}):null,S?jsx(e,{isMaximized:C,onClick:S}):null,M&&h?jsx(d$1,{direction:h.isExpanded??true?"left":"right",active:h.isExpanded??true,onClick:h.onExpand,children:h.label}):null,m]}),jsx(j$1,{title:r,icon:t}),jsxs(Pe,{$width:Z,$justifyContent:i?"space-between":"flex-start",children:[D?jsx(Ie,{$visible:X,$duration:n,children:jsx(d$1,{sx:{flexShrink:0},direction:c?.isExpanded??true?"left":"right",active:z,onClick:c?.onExpand,children:c?.label})}):null,i]})]})}ve.displayName="WindowShellToolbar";var Fe=memo(ve);var Be=forwardRef(function({isOpen:o,className:a,sx:n,toolbar:r,services:t,sidebar:s,panel:p,footer:d$1,content:m,window:i,backdrop:l},u){let W=t?.list??[],b=(t?.isLoading??false)||W.length>0,y=d$1!=null&&(d$1.isVisible??true),C=s?.children,w=F(s?.sx),E=p?.children,S=p!=null?F(p.sx):0,h=m?.children,c$2=s?.expand?.isExpanded??C!=null,z=j(p),L=!!(C||E),[M,D]=useState(w),[k,V]=useState(S);useEffect(()=>{c$2&&D(w),z&&V(S);},[c$2,w,z,S]);let _=r?.onClose??r?.onMinimize??(()=>{}),I=G(s?.animation,"in-place"),T=G(p?.animation,"in-place"),Z=(()=>{let P=i?.defaultSize;if(typeof P?.width!="number")return P;let oe=(I.resize==="window"&&!c$2?M:0)+(T.resize==="window"&&!z?k:0);return oe>0?{...P,width:Math.max(0,P.width-oe)}:P})(),X={height:i?.minSize?.height??i?.defaultSize?.height??c,...i?.minSize?.width!=null?{width:i.minSize.width}:null},Le=l!=null&&(l.isVisible??true)&&o&&!i?.isMinimized,_e=(i?.order??0)+10-1,ee=jsx(oo,{open:true,onClick:_,id:l?.id,className:l?.className,"data-testid":l?.["data-testid"]??l?.id??"WindowShellBackdrop",...(l?.["data-id"]??l?.id)!=null?{"data-id":l?.["data-id"]??l?.id}:null,sx:Db({zIndex:_e,backgroundColor:P=>alpha(P.palette.common.black,.3)},l?.sx)});return jsxs(Fragment,{children:[Le&&(i?.disablePortal?ee:createPortal(ee,document.body)),jsxs(f,{ref:u,isOpen:o,onClose:_,defaultSize:Z,minSize:X,maxSize:i?.maxSize,defaultPosition:i?.defaultPosition,containerRef:i?.containerRef,order:i?.order,isMinimized:i?.isMinimized,isMaximized:i?.isMaximized,id:i?.id,className:Eb(x.root,i?.className,a),sx:n,onResize:i?.onResize,onDragStart:i?.onDragStart,onMouseDown:i?.onMouseDown,onClick:i?.onClick,disablePortal:i?.disablePortal,"data-testid":i?.["data-testid"]??i?.id,"data-id":i?.["data-id"]??i?.id,children:[jsx(Oe,{sidebarOpen:c$2,showPanel:z,sidebarWidth:M,panelWidth:k,sidebarResize:I.resize,panelResize:T.resize,sidebarDuration:I.duration,panelDuration:T.duration}),jsx(Fe,{toolbar:r,sidebar:s,panel:p,animationDuration:T.duration}),b?t?.isLoading?jsx(d,{appCode:t?.appCode,id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:Db({height:"auto",flexShrink:0},t?.sx)}):jsx(c$1,{services:W,serviceCode:t?.activeCode??"",onOpenService:t?.onOpen,onOpenServiceInNewWindow:t?.onOpenInNewWindow,language:t?.language??"en",openInNewWindowLabel:t?.openInNewWindowLabel??"Open in new window",id:t?.id,className:t?.className,"data-testid":t?.["data-testid"]??t?.id,"data-id":t?.["data-id"]??t?.id,sx:t?.sx}):null,jsx(g,{id:m?.id,className:m?.className,"data-testid":m?.["data-testid"]??m?.id,"data-id":m?.["data-id"]??m?.id,sx:L?void 0:m?.sx,children:L?jsx(Re,{baseWindowWidth:typeof i?.defaultSize?.width=="number"?i.defaultSize.width:void 0,sidebar:s,panel:p,content:m,bodyContent:h,sidebarOpen:c$2,showPanel:z,sidebarFullWidth:M,panelFullWidth:k,sidebarAnimation:I,panelAnimation:T}):h}),y?jsxs(h$2,{id:d$1?.id,className:d$1?.className,"data-testid":d$1?.["data-testid"]??d$1?.id,"data-id":d$1?.["data-id"]??d$1?.id,sx:d$1?.isVisible===true?Db(d$1?.sx??{},{"&:empty, &:has(> :only-child:empty)":{display:"flex"}}):d$1?.sx,children:[d$1?.children,d$1?.actions?jsx(i$1,{children:d$1.actions}):null]}):null]})]})});Be.displayName="WindowShell";var to=memo(Be);export{x as a,to as b};
@@ -1 +1 @@
1
- import {L as L$1}from'./chunk-F7I3KDV5.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,useRef,useState,useEffect,useCallback,memo}from'react';import y from'@mui/material/SvgIcon';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import v from'@mui/material/IconButton';import z from'@mui/material/InputAdornment';import {styled}from'@mui/material/styles';var o="os-shared-SearchInput",t={root:`${o}-root`,searchAdornment:`${o}-searchAdornment`,searchButton:`${o}-searchButton`,clearButton:`${o}-clearButton`,searchIcon:`${o}-searchIcon`,clearIcon:`${o}-clearIcon`};var L=n=>jsx(y,{viewBox:"0 0 12 12",sx:{width:12,height:12},...n,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})}),g=n=>jsxs(y,{viewBox:"0 0 13 13",sx:{width:13,height:13},...n,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 M=styled(z)(({theme:n})=>({display:"flex",alignItems:"center",gap:n.v2.spacing(4),flexShrink:0,paddingTop:1})),E=17,B={width:E,height:E,padding:0,borderRadius:"50%",flexShrink:0},x=styled(v)(()=>({...B,"&.Mui-disabled":{opacity:.5}})),N=styled(v)(()=>({...B}));var T=forwardRef(({clearable:n=true,onClear:P,disabled:p=false,value:a,defaultValue:d,onChange:H,endAdornment:A,id:s="SearchInput",className:k,onKeyDown:m,inputProps:R,onClick:D,...$},c)=>{let h=useRef(null),[K,C]=useState(()=>String(a??d??"").length>0),O=n&&K&&!p;useEffect(()=>{a!==void 0&&C(String(a??"").length>0);},[a]);let Z=useCallback(e=>{h.current=e,typeof c=="function"?c(e):c&&(c.current=e);},[c]),_=e=>{C(e.target.value.length>0),H?.(e);},F=e=>{e.stopPropagation(),D?.(e);},U=useCallback(e=>{e.stopPropagation(),m?.(e);},[m]),V=e=>{e.stopPropagation();let l=h.current;l&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(l,""),l.dispatchEvent(new Event("input",{bubbles:true})),l.focus()),C(false),P?.();},W=e=>{e.stopPropagation(),h.current?.focus();},I=e=>{e.preventDefault();},j=jsxs(Fragment,{children:[jsx(M,{position:"end",className:t.searchAdornment,children:O?jsx(N,{className:t.clearButton,id:s?`${s}-clear-button`:void 0,type:"button","aria-label":"Clear search",disabled:p,disableRipple:true,onMouseDown:I,onClick:V,children:jsx(g,{className:t.clearIcon})}):jsx(x,{className:t.searchButton,id:s?`${s}-search-button`:void 0,type:"button","aria-label":"Search",disabled:p,disableRipple:true,onMouseDown:I,onClick:W,children:jsx(L,{className:t.searchIcon})})}),A]});return jsx(L$1,{...$,ref:Z,id:s,type:"text",disabled:p,value:a,defaultValue:d,onChange:_,onKeyDown:U,onClick:F,inputProps:{autoComplete:"off",...R},endAdornment:j,className:Eb(t.root,k),"data-testid":"SearchInput"})});T.displayName="SearchInput";var w=memo(T);export{t as a,w as b};
1
+ import {L as L$1}from'./chunk-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,useRef,useState,useEffect,useCallback,memo}from'react';import y from'@mui/material/SvgIcon';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import v from'@mui/material/IconButton';import z from'@mui/material/InputAdornment';import {styled}from'@mui/material/styles';var o="os-shared-SearchInput",t={root:`${o}-root`,searchAdornment:`${o}-searchAdornment`,searchButton:`${o}-searchButton`,clearButton:`${o}-clearButton`,searchIcon:`${o}-searchIcon`,clearIcon:`${o}-clearIcon`};var L=n=>jsx(y,{viewBox:"0 0 12 12",sx:{width:12,height:12},...n,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})}),g=n=>jsxs(y,{viewBox:"0 0 13 13",sx:{width:13,height:13},...n,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 M=styled(z)(({theme:n})=>({display:"flex",alignItems:"center",gap:n.v2.spacing(4),flexShrink:0,paddingTop:1})),E=17,B={width:E,height:E,padding:0,borderRadius:"50%",flexShrink:0},x=styled(v)(()=>({...B,"&.Mui-disabled":{opacity:.5}})),N=styled(v)(()=>({...B}));var T=forwardRef(({clearable:n=true,onClear:P,disabled:p=false,value:a,defaultValue:d,onChange:H,endAdornment:A,id:s="SearchInput",className:k,onKeyDown:m,inputProps:R,onClick:D,...$},c)=>{let h=useRef(null),[K,C]=useState(()=>String(a??d??"").length>0),O=n&&K&&!p;useEffect(()=>{a!==void 0&&C(String(a??"").length>0);},[a]);let Z=useCallback(e=>{h.current=e,typeof c=="function"?c(e):c&&(c.current=e);},[c]),_=e=>{C(e.target.value.length>0),H?.(e);},F=e=>{e.stopPropagation(),D?.(e);},U=useCallback(e=>{e.stopPropagation(),m?.(e);},[m]),V=e=>{e.stopPropagation();let l=h.current;l&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(l,""),l.dispatchEvent(new Event("input",{bubbles:true})),l.focus()),C(false),P?.();},W=e=>{e.stopPropagation(),h.current?.focus();},I=e=>{e.preventDefault();},j=jsxs(Fragment,{children:[jsx(M,{position:"end",className:t.searchAdornment,children:O?jsx(N,{className:t.clearButton,id:s?`${s}-clear-button`:void 0,type:"button","aria-label":"Clear search",disabled:p,disableRipple:true,onMouseDown:I,onClick:V,children:jsx(g,{className:t.clearIcon})}):jsx(x,{className:t.searchButton,id:s?`${s}-search-button`:void 0,type:"button","aria-label":"Search",disabled:p,disableRipple:true,onMouseDown:I,onClick:W,children:jsx(L,{className:t.searchIcon})})}),A]});return jsx(L$1,{...$,ref:Z,id:s,type:"text",disabled:p,value:a,defaultValue:d,onChange:_,onKeyDown:U,onClick:F,inputProps:{autoComplete:"off",...R},endAdornment:j,className:Eb(t.root,k),"data-testid":"SearchInput"})});T.displayName="SearchInput";var w=memo(T);export{t as a,w as b};