@tap-payments/os-micro-frontend-shared 0.3.190 → 0.3.191-test.1
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.
- package/build/_chunks/chunk-2AS2ZAB6.js +2 -0
- package/build/_chunks/{chunk-Q4MCPZLB.js → chunk-2W4VCLHJ.js} +1 -1
- package/build/_chunks/{chunk-YH7NVK6Z.js → chunk-2YLEWNVJ.js} +1 -1
- package/build/_chunks/{chunk-EZTN3OZ3.js → chunk-3DXSMD3B.js} +1 -1
- package/build/_chunks/{chunk-2KTE7DHP.js → chunk-56DY2IOC.js} +1 -1
- package/build/_chunks/{chunk-FSAVKSO7.js → chunk-7464NDOX.js} +1 -1
- package/build/_chunks/{chunk-LEBDDRH7.js → chunk-7KQVJEOM.js} +1 -1
- package/build/_chunks/{chunk-MXN47BQP.js → chunk-7WYTESNH.js} +1 -1
- package/build/_chunks/{chunk-XCPTSD45.js → chunk-AKF4P7KA.js} +1 -1
- package/build/_chunks/chunk-AXF6U3X5.js +1 -0
- package/build/_chunks/{chunk-CRISUMDK.js → chunk-D5C2523S.js} +1 -1
- package/build/_chunks/{chunk-43I37F3D.js → chunk-D7N7HY5W.js} +1 -1
- package/build/_chunks/{chunk-LOLWXXGV.js → chunk-DNEPOE4E.js} +1 -1
- package/build/_chunks/{chunk-5YRGNUBJ.js → chunk-DTTQ6SXZ.js} +1 -1
- package/build/_chunks/{chunk-FEOZ376G.js → chunk-E4ARE2GE.js} +1 -1
- package/build/_chunks/chunk-EM7IY6MB.js +1 -0
- package/build/_chunks/chunk-G4VSMK43.js +1 -0
- package/build/_chunks/{chunk-HJC6JD77.js → chunk-IEHZKLJ3.js} +1 -1
- package/build/_chunks/{chunk-52UCOITD.js → chunk-IZCX7VUH.js} +1 -1
- package/build/_chunks/{chunk-QC6ZFDSW.js → chunk-KIXDDUFZ.js} +1 -1
- package/build/_chunks/chunk-LCPBBNN6.js +2 -0
- package/build/_chunks/{chunk-HWFIL2MM.js → chunk-LSX3HCYK.js} +1 -1
- package/build/_chunks/{chunk-23Y2Y3DK.js → chunk-M3FL6M23.js} +1 -1
- package/build/_chunks/{chunk-C3TOICMC.js → chunk-MC64H3SE.js} +1 -1
- package/build/_chunks/{chunk-7F7XIVPZ.js → chunk-MD7OAK4T.js} +1 -1
- package/build/_chunks/{chunk-T6IEGFSL.js → chunk-MGB3F4QT.js} +1 -1
- package/build/_chunks/chunk-MW2PULH6.js +1 -0
- package/build/_chunks/chunk-O3EI6LW4.js +1 -0
- package/build/_chunks/{chunk-UCPCZRSS.js → chunk-OFGNK4YO.js} +1 -1
- package/build/_chunks/{chunk-NGPQLSKC.js → chunk-OQZRUV2S.js} +1 -1
- package/build/_chunks/{chunk-LI6SQ27J.js → chunk-OWIUXOZF.js} +1 -1
- package/build/_chunks/{chunk-EJZK22U7.js → chunk-Q3MY6ESH.js} +1 -1
- package/build/_chunks/{chunk-MVS5TQKO.js → chunk-QATB3PPX.js} +1 -1
- package/build/_chunks/{chunk-KB2P64XJ.js → chunk-R7A6CC4H.js} +1 -1
- package/build/_chunks/{chunk-ZWC2ZYU3.js → chunk-RREOIBJN.js} +1 -1
- package/build/_chunks/{chunk-KCHFJYD2.js → chunk-SNEI6PN5.js} +1 -1
- package/build/_chunks/{chunk-65QKI3ZL.js → chunk-SVQZWXXY.js} +1 -1
- package/build/_chunks/{chunk-K7PLJ6GV.js → chunk-SZY5JDY4.js} +1 -1
- package/build/_chunks/chunk-TDOB73LL.js +1 -0
- package/build/_chunks/{chunk-7K7NG2J2.js → chunk-TIOH54EN.js} +1 -1
- package/build/_chunks/{chunk-LYCNNXOL.js → chunk-TLFJRRMH.js} +1 -1
- package/build/_chunks/{chunk-SQZLXWX3.js → chunk-TPQZF32W.js} +1 -1
- package/build/_chunks/{chunk-DS6HWNKU.js → chunk-VF6DYRPH.js} +1 -1
- package/build/_chunks/{chunk-W3YX4SZX.js → chunk-VXQYIB4Z.js} +1 -1
- package/build/_chunks/{chunk-CIQJUFQG.js → chunk-X5Y4LZLO.js} +1 -1
- package/build/_chunks/{chunk-SLGQBWM2.js → chunk-XH2GRI2U.js} +1 -1
- package/build/_chunks/chunk-XIMED5QH.js +15 -0
- package/build/_chunks/{chunk-2CAP7T3H.js → chunk-XVLSHARJ.js} +1 -1
- package/build/_chunks/{chunk-WQMZHEH3.js → chunk-Y3UT2AO6.js} +1 -1
- package/build/_chunks/{chunk-O6F6PN2J.js → chunk-YLIOAJF6.js} +1 -1
- package/build/_chunks/{chunk-7QURIBF4.js → chunk-Z7WYVK7K.js} +1 -1
- package/build/_chunks/{chunk-R4YD7C6A.js → chunk-ZV7L4GKY.js} +1 -1
- package/build/_chunks/{chunk-SNH3WLIA.js → chunk-ZYMH75GG.js} +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountInput/style.d.ts +3 -4
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/Customer/CustomerForms/style.d.ts +6 -7
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FeedbackInput/FeedbackInput.d.ts +4 -0
- package/build/components/FeedbackInput/constants.d.ts +9 -0
- package/build/components/FeedbackInput/index.d.ts +4 -0
- package/build/components/FeedbackInput/index.js +1 -0
- package/build/components/FeedbackInput/style.d.ts +14 -0
- package/build/components/FeedbackInput/type.d.ts +42 -0
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/InputBase/InputBase/index.d.ts +9 -3
- package/build/components/InputBase/PhoneInputBase/CountriesList/style.d.ts +3 -4
- package/build/components/InputBase/PhoneInputBase/style.d.ts +3 -4
- package/build/components/InputBase/index.d.ts +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/InputNumber.d.ts +3 -7
- package/build/components/InputNumber/constants.d.ts +6 -0
- package/build/components/InputNumber/index.d.ts +3 -0
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/InputNumber/type.d.ts +30 -0
- package/build/components/Inputs/CountriesDropDown/style.d.ts +6 -8
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +2 -2
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ReferenceTypeFilter/style.d.ts +3 -3
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/SelectWithSearch/type.d.ts +2 -2
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Timepicker/style.d.ts +3 -4
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/style.d.ts +3 -3
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +3 -3
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +2 -2
- package/build/components/index.js +1 -1
- package/build/components/primitives/Input/constants.d.ts +13 -0
- package/build/components/primitives/Input/icons.d.ts +5 -0
- package/build/components/primitives/Input/style.d.ts +20 -10
- package/build/components/primitives/Input/type.d.ts +17 -0
- package/build/components/primitives/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-4KSZBODD.js +0 -1
- package/build/_chunks/chunk-AVEZ5N7E.js +0 -2
- package/build/_chunks/chunk-CUKDVWNQ.js +0 -1
- package/build/_chunks/chunk-ESPEGYTN.js +0 -1
- package/build/_chunks/chunk-KHXUVLUA.js +0 -2
- package/build/_chunks/chunk-QHN5ZSK4.js +0 -1
- package/build/_chunks/chunk-QXHIDHUU.js +0 -1
- package/build/_chunks/chunk-RKBY5MU3.js +0 -15
- package/build/_chunks/chunk-UZSTD2CE.js +0 -1
- package/build/_chunks/chunk-YJGVSPJS.js +0 -1
- package/build/components/Input/Input.d.ts +0 -11
- package/build/components/Input/index.d.ts +0 -2
- package/build/components/Input/index.js +0 -1
- package/build/components/Input/style.d.ts +0 -3
- package/build/components/InputBase/InputBase/InputBase.d.ts +0 -11
- package/build/components/InputBase/InputBase/style.d.ts +0 -15
- package/build/components/InputNumber/style.d.ts +0 -4
- package/build/components/SearchListInput/SearchListInput.d.ts +0 -11
- package/build/components/SearchListInput/index.d.ts +0 -2
- package/build/components/SearchListInput/index.js +0 -1
- package/build/components/SearchListInput/style.d.ts +0 -7
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {kc,yc,ab,Zb,jc,zc,xa as xa$1}from'./chunk-PLMJIRXJ.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,useRef,useEffect,Children}from'react';import xt from'@mui/material/Box';import Ns,{circularProgressClasses}from'@mui/material/CircularProgress';import Cs from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import so from'@mui/material/SvgIcon';import $s from'@mui/material/Checkbox';import Ms from'@mui/material/FormControlLabel';import Ds from'@mui/material/Switch';import Os from'@mui/material/Typography';import Js from'@mui/material/Radio';import cn from'@mui/material/Tooltip';import bn from'@mui/material/Skeleton';import kn from'@mui/material/Avatar';import Fn from'@mui/material/Divider';import Hn from'@mui/material/Collapse';import {createPortal}from'react-dom';import ei from'@mui/material/Backdrop';import Ii,{SliderThumb}from'@mui/material/Slider';import Ai from'@mui/material/FormControl';import Lr from'@mui/material/IconButton';import Ei from'@mui/material/InputLabel';import Wi from'@mui/material/Input';import Hi from'@mui/material/InputAdornment';import _i from'@mui/material/InputBase';import ol from'@mui/material/Accordion';import tl from'@mui/material/AccordionDetails';import rl from'@mui/material/AccordionSummary';import pl from'@mui/material/Popper';import gl from'@mui/material/Dialog';import xl from'@mui/material/DialogActions';import Cl from'@mui/material/DialogContent';import hl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Xl from'@mui/material/Stack';var W="os-shared-Button",k={root:`${W}-root`,content:`${W}-content`,startIcon:`${W}-startIcon`,endIcon:`${W}-endIcon`,icon:`${W}-icon`,loading:`${W}-loading`,loadingSpinner:`${W}-loadingSpinner`},Eo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Wo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Ho={sm:12,md:12,lg:14};var Oo=styled(Cs,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Eo[t],y=Wo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...y}}}),pe=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var jo=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...y},x)=>{let u=i!=null;return jsxs(Oo,{ref:x,className:kc(k.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:u||!!a||!!s||r,$isIconOnly:u,disabled:p||r,disableRipple:true,"data-testid":"Button",sx:c,...y,children:[jsx(xt,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:u?jsx(pe,{className:k.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(pe,{className:k.startIcon,children:a}),e,s&&jsx(pe,{className:k.endIcon,children:s})]})}),r&&jsx(pe,{className:k.loading,sx:{position:"absolute"},children:jsx(Ns,{className:k.loadingSpinner,size:Ho[t],color:"inherit"})})]})});jo.displayName="Button";var Ko=memo(jo);var Is="os-shared-Icon",we={root:`${Is}-root`};var Uo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Yo=forwardRef(({className:e,sx:o,...t},r)=>jsx(Uo,{className:kc(we.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Yo.displayName="Icon";var Go=memo(Yo);var ao="os-shared-Checkbox",H={root:`${ao}-root`,control:`${ao}-control`,label:`${ao}-label`};var Xo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(so,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},_o=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(so,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},qo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(so,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var et=styled($s)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),ot=styled(Ms)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var tt=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(et,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Xo,{disabled:t}),icon:jsx(_o,{disabled:t}),indeterminateIcon:jsx(qo,{disabled:t}),"data-testid":"Checkbox",className:kc(e?H.control:H.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(ot,{className:kc(H.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:H.label}}}):p});tt.displayName="Checkbox";var rt=memo(tt);var Rs="os-shared-Switch",Ie={root:`${Rs}-root`};var at=styled(Ds)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var st=forwardRef(({className:e,sx:o,...t},r)=>jsx(at,{ref:r,className:kc(Ie.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));st.displayName="Switch";var nt=memo(st);var Vs="os-shared-Typography",ke={root:`${Vs}-root`},Be="body.default.regular";var js=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ks(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!js(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function Us(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var it=styled(Os,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Be,$weight:t})=>{let{base:r}=e.v2.palette,a=Ks(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:Us(e.v2.typography,t,a.fontWeight)}});var lt=forwardRef(({textVariant:e=Be,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(it,{ref:i,className:kc(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));lt.displayName="Typography";var pt=memo(lt);var _s="os-shared-RadioButton";var Te={root:`${_s}-root`};var mt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(so,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},ft=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(so,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var ut=styled(Js)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var yt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(ut,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(mt,{disabled:e}),icon:jsx(ft,{disabled:e}),"data-testid":"RadioButton",className:kc(Te.root,t),sx:o,...r}));yt.displayName="RadioButton";var gt=memo(yt);var $e="os-shared-CircularProgress",V={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var Ct=styled(Ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ht=styled(xt)(()=>({position:"relative",display:"inline-flex"})),bt=styled(xt)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),St=styled(Os)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var vt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(ht,{className:kc(V.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Ct,{ref:i,variant:e,value:t,className:V.progress,...s}),n&&jsx(bt,{className:V.labelOverlay,children:jsx(St,{className:V.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});vt.displayName="CircularProgress";var Nt=memo(vt);var O="os-shared-Tooltip",S={popper:`${O}-popper`,tooltip:`${O}-tooltip`,arrow:`${O}-arrow`,content:`${O}-content`,title:`${O}-title`,supportingText:`${O}-supportingText`,wrapper:`${O}-wrapper`};var wt=styled(({className:e,...o})=>createElement(cn,{...o,classes:{popper:kc(S.popper,e),tooltip:S.tooltip,arrow:S.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${S.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${S.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),It=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),kt=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),Bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function yn(e){return e!=null&&e!==false&&e!==""}function gn(e){return !!e||e===0}function xn(e,o){let t=yn(o);if(!gn(e)&&!t)return null;let r=jsx(kt,{className:S.title,$hasSupportingText:t,children:e});return t?jsxs(It,{className:S.content,children:[r,jsx(Bt,{className:S.supportingText,children:o})]}):r}function Tt({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(wt,{className:e,title:xn(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(xt,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(S.wrapper,p),...d,children:a})})}Tt.displayName="Tooltip";var Pt=memo(Tt);var hn="os-shared-Skeleton",ze={root:`${hn}-root`};var $t=styled(bn)(()=>({}));var Mt=forwardRef(({className:e,sx:o,variant:t="rounded",height:r=16,...a},s)=>jsx($t,{ref:s,className:kc(ze.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Mt.displayName="Skeleton";var Lt=memo(Mt);var In="os-shared-Avatar",Re={root:`${In}-root`},De="xs",Ae="teal",Ft={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},zt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function Tn(e){let{from:o,to:t}=Ft[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Rt=styled(kn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=De,$color:t=Ae})=>{let{dimension:r,fontSize:a}=zt[o],{base:s}=e.v2.palette,i=Tn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var Dt=forwardRef(({className:e,sx:o,size:t=De,color:r=Ae,...a},s)=>jsx(Rt,{ref:s,className:kc(Re.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));Dt.displayName="Avatar";var At=memo(Dt);var Ln="os-shared-Divider",Ee={root:`${Ln}-root`};function Rn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Et=styled(Fn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:Rn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Wt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Et,{ref:s,className:kc(Ee.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Wt.displayName="Divider";var Ht=memo(Wt);var Wn="os-shared-Collapse",We={root:`${Wn}-root`};var Vt=styled(Hn)(()=>({}));var Ot=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Vt,{ref:i,className:kc(We.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Ot.displayName="Collapse";var Zt=memo(Ot);var Kn="os-shared-Badge",He={root:`${Kn}-root`},Ve="default",jt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Gn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=jt[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Xn(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Ut=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=Ve,$compact:t,$round:r,$pointer:a})=>{let s=Gn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Xn(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Yt=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??Ve;return jsx(Ut,{ref:d,className:kc(He.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Yt.displayName="Badge";var Gt=memo(Yt);var Qn="os-shared-Backdrop",Oe={root:`${Qn}-root`};var Xt=styled(ei,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false})=>{let t=o?e.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var _t=forwardRef(({className:e,sx:o,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Xt,{open:t,$hasBlur:r,ref:n,className:kc(Oe.root,e),sx:o,"data-testid":"Backdrop",onClick:p,...i}),document.body)});_t.displayName="Backdrop";var qt=memo(_t);var Ze="os-shared-CopyButton",F={root:`${Ze}-root`,icon:`${Ze}-icon`,copyIcon:`${Ze}-copyIcon`,copiedIcon:`${Ze}-copiedIcon`};var er=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(so,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},or=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(so,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var rr=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),po=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var ar=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(er,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=y=>{y.stopPropagation(),ab(t),d(true),setTimeout(()=>d(false),r),s?.(y);};return jsxs(rr,{ref:n,className:kc(F.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(po,{className:kc(F.icon,F.copyIcon),$visible:!p,children:a}),jsx(po,{className:kc(F.icon,F.copiedIcon),$visible:p,children:jsx(or,{})})]})});ar.displayName="CopyButton";var sr=memo(ar);var co="os-shared-ProgressBar",Q={root:`${co}-root`,fill:`${co}-fill`,text:`${co}-text`};var ir=styled(xt,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),lr=styled(xt,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),pr=styled(Os,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var cr=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(ir,{ref:r,className:kc(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(lr,{className:Q.fill,$value:t,children:jsxs(pr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});cr.displayName="ProgressBar";var mr=memo(cr);var Ue="os-shared-Chip",B={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},fr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var gr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(so,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},xr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(so,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function xi(e,o){let t=fr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var hr=styled(xt,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...xi(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${B.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),fo=styled(xt)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),br=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),uo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var vr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},y)=>{let[x,u]=useState(false),f=!!(t&&n),h=r!=null&&!f,C=useCallback(w=>{w.stopPropagation(),n&&(ab(n),u(true),setTimeout(()=>u(false),2e3));},[n]),I=useMemo(()=>h?jsx("span",{className:B.icon,children:r}):null,[h,r]),N=useMemo(()=>{if(t){let w=f&&typeof t=="string"?Zb(t):void 0;return jsx(fo,{className:B.text,"data-is-arabic":w,children:t})}return h?null:jsx(fo,{className:B.text,children:p})},[t,f,h,p]),L=useMemo(()=>f?jsxs(br,{className:B.copyButton,role:"button",tabIndex:0,"aria-label":x?"copied":"copy","data-testid":"ChipCopyButton",$copied:x,onClick:C,children:[jsx(uo,{$visible:!x,children:jsx(gr,{})}),jsx(uo,{$visible:x,children:jsx(xr,{})})]}):null,[f,x,C]);return jsxs(hr,{ref:y,"data-testid":"Chip",className:kc(B.root,e,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:f,$isSelected:i,$disableAnimation:d,...c,children:[I,N,L]})});vr.displayName="Chip";var Nr=memo(vr);var go="os-shared-Slider",z={root:`${go}-root`,thumb:`${go}-thumb`,thumbIcon:`${go}-thumbIcon`};var wr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(so,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var Ir=styled(Ii)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${z.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function Mi({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(z.thumb,o),...t,children:[e,jsx(wr,{className:z.thumbIcon})]})}var kr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let y=useCallback((x,u)=>{n(u);},[n]);return jsx(Ir,{ref:c,className:kc(z.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:y,...d,slots:{thumb:Mi,...p}})});kr.displayName="Slider";var Br=memo(kr);var b="os-shared-Input",m={root:`${b}-root`,label:`${b}-label`,input:`${b}-input`,loadingIcon:`${b}-loadingIcon`,validatedIcon:`${b}-validatedIcon`,searchAdornment:`${b}-searchAdornment`,searchButton:`${b}-searchButton`,clearButton:`${b}-clearButton`,searchIcon:`${b}-searchIcon`,clearIcon:`${b}-clearIcon`,hasLabel:`${b}-hasLabel`,sizeSm:`${b}-sizeSm`,sizeMd:`${b}-sizeMd`,disableFocusRing:`${b}-disableFocusRing`,hideArrows:`${b}-hideArrows`,hasTrailingIcon:`${b}-hasTrailingIcon`},$={sm:28,md:32,labelled:40};var Pr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(so,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})},$r=e=>jsx(so,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),Mr=e=>jsxs(so,{viewBox:"0 0 13 13",sx:{width:13,height:13},...e,children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Fr=styled(Wi)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {height:$.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:o.black,backgroundColor:"transparent",display:"flex",alignItems:"center","&.Mui-disabled":{color:alpha(o.black,.6)},"& input":{padding:0},"& input::placeholder":{color:t[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.black,caretColor:o.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${m.sizeSm})`]:{height:$.sm},[`&:where(.${m.sizeMd})`]:{height:$.md},[`&:where(.${m.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${m.hasLabel})`]:{height:$.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input::placeholder":{opacity:0,transition:"opacity 0.2s ease"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${m.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),zr=styled(Ei)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Rr=styled(Ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Dr=styled(xt)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ar=styled(Hi)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Er={padding:2,borderRadius:"50%",flexShrink:0},Wr=styled(Lr)(()=>({...Er,"&.Mui-disabled":{opacity:.5}})),Hr=styled(Lr)(()=>({...Er})),Vr=styled(Ai)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:$.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),backgroundColor:o?"#FAFBFB":a.white,transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${m.sizeSm})`]:{height:$.sm},[`&:where(.${m.sizeMd})`]:{height:$.md},[`&:where(.${m.hasLabel})`]:{height:$.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[`&:focus-within:where(:not(.${m.disableFocusRing}))`]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},"&:where(.Mui-warning):focus-within":{borderColor:alpha(n[500],.15),boxShadow:"none"},"&:where(.Mui-error):focus-within":{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var jr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:y=false,clearable:x=false,onClear:u,type:f,id:h,className:C,sx:I,value:N,defaultValue:L,onChange:w,endAdornment:Ce,onKeyDown:he,onWheel:be,...oo},A)=>{let E=!!e,le=f==="number",Se=f==="search",$o=E&&d&&!a,Mo=c&&!d&&!a,Lo=$o||Mo,ve=o==="sm"?m.sizeSm:m.sizeMd,to=useRef(null),[ns,ro]=useState(()=>String(N??L??"").length>0),is=Se&&x&&ns&&!a;useEffect(()=>{N!==void 0&&ro(String(N??"").length>0);},[N]);let ls=useCallback(g=>{to.current=g,typeof A=="function"?A(g):A&&(A.current=g);},[A]),ps=g=>{ro(g.target.value.length>0),w?.(g);},ds=g=>{g.stopPropagation();let G=to.current;G&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(G,""),G.dispatchEvent(new Event("input",{bubbles:true})),G.focus()),ro(false),u?.();},cs=g=>{g.stopPropagation(),to.current?.focus();},Fo=g=>{g.preventDefault();},ms=Se?jsxs(Fragment,{children:[jsx(Ar,{position:"end",className:m.searchAdornment,children:is?jsx(Hr,{className:m.clearButton,type:"button","aria-label":"Clear search",disabled:a,disableRipple:true,onMouseDown:Fo,onClick:ds,children:jsx(Mr,{className:m.clearIcon})}):jsx(Wr,{className:m.searchButton,type:"button","aria-label":"Search",disabled:a,disableRipple:true,onMouseDown:Fo,onClick:cs,children:jsx($r,{className:m.searchIcon})})}),Ce]}):Ce,fs=useMemo(()=>kc(m.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",E&&m.hasLabel,ve,y&&m.disableFocusRing,C),[t,r,a,E,ve,y,C]),us=useMemo(()=>kc(m.input,E&&m.hasLabel,ve,n&&m.hideArrows,Lo&&m.hasTrailingIcon),[E,ve,n,Lo]),ys=g=>{let G=g.metaKey||g.ctrlKey||g.altKey,xs=g.key.length===1;(["e","E","+","-"].includes(g.key)||xa$1()&&xs&&!G&&!/^[0-9.]$/.test(g.key))&&g.preventDefault(),he?.(g);},gs=g=>{g.target instanceof HTMLElement&&g.target.blur(),be?.(g);};return jsxs(Vr,{className:fs,sx:I,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",children:[E&&jsx(zr,{className:m.label,htmlFor:h,required:p,children:e}),jsx(Fr,{id:h,inputRef:ls,className:us,type:Se?"text":f,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:N,defaultValue:L,onChange:Se?ps:w,endAdornment:ms,onKeyDown:le?ys:he,onWheel:le?gs:be,...oo}),$o&&jsx(Rr,{className:m.loadingIcon,size:14.7,thickness:5}),Mo&&jsx(Dr,{className:m.validatedIcon,children:jsx(Pr,{})})]})});jr.displayName="Input";var Kr=memo(jr);var Co="os-shared-Textarea",re={root:`${Co}-root`,label:`${Co}-label`,textarea:`${Co}-textarea`},ae=3;var Ur=styled(_i,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=ae})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Yr=styled(Ei)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),Gr=styled(Ai,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=ae})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-ae)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var _r=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=ae,maxRows:i,id:n,className:p,sx:d,required:c,...y},x)=>{let u=!!e;return jsxs(Gr,{className:kc(re.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:u,$minRows:s,children:[u&&jsx(Yr,{className:re.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Ur,{id:n,inputRef:x,className:re.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:u,$minRows:s,...y})]})});_r.displayName="Textarea";var qr=memo(_r);var j="os-shared-Accordion",P={root:`${j}-root`,summary:`${j}-summary`,content:`${j}-content`,labelStartAdornment:`${j}-labelStartAdornment`,labelContent:`${j}-labelContent`,labelEndAdornment:`${j}-labelEndAdornment`,expandIcon:`${j}-expandIcon`};var Qr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var oa=styled(ol)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),ta=styled(rl)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),ra=styled(tl)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),aa=styled(xt)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),sa=styled(xt)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var la=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:y,...x},u)=>{let f=e!==void 0,[h,C]=useState(o),I=f?e:h,N=(E,le)=>{f||C(le),t?.(le);},{showArrow:L=true,...w}=n.label??{},{className:Ce,sx:he,...be}=n.root??{},oo=d??(L?jsx(aa,{component:"span",className:P.expandIcon,children:jsx(Qr,{})}):null),A=jsxs(Fragment,{children:[s!=null&&jsx(xt,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx(sa,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(xt,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(oa,{ref:u,"data-testid":"Accordion",disabled:p,expanded:I,onChange:N,className:kc(P.root,c,Ce),sx:jc(y??{},he),...be,...x,children:[jsx(ta,{className:P.summary,expandIcon:oo,"aria-expanded":I,...w,children:A}),jsx(ra,{className:P.content,...n.content,children:a})]})});la.displayName="Accordion";var pa=memo(la);var da="os-shared-Menu",me={popper:`${da}-popper`,panel:`${da}-panel`};var ma=styled(pl)({}),fa=styled(xt,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var ya=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,y]=useState(false),u=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:f,className:h,sx:C,...I}=s??{},N=useCallback(w=>{y((w.currentTarget.scrollTop??0)>0),f?.(w);},[f]),L=kc(me.panel,h,"MuiPopper-dropdown");return jsx(ma,{ref:d,className:kc(me.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(fa,{$showShadow:u,onScroll:N,className:L,sx:jc(n??{},C),...I,children:t})})});ya.displayName="Menu";var ga=memo(ya);var fe="os-shared-Dialog",D={root:`${fe}-root`,title:`${fe}-title`,divider:`${fe}-divider`,content:`${fe}-content`,actions:`${fe}-actions`};var xa=styled(gl,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),Ca=styled(hl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),ha=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),ba=styled(Cl,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),Sa=styled(xl)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var Na=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(xa,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:kc(D.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(Ca,{className:D.title,children:e}),jsx(ha,{"aria-hidden":true,className:D.divider})]}):null,t!=null?jsx(ba,{className:D.content,$hasHeading:!!e,children:t}):null,o?jsx(Sa,{className:D.actions,children:o}):null]}));Na.displayName="Dialog";var wa=memo(Na);var bo="os-shared-MenuItem",U={root:`${bo}-root`,indicator:`${bo}-indicator`,disabled:`${bo}-disabled`},Y={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ka=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},Ba=()=>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"})}),Ta=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Ma=styled(xt,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),So=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Bl(e,o){return o?Y.indeterminate:e?Y.checked:Y.unchecked}var Tl={[Y.unchecked]:Ba,[Y.checked]:ka,[Y.indeterminate]:Ta};function Pl(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(So,{className:U.indicator,"aria-hidden":true,children:e});let r=Bl(o,t),a=Tl[r];return jsx(So,{className:U.indicator,"aria-hidden":true,children:jsx(a,{})})}var La=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc(U.root,"menu-item",o&&U.disabled,i);return jsxs(Ma,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[Pl(r,e,t),s]})});La.displayName="MenuItem";var Fa=memo(La);var za="os-shared-ToggleButtons",ye={root:`${za}-root`,button:`${za}-button`},No={sm:"sm",md:"md"},ge=No.sm,wo={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function Ml(e,o){let{palette:t,elevation:r}=e.v2;return o?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var Aa=styled(xt,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ge})=>{let t=wo[o];return {backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),Ea=styled(xt,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ge})=>{let r=wo[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Ml(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ha({options:e,activeKey:o,onChange:t,size:r=ge,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:y,...x}=a??{},u=kc(ye.root,n,c);return jsx(Aa,{ref:d,id:i,"data-testid":"ToggleButtons",className:u,$size:r,sx:jc(p??{},y),...x,children:e.map(f=>jsx(Ea,{className:ye.button,$isActive:o===f.key,$size:r,onClick:()=>t(f.key),...s,children:f.content},f.key))})}var zl=forwardRef(Ha);Ha.displayName="ToggleButtons";var Va=memo(zl);var Rl="os-shared-LazyImage",_e={root:`${Rl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Oa=styled(xt)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Zl=LazyLoadImage,ja=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:y,style:x,...u}=o??{},f=Je(e)||!!s||x!=null;return jsx(Oa,{component:"span",...u,className:kc(_e.root,c??r),sx:y!=null?jc(a??{},y):a,children:jsx(Zl,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:f?{style:{display:"flex",justifyContent:"center",alignItems:"center",...x}}:void 0})})});ja.displayName="LazyImage";var Ka=memo(ja);var Io="os-shared-FieldFeedback",ne={root:`${Io}-root`,icon:`${Io}-icon`,message:`${Io}-message`};var Ua=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(so,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ya=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(so,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Ga=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(so,{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:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Xa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),_a=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),qa=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 Ul(e){switch(e){case "success":return jsx(Ya,{});case "info":return jsx(Ga,{});case "error":case "warning":return jsx(Ua,{severity:e})}}var Ja=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!zc(o))return null;let i=e;return jsxs(Xa,{ref:s,"data-testid":"FieldFeedback",className:kc(ne.root,r),sx:a,$feedbackType:i,children:[t??jsx(qa,{className:ne.icon,children:Ul(i)}),jsx(_a,{className:ne.message,$feedbackType:i,children:o})]})});Ja.displayName="FieldFeedback";var Qa=memo(Ja);var Gl="os-shared-ScrollLoader",eo={root:`${Gl}-root`};var es=styled(Xl)({overflow:"auto",height:"100%",maxHeight:"100%"});function Po(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var as=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,y]=useState(false),x=useRef(e),u=useRef(null);x.current=e;let f=useCallback(()=>{o&&!r&&x.current();},[o,r]),h=useCallback(()=>{let C=u.current;C&&Po(C)&&f();},[f]);return useEffect(()=>{let C=u.current;if(C)return C.addEventListener("scroll",h),()=>C.removeEventListener("scroll",h)},[h]),useEffect(()=>{let C=u.current;if(!C||t||c)return;let I=window.setTimeout(()=>{y(true),Po(C)&&f();},1e3);return ()=>window.clearTimeout(I)},[t,f,c]),jsx(es,{ref:C=>{u.current=C,typeof d=="function"?d(C):d&&(d.current=C);},id:n,"data-testid":"ScrollLoader",className:kc(eo.root,s),sx:i,...p,children:a})});as.displayName="ScrollLoader";var ss=memo(as);
|
|
2
|
+
export{ne as $,Oe as A,qt as B,F as C,sr as D,Q as E,mr as F,B as G,Nr as H,z as I,Br as J,m as K,Kr as L,re as M,qr as N,P as O,pa as P,me as Q,ga as R,D as S,wa as T,U,Fa as V,ye as W,No as X,Va as Y,_e as Z,Ka as _,k as a,Qe as aa,Ko as b,Qa as ba,we as c,eo as ca,Go as d,ss as da,H as e,rt as f,Ie as g,nt as h,ke as i,pt as j,Te as k,gt as l,V as m,Nt as n,S as o,Pt as p,ze as q,Lt as r,Re as s,At as t,Ee as u,Ht as v,We as w,Zt as x,He as y,Gt as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {h,g,a,f,e,d,c}from'./chunk-
|
|
1
|
+
import {h,g,a,f,e,d,c}from'./chunk-OWIUXOZF.js';import {z}from'./chunk-2AS2ZAB6.js';import {yc,Ka,g as g$1}from'./chunk-PLMJIRXJ.js';import {zl,ja,Ta,Pg,jl,Ya,Sa,Yg,Xg,Zg,Wg,$g,zb,yb,Bk,jk,gb,wk,B,w,A,D,Uh,ik,u,Ck}from'./chunk-YKKS24ES.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:n}){let[c,C]=useState(false),s=useTheme(),e=()=>{n||C(true);},i=()=>{C(false);},h=p?s.palette.common.white:s.palette.grey[700],u=c?s.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:h})]})})}var vt={inProgress:Ck,initiated:Ck,abandoned:u,cancelled:ik,reversed:Uh,reports:D,search:A,chevronDown:w,unAuthorized:B,unSettled:wk,unCaptured:gb,captured:jk,authorized:Bk,openFlag:yb,closedFlag:zb,unauthenticated:$g,authenticated:Wg,paidOut:Zg,scheduled:Xg,checked:Yg,dashedChecked:Sa,deactivated:Ya,destination:jl,destinationReversed:Pg,outstanding:Ta,active:ja,inactive:zl};var Nt=memo(p=>{let{variant:n="inActive",badgeCount:c$1,icon:C,label:s,dropdownOptions:e$1,selectedStatus:i,onButtonBodyClick:h$1,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=yc(useId(),"status-button"),[Lt,M]=useState(0),{t:y}=useTranslation(),E=useRef(null),[x,f$1]=useState(null),[o,H]=useState(i??e$1?.[0]?.status);useEffect(()=>{i!==void 0&&H(i);},[i]);let d$1=useMemo(()=>!!e$1?.length,[e$1]),I=!!x&&Lt>1,l=n==="active",P=useMemo(()=>l?"active":"inactive",[l]),m=useMemo(()=>o?e$1?.find(t=>t.status===o):null,[o,e$1]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:n,children:m.icon});let t=o&&u[o]?o:C;if(t&&u[t])return jsx(g,{icon:t,variant:n,src:u[t],alt:`${t}-icon`})},[m,o,u,C,n]),wt=useMemo(()=>!c$1||Number.isNaN(Ka(c$1))?null:jsx(z,{color:P,children:g$1(Number(c$1))}),[c$1,P]),T=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$2=useCallback(()=>{f$1(null);},[]),A=useCallback(()=>{d$1&&f$1(I?null:E.current);},[d$1,I]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),h$1?.(o||e$1?.[0]?.status||"all"),A(),M(B=>B+1);},[p,h$1,o,e$1,A]),D=useCallback(t=>B=>{t?.onClick?.(B),H(t.status),g$2();},[g$2]),yt=useMemo(()=>e$1?.map(t=>({...t,onClick:D(t)}))||[],[e$1,D]),Et=a[n],xt=useMemo(()=>m?.label||(o?y(o):s),[m,o,y,s]);return jsxs(Fragment,{children:[jsx(Et,{id:St,"data-testid":"StatusButton",...bt,ref:E,onClick:Mt,statusVariant:n,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e,{variant:n,children:[kt,xt,wt]}),T&&jsx(d,{children:T})]})}),I&&d$1&&jsx(c,{open:I,onClose:g$2,anchorEl:x,menuItems:yt})]})}),gt=Nt;var oo=gt;
|
|
2
2
|
export{L as a,oo as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-2AS2ZAB6.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Kj,Oe,Eb}from'./chunk-YKKS24ES.js';import {useId,useCallback}from'react';import P from'@mui/material/Box';import A from'@mui/material/Stack';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var I=styled(Box,{shouldForwardProp:t=>t!=="disabled"})(({theme:t,disabled:a})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:a?"default":"pointer",position:"relative",'& [data-slot="input"]':{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"},...a&&{'& [data-slot="content"], & [data-slot="icon-wrapper"]':{cursor:"default",opacity:.6}}})),w=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),s=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),c=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),b=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),F=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),U=styled(j)(()=>({color:"#FF3D00",fontSize:"8px",fontWeight:500})),k=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16}));var H=({getRootProps:t,getInputProps:a,open:S,onChangeFiles:B,processFiles:m,disabled:i,errorMessage:l,onResetError:d,maxFileSize:M,preventDuplicates:T,label:v="Click to upload",hintText:E,sx:j})=>{let z=yc(useId(),"file-uploader"),x=a(),D=useCallback(p=>{p.stopPropagation(),d?.(p);},[d]);return jsxs(I,{id:z,"data-testid":"FileUploader_root",...t(),sx:j,disabled:i,onClick:i?void 0:S,children:[jsx("input",{"data-slot":"input",...x,onChange:p=>{if(x.onChange?.(p),!m)return;let f=m(Array.from(p.target.files||[]));(f.length>0||!T)&&B?.(f);},disabled:i}),jsxs(w,{"data-slot":"content",flex:1,children:[jsx(F,{"data-slot":"icon-wrapper",children:jsx(P,{component:"img",src:l?Kj:Oe,width:16,height:16})}),l?jsxs(A,{direction:"row",alignItems:"center",flex:1,children:[jsxs(c,{flex:1,children:[jsx(U,{children:l}),jsx(s,{children:"Click to upload again"})]}),d&&jsx(k,{component:"button","data-slot":"close-icon-wrapper",onClick:D,children:jsx(P,{component:"img",src:Eb,width:10,height:10})})]}):jsxs(c,{children:[jsx(s,{children:v}),jsx(b,{children:E||`PDF, JPG or PNG files up to ${M}`})]})]})]})},W=H;var ot=W;export{ot as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-2DC5PMER.js';import {j,b,n}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-2DC5PMER.js';import {j,b,n}from'./chunk-2AS2ZAB6.js';import {Vb,yc}from'./chunk-PLMJIRXJ.js';import {Dj,Ej,Kj,Oe}from'./chunk-YKKS24ES.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),w=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:b$1,successFooter:pe,progressVariant:ae},ne)=>{let{t:a$1}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let B=Vb(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||me?a$1("invalidFileType"):ce?`File is larger than ${B}`:R},[j,R,s,B,a$1]),C=useMemo(()=>n$1.length?jsxs(w,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Vb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Dj,width:56,height:56}),C]})}),pe??jsxs(Q,{children:[jsx(b,{variant:"secondary",size:"md",icon:jsx(a,{src:Ej,alt:"delete"}),onClick:()=>{H([]);},"aria-label":"delete"}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a$1("uploading")}),jsx(g,{children:a$1("wait")})]}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),C]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a$1("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:b$1,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Kj:Oe,width:56,height:56}),te,C,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a$1("uploadAgain")})}):jsxs(w,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",B]}),e&&jsx(g,{children:a$1("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=yc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Qe=ee;export{Qe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-MW2PULH6.js';import {V}from'./chunk-2AS2ZAB6.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Eb,A as A$1}from'./chunk-YKKS24ES.js';import {useId,useMemo,useState}from'react';import d from'@mui/material/Box';import R from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var b=styled(d)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),k=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),v=styled(d,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),y=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(d$1,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({$hasSearchValue:e})=>({cursor:e?"pointer":"default",width:"100%",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(V)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),A=styled(V)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),L=styled(R)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:h,filteredOptions:a,isLoading:P,initialSalesChannels:m,initialSalesChannelsSearch:V}){let B=yc(useId(),"sales-channel-filter"),o=useMemo(()=>m||[],[m]),[l,u]=useState(V||""),S=t=>o.some(i=>i.id===t),s=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(k,{id:B,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(v,{$active:!!l,children:jsx(y,{src:l?Eb:A$1,alt:"search",$isClear:!!l,onClick:()=>{u(""),h("");}})}),disabled:x,onChange:t=>{u(t.target.value),h(t.target.value);},value:l,disableUnderline:true}),jsx(b,{children:P?Array.from({length:9}).map((t,i)=>jsx(L,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:s,isIndeterminate:!s&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(s?[]:a);},children:s?"Deselect All":"Select All"}),a.map(t=>jsx(A,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let O=S(t.id)?o?.filter(D=>D.id!==t.id):[...o??[],t];e(O);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2W4VCLHJ.js';import {yc}from'./chunk-PLMJIRXJ.js';import {wi}from'./chunk-YKKS24ES.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=yc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:wi,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,d}from'./chunk-65QKI3ZL.js';import {a,c as c$1,d as d$1}from'./chunk-PQSELTNR.js';import {b,a as a$1}from'./chunk-G3LCY5M2.js';import {yc,xa}from'./chunk-PLMJIRXJ.js';import {Gf}from'./chunk-YKKS24ES.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 pt from'@mui/material/Box';import {Resizable}from're-resizable';import lt 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,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var he=(e,t)=>t.toLowerCase().includes(e);function we(e,t,i){let n=he("top",t),r=he("left",t);return !n&&!r?null:{x:r?e.x+i.width:e.x,y:n?e.y-i.height:e.y}}var be=e=>{let{viewportWidth:t,viewportHeight:i,viewerDefaultWidth:n,viewerDefaultHeight:r,initialPosition:d,isMaximized:l,containerRef:a}=e,s=!l&&a?.current&&a.current!==document.body?a.current:null,p=s?.getBoundingClientRect(),u=p?.left??0,f=p?.top??0,m=s?.clientWidth||t,c=d?.x??t/2-n/2,o=d?.y??i/2-r/2;return {x:m-(c-u),y:o-f}};var Ue=555,je=545;function te({children:e,isOpen:t,onClose:i,defaultWindowHeight:n,defaultWindowWidth:r,initialPosition:d,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u,windowZIndex:f=1}){let {height:m,width:c}=a$1(),[o,M]=useState(false),B=o?null:u?.current,A=B?.clientWidth||c,b=B?.clientHeight||m,I=r||Ue,g=n||je;useRef(false);let [k,H]=useState(()=>be({viewportWidth:c,viewportHeight:m,viewerDefaultWidth:I,viewerDefaultHeight:g,initialPosition:d,isMaximized:o,containerRef:u})),[L,_]=useState(false),[F,S]=useState(false),[E,P]=useState(true),x=useRef(),[G,z]=useState({width:r??0,height:n??0}),O=useCallback(W=>{x?.current?.updateSize(W);},[]),V=useCallback(W=>{x.current?.updateSize(W),z(D=>({width:W.width??D.width,height:W.height??D.height}));},[]),ee=useMemo(()=>({position:k,setPosition:H,resizableRef:x,windowZIndex:f,isOpen:t,setIsMaximized:M,setIsSidebarExpanded:P,setIsToolbarAnimationDisabled:S,setIsResized:_,isMaximized:o,isToolbarAnimationDisabled:F,isSidebarExpanded:E,isResized:L,dimensions:G,setNewDimensions:z,viewerDefaultWidth:I,viewerDefaultHeight:g,onClose:i,fullWindowWidth:A,fullWindowHeight:b,viewportWidth:c,viewportHeight:m,updateRefSize:O,updateSize:V,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u}),[k,H,x,t,M,P,S,_,o,F,E,L,G,z,A,b,c,m,I,g,O,V,i,l,a,s,p,u,f]);return jsx(Z.Provider,{value:ee,children:e})}var R=.5,He=183,ve=287,ye=840,Re=545,oe=35;function Ke({title:e,onClose:t,onMaximize:i,maximized:n=false,id:r,onRequestClick:d$2,isSidebarExpanded:l=false,isHovered:a$1=false,onMouseHover:s,onMouseLeave:p,showSectionsButton:u,rightActions:f,icon:m}){return jsx(c,{id:r,"data-testid":"UserTitleBar",maximized:n||false,children:jsx(d,{onMouseEnter:s,onMouseLeave:p,isMaximized:n,isHovered:a$1,title:e,icon:m||Gf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:n,onClick:i}),u&&jsx(d$1,{onClick:d$2,isExpanded:!l,isHovered:a$1,children:"Sidebar"})]}),rightActions:f})})}var Ae=memo(Ke);var ie=Ae;function Qe({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:i,onClose:n,isSidebarExpanded:r,setIsSidebarExpanded:d,isToolbarAnimationDisabled:l,title:a,showSectionsButton:s,rightActions:p,icon:u}){let{isHovered:f,onMouseEnter:m,onMouseLeave:c}=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(ie,{title:a||"Users",showSectionsButton:s,onClose:n,onMaximize:()=>{i?.(o=>!o),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),d(!r);},isSidebarExpanded:r,isHovered:f,onMouseHover:m,onMouseLeave:c,rightActions:p,icon:u})})}var Se=memo(Qe);var Ee=Se;function ut({children:e,titleBar:t,titleBarText:i,mainAppOrder:n,mainAppIsMinimized:r,showSectionsButton:d=true,rightActions:l,titleBarIcon:a,overflow:s="hidden"}){let p=useRef(null),u=yc(useId(),"app-window"),{dimensions:f,position:m,resizableRef:c,isMaximized:o,isOpen:M,onClose:B,viewerDefaultWidth:A,viewerDefaultHeight:b,windowZIndex:I,setPosition:g,setNewDimensions:Q,isToolbarAnimationDisabled:k,fullWindowWidth:H,fullWindowHeight:L,viewportWidth:_,viewportHeight:F,setIsMaximized:S,setIsResized:E,isResized:P,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:G,isSidebarExpanded:z,minWidth:O,maxWidth:V,minHeight:ee,maxHeight:W,containerRef:D}=useContext(Z),h=useMemo(()=>document.createElement("div"),[]),[Le,_e]=useState(null);useLayoutEffect(()=>{_e(D?.current??document.body);},[D]);let w=o?document.body:Le;useLayoutEffect(()=>{if(!w)return;let v=w===document.body;return h.style.position=v?"":"absolute",h.style.inset=v?"":"0",h.style.pointerEvents="none",h.style.overflow="visible",w.appendChild(h),()=>{h.parentNode===w&&w.removeChild(h);}},[w,h]);let se=useRef({x:0,y:0}),pe=xa(),Fe=useCallback((v,U,de,Oe)=>{E(true),Q({width:de.offsetWidth,height:de.offsetHeight});let le=we(se.current,U,Oe);le&&g(le);},[Q,E,g]),N=f.width||A;if(!w)return null;let Ge=jsx(lt,{nodeRef:p,disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:H/2-N/2,y:L/2-b/2},position:{x:H-m.x,y:m.y},onStop:(v,U)=>{g({x:H-U.x,y:U.y});},...w===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(n||0)+I+(o?1:0),...r&&{display:"none"},...w===document.body?!o&&{transform:"translate(180px, 14px)"}:!o&&{position:"absolute"},...!o&&{width:pe?N:"fit-content",height:pe?b:"fit-content"},...o&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:s,width:P?"fit-content":N,height:P?"fit-content":"100%",...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{S(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:M,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:h,fullScreen:o,"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:f.width,height:f.height},maxHeight:W??F-40,maxWidth:V??_,minWidth:o?"100vw":O??A,minHeight:o?"100vh":ee??b,ref:v=>{c.current=v;},onResizeStart:()=>{se.current=m,x(true);},onResizeStop:()=>{x(false);},onResize:Fe,defaultSize:{width:N,height:b},style:{background:"transparent",height:f.height,overflow:s,...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(pt,{sx:{height:"100%"},id:u,"data-testid":"AppWindow",children:[t??jsx(Ee,{setIsToolbarAnimationDisabled:x,onClose:B,setIsMaximized:S,isToolbarAnimationDisabled:k,setIsSidebarExpanded:G,isSidebarExpanded:z,title:i,isMaximized:o,showSectionsButton:d,rightActions:l,icon:a}),e]})})})});return createPortal(Ge,h)}var De=memo(ut);var ct=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"})),xt=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}})),ht=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})})),wt=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"})),bt=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 re=De;function gt({children:e,windowProps:t,...i}){return i.isOpen?jsx(te,{...i,children:jsx(re,{...t,children:e})}):null}var Me=gt;function Ht({title:e,maximized:t=false,id:i,isHovered:n=false,onMouseHover:r,onMouseLeave:d$1,leftActions:l,titleIconSrc:a,sx:s,...p}){return jsx(c,{className:"header-wrapper",id:i,maximized:t||false,sx:s,...p,children:jsx(d,{onMouseEnter:r,onMouseLeave:d$1,isMaximized:t,isHovered:n,title:e||"",icon:a,leftActions:l})})}var ae=memo(Ht);function Rt({isMaximized:e,id:t,isToolbarAnimationDisabled:i,title:n,leftActions:r,onClose:d,onMaximize:l,sx:a$1}){let{isHovered:s,onMouseEnter:p,onMouseLeave:u}=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,...i&&{duration:0}},children:jsx(ae,{title:n,maximized:e,id:t||"draggable-dialog-title",isHovered:s,onMouseHover:p,onMouseLeave:u,leftActions:r||jsxs(Fragment,{children:[jsx(a,{onClick:d}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:a$1})})}var ke=memo(Rt);var St=ke;var qo=Me;export{Z as a,te as b,R as c,He as d,ve as e,ye as f,Re as g,oe as h,ie as i,ct as j,xt as k,ht as l,wt as m,bt as n,re as o,ae as p,St as q,qo as r};
|
|
1
|
+
import {c,d}from'./chunk-SVQZWXXY.js';import {a,c as c$1,d as d$1}from'./chunk-PQSELTNR.js';import {b,a as a$1}from'./chunk-G3LCY5M2.js';import {yc,xa}from'./chunk-PLMJIRXJ.js';import {Gf}from'./chunk-YKKS24ES.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 pt from'@mui/material/Box';import {Resizable}from're-resizable';import lt 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,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var he=(e,t)=>t.toLowerCase().includes(e);function we(e,t,i){let n=he("top",t),r=he("left",t);return !n&&!r?null:{x:r?e.x+i.width:e.x,y:n?e.y-i.height:e.y}}var be=e=>{let{viewportWidth:t,viewportHeight:i,viewerDefaultWidth:n,viewerDefaultHeight:r,initialPosition:d,isMaximized:l,containerRef:a}=e,s=!l&&a?.current&&a.current!==document.body?a.current:null,p=s?.getBoundingClientRect(),u=p?.left??0,f=p?.top??0,m=s?.clientWidth||t,c=d?.x??t/2-n/2,o=d?.y??i/2-r/2;return {x:m-(c-u),y:o-f}};var Ue=555,je=545;function te({children:e,isOpen:t,onClose:i,defaultWindowHeight:n,defaultWindowWidth:r,initialPosition:d,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u,windowZIndex:f=1}){let {height:m,width:c}=a$1(),[o,M]=useState(false),B=o?null:u?.current,A=B?.clientWidth||c,b=B?.clientHeight||m,I=r||Ue,g=n||je;useRef(false);let [k,H]=useState(()=>be({viewportWidth:c,viewportHeight:m,viewerDefaultWidth:I,viewerDefaultHeight:g,initialPosition:d,isMaximized:o,containerRef:u})),[L,_]=useState(false),[F,S]=useState(false),[E,P]=useState(true),x=useRef(),[G,z]=useState({width:r??0,height:n??0}),O=useCallback(W=>{x?.current?.updateSize(W);},[]),V=useCallback(W=>{x.current?.updateSize(W),z(D=>({width:W.width??D.width,height:W.height??D.height}));},[]),ee=useMemo(()=>({position:k,setPosition:H,resizableRef:x,windowZIndex:f,isOpen:t,setIsMaximized:M,setIsSidebarExpanded:P,setIsToolbarAnimationDisabled:S,setIsResized:_,isMaximized:o,isToolbarAnimationDisabled:F,isSidebarExpanded:E,isResized:L,dimensions:G,setNewDimensions:z,viewerDefaultWidth:I,viewerDefaultHeight:g,onClose:i,fullWindowWidth:A,fullWindowHeight:b,viewportWidth:c,viewportHeight:m,updateRefSize:O,updateSize:V,minWidth:l,maxWidth:a,minHeight:s,maxHeight:p,containerRef:u}),[k,H,x,t,M,P,S,_,o,F,E,L,G,z,A,b,c,m,I,g,O,V,i,l,a,s,p,u,f]);return jsx(Z.Provider,{value:ee,children:e})}var R=.5,He=183,ve=287,ye=840,Re=545,oe=35;function Ke({title:e,onClose:t,onMaximize:i,maximized:n=false,id:r,onRequestClick:d$2,isSidebarExpanded:l=false,isHovered:a$1=false,onMouseHover:s,onMouseLeave:p,showSectionsButton:u,rightActions:f,icon:m}){return jsx(c,{id:r,"data-testid":"UserTitleBar",maximized:n||false,children:jsx(d,{onMouseEnter:s,onMouseLeave:p,isMaximized:n,isHovered:a$1,title:e,icon:m||Gf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:n,onClick:i}),u&&jsx(d$1,{onClick:d$2,isExpanded:!l,isHovered:a$1,children:"Sidebar"})]}),rightActions:f})})}var Ae=memo(Ke);var ie=Ae;function Qe({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:i,onClose:n,isSidebarExpanded:r,setIsSidebarExpanded:d,isToolbarAnimationDisabled:l,title:a,showSectionsButton:s,rightActions:p,icon:u}){let{isHovered:f,onMouseEnter:m,onMouseLeave:c}=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(ie,{title:a||"Users",showSectionsButton:s,onClose:n,onMaximize:()=>{i?.(o=>!o),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),d(!r);},isSidebarExpanded:r,isHovered:f,onMouseHover:m,onMouseLeave:c,rightActions:p,icon:u})})}var Se=memo(Qe);var Ee=Se;function ut({children:e,titleBar:t,titleBarText:i,mainAppOrder:n,mainAppIsMinimized:r,showSectionsButton:d=true,rightActions:l,titleBarIcon:a,overflow:s="hidden"}){let p=useRef(null),u=yc(useId(),"app-window"),{dimensions:f,position:m,resizableRef:c,isMaximized:o,isOpen:M,onClose:B,viewerDefaultWidth:A,viewerDefaultHeight:b,windowZIndex:I,setPosition:g,setNewDimensions:Q,isToolbarAnimationDisabled:k,fullWindowWidth:H,fullWindowHeight:L,viewportWidth:_,viewportHeight:F,setIsMaximized:S,setIsResized:E,isResized:P,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:G,isSidebarExpanded:z,minWidth:O,maxWidth:V,minHeight:ee,maxHeight:W,containerRef:D}=useContext(Z),h=useMemo(()=>document.createElement("div"),[]),[Le,_e]=useState(null);useLayoutEffect(()=>{_e(D?.current??document.body);},[D]);let w=o?document.body:Le;useLayoutEffect(()=>{if(!w)return;let v=w===document.body;return h.style.position=v?"":"absolute",h.style.inset=v?"":"0",h.style.pointerEvents="none",h.style.overflow="visible",w.appendChild(h),()=>{h.parentNode===w&&w.removeChild(h);}},[w,h]);let se=useRef({x:0,y:0}),pe=xa(),Fe=useCallback((v,U,de,Oe)=>{E(true),Q({width:de.offsetWidth,height:de.offsetHeight});let le=we(se.current,U,Oe);le&&g(le);},[Q,E,g]),N=f.width||A;if(!w)return null;let Ge=jsx(lt,{nodeRef:p,disabled:o,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:H/2-N/2,y:L/2-b/2},position:{x:H-m.x,y:m.y},onStop:(v,U)=>{g({x:H-U.x,y:U.y});},...w===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(n||0)+I+(o?1:0),...r&&{display:"none"},...w===document.body?!o&&{transform:"translate(180px, 14px)"}:!o&&{position:"absolute"},...!o&&{width:pe?N:"fit-content",height:pe?b:"fit-content"},...o&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:s,width:P?"fit-content":N,height:P?"fit-content":"100%",...o&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{S(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:M,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:h,fullScreen:o,"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:f.width,height:f.height},maxHeight:W??F-40,maxWidth:V??_,minWidth:o?"100vw":O??A,minHeight:o?"100vh":ee??b,ref:v=>{c.current=v;},onResizeStart:()=>{se.current=m,x(true);},onResizeStop:()=>{x(false);},onResize:Fe,defaultSize:{width:N,height:b},style:{background:"transparent",height:f.height,overflow:s,...o&&{height:"100% !important",width:"100% !important",flex:1},...o&&{position:"relative"}},children:jsxs(pt,{sx:{height:"100%"},id:u,"data-testid":"AppWindow",children:[t??jsx(Ee,{setIsToolbarAnimationDisabled:x,onClose:B,setIsMaximized:S,isToolbarAnimationDisabled:k,setIsSidebarExpanded:G,isSidebarExpanded:z,title:i,isMaximized:o,showSectionsButton:d,rightActions:l,icon:a}),e]})})})});return createPortal(Ge,h)}var De=memo(ut);var ct=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"})),xt=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}})),ht=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})})),wt=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"})),bt=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 re=De;function gt({children:e,windowProps:t,...i}){return i.isOpen?jsx(te,{...i,children:jsx(re,{...t,children:e})}):null}var Me=gt;function Ht({title:e,maximized:t=false,id:i,isHovered:n=false,onMouseHover:r,onMouseLeave:d$1,leftActions:l,titleIconSrc:a,sx:s,...p}){return jsx(c,{className:"header-wrapper",id:i,maximized:t||false,sx:s,...p,children:jsx(d,{onMouseEnter:r,onMouseLeave:d$1,isMaximized:t,isHovered:n,title:e||"",icon:a,leftActions:l})})}var ae=memo(Ht);function Rt({isMaximized:e,id:t,isToolbarAnimationDisabled:i,title:n,leftActions:r,onClose:d,onMaximize:l,sx:a$1}){let{isHovered:s,onMouseEnter:p,onMouseLeave:u}=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,...i&&{duration:0}},children:jsx(ae,{title:n,maximized:e,id:t||"draggable-dialog-title",isHovered:s,onMouseHover:p,onMouseLeave:u,leftActions:r||jsxs(Fragment,{children:[jsx(a,{onClick:d}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:a$1})})}var ke=memo(Rt);var St=ke;var qo=Me;export{Z as a,te as b,R as c,He as d,ve as e,ye as f,Re as g,oe as h,ie as i,ct as j,xt as k,ht as l,wt as m,bt as n,re as o,ae as p,St as q,qo as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-OWIUXOZF.js';import {z}from'./chunk-2AS2ZAB6.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Rh}from'./chunk-YKKS24ES.js';import {memo,useId}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongLabel"})(({theme:t,isLongLabel:e})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:e?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));function u({ids:t,visible:e,label:o,onDismiss:c,dismissible:m=true}){let d=yc(useId(),"active-filter-chip");return e?jsxs(a,{id:d,"data-testid":"ActiveFilterChip",isLongLabel:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),m&&jsx(z,{pointer:true,round:true,onClick:c,color:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:Rh,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var S=s;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-4QONVXGE.js';import {R,V}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-4QONVXGE.js';import {R,V}from'./chunk-2AS2ZAB6.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Cb}from'./chunk-YKKS24ES.js';import {Box}from'@mui/material';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useId,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(r,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),w=styled(r)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(r)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),v=styled(r)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$1,onChange:D,options:i}){let M=yc(useId(),"dropdown2"),[d,s]=useState(null),[y,E]=useState(o),t=!!d,W=e=>{t||s(e.currentTarget);},m=()=>{t&&s(null);},k=e=>{E(e),D?.(e),m();};return jsxs(h,{onClick:W,open:t,id:M,"data-testid":"Dropdown2",children:[jsxs(w,{children:[jsx(b,{children:a$1}),jsx(v,{children:y})]}),jsx(Box,{component:"img",src:Cb,alt:"down arrow",sx:{width:15,...t&&{transform:"rotate(180deg)"}}}),jsx(R,{open:t,anchorEl:d,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,B)=>jsx(V,{onClick:()=>{k(e.value);},sx:T=>({...B!==i.length-1&&{borderBottom:`1px solid ${T.palette.divider}`}}),children:e.label},e.value))}),t&&jsx(a,{onClick:m})]})}var N=l;export{N as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {L,ba,aa}from'./chunk-2AS2ZAB6.js';import {yc,Ac,jc,kc,Xa}from'./chunk-PLMJIRXJ.js';import {forwardRef,useId,memo}from'react';import Z from'@mui/material/Box';import {styled,useTheme}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n="os-shared-FeedbackInput",s={root:`${n}-root`,field:`${n}-field`,label:`${n}-label`,input:`${n}-input`,helperText:`${n}-helperText`};var k=styled(Z)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40}));function I(e,t){let{borderColor:o}=aa(e,t),r=e.v2.radius(4);return {borderColor:o,borderBottom:"none",borderRadius:`${r} ${r} 0 0`,"&:focus-within":{borderColor:o,boxShadow:"none"}}}var F=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));function se(e,t){let o=typeof e=="string"&&Xa(e)?e:void 0;return {resolvedLabel:o??t??void 0,resolvedPlaceholder:o&&typeof t=="string"?t:void 0}}var h=forwardRef(({onChange:e,error:t=false,hasError:o=false,helperText:r,feedback:d,label:S,placeholder:T,disabled:C,fullWidth:N=true,startAdornment:P,endAdornment:v,readOnly:H,inputProps:L$1,InputProps:$,InputLabelProps:de,className:A,sx:B,...E},w)=>{let R=useTheme(),W=yc(useId(),"feedback-input"),O=Y=>{e?.(Y.target.value??"");},{isProvided:p,isVisible:D,type:M}=Ac(d),{resolvedLabel:V,resolvedPlaceholder:z}=se(S,T),_=(!!o||!!t)&&!p,{sx:j,startAdornment:q,endAdornment:G,readOnly:J,inputProps:K,disabled:Q}=$??{},U=D?I(R,M):{},X=jc(jc(U,j),B);return jsxs(Z,{className:s.root,children:[jsx(k,{id:W,"data-testid":"FeedbackInput",children:jsx(L,{...E,ref:w,label:V,placeholder:z,disabled:C??Q,fullWidth:N,error:_,startAdornment:P??q,endAdornment:v??G,readOnly:H??J,inputProps:{...K,...L$1},onChange:O,className:kc(s.field,A),sx:X})}),p?jsx(ba,{...d}):null,!p&&r?jsx(F,{className:s.helperText,children:r}):null]})});h.displayName="FeedbackInput";var g=memo(h);export{s as a,g as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {b}from'./chunk-EM7IY6MB.js';import {j as j$1,R as R$1}from'./chunk-2AS2ZAB6.js';import {yc,Ka}from'./chunk-PLMJIRXJ.js';import {dl,el}from'./chunk-YKKS24ES.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:a,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:a.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),d=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),$=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:a,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${a[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),j=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),F=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),H=styled(b)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ue=r=>r>=12?"PM":"AM",N=()=>new Date().getMinutes(),R=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var O=["AM","PM"],x=12,h=59;function U({onChange:r,defaultTime:o,enableRealTimeChange:i,size:a="large"}){let p=yc(useId(),"time-picker"),[b,I]=useState(null),[u,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,C]=useState(o?.hour??R()),[l,y]=useState(o?.minute??N()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:u});},[c,l,u,i]);let G=e=>{I(e.currentTarget);},J=()=>{I(null),r?.({hour:c,minute:l,period:u});},K=e=>{q(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ka(s(Number(e.target.value)));if(m>12){e.preventDefault();return}C(m);},D=()=>{C(e=>e===12?1:e+1);},E=()=>{C(e=>e===1?12:e-1);},V=e=>{let m=Ka(s(Number(e.target.value)));if(m>59){e.preventDefault();return}y(m);},X=()=>{y(e=>e===59?(D(),0):e+1);},Y=()=>{y(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:a,open:v,onClick:G,children:`${s(c)}:${s(l)}${u.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(F,{children:[jsxs(k,{children:[jsx(d,{onClick:D,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(H,{value:s(c),onChange:Q}),jsx(d,{onClick:E,children:jsx("img",{src:el,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(H,{value:s(l),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:el,alt:"arrow"})})]})]}),jsx(j,{children:O.map(e=>jsx($,{onClick:()=>{K(e);},selected:u===e,children:e},e))})]})})]})})}var ve=U;export{_ as a,ue as b,N as c,R as d,ce as e,O as f,x as g,h,U as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {r}from'./chunk-
|
|
1
|
+
import {r}from'./chunk-2AS2ZAB6.js';import {yc,cb}from'./chunk-PLMJIRXJ.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(r,{width:51,height:16}),jsx(r,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=yc(useId(),"progress-ring"),m=t==null||t==="",F=cb(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-SZY5JDY4.js';import {s}from'./chunk-G3LCY5M2.js';import {memo,useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import F from'@mui/material/Box';import K from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var Q=styled(F)(({theme:n})=>({background:n.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),E=styled(F)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),b=styled(K)(({theme:n})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${n.palette.info.dark}`,backgroundColor:n.palette.info.dark,fontWeight:700,fontSize:"11px",color:n.palette.common.white,"&:hover":{backgroundColor:n.palette.info.dark}})),O=styled(K)(({theme:n})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${n.palette.divider}`,backgroundColor:n.palette.common.white,fontWeight:500,fontSize:"11px",color:n.palette.text.primary,"&:hover":{background:"transparent"}}));var v="188px";function $({onCloseDropdown:n,filter:o,styles:g,header:R,searchable:c$1}){let[T,W]=useState([]),{t:f}=useTranslation(),p=useRef([]),B=o?.options?.map(e=>e.value).join(",")??"";useEffect(()=>{let e=i=>{let r=o?.data?.[o.apiKey]??[];if(Array.isArray(r)&&r.length)return new Set(r).has(i)},s=i=>i.map(({placeholder:r,value:t,isSelected:a,icon:l,options:d})=>{let x;if(c$1){let m=p.current.find(y=>y.apiKey===t);x=m!==void 0?m.isSelected??false:(a||e(t)||d?.every(({value:y})=>e(y)))??false;}else x=(a||e(t)||d?.every(({value:m})=>e(m)))??false;return {...r&&{label:r},name:t,selected:x,...l&&{icon:l},...d?.length&&{menuItems:s(d)}}});o.options&&W(s(o.options));},[o?.data,B,c$1]);let h=()=>{p.current=[];},P=e=>{h(),n(e);},I=()=>{if(c$1){let e=new Set(o?.data?.[o.apiKey]??[]);p.current.forEach(({apiKey:s,options:i,isSelected:r})=>{i?i.forEach(({apiKey:t,isSelected:a})=>{a?e.add(t):e.delete(t);}):r?e.add(s):e.delete(s);}),o?.onConfirm?.({[o.apiKey]:[...e]});}else {let e=p.current.reduce((s,{options:i,apiKey:r,isSelected:t})=>{if(i){let a=i.filter(({isSelected:l})=>l);a.length&&s.push(...a.map(({apiKey:l})=>l));}else t&&s.push(r);return s},[]);p.current.length&&o?.onConfirm?.({[o.apiKey]:[...new Set(e)]});}h();},V=s(I,n),A=e=>{I(),n(e);},N=e=>{let s=r=>r.map(({name:t,selected:a,menuItems:l,label:d})=>({...d&&{placeholder:d},apiKey:t,isSelected:a,...l?.length&&{options:s(l)}})),i=s(e);if(c$1){let r=new Set(i.map(t=>t.apiKey));p.current=[...p.current.filter(t=>!r.has(t.apiKey)),...i];}else p.current=i;},w=g?.maxWidth??v,k={maxWidth:w,width:`min(${w}, max-content)`};return jsx(c,{"data-testid":"ColumnFilter_List",title:f("filterBy")||"Filter by",menuItems:T,style:g,menuSx:k,sx:[e=>({...k,marginTop:"10px",textAlign:"left",boxShadow:e.shadows[3],overflow:"hidden",".nested-menu-item":{height:41,zIndex:9999}}),...(Array.isArray(o.sx)?o.sx:[o.sx]).filter(Boolean)],updatedList:N,header:R,onKeyDown:V,footer:jsxs(E,{sx:{position:"sticky",bottom:0,zIndex:99999},children:[jsx(O,{onClick:P,children:f("cancel")},"nested-dropdown-cancel"),jsx(b,{onClick:A,children:f("okay")},"nested-dropdown-ok")]})})}var M=memo($);var ce=M;export{v as a,Q as b,E as c,b as d,O as e,ce as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1,g,a as a$1}from'./chunk-DGAX7HUY.js';import {a}from'./chunk-2DC5PMER.js';import {j as j$1,p}from'./chunk-
|
|
1
|
+
import {b as b$1,g,a as a$1}from'./chunk-DGAX7HUY.js';import {a}from'./chunk-2DC5PMER.js';import {j as j$1,p}from'./chunk-2AS2ZAB6.js';import {yc}from'./chunk-PLMJIRXJ.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(j$1)(({theme:t})=>({color:t.v2.palette.base.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let g$1=yc(useId(),"status-label"),p$1=b$1[o]??g[o]??null;return jsx(p,{title:t,children:jsxs(f,{id:g$1,"data-testid":"StatusLabel",sx:{backgroundColor:p$1?.background||"transparent"},children:[jsx(a,{src:a$1[o]}),jsx(c,{sx:S=>({backgroundColor:p$1?.color||S.palette.info.dark}),children:x})]})})}var j=r;export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-2AS2ZAB6.js';import {styled,Box,Button}from'@mui/material';var d=styled(j)(({theme:o})=>{let{grey:r}=o.v2.palette;return {fontWeight:o.v2.typography.fontWeightMedium,fontSize:"0.6875rem",color:r[500],paddingInlineStart:o.v2.spacing(16),paddingTop:o.v2.spacing(8),paddingBottom:o.v2.spacing(8),paddingInlineEnd:o.v2.spacing(8),borderBottom:`1px solid ${r[100]}`}}),l=styled(Box)(({theme:o})=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center",position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999,borderTop:`1px solid ${o.palette.divider}`})),c=styled(Button)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),s=styled(Button)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}}));export{d as a,l as b,c,s as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {L}from'./chunk-2AS2ZAB6.js';import {yc,jc,kc}from'./chunk-PLMJIRXJ.js';import {forwardRef,useId,memo}from'react';import B from'@mui/material/Box';import {jsx}from'react/jsx-runtime';var m="os-shared-InputNumber",e={root:`${m}-root`,field:`${m}-field`};var u=forwardRef(({isError:a,error:N,hideArrows:l=true,inputProps:f,className:i,sx:b,value:d,placeholder:x,...I},y)=>{let c=yc(useId(),"input-number");return jsx(B,{id:c,"data-testid":"InputNumber",className:e.root,sx:{flexGrow:1},onClick:C=>{C.stopPropagation();},children:jsx(L,{...I,ref:y,type:"number",value:d??"",placeholder:x,hideArrows:l,error:!!a||!!N,inputProps:{...f,type:"number"},className:kc(e.field,i),sx:jc({flexGrow:1,maxWidth:"100%"},b)})})});u.displayName="InputNumber";var n=memo(u);var $=n;export{e as a,$ as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f as f$1}from'./chunk-DNEPOE4E.js';import {a,f,e}from'./chunk-OWIUXOZF.js';import {a as a$1}from'./chunk-4QONVXGE.js';import {z as z$1,L}from'./chunk-2AS2ZAB6.js';import {Ka,g,yc}from'./chunk-PLMJIRXJ.js';import {Cb}from'./chunk-YKKS24ES.js';import {memo,useRef,useMemo,useCallback,useId,useState}from'react';import {styled,Typography,Box,Popper}from'@mui/material';import st from'@mui/material/Box';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var O=styled(Typography)(()=>({display:"block",textAlign:"center",fontSize:"10px",fontWeight:500,color:"#8D8D94",padding:"24px 0"})),W=styled(Box,{shouldForwardProp:t=>t!=="isDisabled"})(({isDisabled:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",...t&&{"& img":{opacity:.3}}}));var tt=memo(t=>{let{variant:e$1="inActive",badgeCount:o,label:r,...n}=t,i=useRef(null),c=useMemo(()=>!o||Number.isNaN(Ka(o))?null:jsx(z$1,{color:"inactive",children:g(Number(o))}),[o]),p=useCallback(m=>{m.stopPropagation(),t?.onClick?.(m);},[t]),u=a[e$1];return jsx(u,{"data-testid":"MultiSelectStatusButton",...n,ref:i,onClick:p,statusVariant:e$1,children:jsx(f,{children:jsxs(e,{variant:e$1,children:[r,c]})})})}),A=tt;function V(t){let e=new Set;return t.filter(o=>e.has(o.value)?false:(e.add(o.value),true))}function h(t,e){let o=e.toLowerCase();return t.reduce((r,n)=>{if(n.options?.length){let i=h(n.options,e);i.length&&r.push({...n,options:i});}else (n.placeholder?.toLowerCase().includes(o)||n.value.toLowerCase().includes(o))&&r.push(n);return r},[])}function ut({buttonLabel:t,onClear:e,onConfirm:o,dropdownItems:r,apiKey:n,data:i,styles:c,buttonDisabled:p,searchable:u,searchPlaceholder:m}){let{t:Q}=useTranslation(),Y=m??`${Q("search")}...`,$=yc(useId(),"multi-select-dropdown-button"),[C,g]=useState(null),[a,d]=useState(""),G=l=>{g(l.currentTarget);},b=()=>{g(null),d("");},x=!!C,L$1=i?.[n],J=Array.isArray(L$1)?L$1.length:0,v=useMemo(()=>{if(!r)return r;let l=V(r);return !u||!a?l:h(l,a)},[u,a,r]),w=u&&!!a&&v?.length===0,K=u?jsxs(Fragment,{children:[jsx(st,{sx:{padding:"8px 16px",pt:0},children:jsx(L,{type:"search",clearable:true,fullWidth:true,name:"multi-select-search",value:a,placeholder:Y,onChange:l=>d(l.target.value),onClear:()=>d(""),onKeyDown:l=>l.stopPropagation(),inputProps:{autoComplete:"off"}})}),w&&jsx(O,{children:"No results found"})]}):void 0;return jsxs("div",{id:$,"data-testid":"MultiSelectDropdownButton",children:[jsx(A,{onClick:G,label:jsxs(W,{isDisabled:p,children:[t,jsx("img",{src:Cb,alt:"arrow-down"})]}),disabled:p,badgeCount:J}),x&&jsx(a$1,{onClick:b}),jsx(Popper,{open:x,anchorEl:C,placement:"bottom-start",sx:{zIndex:9999},children:jsx(f$1,{onCloseDropdown:b,filter:{apiKey:n,data:i,onClear:e,onConfirm:o,options:v,type:"list"},styles:{...c,height:w?"auto":"300px",overflowY:"scroll",maxWidth:"200px"},header:K,searchable:u})})]})}var z=memo(ut);var At=z;export{At as a};
|