@tap-payments/os-micro-frontend-shared 0.3.311 → 0.3.313

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 (128) hide show
  1. package/build/_chunks/{chunk-YFL4D5VW.js → chunk-2NXWQKL2.js} +1 -1
  2. package/build/_chunks/{chunk-V4ZKOYOF.js → chunk-2QQBLC6G.js} +1 -1
  3. package/build/_chunks/{chunk-UHP2ZQJO.js → chunk-3WBNWMDN.js} +1 -1
  4. package/build/_chunks/{chunk-3ZUUAIFN.js → chunk-44TFMXB6.js} +1 -1
  5. package/build/_chunks/{chunk-B2OUV4UE.js → chunk-4OVITNFA.js} +1 -1
  6. package/build/_chunks/{chunk-AO5BBZSP.js → chunk-7HIX5YFK.js} +1 -1
  7. package/build/_chunks/{chunk-ETLDR6XW.js → chunk-A7PVLX7Y.js} +1 -1
  8. package/build/_chunks/{chunk-FXTZ22TS.js → chunk-AJCSDJRM.js} +1 -1
  9. package/build/_chunks/{chunk-JBD7LBKC.js → chunk-BEUZZ5TZ.js} +1 -1
  10. package/build/_chunks/{chunk-PEQGKPA2.js → chunk-BH7A52ZR.js} +1 -1
  11. package/build/_chunks/{chunk-Z4TV4GWV.js → chunk-BYTVQ5U6.js} +1 -1
  12. package/build/_chunks/{chunk-WE5WS7B2.js → chunk-C5HOVU2E.js} +1 -1
  13. package/build/_chunks/{chunk-VLOXMCB3.js → chunk-CDF5QBAR.js} +1 -1
  14. package/build/_chunks/{chunk-3YBLN7RZ.js → chunk-CR4VUKDZ.js} +1 -1
  15. package/build/_chunks/{chunk-7UR5RTMD.js → chunk-D3XPFXOK.js} +1 -1
  16. package/build/_chunks/{chunk-637LQKFX.js → chunk-DT5OXK73.js} +1 -1
  17. package/build/_chunks/{chunk-U6HZMYNW.js → chunk-DUZDYYXE.js} +1 -1
  18. package/build/_chunks/{chunk-R6E5X56S.js → chunk-E232MG7N.js} +1 -1
  19. package/build/_chunks/{chunk-AIKE5IVU.js → chunk-EMARPL4U.js} +1 -1
  20. package/build/_chunks/{chunk-Z7GYOTVN.js → chunk-EVKDUD7R.js} +1 -1
  21. package/build/_chunks/{chunk-XBJ4RS2B.js → chunk-FHV4S2B3.js} +1 -1
  22. package/build/_chunks/{chunk-YZF24X6P.js → chunk-G7KM5KZB.js} +1 -1
  23. package/build/_chunks/{chunk-L2SDX2MP.js → chunk-GHKKBQNX.js} +1 -1
  24. package/build/_chunks/{chunk-673TILTX.js → chunk-HPLZO5T5.js} +1 -1
  25. package/build/_chunks/{chunk-KLN3YM53.js → chunk-IA5ABHBS.js} +1 -1
  26. package/build/_chunks/{chunk-AM66KDGG.js → chunk-J5F6PRTA.js} +1 -1
  27. package/build/_chunks/{chunk-SMGH6EBP.js → chunk-JXR5GHFJ.js} +1 -1
  28. package/build/_chunks/{chunk-QIUS47UY.js → chunk-JZ5PJEJ3.js} +1 -1
  29. package/build/_chunks/{chunk-PI263RZJ.js → chunk-KPSBWLN2.js} +1 -1
  30. package/build/_chunks/{chunk-Z6D3LMCU.js → chunk-KRRCTTGN.js} +1 -1
  31. package/build/_chunks/{chunk-TKWUFXNT.js → chunk-L2OVTNK5.js} +1 -1
  32. package/build/_chunks/{chunk-U3ZJP2GE.js → chunk-LUX6XI5Q.js} +1 -1
  33. package/build/_chunks/{chunk-SKDHJYOO.js → chunk-M3HYB5CL.js} +1 -1
  34. package/build/_chunks/{chunk-W755BEL7.js → chunk-NUNYEGYR.js} +1 -1
  35. package/build/_chunks/{chunk-TJ3OEL7X.js → chunk-OE4U2LSL.js} +1 -1
  36. package/build/_chunks/{chunk-XJOPGP7Y.js → chunk-P4PBCAJO.js} +1 -1
  37. package/build/_chunks/{chunk-RF6JK6KJ.js → chunk-PAOZ6T3I.js} +1 -1
  38. package/build/_chunks/{chunk-JGXI5MLK.js → chunk-PTPGJAQY.js} +1 -1
  39. package/build/_chunks/{chunk-VLXDIIDL.js → chunk-PX5JVPLZ.js} +1 -1
  40. package/build/_chunks/{chunk-MXZD4IG6.js → chunk-PXEKSEVO.js} +1 -1
  41. package/build/_chunks/{chunk-Q6MQJAZI.js → chunk-Q7YAKV4E.js} +1 -1
  42. package/build/_chunks/{chunk-MUBZJUHH.js → chunk-QFTJ5ABI.js} +1 -1
  43. package/build/_chunks/{chunk-EGIKB732.js → chunk-QGS4PD2V.js} +1 -1
  44. package/build/_chunks/{chunk-2BU56HDE.js → chunk-RCTBWGYW.js} +1 -1
  45. package/build/_chunks/chunk-T3IFS7C5.js +1 -0
  46. package/build/_chunks/{chunk-TRXHMROX.js → chunk-T5VU5QUN.js} +1 -1
  47. package/build/_chunks/{chunk-U2JLXSW5.js → chunk-TDHNYSIB.js} +1 -1
  48. package/build/_chunks/chunk-TF7BQNJV.js +2 -0
  49. package/build/_chunks/{chunk-3YZF4W2L.js → chunk-THQ7CZYC.js} +1 -1
  50. package/build/_chunks/{chunk-NFDDJIRN.js → chunk-TWCYN3JC.js} +1 -1
  51. package/build/_chunks/{chunk-GGX2FEQV.js → chunk-U2UE6E3A.js} +1 -1
  52. package/build/_chunks/{chunk-LQSTGJBJ.js → chunk-VKDF5MAO.js} +1 -1
  53. package/build/_chunks/{chunk-HNVAFVUA.js → chunk-VVXNNZDR.js} +1 -1
  54. package/build/_chunks/{chunk-S7AZOXFD.js → chunk-W6KKPIHK.js} +1 -1
  55. package/build/_chunks/{chunk-4V64TJJW.js → chunk-WDYLJ45H.js} +1 -1
  56. package/build/_chunks/{chunk-OL6JOGIF.js → chunk-WIDRYXRC.js} +1 -1
  57. package/build/_chunks/{chunk-632OM3TB.js → chunk-WR5IPYWX.js} +1 -1
  58. package/build/_chunks/{chunk-G4W4TPFT.js → chunk-XE67FQI7.js} +1 -1
  59. package/build/_chunks/{chunk-565FQDLE.js → chunk-YCNRGXTF.js} +1 -1
  60. package/build/components/ActionMenu/index.js +1 -1
  61. package/build/components/Alert/index.js +1 -1
  62. package/build/components/AreaChart/index.js +1 -1
  63. package/build/components/Autocomplete/index.js +1 -1
  64. package/build/components/AvatarStack/index.js +1 -1
  65. package/build/components/Card/index.js +1 -1
  66. package/build/components/CardList/index.js +1 -1
  67. package/build/components/ColorPicker/index.js +1 -1
  68. package/build/components/ColumnViews/index.js +1 -1
  69. package/build/components/ConfirmDialog/index.js +1 -1
  70. package/build/components/CountryFlag/index.js +1 -1
  71. package/build/components/CurrencyAmount/index.js +1 -1
  72. package/build/components/CurrencyAmountInput/index.js +1 -1
  73. package/build/components/CurrencySymbol/index.js +1 -1
  74. package/build/components/DeviceIcon/index.js +1 -1
  75. package/build/components/EmptyState/index.js +1 -1
  76. package/build/components/ErrorToast/index.js +1 -1
  77. package/build/components/ExpandableChip/index.js +1 -1
  78. package/build/components/ExportReportButton/index.js +1 -1
  79. package/build/components/FileDropbox/index.js +1 -1
  80. package/build/components/FilePreview/index.js +1 -1
  81. package/build/components/FileUploader/index.js +1 -1
  82. package/build/components/FilterBar/index.js +1 -1
  83. package/build/components/FilterButton/index.js +1 -1
  84. package/build/components/FilterChip/index.js +1 -1
  85. package/build/components/FilterPopover/index.js +1 -1
  86. package/build/components/FlipCard/index.js +1 -1
  87. package/build/components/GroupedSelect/index.js +1 -1
  88. package/build/components/HeatMap/index.js +1 -1
  89. package/build/components/ListHeader/index.js +1 -1
  90. package/build/components/Loader/index.js +1 -1
  91. package/build/components/Logo/index.js +1 -1
  92. package/build/components/MaskedText/index.js +1 -1
  93. package/build/components/MultiLevelMenu/index.js +1 -1
  94. package/build/components/MultiLevelSelect/index.js +1 -1
  95. package/build/components/PhoneInput/index.js +1 -1
  96. package/build/components/ProgressRing/index.js +1 -1
  97. package/build/components/RadioGroup/index.js +1 -1
  98. package/build/components/RatingCount/index.js +1 -1
  99. package/build/components/SearchButton/index.js +1 -1
  100. package/build/components/SearchInput/index.js +1 -1
  101. package/build/components/Select/index.js +1 -1
  102. package/build/components/SheetViewChip/index.js +1 -1
  103. package/build/components/Sidebar/index.js +1 -1
  104. package/build/components/StatusIcons/index.js +1 -1
  105. package/build/components/TableCells/index.js +1 -1
  106. package/build/components/TableViewToggleButton/index.js +1 -1
  107. package/build/components/TextInput/index.js +1 -1
  108. package/build/components/Timeline/index.js +1 -1
  109. package/build/components/VerificationIcon/index.js +1 -1
  110. package/build/components/VirtualTables/index.js +1 -1
  111. package/build/components/Window/index.js +1 -1
  112. package/build/components/WindowServices/index.js +1 -1
  113. package/build/components/WindowToolbar/index.js +1 -1
  114. package/build/components/index.js +1 -1
  115. package/build/components/modules/JSONViewWindow/index.js +1 -1
  116. package/build/components/modules/VirtualTables/index.js +1 -1
  117. package/build/components/modules/WindowShell/index.js +1 -1
  118. package/build/components/modules/index.js +1 -1
  119. package/build/components/primitives/index.js +1 -1
  120. package/build/constants/apps.d.ts +3 -0
  121. package/build/constants/index.js +1 -1
  122. package/build/datetime/components/index.js +1 -1
  123. package/build/hooks/index.js +1 -1
  124. package/build/index.js +1 -1
  125. package/build/utils/index.js +1 -1
  126. package/package.json +1 -1
  127. package/build/_chunks/chunk-2MGV5XP4.js +0 -1
  128. package/build/_chunks/chunk-EYLBXWXJ.js +0 -2
@@ -1,2 +1,2 @@
1
- import {j}from'./chunk-Z6D3LMCU.js';import {Eb}from'./chunk-XBJ4RS2B.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"currentColor"})}),m=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:Eb(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
1
+ import {j}from'./chunk-KRRCTTGN.js';import {Eb}from'./chunk-FHV4S2B3.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"currentColor"})}),m=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:Eb(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
2
2
  export{r as a,M as b};
