@tap-payments/os-micro-frontend-shared 0.3.151 → 0.3.153

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 (106) hide show
  1. package/build/_chunks/{chunk-2WHC5EPT.js → chunk-25QNT5P5.js} +1 -1
  2. package/build/_chunks/{chunk-BNWEQO2B.js → chunk-2HOISDAH.js} +1 -1
  3. package/build/_chunks/{chunk-JVVVLEUF.js → chunk-2NZGAW6S.js} +1 -1
  4. package/build/_chunks/{chunk-X2IIYK74.js → chunk-2VUZLBHU.js} +1 -1
  5. package/build/_chunks/{chunk-KW2A7ATU.js → chunk-35TEE4H5.js} +1 -1
  6. package/build/_chunks/{chunk-KCXHCJAA.js → chunk-3DIM7TK6.js} +1 -1
  7. package/build/_chunks/{chunk-4IRFUOW5.js → chunk-3IPLKT42.js} +1 -1
  8. package/build/_chunks/{chunk-CO3EEXJQ.js → chunk-4IWLIKKI.js} +1 -1
  9. package/build/_chunks/{chunk-6NNBWGIW.js → chunk-66DANLIC.js} +1 -1
  10. package/build/_chunks/{chunk-VB7FCFAH.js → chunk-7MI55RIT.js} +1 -1
  11. package/build/_chunks/{chunk-ABYPGA6A.js → chunk-AMSY5XTV.js} +1 -1
  12. package/build/_chunks/{chunk-77BF7TSG.js → chunk-BM6KX6IL.js} +1 -1
  13. package/build/_chunks/{chunk-TNV4RSI6.js → chunk-H37QSJDD.js} +1 -1
  14. package/build/_chunks/{chunk-5ALWC7FS.js → chunk-IM3LJTBS.js} +1 -1
  15. package/build/_chunks/{chunk-MDJ47T6T.js → chunk-JRR2QYFF.js} +1 -1
  16. package/build/_chunks/{chunk-6OIXV5L2.js → chunk-LDNMTZPN.js} +1 -1
  17. package/build/_chunks/{chunk-KKIVDOOU.js → chunk-PDIRJI75.js} +1 -1
  18. package/build/_chunks/chunk-RBF2Y4OM.js +1 -0
  19. package/build/_chunks/{chunk-NY3LCGE5.js → chunk-RBUKY72C.js} +1 -1
  20. package/build/_chunks/{chunk-OVUUOEZN.js → chunk-SBWGLI2Z.js} +1 -1
  21. package/build/_chunks/chunk-VFZLSRQH.js +1 -0
  22. package/build/_chunks/{chunk-DBKRFR7R.js → chunk-WFIDLFYJ.js} +1 -1
  23. package/build/_chunks/{chunk-7OEJSZPG.js → chunk-WPZRME3K.js} +1 -1
  24. package/build/_chunks/chunk-Y3SU6WTJ.js +1 -0
  25. package/build/_chunks/chunk-ZPGWJ5RD.js +2 -0
  26. package/build/components/ActiveFilterChip/index.js +1 -1
  27. package/build/components/Amount/index.js +1 -1
  28. package/build/components/AmountConversionFilter/index.js +1 -1
  29. package/build/components/AmountInput/index.js +1 -1
  30. package/build/components/AmountSlider/index.js +1 -1
  31. package/build/components/AppServices/index.js +1 -1
  32. package/build/components/AppServicesBar/index.js +1 -1
  33. package/build/components/AppWindowWrapper/AppWindow/AppWindow.d.ts +1 -1
  34. package/build/components/AppWindowWrapper/AppWindow/type.d.ts +2 -0
  35. package/build/components/AppWindowWrapper/AppWindow/utils.d.ts +1 -1
  36. package/build/components/AppWindowWrapper/context/Provider.d.ts +1 -1
  37. package/build/components/AppWindowWrapper/context/type.d.ts +6 -0
  38. package/build/components/AppWindowWrapper/index.js +1 -1
  39. package/build/components/BrandLogo/index.js +1 -1
  40. package/build/components/ColumnViews/index.js +1 -1
  41. package/build/components/CopyImage/index.js +1 -1
  42. package/build/components/CountryFilter/index.js +1 -1
  43. package/build/components/CurrencyFilter/index.js +1 -1
  44. package/build/components/Customer/index.js +1 -1
  45. package/build/components/DateFilter/index.js +1 -1
  46. package/build/components/Discount/index.js +1 -1
  47. package/build/components/Dropdown2/index.js +1 -1
  48. package/build/components/DropdownButton/index.js +1 -1
  49. package/build/components/DropdownMenu/index.js +1 -1
  50. package/build/components/ExpandableSideBar/index.js +1 -1
  51. package/build/components/FileInputPreview/index.js +1 -1
  52. package/build/components/FilterDropdown/index.js +1 -1
  53. package/build/components/Filters/index.js +1 -1
  54. package/build/components/JSONViewer/JSONViewer.d.ts +1 -1
  55. package/build/components/JSONViewer/components/CopiedIndicator/CopiedIndicator.d.ts +11 -0
  56. package/build/components/JSONViewer/components/CopiedIndicator/index.d.ts +1 -0
  57. package/build/components/JSONViewer/context/Provider.d.ts +3 -2
  58. package/build/components/JSONViewer/index.js +1 -1
  59. package/build/components/JSONViewer/type.d.ts +2 -1
  60. package/build/components/LanguageDropdown/index.js +1 -1
  61. package/build/components/ListColumnFilter/index.js +1 -1
  62. package/build/components/ListHeader/index.js +1 -1
  63. package/build/components/MenuItem/index.js +1 -1
  64. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  65. package/build/components/MerchantLogo/index.js +1 -1
  66. package/build/components/MerchantsDropdown/index.js +1 -1
  67. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  68. package/build/components/MultiSelectWithSearch/index.js +1 -1
  69. package/build/components/NestedDropdown/index.js +1 -1
  70. package/build/components/PartnersFilter/index.js +1 -1
  71. package/build/components/PaymentSourceFilter/index.js +1 -1
  72. package/build/components/PhoneFilter/index.js +1 -1
  73. package/build/components/RFH/index.js +1 -1
  74. package/build/components/RadioGroup/index.js +1 -1
  75. package/build/components/ReceiptsViewer/index.js +1 -1
  76. package/build/components/ReferenceTypeFilter/index.js +1 -1
  77. package/build/components/SalesChannelFilter/index.js +1 -1
  78. package/build/components/SearchButton/index.js +1 -1
  79. package/build/components/SelectWithSearch/index.js +1 -1
  80. package/build/components/StatusBar/index.js +1 -1
  81. package/build/components/StatusButton/index.js +1 -1
  82. package/build/components/StatusFilter/index.js +1 -1
  83. package/build/components/StatusIcons/index.js +1 -1
  84. package/build/components/TableCells/index.js +1 -1
  85. package/build/components/TableReports/index.js +1 -1
  86. package/build/components/TreeDropdown/index.js +1 -1
  87. package/build/components/VAT/index.js +1 -1
  88. package/build/components/VerificationIcon/index.js +1 -1
  89. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  90. package/build/components/VirtualTables/index.js +1 -1
  91. package/build/components/WindowSideBar/index.js +1 -1
  92. package/build/components/index.d.ts +1 -1
  93. package/build/components/index.js +1 -1
  94. package/build/components/primitives/Backdrop/style.d.ts +2 -2
  95. package/build/components/primitives/Backdrop/type.d.ts +2 -4
  96. package/build/components/primitives/index.js +1 -1
  97. package/build/index.js +1 -1
  98. package/package.json +1 -1
  99. package/build/_chunks/chunk-C6FBKUMX.js +0 -1
  100. package/build/_chunks/chunk-DV5XS66I.js +0 -2
  101. package/build/_chunks/chunk-L2RZBHC7.js +0 -1
  102. package/build/_chunks/chunk-OK6HCBL2.js +0 -1
  103. package/build/_chunks/chunk-ULE5G4WB.js +0 -1
  104. package/build/components/WindowBackdrop/WindowBackdrop.d.ts +0 -6
  105. package/build/components/WindowBackdrop/index.d.ts +0 -1
  106. package/build/components/WindowBackdrop/index.js +0 -1
