@tap-payments/os-micro-frontend-shared 0.3.186 → 0.3.188

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 (226) hide show
  1. package/build/_chunks/{chunk-SSBDL6XS.js → chunk-2DC5PMER.js} +1 -1
  2. package/build/_chunks/{chunk-XHZB7V3X.js → chunk-2QOHNFXP.js} +1 -1
  3. package/build/_chunks/{chunk-ZKNRZIOH.js → chunk-2TKE6MVM.js} +1 -1
  4. package/build/_chunks/{chunk-WSRPEYVP.js → chunk-2XKWNE4A.js} +1 -1
  5. package/build/_chunks/{chunk-6S3EAYGY.js → chunk-3Q5OZQPU.js} +1 -1
  6. package/build/_chunks/{chunk-N6XKJTQM.js → chunk-3U4CMVIQ.js} +1 -1
  7. package/build/_chunks/{chunk-BCZZ3EML.js → chunk-42DLESST.js} +1 -1
  8. package/build/_chunks/{chunk-6X2PNNXJ.js → chunk-4CCJR5TN.js} +1 -1
  9. package/build/_chunks/{chunk-H23XSADS.js → chunk-4H7CRAGJ.js} +1 -1
  10. package/build/_chunks/{chunk-2RTUHSFA.js → chunk-4KSZBODD.js} +1 -1
  11. package/build/_chunks/{chunk-RIJFII4O.js → chunk-4QONVXGE.js} +1 -1
  12. package/build/_chunks/{chunk-J5CWFIOG.js → chunk-4TUFZ5TE.js} +1 -1
  13. package/build/_chunks/{chunk-GZPG5K7N.js → chunk-4UDFMCAW.js} +1 -1
  14. package/build/_chunks/{chunk-7TTCD67C.js → chunk-4Y7VUXWK.js} +1 -1
  15. package/build/_chunks/{chunk-MQFXJL5S.js → chunk-54RTNLV2.js} +1 -1
  16. package/build/_chunks/{chunk-Y3Q6TLC6.js → chunk-5B3PDE2S.js} +1 -1
  17. package/build/_chunks/{chunk-T3FR65ER.js → chunk-5HWIH67B.js} +1 -1
  18. package/build/_chunks/{chunk-52PEBFUR.js → chunk-5YBO25PL.js} +1 -1
  19. package/build/_chunks/{chunk-QFRK7YWD.js → chunk-6Z43FXSQ.js} +1 -1
  20. package/build/_chunks/{chunk-ZEF2G4DA.js → chunk-723WTKP3.js} +1 -1
  21. package/build/_chunks/{chunk-A3ABNJCK.js → chunk-75SYJJXU.js} +1 -1
  22. package/build/_chunks/{chunk-4LRR2NPX.js → chunk-7FSJ7HJQ.js} +1 -1
  23. package/build/_chunks/{chunk-4EGODHP2.js → chunk-7KJUI4WS.js} +1 -1
  24. package/build/_chunks/{chunk-A7HSQT3N.js → chunk-7MYMNHTF.js} +1 -1
  25. package/build/_chunks/{chunk-MVUZCNEQ.js → chunk-7YM2GCX3.js} +1 -1
  26. package/build/_chunks/{chunk-YCUQR7YB.js → chunk-7YO3MHIA.js} +1 -1
  27. package/build/_chunks/{chunk-F7GGG3HH.js → chunk-AAYATR56.js} +1 -1
  28. package/build/_chunks/{chunk-JKEM4CW4.js → chunk-ALNHN3O3.js} +1 -1
  29. package/build/_chunks/{chunk-4X43KBH2.js → chunk-AWNFVAW7.js} +1 -1
  30. package/build/_chunks/{chunk-LHJBZZWA.js → chunk-BAQJYU5V.js} +1 -1
  31. package/build/_chunks/{chunk-53VIAIUR.js → chunk-BIO2EJBT.js} +1 -1
  32. package/build/_chunks/{chunk-VJCGM47T.js → chunk-BMS2QU4W.js} +1 -1
  33. package/build/_chunks/{chunk-2YK5VZJK.js → chunk-BR33EMDB.js} +1 -1
  34. package/build/_chunks/{chunk-U7NPENUM.js → chunk-C2FOU777.js} +1 -1
  35. package/build/_chunks/{chunk-7GHEIXXM.js → chunk-CDEAHMMR.js} +1 -1
  36. package/build/_chunks/{chunk-YDVIN2SZ.js → chunk-COOJVNLX.js} +1 -1
  37. package/build/_chunks/{chunk-FE7WQDVI.js → chunk-CQ4IGQSQ.js} +1 -1
  38. package/build/_chunks/{chunk-5L525COT.js → chunk-DFOJBASH.js} +1 -1
  39. package/build/_chunks/{chunk-SLPI5KKB.js → chunk-DGAX7HUY.js} +1 -1
  40. package/build/_chunks/{chunk-DS3M3OAQ.js → chunk-ECEVCQVI.js} +1 -1
  41. package/build/_chunks/{chunk-DOP2R3ZL.js → chunk-EPAZDHMC.js} +1 -1
  42. package/build/_chunks/{chunk-FE3DF2W6.js → chunk-EXF45OIA.js} +1 -1
  43. package/build/_chunks/{chunk-CVC2CTPA.js → chunk-F75FA5MZ.js} +1 -1
  44. package/build/_chunks/{chunk-5324K2OQ.js → chunk-FN6O2SPP.js} +1 -1
  45. package/build/_chunks/{chunk-FVY6VCT6.js → chunk-FYK4YJFM.js} +1 -1
  46. package/build/_chunks/{chunk-EDZWCPS2.js → chunk-G3LCY5M2.js} +1 -1
  47. package/build/_chunks/{chunk-4RSJXR6H.js → chunk-GIMMLEHK.js} +1 -1
  48. package/build/_chunks/{chunk-BSYSM3EM.js → chunk-GJNLLQQ4.js} +1 -1
  49. package/build/_chunks/{chunk-XHRCZTG3.js → chunk-GMKDBZUE.js} +1 -1
  50. package/build/_chunks/{chunk-KCDAETD2.js → chunk-GTARVX4J.js} +1 -1
  51. package/build/_chunks/{chunk-ZSSYCG4H.js → chunk-GVNH5L6C.js} +1 -1
  52. package/build/_chunks/{chunk-MT6ZEU3R.js → chunk-HMXIKTDO.js} +1 -1
  53. package/build/_chunks/{chunk-5DYZGT6I.js → chunk-IB2AXE4G.js} +1 -1
  54. package/build/_chunks/{chunk-7F562LTH.js → chunk-IBISZDVP.js} +1 -1
  55. package/build/_chunks/{chunk-NT53XXH2.js → chunk-ID3KOB3O.js} +1 -1
  56. package/build/_chunks/{chunk-TZA2ZJV3.js → chunk-JNQOE4E7.js} +1 -1
  57. package/build/_chunks/{chunk-ODAONPTJ.js → chunk-JRDLOVN2.js} +1 -1
  58. package/build/_chunks/{chunk-FTHWIMUV.js → chunk-JSFXW2T5.js} +1 -1
  59. package/build/_chunks/{chunk-OUV6WSMS.js → chunk-JTC7EPQL.js} +1 -1
  60. package/build/_chunks/{chunk-BYLC2QEP.js → chunk-K7E7VQC6.js} +1 -1
  61. package/build/_chunks/{chunk-GUMVHBNF.js → chunk-KHFP7V7Z.js} +1 -1
  62. package/build/_chunks/{chunk-CLI4IM4O.js → chunk-L6FVX4JA.js} +1 -1
  63. package/build/_chunks/{chunk-BQGQQ2MC.js → chunk-L7UCO3DZ.js} +1 -1
  64. package/build/_chunks/{chunk-RNPTXIIZ.js → chunk-LLEGWG6Q.js} +1 -1
  65. package/build/_chunks/{chunk-W34T76SE.js → chunk-MR7E7S3Z.js} +1 -1
  66. package/build/_chunks/{chunk-HGHJ6KBD.js → chunk-MRFOSMBQ.js} +1 -1
  67. package/build/_chunks/{chunk-DM4TRJTT.js → chunk-NOSXWNRT.js} +1 -1
  68. package/build/_chunks/{chunk-MN3K3WSB.js → chunk-OBBOIKJ2.js} +1 -1
  69. package/build/_chunks/{chunk-YDPFLSRM.js → chunk-OPRG5H25.js} +1 -1
  70. package/build/_chunks/{chunk-MSFGEYUK.js → chunk-OWCVVQWF.js} +1 -1
  71. package/build/_chunks/{chunk-OXCLLQO3.js → chunk-P6AANDMG.js} +1 -1
  72. package/build/_chunks/{chunk-WFK66UV6.js → chunk-PHQKSCFX.js} +1 -1
  73. package/build/_chunks/chunk-PLMJIRXJ.js +1 -0
  74. package/build/_chunks/{chunk-LOQ3FEOU.js → chunk-PQSELTNR.js} +1 -1
  75. package/build/_chunks/{chunk-IGWVAC3M.js → chunk-PXE6WK3D.js} +1 -1
  76. package/build/_chunks/{chunk-4ZGXC7BM.js → chunk-Q4Y4LBX7.js} +1 -1
  77. package/build/_chunks/{chunk-HHUVMRYO.js → chunk-QXHIDHUU.js} +1 -1
  78. package/build/_chunks/{chunk-V23KIM4X.js → chunk-R32QZGPK.js} +1 -1
  79. package/build/_chunks/chunk-SV3TAH6C.js +1 -0
  80. package/build/_chunks/{chunk-KTTIOTRB.js → chunk-TAKHLPXX.js} +1 -1
  81. package/build/_chunks/{chunk-VILJCT25.js → chunk-TZ5FU2AJ.js} +1 -1
  82. package/build/_chunks/{chunk-BSPMYA76.js → chunk-U65WWVD6.js} +1 -1
  83. package/build/_chunks/{chunk-N76FMC7D.js → chunk-UZSTD2CE.js} +1 -1
  84. package/build/_chunks/{chunk-VLFYYVGE.js → chunk-VAHQKZXS.js} +1 -1
  85. package/build/_chunks/{chunk-LNCQFUAI.js → chunk-VEF6ESUZ.js} +1 -1
  86. package/build/_chunks/{chunk-2OCEVAZN.js → chunk-VWIY6RR5.js} +1 -1
  87. package/build/_chunks/{chunk-6I4UEKWG.js → chunk-W42Z4TFL.js} +1 -1
  88. package/build/_chunks/{chunk-CGK5VR6O.js → chunk-WBMN7RUZ.js} +1 -1
  89. package/build/_chunks/{chunk-FH3OCBAM.js → chunk-WHXHVOBY.js} +1 -1
  90. package/build/_chunks/{chunk-CIGJVGNL.js → chunk-WT7LLT5P.js} +1 -1
  91. package/build/_chunks/{chunk-KQ4NYBTL.js → chunk-YABQXVHX.js} +1 -1
  92. package/build/_chunks/{chunk-6BWCSYU4.js → chunk-YEDSUHFZ.js} +1 -1
  93. package/build/_chunks/{chunk-OK75VWGZ.js → chunk-YKKS24ES.js} +2 -2
  94. package/build/_chunks/{chunk-QX4JO7AK.js → chunk-YS6IXKH4.js} +1 -1
  95. package/build/_chunks/{chunk-O2EJP3XL.js → chunk-YTYL4BRQ.js} +1 -1
  96. package/build/_chunks/chunk-ZEHPQA26.js +2 -0
  97. package/build/_chunks/{chunk-W2KPPTZL.js → chunk-ZYPVGU62.js} +1 -1
  98. package/build/components/AccountDropdown/index.js +1 -1
  99. package/build/components/ActionMenu/index.js +1 -1
  100. package/build/components/ActionsDropdownMenu/index.js +1 -1
  101. package/build/components/ActiveFilterChip/index.js +1 -1
  102. package/build/components/ActivityAreaChart/index.js +1 -1
  103. package/build/components/AmountConversionFilter/index.js +1 -1
  104. package/build/components/AmountInput/index.js +1 -1
  105. package/build/components/AmountSlider/index.js +1 -1
  106. package/build/components/AmountStatusChip/index.js +1 -1
  107. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  108. package/build/components/AppServices/index.js +1 -1
  109. package/build/components/AppServicesBar/index.js +1 -1
  110. package/build/components/AppWindowWrapper/index.js +1 -1
  111. package/build/components/AuthenticationTypeChip/index.js +1 -1
  112. package/build/components/Autocomplete/index.js +1 -1
  113. package/build/components/BetaBanner/index.js +1 -1
  114. package/build/components/BrandLogo/index.js +1 -1
  115. package/build/components/Button/index.js +1 -1
  116. package/build/components/Calender/index.js +1 -1
  117. package/build/components/CardEmptyState/index.js +1 -1
  118. package/build/components/Chip/index.js +1 -1
  119. package/build/components/ChipStack/index.js +1 -1
  120. package/build/components/ColorPicker/index.js +1 -1
  121. package/build/components/ColumnViews/index.js +1 -1
  122. package/build/components/ConfirmDialog/index.js +1 -1
  123. package/build/components/CountryFilter/index.js +1 -1
  124. package/build/components/CountryFlag/index.js +1 -1
  125. package/build/components/CurrencyAmount/index.js +1 -1
  126. package/build/components/CurrencyFilter/index.js +1 -1
  127. package/build/components/CurrencySymbol/index.js +1 -1
  128. package/build/components/CustomBackdrop/index.js +1 -1
  129. package/build/components/Customer/index.js +1 -1
  130. package/build/components/DateFilter/index.js +1 -1
  131. package/build/components/DeviceIcon/index.js +1 -1
  132. package/build/components/Discount/index.js +1 -1
  133. package/build/components/DisplayAmount/index.js +1 -1
  134. package/build/components/Dropdown2/index.js +1 -1
  135. package/build/components/DropdownButton/index.js +1 -1
  136. package/build/components/DropdownMenu/index.js +1 -1
  137. package/build/components/Error/index.js +1 -1
  138. package/build/components/ErrorToast/index.js +1 -1
  139. package/build/components/ExpandableSideBar/index.js +1 -1
  140. package/build/components/FileInputPreview/index.js +1 -1
  141. package/build/components/FilePreview/index.js +1 -1
  142. package/build/components/FileUpload/index.js +1 -1
  143. package/build/components/FileUploader/index.js +1 -1
  144. package/build/components/FilterDropdown/index.js +1 -1
  145. package/build/components/Filters/index.js +1 -1
  146. package/build/components/FlippingCard/index.js +1 -1
  147. package/build/components/HeatMap/index.js +1 -1
  148. package/build/components/Icon/index.js +1 -1
  149. package/build/components/IconWithBadge/index.js +1 -1
  150. package/build/components/Input/index.js +1 -1
  151. package/build/components/InputBase/index.js +1 -1
  152. package/build/components/InputNumber/index.js +1 -1
  153. package/build/components/Inputs/index.js +1 -1
  154. package/build/components/JSONViewer/index.js +1 -1
  155. package/build/components/LanguageDropdown/index.js +1 -1
  156. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  157. package/build/components/ListColumnFilter/index.js +1 -1
  158. package/build/components/ListHeader/index.js +1 -1
  159. package/build/components/ListLayout/index.js +1 -1
  160. package/build/components/Loader/index.js +1 -1
  161. package/build/components/MFWidgetLoader/index.js +1 -1
  162. package/build/components/MaskedText/index.js +1 -1
  163. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  164. package/build/components/MerchantLogo/index.js +1 -1
  165. package/build/components/MerchantsDropdown/index.js +1 -1
  166. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  167. package/build/components/MultiSelectWithSearch/index.js +1 -1
  168. package/build/components/NestedDropdown/index.js +1 -1
  169. package/build/components/NoInternet/index.js +1 -1
  170. package/build/components/OpenFileInNewTab/index.js +1 -1
  171. package/build/components/PartnersFilter/index.js +1 -1
  172. package/build/components/PaymentSourceFilter/index.js +1 -1
  173. package/build/components/PhoneFilter/index.js +1 -1
  174. package/build/components/ProgressRing/index.js +1 -1
  175. package/build/components/RFH/index.js +1 -1
  176. package/build/components/RadioGroup/index.js +1 -1
  177. package/build/components/RangeCalender/index.js +1 -1
  178. package/build/components/RatingCount/index.js +1 -1
  179. package/build/components/ReceiptsViewer/index.js +1 -1
  180. package/build/components/ReferenceTypeFilter/index.js +1 -1
  181. package/build/components/RemoteFallback/index.js +1 -1
  182. package/build/components/ResizableHeightInput/index.js +1 -1
  183. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  184. package/build/components/SalesChannelFilter/index.js +1 -1
  185. package/build/components/SearchButton/index.js +1 -1
  186. package/build/components/SearchListInput/index.js +1 -1
  187. package/build/components/SelectDropdown/index.js +1 -1
  188. package/build/components/SelectWithSearch/index.js +1 -1
  189. package/build/components/StatusBar/index.js +1 -1
  190. package/build/components/StatusButton/index.js +1 -1
  191. package/build/components/StatusChip/index.js +1 -1
  192. package/build/components/StatusChipWithCopy/index.js +1 -1
  193. package/build/components/StatusFilter/index.js +1 -1
  194. package/build/components/StatusGroupChips/index.js +1 -1
  195. package/build/components/StatusIcons/index.js +1 -1
  196. package/build/components/StatusLabel/index.js +1 -1
  197. package/build/components/TableCells/index.js +1 -1
  198. package/build/components/TableReports/index.js +1 -1
  199. package/build/components/Timepicker/index.js +1 -1
  200. package/build/components/Toaster/index.js +1 -1
  201. package/build/components/ToggleView/index.js +1 -1
  202. package/build/components/Toolbar/index.js +1 -1
  203. package/build/components/ToolbarIcon/index.js +1 -1
  204. package/build/components/TooltipChip/index.js +1 -1
  205. package/build/components/TreeDropdown/index.js +1 -1
  206. package/build/components/VAT/index.js +1 -1
  207. package/build/components/VerificationIcon/index.js +1 -1
  208. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  209. package/build/components/VirtualTables/index.js +1 -1
  210. package/build/components/Widget/index.js +1 -1
  211. package/build/components/Window/index.js +1 -1
  212. package/build/components/WindowAppIcon/index.js +1 -1
  213. package/build/components/WindowSideBar/index.js +1 -1
  214. package/build/components/index.js +1 -1
  215. package/build/components/primitives/index.js +1 -1
  216. package/build/constants/assets.d.ts +1 -0
  217. package/build/constants/index.js +1 -1
  218. package/build/constants/timezones.d.ts +4 -2
  219. package/build/hooks/index.js +1 -1
  220. package/build/index.js +1 -1
  221. package/build/utils/index.js +1 -1
  222. package/build/utils/timezone.d.ts +13 -2
  223. package/package.json +2 -1
  224. package/build/_chunks/chunk-2SKLD6QR.js +0 -1
  225. package/build/_chunks/chunk-MENS7KNR.js +0 -1
  226. package/build/_chunks/chunk-UU2S7KEK.js +0 -2