@@ -1 +1 @@
1
- import {f as f$1,aa}from'./chunk-Z6D3LMCU.js';import {Sc,A as A$1}from'./chunk-EYLBXWXJ.js';import {forwardRef}from'react';import r from'@mui/material/Box';import ne from'@mui/material/CircularProgress';import ie from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import m from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-Select",u={root:`${o}-root`,field:`${o}-field`,input:`${o}-input`,display:`${o}-display`,endAdornment:`${o}-endAdornment`,chevron:`${o}-chevron`,loading:`${o}-loading`,menu:`${o}-menu`,option:`${o}-option`,clear:`${o}-clear`,feedback:`${o}-feedback`,values:`${o}-values`,value:`${o}-value`,valueOverflow:`${o}-valueOverflow`,search:`${o}-search`,summary:`${o}-summary`,groupLabel:`${o}-groupLabel`},ae="Search",de=8,pe=8,a=28,d=36,n=17,se=4,z=256,W=272,A=293,ce=8,E={bottom:"bottom",top:"top"},xe=E.bottom,h={start:"start",end:"end"},ge=h.start,R=48,O=1,G=R-2*O,D=8,ue=10,j=13,N=D+j,Z=4,q=6,he=G-N-Z-q,b=8,f=4,y=f,c=8,x=16,v=8,g=4,me=g+x+v,Se=g+c+y;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${A}px !important`}},$e=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),Le=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),ze=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),B="#F8F8F8",We=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:l})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:a,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:a},boxSizing:"border-box",borderRadius:4,backgroundColor:i?B:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:B},"&.Mui-disabled":{opacity:.38},...l&&{display:"none !important"}})),Ae=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Te=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Ve=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ee=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:d,minHeight:d,maxHeight:d,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:d,minHeight:d,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var ee=styled(m,{shouldForwardProp:e=>e!=="$divider"&&e!=="$hidden"})(({theme:e,$divider:i,$hidden:l})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",flexShrink:0,padding:"8px 8px 4px",fontSize:10,fontWeight:500,lineHeight:"100%",color:e.v2.palette.grey[500],borderTop:i?`1px solid ${e.v2.palette.border.default}`:"none","&.MuiListSubheader-root":{position:"static",lineHeight:"100%"},"&:empty":{padding:0},...l&&{display:"none !important"}})),Re=Object.assign(ee,{muiSkipListHighlight:true}),Oe=styled(Q)(({theme:e})=>({width:"100%",height:d,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Ge=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:n,minHeight:n,maxHeight:n,padding:0,lineHeight:`${n}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:n,minHeight:n,padding:0,lineHeight:`${n}px`}})),De=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:n,minHeight:n,gap:e.spacing(1)})),je=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${n}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),Ne=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:n,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${n}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:n,padding:0,lineHeight:`${n}px`}})),Ze=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),qe=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:l,hasFeedback:s,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,l),C=s?"4px 4px 0 0":"4px",S=V===h.end,P=S?g:f,H=w?`18px ${P}px 6px ${b}px !important`:`0 ${P}px 0 ${b}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:s?`1px solid ${l?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:s?"none":void 0,boxShadow:s?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:S?"flex-end !important":"flex-start !important",textAlign:S?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:y,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:v}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...l&&{border:`1px solid ${I}`},...s&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Je=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function ot(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function nt(){return jsx(T,{src:A$1,alt:""})}function it(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var re=forwardRef((e,i)=>jsx(ie,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));re.displayName="SelectChevronIcon";function rt(){return jsx(ne,{size:14,sx:{color:"text.secondary"}})}export{nt as $,v as A,g as B,me as C,Se as D,Fe as E,$e as F,Le as G,ze as H,We as I,Ae as J,Be as K,Te as L,Ve as M,Ee as N,Y as O,_ as P,Re as Q,Oe as R,Ge as S,De as T,je as U,Ne as V,Ze as W,qe as X,Je as Y,Ke as Z,ot as _,u as a,it as aa,ae as b,re as ba,de as c,rt as ca,pe as d,se as e,z as f,W as g,A as h,ce as i,E as j,xe as k,h as l,ge as m,R as n,O as o,D as p,ue as q,j as r,N as s,Z as t,q as u,he as v,b as w,y as x,c as y,x as z};
1
+ import {f as f$1,aa}from'./chunk-KRRCTTGN.js';import {Sc,A as A$1}from'./chunk-TF7BQNJV.js';import {forwardRef}from'react';import r from'@mui/material/Box';import ne from'@mui/material/CircularProgress';import ie from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import m from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-Select",u={root:`${o}-root`,field:`${o}-field`,input:`${o}-input`,display:`${o}-display`,endAdornment:`${o}-endAdornment`,chevron:`${o}-chevron`,loading:`${o}-loading`,menu:`${o}-menu`,option:`${o}-option`,clear:`${o}-clear`,feedback:`${o}-feedback`,values:`${o}-values`,value:`${o}-value`,valueOverflow:`${o}-valueOverflow`,search:`${o}-search`,summary:`${o}-summary`,groupLabel:`${o}-groupLabel`},ae="Search",de=8,pe=8,a=28,d=36,n=17,se=4,z=256,W=272,A=293,ce=8,E={bottom:"bottom",top:"top"},xe=E.bottom,h={start:"start",end:"end"},ge=h.start,R=48,O=1,G=R-2*O,D=8,ue=10,j=13,N=D+j,Z=4,q=6,he=G-N-Z-q,b=8,f=4,y=f,c=8,x=16,v=8,g=4,me=g+x+v,Se=g+c+y;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${A}px !important`}},$e=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),Le=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),ze=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),B="#F8F8F8",We=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:l})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:a,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:a},boxSizing:"border-box",borderRadius:4,backgroundColor:i?B:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:B},"&.Mui-disabled":{opacity:.38},...l&&{display:"none !important"}})),Ae=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Te=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Ve=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ee=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:d,minHeight:d,maxHeight:d,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:d,minHeight:d,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var ee=styled(m,{shouldForwardProp:e=>e!=="$divider"&&e!=="$hidden"})(({theme:e,$divider:i,$hidden:l})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",flexShrink:0,padding:"8px 8px 4px",fontSize:10,fontWeight:500,lineHeight:"100%",color:e.v2.palette.grey[500],borderTop:i?`1px solid ${e.v2.palette.border.default}`:"none","&.MuiListSubheader-root":{position:"static",lineHeight:"100%"},"&:empty":{padding:0},...l&&{display:"none !important"}})),Re=Object.assign(ee,{muiSkipListHighlight:true}),Oe=styled(Q)(({theme:e})=>({width:"100%",height:d,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Ge=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:n,minHeight:n,maxHeight:n,padding:0,lineHeight:`${n}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:n,minHeight:n,padding:0,lineHeight:`${n}px`}})),De=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:n,minHeight:n,gap:e.spacing(1)})),je=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${n}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),Ne=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:n,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${n}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:n,padding:0,lineHeight:`${n}px`}})),Ze=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),qe=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:l,hasFeedback:s,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,l),C=s?"4px 4px 0 0":"4px",S=V===h.end,P=S?g:f,H=w?`18px ${P}px 6px ${b}px !important`:`0 ${P}px 0 ${b}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:s?`1px solid ${l?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:s?"none":void 0,boxShadow:s?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:S?"flex-end !important":"flex-start !important",textAlign:S?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:y,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:v}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...l&&{border:`1px solid ${I}`},...s&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Je=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function ot(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function nt(){return jsx(T,{src:A$1,alt:""})}function it(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var re=forwardRef((e,i)=>jsx(ie,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));re.displayName="SelectChevronIcon";function rt(){return jsx(ne,{size:14,sx:{color:"text.secondary"}})}export{nt as $,v as A,g as B,me as C,Se as D,Fe as E,$e as F,Le as G,ze as H,We as I,Ae as J,Be as K,Te as L,Ve as M,Ee as N,Y as O,_ as P,Re as Q,Oe as R,Ge as S,De as T,je as U,Ne as V,Ze as W,qe as X,Je as Y,Ke as Z,ot as _,u as a,it as aa,ae as b,re as ba,de as c,rt as ca,pe as d,se as e,z as f,W as g,A as h,ce as i,E as j,xe as k,h as l,ge as m,R as n,O as o,D as p,ue as q,j as r,N as s,Z as t,q as u,he as v,b as w,y as x,c as y,x as z};
@@ -1,2 +1,2 @@
1
- import {Eb,Sb,Db,ua as ua$1,rb,Tb,T as T$1}from'./chunk-XBJ4RS2B.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import No from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Lo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Fo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},zo={sm:12,md:12,lg:14};var Do=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:t="primary",$size:o="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Lo[o],f=Fo[o];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...t==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...t==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...t==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...t==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let t=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:t,height:t}});var Eo=forwardRef(({children:e,variant:t="primary",size:o="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Do,{ref:y,className:Eb(T.root,d),$variant:t,$size:o,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(No,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:zo[o],color:"inherit"})})]})});Eo.displayName="Button";var Wo=memo(Eo);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Ho=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Vo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Ho,{className:Eb(Ne.root,e),sx:t,"data-testid":"Icon",...o,ref:r}));Vo.displayName="Icon";var Oo=memo(Vo);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Zo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},jo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},Uo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Ko=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Yo=styled(us)(({theme:e})=>{let{base:t,grey:o}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:t.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:o[500]}}});var Xo=forwardRef(({label:e,labelPlacement:t="end",disabled:o,sx:r,className:a,...s},i)=>{let n=Sb(useId(),"checkbox"),p=jsx(Ko,{id:n,ref:i,disableRipple:true,disabled:o,checkedIcon:jsx(Zo,{disabled:o}),icon:jsx(jo,{disabled:o}),indeterminateIcon:jsx(Uo,{disabled:o}),"data-testid":"Checkbox",className:Eb(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Yo,{className:Eb(V.root,a),sx:r,control:p,label:e,labelPlacement:t,disabled:o,componentsProps:{typography:{className:V.label}}}):p});Xo.displayName="Checkbox";var qo=memo(Xo);var hs="os-shared-Switch",we={root:`${hs}-root`};var Jo=styled(Cs)(({theme:e,disabled:t})=>{let{base:o,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:t?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:o.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:o.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:o.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:o.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:o.white,backgroundColor:o.white,boxShadow:"none",filter:t?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Qo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Jo,{ref:r,className:Eb(we.root,e),sx:t,"data-testid":"Switch",disableRipple:true,...o}));Qo.displayName="Switch";var et=memo(Qo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,t){try{let o=t.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${t}`);return r[a]},e);if(!Bs(o))throw new TypeError(`Invalid typography textVariant: ${t}`);return o}catch(o){return console.warn(o),e.body.default.regular}}function Ps(e,t,o){return t===void 0?o:typeof t=="number"?t:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[t]??o}var ot=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:t=Ie,$weight:o})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,t);return {color:r.black,...a,fontWeight:Ps(e.v2.typography,o,a.fontWeight)}});var tt=forwardRef(({textVariant:e=Ie,variant:t="subtitle2",weight:o,className:r,sx:a,...s},i)=>jsx(ot,{ref:i,className:Eb(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:t,$textVariant:e,$weight:o}));tt.displayName="Typography";var rt=memo(tt);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var nt=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a}=o.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},it=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var lt=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var pt=forwardRef(({disabled:e,sx:t,className:o,...r},a)=>jsx(lt,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(nt,{disabled:e}),icon:jsx(it,{disabled:e}),"data-testid":"RadioButton",className:Eb(Be.root,o),sx:t,...r}));pt.displayName="RadioButton";var dt=memo(pt);var Pe="os-shared-CircularProgress",O={root:`${Pe}-root`,progress:`${Pe}-progress`,labelOverlay:`${Pe}-labelOverlay`,labelText:`${Pe}-labelText`};var mt=styled(ns)(({theme:e})=>{let{brand:t}=e.v2.palette;return {color:"#147DC5",background:alpha(t[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ft=styled(No)(()=>({position:"relative",display:"inline-flex"})),ut=styled(No)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),yt=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var gt=forwardRef(({variant:e="indeterminate",hasLabel:t=true,value:o,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&t;return jsxs(ft,{className:Eb(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(mt,{ref:i,variant:e,value:o,className:O.progress,...s}),n&&jsx(ut,{className:O.labelOverlay,children:jsx(yt,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(o??0)}%`})})]})});gt.displayName="CircularProgress";var xt=memo(gt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var ht=styled(({className:e,...t})=>createElement(Gs,{...t,classes:{popper:Eb(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:t,grey:o}=e.v2.palette,r=t.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:o[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),Ct=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),bt=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:t})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:t?600:400,lineHeight:t?1:1.2,color:t?o[700]:alpha(o[700],.77),width:t?"100%":void 0}}),St=styled("div")(({theme:e})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:t[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,t){let o=qs(t);if(!Js(e)&&!o)return null;let r=jsx(bt,{className:w.title,$hasSupportingText:o,children:e});return o?jsxs(Ct,{className:w.content,children:[r,jsx(St,{className:w.supportingText,children:t})]}):r}function vt({className:e,title:t,supportingText:o,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(ht,{className:e,title:Qs(t,o),placement:r,arrow:true,sx:i,...n,children:jsx(No,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:Eb(w.wrapper,p),...d,children:a})})}vt.displayName="Tooltip";var Nt=memo(vt);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var wt=styled(tn)(()=>({}));var kt=forwardRef(({className:e,sx:t,variant:o="rounded",...r},a)=>jsx(wt,{ref:a,className:Eb(Fe.root,e),sx:Db({height:16},t),"data-testid":"Skeleton",variant:o,...r}));kt.displayName="Skeleton";var It=memo(kt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",Bt={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Tt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:t,to:o}=Bt[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${t} 0%, ${o} 100%)`}var Pt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:t=Re,$color:o=De})=>{let{dimension:r,fontSize:a}=Tt[t],{base:s}=e.v2.palette,i=cn(o);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:t,size:o=Re,color:r=De,...a},s)=>jsx(Pt,{ref:s,className:Eb(ze.root,e),sx:t,"data-testid":"Avatar",...a,$size:o,$color:r,variant:"circular"}));$t.displayName="Avatar";var Mt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,t){let{grey:o,border:r}=t.v2.palette;return e==="subtle"?r.subtle:o[100]}var Lt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:t="default",orientation:o="horizontal"})=>({borderColor:hn(t,e),...o==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Ft=forwardRef(({className:e,sx:t,orientation:o="horizontal",type:r="default",...a},s)=>jsx(Lt,{ref:s,className:Eb(Ae.root,e),sx:t,"data-testid":"Divider",orientation:o,$type:r,...a}));Ft.displayName="Divider";var zt=memo(Ft);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var Rt=styled(Nn)(()=>({}));var Dt=forwardRef(({className:e,sx:t,children:o,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Rt,{ref:i,className:Eb(Ee.root,e),sx:t,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:o}));Dt.displayName="Collapse";var At=memo(Dt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",Et={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,t){let{base:o,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=t.v2.palette;if(e==="highlight")return p.brand;let d=Et[e];return d||({inactive:r[100],active:alpha(o.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??o.white)}function Ln(e,t){let{base:o}=t.v2.palette;return e==="inactive"?o.black:(o.white)}var Ht=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:t=He,$compact:o,$round:r,$pointer:a})=>{let s=Mn(t,e);return {paddingBlock:e.v2.spacing(2),paddingInline:o?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:o?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(t,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:o?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Vt=forwardRef(({className:e,sx:t,color:o,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=o??r??He;return jsx(Ht,{ref:d,className:Eb(We.root,e),sx:t,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Vt.displayName="Badge";var Ot=memo(Vt);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Zt=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:t=false,invisible:o=true})=>{let r=t&&!o?e.v2.blur[6]:"none";return {zIndex:o?999:1,backgroundColor:o?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var jt=forwardRef(({className:e,sx:t,open:o=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!o)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Zt,{open:o,invisible:r,$hasBlur:a,ref:p,className:Eb(Ve.root,e),sx:t,"data-testid":"Backdrop",onClick:d,...n}),document.body)});jt.displayName="Backdrop";var Ut=memo(jt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Kt=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},Yt=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var qt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var Jt=forwardRef(({className:e,sx:t,text:o,feedbackMs:r=2e3,icon:a=jsx(Kt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),ua$1(o),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(qt,{ref:n,className:Eb(R.root,e),sx:t,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:Eb(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:Eb(R.icon,R.copiedIcon),$visible:p,children:jsx(Yt,{})})]})});Jt.displayName="CopyButton";var Qt=memo(Jt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var or=styled(No,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:t,$isDecimal:o})=>{let{base:r}=e.v2.palette;return {width:`${t}%`,minWidth:t>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:t>10?"flex-end":"center",paddingInlineEnd:t>10?e.v2.spacing(2):e.v2.spacing(0),...t===0&&{background:alpha(r.black,26/255)},...o&&{minWidth:t>=10?"40px":"36px"}}}),tr=styled(No,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(o.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...t===0&&{background:alpha(o.black,0)}}}),rr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:o.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...t===0&&{color:alpha(r[500],.5)}}});var sr=forwardRef(({className:e,sx:t,value:o},r)=>{let a=!Number.isInteger(o);return jsx(or,{ref:r,className:Eb(Q.root,e),sx:t,"data-testid":"ProgressBar",$value:o,$isDecimal:a,children:jsx(tr,{className:Q.fill,$value:o,children:jsxs(rr,{className:Q.text,$value:o,variant:"caption",children:[Number(o.toFixed(2)),"%"]})})})});sr.displayName="ProgressBar";var nr=memo(sr);var Ue="os-shared-Chip",P={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},ir={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var dr=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},cr=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,t){let o=ir[e];return {height:o.height,..."width"in o&&{width:o.width,minWidth:o.width},..."padding"in o&&{padding:t.v2.spacing(o.padding)},..."paddingBlock"in o&&{paddingBlock:t.v2.spacing(o.paddingBlock)},..."paddingInline"in o&&{paddingInline:t.v2.spacing(o.paddingInline)},borderRadius:t.v2.radius(o.borderRadius)}}var fr=styled(No,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:t="text",$hasIcon:o,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(t,e),...t==="text"&&o&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${P.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(No)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),ur=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var gr=forwardRef(({className:e,sx:t,children:o,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(o&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(ua$1(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:P.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(o){let b=m&&typeof o=="string"?rb(o):void 0;return jsx(co,{className:P.text,"data-is-arabic":b,children:o})}return h?null:jsx(co,{className:P.text,children:p})},[o,m,h,p]),L=useMemo(()=>m?jsxs(ur,{className:P.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(dr,{})}),jsx(mo,{$visible:u,children:jsx(cr,{})})]}):null,[m,u,g]);return jsxs(fr,{ref:f,"data-testid":"Chip",className:Eb(P.root,e,`CustomVariant_${a}`),sx:Db(s?{cursor:"not-allowed",opacity:.5}:{},t),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});gr.displayName="Chip";var xr=memo(gr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var hr=e=>{let{v2:t}=useTheme(),{grey:o}=t.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var Cr=styled(li)(({theme:e})=>{let{brand:t,base:o}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:t[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:t,...o}){return jsxs(SliderThumb,{className:Eb(D.thumb,t),...o,children:[e,jsx(hr,{className:D.thumbIcon})]})}var br=forwardRef(({className:e,sx:t,value:o,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(Cr,{ref:c,className:Eb(D.root,e),sx:t,"data-testid":"Slider",value:o,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});br.displayName="Slider";var Sr=memo(br);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var wr=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})};var kr=styled(vi)(({theme:e,endAdornment:t})=>{let{base:o,grey:r}=e.v2.palette,a=!!t;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:o.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(o.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.black,caretColor:o.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),Ir=styled(Si)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${t[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Br=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Tr=styled(No)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Pr=styled(bi)(({theme:e,disabled:t,fullWidth:o})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:o?"100%":"auto",height:F.md,margin:0,border:`1px solid ${t?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...t&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Mr=forwardRef(({label:e,size:t="md",error:o=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=t==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>Eb(x.root,o&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[o,r,a,z,Se,f,u,h]),Xa=useMemo(()=>Eb(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||T$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Pr,{className:Ya,sx:g,error:o,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(Ir,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(kr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:o,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":o||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Br,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Tr,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(wr,{})})]})});Mr.displayName="Input";var Lr=memo(Mr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Fr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:t=false,$minRows:o=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:t?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...t&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:t?void 0:`${Math.max(o*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),zr=styled(Si)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${t[500]} !important`}}),Rr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:t,error:o,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=o?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:t?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:o?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Ar=forwardRef(({label:e,error:t=false,disabled:o=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(Rr,{className:Eb(te.root,p),sx:d,error:t,disabled:o,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(zr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Fr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:o,required:c,placeholder:a??void 0,"aria-invalid":t||void 0,fullWidth:true,$error:t,$hasLabel:y,$minRows:s,...f})]})});Ar.displayName="Textarea";var Er=memo(Ar);var U="os-shared-Accordion",$={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Hr=()=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:t.black,stroke:t.black,strokeWidth:"0.1"})})};var Or=styled(Ei)(({theme:e,square:t})=>{let{grey:o,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${o[100]}`,...!t&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Zr=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),jr=styled(Wi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {padding:0,borderTop:`1px solid ${t[100]}`}}),Ur=styled(No)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),_r=styled(No)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Yr=forwardRef(({expanded:e,defaultExpanded:t=false,onChange:o,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(t),k=m?e:h,M=(oo,pe)=>{m||g(pe),o?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(Ur,{component:"span",className:$.expandIcon,children:jsx(Hr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(No,{component:"span",className:$.labelStartAdornment,...n.labelStartAdornment,sx:Db({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(_r,{component:"span",className:$.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(No,{component:"span",className:$.labelEndAdornment,...n.labelEndAdornment,sx:Db({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Or,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:Eb($.root,c,v),sx:Db(f??{},N),...I,...u,children:[jsx(Zr,{className:Eb($.summary,W),sx:Db({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(jr,{className:$.content,...n.content,children:a})]})});Yr.displayName="Accordion";var Xr=memo(Yr);var qr="os-shared-Menu",ye={popper:`${qr}-popper`,panel:`${qr}-panel`};var Qr=styled(_i)({}),ea=styled(No,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:t})=>{let{grey:o,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o[100]}`},"&::after":{content:t?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var ta=forwardRef(({open:e,anchorEl:t,children:o,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(o),[o])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=Eb(ye.panel,h,"MuiPopper-dropdown");return jsx(Qr,{ref:d,className:Eb(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:t,placement:r??"bottom-start",sx:a,...p,children:jsx(ea,{$showShadow:y,onScroll:M,className:L,sx:Db(n??{},g),...k,children:o})})});ta.displayName="Menu";var ra=memo(ta);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var aa=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:t})=>{let{base:o}=e.v2.palette,r=t?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:o.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...t&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),sa=styled(tl)(({theme:e})=>{let{base:t}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:t.black,whiteSpace:"nowrap"}}),na=styled("hr")(({theme:e})=>{let{grey:t}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${t[100]}`,margin:0,width:"100%",flexShrink:0}}),ia=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:t})=>{let{grey:o}=e.v2.palette;return {padding:`${t?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:o[500]}}),la=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var da=forwardRef(({heading:e,actions:t,children:o,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(aa,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:Eb(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(sa,{className:A.title,children:e}),jsx(na,{"aria-hidden":true,className:A.divider})]}):null,o!=null?jsx(ia,{className:A.content,$hasHeading:!!e,children:o}):null,t?jsx(la,{className:A.actions,children:t}):null]}));da.displayName="Dialog";var ca=memo(da);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=({disabled:e})=>{let{v2:t}=useTheme(),{brand:o,base:r,foreground:a}=t.palette;return jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?a.disabled:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:r.white})]})},fa=({disabled:e})=>{let{v2:t}=useTheme(),{base:o,grey:r}=t.palette;return jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?r[50]:o.white,stroke:e?r[200]:r[500],strokeWidth:"1.2"})})},ua=({disabled:e})=>{let{v2:t}=useTheme(),{brand:o,base:r,foreground:a}=t.palette;return jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?a.disabled:o[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:r.white})]})};var xa=styled(No,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:t=false})=>{let{base:o}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:t?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:t?.5:1,color:o.black}}),Co=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,t){return t?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,t,o,r){if(e===null)return null;if(e!==void 0)return jsx(Co,{className:G.indicator,"aria-hidden":true,children:e});let a=dl(t,o),s=cl[a];return jsx(Co,{className:G.indicator,"aria-hidden":true,children:jsx(s,{disabled:r})})}var ha=forwardRef(({isSelected:e=false,isDisabled:t=false,isIndeterminate:o=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=Eb(G.root,"menu-item",t&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:t?void 0:a,$isDisabled:t,...p,children:[ml(r,e,o,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var So="os-shared-ToggleButtons",se={root:`${So}-root`,button:`${So}-button`,overlay:`${So}-overlay`},vo={sm:"sm",md:"md"},ne=vo.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,t){let{palette:o}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:t?o.foreground.primary:o.foreground.secondary,opacity:t?1:.5}}var Sa=styled(No,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:t=ne})=>{let o=Ye[t];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(o.containerRadius)}}),va=styled(No,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:t,$width:o,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:t,width:o,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(No,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:t=false,$size:o=ne})=>{let r=Ye[o];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,t),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:t,onChange:o,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=Eb(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===t),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[t,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:Db(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:t===v.key,$size:r,onClick:()=>o(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(No)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,$a=forwardRef(({effect:e,wrapperProps:t,id:o,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=t??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:Eb(Xe.root,c??r),sx:f!=null?Db(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:o,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});$a.displayName="LazyImage";var Ma=memo($a);var ko="os-shared-FieldFeedback",ie={root:`${ko}-root`,icon:`${ko}-icon`,message:`${ko}-message`};var za=({severity:e="error",...t})=>{let o=useTheme(),{warning:r,error:a}=o.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...t,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,t){let o=t??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(o){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return o}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{backgroundColor:o,textColor:r}=Qe(e,t);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:o,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{textColor:o}=Qe(e,t);return {fontSize:"10px",lineHeight:"16px",display:"block",color:o,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:t,icon:o,className:r,sx:a},s)=>{if(!Tb(t))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:Eb(ie.root,r),sx:a,$feedbackType:i,children:[o??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:t})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Bo(e,t=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=t}var _a=forwardRef(({loadMoreItems:e,hasMore:t,isLoading:o=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{t&&!r&&u.current();},[t,r]),h=useCallback(()=>{let g=y.current;g&&Bo(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||o||c)return;let k=window.setTimeout(()=>{f(true),Bo(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[o,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:Eb(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
1
+ import {Eb,Sb,Db,ua as ua$1,rb,Tb,T as T$1}from'./chunk-FHV4S2B3.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import No from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Lo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Fo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},zo={sm:12,md:12,lg:14};var Do=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:t="primary",$size:o="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Lo[o],f=Fo[o];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...t==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...t==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...t==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...t==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...f}}}),de=styled("span")(({theme:e})=>{let t=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:t,height:t}});var Eo=forwardRef(({children:e,variant:t="primary",size:o="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,disableRipple:f=true,...u},y)=>{let m=i!=null;return jsxs(Do,{ref:y,className:Eb(T.root,d),$variant:t,$size:o,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:f,"data-testid":"Button",sx:c,...u,children:[jsx(No,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:zo[o],color:"inherit"})})]})});Eo.displayName="Button";var Wo=memo(Eo);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Ho=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Vo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Ho,{className:Eb(Ne.root,e),sx:t,"data-testid":"Icon",...o,ref:r}));Vo.displayName="Icon";var Oo=memo(Vo);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Zo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},jo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},Uo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Ko=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Yo=styled(us)(({theme:e})=>{let{base:t,grey:o}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:t.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:o[500]}}});var Xo=forwardRef(({label:e,labelPlacement:t="end",disabled:o,sx:r,className:a,...s},i)=>{let n=Sb(useId(),"checkbox"),p=jsx(Ko,{id:n,ref:i,disableRipple:true,disabled:o,checkedIcon:jsx(Zo,{disabled:o}),icon:jsx(jo,{disabled:o}),indeterminateIcon:jsx(Uo,{disabled:o}),"data-testid":"Checkbox",className:Eb(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Yo,{className:Eb(V.root,a),sx:r,control:p,label:e,labelPlacement:t,disabled:o,componentsProps:{typography:{className:V.label}}}):p});Xo.displayName="Checkbox";var qo=memo(Xo);var hs="os-shared-Switch",we={root:`${hs}-root`};var Jo=styled(Cs)(({theme:e,disabled:t})=>{let{base:o,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:t?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:o.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:o.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:o.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:o.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:o.white,backgroundColor:o.white,boxShadow:"none",filter:t?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Qo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Jo,{ref:r,className:Eb(we.root,e),sx:t,"data-testid":"Switch",disableRipple:true,...o}));Qo.displayName="Switch";var et=memo(Qo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,t){try{let o=t.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${t}`);return r[a]},e);if(!Bs(o))throw new TypeError(`Invalid typography textVariant: ${t}`);return o}catch(o){return console.warn(o),e.body.default.regular}}function Ps(e,t,o){return t===void 0?o:typeof t=="number"?t:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[t]??o}var ot=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:t=Ie,$weight:o})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,t);return {color:r.black,...a,fontWeight:Ps(e.v2.typography,o,a.fontWeight)}});var tt=forwardRef(({textVariant:e=Ie,variant:t="subtitle2",weight:o,className:r,sx:a,...s},i)=>jsx(ot,{ref:i,className:Eb(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:t,$textVariant:e,$weight:o}));tt.displayName="Typography";var rt=memo(tt);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var nt=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a}=o.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},it=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var lt=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var pt=forwardRef(({disabled:e,sx:t,className:o,...r},a)=>jsx(lt,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(nt,{disabled:e}),icon:jsx(it,{disabled:e}),"data-testid":"RadioButton",className:Eb(Be.root,o),sx:t,...r}));pt.displayName="RadioButton";var dt=memo(pt);var Pe="os-shared-CircularProgress",O={root:`${Pe}-root`,progress:`${Pe}-progress`,labelOverlay:`${Pe}-labelOverlay`,labelText:`${Pe}-labelText`};var mt=styled(ns)(({theme:e})=>{let{brand:t}=e.v2.palette;return {color:"#147DC5",background:alpha(t[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ft=styled(No)(()=>({position:"relative",display:"inline-flex"})),ut=styled(No)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),yt=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var gt=forwardRef(({variant:e="indeterminate",hasLabel:t=true,value:o,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&t;return jsxs(ft,{className:Eb(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(mt,{ref:i,variant:e,value:o,className:O.progress,...s}),n&&jsx(ut,{className:O.labelOverlay,children:jsx(yt,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(o??0)}%`})})]})});gt.displayName="CircularProgress";var xt=memo(gt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var ht=styled(({className:e,...t})=>createElement(Gs,{...t,classes:{popper:Eb(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:t,grey:o}=e.v2.palette,r=t.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:o[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),Ct=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),bt=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:t})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:t?600:400,lineHeight:t?1:1.2,color:t?o[700]:alpha(o[700],.77),width:t?"100%":void 0}}),St=styled("div")(({theme:e})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:t[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,t){let o=qs(t);if(!Js(e)&&!o)return null;let r=jsx(bt,{className:w.title,$hasSupportingText:o,children:e});return o?jsxs(Ct,{className:w.content,children:[r,jsx(St,{className:w.supportingText,children:t})]}):r}function vt({className:e,title:t,supportingText:o,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(ht,{className:e,title:Qs(t,o),placement:r,arrow:true,sx:i,...n,children:jsx(No,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:Eb(w.wrapper,p),...d,children:a})})}vt.displayName="Tooltip";var Nt=memo(vt);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var wt=styled(tn)(()=>({}));var kt=forwardRef(({className:e,sx:t,variant:o="rounded",...r},a)=>jsx(wt,{ref:a,className:Eb(Fe.root,e),sx:Db({height:16},t),"data-testid":"Skeleton",variant:o,...r}));kt.displayName="Skeleton";var It=memo(kt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",Bt={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Tt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:t,to:o}=Bt[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${t} 0%, ${o} 100%)`}var Pt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:t=Re,$color:o=De})=>{let{dimension:r,fontSize:a}=Tt[t],{base:s}=e.v2.palette,i=cn(o);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:t,size:o=Re,color:r=De,...a},s)=>jsx(Pt,{ref:s,className:Eb(ze.root,e),sx:t,"data-testid":"Avatar",...a,$size:o,$color:r,variant:"circular"}));$t.displayName="Avatar";var Mt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,t){let{grey:o,border:r}=t.v2.palette;return e==="subtle"?r.subtle:o[100]}var Lt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:t="default",orientation:o="horizontal"})=>({borderColor:hn(t,e),...o==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Ft=forwardRef(({className:e,sx:t,orientation:o="horizontal",type:r="default",...a},s)=>jsx(Lt,{ref:s,className:Eb(Ae.root,e),sx:t,"data-testid":"Divider",orientation:o,$type:r,...a}));Ft.displayName="Divider";var zt=memo(Ft);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var Rt=styled(Nn)(()=>({}));var Dt=forwardRef(({className:e,sx:t,children:o,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Rt,{ref:i,className:Eb(Ee.root,e),sx:t,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:o}));Dt.displayName="Collapse";var At=memo(Dt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",Et={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,t){let{base:o,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=t.v2.palette;if(e==="highlight")return p.brand;let d=Et[e];return d||({inactive:r[100],active:alpha(o.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??o.white)}function Ln(e,t){let{base:o}=t.v2.palette;return e==="inactive"?o.black:(o.white)}var Ht=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:t=He,$compact:o,$round:r,$pointer:a})=>{let s=Mn(t,e);return {paddingBlock:e.v2.spacing(2),paddingInline:o?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:o?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(t,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:o?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Vt=forwardRef(({className:e,sx:t,color:o,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=o??r??He;return jsx(Ht,{ref:d,className:Eb(We.root,e),sx:t,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Vt.displayName="Badge";var Ot=memo(Vt);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Zt=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:t=false,invisible:o=true})=>{let r=t&&!o?e.v2.blur[6]:"none";return {zIndex:o?999:1,backgroundColor:o?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var jt=forwardRef(({className:e,sx:t,open:o=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!o)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Zt,{open:o,invisible:r,$hasBlur:a,ref:p,className:Eb(Ve.root,e),sx:t,"data-testid":"Backdrop",onClick:d,...n}),document.body)});jt.displayName="Backdrop";var Ut=memo(jt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Kt=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},Yt=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var qt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var Jt=forwardRef(({className:e,sx:t,text:o,feedbackMs:r=2e3,icon:a=jsx(Kt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),ua$1(o),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(qt,{ref:n,className:Eb(R.root,e),sx:t,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:Eb(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:Eb(R.icon,R.copiedIcon),$visible:p,children:jsx(Yt,{})})]})});Jt.displayName="CopyButton";var Qt=memo(Jt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var or=styled(No,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:t,$isDecimal:o})=>{let{base:r}=e.v2.palette;return {width:`${t}%`,minWidth:t>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:t>10?"flex-end":"center",paddingInlineEnd:t>10?e.v2.spacing(2):e.v2.spacing(0),...t===0&&{background:alpha(r.black,26/255)},...o&&{minWidth:t>=10?"40px":"36px"}}}),tr=styled(No,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(o.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...t===0&&{background:alpha(o.black,0)}}}),rr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:o.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...t===0&&{color:alpha(r[500],.5)}}});var sr=forwardRef(({className:e,sx:t,value:o},r)=>{let a=!Number.isInteger(o);return jsx(or,{ref:r,className:Eb(Q.root,e),sx:t,"data-testid":"ProgressBar",$value:o,$isDecimal:a,children:jsx(tr,{className:Q.fill,$value:o,children:jsxs(rr,{className:Q.text,$value:o,variant:"caption",children:[Number(o.toFixed(2)),"%"]})})})});sr.displayName="ProgressBar";var nr=memo(sr);var Ue="os-shared-Chip",P={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},ir={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var dr=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},cr=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,t){let o=ir[e];return {height:o.height,..."width"in o&&{width:o.width,minWidth:o.width},..."padding"in o&&{padding:t.v2.spacing(o.padding)},..."paddingBlock"in o&&{paddingBlock:t.v2.spacing(o.paddingBlock)},..."paddingInline"in o&&{paddingInline:t.v2.spacing(o.paddingInline)},borderRadius:t.v2.radius(o.borderRadius)}}var fr=styled(No,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:t="text",$hasIcon:o,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(t,e),...t==="text"&&o&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${P.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(No)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),ur=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var gr=forwardRef(({className:e,sx:t,children:o,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[u,y]=useState(false),m=!!(o&&n),h=r!=null&&!m,g=useCallback(b=>{b.stopPropagation(),n&&(ua$1(n),y(true),setTimeout(()=>y(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:P.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(o){let b=m&&typeof o=="string"?rb(o):void 0;return jsx(co,{className:P.text,"data-is-arabic":b,children:o})}return h?null:jsx(co,{className:P.text,children:p})},[o,m,h,p]),L=useMemo(()=>m?jsxs(ur,{className:P.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(mo,{$visible:!u,children:jsx(dr,{})}),jsx(mo,{$visible:u,children:jsx(cr,{})})]}):null,[m,u,g]);return jsxs(fr,{ref:f,"data-testid":"Chip",className:Eb(P.root,e,`CustomVariant_${a}`),sx:Db(s?{cursor:"not-allowed",opacity:.5}:{},t),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});gr.displayName="Chip";var xr=memo(gr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var hr=e=>{let{v2:t}=useTheme(),{grey:o}=t.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var Cr=styled(li)(({theme:e})=>{let{brand:t,base:o}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:t[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:t,...o}){return jsxs(SliderThumb,{className:Eb(D.thumb,t),...o,children:[e,jsx(hr,{className:D.thumbIcon})]})}var br=forwardRef(({className:e,sx:t,value:o,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((u,y)=>{n(y);},[n]);return jsx(Cr,{ref:c,className:Eb(D.root,e),sx:t,"data-testid":"Slider",value:o,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:ui,...p}})});br.displayName="Slider";var Sr=memo(br);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var wr=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})};var kr=styled(vi)(({theme:e,endAdornment:t})=>{let{base:o,grey:r}=e.v2.palette,a=!!t;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:o.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(o.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.black,caretColor:o.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),Ir=styled(Si)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${t[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Br=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Tr=styled(No)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Pr=styled(bi)(({theme:e,disabled:t,fullWidth:o})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:o?"100%":"auto",height:F.md,margin:0,border:`1px solid ${t?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...t&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Mr=forwardRef(({label:e,size:t="md",error:o=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:f=false,focused:u,type:y,id:m="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=y==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=t==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>Eb(x.root,o&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,f&&x.disableFocusRing,u&&inputClasses.focused,h),[o,r,a,z,Se,f,u,h]),Xa=useMemo(()=>Eb(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||T$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Pr,{className:Ya,sx:g,error:o,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:u||void 0,children:[z&&jsx(Ir,{className:x.label,htmlFor:m??void 0,required:p,shrink:u||void 0,children:e}),jsx(kr,{id:m??void 0,inputRef:Ka,className:Xa,type:y,error:o,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":o||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Br,{className:x.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Tr,{className:x.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(wr,{})})]})});Mr.displayName="Input";var Lr=memo(Mr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Fr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:t=false,$minRows:o=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:t?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...t&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:t?void 0:`${Math.max(o*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),zr=styled(Si)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${t[500]} !important`}}),Rr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:t,error:o,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=o?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:t?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:o?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Ar=forwardRef(({label:e,error:t=false,disabled:o=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...f},u)=>{let y=!!e;return jsxs(Rr,{className:Eb(te.root,p),sx:d,error:t,disabled:o,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(zr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Fr,{id:n,inputRef:u,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:o,required:c,placeholder:a??void 0,"aria-invalid":t||void 0,fullWidth:true,$error:t,$hasLabel:y,$minRows:s,...f})]})});Ar.displayName="Textarea";var Er=memo(Ar);var U="os-shared-Accordion",$={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Hr=()=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:t.black,stroke:t.black,strokeWidth:"0.1"})})};var Or=styled(Ei)(({theme:e,square:t})=>{let{grey:o,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${o[100]}`,...!t&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Zr=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),jr=styled(Wi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {padding:0,borderTop:`1px solid ${t[100]}`}}),Ur=styled(No)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),_r=styled(No)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Yr=forwardRef(({expanded:e,defaultExpanded:t=false,onChange:o,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...u},y)=>{let m=e!==void 0,[h,g]=useState(t),k=m?e:h,M=(oo,pe)=>{m||g(pe),o?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(Ur,{component:"span",className:$.expandIcon,children:jsx(Hr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(No,{component:"span",className:$.labelStartAdornment,...n.labelStartAdornment,sx:Db({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(_r,{component:"span",className:$.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(No,{component:"span",className:$.labelEndAdornment,...n.labelEndAdornment,sx:Db({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Or,{ref:y,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:Eb($.root,c,v),sx:Db(f??{},N),...I,...u,children:[jsx(Zr,{className:Eb($.summary,W),sx:Db({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(jr,{className:$.content,...n.content,children:a})]})});Yr.displayName="Accordion";var Xr=memo(Yr);var qr="os-shared-Menu",ye={popper:`${qr}-popper`,panel:`${qr}-panel`};var Qr=styled(_i)({}),ea=styled(No,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:t})=>{let{grey:o,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o[100]}`},"&::after":{content:t?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var ta=forwardRef(({open:e,anchorEl:t,children:o,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),y=useMemo(()=>Children.count(o),[o])>12&&c,{onScroll:m,className:h,sx:g,...k}=s??{},M=useCallback(b=>{f((b.currentTarget.scrollTop??0)>0),m?.(b);},[m]),L=Eb(ye.panel,h,"MuiPopper-dropdown");return jsx(Qr,{ref:d,className:Eb(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:t,placement:r??"bottom-start",sx:a,...p,children:jsx(ea,{$showShadow:y,onScroll:M,className:L,sx:Db(n??{},g),...k,children:o})})});ta.displayName="Menu";var ra=memo(ta);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var aa=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:t})=>{let{base:o}=e.v2.palette,r=t?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:o.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...t&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),sa=styled(tl)(({theme:e})=>{let{base:t}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:t.black,whiteSpace:"nowrap"}}),na=styled("hr")(({theme:e})=>{let{grey:t}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${t[100]}`,margin:0,width:"100%",flexShrink:0}}),ia=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:t})=>{let{grey:o}=e.v2.palette;return {padding:`${t?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:o[500]}}),la=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var da=forwardRef(({heading:e,actions:t,children:o,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(aa,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:Eb(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(sa,{className:A.title,children:e}),jsx(na,{"aria-hidden":true,className:A.divider})]}):null,o!=null?jsx(ia,{className:A.content,$hasHeading:!!e,children:o}):null,t?jsx(la,{className:A.actions,children:t}):null]}));da.displayName="Dialog";var ca=memo(da);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=({disabled:e})=>{let{v2:t}=useTheme(),{brand:o,base:r,foreground:a}=t.palette;return jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?a.disabled:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:r.white})]})},fa=({disabled:e})=>{let{v2:t}=useTheme(),{base:o,grey:r}=t.palette;return jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?r[50]:o.white,stroke:e?r[200]:r[500],strokeWidth:"1.2"})})},ua=({disabled:e})=>{let{v2:t}=useTheme(),{brand:o,base:r,foreground:a}=t.palette;return jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?a.disabled:o[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:r.white})]})};var xa=styled(No,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:t=false})=>{let{base:o}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:t?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:t?.5:1,color:o.black}}),Co=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,t){return t?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,t,o,r){if(e===null)return null;if(e!==void 0)return jsx(Co,{className:G.indicator,"aria-hidden":true,children:e});let a=dl(t,o),s=cl[a];return jsx(Co,{className:G.indicator,"aria-hidden":true,children:jsx(s,{disabled:r})})}var ha=forwardRef(({isSelected:e=false,isDisabled:t=false,isIndeterminate:o=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=Eb(G.root,"menu-item",t&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:t?void 0:a,$isDisabled:t,...p,children:[ml(r,e,o,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var So="os-shared-ToggleButtons",se={root:`${So}-root`,button:`${So}-button`,overlay:`${So}-overlay`},vo={sm:"sm",md:"md"},ne=vo.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,t){let{palette:o}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:t?o.foreground.primary:o.foreground.secondary,opacity:t?1:.5}}var Sa=styled(No,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:t=ne})=>{let o=Ye[t];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(o.containerRadius)}}),va=styled(No,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:t,$width:o,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:t,width:o,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(No,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:t=false,$size:o=ne})=>{let r=Ye[o];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,t),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:t,onChange:o,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:f,sx:u,...y}=a??{},m=Eb(se.root,n,f),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===t),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[t,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:m,$size:r,sx:Db(p??{},u),...y,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:t===v.key,$size:r,onClick:()=>o(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(No)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,$a=forwardRef(({effect:e,wrapperProps:t,id:o,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:f,style:u,...y}=t??{},m=Je(e)||!!s||u!=null;return jsx(Ta,{component:"span",...y,className:Eb(Xe.root,c??r),sx:f!=null?Db(a??{},f):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:o,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...u}}:void 0})})});$a.displayName="LazyImage";var Ma=memo($a);var ko="os-shared-FieldFeedback",ie={root:`${ko}-root`,icon:`${ko}-icon`,message:`${ko}-message`};var za=({severity:e="error",...t})=>{let o=useTheme(),{warning:r,error:a}=o.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...t,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,t){let o=t??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(o){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return o}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{backgroundColor:o,textColor:r}=Qe(e,t);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:o,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{textColor:o}=Qe(e,t);return {fontSize:"10px",lineHeight:"16px",display:"block",color:o,wordBreak:"break-word"}}),Wa=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:t,icon:o,className:r,sx:a},s)=>{if(!Tb(t))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:Eb(ie.root,r),sx:a,$feedbackType:i,children:[o??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:t})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Bo(e,t=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=t}var _a=forwardRef(({loadMoreItems:e,hasMore:t,isLoading:o=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),u=useRef(e),y=useRef(null);u.current=e;let m=useCallback(()=>{t&&!r&&u.current();},[t,r]),h=useCallback(()=>{let g=y.current;g&&Bo(g)&&m();},[m]);return useEffect(()=>{let g=y.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=y.current;if(!g||o||c)return;let k=window.setTimeout(()=>{f(true),Bo(g)&&m();},1e3);return ()=>window.clearTimeout(k)},[o,m,c]),jsx(Oa,{ref:g=>{y.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:Eb(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
2
2
  export{ie as $,Ve as A,Ut as B,R as C,Qt as D,Q as E,nr as F,P as G,xr as H,D as I,Sr as J,x as K,Lr as L,te as M,Er as N,$ as O,Xr as P,ye as Q,ra as R,A as S,ca as T,G as U,Ca as V,se as W,vo as X,Ba as Y,Xe as Z,Ma as _,T as a,Qe as aa,Wo as b,Va as ba,Ne as c,eo as ca,Oo as d,Ga as da,V as e,qo as f,we as g,et as h,ke as i,rt as j,Be as k,dt as l,O as m,xt as n,w as o,Nt as p,Fe as q,It as r,ze as s,Mt as t,Ae as u,zt as v,Ee as w,At as x,We as y,Ot as z};