@@ -1,2 +0,0 @@
1
- import {kc,yc,Zb,xa as xa$1,jc,ab}from'./chunk-2CIV4TII.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Q from'@mui/material/Box';import Fa,{circularProgressClasses}from'@mui/material/CircularProgress';import Ta from'@mui/material/ButtonBase';import {styled,useTheme,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import $e from'@mui/material/SvgIcon';import Wa from'@mui/material/Checkbox';import Ha from'@mui/material/FormControlLabel';import Ka from'@mui/material/Switch';import qa from'@mui/material/Typography';import as from'@mui/material/Radio';import xs,{tooltipClasses}from'@mui/material/Tooltip';import Ss from'@mui/material/Skeleton';import vs from'@mui/material/Avatar';import Fs from'@mui/material/Divider';import Ws from'@mui/material/Collapse';import {createPortal}from'react-dom';import In,{SliderThumb}from'@mui/material/Slider';import Fn from'@mui/material/FormControl';import zn from'@mui/material/InputLabel';import Rn from'@mui/material/Input';import Vn from'@mui/material/InputBase';import Un from'@mui/material/Accordion';import Gn from'@mui/material/AccordionDetails';import _n from'@mui/material/AccordionSummary';import ei from'@mui/material/Popper';import ci from'@mui/material/DialogActions';import fi from'@mui/material/DialogTitle';import ii from'@mui/material/Dialog';import pi from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Oi from'@mui/material/Stack';var E="os-shared-Button",k={root:`${E}-root`,content:`${E}-content`,startIcon:`${E}-startIcon`,endIcon:`${E}-endIcon`,loading:`${E}-loading`,loadingSpinner:`${E}-loadingSpinner`},io={sm:{height:24,padding:"8px 16px",fontSize:"10px"},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px"},lg:{height:40,padding:"8px 32px",fontSize:"12px"}},po={sm:12,md:12,lg:14};var lo=styled(Ta,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...io[t],fontWeight:t==="sm"?e.typography.fontWeightBold:e.typography.fontWeightBolder??700,...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var co=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:p=false,disabled:i,className:l,sx:d,...m},c)=>jsxs(lo,{ref:c,className:kc(k.root,l),$variant:o,$size:t,$fullWidth:p,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:d,...m,children:[jsxs(Q,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Q,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(Q,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Q,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Fa,{className:k.loadingSpinner,size:po[t],color:"inherit"})})]}));co.displayName="Button";var fo=memo(co);var za="os-shared-Icon",oe={root:`${za}-root`};var yo=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var uo=forwardRef(({className:e,sx:o,...t},r)=>jsx(yo,{className:kc(oe.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));uo.displayName="Icon";var xo=memo(uo);var Me="os-shared-Checkbox",$={root:`${Me}-root`,control:`${Me}-control`,label:`${Me}-label`};var go=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),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:e?"#D2D5D8":t.common.white})]})},Co=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsx($e,{viewBox:"0 0 11 11",sx:{width:11,height:11},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":t.common.white,stroke:e?"#D2D5D8":t.grey[500],strokeWidth:"1.2"})})},ho=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]})};var No=styled(Wa)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),ko=styled(Ha)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var wo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},p)=>{let i=yc(useId(),"checkbox"),l=jsx(No,{id:i,ref:p,disableRipple:true,disabled:t,checkedIcon:jsx(go,{disabled:t}),icon:jsx(Co,{disabled:t}),indeterminateIcon:jsx(ho,{disabled:t}),"data-testid":"Checkbox",className:kc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(ko,{className:kc($.root,a),sx:r,control:l,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):l});wo.displayName="Checkbox";var Io=memo(wo);var ja="os-shared-Switch",te={root:`${ja}-root`};var Bo=styled(Ka)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var vo=forwardRef(({className:e,sx:o,...t},r)=>jsx(Bo,{ref:r,className:kc(te.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));vo.displayName="Switch";var Po=memo(vo);var Ya="os-shared-Typography",re={root:`${Ya}-root`};var To=styled(qa)(({theme:e})=>({color:e.palette.text.primary}));var Mo=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...p},i)=>{let l=useTheme(),d={regular:l.typography.fontWeightRegular,medium:l.typography.fontWeightMedium,semibold:l.typography.fontWeightBold,bold:l.typography.fontWeightBolder??700},m=o!==void 0?typeof o=="number"?o:d[o]:void 0,c=Array.isArray(s)?s:[s];return jsx(To,{ref:i,className:kc(re.root,a),variant:e,sx:[m!==void 0&&{fontWeight:m},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...c],"data-testid":"Typography",...p})});Mo.displayName="Typography";var $o=memo(Mo);var rs="os-shared-RadioButton",ae={root:`${rs}-root`},Lo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var ze=styled("span")({display:"flex",alignItems:"center",justifyContent:"center"}),Re=styled("span",{shouldForwardProp:e=>e!=="$checked"&&e!=="$disabled"})(({theme:e,$checked:o=false,$disabled:t=false})=>({borderRadius:"50%","--icon-size":"11px",width:"var(--icon-size)",height:"var(--icon-size)",display:"block",boxSizing:"border-box",...o?{backgroundColor:t?"#BDC1CC":e.palette.info.dark,...!t&&{boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"},"&::before":{display:"block",width:"var(--icon-size)",height:"var(--icon-size)",backgroundColor:t?"#BDC1CC":e.palette.info.dark,borderRadius:"50%",backgroundImage:`radial-gradient(${e.palette.common.white},${e.palette.common.white} 28%,transparent 32%)`,content:'""'}}:{border:`1px solid ${t?e.palette.grey[800]:e.palette.grey[700]}`,...t&&{backgroundColor:e.palette.grey[400]}}})),Fo=styled(as,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({theme:e,$iconSize:o,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:s})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:s,cursor:"pointer",color:e.palette.grey[500],"&.Mui-checked":{color:t??e.palette.info.dark},...a&&{"&:hover":{backgroundColor:"transparent",color:a}},"&.Mui-disabled":{color:r??"#C7C7CC"}}));function zo(e="sm"){return Lo[e]}var Ro=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:p,sx:i,disableRipple:l=true,icon:d,disabled:m,...c},y)=>{let f=zo(e);return jsx(Fo,{ref:y,className:kc(ae.root,p),"data-testid":"RadioButton",size:f.muiSize,disableRipple:l,disabled:m,icon:d??jsx(ze,{children:jsx(Re,{$checked:false,$disabled:m})}),checkedIcon:o??jsx(ze,{children:jsx(Re,{$checked:true,$disabled:m})}),$iconSize:s??f.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:f.maxWidth,sx:i,...c})});Ro.displayName="RadioButton";var Ao=memo(Ro);var se="os-shared-CircularProgress",L={root:`${se}-root`,progress:`${se}-progress`,labelOverlay:`${se}-labelOverlay`,labelText:`${se}-labelText`};var Eo=styled(Fa)(({theme:e})=>({color:e.palette.common.blue??"#147DC5",background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Wo=styled(Q)(()=>({position:"relative",display:"inline-flex"})),Ho=styled(Q)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Vo=styled(qa)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var Oo=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},p)=>{let i=e==="determinate"&&o;return jsxs(Wo,{className:kc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Eo,{ref:p,variant:e,value:t,className:L.progress,...s}),i&&jsx(Ho,{className:L.labelOverlay,children:jsx(Vo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Oo.displayName="CircularProgress";var Zo=memo(Oo);var ys="os-shared-Tooltip",ie={wrapper:`${ys}-wrapper`};var Uo=styled(({className:e,...o})=>createElement(xs,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function _o({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...p}){return jsx(Uo,{className:e,title:o,placement:t,arrow:true,sx:s,...p,children:jsx(Q,{display:"flex",alignItems:"center",className:ie.wrapper,...a,children:r})})}_o.displayName="Tooltip";var Xo=memo(_o);var bs="os-shared-Skeleton",pe={root:`${bs}-root`},Yo="rounded",qo=16;var Jo=styled(Ss)(()=>({}));var Qo=forwardRef(({className:e,sx:o,variant:t=Yo,height:r=qo,...a},s)=>jsx(Jo,{ref:s,className:kc(pe.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Qo.displayName="Skeleton";var et=memo(Qo);var Bs="os-shared-Avatar",le={root:`${Bs}-root`},ot={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var tt=styled(vs,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=ot[o];return {width:t,height:t,fontSize:r,fontWeight:e.typography.fontWeightBold,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var rt=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(tt,{ref:s,className:kc(le.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));rt.displayName="Avatar";var at=memo(rt);var Ls="os-shared-Divider",me={root:`${Ls}-root`};var st=styled(Fs)(()=>({}));var nt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(st,{ref:a,className:kc(me.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));nt.displayName="Divider";var it=memo(nt);var Es="os-shared-Collapse",de={root:`${Es}-root`},pt=true,lt=300;var mt=styled(Ws)(()=>({}));var dt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=pt,timeout:a=lt,...s},p)=>jsx(mt,{ref:p,className:kc(de.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));dt.displayName="Collapse";var ct=memo(dt);var js="os-shared-Badge",ce={root:`${js}-root`},ft={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"},yt=["primary","secondary","neutral","dark"];var Gs={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark,red:e=>e.palette.error.light},_s={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Xs(e,o){let t=ft[e];return t||(Gs[e]?.(o)??o.palette.common.white)}function Ys(e,o){return yt.includes(e)?o.palette.common.white:_s[e]?.(o)??o.palette.common.white}var ut=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Xs(o,e),color:Ys(o,e),fontSize:"0.6rem",fontWeight:e.typography.fontWeightBold,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var xt=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:p,...i},l)=>jsx(ut,{ref:l,className:kc(ce.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:p}));xt.displayName="Badge";var gt=memo(xt);var en="os-shared-Backdrop",fe={root:`${en}-root`};var Ct=styled(Q)(({theme:e})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(e.palette.common.black,.3)}));var ht=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},p)=>{if(!t)return null;let i=l=>{r?.(),a?.(l);};return createPortal(jsx(Ct,{ref:p,className:kc(fe.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});ht.displayName="Backdrop";var bt=memo(ht);var ye="os-shared-CopyButton",B={root:`${ye}-root`,icon:`${ye}-icon`,copyIcon:`${ye}-copyIcon`,copiedIcon:`${ye}-copiedIcon`},St=2e3,Nt=200;var It=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Bt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),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:o.common.white})]})})};var Pt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),De=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${Nt}ms ease`}));var Tt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=St,onClick:a,...s},p)=>{let[i,l]=useState(false),d=m=>{m.stopPropagation(),ab(t),l(true),setTimeout(()=>l(false),r),a?.(m);};return jsxs(Pt,{ref:p,className:kc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:d,...s,children:[jsx(De,{className:kc(B.icon,B.copyIcon),$visible:!i,children:jsx(It,{})}),jsx(De,{className:kc(B.icon,B.copiedIcon),$visible:i,children:jsx(Bt,{})})]})});Tt.displayName="CopyButton";var Mt=memo(Tt);var Ee="os-shared-ProgressBar",H={root:`${Ee}-root`,fill:`${Ee}-fill`,text:`${Ee}-text`};var Lt=styled(Q,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue??"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:alpha(e.palette.text.primary,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}})),Ft=styled(Q,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(e.palette.text.primary,26/255),borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(e.palette.text.primary,0)}})),zt=styled(qa,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:e.palette.common.white,padding:"2px 4px",...o===0&&{color:alpha(e.palette.grey.A100,.5)}}));var At=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Lt,{ref:r,className:kc(H.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ft,{className:H.fill,$value:t,children:jsxs(zt,{className:H.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});At.displayName="ProgressBar";var Dt=memo(At);var ge="os-shared-Chip",v={root:`${ge}-root`,text:`${ge}-text`,copyButton:`${ge}-copyButton`,icon:`${ge}-icon`},Et=2e3,He=150;var Vt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Ot=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),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:o.common.white})]})})};var he=styled(Q,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:`${e.palette.common.white} 7px 0px 8px 2px`},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Ve=styled(Q)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),jt=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:`opacity ${He}ms ease`,"&:hover":{opacity:1}})),Oe=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${He}ms ease`}));var Kt=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:p=false,copyText:i,unknownText:l="Unknown",disableAnimation:d=false,...m},c)=>{let[y,f]=useState(false),g=x=>{x.stopPropagation(),i&&(ab(i),f(true),setTimeout(()=>f(false),Et));},C={$variant:a,$hasIcon:r!=null,$isSelected:p,$disableAnimation:d},u=kc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(he,{ref:c,className:u,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...m,children:[jsx(Ve,{className:v.text,"data-is-arabic":typeof t=="string"&&Zb(t),children:t}),jsxs(jt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Oe,{$visible:!y,children:jsx(Vt,{})}),jsx(Oe,{$visible:y,children:jsx(Ot,{})})]})]}):jsxs(he,{ref:c,className:u,sx:N,"data-testid":"Chip",...C,...m,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(Ve,{className:v.text,children:t})]}):jsx(he,{className:u,sx:N,"data-testid":"Chip",...C,...m,children:l})});Kt.displayName="Chip";var Ut=memo(Kt);var je="os-shared-Slider",T={root:`${je}-root`,thumb:`${je}-thumb`,thumbIcon:`${je}-thumbIcon`},Ke=["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(", ");var Gt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var _t=styled(In)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:Ke,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Ke}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function $n({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,o),...t,children:[e,jsx(Gt,{className:T.thumbIcon})]})}var Xt=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:p,onChange:i,slots:l,...d},m)=>{let c=useCallback((y,f)=>{i(f);},[i]);return jsx(_t,{ref:m,className:kc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:p,onChange:c,...d,slots:{thumb:$n,...l}})});Xt.displayName="Slider";var Yt=memo(Xt);var Ue="os-shared-Input",O={root:`${Ue}-root`,label:`${Ue}-label`,input:`${Ue}-input`},Jt={sm:28,md:32,labelled:40},Qt=["e","E","+","-"],er=/^[0-9.]$/,or=xa$1();var tr=(e,o)=>Jt[e?"labelled":o],rr=styled(Rn,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:tr(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !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}}})),ar=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),sr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:tr(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.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:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var ir=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:p=false,type:i,id:l,className:d,sx:m,onKeyDown:c,onWheel:y,...f},g)=>{let C=!!e,u=i==="number",S=x=>{let D=x.metaKey||x.ctrlKey||x.altKey,Te=x.key.length===1;(Qt.includes(x.key)||or&&Te&&!D&&!er.test(x.key))&&x.preventDefault(),c?.(x);},N=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(sr,{className:kc(O.root,d),sx:m,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(ar,{className:O.label,htmlFor:l,children:e}),jsx(rr,{id:l,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:p,$size:o,onKeyDown:u?S:c,onWheel:u?N:y,...f})]})});ir.displayName="Input";var pr=memo(ir);var _e="os-shared-Textarea",Z={root:`${_e}-root`,label:`${_e}-label`,textarea:`${_e}-textarea`},Xe=20;var lr=styled(Vn,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Xe,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),mr=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),dr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Xe:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.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:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var fr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:p,id:i,className:l,sx:d,...m},c)=>{let y=!!e;return jsxs(dr,{className:kc(Z.root,l),sx:d,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(mr,{className:Z.label,htmlFor:i,children:e}),jsx(lr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:p,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...m})]})});fr.displayName="Textarea";var yr=memo(fr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var xr=()=>{let{palette:e}=useTheme();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.text.primary,stroke:e.text.primary,strokeWidth:"0.1"})})};var Cr=styled(Un)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),hr=styled(_n)(({theme:e})=>({background:e.palette.grey.A50??"#fbfbfb",minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),br=styled(Gn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),Sr=styled(Q)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Nr=styled(Q)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Ir=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:p,slotProps:i={},disabled:l=false,expandIcon:d,className:m,sx:c,...y},f)=>{let g=e!==void 0,[C,u]=useState(o),S=g?e:C,N=(_i,ro)=>{g||u(ro),t?.(ro);},{showArrow:x=true,...D}=i.label??{},{className:Te,sx:Ia,...Ba}=i.root??{},va=d??(x?jsx(Sr,{component:"span",className:b.expandIcon,children:jsx(xr,{})}):null),Pa=jsxs(Fragment,{children:[s!=null&&jsx(Q,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:jc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(Nr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),p!=null&&jsx(Q,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:p})]});return jsxs(Cr,{ref:f,"data-testid":"Accordion",disabled:l,expanded:S,onChange:N,className:kc(b.root,m,Te),sx:jc(c??{},Ia),...Ba,...y,children:[jsx(hr,{className:b.summary,expandIcon:va,"aria-expanded":S,...D,children:Pa}),jsx(br,{className:b.content,...i.content,children:a})]})});Ir.displayName="Accordion";var Br=memo(Ir);var vr="os-shared-Menu",X={popper:`${vr}-popper`,panel:`${vr}-panel`},Pr=12;var Mr=styled(ei)({}),$r=styled(Q,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Fr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:p,sx:i,...l},d)=>{let[m,c]=useState(false),f=useMemo(()=>Children.count(t),[t])>Pr&&m,{onScroll:g,className:C,sx:u,...S}=s??{},N=useCallback(D=>{c((D.currentTarget.scrollTop??0)>0),g?.(D);},[g]),x=kc(X.panel,C,"MuiPopper-dropdown");return jsx(Mr,{ref:d,className:kc(X.popper,p),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...l,children:jsx($r,{$showShadow:f,onScroll:N,className:x,sx:jc(i??{},u),...S,children:t})})});Fr.displayName="Menu";var zr=memo(Fr);var Se="os-shared-Dialog",R={root:`${Se}-root`,title:`${Se}-title`,content:`${Se}-content`,actions:`${Se}-actions`};var Ar=styled(ii)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),Dr=styled(pi)(({theme:e})=>({padding:e.spacing(2)}));var Er=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:p,...i},l)=>jsxs(Ar,{ref:l,"data-testid":"Dialog",open:a,onClose:r,className:kc(R.root,s),sx:p,...i,children:[e&&jsx(fi,{className:R.title,children:e}),jsx(Dr,{className:R.content,children:t}),o&&jsx(ci,{className:R.actions,children:o})]}));Er.displayName="Dialog";var Wr=memo(Er);var Ne="os-shared-MenuItem",M={root:`${Ne}-root`,indicator:`${Ne}-indicator`,content:`${Ne}-content`,disabled:`${Ne}-disabled`},A={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Vr=()=>{let{palette:e}=useTheme();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.info.dark}),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:e.common.white})]})},Or=()=>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"})}),Zr=()=>{let{palette:e}=useTheme();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.info.dark,stroke:e.info.dark,strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Ur=styled(Q,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:e.palette.text.primary})),Je=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ci(e,o){return o?A.indeterminate:e?A.checked:A.unchecked}var hi={[A.unchecked]:Or,[A.checked]:Vr,[A.indeterminate]:Zr};function bi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(Je,{className:M.indicator,"aria-hidden":true,children:e});let r=Ci(o,t),a=hi[r];return jsx(Je,{className:M.indicator,"aria-hidden":true,children:jsx(a,{})})}var Gr=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:p,sx:i,...l},d)=>{let m=kc(M.root,"menu-item",o&&M.disabled,p);return jsxs(Ur,{ref:d,"data-testid":"MenuItem",className:m,sx:i,onClick:o?void 0:a,$isDisabled:o,...l,children:[bi(r,e,t),jsx("span",{className:M.content,children:s})]})});Gr.displayName="MenuItem";var _r=memo(Gr);var Xr="os-shared-ToggleButtons",Y={root:`${Xr}-root`,button:`${Xr}-button`};var Jr=styled(Q)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),ki=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),Qr=styled(Q,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:e.typography.fontWeightMedium,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?ki(e):{backgroundColor:"transparent",boxShadow:"none"}}));function oa({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:p,sx:i},l){let{className:d,sx:m,...c}=r??{},y=kc(Y.root,p,d);return jsx(Jr,{ref:l,id:s,"data-testid":"ToggleButtons",className:y,sx:jc(i??{},m),...c,children:e.map(f=>jsx(Qr,{className:Y.button,$isActive:o===f.key,onClick:()=>t(f.key),...a,children:f.content},f.key))})}var Bi=forwardRef(oa);oa.displayName="ToggleButtons";var ta=memo(Bi);var vi="os-shared-LazyImage",we={root:`${vi}-root`},ra={display:"flex",justifyContent:"center",alignItems:"center"},Ie={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 aa=styled(Q)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Be(e){return e!=null&&e in Ie}var Ri=LazyLoadImage,na=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...p},i)=>{let[l,d]=useState(Be(e));if(useEffect(()=>{if(!Be(e)){d(false);return}d(true),Ie[e]().finally(()=>{d(false);});},[e]),l)return null;let{className:m,sx:c,style:y,...f}=o??{},g=Be(e)||!!s||y!=null;return jsx(aa,{component:"span",...f,className:kc(we.root,m??r),sx:c!=null?jc(a??{},c):a,children:jsx(Ri,{...p,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...ra,...y}}:void 0})})});na.displayName="LazyImage";var ia=memo(na);var Qe="os-shared-FieldFeedback",K={root:`${Qe}-root`,icon:`${Qe}-icon`,message:`${Qe}-message`};var la=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom?.[500]??"#FF7A00":t.error.light;return jsx($e,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:r})})})},ma=e=>jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"#39953E"})})}),da=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:12,height:12},...e,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:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function ca(e,o){let t=e.palette.custom?.[500]??"#FF7A00";return {warning:{backgroundColor:alpha(t,.15),textColor:t},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var fa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=ca(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),ya=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=ca(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ua=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 Ei(e){return e!=null&&e!==""}function Wi(e){switch(e){case "success":return jsx(ma,{});case "info":return jsx(da,{});case "error":case "warning":return jsx(la,{severity:e})}}var xa=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Ei(o))return null;let p=e;return jsxs(fa,{ref:s,"data-testid":"FieldFeedback",className:kc(K.root,r),sx:a,$feedbackType:p,children:[t??jsx(ua,{className:K.icon,children:Wi(p)}),jsx(ya,{className:K.message,$feedbackType:p,children:o})]})});xa.displayName="FieldFeedback";var ga=memo(xa);var Vi="os-shared-ScrollLoader",Pe={root:`${Vi}-root`},Ca=50;var ha=styled(Oi)({overflow:"auto",height:"100%",maxHeight:"100%"});function to(e,o=Ca){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var ka=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:p,id:i,...l},d)=>{let[m,c]=useState(false),y=useRef(e),f=useRef(null);y.current=e;let g=useCallback(()=>{o&&!r&&y.current();},[o,r]),C=useCallback(()=>{let u=f.current;u&&to(u)&&g();},[g]);return useEffect(()=>{let u=f.current;if(u)return u.addEventListener("scroll",C),()=>u.removeEventListener("scroll",C)},[C]),useEffect(()=>{let u=f.current;if(!u||t||m)return;let S=window.setTimeout(()=>{c(true),to(u)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,m]),jsx(ha,{ref:u=>{f.current=u,typeof d=="function"?d(u):d&&(d.current=u);},id:i,"data-testid":"ScrollLoader",className:kc(Pe.root,s),sx:p,...l,children:a})});ka.displayName="ScrollLoader";var wa=memo(ka);
2
- export{ga as $,fe as A,bt as B,B as C,Mt as D,H as E,Dt as F,v as G,Ut as H,T as I,Yt as J,O as K,pr as L,Z as M,yr as N,b as O,Br as P,X as Q,zr as R,R as S,Wr as T,M as U,_r as V,Y as W,ta as X,we as Y,ia as Z,K as _,k as a,Pe as aa,fo as b,wa as ba,oe as c,xo as d,$ as e,Io as f,te as g,Po as h,re as i,$o as j,ae as k,Ao as l,L as m,Zo as n,ie as o,Xo as p,pe as q,et as r,le as s,at as t,me as u,it as v,de as w,ct as x,ce as y,gt as z};
@@ -1 +0,0 @@
1
- import {yc}from'./chunk-2CIV4TII.js';import {memo,useId}from'react';import {createPortal}from'react-dom';import e from'@mui/material/Backdrop';import {alpha}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';function n(r){let p=yc(useId(),"window-backdrop");return createPortal(jsx(e,{id:p,sx:{zIndex:1,backgroundColor:d=>alpha(d.palette.common.black,.3)},...r}),document.body)}var i=memo(n);export{i as a};
@@ -1 +0,0 @@
1
- import {c as c$2}from'./chunk-NBGDT62B.js';import {c,d}from'./chunk-PPC5EHKW.js';import {a,c as c$1,d as d$1}from'./chunk-RMTT4FOG.js';import {b,a as a$1}from'./chunk-O5KFJKRT.js';import {yc,xa}from'./chunk-2CIV4TII.js';import'./chunk-BXMBE224.js';import {ua,$k,al,si,Fk,B,Ud,we,ve,ta,ra,sa}from'./chunk-KCEYICHJ.js';import ho,{memo,createContext,useState,useRef,useId,useMemo,useEffect,useCallback,useContext}from'react';import {styled,Popover,Input,Typography,Box,Dialog}from'@mui/material';import R from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {Resizable}from're-resizable';import jo from'react-draggable';import yo from'@mui/material/Box';import {useTranslation}from'react-i18next';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var I=37,Re="32px",J=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var go=44,Ie={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#956ea5","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:`calc(100% - ${go+I}px`,overflow:"auto"},gt={...Ie,background:"transparent","--w-rjv-line-color":"transparent"},ht=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0})),Je=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"}));styled(Input)(({theme:e})=>({border:`1px solid ${e.palette.grey[100]}`,borderRadius:"0.25rem",padding:"0.375rem",fontSize:"0.625rem",outline:"none",width:"100%",maxWidth:"150px",height:"1.5rem",backgroundColor:e.palette.background.paper,"&:focus":{border:`1px solid ${e.palette.info.dark}`}}));var ke=styled(Typography)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",padding:"0px 8px",justifyContent:"center",alignItems:"center",borderRadius:"37.5px",backgroundColor:"#fff"})),Be=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:i,theme:o})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:o.shadows[23]},...t&&{paddingTop:Re,transition:"padding 0.3s ease-in-out",...i&&{width:"50%"}}})),Te=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:I,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!t&&{left:0}})),Pe=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),Ee=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),xt=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:t})=>({width:"100%",height:"100%",overflowY:"auto",overflowX:"hidden",background:"#fff",zIndex:20,position:"relative",display:"flex",flexDirection:"column",borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...t&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"100vh"}}));styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:t})=>({backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:e?"100vh":"100%",overflowY:"auto",overflowX:"hidden",position:"absolute",width:e?"100vw":t,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"}));styled(Box,{shouldForwardProp:e=>!["isMaximized","currentHeight"].includes(e)})(({isMaximized:e,currentHeight:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:e?`calc(100vh - ${I}px)`:(t||J)-I+5,background:"transparent",position:"fixed",width:"100%"}));var yt=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),wt=styled("span")(()=>({color:"#032F62"})),bt=styled("span")(()=>({color:"#357fb9"}));function bo({onClick:e,icon:t,label:i,disableAnimation:o,...n}){let[s,l]=ho.useState(false),{t:d}=useTranslation();return jsxs(ht,{...n,onClick:u=>{e?.(u),!o&&(l(true),setTimeout(()=>{l(false);},2e3));},children:[jsxs(yo,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:s&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ua,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!s&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:t,alt:"icon"},"id-icon")})]}),i&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:s&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:d("copied")})}),jsx(AnimatePresence,{children:!s&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:i})})]})]})}var St=memo(bo);var H=St;var vt=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),Ct=styled$1("button")(({theme:e,isActive:t})=>({width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,backgroundColor:e.palette.background.paper,cursor:"pointer",outline:"none",padding:0,position:"relative",zIndex:11,transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`}})),Rt=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),It=styled$1(motion.input)(({theme:e})=>({width:"177px",height:"24px",borderRadius:"4px",color:e.palette.text.primary,fontSize:"10px",outline:0,background:e.palette.background.paper,boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`,paddingLeft:"8px",boxSizing:"border-box","::placeholder":{color:"#D5D5D5"}})),Oe={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},Jt={...Oe,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},kt=styled$1("button")(()=>({...Jt,right:53})),Bt=styled$1("button")(()=>({...Jt,right:39})),Tt=styled$1(motion.img)(()=>({...Oe,right:24,width:10,height:10,cursor:"pointer"})),Pt=styled$1(motion.img)(()=>({...Oe,right:8,width:11,height:11,cursor:"default"})),Ve=styled$1("img")(()=>({width:10,height:10})),Et=styled$1("img")(()=>({width:12,height:12})),Ht=styled$1("span")(({theme:e})=>({position:"absolute",right:67,top:"50%",transform:"translateY(-50%)",fontSize:"9px",lineHeight:1,color:e.palette.text.secondary,whiteSpace:"nowrap",userSelect:"none",zIndex:2,pointerEvents:"none"}));function Jo({value:e,onChange:t,currentIndex:i,totalCount:o,onPrev:n,onNext:s,onOpen:l,placeholder:d="Search..."}){let[p,u]=useState(false),w=useRef(null),S=e.trim().length>0,k=o>0,a=S,N=()=>{l?.(),u(true),requestAnimationFrame(()=>w.current?.focus());},f=()=>{t(""),u(false);};return jsxs(vt,{children:[jsx(AnimatePresence,{children:p&&jsxs(Rt,{initial:{clipPath:"inset(0 0 0 100%)",opacity:0},animate:{clipPath:"inset(0 0 0 0%)",opacity:1},exit:{clipPath:"inset(0 0 0 100%)",opacity:0},transition:{duration:.22,ease:[.4,0,.2,1]},children:[jsx(It,{ref:w,initial:false,animate:{paddingRight:a?"98px":"24px"},transition:{duration:.15},placeholder:d,value:e,onChange:v=>t(v.target.value),onKeyDown:v=>{v.key==="Enter"&&(v.shiftKey?n():s()),v.key==="Escape"&&f();},onBlur:()=>{S||u(false);}}),a&&jsx(kt,{onClick:n,disabled:!k,title:"Previous match (Shift+Enter)",children:jsx(Ve,{src:$k,alt:"prev"})}),a&&jsx(Bt,{onClick:s,disabled:!k,title:"Next match (Enter)",children:jsx(Ve,{src:al,alt:"next"})}),a&&jsx(Tt,{src:si,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:f}),jsx(Pt,{src:Fk,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),a&&jsx(Ht,{children:k?`${i+1}/${o}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!p&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(Ct,{isActive:false,onClick:N,title:"Search",children:jsx(Et,{src:B,alt:"search"})})})})]})}var K=memo(Jo);function Mt(e,t){let i=[],o=t.length,n=0,s=e.indexOf(t,n);for(;s!==-1;){let l=s+o;i.push([s,l]),n=l,s=e.indexOf(t,n);}return i}var ko={padding:0,outline:"none"};function Wt({text:e,queryLength:t,ranges:i,idPrefix:o}){let n=[],s=0;return i.forEach(([l,d],p)=>{l>s&&n.push(e.slice(s,l)),n.push(jsx("mark",{style:ko,children:e.slice(l,l+t)},`${o}-${p}`)),s=d;}),s<e.length&&n.push(e.slice(s)),jsx(Fragment,{children:n})}function W({text:e,query:t}){let i=useId(),o=useMemo(()=>t.trim().toLowerCase(),[t]),n=useMemo(()=>{if(!o)return e;let s=e.toLowerCase(),l=Mt(s,o);return l.length===0?e:jsx(Wt,{text:e,queryLength:t.length,ranges:l,idPrefix:i})},[e,t.length,o,i]);return jsx(Fragment,{children:n})}function re(e,t){return e.toLowerCase().includes(t)}function ie(e){return e.trim().toLowerCase()}function se(e){let t=ie(e);return (i,{keyName:o})=>{if(!t||!o)return;let n=String(o);if(re(n,t))return jsx(bt,{children:jsx(W,{text:String(o),query:e})})}}function ae(e){let t=ie(e);return (i,{value:o})=>{if(!t)return;let n=String(o??"");if(re(n,t))return jsxs(wt,{children:['"',jsx(W,{text:String(o??""),query:e}),'"']})}}function Vo({title:e,onClose:t,onMaximize:i,maximized:o=false,id:n,onMouseHover:s,onMouseLeave:l,onRequestClick:d$2,isRequestExpanded:p=false,showRequestIcon:u=false,isHovered:w=false}){return jsx(c,{id:n,maximized:o||false,children:jsx(d,{isHovered:true,onMouseEnter:s,onMouseLeave:l,isMaximized:o,title:e,icon:Ud,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:o,onClick:i}),u&&jsx(d$1,{onClick:d$2,isExpanded:p,isHovered:w,children:"Request"})]})})})}var jt=memo(Vo);var Me=jt;var Ft="#FFE20B";function le(e,t){let[i,o]=useState(0),[n,s]=useState(0);useEffect(()=>{if(!t.trim()){s(0),o(0);return}let p=setTimeout(()=>{let u=e.current?.querySelectorAll("mark")??[];s(u.length),o(0);},50);return ()=>clearTimeout(p)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let p=Array.from(e.current.querySelectorAll("mark"));p.forEach((u,w)=>{let S=w===i;u.style.backgroundColor=S?Ft:"transparent",u.style.outline=S?`1px solid ${Ft}`:"none",u.style.borderRadius="2px";}),p[i]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[i,n,t,e]);let l=useCallback(()=>{n!==0&&o(p=>(p+1)%n);},[n]),d=useCallback(()=>{n!==0&&o(p=>(p-1+n)%n);},[n]);return {currentIndex:i,totalCount:n,goNext:l,goPrev:d}}function Kt(e,t){return e==null?String(e).includes(t):typeof e=="string"?e.toLowerCase().includes(t):typeof e=="number"||typeof e=="boolean"?String(e).includes(t):false}function $t(e,t){if(Array.isArray(e)){let i=e.map(o=>$t(o,t)).filter(o=>o!=null);return i.length>0?i:null}return typeof e=="object"&&e!==null?Gt(e,t):Kt(e,t)?e:null}function Gt(e,t){let i={};for(let[o,n]of Object.entries(e))if(o.toLowerCase().includes(t))i[o]=n;else if(typeof n=="object"&&n!==null){let s=$t(n,t);s!==null&&(i[o]=s);}else Kt(n,t)&&(i[o]=n);return Object.keys(i).length>0?i:null}function ze(e,t){return t.trim()?Gt(e,t.toLowerCase()):e}var G=400,L=.5;function Y({index:e,json:t,requestJson:i={},isWindowMinimized:o,windowOrder:n,onClose:s,onJsonRequestOpen:l,onJsonSearch:d,onJsonCopy:p,onJsonIdCopy:u,onJsonNodesMinimize:w,onJsonNodesMaximize:S}){let k=yc(useId(),"json-viewer"),[a,N]=useState(false),[f,O]=useState(false),[V,M]=useState(false),[v,qe]=useState(false),[je,eo]=useState({width:0,height:0}),[ue,z]=useState(true),[g,to]=useState(false),[fe,oo]=useState(true),[no,De]=useState(false),[Q,Le]=useState(G),[B,ro]=useState(""),[T,io]=useState(""),_e=useRef(null),Fe=useRef(null),U=le(_e,B),Z=le(Fe,T),me=useRef(),{onMouseEnter:so,onMouseLeave:ao,isHovered:lo}=b(),{height:ge,width:_}=a$1(),[Ke,po]=useState({x:_/2+G/4-e*20,y:ge/2-J/2+e*30}),ee=useRef(),co=useMemo(()=>Object.keys(t)?.length,[t]),$e=xa(),P=Number(ee.current?.state?.width)||G,Ge=c=>{setTimeout(()=>{navigator.clipboard.writeText(c||"").then(()=>{});},10);},Ye=useMemo(()=>Object.keys(i)?.length,[i]),Xe=useMemo(()=>ze(t,B),[t,B]),Qe=useMemo(()=>ze(i,T),[i,T]);return useEffect(()=>{if(me.current&&clearTimeout(me.current),!g){me.current=setTimeout(()=>{Le(P);},L*1e3);return}Le(P);},[g,P]),jsx(jo,{disabled:a,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultPosition:{x:_/2-G/4,y:ge/2-J/2},position:{x:_-Ke.x,y:Ke.y},onStop:(c,m)=>{po({x:_-m.x,y:m.y});},bounds:{top:10},children:jsx(Dialog,{id:k,"data-testid":"JSONViewer",disableEnforceFocus:true,sx:{backgroundColor:"transparent",zIndex:(n||0)+3+(a?1:0),...o&&{display:"none"},transform:"translate(180px, 14px)",...!a&&{width:$e?je?.width||Q:"fit-content",height:$e?je?.height||J:"fit-content"},...a&&{transform:"none !important"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:f?"fit-content":Q,height:f?"fit-content":J,...a&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{N(false),z(true),setTimeout(()=>{z(false);},L*1e3);},open:true,hideBackdrop:true,fullScreen:a,"aria-labelledby":"draggable-dialog-title",children:jsx(Resizable,{enable:{left:false,right:true,bottomRight:true,bottom:true},maxHeight:ge-40,maxWidth:_,minWidth:a?"100vw":Q,minHeight:a?"100vh":"300px",ref:c=>{ee.current=c;},onResizeStart:()=>{z(true);},onResizeStop:()=>{z(false);},onResize:(c,m,A)=>{O(true),eo({width:A.offsetWidth,height:A.offsetHeight});},defaultSize:{width:Q,height:J},style:{background:"transparent",...a&&{height:"100% !important",width:"100% !important",flex:1},...a&&{position:"relative"}},children:jsxs(yt,{children:[jsx(motion.div,{style:{...a&&{height:Re,position:"fixed",zIndex:1e3}},animate:{width:g?P*2:P,...a&&{width:"100vw"},...!a&&{transform:`translateX(${g?-P:0}px)`}},transition:{duration:L,...ue&&{duration:0}},children:jsx(Me,{title:g?"JSON Request & Response":"JSON Response",onClose:()=>s(),onMaximize:()=>{N(c=>!c),z(true),setTimeout(()=>{z(false);},L*1e3);},isHovered:lo,onMouseHover:so,onMouseLeave:ao,maximized:a,id:"draggable-dialog-title",onRequestClick:()=>{to(c=>!c),z(false),g||(l?.(),ee.current?.updateSize({width:G,height:J}));},isRequestExpanded:g,showRequestIcon:!!Ye})}),jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:a?`calc(100vh - ${I}px)`:(Number(ee.current?.state?.height)||J)-I+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:g&&jsxs(motion.div,{initial:{left:a?"50vw":0,...a&&{position:"relative",left:"-50vw"}},animate:{left:a?"50vw":-P,...a&&{position:"relative",left:"0"},...!g&&{left:0}},exit:{left:a?"50vw":0,...a&&{position:"relative",left:"0"}},transition:{duration:L,...ue&&{duration:0}},ref:Fe,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:a?"100vh":"100%",overflowY:"auto",position:"absolute",width:a?"100vw":P,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{De(true),setTimeout(()=>{De(false);},2e3);},children:[jsxs(Be,{isMaximized:a,isScrollingRequest:no,sx:{background:"#E7E7E7B2"},isRequestShown:g,children:[jsx(Ee,{children:jsx(ke,{variant:"subtitle1",children:"API Request"})}),jsxs(Pe,{children:[jsx(K,{value:T,onChange:io,onOpen:()=>d?.(),currentIndex:Z.currentIndex,totalCount:Z.totalCount,onPrev:Z.goPrev,onNext:Z.goNext}),jsx(H,{disableAnimation:true,onClick:()=>{fe?S?.():w?.(),oo(c=>!c);},icon:fe?we:ve}),jsx(H,{onClick:()=>{p?.(),navigator.clipboard.writeText(JSON.stringify(t)).then(()=>{});},icon:ta}),jsx(H,{onClick:()=>{u?.(),navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:ra})]})]}),T.trim()&&Qe===null?jsx(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(Typography,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsxs(R,{value:Qe??i,style:gt,displayDataTypes:false,collapsed:T.trim()?void 0:fe?1:void 0,onCopied:(c,m)=>{typeof m=="string"&&Ge(m);},enableClipboard:false,children:[jsx(R.String,{render:ae(T)}),jsx(R.KeyName,{render:se(T)}),jsx(R.CountInfo,{render:(c,{keyName:m})=>{if(!m)return jsx("span",{})}}),jsx(R.Copied,{render:({"data-copied":c,style:m,onClick:A},{keyName:he})=>he?jsxs(Je,{style:m,onClick:xe=>{A?.(xe);},children:[jsx(AnimatePresence,{children:c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ua,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:sa,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(AnimatePresence,{children:g&&jsx(Te,{sx:{flex:1,height:I,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:Ye})})})]})}),jsxs(xt,{ref:_e,isMaximized:a,isRequestShown:g,style:{left:0,maxHeight:"100vw"},initial:{...a&&{width:"100vw",left:0}},animate:{...a&&{position:"absolute",left:g?"50vw":"0"}},transition:{duration:L,...ue&&{duration:0}},onScroll:()=>{qe(true),setTimeout(()=>{qe(false);},2e3);},children:[jsxs(Be,{isMaximized:a,isScrollingRequest:v,isRequestShown:g,children:[jsx(Ee,{children:jsx(ke,{variant:"subtitle1",children:"API Response"})}),jsxs(Pe,{children:[jsx(K,{value:B,onChange:ro,onOpen:()=>d?.(),currentIndex:U.currentIndex,totalCount:U.totalCount,onPrev:U.goPrev,onNext:U.goNext}),jsx(H,{disableAnimation:true,onClick:()=>{V?S?.():w?.(),M(c=>!c);},icon:V?we:ve}),jsx(H,{onClick:()=>{p?.(),navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:ta}),jsx(H,{onClick:()=>{u?.(),navigator.clipboard.writeText(t?.id||"").then(()=>{});},icon:ra})]})]}),B.trim()&&Xe===null?jsx(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(Typography,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsxs(R,{value:Xe??t,style:Ie,displayDataTypes:false,collapsed:B.trim()?void 0:V?1:void 0,onCopied:(c,m)=>{typeof m=="string"&&Ge(m);},children:[jsx(R.String,{render:ae(B)}),jsx(R.KeyName,{render:se(B)}),jsx(R.CountInfo,{render:(c,{keyName:m})=>{if(!m)return jsx("span",{})}}),jsx(R.Copied,{render:({"data-copied":c,style:m,onClick:A},{keyName:he})=>he?jsxs(Je,{style:m,onClick:xe=>{A?.(xe);},children:[jsx(AnimatePresence,{children:c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ua,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{children:!c&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:sa,alt:"icon"},"id-icon")})]}):jsx("span",{})})]}),jsx(Te,{sx:{flex:1,height:I},children:jsx(c$2,{sx:{borderBottomLeftRadius:g?0:"12px",background:"#f8f9fb",flex:1},totalCount:co})})]})]})]})})})})}var ce=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJsonViewerEvents:()=>{}});var Qt=({list:e,events:t,onClose:i,isWindowMinimized:o,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((s,l)=>jsx(Y,{index:l,...t,...s,onClose:()=>{i(l);},isWindowMinimized:o,windowOrder:n},s.json.id))}):null;var Fo=({children:e})=>{let[t,i]=useState([]),[o,n]=useState(false),[s,l]=useState(1),d=useRef({}),p=useCallback(f=>{if(t.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(t.some(v=>v.json.id===f.json.id))return;let O=structuredClone(f.json),V=O.request_body,M={...f,json:O,requestJson:f.requestJson||V||void 0};delete M.json.request_body,i(v=>[...v,M]);},[t]),u=useCallback(f=>{i(O=>O.filter((V,M)=>f!==M));},[]),w=useCallback(f=>{n(f);},[]),S=useCallback(f=>{l(f);},[]),k=useCallback(f=>{d.current=f;},[]),a=useMemo(()=>({onJsonRequestOpen:()=>d.current.onJsonRequestOpen?.(),onJsonSearch:()=>d.current.onJsonSearch?.(),onJsonCopy:()=>d.current.onJsonCopy?.(),onJsonIdCopy:()=>d.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>d.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>d.current.onJsonNodesMaximize?.()}),[]),N=useMemo(()=>({jsonViewerList:t,handleJsonViewerDialogOpen:p,handleWindowMinimize:w,handleWindowOrder:S,registerJsonViewerEvents:k}),[t,p,w,S,k]);return jsxs(ce.Provider,{value:N,children:[e,jsx(Qt,{list:t,events:a,onClose:u,isWindowMinimized:o,windowOrder:s})]})};var Yo=({isWindowMinimized:e,windowOrder:t,...i})=>{let{handleJsonViewerDialogOpen:o,handleWindowMinimize:n,handleWindowOrder:s,registerJsonViewerEvents:l}=useContext(ce),d=useCallback(()=>{n(e);},[n,e]),p=useCallback(()=>{s(t);},[s,t]);return useEffect(()=>{p();},[p]),useEffect(()=>{d();},[d]),useEffect(()=>{l(i);},[l,i]),{handleJsonViewerDialogOpen:o}};var ti=Y;export{H as a,K as b,W as c,Me as d,le as e,ce as f,Qt as g,Fo as h,Yo as i,ti as j};
@@ -1 +0,0 @@
1
- import {c,d}from'./chunk-PPC5EHKW.js';import {a,c as c$1,d as d$1}from'./chunk-RMTT4FOG.js';import {b,a as a$1}from'./chunk-O5KFJKRT.js';import {yc,xa}from'./chunk-2CIV4TII.js';import {Hf}from'./chunk-KCEYICHJ.js';import {createContext,memo,useRef,useId,useContext,useMemo,useState,useLayoutEffect,useCallback}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import it from'@mui/material/Box';import {Resizable}from're-resizable';import nt from'react-draggable';import {motion}from'framer-motion';var Z=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var Fe=555,Ge=545;function Y({children:e,isOpen:t,onClose:o,defaultWindowHeight:i,defaultWindowWidth:r,initialPosition:p,minWidth:l,maxWidth:a,minHeight:d,maxHeight:m,containerRef:s}){let{height:u,width:f}=a$1(),n=r||Fe,x=i||Ge,[D,I]=useState({x:p?.x??f/2+n/2,y:p?.y??u/2-x/2}),[h,P]=useState(false),[A,S]=useState(false),[B,w]=useState(false),[E,v]=useState(true),g=useRef(),[z,c]=useState({width:r??0,height:i??0}),M=useCallback(b=>{g?.current?.updateSize(b);},[]),k=useCallback(b=>{g.current?.updateSize(b),c(L=>({width:b.width??L.width,height:b.height??L.height}));},[]),q=useMemo(()=>({position:D,setPosition:I,resizableRef:g,windowZIndex:1,isOpen:t,setIsMaximized:P,setIsSidebarExpanded:v,setIsToolbarAnimationDisabled:w,setIsResized:S,isMaximized:h,isToolbarAnimationDisabled:B,isSidebarExpanded:E,isResized:A,dimensions:z,setNewDimensions:c,viewerDefaultWidth:n,viewerDefaultHeight:x,onClose:o,fullWindowWidth:f,fullWindowHeight:u,updateRefSize:M,updateSize:k,minWidth:l,maxWidth:a,minHeight:d,maxHeight:m,containerRef:s}),[D,I,g,t,P,v,w,S,h,B,E,A,z,c,f,u,n,x,M,k,o,l,a,d,m,s]);return jsx(Z.Provider,{value:q,children:e})}var fe=(e,t)=>t.toLowerCase().includes(e);function ce(e,t,o){let i=fe("top",t),r=fe("left",t);return !i&&!r?null:{x:r?e.x+o.width:e.x,y:i?e.y-o.height:e.y}}var y=.5,xe=183,he=287,we=840,ge=545,$=35;function Ne({title:e,onClose:t,onMaximize:o,maximized:i=false,id:r,onRequestClick:p,isSidebarExpanded:l=false,isHovered:a$1=false,onMouseHover:d$2,onMouseLeave:m,showSectionsButton:s,rightActions:u,icon:f}){return jsx(c,{id:r,"data-testid":"UserTitleBar",maximized:i||false,children:jsx(d,{onMouseEnter:d$2,onMouseLeave:m,isMaximized:i,isHovered:a$1,title:e,icon:f||Hf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:i,onClick:o}),s&&jsx(d$1,{onClick:p,isExpanded:!l,isHovered:a$1,children:"Sidebar"})]}),rightActions:u})})}var be=memo(Ne);var J=be;function qe({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:o,onClose:i,isSidebarExpanded:r,setIsSidebarExpanded:p,isToolbarAnimationDisabled:l,title:a,showSectionsButton:d,rightActions:m,icon:s}){let{isHovered:u,onMouseEnter:f,onMouseLeave:n}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(J,{title:a||"Users",showSectionsButton:d,onClose:i,onMaximize:()=>{o?.(x=>!x),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),p(!r);},isSidebarExpanded:r,isHovered:u,onMouseHover:f,onMouseLeave:n,rightActions:m,icon:s})})}var Ae=memo(qe);var He=Ae;function at({children:e,titleBar:t,titleBarText:o,mainAppOrder:i,mainAppIsMinimized:r,showSectionsButton:p=true,rightActions:l,titleBarIcon:a}){let d=useRef(null),m=yc(useId(),"app-window"),{dimensions:s,position:u,resizableRef:f,isMaximized:n,isOpen:x,onClose:D,viewerDefaultWidth:I,viewerDefaultHeight:h,windowZIndex:P,setPosition:A,setNewDimensions:S,isToolbarAnimationDisabled:B,fullWindowWidth:w,fullWindowHeight:E,setIsMaximized:v,setIsResized:g,isResized:z,setIsToolbarAnimationDisabled:c,setIsSidebarExpanded:M,isSidebarExpanded:k,minWidth:q,maxWidth:b,minHeight:L,maxHeight:Ce,containerRef:oe}=useContext(Z),H=useMemo(()=>document.createElement("div"),[]),[W,De]=useState(null);useLayoutEffect(()=>{De(oe?.current??document.body);},[oe]),useLayoutEffect(()=>{if(W)return W.appendChild(H),()=>{H.parentNode===W&&W.removeChild(H);}},[W,H]);let ie=useRef({x:0,y:0}),re=xa(),Pe=useCallback((K,F,ne,Me)=>{g(true),S({width:ne.offsetWidth,height:ne.offsetHeight});let ae=ce(ie.current,F,Me);ae&&A(ae);},[S,g,A]),_=s.width||I;if(!W)return null;let Be=jsx(nt,{nodeRef:d,disabled:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:w/2-_/2,y:E/2-h/2},position:{x:w-u.x,y:u.y},onStop:(K,F)=>{A({x:w-F.x,y:F.y});},...W===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:d,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(i||0)+P,...r&&{display:"none"},transform:"translate(180px, 14px)",...!n&&{width:re?_:"fit-content",height:re?h:"fit-content"},...n&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",width:z?"fit-content":_,height:z?"fit-content":"100%",...n&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{v(false),c(true),setTimeout(()=>{c(false);},.5*1e3);},open:x,hideBackdrop:true,disableEnforceFocus:true,container:H,fullScreen:n,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:s.width,height:s.height},maxHeight:Ce??E-40,maxWidth:b??w,minWidth:n?"100vw":q??I,minHeight:n?"100vh":L??h,ref:K=>{f.current=K;},onResizeStart:()=>{ie.current=u,c(true);},onResizeStop:()=>{c(false);},onResize:Pe,defaultSize:{width:_,height:h},style:{background:"transparent",height:s.height,overflow:"hidden",...n&&{height:"100% !important",width:"100% !important",flex:1},...n&&{position:"relative"}},children:jsxs(it,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[t??jsx(He,{setIsToolbarAnimationDisabled:c,onClose:D,setIsMaximized:v,isToolbarAnimationDisabled:B,setIsSidebarExpanded:M,isSidebarExpanded:k,title:o,isMaximized:n,showSectionsButton:p,rightActions:l,icon:a}),e]})})})});return createPortal(Be,H)}var Ie=memo(at);var pt=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),lt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),mt=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),ut=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),ft=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var ee=Ie;function ct({children:e,windowProps:t,...o}){return o.isOpen?jsx(Y,{...o,children:jsx(ee,{...t,children:e})}):null}var ve=ct;function ht({title:e,maximized:t=false,id:o,isHovered:i=false,onMouseHover:r,onMouseLeave:p,leftActions:l,titleIconSrc:a,sx:d$1,...m}){return jsx(c,{className:"header-wrapper",id:o,maximized:t||false,sx:d$1,...m,children:jsx(d,{onMouseEnter:r,onMouseLeave:p,isMaximized:t,isHovered:i,title:e||"",icon:a,leftActions:l})})}var te=memo(ht);function bt({isMaximized:e,id:t,isToolbarAnimationDisabled:o,title:i,leftActions:r,onClose:p,onMaximize:l,sx:a$1}){let{isHovered:d,onMouseEnter:m,onMouseLeave:s}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...o&&{duration:0}},children:jsx(te,{title:i,maximized:e,id:t||"draggable-dialog-title",isHovered:d,onMouseHover:m,onMouseLeave:s,leftActions:r||jsxs(Fragment,{children:[jsx(a,{onClick:p}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:a$1})})}var Te=memo(bt);var Ht=Te;var Go=ve;export{Z as a,Y as b,y as c,xe as d,he as e,we as f,ge as g,$ as h,J as i,pt as j,lt as k,mt as l,ut as m,ft as n,ee as o,te as p,Ht as q,Go as r};
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { BackdropProps as MuiBackdropProps } from '@mui/material/Backdrop';
3
- export type WindowBackdropProps = MuiBackdropProps;
4
- declare function WindowBackdrop(props: WindowBackdropProps): import("react").ReactPortal;
5
- declare const _default: import("react").MemoExoticComponent<typeof WindowBackdrop>;
6
- export default _default;
@@ -1 +0,0 @@
1
- export { default } from './WindowBackdrop';
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-L2RZBHC7.js';import'../../_chunks/chunk-2CIV4TII.js';import'../../_chunks/chunk-BXMBE224.js';import'../../_chunks/chunk-KCEYICHJ.js';import'../../_chunks/chunk-VWSQS7GB.js';