@@ -1,2 +1,2 @@
1
- import {kc,yc,ab,Zb,jc,zc,xa as xa$1}from'./chunk-2SKLD6QR.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import qe from'@mui/material/Box';import Ha,{circularProgressClasses}from'@mui/material/CircularProgress';import Da from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Oo from'@mui/material/SvgIcon';import Ga from'@mui/material/Checkbox';import Xa from'@mui/material/FormControlLabel';import Qa from'@mui/material/Switch';import ss from'@mui/material/Typography';import ys from'@mui/material/Radio';import Bs from'@mui/material/Tooltip';import Rs from'@mui/material/Skeleton';import Os from'@mui/material/Avatar';import Ys from'@mui/material/Divider';import tn from'@mui/material/Collapse';import {createPortal}from'react-dom';import xn from'@mui/material/Backdrop';import On,{SliderThumb}from'@mui/material/Slider';import _n from'@mui/material/FormControl';import qn from'@mui/material/InputLabel';import Jn from'@mui/material/Input';import ai from'@mui/material/InputBase';import pi from'@mui/material/Accordion';import di from'@mui/material/AccordionDetails';import ci from'@mui/material/AccordionSummary';import xi from'@mui/material/Popper';import ki from'@mui/material/Dialog';import wi from'@mui/material/DialogActions';import Ii from'@mui/material/DialogContent';import Bi from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import rl from'@mui/material/Stack';var M="os-shared-Button",N={root:`${M}-root`,content:`${M}-content`,startIcon:`${M}-startIcon`,endIcon:`${M}-endIcon`,icon:`${M}-icon`,loading:`${M}-loading`,loadingSpinner:`${M}-loadingSpinner`},Ce={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"}},he={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:30,minWidth:30,height:30,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},be={sm:12,md:12,lg:14};var ve=styled(Da,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"&&o!=="$isIconOnly"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=o.v2.palette,{paddingX:p,paddingY:d,...c}=Ce[t],f=he[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(6),borderRadius:o.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:`${o.v2.spacing(d)} ${o.v2.spacing(p)}`,fontWeight:o.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...e==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...e==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...e==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...e==="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}}}),J=styled("span")(({theme:o})=>{let e=o.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:e,height:e}});var ke=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...f},y)=>{let m=i!=null;return jsxs(ve,{ref:y,className:kc(N.root,d),$variant:e,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,"data-testid":"Button",sx:c,...f,children:[jsx(qe,{component:"span",className:N.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(J,{className:N.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(J,{className:N.startIcon,children:a}),o,s&&jsx(J,{className:N.endIcon,children:s})]})}),r&&jsx(J,{className:N.loading,sx:{position:"absolute"},children:jsx(Ha,{className:N.loadingSpinner,size:be[t],color:"inherit"})})]})});ke.displayName="Button";var we=memo(ke);var Oa="os-shared-Icon",lo={root:`${Oa}-root`};var Ie=styled("img")(({theme:o})=>({width:o.v2.spacing(16),height:o.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Be=forwardRef(({className:o,sx:e,...t},r)=>jsx(Ie,{className:kc(lo.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));Be.displayName="Icon";var Te=memo(Be);var Vo="os-shared-Checkbox",L={root:`${Vo}-root`,control:`${Vo}-control`,label:`${Vo}-label`};var Pe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?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})]})},$e=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:o?a[50]:r.white,stroke:o?a[200]:a[500],strokeWidth:"1.2"})})},Me=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var ze=styled(Ga)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),De=styled(Xa)(({theme:o})=>{let{base:e,grey:t}=o.v2.palette;return {marginLeft:0,gap:o.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Re=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(ze,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Pe,{disabled:t}),icon:jsx($e,{disabled:t}),indeterminateIcon:jsx(Me,{disabled:t}),"data-testid":"Checkbox",className:kc(o?L.control:L.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(De,{className:kc(L.root,a),sx:r,control:p,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:L.label}}}):p});Re.displayName="Checkbox";var Ae=memo(Re);var Ja="os-shared-Switch",po={root:`${Ja}-root`};var We=styled(Qa)(({theme:o,disabled:e})=>{let{base:t,grey:r,success:a}=o.v2.palette;return {width:28,height:16,padding:0,borderRadius:o.v2.radius(8),opacity:e?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:o.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:e?"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:o.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:o.transitions.create(["background-color"],{duration:300})}}});var Ee=forwardRef(({className:o,sx:e,...t},r)=>jsx(We,{ref:r,className:kc(po.root,o),sx:e,"data-testid":"Switch",disableRipple:true,...t}));Ee.displayName="Switch";var He=memo(Ee);var as="os-shared-Typography",co={root:`${as}-root`},mo="body.default.regular";var is=o=>o!=null&&typeof o=="object"&&"fontFamily"in o&&"fontSize"in o&&"fontWeight"in o;function ls(o,e){try{let t=e.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${e}`);return r[a]},o);if(!is(t))throw new TypeError(`Invalid typography textVariant: ${e}`);return t}catch(t){return console.warn(t),o.body.default.regular}}function ps(o,e,t){return e===void 0?t:typeof e=="number"?e:{light:o.fontWeightLight,regular:o.fontWeightRegular,medium:o.fontWeightMedium,semibold:o.fontWeightBold,bold:o.fontWeightBolder}[e]??t}var Ve=styled(ss,{shouldForwardProp:o=>o!=="$textVariant"&&o!=="$weight"})(({theme:o,$textVariant:e=mo,$weight:t})=>{let{base:r}=o.v2.palette,a=ls(o.v2.typography.textVariants,e);return {color:r.black,...a,fontWeight:ps(o.v2.typography,t,a.fontWeight)}});var Oe=forwardRef(({textVariant:o=mo,variant:e="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(Ve,{ref:i,className:kc(co.root,r),sx:a,"data-testid":"Typography",...s,variant:e,$textVariant:o,$weight:t}));Oe.displayName="Typography";var Ze=memo(Oe);var fs="os-shared-RadioButton";var fo={root:`${fs}-root`};var Ue=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=o?"#BDC1CC":r[500];return jsxs(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,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}})]})},Ge=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=o?a[50]:r.white,i=o?a[200]:a[500];return jsx(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,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 Xe=styled(ys)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var Ye=forwardRef(({disabled:o,sx:e,className:t,...r},a)=>jsx(Xe,{ref:a,disableRipple:true,disabled:o,checkedIcon:jsx(Ue,{disabled:o}),icon:jsx(Ge,{disabled:o}),"data-testid":"RadioButton",className:kc(fo.root,t),sx:e,...r}));Ye.displayName="RadioButton";var _e=memo(Ye);var yo="os-shared-CircularProgress",F={root:`${yo}-root`,progress:`${yo}-progress`,labelOverlay:`${yo}-labelOverlay`,labelText:`${yo}-labelText`};var Je=styled(Ha)(({theme:o})=>{let{brand:e}=o.v2.palette;return {color:"#147DC5",background:alpha(e[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),Qe=styled(qe)(()=>({position:"relative",display:"inline-flex"})),ot=styled(qe)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),et=styled(ss)(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightBolder??700,color:"#3B4152"}));var tt=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},i)=>{let n=o==="determinate"&&e;return jsxs(Qe,{className:kc(F.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Je,{ref:i,variant:o,value:t,className:F.progress,...s}),n&&jsx(ot,{className:F.labelOverlay,children:jsx(et,{className:F.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});tt.displayName="CircularProgress";var rt=memo(tt);var z="os-shared-Tooltip",h={popper:`${z}-popper`,tooltip:`${z}-tooltip`,arrow:`${z}-arrow`,content:`${z}-content`,title:`${z}-title`,supportingText:`${z}-supportingText`,wrapper:`${z}-wrapper`};var at=styled(({className:o,...e})=>createElement(Bs,{...e,classes:{popper:kc(h.popper,o),tooltip:h.tooltip,arrow:h.arrow}}))(({theme:o})=>{let{base:e,grey:t}=o.v2.palette,r=e.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${h.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${h.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:o.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:o.v2.spacing(6),borderRadius:o.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),st=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:o.v2.spacing(6),maxWidth:296,width:"100%"})),nt=styled("div",{shouldForwardProp:o=>o!=="$hasSupportingText"})(({theme:o,$hasSupportingText:e})=>{let{grey:t}=o.v2.palette;return {margin:0,fontSize:12,fontWeight:e?600:400,lineHeight:e?1:1.2,color:e?t[700]:alpha(t[700],.77),width:e?"100%":void 0}}),it=styled("div")(({theme:o})=>{let{grey:e}=o.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:e[500],width:"100%",whiteSpace:"pre-wrap"}});function Ms(o){return o!=null&&o!==false&&o!==""}function Ls(o){return !!o||o===0}function Fs(o,e){let t=Ms(e);if(!Ls(o)&&!t)return null;let r=jsx(nt,{className:h.title,$hasSupportingText:t,children:o});return t?jsxs(st,{className:h.content,children:[r,jsx(it,{className:h.supportingText,children:e})]}):r}function lt({className:o,title:e,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(at,{className:o,title:Fs(e,t),placement:r,arrow:true,sx:i,...n,children:jsx(qe,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(h.wrapper,p),...d,children:a})})}lt.displayName="Tooltip";var pt=memo(lt);var Ds="os-shared-Skeleton",ho={root:`${Ds}-root`};var dt=styled(Rs)(()=>({}));var ct=forwardRef(({className:o,sx:e,variant:t="rounded",height:r=16,...a},s)=>jsx(dt,{ref:s,className:kc(ho.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));ct.displayName="Skeleton";var mt=memo(ct);var Vs="os-shared-Avatar",bo={root:`${Vs}-root`},So="xs",vo="teal",ft={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"}},ut={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 js(o){let{from:e,to:t}=ft[o];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${e} 0%, ${t} 100%)`}var yt=styled(Os,{shouldForwardProp:o=>!["$size","$color"].includes(o)})(({theme:o,$size:e=So,$color:t=vo})=>{let{dimension:r,fontSize:a}=ut[e],{base:s}=o.v2.palette,i=js(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var gt=forwardRef(({className:o,sx:e,size:t=So,color:r=vo,...a},s)=>jsx(yt,{ref:s,className:kc(bo.root,o),sx:e,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));gt.displayName="Avatar";var xt=memo(gt);var Xs="os-shared-Divider",No={root:`${Xs}-root`};function qs(o,e){let{grey:t,border:r}=e.v2.palette;return o==="subtle"?r.subtle:t[100]}var Ct=styled(Ys,{shouldForwardProp:o=>o!=="$type"})(({theme:o,$type:e="default",orientation:t="horizontal"})=>({borderColor:qs(e,o),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var ht=forwardRef(({className:o,sx:e,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Ct,{ref:s,className:kc(No.root,o),sx:e,"data-testid":"Divider",orientation:t,$type:r,...a}));ht.displayName="Divider";var bt=memo(ht);var en="os-shared-Collapse",ko={root:`${en}-root`};var St=styled(tn)(()=>({}));var vt=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(St,{ref:i,className:kc(ko.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));vt.displayName="Collapse";var Nt=memo(vt);var ln="os-shared-Badge",wo={root:`${ln}-root`},Io="default",kt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function cn(o,e){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=e.v2.palette;if(o==="highlight")return p.brand;let d=kt[o];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[o]??t.white)}function mn(o,e){let{base:t}=e.v2.palette;return o==="inactive"?t.black:(t.white)}var It=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e=Io,$compact:t,$round:r,$pointer:a})=>{let s=cn(e,o);return {paddingBlock:o.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":o.v2.spacing(4),borderRadius:t?o.v2.radius(4):r?o.v2.radius(16):o.v2.radius(48),background:s,color:mn(e,o),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Bt=forwardRef(({className:o,sx:e,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??Io;return jsx(It,{ref:d,className:kc(wo.root,o),sx:e,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Bt.displayName="Badge";var Tt=memo(Bt);var gn="os-shared-Backdrop",Bo={root:`${gn}-root`};var Pt=styled(xn,{shouldForwardProp:o=>o!=="$hasBlur"})(({theme:o,$hasBlur:e=false})=>{let t=e?o.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var $t=forwardRef(({className:o,sx:e,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Pt,{open:t,$hasBlur:r,ref:n,className:kc(Bo.root,o),sx:e,"data-testid":"Backdrop",onClick:p,...i}),document.body)});$t.displayName="Backdrop";var Mt=memo($t);var To="os-shared-CopyButton",B={root:`${To}-root`,icon:`${To}-icon`,copyIcon:`${To}-copyIcon`,copiedIcon:`${To}-copiedIcon`};var zt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Oo,{sx:{height:12.6,width:13},...o,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Dt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Oo,{sx:{height:12.6,width:13},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var At=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Uo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 200ms ease"}));var Wt=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=2e3,icon:a=jsx(zt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),ab(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(At,{ref:n,className:kc(B.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(Uo,{className:kc(B.icon,B.copyIcon),$visible:!p,children:a}),jsx(Uo,{className:kc(B.icon,B.copiedIcon),$visible:p,children:jsx(Dt,{})})]})});Wt.displayName="CopyButton";var Et=memo(Wt);var Go="os-shared-ProgressBar",j={root:`${Go}-root`,fill:`${Go}-fill`,text:`${Go}-text`};var Vt=styled(qe,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>{let{base:r}=o.v2.palette;return {width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:o.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?o.v2.spacing(2):o.v2.spacing(0),...e===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:e>=10?"40px":"36px"}}}),Ot=styled(qe,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t}=o.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:o.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:alpha(t.black,0)}}}),Zt=styled(ss,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t,grey:r}=o.v2.palette;return {fontSize:"8px",fontWeight:o.typography.fontWeightBolder??700,color:t.white,padding:`${o.v2.spacing(2)} ${o.v2.spacing(4)}`,...e===0&&{color:alpha(r[500],.5)}}});var Kt=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Vt,{ref:r,className:kc(j.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ot,{className:j.fill,$value:t,children:jsxs(Zt,{className:j.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Kt.displayName="ProgressBar";var Ut=memo(Kt);var Mo="os-shared-Chip",k={root:`${Mo}-root`,text:`${Mo}-text`,copyButton:`${Mo}-copyButton`,icon:`${Mo}-icon`},Gt={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 _t=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Oo,{sx:{height:"10px"},...o,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},qt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Oo,{sx:{height:"10px"},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function zn(o,e){let t=Gt[o];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:e.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:e.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:e.v2.spacing(t.paddingInline)},borderRadius:e.v2.radius(t.borderRadius)}}var Qt=styled(qe,{shouldForwardProp:o=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=o.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:o.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...zn(e,o),...e==="text"&&t&&{gap:o.v2.spacing(6),paddingInlineStart:o.v2.spacing(5),paddingInlineEnd:o.v2.spacing(8)},...r&&{gap:o.v2.spacing(4)},[`& .${k.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"}}}}),Yo=styled(qe)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),or=styled("span",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:o?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),_o=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 150ms ease"}));var tr=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[y,m]=useState(false),u=!!(t&&n),C=r!=null&&!u,g=useCallback(v=>{v.stopPropagation(),n&&(ab(n),m(true),setTimeout(()=>m(false),2e3));},[n]),S=useMemo(()=>C?jsx("span",{className:k.icon,children:r}):null,[C,r]),$=useMemo(()=>{if(t){let v=u&&typeof t=="string"?Zb(t):void 0;return jsx(Yo,{className:k.text,"data-is-arabic":v,children:t})}return C?null:jsx(Yo,{className:k.text,children:p})},[t,u,C,p]),x=useMemo(()=>u?jsxs(or,{className:k.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(_o,{$visible:!y,children:jsx(_t,{})}),jsx(_o,{$visible:y,children:jsx(qt,{})})]}):null,[u,y,g]);return jsxs(Qt,{ref:f,"data-testid":"Chip",className:kc(k.root,o,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},e),$variant:a,$hasIcon:C,$hasCopy:u,$isSelected:i,$disableAnimation:d,...c,children:[S,$,x]})});tr.displayName="Chip";var rr=memo(tr);var Jo="os-shared-Slider",T={root:`${Jo}-root`,thumb:`${Jo}-thumb`,thumbIcon:`${Jo}-thumbIcon`};var ar=o=>{let{v2:e}=useTheme(),{grey:t}=e.palette;return jsx(Oo,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...o,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var sr=styled(On)(({theme:o})=>{let{brand:e,base:t}=o.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:e[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function Xn({children:o,className:e,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,e),...t,children:[o,jsx(ar,{className:T.thumbIcon})]})}var nr=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((y,m)=>{n(m);},[n]);return jsx(sr,{ref:c,className:kc(T.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:Xn,...p}})});nr.displayName="Slider";var ir=memo(nr);var Qo="os-shared-Input",U={root:`${Qo}-root`,label:`${Qo}-label`,input:`${Qo}-input`},pr={sm:28,md:32,labelled:40};var dr=(o,e)=>pr[o?"labelled":e],cr=styled(Jn,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>{let{base:a,grey:s}=o.v2.palette;return {height:dr(e,r),padding:e?o.v2.spacing(8):`0 ${o.v2.spacing(8)}`,border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:a.black,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:s[500]},"& input":{paddingTop:o.v2.spacing(4),paddingBottom:o.v2.spacing(4)},"& input::placeholder":{color:s[500],fontWeight:o.typography.fontWeightRegular,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:a.black,caretColor:a.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:`${o.v2.spacing(10)} !important`,lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& 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}}}}),mr=styled(qn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"11px",color:`${e[500]} !important`}}),fr=styled(_n,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>{let{grey:i,base:n,error:p}=o.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:dr(a,s),margin:0,border:`1px solid ${t?"#FF3D00":i[100]}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?"#FF3D00":i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.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, -1.5px) scale(0.75) !important",color:`${i[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var yr=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:i=false,type:n,id:p,className:d,sx:c,onKeyDown:f,onWheel:y,...m},u)=>{let C=!!o,g=n==="number",S=x=>{let v=x.metaKey||x.ctrlKey||x.altKey,Ho=x.key.length===1;(["e","E","+","-"].includes(x.key)||xa$1()&&Ho&&!v&&!/^[0-9.]$/.test(x.key))&&x.preventDefault(),f?.(x);},$=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(fr,{className:kc(U.root,d),sx:c,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:e,children:[C&&jsx(mr,{className:U.label,htmlFor:p,children:o}),jsx(cr,{id:p,inputRef:u,className:U.input,type:n,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:i,$size:e,onKeyDown:g?S:f,onWheel:g?$:y,...m})]})});yr.displayName="Input";var gr=memo(yr);var ee="os-shared-Textarea",G={root:`${ee}-root`,label:`${ee}-label`,textarea:`${ee}-textarea`},X=3;var xr=styled(ai,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=X})=>{let{base:r,grey:a}=o.v2.palette;return {border:"none",borderRadius:"inherit",padding:e?`${o.v2.spacing(32)} ${o.v2.spacing(8)} ${o.v2.spacing(8)}`:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...e&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:e?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:o.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"}}}),Cr=styled(qn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",fontWeight:o.typography.fontWeightMedium,color:`${e[500]} !important`}}),hr=styled(_n,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=X})=>{let{grey:i,base:n,error:p}=o.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-X)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:o.v2.spacing(2),padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Sr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=X,maxRows:i,id:n,className:p,sx:d,required:c,...f},y)=>{let m=!!o;return jsxs(hr,{className:kc(G.root,p),sx:d,error:e,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(Cr,{className:G.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:o}),jsx(xr,{id:n,inputRef:y,className:G.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:m,$minRows:s,...f})]})});Sr.displayName="Textarea";var vr=memo(Sr);var R="os-shared-Accordion",w={root:`${R}-root`,summary:`${R}-summary`,content:`${R}-content`,labelStartAdornment:`${R}-labelStartAdornment`,labelContent:`${R}-labelContent`,labelEndAdornment:`${R}-labelEndAdornment`,expandIcon:`${R}-expandIcon`};var kr=()=>{let{v2:o}=useTheme(),{base:e}=o.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:e.black,stroke:e.black,strokeWidth:"0.1"})})};var Ir=styled(pi)(({theme:o,square:e})=>{let{grey:t,base:r}=o.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!e&&{borderRadius:o.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Br=styled(ci)(({theme:o})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:o.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:o.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:o.v2.spacing(8)}})),Tr=styled(di)(({theme:o})=>{let{grey:e}=o.v2.palette;return {padding:0,borderTop:`1px solid ${e[100]}`}}),Pr=styled(qe)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),$r=styled(qe)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Fr=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...y},m)=>{let u=o!==void 0,[C,g]=useState(e),S=u?o:C,$=(pl,fe)=>{u||g(fe),t?.(fe);},{showArrow:x=true,...v}=n.label??{},{className:Ho,sx:Ma,...La}=n.root??{},Fa=d??(x?jsx(Pr,{component:"span",className:w.expandIcon,children:jsx(kr,{})}):null),za=jsxs(Fragment,{children:[s!=null&&jsx(qe,{component:"span",className:w.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx($r,{component:"span",className:w.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(qe,{component:"span",className:w.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Ir,{ref:m,"data-testid":"Accordion",disabled:p,expanded:S,onChange:$,className:kc(w.root,c,Ho),sx:jc(f??{},Ma),...La,...y,children:[jsx(Br,{className:w.summary,expandIcon:Fa,"aria-expanded":S,...v,children:za}),jsx(Tr,{className:w.content,...n.content,children:a})]})});Fr.displayName="Accordion";var zr=memo(Fr);var Dr="os-shared-Menu",eo={popper:`${Dr}-popper`,panel:`${Dr}-panel`};var Ar=styled(xi)({}),Wr=styled(qe,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>{let{grey:t,base:r}=o.v2.palette;return {borderRadius:o.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:o.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:e?'""':"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 Hr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:u,className:C,sx:g,...S}=s??{},$=useCallback(v=>{f((v.currentTarget.scrollTop??0)>0),u?.(v);},[u]),x=kc(eo.panel,C,"MuiPopper-dropdown");return jsx(Ar,{ref:d,className:kc(eo.popper,i),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(Wr,{$showShadow:m,onScroll:$,className:x,sx:jc(n??{},g),...S,children:t})})});Hr.displayName="Menu";var Vr=memo(Hr);var to="os-shared-Dialog",P={root:`${to}-root`,title:`${to}-title`,divider:`${to}-divider`,content:`${to}-content`,actions:`${to}-actions`};var Or=styled(ki,{shouldForwardProp:o=>o!=="$hasBlurBackdrop"})(({theme:o,$hasBlurBackdrop:e})=>{let{base:t}=o.v2.palette,r=e?o.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:o.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...e&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),Zr=styled(Bi)(({theme:o})=>{let{base:e}=o.v2.palette;return {padding:`${o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(12)}`,fontSize:"13px",fontWeight:o.typography.fontWeightBolder,lineHeight:"normal",color:e.black,whiteSpace:"nowrap"}}),jr=styled("hr")(({theme:o})=>{let{grey:e}=o.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${e[100]}`,margin:0,width:"100%",flexShrink:0}}),Kr=styled(Ii,{shouldForwardProp:o=>o!=="$hasHeading"})(({theme:o,$hasHeading:e})=>{let{grey:t}=o.v2.palette;return {padding:`${e?o.v2.spacing(12):o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,fontSize:"12px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),Ur=styled(wi)(({theme:o})=>({padding:`0 ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,gap:o.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var Xr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(Or,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:kc(P.root,i),sx:n,...p,children:[o?jsxs(Fragment,{children:[jsx(Zr,{className:P.title,children:o}),jsx(jr,{"aria-hidden":true,className:P.divider})]}):null,t!=null?jsx(Kr,{className:P.content,$hasHeading:!!o,children:t}):null,e?jsx(Ur,{className:P.actions,children:e}):null]}));Xr.displayName="Dialog";var Yr=memo(Xr);var re="os-shared-MenuItem",W={root:`${re}-root`,indicator:`${re}-indicator`,disabled:`${re}-disabled`},E={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var qr=()=>{let{v2:o}=useTheme(),{brand:e,base:t}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},Jr=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),Qr=()=>{let{v2:o}=useTheme(),{brand:e}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e[500],stroke:e[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ta=styled(qe,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>{let{base:t}=o.v2.palette;return {padding:o.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:o.v2.spacing(8),textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:o.typography.subtitle1.fontSize,opacity:e?.5:1,color:t.black}}),ae=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Di(o,e){return e?E.indeterminate:o?E.checked:E.unchecked}var Ri={[E.unchecked]:Jr,[E.checked]:qr,[E.indeterminate]:Qr};function Ai(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(ae,{className:W.indicator,"aria-hidden":true,children:o});let r=Di(e,t),a=Ri[r];return jsx(ae,{className:W.indicator,"aria-hidden":true,children:jsx(a,{})})}var ra=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc(W.root,"menu-item",e&&W.disabled,i);return jsxs(ta,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:e?void 0:a,$isDisabled:e,...p,children:[Ai(r,o,t),s]})});ra.displayName="MenuItem";var aa=memo(ra);var sa="os-shared-ToggleButtons",ao={root:`${sa}-root`,button:`${sa}-button`},ne={sm:"sm",md:"md"},so=ne.sm,ie={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function Ei(o,e){let{palette:t,elevation:r}=o.v2;return e?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var la=styled(qe,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e=so})=>{let t=ie[e];return {backgroundColor:o.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:o.v2.spacing(2),borderRadius:o.v2.radius(t.containerRadius)}}),pa=styled(qe,{shouldForwardProp:o=>o!=="$isActive"&&o!=="$size"})(({theme:o,$isActive:e=false,$size:t=so})=>{let r=ie[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:o.v2.radius(2),fontSize:r.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Ei(o,e),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ca({options:o,activeKey:e,onChange:t,size:r=so,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:f,...y}=a??{},m=kc(ao.root,n,c);return jsx(la,{ref:d,id:i,"data-testid":"ToggleButtons",className:m,$size:r,sx:jc(p??{},f),...y,children:o.map(u=>jsx(pa,{className:ao.button,$isActive:e===u.key,$size:r,onClick:()=>t(u.key),...s,children:u.content},u.key))})}var Oi=forwardRef(ca);ca.displayName="ToggleButtons";var ma=memo(Oi);var Zi="os-shared-LazyImage",Do={root:`${Zi}-root`},Ro={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 fa=styled(qe)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ao(o){return o!=null&&o in Ro}var qi=LazyLoadImage,ya=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ao(o));if(useEffect(()=>{if(!Ao(o)){d(false);return}d(true),Ro[o]().finally(()=>{d(false);});},[o]),p)return null;let{className:c,sx:f,style:y,...m}=e??{},u=Ao(o)||!!s||y!=null;return jsx(fa,{component:"span",...m,className:kc(Do.root,c??r),sx:f!=null?jc(a??{},f):a,children:jsx(qi,{...i,ref:n,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:u?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});ya.displayName="LazyImage";var ga=memo(ya);var le="os-shared-FieldFeedback",_={root:`${le}-root`,icon:`${le}-icon`,message:`${le}-message`};var xa=({severity:o="error",...e})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=o==="warning"?r[500]:a[500];return jsx(Oo,{sx:{width:12,height:12},...e,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})})})},Ca=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(Oo,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},ha=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Oo,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",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:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Wo(o,e){let t=e??"error",{brand:r,success:a,error:s,status:i}=o.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var ba=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t,textColor:r}=Wo(o,e);return {display:"flex",alignItems:"flex-start",gap:o.v2.spacing(4),minHeight:"32px",padding:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${o.v2.radius(4)} ${o.v2.radius(4)}`}}),Sa=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=Wo(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),va=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 ol(o){switch(o){case "success":return jsx(Ca,{});case "info":return jsx(ha,{});case "error":case "warning":return jsx(xa,{severity:o})}}var Na=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!zc(e))return null;let i=o;return jsxs(ba,{ref:s,"data-testid":"FieldFeedback",className:kc(_.root,r),sx:a,$feedbackType:i,children:[t??jsx(va,{className:_.icon,children:ol(i)}),jsx(Sa,{className:_.message,$feedbackType:i,children:e})]})});Na.displayName="FieldFeedback";var ka=memo(Na);var tl="os-shared-ScrollLoader",Eo={root:`${tl}-root`};var wa=styled(rl)({overflow:"auto",height:"100%",maxHeight:"100%"});function me(o,e=50){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var Pa=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),y=useRef(o),m=useRef(null);y.current=o;let u=useCallback(()=>{e&&!r&&y.current();},[e,r]),C=useCallback(()=>{let g=m.current;g&&me(g)&&u();},[u]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",C),()=>g.removeEventListener("scroll",C)},[C]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let S=window.setTimeout(()=>{f(true),me(g)&&u();},1e3);return ()=>window.clearTimeout(S)},[t,u,c]),jsx(wa,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:kc(Eo.root,s),sx:i,...p,children:a})});Pa.displayName="ScrollLoader";var $a=memo(Pa);
1
+ import {kc,yc,ab,Zb,jc,zc,xa as xa$1}from'./chunk-PLMJIRXJ.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import qe from'@mui/material/Box';import Ha,{circularProgressClasses}from'@mui/material/CircularProgress';import Da from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Oo from'@mui/material/SvgIcon';import Ga from'@mui/material/Checkbox';import Xa from'@mui/material/FormControlLabel';import Qa from'@mui/material/Switch';import ss from'@mui/material/Typography';import ys from'@mui/material/Radio';import Bs from'@mui/material/Tooltip';import Rs from'@mui/material/Skeleton';import Os from'@mui/material/Avatar';import Ys from'@mui/material/Divider';import tn from'@mui/material/Collapse';import {createPortal}from'react-dom';import xn from'@mui/material/Backdrop';import On,{SliderThumb}from'@mui/material/Slider';import _n from'@mui/material/FormControl';import qn from'@mui/material/InputLabel';import Jn from'@mui/material/Input';import ai from'@mui/material/InputBase';import pi from'@mui/material/Accordion';import di from'@mui/material/AccordionDetails';import ci from'@mui/material/AccordionSummary';import xi from'@mui/material/Popper';import ki from'@mui/material/Dialog';import wi from'@mui/material/DialogActions';import Ii from'@mui/material/DialogContent';import Bi from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import rl from'@mui/material/Stack';var M="os-shared-Button",N={root:`${M}-root`,content:`${M}-content`,startIcon:`${M}-startIcon`,endIcon:`${M}-endIcon`,icon:`${M}-icon`,loading:`${M}-loading`,loadingSpinner:`${M}-loadingSpinner`},Ce={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"}},he={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:30,minWidth:30,height:30,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},be={sm:12,md:12,lg:14};var ve=styled(Da,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"&&o!=="$isIconOnly"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=o.v2.palette,{paddingX:p,paddingY:d,...c}=Ce[t],f=he[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(6),borderRadius:o.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:`${o.v2.spacing(d)} ${o.v2.spacing(p)}`,fontWeight:o.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...e==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...e==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...e==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...e==="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}}}),J=styled("span")(({theme:o})=>{let e=o.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:e,height:e}});var ke=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...f},y)=>{let m=i!=null;return jsxs(ve,{ref:y,className:kc(N.root,d),$variant:e,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,"data-testid":"Button",sx:c,...f,children:[jsx(qe,{component:"span",className:N.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(J,{className:N.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(J,{className:N.startIcon,children:a}),o,s&&jsx(J,{className:N.endIcon,children:s})]})}),r&&jsx(J,{className:N.loading,sx:{position:"absolute"},children:jsx(Ha,{className:N.loadingSpinner,size:be[t],color:"inherit"})})]})});ke.displayName="Button";var we=memo(ke);var Oa="os-shared-Icon",lo={root:`${Oa}-root`};var Ie=styled("img")(({theme:o})=>({width:o.v2.spacing(16),height:o.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Be=forwardRef(({className:o,sx:e,...t},r)=>jsx(Ie,{className:kc(lo.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));Be.displayName="Icon";var Te=memo(Be);var Vo="os-shared-Checkbox",L={root:`${Vo}-root`,control:`${Vo}-control`,label:`${Vo}-label`};var Pe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?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})]})},$e=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:o?a[50]:r.white,stroke:o?a[200]:a[500],strokeWidth:"1.2"})})},Me=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var ze=styled(Ga)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),De=styled(Xa)(({theme:o})=>{let{base:e,grey:t}=o.v2.palette;return {marginLeft:0,gap:o.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Re=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(ze,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Pe,{disabled:t}),icon:jsx($e,{disabled:t}),indeterminateIcon:jsx(Me,{disabled:t}),"data-testid":"Checkbox",className:kc(o?L.control:L.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(De,{className:kc(L.root,a),sx:r,control:p,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:L.label}}}):p});Re.displayName="Checkbox";var Ae=memo(Re);var Ja="os-shared-Switch",po={root:`${Ja}-root`};var We=styled(Qa)(({theme:o,disabled:e})=>{let{base:t,grey:r,success:a}=o.v2.palette;return {width:28,height:16,padding:0,borderRadius:o.v2.radius(8),opacity:e?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:o.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:e?"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:o.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:o.transitions.create(["background-color"],{duration:300})}}});var Ee=forwardRef(({className:o,sx:e,...t},r)=>jsx(We,{ref:r,className:kc(po.root,o),sx:e,"data-testid":"Switch",disableRipple:true,...t}));Ee.displayName="Switch";var He=memo(Ee);var as="os-shared-Typography",co={root:`${as}-root`},mo="body.default.regular";var is=o=>o!=null&&typeof o=="object"&&"fontFamily"in o&&"fontSize"in o&&"fontWeight"in o;function ls(o,e){try{let t=e.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${e}`);return r[a]},o);if(!is(t))throw new TypeError(`Invalid typography textVariant: ${e}`);return t}catch(t){return console.warn(t),o.body.default.regular}}function ps(o,e,t){return e===void 0?t:typeof e=="number"?e:{light:o.fontWeightLight,regular:o.fontWeightRegular,medium:o.fontWeightMedium,semibold:o.fontWeightBold,bold:o.fontWeightBolder}[e]??t}var Ve=styled(ss,{shouldForwardProp:o=>o!=="$textVariant"&&o!=="$weight"})(({theme:o,$textVariant:e=mo,$weight:t})=>{let{base:r}=o.v2.palette,a=ls(o.v2.typography.textVariants,e);return {color:r.black,...a,fontWeight:ps(o.v2.typography,t,a.fontWeight)}});var Oe=forwardRef(({textVariant:o=mo,variant:e="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(Ve,{ref:i,className:kc(co.root,r),sx:a,"data-testid":"Typography",...s,variant:e,$textVariant:o,$weight:t}));Oe.displayName="Typography";var Ze=memo(Oe);var fs="os-shared-RadioButton";var fo={root:`${fs}-root`};var Ue=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=o?"#BDC1CC":r[500];return jsxs(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,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}})]})},Ge=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=o?a[50]:r.white,i=o?a[200]:a[500];return jsx(Oo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,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 Xe=styled(ys)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var Ye=forwardRef(({disabled:o,sx:e,className:t,...r},a)=>jsx(Xe,{ref:a,disableRipple:true,disabled:o,checkedIcon:jsx(Ue,{disabled:o}),icon:jsx(Ge,{disabled:o}),"data-testid":"RadioButton",className:kc(fo.root,t),sx:e,...r}));Ye.displayName="RadioButton";var _e=memo(Ye);var yo="os-shared-CircularProgress",F={root:`${yo}-root`,progress:`${yo}-progress`,labelOverlay:`${yo}-labelOverlay`,labelText:`${yo}-labelText`};var Je=styled(Ha)(({theme:o})=>{let{brand:e}=o.v2.palette;return {color:"#147DC5",background:alpha(e[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),Qe=styled(qe)(()=>({position:"relative",display:"inline-flex"})),ot=styled(qe)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),et=styled(ss)(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightBolder??700,color:"#3B4152"}));var tt=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},i)=>{let n=o==="determinate"&&e;return jsxs(Qe,{className:kc(F.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Je,{ref:i,variant:o,value:t,className:F.progress,...s}),n&&jsx(ot,{className:F.labelOverlay,children:jsx(et,{className:F.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});tt.displayName="CircularProgress";var rt=memo(tt);var z="os-shared-Tooltip",h={popper:`${z}-popper`,tooltip:`${z}-tooltip`,arrow:`${z}-arrow`,content:`${z}-content`,title:`${z}-title`,supportingText:`${z}-supportingText`,wrapper:`${z}-wrapper`};var at=styled(({className:o,...e})=>createElement(Bs,{...e,classes:{popper:kc(h.popper,o),tooltip:h.tooltip,arrow:h.arrow}}))(({theme:o})=>{let{base:e,grey:t}=o.v2.palette,r=e.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${h.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${h.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:o.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:o.v2.spacing(6),borderRadius:o.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),st=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:o.v2.spacing(6),maxWidth:296,width:"100%"})),nt=styled("div",{shouldForwardProp:o=>o!=="$hasSupportingText"})(({theme:o,$hasSupportingText:e})=>{let{grey:t}=o.v2.palette;return {margin:0,fontSize:12,fontWeight:e?600:400,lineHeight:e?1:1.2,color:e?t[700]:alpha(t[700],.77),width:e?"100%":void 0}}),it=styled("div")(({theme:o})=>{let{grey:e}=o.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:e[500],width:"100%",whiteSpace:"pre-wrap"}});function Ms(o){return o!=null&&o!==false&&o!==""}function Ls(o){return !!o||o===0}function Fs(o,e){let t=Ms(e);if(!Ls(o)&&!t)return null;let r=jsx(nt,{className:h.title,$hasSupportingText:t,children:o});return t?jsxs(st,{className:h.content,children:[r,jsx(it,{className:h.supportingText,children:e})]}):r}function lt({className:o,title:e,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(at,{className:o,title:Fs(e,t),placement:r,arrow:true,sx:i,...n,children:jsx(qe,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(h.wrapper,p),...d,children:a})})}lt.displayName="Tooltip";var pt=memo(lt);var Ds="os-shared-Skeleton",ho={root:`${Ds}-root`};var dt=styled(Rs)(()=>({}));var ct=forwardRef(({className:o,sx:e,variant:t="rounded",height:r=16,...a},s)=>jsx(dt,{ref:s,className:kc(ho.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));ct.displayName="Skeleton";var mt=memo(ct);var Vs="os-shared-Avatar",bo={root:`${Vs}-root`},So="xs",vo="teal",ft={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"}},ut={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 js(o){let{from:e,to:t}=ft[o];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${e} 0%, ${t} 100%)`}var yt=styled(Os,{shouldForwardProp:o=>!["$size","$color"].includes(o)})(({theme:o,$size:e=So,$color:t=vo})=>{let{dimension:r,fontSize:a}=ut[e],{base:s}=o.v2.palette,i=js(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var gt=forwardRef(({className:o,sx:e,size:t=So,color:r=vo,...a},s)=>jsx(yt,{ref:s,className:kc(bo.root,o),sx:e,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));gt.displayName="Avatar";var xt=memo(gt);var Xs="os-shared-Divider",No={root:`${Xs}-root`};function qs(o,e){let{grey:t,border:r}=e.v2.palette;return o==="subtle"?r.subtle:t[100]}var Ct=styled(Ys,{shouldForwardProp:o=>o!=="$type"})(({theme:o,$type:e="default",orientation:t="horizontal"})=>({borderColor:qs(e,o),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var ht=forwardRef(({className:o,sx:e,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Ct,{ref:s,className:kc(No.root,o),sx:e,"data-testid":"Divider",orientation:t,$type:r,...a}));ht.displayName="Divider";var bt=memo(ht);var en="os-shared-Collapse",ko={root:`${en}-root`};var St=styled(tn)(()=>({}));var vt=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(St,{ref:i,className:kc(ko.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));vt.displayName="Collapse";var Nt=memo(vt);var ln="os-shared-Badge",wo={root:`${ln}-root`},Io="default",kt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function cn(o,e){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=e.v2.palette;if(o==="highlight")return p.brand;let d=kt[o];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[o]??t.white)}function mn(o,e){let{base:t}=e.v2.palette;return o==="inactive"?t.black:(t.white)}var It=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e=Io,$compact:t,$round:r,$pointer:a})=>{let s=cn(e,o);return {paddingBlock:o.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":o.v2.spacing(4),borderRadius:t?o.v2.radius(4):r?o.v2.radius(16):o.v2.radius(48),background:s,color:mn(e,o),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Bt=forwardRef(({className:o,sx:e,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??Io;return jsx(It,{ref:d,className:kc(wo.root,o),sx:e,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Bt.displayName="Badge";var Tt=memo(Bt);var gn="os-shared-Backdrop",Bo={root:`${gn}-root`};var Pt=styled(xn,{shouldForwardProp:o=>o!=="$hasBlur"})(({theme:o,$hasBlur:e=false})=>{let t=e?o.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var $t=forwardRef(({className:o,sx:e,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Pt,{open:t,$hasBlur:r,ref:n,className:kc(Bo.root,o),sx:e,"data-testid":"Backdrop",onClick:p,...i}),document.body)});$t.displayName="Backdrop";var Mt=memo($t);var To="os-shared-CopyButton",B={root:`${To}-root`,icon:`${To}-icon`,copyIcon:`${To}-copyIcon`,copiedIcon:`${To}-copiedIcon`};var zt=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Oo,{sx:{height:12.6,width:13},...o,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Dt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Oo,{sx:{height:12.6,width:13},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var At=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Uo=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 200ms ease"}));var Wt=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=2e3,icon:a=jsx(zt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=f=>{f.stopPropagation(),ab(t),d(true),setTimeout(()=>d(false),r),s?.(f);};return jsxs(At,{ref:n,className:kc(B.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(Uo,{className:kc(B.icon,B.copyIcon),$visible:!p,children:a}),jsx(Uo,{className:kc(B.icon,B.copiedIcon),$visible:p,children:jsx(Dt,{})})]})});Wt.displayName="CopyButton";var Et=memo(Wt);var Go="os-shared-ProgressBar",j={root:`${Go}-root`,fill:`${Go}-fill`,text:`${Go}-text`};var Vt=styled(qe,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>{let{base:r}=o.v2.palette;return {width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:o.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?o.v2.spacing(2):o.v2.spacing(0),...e===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:e>=10?"40px":"36px"}}}),Ot=styled(qe,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t}=o.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:o.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:alpha(t.black,0)}}}),Zt=styled(ss,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t,grey:r}=o.v2.palette;return {fontSize:"8px",fontWeight:o.typography.fontWeightBolder??700,color:t.white,padding:`${o.v2.spacing(2)} ${o.v2.spacing(4)}`,...e===0&&{color:alpha(r[500],.5)}}});var Kt=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Vt,{ref:r,className:kc(j.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ot,{className:j.fill,$value:t,children:jsxs(Zt,{className:j.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Kt.displayName="ProgressBar";var Ut=memo(Kt);var Mo="os-shared-Chip",k={root:`${Mo}-root`,text:`${Mo}-text`,copyButton:`${Mo}-copyButton`,icon:`${Mo}-icon`},Gt={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 _t=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Oo,{sx:{height:"10px"},...o,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},qt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(Oo,{sx:{height:"10px"},...o,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function zn(o,e){let t=Gt[o];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:e.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:e.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:e.v2.spacing(t.paddingInline)},borderRadius:e.v2.radius(t.borderRadius)}}var Qt=styled(qe,{shouldForwardProp:o=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=o.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:o.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...zn(e,o),...e==="text"&&t&&{gap:o.v2.spacing(6),paddingInlineStart:o.v2.spacing(5),paddingInlineEnd:o.v2.spacing(8)},...r&&{gap:o.v2.spacing(4)},[`& .${k.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"}}}}),Yo=styled(qe)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),or=styled("span",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:o?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),_o=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 150ms ease"}));var tr=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},f)=>{let[y,m]=useState(false),u=!!(t&&n),C=r!=null&&!u,g=useCallback(v=>{v.stopPropagation(),n&&(ab(n),m(true),setTimeout(()=>m(false),2e3));},[n]),S=useMemo(()=>C?jsx("span",{className:k.icon,children:r}):null,[C,r]),$=useMemo(()=>{if(t){let v=u&&typeof t=="string"?Zb(t):void 0;return jsx(Yo,{className:k.text,"data-is-arabic":v,children:t})}return C?null:jsx(Yo,{className:k.text,children:p})},[t,u,C,p]),x=useMemo(()=>u?jsxs(or,{className:k.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(_o,{$visible:!y,children:jsx(_t,{})}),jsx(_o,{$visible:y,children:jsx(qt,{})})]}):null,[u,y,g]);return jsxs(Qt,{ref:f,"data-testid":"Chip",className:kc(k.root,o,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},e),$variant:a,$hasIcon:C,$hasCopy:u,$isSelected:i,$disableAnimation:d,...c,children:[S,$,x]})});tr.displayName="Chip";var rr=memo(tr);var Jo="os-shared-Slider",T={root:`${Jo}-root`,thumb:`${Jo}-thumb`,thumbIcon:`${Jo}-thumbIcon`};var ar=o=>{let{v2:e}=useTheme(),{grey:t}=e.palette;return jsx(Oo,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...o,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var sr=styled(On)(({theme:o})=>{let{brand:e,base:t}=o.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:e[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function Xn({children:o,className:e,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,e),...t,children:[o,jsx(ar,{className:T.thumbIcon})]})}var nr=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let f=useCallback((y,m)=>{n(m);},[n]);return jsx(sr,{ref:c,className:kc(T.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:f,...d,slots:{thumb:Xn,...p}})});nr.displayName="Slider";var ir=memo(nr);var Qo="os-shared-Input",U={root:`${Qo}-root`,label:`${Qo}-label`,input:`${Qo}-input`},pr={sm:28,md:32,labelled:40};var dr=(o,e)=>pr[o?"labelled":e],cr=styled(Jn,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>{let{base:a,grey:s}=o.v2.palette;return {height:dr(e,r),padding:e?o.v2.spacing(8):`0 ${o.v2.spacing(8)}`,border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:a.black,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:s[500]},"& input":{paddingTop:o.v2.spacing(4),paddingBottom:o.v2.spacing(4)},"& input::placeholder":{color:s[500],fontWeight:o.typography.fontWeightRegular,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:a.black,caretColor:a.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:`${o.v2.spacing(10)} !important`,lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& 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}}}}),mr=styled(qn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"11px",color:`${e[500]} !important`}}),fr=styled(_n,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>{let{grey:i,base:n,error:p}=o.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:dr(a,s),margin:0,border:`1px solid ${t?"#FF3D00":i[100]}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?"#FF3D00":i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.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, -1.5px) scale(0.75) !important",color:`${i[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var yr=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:i=false,type:n,id:p,className:d,sx:c,onKeyDown:f,onWheel:y,...m},u)=>{let C=!!o,g=n==="number",S=x=>{let v=x.metaKey||x.ctrlKey||x.altKey,Ho=x.key.length===1;(["e","E","+","-"].includes(x.key)||xa$1()&&Ho&&!v&&!/^[0-9.]$/.test(x.key))&&x.preventDefault(),f?.(x);},$=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(fr,{className:kc(U.root,d),sx:c,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:e,children:[C&&jsx(mr,{className:U.label,htmlFor:p,children:o}),jsx(cr,{id:p,inputRef:u,className:U.input,type:n,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:i,$size:e,onKeyDown:g?S:f,onWheel:g?$:y,...m})]})});yr.displayName="Input";var gr=memo(yr);var ee="os-shared-Textarea",G={root:`${ee}-root`,label:`${ee}-label`,textarea:`${ee}-textarea`},X=3;var xr=styled(ai,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=X})=>{let{base:r,grey:a}=o.v2.palette;return {border:"none",borderRadius:"inherit",padding:e?`${o.v2.spacing(32)} ${o.v2.spacing(8)} ${o.v2.spacing(8)}`:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...e&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:e?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:o.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"}}}),Cr=styled(qn)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",fontWeight:o.typography.fontWeightMedium,color:`${e[500]} !important`}}),hr=styled(_n,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=X})=>{let{grey:i,base:n,error:p}=o.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-X)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:o.v2.radius(4),backgroundColor:e?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:o.v2.spacing(2),padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Sr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=X,maxRows:i,id:n,className:p,sx:d,required:c,...f},y)=>{let m=!!o;return jsxs(hr,{className:kc(G.root,p),sx:d,error:e,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(Cr,{className:G.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:o}),jsx(xr,{id:n,inputRef:y,className:G.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:m,$minRows:s,...f})]})});Sr.displayName="Textarea";var vr=memo(Sr);var R="os-shared-Accordion",w={root:`${R}-root`,summary:`${R}-summary`,content:`${R}-content`,labelStartAdornment:`${R}-labelStartAdornment`,labelContent:`${R}-labelContent`,labelEndAdornment:`${R}-labelEndAdornment`,expandIcon:`${R}-expandIcon`};var kr=()=>{let{v2:o}=useTheme(),{base:e}=o.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:e.black,stroke:e.black,strokeWidth:"0.1"})})};var Ir=styled(pi)(({theme:o,square:e})=>{let{grey:t,base:r}=o.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!e&&{borderRadius:o.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Br=styled(ci)(({theme:o})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:o.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:o.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:o.v2.spacing(8)}})),Tr=styled(di)(({theme:o})=>{let{grey:e}=o.v2.palette;return {padding:0,borderTop:`1px solid ${e[100]}`}}),Pr=styled(qe)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),$r=styled(qe)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Fr=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:f,...y},m)=>{let u=o!==void 0,[C,g]=useState(e),S=u?o:C,$=(pl,fe)=>{u||g(fe),t?.(fe);},{showArrow:x=true,...v}=n.label??{},{className:Ho,sx:Ma,...La}=n.root??{},Fa=d??(x?jsx(Pr,{component:"span",className:w.expandIcon,children:jsx(kr,{})}):null),za=jsxs(Fragment,{children:[s!=null&&jsx(qe,{component:"span",className:w.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx($r,{component:"span",className:w.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(qe,{component:"span",className:w.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Ir,{ref:m,"data-testid":"Accordion",disabled:p,expanded:S,onChange:$,className:kc(w.root,c,Ho),sx:jc(f??{},Ma),...La,...y,children:[jsx(Br,{className:w.summary,expandIcon:Fa,"aria-expanded":S,...v,children:za}),jsx(Tr,{className:w.content,...n.content,children:a})]})});Fr.displayName="Accordion";var zr=memo(Fr);var Dr="os-shared-Menu",eo={popper:`${Dr}-popper`,panel:`${Dr}-panel`};var Ar=styled(xi)({}),Wr=styled(qe,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>{let{grey:t,base:r}=o.v2.palette;return {borderRadius:o.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:o.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:e?'""':"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 Hr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,f]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:u,className:C,sx:g,...S}=s??{},$=useCallback(v=>{f((v.currentTarget.scrollTop??0)>0),u?.(v);},[u]),x=kc(eo.panel,C,"MuiPopper-dropdown");return jsx(Ar,{ref:d,className:kc(eo.popper,i),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(Wr,{$showShadow:m,onScroll:$,className:x,sx:jc(n??{},g),...S,children:t})})});Hr.displayName="Menu";var Vr=memo(Hr);var to="os-shared-Dialog",P={root:`${to}-root`,title:`${to}-title`,divider:`${to}-divider`,content:`${to}-content`,actions:`${to}-actions`};var Or=styled(ki,{shouldForwardProp:o=>o!=="$hasBlurBackdrop"})(({theme:o,$hasBlurBackdrop:e})=>{let{base:t}=o.v2.palette,r=e?o.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:o.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...e&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),Zr=styled(Bi)(({theme:o})=>{let{base:e}=o.v2.palette;return {padding:`${o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(12)}`,fontSize:"13px",fontWeight:o.typography.fontWeightBolder,lineHeight:"normal",color:e.black,whiteSpace:"nowrap"}}),jr=styled("hr")(({theme:o})=>{let{grey:e}=o.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${e[100]}`,margin:0,width:"100%",flexShrink:0}}),Kr=styled(Ii,{shouldForwardProp:o=>o!=="$hasHeading"})(({theme:o,$hasHeading:e})=>{let{grey:t}=o.v2.palette;return {padding:`${e?o.v2.spacing(12):o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,fontSize:"12px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),Ur=styled(wi)(({theme:o})=>({padding:`0 ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,gap:o.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var Xr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(Or,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:kc(P.root,i),sx:n,...p,children:[o?jsxs(Fragment,{children:[jsx(Zr,{className:P.title,children:o}),jsx(jr,{"aria-hidden":true,className:P.divider})]}):null,t!=null?jsx(Kr,{className:P.content,$hasHeading:!!o,children:t}):null,e?jsx(Ur,{className:P.actions,children:e}):null]}));Xr.displayName="Dialog";var Yr=memo(Xr);var re="os-shared-MenuItem",W={root:`${re}-root`,indicator:`${re}-indicator`,disabled:`${re}-disabled`},E={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var qr=()=>{let{v2:o}=useTheme(),{brand:e,base:t}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},Jr=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),Qr=()=>{let{v2:o}=useTheme(),{brand:e}=o.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e[500],stroke:e[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ta=styled(qe,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>{let{base:t}=o.v2.palette;return {padding:o.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:o.v2.spacing(8),textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:o.typography.subtitle1.fontSize,opacity:e?.5:1,color:t.black}}),ae=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Di(o,e){return e?E.indeterminate:o?E.checked:E.unchecked}var Ri={[E.unchecked]:Jr,[E.checked]:qr,[E.indeterminate]:Qr};function Ai(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(ae,{className:W.indicator,"aria-hidden":true,children:o});let r=Di(e,t),a=Ri[r];return jsx(ae,{className:W.indicator,"aria-hidden":true,children:jsx(a,{})})}var ra=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc(W.root,"menu-item",e&&W.disabled,i);return jsxs(ta,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:e?void 0:a,$isDisabled:e,...p,children:[Ai(r,o,t),s]})});ra.displayName="MenuItem";var aa=memo(ra);var sa="os-shared-ToggleButtons",ao={root:`${sa}-root`,button:`${sa}-button`},ne={sm:"sm",md:"md"},so=ne.sm,ie={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function Ei(o,e){let{palette:t,elevation:r}=o.v2;return e?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var la=styled(qe,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e=so})=>{let t=ie[e];return {backgroundColor:o.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:o.v2.spacing(2),borderRadius:o.v2.radius(t.containerRadius)}}),pa=styled(qe,{shouldForwardProp:o=>o!=="$isActive"&&o!=="$size"})(({theme:o,$isActive:e=false,$size:t=so})=>{let r=ie[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:o.v2.radius(2),fontSize:r.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Ei(o,e),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ca({options:o,activeKey:e,onChange:t,size:r=so,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:f,...y}=a??{},m=kc(ao.root,n,c);return jsx(la,{ref:d,id:i,"data-testid":"ToggleButtons",className:m,$size:r,sx:jc(p??{},f),...y,children:o.map(u=>jsx(pa,{className:ao.button,$isActive:e===u.key,$size:r,onClick:()=>t(u.key),...s,children:u.content},u.key))})}var Oi=forwardRef(ca);ca.displayName="ToggleButtons";var ma=memo(Oi);var Zi="os-shared-LazyImage",Do={root:`${Zi}-root`},Ro={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 fa=styled(qe)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ao(o){return o!=null&&o in Ro}var qi=LazyLoadImage,ya=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ao(o));if(useEffect(()=>{if(!Ao(o)){d(false);return}d(true),Ro[o]().finally(()=>{d(false);});},[o]),p)return null;let{className:c,sx:f,style:y,...m}=e??{},u=Ao(o)||!!s||y!=null;return jsx(fa,{component:"span",...m,className:kc(Do.root,c??r),sx:f!=null?jc(a??{},f):a,children:jsx(qi,{...i,ref:n,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:u?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});ya.displayName="LazyImage";var ga=memo(ya);var le="os-shared-FieldFeedback",_={root:`${le}-root`,icon:`${le}-icon`,message:`${le}-message`};var xa=({severity:o="error",...e})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=o==="warning"?r[500]:a[500];return jsx(Oo,{sx:{width:12,height:12},...e,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})})})},Ca=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(Oo,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},ha=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(Oo,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",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:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Wo(o,e){let t=e??"error",{brand:r,success:a,error:s,status:i}=o.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var ba=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t,textColor:r}=Wo(o,e);return {display:"flex",alignItems:"flex-start",gap:o.v2.spacing(4),minHeight:"32px",padding:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${o.v2.radius(4)} ${o.v2.radius(4)}`}}),Sa=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=Wo(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),va=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 ol(o){switch(o){case "success":return jsx(Ca,{});case "info":return jsx(ha,{});case "error":case "warning":return jsx(xa,{severity:o})}}var Na=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!zc(e))return null;let i=o;return jsxs(ba,{ref:s,"data-testid":"FieldFeedback",className:kc(_.root,r),sx:a,$feedbackType:i,children:[t??jsx(va,{className:_.icon,children:ol(i)}),jsx(Sa,{className:_.message,$feedbackType:i,children:e})]})});Na.displayName="FieldFeedback";var ka=memo(Na);var tl="os-shared-ScrollLoader",Eo={root:`${tl}-root`};var wa=styled(rl)({overflow:"auto",height:"100%",maxHeight:"100%"});function me(o,e=50){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var Pa=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,f]=useState(false),y=useRef(o),m=useRef(null);y.current=o;let u=useCallback(()=>{e&&!r&&y.current();},[e,r]),C=useCallback(()=>{let g=m.current;g&&me(g)&&u();},[u]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",C),()=>g.removeEventListener("scroll",C)},[C]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let S=window.setTimeout(()=>{f(true),me(g)&&u();},1e3);return ()=>window.clearTimeout(S)},[t,u,c]),jsx(wa,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:kc(Eo.root,s),sx:i,...p,children:a})});Pa.displayName="ScrollLoader";var $a=memo(Pa);
2
2
  export{_ as $,Bo as A,Mt as B,B as C,Et as D,j as E,Ut as F,k as G,rr as H,T as I,ir as J,U as K,gr as L,G as M,vr as N,w as O,zr as P,eo as Q,Vr as R,P as S,Yr as T,W as U,aa as V,ao as W,ne as X,ma as Y,Do as Z,ga as _,N as a,Wo as aa,we as b,ka as ba,lo as c,Eo as ca,Te as d,$a as da,L as e,Ae as f,po as g,He as h,co as i,Ze as j,fo as k,_e as l,F as m,rt as n,h as o,pt as p,ho as q,mt as r,bo as s,xt as t,No as u,bt as v,ko as w,Nt as x,wo as y,Tt as z};