@@ -1 +1 @@
1
- import {j,b,R,B as B$1}from'./chunk-Z6D3LMCU.js';import {Db,Eb}from'./chunk-XBJ4RS2B.js';import {createContext,forwardRef,useEffect,useMemo,memo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r="os-shared-FilterPopover",t={popper:`${r}-popper`,panel:`${r}-panel`,header:`${r}-header`,title:`${r}-title`,headerAction:`${r}-header-action`,footer:`${r}-footer`,cancel:`${r}-cancel`,confirm:`${r}-confirm`},x=193,F=8,g=1300,N=70,_=32;var y=createContext(null);function pe(){let e=useContext(y);if(!e)throw new Error("useFilterPopover must be used inside a FilterPopover");return e}function h(e){let o=`${F}px`;return e?.startsWith("top")?{marginBottom:o}:e?.startsWith("bottom")?{marginTop:o}:{}}function H(e,o){return {"&&":{flex:1,minWidth:e.v2.spacing(N),height:e.v2.spacing(_),minHeight:e.v2.spacing(_),paddingInline:e.v2.spacing(8),textTransform:"capitalize",fontSize:"11px",fontWeight:o}}}var V=styled("div")(({theme:e})=>{let{base:o,grey:i}=e.v2.palette;return {position:"sticky",top:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.v2.spacing(8),boxSizing:"border-box",height:e.v2.spacing(32),contain:"inline-size",paddingInlineStart:e.v2.spacing(16),paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),paddingInlineEnd:e.v2.spacing(8),borderBottom:`1px solid ${i[100]}`,backgroundColor:o.white}}),w=styled(j)(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o[500]}}),A=styled("div")({display:"flex",alignItems:"center",flexShrink:0,marginInlineStart:"auto"}),L=styled("div")(({theme:e})=>{let{base:o,grey:i}=e.v2.palette;return {position:"sticky",bottom:0,zIndex:1,boxSizing:"border-box",display:"flex",gap:e.v2.spacing(8),justifyContent:"center",padding:`${e.v2.spacing(8)} ${e.v2.spacing(16)}`,backgroundColor:o.white,borderTop:`1px solid ${i[100]}`}}),k=styled(b)(({theme:e})=>{let o=e.v2.typography.fontWeightMedium;return H(e,typeof o=="number"?o:500)}),B=styled(b)(({theme:e})=>{let{base:o,brand:i}=e.v2.palette;return {...H(e,e.v2.typography.fontWeightBolder??e.v2.typography.textVariants.body.small.bold.fontWeight),"&&.Mui-disabled":{color:o.white,opacity:.5,background:i[500]}}});var W=forwardRef(function({id:o,className:i,sx:E,popperSx:M,modifiers:z,popperOptions:D,open:s,anchorEl:G,placement:P="bottom-end",title:d,hasTitle:X=true,headerAction:v,children:Z,hasFooter:j=true,confirmLabel:K="Okay",cancelLabel:q="Cancel",isConfirmDisabled:J=false,hasBackdrop:Q=false,onClose:p,onCancel:m,onConfirm:f,onKeyDown:U},Y){let I=!!d&&X,ee=I||!!v;useEffect(()=>{if(!s)return;let O=re=>{re.key==="Escape"&&p?.();};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[s,p]);let oe=useMemo(()=>({onConfirm:()=>f?.(),onCancel:()=>m?.(),onClose:()=>p?.()}),[f,m,p]),te=useMemo(()=>Db(Db({minWidth:x},E),h(P)),[P,E]);return jsxs(y.Provider,{value:oe,children:[jsxs(R,{open:s,anchorEl:G,placement:P,modifiers:z,popperOptions:D,className:t.popper,popperSx:Db({zIndex:g},M),sx:te,panelProps:{ref:Y,id:o,className:Eb(t.panel,i),role:"dialog",tabIndex:-1,onKeyDown:U,"aria-label":d||"Filter","data-testid":o??"FilterPopover"},children:[ee&&jsxs(V,{className:t.header,children:[I&&jsx(w,{className:t.title,component:"span",textVariant:"body.small.medium",children:d}),v&&jsx(A,{className:t.headerAction,children:v})]}),Z,j&&jsxs(L,{className:t.footer,children:[jsx(k,{type:"button",variant:"secondary",size:"md",className:t.cancel,onClick:m,children:q}),jsx(B,{type:"button",variant:"primary",size:"md",className:t.confirm,disabled:J,onClick:f,children:K})]})]}),Q&&s&&jsx(B$1,{onClose:p})]})});W.displayName="FilterPopover";var $=memo(W);export{t as a,x as b,F as c,g as d,pe as e,$ as f};
1
+ import {j,b,R,B as B$1}from'./chunk-KRRCTTGN.js';import {Db,Eb}from'./chunk-FHV4S2B3.js';import {createContext,forwardRef,useEffect,useMemo,memo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r="os-shared-FilterPopover",t={popper:`${r}-popper`,panel:`${r}-panel`,header:`${r}-header`,title:`${r}-title`,headerAction:`${r}-header-action`,footer:`${r}-footer`,cancel:`${r}-cancel`,confirm:`${r}-confirm`},x=193,F=8,g=1300,N=70,_=32;var y=createContext(null);function pe(){let e=useContext(y);if(!e)throw new Error("useFilterPopover must be used inside a FilterPopover");return e}function h(e){let o=`${F}px`;return e?.startsWith("top")?{marginBottom:o}:e?.startsWith("bottom")?{marginTop:o}:{}}function H(e,o){return {"&&":{flex:1,minWidth:e.v2.spacing(N),height:e.v2.spacing(_),minHeight:e.v2.spacing(_),paddingInline:e.v2.spacing(8),textTransform:"capitalize",fontSize:"11px",fontWeight:o}}}var V=styled("div")(({theme:e})=>{let{base:o,grey:i}=e.v2.palette;return {position:"sticky",top:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.v2.spacing(8),boxSizing:"border-box",height:e.v2.spacing(32),contain:"inline-size",paddingInlineStart:e.v2.spacing(16),paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),paddingInlineEnd:e.v2.spacing(8),borderBottom:`1px solid ${i[100]}`,backgroundColor:o.white}}),w=styled(j)(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o[500]}}),A=styled("div")({display:"flex",alignItems:"center",flexShrink:0,marginInlineStart:"auto"}),L=styled("div")(({theme:e})=>{let{base:o,grey:i}=e.v2.palette;return {position:"sticky",bottom:0,zIndex:1,boxSizing:"border-box",display:"flex",gap:e.v2.spacing(8),justifyContent:"center",padding:`${e.v2.spacing(8)} ${e.v2.spacing(16)}`,backgroundColor:o.white,borderTop:`1px solid ${i[100]}`}}),k=styled(b)(({theme:e})=>{let o=e.v2.typography.fontWeightMedium;return H(e,typeof o=="number"?o:500)}),B=styled(b)(({theme:e})=>{let{base:o,brand:i}=e.v2.palette;return {...H(e,e.v2.typography.fontWeightBolder??e.v2.typography.textVariants.body.small.bold.fontWeight),"&&.Mui-disabled":{color:o.white,opacity:.5,background:i[500]}}});var W=forwardRef(function({id:o,className:i,sx:E,popperSx:M,modifiers:z,popperOptions:D,open:s,anchorEl:G,placement:P="bottom-end",title:d,hasTitle:X=true,headerAction:v,children:Z,hasFooter:j=true,confirmLabel:K="Okay",cancelLabel:q="Cancel",isConfirmDisabled:J=false,hasBackdrop:Q=false,onClose:p,onCancel:m,onConfirm:f,onKeyDown:U},Y){let I=!!d&&X,ee=I||!!v;useEffect(()=>{if(!s)return;let O=re=>{re.key==="Escape"&&p?.();};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[s,p]);let oe=useMemo(()=>({onConfirm:()=>f?.(),onCancel:()=>m?.(),onClose:()=>p?.()}),[f,m,p]),te=useMemo(()=>Db(Db({minWidth:x},E),h(P)),[P,E]);return jsxs(y.Provider,{value:oe,children:[jsxs(R,{open:s,anchorEl:G,placement:P,modifiers:z,popperOptions:D,className:t.popper,popperSx:Db({zIndex:g},M),sx:te,panelProps:{ref:Y,id:o,className:Eb(t.panel,i),role:"dialog",tabIndex:-1,onKeyDown:U,"aria-label":d||"Filter","data-testid":o??"FilterPopover"},children:[ee&&jsxs(V,{className:t.header,children:[I&&jsx(w,{className:t.title,component:"span",textVariant:"body.small.medium",children:d}),v&&jsx(A,{className:t.headerAction,children:v})]}),Z,j&&jsxs(L,{className:t.footer,children:[jsx(k,{type:"button",variant:"secondary",size:"md",className:t.cancel,onClick:m,children:q}),jsx(B,{type:"button",variant:"primary",size:"md",className:t.confirm,disabled:J,onClick:f,children:K})]})]}),Q&&s&&jsx(B$1,{onClose:p})]})});W.displayName="FilterPopover";var $=memo(W);export{t as a,x as b,F as c,g as d,pe as e,$ as f};
@@ -1 +1 @@
1
- import {a,b,c,d,e,f,g,h,i,j,k,l,m,n}from'./chunk-FDYQ25JQ.js';import {Ya,Nb,Ob}from'./chunk-XBJ4RS2B.js';import {useEffect,useCallback,useState,useMemo}from'react';function B(){return a()}function _({value:t,delay:e}){let o=b(t??false,e);return t===void 0?void 0:o}function Y(t,e){let{setCount:o,getCount:r}=c();return useEffect(()=>{t&&o(t,e||0);},[e,t,o]),{getBadgeCount:useCallback(i=>i?r(i):void 0,[r])}}function X(t){return {isParameterSelected:(r,n)=>n?.map(i=>Ya(t,r,i)),getColumnOrder:r=>{let n=t.findIndex(i=>i.name?.toLowerCase()===r?.toLowerCase());return n===-1?100:n}}}function te(t){let{isIntersecting:e}=d(t),[o,r]=useState(false);return useEffect(()=>{e!==null&&r(!e);},[e]),{showShadow:o}}function ne(){let{isDark:t,isLight:e$1}=e();return {isDark:t,isLight:e$1}}function me(){let{seconds:t,formatted:e,start:o,stop:r,reset:n}=f();return {timer:t,formattedTime:e,startTimer:i=>o(i),stopTimer:r,resetTimer:n}}var ue=t=>{let e=useMemo(()=>new Map(t.map(s=>[s.code.toLowerCase(),s])),[t]),o=useCallback(s=>e.get(s.toLowerCase()),[e]),r=useCallback(({appCode:s,serviceCode:a})=>o(s)?.app_services.find(({code:m})=>m.toLowerCase()===a.toLowerCase()),[o]),n=useCallback(({appCode:s,serviceCode:a})=>r({appCode:s,serviceCode:a})?.functions??[],[r]),i=useCallback(({appCode:s,serviceCode:a,functionCode:m})=>n({appCode:s,serviceCode:a}).find(({code:A})=>A?.toLowerCase()===m.toLowerCase()),[n]);return {getAppInfo:o,getServiceInfo:r,getServiceFunctions:n,getFunctionInfo:i}};function L(t){return g(t)}function ge(t,e){h(t,e);}var Se=(t,e)=>{let{selectedEntity:o,selectedMerchant:r,displayName:n}=useMemo(()=>{let i=e?.entities.find(m=>m.id===t?.entityId),s=i?.merchants?.find(m=>m.id===t?.merchantId),a=s?.display_name??s?.legacy_id??"Select";return {selectedEntity:i,selectedMerchant:s,displayName:a}},[e,t?.entityId,t?.merchantId]);return {selectedBrand:e,selectedEntity:o,selectedMerchant:r,displayName:n}};function ye(){let t=L("on-toast"),e=i(t);return useMemo(()=>{let o=((r,n)=>e.show(r,n));return o.success=e.success,o.error=e.error,o.loading=e.loading,o.custom=e.custom,o.dismiss=e.dismiss,o.remove=e.remove,o},[e])}var G=10;function Le({threshold:t=G,containerRef:e}={}){let{onScroll:o,measure:r,atTop:n,atBottom:i,canScrollY:s}=j({ref:e,threshold:t});return {handleScroll:useCallback(m=>{if(m){if("currentTarget"in m){o(m);return}r(m);}},[r,o]),scrolledToTop:n,scrolledToBottom:i,scrollable:s}}function ke(t={}){let{isOnline:e,isChecking:o,error:r}=k(t);return {isOnline:e,isChecking:o,error:r}}var Ke=(t={},e,o)=>{let r=Nb(t,o.requiredFilterKeys);return {columns:useMemo(()=>Ob(e,r,o),[e,r])}};function Ge(t,e){let o=useCallback(n=>{n.preventDefault(),t(),e(n);},[t,e]),r=useCallback(n=>{e(n);},[e]);return l({Enter:o,Escape:r})}function Be(){let{onScroll:t,showShadow:e}=m();return {onScrollHandler:t,showShadow:e}}function _e(){return n()}export{B as a,_ as b,Y as c,X as d,te as e,ne as f,me as g,ue as h,L as i,ge as j,Se as k,ye as l,Le as m,ke as n,Ke as o,Ge as p,Be as q,_e as r};
1
+ import {a,b,c,d,e,f,g,h,i,j,k,l,m,n}from'./chunk-FDYQ25JQ.js';import {Ya,Nb,Ob}from'./chunk-FHV4S2B3.js';import {useEffect,useCallback,useState,useMemo}from'react';function B(){return a()}function _({value:t,delay:e}){let o=b(t??false,e);return t===void 0?void 0:o}function Y(t,e){let{setCount:o,getCount:r}=c();return useEffect(()=>{t&&o(t,e||0);},[e,t,o]),{getBadgeCount:useCallback(i=>i?r(i):void 0,[r])}}function X(t){return {isParameterSelected:(r,n)=>n?.map(i=>Ya(t,r,i)),getColumnOrder:r=>{let n=t.findIndex(i=>i.name?.toLowerCase()===r?.toLowerCase());return n===-1?100:n}}}function te(t){let{isIntersecting:e}=d(t),[o,r]=useState(false);return useEffect(()=>{e!==null&&r(!e);},[e]),{showShadow:o}}function ne(){let{isDark:t,isLight:e$1}=e();return {isDark:t,isLight:e$1}}function me(){let{seconds:t,formatted:e,start:o,stop:r,reset:n}=f();return {timer:t,formattedTime:e,startTimer:i=>o(i),stopTimer:r,resetTimer:n}}var ue=t=>{let e=useMemo(()=>new Map(t.map(s=>[s.code.toLowerCase(),s])),[t]),o=useCallback(s=>e.get(s.toLowerCase()),[e]),r=useCallback(({appCode:s,serviceCode:a})=>o(s)?.app_services.find(({code:m})=>m.toLowerCase()===a.toLowerCase()),[o]),n=useCallback(({appCode:s,serviceCode:a})=>r({appCode:s,serviceCode:a})?.functions??[],[r]),i=useCallback(({appCode:s,serviceCode:a,functionCode:m})=>n({appCode:s,serviceCode:a}).find(({code:A})=>A?.toLowerCase()===m.toLowerCase()),[n]);return {getAppInfo:o,getServiceInfo:r,getServiceFunctions:n,getFunctionInfo:i}};function L(t){return g(t)}function ge(t,e){h(t,e);}var Se=(t,e)=>{let{selectedEntity:o,selectedMerchant:r,displayName:n}=useMemo(()=>{let i=e?.entities.find(m=>m.id===t?.entityId),s=i?.merchants?.find(m=>m.id===t?.merchantId),a=s?.display_name??s?.legacy_id??"Select";return {selectedEntity:i,selectedMerchant:s,displayName:a}},[e,t?.entityId,t?.merchantId]);return {selectedBrand:e,selectedEntity:o,selectedMerchant:r,displayName:n}};function ye(){let t=L("on-toast"),e=i(t);return useMemo(()=>{let o=((r,n)=>e.show(r,n));return o.success=e.success,o.error=e.error,o.loading=e.loading,o.custom=e.custom,o.dismiss=e.dismiss,o.remove=e.remove,o},[e])}var G=10;function Le({threshold:t=G,containerRef:e}={}){let{onScroll:o,measure:r,atTop:n,atBottom:i,canScrollY:s}=j({ref:e,threshold:t});return {handleScroll:useCallback(m=>{if(m){if("currentTarget"in m){o(m);return}r(m);}},[r,o]),scrolledToTop:n,scrolledToBottom:i,scrollable:s}}function ke(t={}){let{isOnline:e,isChecking:o,error:r}=k(t);return {isOnline:e,isChecking:o,error:r}}var Ke=(t={},e,o)=>{let r=Nb(t,o.requiredFilterKeys);return {columns:useMemo(()=>Ob(e,r,o),[e,r])}};function Ge(t,e){let o=useCallback(n=>{n.preventDefault(),t(),e(n);},[t,e]),r=useCallback(n=>{e(n);},[e]);return l({Enter:o,Escape:r})}function Be(){let{onScroll:t,showShadow:e}=m();return {onScrollHandler:t,showShadow:e}}function _e(){return n()}export{B as a,_ as b,Y as c,X as d,te as e,ne as f,me as g,ue as h,L as i,ge as j,Se as k,ye as l,Le as m,ke as n,Ke as o,Ge as p,Be as q,_e as r};
@@ -1 +1 @@
1
- import {p}from'./chunk-Z6D3LMCU.js';import {na,Sb,va}from'./chunk-XBJ4RS2B.js';import {Tk,ya,xa,wa,Qj}from'./chunk-EYLBXWXJ.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:na(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Tk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=Sb(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${va((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Qj:Qj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
1
+ import {p}from'./chunk-KRRCTTGN.js';import {na,Sb,va}from'./chunk-FHV4S2B3.js';import {Tk,ya,xa,wa,Qj}from'./chunk-TF7BQNJV.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:na(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Tk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=Sb(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${va((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Qj:Qj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
@@ -1 +1 @@
1
- import {o,v,u,t as t$1,n,C,w,r,q,p,s,m,l,z,A,ca}from'./chunk-PI263RZJ.js';import {j,P,O,V,R,d}from'./chunk-Z6D3LMCU.js';import {Eb,Db}from'./chunk-XBJ4RS2B.js';import {Sc}from'./chunk-EYLBXWXJ.js';import {forwardRef,useRef,useState,memo}from'react';import ze from'@mui/material/ClickAwayListener';import Ve from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var i="os-shared-GroupedSelect",t={root:`${i}-root`,trigger:`${i}-trigger`,triggerBody:`${i}-triggerBody`,hasLabel:`${i}-hasLabel`,triggerIcon:`${i}-triggerIcon`,menu:`${i}-menu`,groups:`${i}-groups`,group:`${i}-group`,groupLabel:`${i}-groupLabel`,option:`${i}-option`,optionCheck:`${i}-optionCheck`};function _({open:e}){return jsx(Ve,{viewBox:"0 0 8 5",sx:{width:8,height:5,transform:e?"rotate(180deg)":"none",transition:"transform 0.2s ease, color 0.2s ease"},children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})})}var te=styled(g,{shouldForwardProp:e=>e!=="open"&&e!=="disabled"})(({theme:e,open:o$1,disabled:c})=>{let u={border:`${o}px solid ${e.v2.palette.brand[500]}`,boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`};return {display:"flex",alignItems:"center",cursor:c?"not-allowed":"pointer",position:"relative",maxWidth:"100%",outline:"none",[`& .${t.trigger}`]:{border:`${o}px solid transparent`,boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter})},...!c&&{[`&:focus-within .${t.trigger}`]:u,...o$1&&{[`& .${t.trigger}`]:u},[`&:focus-within .${t.triggerIcon} .MuiSvgIcon-root`]:{color:e.v2.palette.brand[500]},...o$1&&{[`& .${t.triggerIcon} .MuiSvgIcon-root`]:{color:e.v2.palette.brand[500]}}}}}),oe=styled(g,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({flex:1,minWidth:0,height:32,maxHeight:32,borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],cursor:o?"default":"pointer",position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",padding:`0 ${C}px 0 ${w}px`,textAlign:"start",[`&:where(.${t.hasLabel})`]:{height:n,maxHeight:n,gap:t$1,justifyContent:"flex-end",[`& .${t.triggerBody}`]:{flex:"0 0 auto",alignItems:"flex-start",minHeight:v+u,paddingBottom:u,boxSizing:"border-box","& > *":{height:"auto",minHeight:v}}}})),re=styled(j,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>({alignSelf:"stretch",width:"100%",boxSizing:"border-box",height:s,flexShrink:0,margin:0,paddingTop:p,fontSize:q,fontWeight:500,lineHeight:`${r}px`,textAlign:"start",color:o?e.palette.text.disabled:e.palette.grey[700],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"})),le=styled(g)(()=>({display:"flex",alignItems:"center",width:"100%",minWidth:0,flex:1})),ne=styled(g,{shouldForwardProp:e=>e!=="$placeholder"&&e!=="$disabled"&&e!=="$valueAlignment"})(({theme:e,$placeholder:o,$disabled:c,$valueAlignment:u=m})=>{let m=u===l.end;return {fontSize:"11px",lineHeight:"11px",color:c?e.palette.text.disabled:o?e.palette.text.secondary:e.v2.palette.base.black,height:22,flex:"1 1 0%",minWidth:0,display:"flex",alignItems:"center",justifyContent:m?"flex-end":"flex-start",textAlign:m?"end":"start",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingInlineEnd:m?0:void 0}}),ie=styled(g,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>({position:"absolute",right:A,top:"50%",transform:"translateY(-50%)",width:z,height:z,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",lineHeight:0,color:o?e.palette.text.disabled:e.v2.palette.base.black,opacity:o?e.palette.action.disabledOpacity:1})),ae=styled(g)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"})),de=styled(P)(({theme:e})=>{let o=`1px solid ${alpha(e.palette.common.black,.1)}`;return {flexShrink:0,border:0,borderRadius:0,"&.Mui-expanded:not(:last-of-type)":{borderBottom:o},[`&:last-of-type .${O.summary}`]:{borderBottom:"none"},[`&.Mui-expanded:last-of-type .${O.summary}`]:{borderBottom:o},[`& .${O.summary}`]:{backgroundColor:e.palette.common.white,borderBottom:o,minHeight:28,height:"auto","& .MuiAccordionSummary-content":{margin:"auto"},"&.Mui-expanded":{backgroundColor:"#F8F8F8",minHeight:28,height:"auto"}},[`& .${O.content}`]:{borderTop:"none"}}}),se=styled(j)(({theme:e})=>({fontSize:q,color:e.v2.palette.grey[500],fontWeight:600,lineHeight:`${r}px`})),pe=styled(V)(()=>({fontSize:"10px",fontWeight:500,textTransform:"none",justifyContent:"space-between",padding:"8px 20px"}));function je(e,o){return e?.id===o?.id}var ge=forwardRef(({id:e,label:o,placeholder:c,renderValue:u,IconComponent:m$1,isLoading:me=false,valueAlignment:Se=m,options:xe,value:h,onChange:be,isOptionEqualToValue:fe=je,renderOption:he,renderGroupLabel:ye,open:Ge,onOpenChange:Ce,expandedGroupIndex:P,defaultExpandedGroupIndex:$e=0,onExpandedGroupChange:Le,disabled:p=false,sx:we,menuSx:Te,className:ve},Ee)=>{let k=useRef(null),[F,Ie]=useState(null),[Pe,ke]=useState($e),s=Ge??F!==null,S=F??k.current,Fe=P??Pe,N=useRef(void 0);s&&S&&S.clientWidth>0&&(N.current=S.clientWidth);let Ne=N.current,y=(r,n)=>{Ie(n),Ce?.(r);},Ae=r=>{if(p)return;let n=!s;y(n,n?r.currentTarget:null);},A=()=>{s&&y(false,null);},He=r=>{r.key==="Escape"&&A();},Me=(r,n)=>{let a=n?r:null;P===void 0&&ke(a),Le?.(a);},Be=r=>{r.disabled||(be?.(r),y(false,null));},H=u?.(h)??h?.label??null,M=m$1,B=!!o;return jsx(ze,{onClickAway:A,children:jsxs(te,{ref:Ee,id:e,"data-testid":"GroupedSelect",className:Eb(t.root,ve),sx:we,open:s,disabled:p,tabIndex:p?-1:0,role:"combobox","aria-expanded":s,"aria-haspopup":"listbox",onClick:Ae,onKeyDown:He,children:[jsxs(oe,{ref:k,className:Eb(t.trigger,B&&t.hasLabel),disabled:p,children:[B&&jsx(re,{$disabled:p,children:o}),jsx(le,{className:t.triggerBody,children:jsx(ne,{$placeholder:H==null,$disabled:p,$valueAlignment:Se,children:H??c??""})}),jsx(ie,{className:t.triggerIcon,$disabled:p,children:me?jsx(ca,{}):M?jsx(M,{className:Eb(s&&"MuiSelect-iconOpen")}):jsx(_,{open:s})})]}),jsx(R,{open:s,anchorEl:S,placement:"bottom-start",className:t.menu,sx:Db({width:Ne??S?.clientWidth,marginTop:"4px"},Te),children:jsx(ae,{className:t.groups,onClick:r=>r.stopPropagation(),onMouseDown:r=>r.stopPropagation(),children:(xe??[]).map((r,n)=>jsx(de,{className:t.group,expanded:Fe===n,onChange:a=>Me(n,a),slotProps:{root:{square:true}},label:ye?.(r.group,n)??jsx(se,{variant:"caption",className:t.groupLabel,children:r.group}),content:(r?.options||[]).map((a,We)=>{let Oe=fe(a,h);return jsxs(pe,{className:t.option,startAdornment:null,isDisabled:a.disabled,onClick:()=>Be(a),children:[he?.(a)??a.label,Oe&&jsx(d,{src:Sc,alt:"selected",sx:{width:14,height:10},className:t.optionCheck})]},`${n}-${We}`)})},`${n}`))})})]})})});ge.displayName="GroupedSelect";var Ke=memo(ge);export{t as a,Ke as b};
1
+ import {o,v,u,t as t$1,n,C,w,r,q,p,s,m,l,z,A,ca}from'./chunk-KPSBWLN2.js';import {j,P,O,V,R,d}from'./chunk-KRRCTTGN.js';import {Eb,Db}from'./chunk-FHV4S2B3.js';import {Sc}from'./chunk-TF7BQNJV.js';import {forwardRef,useRef,useState,memo}from'react';import ze from'@mui/material/ClickAwayListener';import Ve from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var i="os-shared-GroupedSelect",t={root:`${i}-root`,trigger:`${i}-trigger`,triggerBody:`${i}-triggerBody`,hasLabel:`${i}-hasLabel`,triggerIcon:`${i}-triggerIcon`,menu:`${i}-menu`,groups:`${i}-groups`,group:`${i}-group`,groupLabel:`${i}-groupLabel`,option:`${i}-option`,optionCheck:`${i}-optionCheck`};function _({open:e}){return jsx(Ve,{viewBox:"0 0 8 5",sx:{width:8,height:5,transform:e?"rotate(180deg)":"none",transition:"transform 0.2s ease, color 0.2s ease"},children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})})}var te=styled(g,{shouldForwardProp:e=>e!=="open"&&e!=="disabled"})(({theme:e,open:o$1,disabled:c})=>{let u={border:`${o}px solid ${e.v2.palette.brand[500]}`,boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`};return {display:"flex",alignItems:"center",cursor:c?"not-allowed":"pointer",position:"relative",maxWidth:"100%",outline:"none",[`& .${t.trigger}`]:{border:`${o}px solid transparent`,boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter})},...!c&&{[`&:focus-within .${t.trigger}`]:u,...o$1&&{[`& .${t.trigger}`]:u},[`&:focus-within .${t.triggerIcon} .MuiSvgIcon-root`]:{color:e.v2.palette.brand[500]},...o$1&&{[`& .${t.triggerIcon} .MuiSvgIcon-root`]:{color:e.v2.palette.brand[500]}}}}}),oe=styled(g,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({flex:1,minWidth:0,height:32,maxHeight:32,borderRadius:"4px",overflow:"hidden",backgroundColor:e.palette.grey[400],cursor:o?"default":"pointer",position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",padding:`0 ${C}px 0 ${w}px`,textAlign:"start",[`&:where(.${t.hasLabel})`]:{height:n,maxHeight:n,gap:t$1,justifyContent:"flex-end",[`& .${t.triggerBody}`]:{flex:"0 0 auto",alignItems:"flex-start",minHeight:v+u,paddingBottom:u,boxSizing:"border-box","& > *":{height:"auto",minHeight:v}}}})),re=styled(j,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>({alignSelf:"stretch",width:"100%",boxSizing:"border-box",height:s,flexShrink:0,margin:0,paddingTop:p,fontSize:q,fontWeight:500,lineHeight:`${r}px`,textAlign:"start",color:o?e.palette.text.disabled:e.palette.grey[700],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"})),le=styled(g)(()=>({display:"flex",alignItems:"center",width:"100%",minWidth:0,flex:1})),ne=styled(g,{shouldForwardProp:e=>e!=="$placeholder"&&e!=="$disabled"&&e!=="$valueAlignment"})(({theme:e,$placeholder:o,$disabled:c,$valueAlignment:u=m})=>{let m=u===l.end;return {fontSize:"11px",lineHeight:"11px",color:c?e.palette.text.disabled:o?e.palette.text.secondary:e.v2.palette.base.black,height:22,flex:"1 1 0%",minWidth:0,display:"flex",alignItems:"center",justifyContent:m?"flex-end":"flex-start",textAlign:m?"end":"start",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingInlineEnd:m?0:void 0}}),ie=styled(g,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>({position:"absolute",right:A,top:"50%",transform:"translateY(-50%)",width:z,height:z,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",lineHeight:0,color:o?e.palette.text.disabled:e.v2.palette.base.black,opacity:o?e.palette.action.disabledOpacity:1})),ae=styled(g)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"})),de=styled(P)(({theme:e})=>{let o=`1px solid ${alpha(e.palette.common.black,.1)}`;return {flexShrink:0,border:0,borderRadius:0,"&.Mui-expanded:not(:last-of-type)":{borderBottom:o},[`&:last-of-type .${O.summary}`]:{borderBottom:"none"},[`&.Mui-expanded:last-of-type .${O.summary}`]:{borderBottom:o},[`& .${O.summary}`]:{backgroundColor:e.palette.common.white,borderBottom:o,minHeight:28,height:"auto","& .MuiAccordionSummary-content":{margin:"auto"},"&.Mui-expanded":{backgroundColor:"#F8F8F8",minHeight:28,height:"auto"}},[`& .${O.content}`]:{borderTop:"none"}}}),se=styled(j)(({theme:e})=>({fontSize:q,color:e.v2.palette.grey[500],fontWeight:600,lineHeight:`${r}px`})),pe=styled(V)(()=>({fontSize:"10px",fontWeight:500,textTransform:"none",justifyContent:"space-between",padding:"8px 20px"}));function je(e,o){return e?.id===o?.id}var ge=forwardRef(({id:e,label:o,placeholder:c,renderValue:u,IconComponent:m$1,isLoading:me=false,valueAlignment:Se=m,options:xe,value:h,onChange:be,isOptionEqualToValue:fe=je,renderOption:he,renderGroupLabel:ye,open:Ge,onOpenChange:Ce,expandedGroupIndex:P,defaultExpandedGroupIndex:$e=0,onExpandedGroupChange:Le,disabled:p=false,sx:we,menuSx:Te,className:ve},Ee)=>{let k=useRef(null),[F,Ie]=useState(null),[Pe,ke]=useState($e),s=Ge??F!==null,S=F??k.current,Fe=P??Pe,N=useRef(void 0);s&&S&&S.clientWidth>0&&(N.current=S.clientWidth);let Ne=N.current,y=(r,n)=>{Ie(n),Ce?.(r);},Ae=r=>{if(p)return;let n=!s;y(n,n?r.currentTarget:null);},A=()=>{s&&y(false,null);},He=r=>{r.key==="Escape"&&A();},Me=(r,n)=>{let a=n?r:null;P===void 0&&ke(a),Le?.(a);},Be=r=>{r.disabled||(be?.(r),y(false,null));},H=u?.(h)??h?.label??null,M=m$1,B=!!o;return jsx(ze,{onClickAway:A,children:jsxs(te,{ref:Ee,id:e,"data-testid":"GroupedSelect",className:Eb(t.root,ve),sx:we,open:s,disabled:p,tabIndex:p?-1:0,role:"combobox","aria-expanded":s,"aria-haspopup":"listbox",onClick:Ae,onKeyDown:He,children:[jsxs(oe,{ref:k,className:Eb(t.trigger,B&&t.hasLabel),disabled:p,children:[B&&jsx(re,{$disabled:p,children:o}),jsx(le,{className:t.triggerBody,children:jsx(ne,{$placeholder:H==null,$disabled:p,$valueAlignment:Se,children:H??c??""})}),jsx(ie,{className:t.triggerIcon,$disabled:p,children:me?jsx(ca,{}):M?jsx(M,{className:Eb(s&&"MuiSelect-iconOpen")}):jsx(_,{open:s})})]}),jsx(R,{open:s,anchorEl:S,placement:"bottom-start",className:t.menu,sx:Db({width:Ne??S?.clientWidth,marginTop:"4px"},Te),children:jsx(ae,{className:t.groups,onClick:r=>r.stopPropagation(),onMouseDown:r=>r.stopPropagation(),children:(xe??[]).map((r,n)=>jsx(de,{className:t.group,expanded:Fe===n,onChange:a=>Me(n,a),slotProps:{root:{square:true}},label:ye?.(r.group,n)??jsx(se,{variant:"caption",className:t.groupLabel,children:r.group}),content:(r?.options||[]).map((a,We)=>{let Oe=fe(a,h);return jsxs(pe,{className:t.option,startAdornment:null,isDisabled:a.disabled,onClick:()=>Be(a),children:[he?.(a)??a.label,Oe&&jsx(d,{src:Sc,alt:"selected",sx:{width:14,height:10},className:t.optionCheck})]},`${n}-${We}`)})},`${n}`))})})]})})});ge.displayName="GroupedSelect";var Ke=memo(ge);export{t as a,Ke as b};