@@ -1 +1 @@
1
- import {a}from'./chunk-2RTUHSFA.js';import {aa,ba}from'./chunk-MN3K3WSB.js';import {yc,Ac}from'./chunk-2SKLD6QR.js';import {Cb,A,Qf}from'./chunk-OK75VWGZ.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R from'@mui/material/Box';import Me from'@mui/material/ClickAwayListener';import ve from'@mui/material/Popper';import T from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var _=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),I=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:l,hideArrows:t})=>{let{borderColor:i}=aa(e,o),a=l?"4px 4px 0 0":"4px",s="#F2F2F2";return o&&(s=i),n&&!o&&(s=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${s}`,borderBottom:l?"none":void 0,borderRadius:a,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& 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}}}}),K=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var U=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(I)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function L(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(U,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Fe=L;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(R)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(R)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(R)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:l,countries:t=[],isLoading:i=false}){let a=yc(useId(),"countries-dropdown"),[s,g]=useState(null),[F,u]=useState([]),[b,h]=useState(),ue=()=>{if(t&&e){let r=t.find(x=>x.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A$1=!!s,xe=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),h(void 0);},ce=r=>{o?.(r),N(),u(t);},fe=r=>{let x=Number(r.target.value);if(h(x),!x){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(x.toString())));};return i?jsx(T,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Me,{onClickAway:N,children:jsxs(R,{id:a,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:xe,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),l&&jsx(ee,{component:"span",children:"*"}),jsx(R,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(ve,{open:A$1,anchorEl:s,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:fe,value:b,hideArrows:true}),jsx(Y,{children:F.map(r=>jsxs(Z,{onClick:()=>{ce(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>{let i=e.feedback,{isProvided:a,isVisible:s,type:g}=Ac(i),F=e.label??e.placeholder,u=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b=t?.message??e.helperText,h=!a&&b?jsx(K,{children:b}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(_,{id:n,"data-testid":"InputWrapper",children:jsx(I,{rows:1,hasError:(!!t?.message||!!e.error)&&!a,hasFeedback:s,feedbackType:g,...l,variant:"standard",label:F,placeholder:u,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:s?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),h,a?jsx(ba,{...i}):null]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function z({showSearchIcon:e=true,error:n,errorMessage:o,feedback:l,...t}){let i=yc(useId(),"search-input"),a=!!(n&&o&&!l);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:A,alt:"search"}),sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:l,error:n,...t}),a&&jsxs(le,{children:[jsx(pe,{src:Qf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=z;function D(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".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%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...l,value:l.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=D;export{Fe as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
1
+ import {a}from'./chunk-4KSZBODD.js';import {aa,ba}from'./chunk-OBBOIKJ2.js';import {yc,Ac}from'./chunk-PLMJIRXJ.js';import {Cb,A,Qf}from'./chunk-YKKS24ES.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R from'@mui/material/Box';import Me from'@mui/material/ClickAwayListener';import ve from'@mui/material/Popper';import T from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var _=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),I=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:l,hideArrows:t})=>{let{borderColor:i}=aa(e,o),a=l?"4px 4px 0 0":"4px",s="#F2F2F2";return o&&(s=i),n&&!o&&(s=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${s}`,borderBottom:l?"none":void 0,borderRadius:a,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& 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}}}}),K=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var U=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(I)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function L(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(U,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Fe=L;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(R)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(R)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(R)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:l,countries:t=[],isLoading:i=false}){let a=yc(useId(),"countries-dropdown"),[s,g]=useState(null),[F,u]=useState([]),[b,h]=useState(),ue=()=>{if(t&&e){let r=t.find(x=>x.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A$1=!!s,xe=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),h(void 0);},ce=r=>{o?.(r),N(),u(t);},fe=r=>{let x=Number(r.target.value);if(h(x),!x){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(x.toString())));};return i?jsx(T,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Me,{onClickAway:N,children:jsxs(R,{id:a,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:xe,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),l&&jsx(ee,{component:"span",children:"*"}),jsx(R,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(ve,{open:A$1,anchorEl:s,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:fe,value:b,hideArrows:true}),jsx(Y,{children:F.map(r=>jsxs(Z,{onClick:()=>{ce(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>{let i=e.feedback,{isProvided:a,isVisible:s,type:g}=Ac(i),F=e.label??e.placeholder,u=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b=t?.message??e.helperText,h=!a&&b?jsx(K,{children:b}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(_,{id:n,"data-testid":"InputWrapper",children:jsx(I,{rows:1,hasError:(!!t?.message||!!e.error)&&!a,hasFeedback:s,feedbackType:g,...l,variant:"standard",label:F,placeholder:u,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:s?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),h,a?jsx(ba,{...i}):null]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function z({showSearchIcon:e=true,error:n,errorMessage:o,feedback:l,...t}){let i=yc(useId(),"search-input"),a=!!(n&&o&&!l);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:A,alt:"search"}),sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:l,error:n,...t}),a&&jsxs(le,{children:[jsx(pe,{src:Qf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=z;function D(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".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%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...l,value:l.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=D;export{Fe as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
@@ -1 +1 @@
1
- import {j}from'./chunk-MN3K3WSB.js';import {yc}from'./chunk-2SKLD6QR.js';import {Td,Ri,Si,Ti,Ui,Vi}from'./chunk-OK75VWGZ.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(j)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),w=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var g=new Map([["json",Td],["brand",Ri],["entity",Si],["bank",Ti],["individual",Ui],["password",Vi]]);function W({title:o,icon:n}){let x=yc(useId(),"window-app-icon"),e=g.get(n||"")??(g.get(o?.toLowerCase())||n);return jsxs(w,{id:x,className:"action-box","data-testid":"WindowAppIcon",children:[e&&jsx(I,{src:e,alt:"icon"}),jsx(m,{className:"title",children:o})]})}var y=W;var z=y;export{z as a};
1
+ import {j}from'./chunk-OBBOIKJ2.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Td,Ri,Si,Ti,Ui,Vi}from'./chunk-YKKS24ES.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(j)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),w=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var g=new Map([["json",Td],["brand",Ri],["entity",Si],["bank",Ti],["individual",Ui],["password",Vi]]);function W({title:o,icon:n}){let x=yc(useId(),"window-app-icon"),e=g.get(n||"")??(g.get(o?.toLowerCase())||n);return jsxs(w,{id:x,className:"action-box","data-testid":"WindowAppIcon",children:[e&&jsx(I,{src:e,alt:"icon"}),jsx(m,{className:"title",children:o})]})}var y=W;var z=y;export{z as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-MQFXJL5S.js';import {ec,yc,x,Ia}from'./chunk-2SKLD6QR.js';import {ea}from'./chunk-FH3OCBAM.js';import {useId,useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import L from'dayjs';import V from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var M=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),w=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),K=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),B=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),S=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var W=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===ea.AMOUNT?`${Ia(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),$=(t,i,r=0)=>{let a=L(t).add(r,"hour").format(),n=new Date,e=L(a).isSame(n,"year");return x(a,i?void 0:{sameDay:`[Today] ${e?"":"YYYY"}`,nextDay:`[Tomorrow] ${e?"":"YYYY"}`,lastDay:`[Yesterday] ${e?"":"YYYY"}`,sameElse:`MMM DD ${e?"":", YYYY"}`,lastWeek:`MMM DD ${e?"":", YYYY"}`,nextWeek:`MMM DD ${e?"":", YYYY"}`},void 0,void 0,r!==void 0)};var G=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),e=L(r?.[0]),l=L(r?.[1]),y=e?.isSame(l,"day");if(t&&i?.length){let o=i[0],m=ec(o?.dataKey,o?.value),f=o?.payload?.date&&$(o?.payload?.date,y,o?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(w,{children:f??o?.payload?.date}),jsxs(K,{children:[o?.dataKey===ea.AMOUNT&&jsxs(B,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(S,{children:a$1})]}),jsx(V,{children:`${W(o,n(m),a$1)}`})]})]})}return null},C=G;var _=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],q=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:_,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=q;var rt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let e=yc(useId(),"activity-area-chart"),l=useTheme(),[y,o]=useState(false),[m,f]=useState({x:0,y:0}),I=t?.length===0,O=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},R=useMemo(()=>jsx(C,{position:m,dateRange:a,selectedCurrency:n}),[m,a,n]);return r||I?jsx(T,{}):jsx(ResponsiveContainer,{id:e,"data-testid":"ActivityAreaChart",children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:O,children:[t.length>0&&jsx(Tooltip,{content:R,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:l.palette.success.dark,activeDot:{r:5,fill:l.palette.success.dark,strokeWidth:2,stroke:"white",cursor:y?"pointer":"default",onMouseOver:()=>o(true),onMouseLeave:()=>o(false)}})]})})},F=rt;var zt=F;export{C as a,T as b,zt as c};
1
+ import {a}from'./chunk-54RTNLV2.js';import {ec,yc,x,Ia}from'./chunk-PLMJIRXJ.js';import {ha}from'./chunk-WHXHVOBY.js';import {useId,useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import L from'dayjs';import V from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var M=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),w=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),K=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),B=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),S=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var W=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===ha.AMOUNT?`${Ia(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),$=(t,i,r=0)=>{let a=L(t).add(r,"hour").format(),n=new Date,e=L(a).isSame(n,"year");return x(a,i?void 0:{sameDay:`[Today] ${e?"":"YYYY"}`,nextDay:`[Tomorrow] ${e?"":"YYYY"}`,lastDay:`[Yesterday] ${e?"":"YYYY"}`,sameElse:`MMM DD ${e?"":", YYYY"}`,lastWeek:`MMM DD ${e?"":", YYYY"}`,nextWeek:`MMM DD ${e?"":", YYYY"}`},void 0,void 0,r!==void 0)};var G=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),e=L(r?.[0]),l=L(r?.[1]),y=e?.isSame(l,"day");if(t&&i?.length){let o=i[0],m=ec(o?.dataKey,o?.value),f=o?.payload?.date&&$(o?.payload?.date,y,o?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(w,{children:f??o?.payload?.date}),jsxs(K,{children:[o?.dataKey===ha.AMOUNT&&jsxs(B,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(S,{children:a$1})]}),jsx(V,{children:`${W(o,n(m),a$1)}`})]})]})}return null},C=G;var _=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],q=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:_,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=q;var rt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let e=yc(useId(),"activity-area-chart"),l=useTheme(),[y,o]=useState(false),[m,f]=useState({x:0,y:0}),I=t?.length===0,O=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},R=useMemo(()=>jsx(C,{position:m,dateRange:a,selectedCurrency:n}),[m,a,n]);return r||I?jsx(T,{}):jsx(ResponsiveContainer,{id:e,"data-testid":"ActivityAreaChart",children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:O,children:[t.length>0&&jsx(Tooltip,{content:R,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:l.palette.success.dark,activeDot:{r:5,fill:l.palette.success.dark,strokeWidth:2,stroke:"white",cursor:y?"pointer":"default",onMouseOver:()=>o(true),onMouseLeave:()=>o(false)}})]})})},F=rt;var zt=F;export{C as a,T as b,zt as c};
@@ -1 +1 @@
1
- import {p}from'./chunk-MN3K3WSB.js';import {memo}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var n=styled(d,{shouldForwardProp:t=>t!=="isActive"&&t!=="isDisabled"&&t!=="hasImageFilter"})(({isActive:t,isDisabled:o,hasImageFilter:e=true,theme:i})=>({minWidth:32,height:32,width:"fit-content",borderRadius:"4px",padding:"9px 8px",display:"flex",alignItems:"center",justifyContent:"center",border:`1px solid ${i.palette.divider}`,cursor:"pointer",...t&&{boxShadow:i.shadows[7],borderColor:i.palette.info.dark},...o&&{opacity:.5,pointerEvents:"none"},...e&&{img:{filter:"brightness(0) invert(0)"}}}));function m({children:t,title:o,...e}){return jsx(p,{title:o,children:jsx(n,{...e,children:t})})}var l=memo(m);var P=l;export{P as a};
1
+ import {p}from'./chunk-OBBOIKJ2.js';import {memo}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var n=styled(d,{shouldForwardProp:t=>t!=="isActive"&&t!=="isDisabled"&&t!=="hasImageFilter"})(({isActive:t,isDisabled:o,hasImageFilter:e=true,theme:i})=>({minWidth:32,height:32,width:"fit-content",borderRadius:"4px",padding:"9px 8px",display:"flex",alignItems:"center",justifyContent:"center",border:`1px solid ${i.palette.divider}`,cursor:"pointer",...t&&{boxShadow:i.shadows[7],borderColor:i.palette.info.dark},...o&&{opacity:.5,pointerEvents:"none"},...e&&{img:{filter:"brightness(0) invert(0)"}}}));function m({children:t,title:o,...e}){return jsx(p,{title:o,children:jsx(n,{...e,children:t})})}var l=memo(m);var P=l;export{P as a};
@@ -0,0 +1 @@
1
+ import {n,X,V,W,U as U$1,i,S as S$1,p as p$1,Y as Y$1,R as R$1,Q,P as P$1,O as O$1,N as N$1,M as M$1,x as x$1,C as C$1,L as L$1,G,H,F as F$1,J,E as E$1,D,A as A$1,K,B as B$1,y as y$1,I as I$1,z,q,r,Ka,ia,ha,ja}from'./chunk-WHXHVOBY.js';import {Ve}from'./chunk-YKKS24ES.js';import Xe from'lodash/orderBy';import we from'lodash/get';import u from'dayjs';import et from'dayjs/plugin/relativeTime';import tt from'dayjs/plugin/timezone';import rt from'dayjs/plugin/utc';import nt from'dayjs/plugin/calendar';import ot from'dayjs/plugin/isToday';import st from'dayjs/plugin/isYesterday';import dt from'axios';import lt from'lodash/forOwn';import $e from'color';import Ge from'lodash/capitalize';import Ye from'lodash/startCase';import {getTimezone,getCountryForTimezone,getCountry}from'countries-and-timezones';import je from'dompurify';function Kt({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?Xe(e,t,r):e}var jt=(e=[],t)=>e.length?e.sort((r,n)=>we(r,t).localeCompare(we(n,t))):[];function Jt(e){return (e||[]).filter(t=>!!t)}var qt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var Zt=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function Qt(e){if(!e)return "";let t=e%10,r=e%100;return `${e}${r>9&&r<14?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}`}var Ze=Intl.NumberFormat("en-US");function er(e){return Ze.format(e)}var Qe=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(e==null)return 0;let t=String(e).trim();if(t==="")return 0;let r=t.includes(",")&&!t.includes(".")?t.replace(/,/g,"."):t.replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:0},tr=e=>Qe(e),rr=(e,t)=>t?e.toFixed(t):e.toString();function f(e,t=2){return e.toString().padStart(t,"0")}var nr=e=>`0.${"0".repeat(e)}`;u.extend(ot);u.extend(st);u.extend(rt);u.extend(tt);u.extend(et);u.extend(nt);var T=e=>{if(typeof e=="number")return e;let t=e?.split("UTC")[1]?.split(":")[0];return e?.includes("UTC")||(t=e?.split(":")[0]),e?Number(t):0},gr=(e=0)=>{let t=e<0?"-":"+",r=Math.abs(e),n=Math.floor(r),o=Math.round((r-n)*60);return `UTC${t}${f(n)}:${f(o)}`},fr=(e=6)=>{let t=Number.isFinite(e)&&e>=0?e:0,r=u(),n=r.subtract(t,"day").startOf("day"),o=r.endOf("day");return [n.toDate(),o.toDate()]},xr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return u(s).valueOf()},yr=(e,t=S$1.KW)=>{if(!e)return;let r=new Date(e),n=r.getTimezoneOffset(),s=T(t)*60-n,i=r.getTime()+s*6e4,l=new Date(i).toISOString();return u(l).valueOf()},Tr=(e,t=0)=>e?u(e).utc(true).subtract(t,"hour").valueOf():void 0,hr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},Cr=(e,{currentTimezone:t,targetTimezone:r})=>{if(!e)return "";let n=new Date(e);if(Number.isNaN(n.getTime()))return "";if(t==null||r==null||t==null||r==null)return n;let o=T(t),i=T(r)-o,a=n.getTime()+i*6e4*60;return new Date(a)},br=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),Sr=e=>Array.from({length:e??12},(t,r)=>r+1).map(t=>({id:t,label:t})),Oe=({length:e=10,startYear:t,direction:r="future"}={})=>{let n=new Date().getFullYear(),o=t!==void 0?n-t+1:e,s=t!==void 0||r==="past"?-1:1;return Array.from({length:o},(i,a)=>{let l=n+s*a;return {id:l,label:l}})},h=(e,t,r,n,o=true)=>{if(!e)return "";let s=new Date(e);if(Number.isNaN(s.getTime()))return "";let i=new Date,a=u(e).isSame(i,"year"),l={sameDay:`[Today]${o?", h:mma":""}`,nextDay:`[Tomorrow]${o?", h:mma":""}`,lastDay:`[Yesterday]${o?", h:mma":""}`,sameElse:`MMM DD, YYYY${o?", h:mma":""}`,lastWeek:`MMM DD, YYYY${o?", h:mma":""}`,nextWeek:`MMM DD, YYYY${o?", h:mma":""}`};if(a&&(l={sameDay:`[Today]${o?", h:mma":""}`,nextDay:`[Tomorrow]${o?", h:mma":""}`,lastDay:`[Yesterday]${o?", h:mma":""}`,sameElse:`MMM DD${o?", h:mma":""}`,lastWeek:`MMM DD${o?", h:mma":""}`,nextWeek:`MMM DD${o?", h:mma":""}`}),!r&&!n)return u(s).calendar(null,t||l);let d=T(r),m=T(n)-d;return n||(m=Math.abs(m)),u(s).utcOffset(m).calendar(null,t||l)},Dr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":u(e).format(t)},Er=e=>u(e).endOf("day").toDate().valueOf();function Ar(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${f(t)}:${f(r)}:${f(n)}`:`${f(r)}:${f(n)}`}function _e(e,t,r="seconds"){let n={seconds:1,minutes:60,hours:3600,days:86400};return (Date.now()-e)/1e3<t*n[r]}var wr=e=>{let t=Date.now(),r=Math.floor((t-e)/1e3),n=Math.floor(r/60);return _e(e,60,"seconds")?"just now":_e(e,60,"minutes")?`${n} min${n===1?"":"s"} ago`:"1 hour ago"},_r=e=>u(e).isToday(),Or=e=>u(e).isYesterday(),it=1970,Ir=()=>Oe({startYear:it}),Nr=(e=10)=>Oe({length:e,direction:"past"});function Lr(e,t){if(!e)return null;let r=u(e);if(!r.isValid())return null;try{return new Date(r.tz(t).format("YYYY-MM-DDTHH:mm:ss.SSS"))}catch{return null}}var b=["sun","mon","tue","wed","thur","fri","sat"];function Pr(e="sun"){let t=b.indexOf(e.toLowerCase());return t===-1?(console.error(`${e} is not a valid day`),b):[...b.slice(t),...b.slice(0,t)]}var Fr=e=>{if(e==null)return;let t=u(e);return t.isValid()?t.valueOf():void 0};var Ie=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var Ne=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Ie(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},at=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},ct=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),$r=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return ct(t)?at({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var Le="Test_Fixed_Secret_Key",A="tap-dashboard-navigation-data",Pe="tap-dashboard-user-data",w="tap-dashboard-user-jwt",_="tap-dashboard-report",O="tap-dashboard-calender-timezone",I="tap-dashboard-calender-timezone-history",N="tap-dashboard-global-table-mode",Fe="sheetview_columns",L="dock-preview-windows",E="views";function Wr(){localStorage.setItem(Le,p$1);}function Me(){return localStorage.getItem(Le)}function zr(e){localStorage.setItem(A,JSON.stringify(e));}function Vr(){try{let e=localStorage.getItem(A);if(!e)return null;let t=JSON.parse(e);return lt(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Gr(){localStorage.removeItem(A);}var Hr=e=>{localStorage.setItem(w,e);},P=()=>localStorage.getItem(w),Kr=()=>{localStorage.removeItem(w);},jr=e=>{localStorage.setItem(Pe,JSON.stringify(e));},F=()=>{let e=localStorage.getItem(Pe);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Jr=()=>{let e=F();return e?Ne(e?.segments,e?.active_segment_id,e?.active_segments):null},qr=()=>{let e=F();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},ut=()=>{let e=P();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},Xr=()=>!ut()&&!!F(),Zr=(e,t)=>{localStorage.setItem(`${_}-${e}`,t);},Qr=e=>localStorage.getItem(`${_}-${e}`),en=e=>{localStorage.removeItem(`${_}-${e}`);},tn=e=>{localStorage.setItem(O,JSON.stringify(e));},rn=e=>{localStorage.setItem(I,JSON.stringify(e));},nn=()=>{try{let e=localStorage.getItem(O);return e?JSON.parse(e):null}catch{return null}},on=()=>{try{let e=localStorage.getItem(I);return e?JSON.parse(e):null}catch{return null}},sn=()=>{localStorage.removeItem(O);},an=()=>{localStorage.removeItem(I);},cn=e=>{localStorage.setItem(N,e);},ln=()=>localStorage.getItem(N)||"default",un=()=>{localStorage.removeItem(N);},dn=e=>localStorage.setItem(Fe,JSON.stringify(e)),mn=()=>JSON.parse(localStorage.getItem(Fe)||"{}"),pn=e=>{try{localStorage.setItem(L,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},gn=()=>{try{let e=localStorage.getItem(L);return e?JSON.parse(e):[]}catch{return []}},fn=()=>{try{localStorage.removeItem(L);}catch(e){console.warn("Failed to remove preview storage:",e);}},xn=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(E)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},yn=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(E)??"{}");localStorage.setItem(E,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},Re=()=>{localStorage.clear();};var mt={headers:{"Content-Type":"application/json",Accept:"application/json"}},M=dt.create({baseURL:n,headers:{...mt}}),pt=["users/switch-segment","users/update-segment"];M.interceptors.request.use(e=>new Promise(t=>{let r=false;if(pt.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));M.interceptors.request.use(e=>{e.headers.Authorization=P();let t=Me();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});M.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&(Re(),window.location.href="/login"),Promise.reject(e)));function Dn(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...l}=e??{};return {...l,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function An(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var wn=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_n=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Ln(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function Pn(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var ve={r:0,g:0,b:0,alpha:1},Fn=e=>{try{let t=$e(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=ve;return {value:ve,stringified:`rgba(${r},${n},${o},${s})`}}},Mn=e=>$e(e).hexa();var $n={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},ke={BHD:3,KWD:3,JOD:3,OMR:3},R=new Map,kn=(e,t)=>{if(Number.isNaN(e))return "0";try{return R.has(t)||R.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:ke[t]?3:2})),R.get(t).format(e)}catch(r){return console.error(r),"0"}},gt=e=>e%1===0,ft=e=>e%.1===0,xt=e=>Math.abs(e*10%1)===.1,Un=(e,t)=>{let r=ke[t],n=e.toString();return Number.isInteger(e)&&gt(e)?n=e.toFixed(r?3:2):xt(e)?n=`${n}${r?"00":"0"}`:ft(e)&&(n=`${n}${r?"00":"0"}`),n};function yt(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,l]=0 .toFixed(t).split("."),d=`${a}.${l}`;return {integerAmount:a,decimalAmount:l,fullAmount:d}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function Yn(e=0,t=""){return yt(e,Y$1[t]?.decimals??2)}function Wn(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var zn=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var Tt=new Intl.DisplayNames(["en"],{type:"region"});function Ue(e){try{return Tt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function Gn(e){return e==="SA"}var C=e=>h(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),Jn=(e,t)=>{if(!e)return "";let r=new Date,n=u(e).isSame(r,"year");return t?h(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?h(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):h(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},qn=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${C(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${C(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${C(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${C(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${C(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var Qn=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},eo=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return z[t][r];case "refund":return I$1[t][r];case "authorization":return y$1[t][r];case "intents":return B$1[t][r];case "topups":return K[t][r];case "destinations":return A$1[t][r];case "leads":return D[t][r];case "orders":return E$1[t][r];case "tokens":return J[t][r];case "payouts":return F$1[t][r];case "protectCharges":return H[t][r];case "protectAuthorizations":return G[t][r];case "wallet":return L$1[t][r];case "invoices":return C$1[t][r];case "authentications":return x$1[t][r];case "walletDetails":return M$1[t][r];case "walletStatement":return N$1[t][r];case "merchants":return O$1[t][r];case "terminals":return P$1[t][r];case "orchestrationTerminals":return Q[t][r];case "orchestrationRouting":return R$1[t][r];default:return "100px"}},to=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},Ct=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},ro=e=>{let t=Ct();return e<t+1},no=e=>e==="default",oo=e=>e==="sheet",so=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:i.acceptance.code,serviceCode:i.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:i.acceptance.code,serviceCode:i.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:i.acceptance.code,serviceCode:i.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:i.acceptance.code,serviceCode:i.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:i.authentication.code,serviceCode:i.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:i.order.code,serviceCode:i.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:i.protect.code,serviceCode:i.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:i.protect.code,serviceCode:i.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:i.tokens.code,serviceCode:i.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:i.acceptance.code,serviceCode:i.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:i.payouts.code,serviceCode:i.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:i.acceptance.code,serviceCode:i.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:i.acceptance.code,serviceCode:i.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:i.acceptance.code,serviceCode:i.acceptance.services.topups.code,icon:"capture"}});var lo=e=>typeof e=="string"&&e.trim().length>0,$=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},v=new Map,k=(e,t)=>(v.has(t)||v.set(t,new RegExp(t,"gi")),e.match(v.get(t))?.length??0),uo=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),mo=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),po=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},go=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),fo=e=>{let[t]=e.split("%");return parseFloat(t)||0},xo=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,yo=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return Ye(n)},To=e=>Ge(Ye(e));var Co=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,bo=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function Do({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,l=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:l}}function Ao(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var U=e=>e==null||e==="";function wo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!U(r)):typeof t=="object"?Object.values(t||{}).some(r=>!U(r)):!U(t)))}var Io=()=>q===r.TAPSTERS_FRONTEND;var Lo=e=>e.replace(/[^0-9]/g,"");function Ro({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,l)=>{let d=o?l:we(e,l);return typeof d=="string"&&t?.some(g=>d.includes(g)&&k($(d,g),"_")===0)&&a.push(d),Array.isArray(d)&&d.length>0&&d.every(g=>typeof g=="string"&&t?.some(m=>g.includes(m)&&k($(g,m),"_")===0))&&a.push(...d),a},[])}var $o=450,ko=600;var Uo=3;var Yo=20,Dt=(r=>(r.Index="index",r.Date="date",r))(Dt||{}),Bo={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Wo={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},zo={date:"Date",index:"Index"},Vo={sheet:["sheet"],default:["advanced","default"],text:["text"]},Go={sheet:"Advanced",default:"Sheet",text:"text"},Et={id:"default",label:"Default"},Ho={id:"custom",label:"Custom view"},Ko=[Et];function Xo(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(m=>{let Je=m.code?.toLowerCase()===o?.toLowerCase(),qe=m.name?.toLowerCase()===o?.toLowerCase();return (Je||qe)&&m.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(m=>m.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,l=!!s&&(a||!i),g=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(l||g)})}function Zo(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function Qo(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function es(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:y(r.name,t),name:y(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:Ye(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function ts(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var rs=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function os(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var Be=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},is=(e,t)=>Be({type:"content",content:e},t),as=(e,t)=>Be({type:"url",url:e},t);var wt=e=>!!(e?.isAxiosError&&!e?.response),ls=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,us=e=>!!e,_t=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,ds=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),S=({code:e,message:t})=>e?`${t} - ${e}`:t,ms=({error:e,fallbackMessage:t})=>{if(wt(e)){let n=t??"networkError";return {code:null,message:n,formatted:S({code:null,message:n})}}if(_t(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:S({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:S({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:S({code:null,message:r})}};var gs=(e,t)=>e.find(r=>r.code===t),fs=(e,t)=>e.find(r=>r.code===t);var Ts=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:Ye(e)}));function Cs(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function bs(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}var Es=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return Ka[t]??Ve},As=(e,t,r)=>`${e}-${t}-${r}`;var _s=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Os(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var y=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,Is=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Ls=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},It={AMERICAN_EXPRESS:"AMEX"},We=e=>It[e.toUpperCase()]??e.toUpperCase(),Ps=(e,t)=>!!e&&!!t&&We(e)===We(t);var Ms=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var $s=(e,t)=>{if(t==null)return "";let r=ia[e];return e===ha.COUNT?t===1?r:`${r}s`:r};var p={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},x={thin:"0.5px",thick:"1px",none:"0px"},ze={minHeight:"28px",fullHeight:"100%"},Us=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Nt():t&&!r?Lt():r?Pt(o):{}:{},Nt=()=>({backgroundColor:p.background,color:p.primary}),Lt=()=>({border:`${x.thin} solid ${p.primary}`,backgroundColor:p.background,color:p.primary,borderRadius:"2px"}),Pt=e=>{let t=Ft(),r=Mt(e);return {borderWidth:t,borderStyle:"solid",borderColor:p.primary,borderBottom:r,height:ze.fullHeight,minHeight:ze.minHeight,display:"flex",alignItems:"center"}},Ft=()=>{let{none:e,thin:t}=x;return `${e} ${t} ${t} ${t}`},Mt=e=>e?`${x.thick} solid ${p.primary}`:`${x.thin} solid ${p.border}`,Ys=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${x.thin} solid ${p.primary}`,borderBottom:`${x.thin} solid ${p.primary}`,borderRight:`${x.thin} solid ${r?p.primary:"none"}`,borderLeft:`${x.thin} solid ${t&&e?p.primary:"transparent"}`}),Bs={left:"flex-start",center:"center",right:"flex-end"};function Ws(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function zs(...e){return e.filter(Boolean).join(" ")||void 0}var Y=B(U$1,W,V);function B(e,t,r){let n=getTimezone(r);return n?{countryCode:e,label:`(GMT${n.utcOffsetStr}) ${Ue(e)??t}`,timezone:r,offset:n.utcOffset/X}:Y}var $t=e=>{let t=getCountry(e),r=t?.timezones[0];if(!(!t||!r))return B(e,t.name,r)},js=e=>$t(e)??Y,Js=e=>{let t=getCountryForTimezone(e),r=getTimezone(e);return !t||!r?Y:B(t.id,t.name,e)};function ti(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ge(Ye(y(t?.name))),type:t?.code,icon:ja[t.code]??ja.CARD,options:t.payment_methods?.map(r=>({name:y(r.name),type:r.code}))}))}}function ri(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:Ge(Ye(y(t?.name))),type:t?.code}))}}var Ke=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],kt={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Ut={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Yt={id:"action_icon",header:"",width:"36px",order:Ke.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Bt=(e=Ke)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [kt,Ut,...t,Yt]},oi=(e,t,r)=>r&&t?Bt():[...e];var ii=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let l=a.code?.toLowerCase();if(!l||!o.has(l))return a;let d=o.get(l)??false;return {...a,default:d,fields:a.fields?.map(g=>({...g,default:d}))}})}));return {...r,layout:s}});var li=(e,t)=>t.some(r=>!!e[r]),ui=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,l=typeof i.header=="function"?Ye(a):i.header;return {...i,header:l}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&je.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var zt={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},pi=e=>typeof window>"u"?"":String(je.sanitize(e||"",zt));var fi=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),xi=e=>e.toISOString();function Ti(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Vt(e){return e!=null&&e!==""}function Ci(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Vt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}export{Xr as $,mo as $a,y as $b,Ar as A,Pn as Aa,Ho as Ab,Ci as Ac,_e as B,Fn as Ba,Ko as Bb,wr as C,Mn as Ca,Xo as Cb,_r as D,$n as Da,Zo as Db,Or as E,ke as Ea,Qo as Eb,Ir as F,kn as Fa,es as Fb,Nr as G,Un as Ga,ts as Gb,Lr as H,yt as Ha,rs as Hb,Pr as I,Yn as Ia,os as Ib,Fr as J,Wn as Ja,Be as Jb,Ne as K,zn as Ka,is as Kb,at as L,Ue as La,as as Lb,ct as M,Gn as Ma,wt as Mb,$r as N,C as Na,ls as Nb,Wr as O,Jn as Oa,us as Ob,Me as P,qn as Pa,_t as Pb,zr as Q,Qn as Qa,ds as Qb,Vr as R,eo as Ra,ms as Rb,Gr as S,to as Sa,gs as Sb,Hr as T,ro as Ta,fs as Tb,P as U,no as Ua,Ts as Ub,Kr as V,oo as Va,Cs as Vb,jr as W,so as Wa,bs as Wb,F as X,lo as Xa,Es as Xb,Jr as Y,$ as Ya,As as Yb,qr as Z,k as Za,_s as Zb,ut as _,uo as _a,Os as _b,Kt as a,Zr as aa,po as ab,Is as ac,jt as b,Qr as ba,go as bb,Ls as bc,Jt as c,en as ca,fo as cb,Ps as cc,qt as d,tn as da,xo as db,Ms as dc,Zt as e,rn as ea,yo as eb,$s as ec,Qt as f,nn as fa,To as fb,p as fc,er as g,on as ga,Co as gb,Us as gc,Qe as h,sn as ha,bo as hb,Ys as hc,tr as i,an as ia,Do as ib,Bs as ic,rr as j,cn as ja,Ao as jb,Ws as jc,f as k,ln as ka,U as kb,zs as kc,nr as l,un as la,wo as lb,js as lc,T as m,dn as ma,Io as mb,Js as mc,gr as n,mn as na,Lo as nb,ti as nc,fr as o,pn as oa,Ro as ob,ri as oc,xr as p,gn as pa,$o as pb,Ke as pc,yr as q,fn as qa,ko as qb,Bt as qc,Tr as r,xn as ra,Uo as rb,oi as rc,hr as s,yn as sa,Yo as sb,ii as sc,Cr as t,Re as ta,Dt as tb,li as tc,br as u,M as ua,Bo as ub,ui as uc,Sr as v,Dn as va,Wo as vb,pi as vc,Oe as w,An as wa,zo as wb,fi as wc,h as x,wn as xa,Vo as xb,xi as xc,Dr as y,_n as ya,Go as yb,Ti as yc,Er as z,Ln as za,Et as zb,Vt as zc};
@@ -1 +1 @@
1
- import {Ra,Qa,$a,Pa,ze,Ae}from'./chunk-OK75VWGZ.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:Ra,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Qa,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?$a:Pa,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?ze:Ae,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
1
+ import {Ra,Qa,$a,Pa,ze,Ae}from'./chunk-YKKS24ES.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:Ra,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Qa,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?$a:Pa,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?ze:Ae,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-Y3Q6TLC6.js';import {yc}from'./chunk-2SKLD6QR.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=yc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
1
+ import {f}from'./chunk-5B3PDE2S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {memo,useId,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import v from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:o}){let[t,r]=useState(false),a=useTheme(),s=()=>{r(true);},p=()=>{r(false);},l=o?a.palette.common.white:a.palette.grey[700],c=t?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:c,fillOpacity:"0.1",onMouseEnter:s,onMouseLeave:p}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:l})]})})}var y=o=>({...o.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:o.spacing(2)}),B=styled(v)(({theme:o})=>({...y(o),background:o.palette.background.gradient.shadedBlue,color:o.palette.common.white,"&:hover":{background:o.palette.background.gradient.shadedBlue,opacity:.8}})),b=styled(v)(({theme:o})=>({...y(o),backgroundColor:o.palette.common.white,borderColor:o.palette.grey[100],color:o.palette.text.primary,"&:hover":{backgroundColor:o.palette.common.white,opacity:.7}}));styled(C)(({theme:o,variant:t})=>({borderRadius:"50px",backgroundColor:t==="active"?alpha(o.palette.text.primary,.1):o.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:o.spacing(.5),paddingBlock:o.spacing(.25),color:t==="active"?o.palette.common.white:o.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:o,variant:t})=>({fill:t==="active"?o.palette.common.white:o.palette.text.primary,color:t==="active"?o.palette.common.white:o.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:o})=>({fontSize:"0.6875rem",color:o.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var I=styled(f)(({theme:o})=>({backgroundColor:"white",boxShadow:o.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),D=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),L=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),k=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var M={active:B,inActive:b};function R({variant:o="inActive",label:t,dropdownOptions:r,...a}){let s=yc(useId(),"dropdown-button"),[p,l]=useState(null),c=useRef(null),f=!!p,g=()=>{l(null);},H=M[o],d=r&&r.length>0,h=d?jsx(m,{isActive:o==="active"}):null,T=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},P=useMemo(()=>(r||[]).map(n=>({...n,onClick:A=>{n?.onClick?.(A),g();}})),[r]);return jsxs(Fragment,{children:[jsx(H,{id:s,"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),T(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(L,{children:[jsx(k,{children:t}),h&&jsx(D,{children:h})]})}),f&&jsx(I,{open:f,onClose:g,anchorEl:p,menuItems:P})]})}R.displayName="DropdownButton";var E=memo(R);var go=E;
2
2
  export{m as a,go as b};
@@ -1 +1 @@
1
- import {R,V}from'./chunk-MN3K3WSB.js';import {yc}from'./chunk-2SKLD6QR.js';import {useId,useState}from'react';import f from'@mui/material/Box';import y from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:t})=>({backgroundColor:n.palette.common.white,border:`1px solid ${n.palette.divider}`,fontSize:"11px",color:n.palette.text.primary,padding:"8px",borderRadius:"4px",display:"flex",alignItems:"center",height:32,gap:"4px",cursor:"pointer",...t&&{borderColor:n.palette.info.dark}}));var M=["EN","AR"];function r({defaultLanguage:n="EN",onChange:t}){let x=yc(useId(),"language-dropdown"),[a,w]=useState(n),[p,i]=useState(null),l=!!p,L=o=>{i(o.currentTarget);},d=()=>{i(null);},C=o=>{w(o),t?.(o),d();};return jsx(y,{onClickAway:d,children:jsxs(f,{id:x,"data-testid":"LanguageDropdown",children:[jsx(m,{onClick:L,open:l,children:jsx(f,{component:"span",children:a})}),jsx(R,{open:l,anchorEl:p,sx:{marginTop:"8px",marginBottom:"8px",width:31.8},children:M.map(o=>o!==a&&jsx(V,{onClick:()=>C(o),startAdornment:null,children:o},o))})]})})}var F=r;export{F as a};
1
+ import {R,V}from'./chunk-OBBOIKJ2.js';import {yc}from'./chunk-PLMJIRXJ.js';import {useId,useState}from'react';import f from'@mui/material/Box';import y from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:t})=>({backgroundColor:n.palette.common.white,border:`1px solid ${n.palette.divider}`,fontSize:"11px",color:n.palette.text.primary,padding:"8px",borderRadius:"4px",display:"flex",alignItems:"center",height:32,gap:"4px",cursor:"pointer",...t&&{borderColor:n.palette.info.dark}}));var M=["EN","AR"];function r({defaultLanguage:n="EN",onChange:t}){let x=yc(useId(),"language-dropdown"),[a,w]=useState(n),[p,i]=useState(null),l=!!p,L=o=>{i(o.currentTarget);},d=()=>{i(null);},C=o=>{w(o),t?.(o),d();};return jsx(y,{onClickAway:d,children:jsxs(f,{id:x,"data-testid":"LanguageDropdown",children:[jsx(m,{onClick:L,open:l,children:jsx(f,{component:"span",children:a})}),jsx(R,{open:l,anchorEl:p,sx:{marginTop:"8px",marginBottom:"8px",width:31.8},children:M.map(o=>o!==a&&jsx(V,{onClick:()=>C(o),startAdornment:null,children:o},o))})]})})}var F=r;export{F as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-N76FMC7D.js';import {yc}from'./chunk-2SKLD6QR.js';import {wi,A}from'./chunk-OK75VWGZ.js';import {useId}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var s=styled(a)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),d=styled(g)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var v=({value:o,name:c,placeholder:l,onSearchChange:u,onSearchReset:f,...h})=>{let I=yc(useId(),"search-list-input");return jsx(d,{id:I,"data-testid":"SearchListInput",...h,children:jsx(s,{className:"input",name:c,placeholder:l,onChange:t=>u(t.target.value),onKeyDown:t=>t.stopPropagation(),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(g,{component:"img","data-icon":o?"close":"search",src:o?wi:A,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:f})})})},m=v;var R=m;export{R as a};
1
+ import {a}from'./chunk-UZSTD2CE.js';import {yc}from'./chunk-PLMJIRXJ.js';import {wi,A}from'./chunk-YKKS24ES.js';import {useId}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var s=styled(a)(({theme:o})=>({border:`1px solid ${o.palette.divider}`,".icon":{width:14}})),d=styled(g)(()=>({padding:"8px 16px","> div + div":{marginTop:"8px"}}));var v=({value:o,name:c,placeholder:l,onSearchChange:u,onSearchReset:f,...h})=>{let I=yc(useId(),"search-list-input");return jsx(d,{id:I,"data-testid":"SearchListInput",...h,children:jsx(s,{className:"input",name:c,placeholder:l,onChange:t=>u(t.target.value),onKeyDown:t=>t.stopPropagation(),value:o,inputProps:{autoComplete:"off"},endAdornment:jsx(g,{component:"img","data-icon":o?"close":"search",src:o?wi:A,alt:"search",className:"icon",sx:{cursor:o?"pointer":"default"},onClick:f})})})},m=v;var R=m;export{R as a};