@tap-payments/os-micro-frontend-shared 0.3.124 → 0.3.125

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.
@@ -9,4 +9,3 @@ export declare const accordionClassNames: {
9
9
  readonly expandIcon: "os-shared-Accordion-expandIcon";
10
10
  };
11
11
  export type AccordionClassNames = (typeof accordionClassNames)[keyof typeof accordionClassNames];
12
- export declare const accordionExpandIconSrc: string;
@@ -7,5 +7,4 @@ export declare const chipClassNames: {
7
7
  };
8
8
  export type ChipClassNames = (typeof chipClassNames)[keyof typeof chipClassNames];
9
9
  export declare const chipCopyFeedbackMs = 2000;
10
- export declare const chipCopyIconSrc: string;
11
- export declare const chipCopiedIconSrc: string;
10
+ export declare const chipCopyTransitionMs = 150;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type SvgIconProps } from '@mui/material/SvgIcon';
3
+ export declare const ContentCopyIcon: (props: SvgIconProps) => import("react").JSX.Element;
4
+ export declare const GreenCircledCheckIcon: (props: SvgIconProps) => import("react").JSX.Element;
@@ -15,4 +15,7 @@ export declare const ChipTextStyled: import("@emotion/styled").StyledComponent<i
15
15
  /** Copy icon Part — owned by Chip so this primitive stays independent of `CopyButton`. */
16
16
  export declare const ChipCopyButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
17
17
  $copied?: boolean | undefined;
18
- }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
18
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
19
+ export declare const ChipCopyButtonIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
20
+ $visible: boolean;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -8,5 +8,3 @@ export declare const copyButtonClassNames: {
8
8
  export type CopyButtonClassNames = (typeof copyButtonClassNames)[keyof typeof copyButtonClassNames];
9
9
  export declare const copyButtonDefaultFeedbackMs = 2000;
10
10
  export declare const copyButtonTransitionMs = 200;
11
- export declare const copyButtonIconSrc: string;
12
- export declare const copyButtonCopiedIconSrc: string;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type SvgIconProps } from '@mui/material/SvgIcon';
3
+ export declare const ContentCopyIcon: (props: SvgIconProps) => import("react").JSX.Element;
4
+ export declare const GreenCircledCheckIcon: (props: SvgIconProps) => import("react").JSX.Element;
@@ -2,4 +2,4 @@
2
2
  export declare const CopyButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
3
  export declare const CopyButtonIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
4
  $visible: boolean;
5
- }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +1,3 @@
1
- import type { FieldFeedbackType } from './type';
2
1
  export declare const fieldFeedbackClassNamePrefix: "os-shared-FieldFeedback";
3
2
  export declare const fieldFeedbackClassNames: {
4
3
  readonly root: "os-shared-FieldFeedback-root";
@@ -6,10 +5,3 @@ export declare const fieldFeedbackClassNames: {
6
5
  readonly message: "os-shared-FieldFeedback-message";
7
6
  };
8
7
  export type FieldFeedbackClassNames = (typeof fieldFeedbackClassNames)[keyof typeof fieldFeedbackClassNames];
9
- export declare const fieldFeedbackIconSrc: {
10
- readonly error: string;
11
- readonly warning: string;
12
- readonly success: string;
13
- readonly info: string;
14
- };
15
- export declare function getFieldFeedbackIconSrc(type: FieldFeedbackType): string;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { type SvgIconProps } from '@mui/material/SvgIcon';
3
+ import type { FieldFeedbackType } from './type';
4
+ type FieldFeedbackExclamationSeverity = Extract<FieldFeedbackType, 'error' | 'warning'>;
5
+ export declare const FieldFeedbackExclamationIcon: ({ severity, ...props }: import("@mui/material/SvgIcon").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
6
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
7
+ }, "color" | "fontSize" | "shapeRendering" | "classes" | "className" | "style" | "children" | "sx" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & {
8
+ component?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
+ } & {
10
+ severity?: FieldFeedbackExclamationSeverity | undefined;
11
+ }) => import("react").JSX.Element;
12
+ export declare const FieldFeedbackSuccessIcon: (props: SvgIconProps) => import("react").JSX.Element;
13
+ export declare const FieldFeedbackInfoIcon: (props: SvgIconProps) => import("react").JSX.Element;
14
+ export {};
@@ -7,5 +7,5 @@ export declare const FieldFeedbackStyled: import("@emotion/styled").StyledCompon
7
7
  export declare const FieldFeedbackMessageStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
8
8
  $feedbackType: FieldFeedbackType;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- /** Default type icon Part — styled shell; src from constants.ts. */
11
- export declare const FieldFeedbackIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
10
+ /** Default type icon Part. */
11
+ export declare const FieldFeedbackIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,12 +1,9 @@
1
- /// <reference types="react" />
2
1
  import type { RadioProps } from '@mui/material/Radio';
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export type RadioButtonSize = 'sm' | 'md' | 'lg';
5
- export interface RadioButtonProps extends Omit<RadioProps, 'checkedIcon' | 'icon' | 'color' | 'size'> {
4
+ export interface RadioButtonProps extends Omit<RadioProps, 'icon' | 'color' | 'size'> {
6
5
  /** Radio circle size — sm (default), md, or lg */
7
6
  size?: RadioButtonSize;
8
- /** Custom node to replace the default checked state icon */
9
- customCheckedIcon?: React.ReactNode;
10
7
  /** Fill colour of the radio circle when checked */
11
8
  checkedColor?: string;
12
9
  /** Fill colour of the radio circle when disabled */
@@ -1,6 +1,8 @@
1
1
  export declare const sliderClassNamePrefix: "os-shared-Slider";
2
2
  export declare const sliderClassNames: {
3
3
  readonly root: "os-shared-Slider-root";
4
+ readonly thumb: "os-shared-Slider-thumb";
5
+ readonly thumbIcon: "os-shared-Slider-thumbIcon";
4
6
  };
5
7
  export type SliderClassNames = (typeof sliderClassNames)[keyof typeof sliderClassNames];
6
8
  export declare const sliderThumbShadow: string;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type SvgIconProps } from '@mui/material/SvgIcon';
3
+ export declare const SliderThumbIcon: (props: SvgIconProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- import {yc,lc,Ia as Ia$1,xc,ob}from'../../_chunks/chunk-ZIWX3OR5.js';import'../../_chunks/chunk-QB23ITOS.js';import {ra as ra$1,ta as ta$1,x,Of,Sf,Pf,Qf}from'../../_chunks/chunk-P3J2LGFL.js';import'../../_chunks/chunk-VWSQS7GB.js';import'../../_chunks/chunk-YRT7GXGY.js';import {forwardRef,memo,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Y from'@mui/material/Box';import ha,{circularProgressClasses}from'@mui/material/CircularProgress';import xa from'@mui/material/ButtonBase';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Ia from'@mui/material/Checkbox';import wa from'@mui/material/FormControlLabel';import $a from'@mui/material/Switch';import Da from'@mui/material/Typography';import Oa from'@mui/material/Radio';import es,{tooltipClasses}from'@mui/material/Tooltip';import ns from'@mui/material/Skeleton';import cs from'@mui/material/Avatar';import Cs from'@mui/material/Divider';import Bs from'@mui/material/Collapse';import {createPortal}from'react-dom';import sn from'@mui/material/Slider';import cn from'@mui/material/FormControl';import fn from'@mui/material/InputLabel';import un from'@mui/material/Input';import bn from'@mui/material/InputBase';import Bn from'@mui/material/Accordion';import In from'@mui/material/AccordionDetails';import wn from'@mui/material/AccordionSummary';import Fn from'@mui/material/Popper';import jn from'@mui/material/DialogActions';import Un from'@mui/material/DialogTitle';import Wn from'@mui/material/Dialog';import Hn from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import bi from'@mui/material/Stack';var z="os-shared-Button",k={root:`${z}-root`,content:`${z}-content`,startIcon:`${z}-startIcon`,endIcon:`${z}-endIcon`,loading:`${z}-loading`,loadingSpinner:`${z}-loadingSpinner`},Jo={sm:{height:24,padding:"8px 16px",fontSize:"10px",fontWeight:600},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px",fontWeight:700},lg:{height:40,padding:"8px 32px",fontSize:"12px",fontWeight:700}},Qo={sm:12,md:12,lg:14};var oe=styled(xa,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...Jo[t],...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...e==="primary"&&{background:o.palette.info.dark,color:o.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...e==="secondary"&&{backgroundColor:o.palette.common.white,color:o.palette.grey[700],border:`1px solid ${o.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:o.palette.grey[100]}},...e==="ghost"&&{backgroundColor:"transparent",color:o.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:o.palette.info.light}},...e==="danger"&&{backgroundColor:o.palette.error.main,color:o.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:o.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var te=forwardRef(({children:o,variant:e="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:l=false,disabled:i,className:p,sx:m,...d},c)=>jsxs(oe,{ref:c,className:yc(k.root,p),$variant:e,$size:t,$fullWidth:l,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:m,...d,children:[jsxs(Y,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Y,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),o,s&&jsx(Y,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Y,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(ha,{className:k.loadingSpinner,size:Qo[t],color:"inherit"})})]}));te.displayName="Button";var re=memo(te);var ba="os-shared-Icon",J={root:`${ba}-root`};var ae=styled("img")(({theme:o})=>({width:o.spacing(2),height:o.spacing(2),verticalAlign:"middle",flexShrink:0}));var se=forwardRef(({className:o,sx:e,...t},r)=>jsx(ae,{className:yc(J.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));se.displayName="Icon";var ne=memo(se);var Bo="os-shared-Checkbox",T={root:`${Bo}-root`,control:`${Bo}-control`,label:`${Bo}-label`};var ie=({disabled:o})=>jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:"#1F88D0"}),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:o?"#D2D5D8":"white"})]}),le=({disabled:o})=>jsx("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:o?"#FAFBFB":"white",stroke:o?"#D2D5D8":"#8C9196",strokeWidth:"1.2"})}),pe=({disabled:o})=>jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:"#1F88D0"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:o?"#D2D5D8":"#FAFBFB"})]});var ce=styled(Ia)(({theme:o})=>({padding:o.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),fe=styled(wa)(({theme:o})=>({marginLeft:0,gap:o.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:o.palette.grey[700]}}));var ue=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},l)=>{let i=jsx(ce,{ref:l,disableRipple:true,disabled:t,checkedIcon:jsx(ie,{disabled:t}),icon:jsx(le,{disabled:t}),indeterminateIcon:jsx(pe,{disabled:t}),"data-testid":"Checkbox",className:yc(o?T.control:T.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(fe,{className:yc(T.root,a),sx:r,control:i,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:T.label}}}):i});ue.displayName="Checkbox";var xe=memo(ue);var va="os-shared-Switch",Q={root:`${va}-root`};var ye=styled($a)(({theme:o})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:o.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:o.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:o.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:o.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:o.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:o.transitions.create(["background-color"],{duration:500})}}));var ge=forwardRef(({className:o,sx:e,...t},r)=>jsx(ye,{ref:r,className:yc(Q.root,o),sx:e,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));ge.displayName="Switch";var Ce=memo(ge);var Ra="os-shared-Typography",oo={root:`${Ra}-root`},he={regular:400,medium:500,semibold:600,bold:700};var be=styled(Da)(({theme:o})=>({color:o.palette.text.primary}));var Ne=forwardRef(({variant:o="body1",weight:e,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...l},i)=>{let p=e!==void 0?typeof e=="number"?e:he[e]:void 0,m=Array.isArray(s)?s:[s];return jsx(be,{ref:i,className:yc(oo.root,a),variant:o,sx:[p!==void 0&&{fontWeight:p},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...m],"data-testid":"Typography",...l})});Ne.displayName="Typography";var Se=memo(Ne);var Va="os-shared-RadioButton",eo={root:`${Va}-root`},R={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},ke={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var Ka=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),Be=styled(Ka)({backgroundColor:R.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:R.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),Ie=styled(Oa,{shouldForwardProp:o=>o!=="$iconSize"&&o!=="$checkedColor"&&o!=="$disabledColor"&&o!=="$hoverColor"&&o!=="$maxWidth"})(({$iconSize:o,$checkedColor:e,$disabledColor:t,$hoverColor:r,$maxWidth:a})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:a,cursor:"pointer",color:R.color,"&.Mui-checked":{color:e??R.checkedColor},...r&&{"&:hover":{backgroundColor:"transparent",color:r}},"&.Mui-disabled":{color:t??R.disabledColor}}));function we(o="sm"){return ke[o]}var Te=forwardRef(({size:o="sm",customCheckedIcon:e,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:l,sx:i,disableRipple:p=true,...m},d)=>{let c=we(o);return jsx(Ie,{ref:d,className:yc(eo.root,l),"data-testid":"RadioButton",size:c.muiSize,disableRipple:p,checkedIcon:e??jsx(Be,{}),$iconSize:s??c.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:c.maxWidth,sx:i,...m})});Te.displayName="RadioButton";var ve=memo(Te);var to="os-shared-CircularProgress",v={root:`${to}-root`,progress:`${to}-progress`,labelOverlay:`${to}-labelOverlay`,labelText:`${to}-labelText`};var Me=styled(ha)(({theme:o})=>({color:o.palette.common.blue??o.palette.primary.main,background:alpha(o.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Fe=styled(Y)(()=>({position:"relative",display:"inline-flex"})),Le=styled(Y)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ze=styled(Da)(()=>({fontSize:"14px",fontWeight:700,color:"#3B4152"}));var Re=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},l)=>{let i=o==="determinate"&&e;return jsxs(Fe,{className:yc(v.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Me,{ref:l,variant:o,value:t,className:v.progress,...s}),i&&jsx(Le,{className:v.labelOverlay,children:jsx(ze,{className:v.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Re.displayName="CircularProgress";var De=memo(Re);var Qa="os-shared-Tooltip",ao={wrapper:`${Qa}-wrapper`};var We=styled(({className:o,...e})=>createElement(es,{...e,classes:{popper:o}}))(({theme:o})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(o.palette.text.primary,.13)}`},color:o.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:o.palette.common.white,color:o.palette.text.secondary,boxShadow:o.shadows[1],fontSize:12,border:`0.97px solid ${alpha(o.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function Ve({className:o,title:e,placement:t="top",children:r,wrapperProps:a,sx:s,...l}){return jsx(We,{className:o,title:e,placement:t,arrow:true,sx:s,...l,children:jsx(Y,{display:"flex",alignItems:"center",className:ao.wrapper,...a,children:r})})}Ve.displayName="Tooltip";var Oe=memo(Ve);var ss="os-shared-Skeleton",so={root:`${ss}-root`},Ke="rounded",je=16;var Ue=styled(ns)(()=>({}));var Ze=forwardRef(({className:o,sx:e,variant:t=Ke,height:r=je,...a},s)=>jsx(Ue,{ref:s,className:yc(so.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));Ze.displayName="Skeleton";var _e=memo(Ze);var ds="os-shared-Avatar",no={root:`${ds}-root`},Ge={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var Xe=styled(cs,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e="md"})=>{let{dimension:t,fontSize:r}=Ge[e];return {width:t,height:t,fontSize:r,fontWeight:600,backgroundColor:o.palette.info.dark,color:o.palette.common.white}});var Ye=forwardRef(({className:o,sx:e,size:t="md",shape:r="circular",...a},s)=>jsx(Xe,{ref:s,className:yc(no.root,o),sx:e,"data-testid":"Avatar",$size:t,variant:r,...a}));Ye.displayName="Avatar";var qe=memo(Ye);var gs="os-shared-Divider",io={root:`${gs}-root`};var Je=styled(Cs)(()=>({}));var Qe=forwardRef(({className:o,sx:e,orientation:t="horizontal",...r},a)=>jsx(Je,{ref:a,className:yc(io.root,o),sx:e,"data-testid":"Divider",orientation:t,...r}));Qe.displayName="Divider";var ot=memo(Qe);var ks="os-shared-Collapse",lo={root:`${ks}-root`},et=true,tt=300;var rt=styled(Bs)(()=>({}));var at=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=et,timeout:a=tt,...s},l)=>jsx(rt,{ref:l,className:yc(lo.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));at.displayName="Collapse";var st=memo(at);var vs="os-shared-Badge",po={root:`${vs}-root`},nt={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503",red:"#FF0000"},it=["primary","secondary","neutral","dark"];var Fs={default:o=>o.palette.info.main,inactive:o=>o.palette.grey[100],active:o=>alpha(o.palette.text.primary,.1),dark:o=>o.palette.info.dark},Ls={default:o=>o.palette.common.white,inactive:o=>o.palette.text.primary,active:o=>o.palette.common.white,dark:o=>o.palette.common.white};function zs(o,e){let t=nt[o];return t||(Fs[o]?.(e)??e.palette.common.white)}function Rs(o,e){return it.includes(o)?e.palette.common.white:Ls[o]?.(e)??e.palette.common.white}var lt=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?o.spacing(.5):o.spacing(2),backgroundColor:zs(e,o),color:Rs(e,o),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var pt=forwardRef(({className:o,sx:e,color:t="default",compact:r,round:a,pointer:s,children:l,...i},p)=>jsx(lt,{ref:p,className:yc(po.root,o),sx:e,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:l}));pt.displayName="Badge";var mt=memo(pt);var Ws="os-shared-Backdrop",mo={root:`${Ws}-root`};var dt=styled(Y)(({theme:o})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(o.palette.common.black,.3)}));var ct=forwardRef(({className:o,sx:e,open:t=true,onClose:r,onClick:a,...s},l)=>{if(!t)return null;let i=p=>{r?.(),a?.(p);};return createPortal(jsx(dt,{ref:l,className:yc(mo.root,o),sx:e,"data-testid":"Backdrop",onClick:i,...s}),document.body)});ct.displayName="Backdrop";var ft=memo(ct);var co="os-shared-CopyButton",I={root:`${co}-root`,icon:`${co}-icon`,copyIcon:`${co}-copyIcon`,copiedIcon:`${co}-copiedIcon`},ut=2e3,xt=200,yt=ra$1,gt=ta$1;var ht=styled("span")({position:"relative",display:"inline-flex",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),Po=styled("img",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"contain",pointerEvents:"none",opacity:o?1:0,transition:`opacity ${xt}ms ease`}));var Nt=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=ut,onClick:a,...s},l)=>{let[i,p]=useState(false),m=d=>{d.stopPropagation(),ob(t),p(true),setTimeout(()=>p(false),r),a?.(d);};return jsxs(ht,{ref:l,className:yc(I.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:m,...s,children:[jsx(Po,{className:yc(I.icon,I.copyIcon),src:yt,alt:"copy",$visible:!i}),jsx(Po,{className:yc(I.icon,I.copiedIcon),src:gt,alt:"copied",$visible:i})]})});Nt.displayName="CopyButton";var St=memo(Nt);var To="os-shared-ProgressBar",D={root:`${To}-root`,fill:`${To}-fill`,text:`${To}-text`};var Bt=styled(Y,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>({width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:o.palette.background.gradient?.darkShadedBlue,display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?"2px":"0px",...e===0&&{background:"#20232B1A"},...t&&{minWidth:e>=10?"40px":"36px"}})),It=styled(Y,{shouldForwardProp:o=>o!=="$value"})(({$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:"#20232B1A",borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:"#20232B00"}})),wt=styled(Da,{shouldForwardProp:o=>o!=="$value"})(({$value:o})=>({fontSize:"8px",fontWeight:700,color:"#FFF",padding:"2px 4px",...o===0&&{color:"#8D8D9480"}}));var Tt=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Bt,{ref:r,className:yc(D.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(It,{className:D.fill,$value:t,children:jsxs(wt,{className:D.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Tt.displayName="ProgressBar";var vt=memo(Tt);var fo="os-shared-Chip",w={root:`${fo}-root`,text:`${fo}-text`,copyButton:`${fo}-copyButton`,icon:`${fo}-icon`},$t=2e3,Mt=ra$1,Ft=ta$1;var uo=styled(Y,{shouldForwardProp:o=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?o.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper,...e==="text"&&{padding:`${o.spacing(.75)} ${o.spacing(1)}`,minHeight:"30px"},...e==="circular"&&{minHeight:24,minWidth:24,padding:o.spacing(.5),aspectRatio:"1 / 1"},...e==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${o.spacing(.25)} ${o.spacing(.75)}`},...r&&{boxShadow:"white 7px 0px 8px 2px"},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Mo=styled(Y)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),zt=styled("img",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({width:12,height:12,flexShrink:0,cursor:"pointer",objectFit:"contain",opacity:o?1:.6,transition:"opacity 0.15s ease","&:hover":{opacity:1}}));var Dt=forwardRef(({className:o,sx:e,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:l=false,copyText:i,unknownText:p="Unknown",disableAnimation:m=false,...d},c)=>{let[u,x]=useState(false),g=y=>{y.stopPropagation(),i&&(ob(i),x(true),setTimeout(()=>x(false),$t));},C={$variant:a,$hasIcon:r!=null,$isSelected:l,$disableAnimation:m},f=yc(w.root,o,`CustomVariant_${a}`),S=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(e)?e:e?[e]:[]];return t?i?jsxs(uo,{ref:c,className:f,sx:[{gap:"4px"},...S],"data-testid":"Chip",...C,...d,children:[jsx(Mo,{className:w.text,"data-is-arabic":typeof t=="string"&&lc(t),children:t}),jsx(zt,{className:w.copyButton,src:u?Ft:Mt,alt:u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g})]}):jsxs(uo,{ref:c,className:f,sx:S,"data-testid":"Chip",...C,...d,children:[r!=null&&jsx("span",{className:w.icon,children:r}),jsx(Mo,{className:w.text,children:t})]}):jsx(uo,{className:f,sx:S,"data-testid":"Chip",...C,...d,children:p})});Dt.displayName="Chip";var At=memo(Dt);var an="os-shared-Slider",xo={root:`${an}-root`},Fo=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");var Et=styled(sn)(({theme:o})=>({color:o.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.palette.common.white,border:"none",backgroundImage:`url(${x})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",boxShadow:Fo,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Fo}}}));var Wt=forwardRef(({className:o,sx:e,value:t,min:r,max:a,step:s,disabled:l,onChange:i,...p},m)=>{let d=useCallback((c,u)=>{i(u);},[i]);return jsx(Et,{ref:m,className:yc(xo.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:l,onChange:d,...p})});Wt.displayName="Slider";var Ht=memo(Wt);var Lo="os-shared-Input",A={root:`${Lo}-root`,label:`${Lo}-label`,input:`${Lo}-input`},Vt={sm:28,md:32,labelled:40},Ot=["e","E","+","-"],Kt=/^[0-9.]$/,jt=Ia$1();var Ut=(o,e)=>Vt[o?"labelled":e],Zt=styled(un,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md"})=>({height:Ut(e,r),padding:e?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:500,color:o.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:o.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:o.palette.grey[700],fontWeight:400,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.palette.text.primary,caretColor:o.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),_t=styled(fn)(({theme:o})=>({fontSize:"11px",color:`${o.palette.grey[700]} !important`})),Gt=styled(cn,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:Ut(a,s),margin:0,border:`1px solid ${t?o.palette.error.main:o.palette.divider}`,borderRadius:"4px",backgroundColor:e?o.palette.grey[100]:o.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?o.palette.error.main:o.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:o.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${o.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var Yt=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:l=false,type:i,id:p,className:m,sx:d,onKeyDown:c,onWheel:u,...x},g)=>{let C=!!o,f=i==="number",N=y=>{let L=y.metaKey||y.ctrlKey||y.altKey,ko=y.key.length===1;(Ot.includes(y.key)||jt&&ko&&!L&&!Kt.test(y.key))&&y.preventDefault(),c?.(y);},S=y=>{y.target instanceof HTMLElement&&y.target.blur(),u?.(y);};return jsxs(Gt,{className:yc(A.root,m),sx:d,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:e,children:[C&&jsx(_t,{className:A.label,htmlFor:p,children:o}),jsx(Zt,{id:p,inputRef:g,className:A.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:l,$size:e,onKeyDown:f?N:c,onWheel:f?S:u,...x})]})});Yt.displayName="Input";var qt=memo(Yt);var Ro="os-shared-Textarea",E={root:`${Ro}-root`,label:`${Ro}-label`,textarea:`${Ro}-textarea`},Do=20;var Jt=styled(bn,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:e?"8px":"8px 12px",fontSize:"11px",fontWeight:500,lineHeight:1.5,color:o.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:o.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Do,60)}px`,padding:0},"& textarea::placeholder":{color:o.palette.grey[700],fontWeight:400,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:o.palette.text.primary,caretColor:o.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),Qt=styled(fn)(({theme:o})=>({fontSize:"11px",color:`${o.palette.grey[700]} !important`})),or=styled(cn,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Do:void 0,margin:0,border:`1px solid ${t?o.palette.error.main:o.palette.divider}`,borderRadius:"4px",backgroundColor:e?o.palette.grey[100]:o.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?o.palette.error.main:o.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:o.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${o.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var tr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:l,id:i,className:p,sx:m,...d},c)=>{let u=!!o;return jsxs(or,{className:yc(E.root,p),sx:m,error:e,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:u,$minRows:s,children:[u&&jsx(Qt,{className:E.label,htmlFor:i,children:o}),jsx(Jt,{id:i,inputRef:c,className:E.textarea,multiline:true,minRows:s,maxRows:l,disabled:t,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:u,$minRows:s,...d})]})});tr.displayName="Textarea";var rr=memo(tr);var $="os-shared-Accordion",b={root:`${$}-root`,summary:`${$}-summary`,content:`${$}-content`,labelStartAdornment:`${$}-labelStartAdornment`,labelContent:`${$}-labelContent`,labelEndAdornment:`${$}-labelEndAdornment`,expandIcon:`${$}-expandIcon`};var sr=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:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})});var ir=styled(Bn)(({theme:o,square:e})=>({overflow:"hidden",border:`1px solid ${o.palette.divider}`,...!e&&{borderRadius:o.shape.borderRadius},margin:0,background:o.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),lr=styled(wn)(({theme:o})=>({background:o.palette.grey[50],minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),pr=styled(In)(({theme:o})=>({padding:0,borderTop:`1px solid ${o.palette.divider}`})),mr=styled(Y)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),dr=styled(Y)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var ur=forwardRef(({expanded:o,defaultExpanded:e=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:l,slotProps:i={},disabled:p=false,expandIcon:m,className:d,sx:c,...u},x)=>{let g=o!==void 0,[C,f]=useState(e),N=g?o:C,S=(wi,jo)=>{g||f(jo),t?.(jo);},{showArrow:y=true,...L}=i.label??{},{className:ko,sx:da,...ca}=i.root??{},fa=m??(y?jsx(mr,{component:"span",className:b.expandIcon,children:sr}):null),ua=jsxs(Fragment,{children:[s!=null&&jsx(Y,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:xc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(dr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),l!=null&&jsx(Y,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:xc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:l})]});return jsxs(ir,{ref:x,"data-testid":"Accordion",disabled:p,expanded:N,onChange:S,className:yc(b.root,d,ko),sx:xc(c??{},da),...ca,...u,children:[jsx(lr,{className:b.summary,expandIcon:fa,"aria-expanded":N,...L,children:ua}),jsx(pr,{className:b.content,...i.content,children:a})]})});ur.displayName="Accordion";var xr=memo(ur);var yr="os-shared-Menu",U={popper:`${yr}-popper`,panel:`${yr}-panel`},gr=12;var hr=styled(Fn)({}),br=styled(Y,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>({borderRadius:o.spacing(.5),background:o.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:o.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o.palette.divider}`},"&::after":{content:e?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${o.palette.common.white} 100%)`}}));var Sr=forwardRef(({open:o,anchorEl:e,children:t,placement:r,popperSx:a,panelProps:s,className:l,sx:i,...p},m)=>{let[d,c]=useState(false),x=useMemo(()=>Children.count(t),[t])>gr&&d,{onScroll:g,className:C,sx:f,...N}=s??{},S=useCallback(L=>{c((L.currentTarget.scrollTop??0)>0),g?.(L);},[g]),y=yc(U.panel,C,"MuiPopper-dropdown");return jsx(hr,{ref:m,className:yc(U.popper,l),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(br,{$showShadow:x,onScroll:S,className:y,sx:xc(i??{},f),...N,children:t})})});Sr.displayName="Menu";var kr=memo(Sr);var yo="os-shared-Dialog",M={root:`${yo}-root`,title:`${yo}-title`,content:`${yo}-content`,actions:`${yo}-actions`};var Ir=styled(Wn)(({theme:o})=>({"& .MuiDialog-paper":{boxShadow:o.shadows[13],borderRadius:o.spacing(1)},"& .MuiModal-backdrop":{background:alpha(o.palette.common.black,.2)}})),wr=styled(Hn)(({theme:o})=>({padding:o.spacing(2)}));var Pr=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,className:s,sx:l,...i},p)=>jsxs(Ir,{ref:p,"data-testid":"Dialog",open:a,onClose:r,className:yc(M.root,s),sx:l,...i,children:[o&&jsx(Un,{className:M.title,children:o}),jsx(wr,{className:M.content,children:t}),e&&jsx(jn,{className:M.actions,children:e})]}));Pr.displayName="Dialog";var Tr=memo(Pr);var go="os-shared-MenuItem",P={root:`${go}-root`,indicator:`${go}-indicator`,content:`${go}-content`,disabled:`${go}-disabled`},F={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var vr=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:"#1F88D0"}),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:"white"})]}),$r=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"})}),Mr=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:"#1F88D0",stroke:"#1F88D0",strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]});var zr=styled(Y,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>({padding:o.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",opacity:e?.5:1,color:o.palette.text.primary})),Wo=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Yn(o,e){return e?F.indeterminate:o?F.checked:F.unchecked}var qn={[F.unchecked]:$r,[F.checked]:vr,[F.indeterminate]:Mr};function Jn(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(Wo,{className:P.indicator,"aria-hidden":true,children:o});let r=Yn(e,t);return jsx(Wo,{className:P.indicator,"aria-hidden":true,children:qn[r]})}var Rr=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:l,sx:i,...p},m)=>{let d=yc(P.root,"menu-item",e&&P.disabled,l);return jsxs(zr,{ref:m,"data-testid":"MenuItem",className:d,sx:i,onClick:e?void 0:a,$isDisabled:e,...p,children:[Jn(r,o,t),jsx("span",{className:P.content,children:s})]})});Rr.displayName="MenuItem";var Dr=memo(Rr);var Ar="os-shared-ToggleButtons",Z={root:`${Ar}-root`,button:`${Ar}-button`};var Hr=styled(Y)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),ei=o=>({backgroundColor:o.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(o.palette.common.black,.2)}`}),Vr=styled(Y,{shouldForwardProp:o=>o!=="$isActive"})(({theme:o,$isActive:e=false})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...e?ei(o):{backgroundColor:"transparent",boxShadow:"none"}}));function Kr({options:o,activeKey:e,onChange:t,containerProps:r,buttonProps:a,id:s,className:l,sx:i},p){let{className:m,sx:d,...c}=r??{},u=yc(Z.root,l,m);return jsx(Hr,{ref:p,id:s,"data-testid":"ToggleButtons",className:u,sx:xc(i??{},d),...c,children:o.map(x=>jsx(Vr,{className:Z.button,$isActive:e===x.key,onClick:()=>t(x.key),...a,children:x.content},x.key))})}var ai=forwardRef(Kr);Kr.displayName="ToggleButtons";var jr=memo(ai);var si="os-shared-LazyImage",Co={root:`${si}-root`},Ur={display:"flex",justifyContent:"center",alignItems:"center"},ho={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 Zr=styled(Y)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function bo(o){return o!=null&&o in ho}var fi=LazyLoadImage,Gr=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...l},i)=>{let[p,m]=useState(bo(o));if(useEffect(()=>{if(!bo(o)){m(false);return}m(true),ho[o]().finally(()=>{m(false);});},[o]),p)return null;let{className:d,sx:c,style:u,...x}=e??{},g=bo(o)||!!s||u!=null;return jsx(Zr,{component:"span",...x,className:yc(Co.root,d??r),sx:c!=null?xc(a??{},c):a,children:jsx(fi,{...l,ref:i,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...Ur,...u}}:void 0})})});Gr.displayName="LazyImage";var Xr=memo(Gr);var Vo="os-shared-FieldFeedback",V={root:`${Vo}-root`,icon:`${Vo}-icon`,message:`${Vo}-message`},ui={error:Qf,warning:Pf,success:Sf,info:Of};function Yr(o){return ui[o]}function qr(o,e){return {warning:{backgroundColor:alpha(o.palette.custom[500],.15),textColor:o.palette.custom[500]},success:{backgroundColor:alpha(o.palette.success.dark,.15),textColor:o.palette.success.dark},info:{backgroundColor:alpha(o.palette.info.dark,.12),textColor:o.palette.info.dark},error:{backgroundColor:alpha(o.palette.error.main,.15),textColor:o.palette.error.main}}[e]}var Jr=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t}=qr(o,e);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),Qr=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=qr(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),oa=styled("img")({width:12,height:12,flexShrink:0,marginTop:"2px",objectFit:"contain"});function gi(o){return o!=null&&o!==""}var ta=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!gi(e))return null;let l=o;return jsxs(Jr,{ref:s,"data-testid":"FieldFeedback",className:yc(V.root,r),sx:a,$feedbackType:l,children:[t??jsx(oa,{className:V.icon,src:Yr(l),alt:""}),jsx(Qr,{className:V.message,$feedbackType:l,children:e})]})});ta.displayName="FieldFeedback";var ra=memo(ta);var hi="os-shared-ScrollLoader",So={root:`${hi}-root`},aa=50;var sa=styled(bi)({overflow:"auto",height:"100%",maxHeight:"100%"});function Ko(o,e=aa){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var pa=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:l,id:i,...p},m)=>{let[d,c]=useState(false),u=useRef(o),x=useRef(null);u.current=o;let g=useCallback(()=>{e&&!r&&u.current();},[e,r]),C=useCallback(()=>{let f=x.current;f&&Ko(f)&&g();},[g]);return useEffect(()=>{let f=x.current;if(f)return f.addEventListener("scroll",C),()=>f.removeEventListener("scroll",C)},[C]),useEffect(()=>{let f=x.current;if(!f||t||d)return;let N=window.setTimeout(()=>{c(true),Ko(f)&&g();},1e3);return ()=>window.clearTimeout(N)},[t,g,d]),jsx(sa,{ref:f=>{x.current=f,typeof m=="function"?m(f):m&&(m.current=f);},id:i,"data-testid":"ScrollLoader",className:yc(So.root,s),sx:l,...p,children:a})});pa.displayName="ScrollLoader";var ma=memo(pa);
2
- export{xr as Accordion,qe as Avatar,ft as Backdrop,mt as Badge,re as Button,xe as Checkbox,At as Chip,De as CircularProgress,st as Collapse,St as CopyButton,Tr as Dialog,ot as Divider,ra as FieldFeedback,ne as Icon,qt as Input,Xr as LazyImage,kr as Menu,Dr as MenuItem,vt as ProgressBar,ve as RadioButton,ma as ScrollLoader,_e as Skeleton,Ht as Slider,Ce as Switch,rr as Textarea,jr as ToggleButtons,Oe as Tooltip,Se as Typography,b as accordionClassNames,no as avatarClassNames,mo as backdropClassNames,po as badgeClassNames,k as buttonClassNames,T as checkboxClassNames,w as chipClassNames,v as circularProgressClassNames,lo as collapseClassNames,I as copyButtonClassNames,M as dialogClassNames,io as dividerClassNames,V as fieldFeedbackClassNames,J as iconClassNames,A as inputClassNames,Co as lazyImageClassNames,U as menuClassNames,P as menuItemClassNames,D as progressBarClassNames,eo as radioButtonClassNames,So as scrollLoaderClassNames,so as skeletonClassNames,xo as sliderClassNames,Q as switchClassNames,E as textareaClassNames,Z as toggleButtonsClassNames,ao as tooltipClassNames,oo as typographyClassNames};
1
+ import {yc,lc,Ia,xc,ob}from'../../_chunks/chunk-ZIWX3OR5.js';import'../../_chunks/chunk-QB23ITOS.js';import'../../_chunks/chunk-P3J2LGFL.js';import'../../_chunks/chunk-VWSQS7GB.js';import'../../_chunks/chunk-YRT7GXGY.js';import {forwardRef,memo,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Q from'@mui/material/Box';import Pa,{circularProgressClasses}from'@mui/material/CircularProgress';import wa from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import za from'@mui/material/Checkbox';import Ra from'@mui/material/FormControlLabel';import Ha from'@mui/material/Switch';import ja from'@mui/material/Typography';import qa from'@mui/material/Radio';import ms,{tooltipClasses}from'@mui/material/Tooltip';import xs from'@mui/material/Skeleton';import Ss from'@mui/material/Avatar';import vs from'@mui/material/Divider';import Fs from'@mui/material/Collapse';import {createPortal}from'react-dom';import Xe from'@mui/material/SvgIcon';import hn,{SliderThumb}from'@mui/material/Slider';import vn from'@mui/material/FormControl';import Pn from'@mui/material/InputLabel';import Tn from'@mui/material/Input';import Rn from'@mui/material/InputBase';import Hn from'@mui/material/Accordion';import Wn from'@mui/material/AccordionDetails';import Vn from'@mui/material/AccordionSummary';import Gn from'@mui/material/Popper';import si from'@mui/material/DialogActions';import ni from'@mui/material/DialogTitle';import ei from'@mui/material/Dialog';import oi from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Ri from'@mui/material/Stack';var D="os-shared-Button",k={root:`${D}-root`,content:`${D}-content`,startIcon:`${D}-startIcon`,endIcon:`${D}-endIcon`,loading:`${D}-loading`,loadingSpinner:`${D}-loadingSpinner`},oo={sm:{height:24,padding:"8px 16px",fontSize:"10px",fontWeight:600},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px",fontWeight:700},lg:{height:40,padding:"8px 32px",fontSize:"12px",fontWeight:700}},to={sm:12,md:12,lg:14};var ro=styled(wa,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...oo[t],...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var so=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:l=false,disabled:i,className:p,sx:m,...d},c)=>jsxs(ro,{ref:c,className:yc(k.root,p),$variant:o,$size:t,$fullWidth:l,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:m,...d,children:[jsxs(Q,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Q,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(Q,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Q,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Pa,{className:k.loadingSpinner,size:to[t],color:"inherit"})})]}));so.displayName="Button";var no=memo(so);var Ta="os-shared-Icon",oe={root:`${Ta}-root`};var io=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var lo=forwardRef(({className:e,sx:o,...t},r)=>jsx(io,{className:yc(oe.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));lo.displayName="Icon";var po=memo(lo);var Pe="os-shared-Checkbox",$={root:`${Pe}-root`,control:`${Pe}-control`,label:`${Pe}-label`};var mo=({disabled:e})=>jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:"#1F88D0"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:e?"#D2D5D8":"white"})]}),co=({disabled:e})=>jsx("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":"white",stroke:e?"#D2D5D8":"#8C9196",strokeWidth:"1.2"})}),fo=({disabled:e})=>jsxs("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:"#1F88D0"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]});var yo=styled(za)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),go=styled(Ra)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var Co=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},l)=>{let i=jsx(yo,{ref:l,disableRipple:true,disabled:t,checkedIcon:jsx(mo,{disabled:t}),icon:jsx(co,{disabled:t}),indeterminateIcon:jsx(fo,{disabled:t}),"data-testid":"Checkbox",className:yc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(go,{className:yc($.root,a),sx:r,control:i,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):i});Co.displayName="Checkbox";var ho=memo(Co);var Ea="os-shared-Switch",te={root:`${Ea}-root`};var bo=styled(Ha)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var So=forwardRef(({className:e,sx:o,...t},r)=>jsx(bo,{ref:r,className:yc(te.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));So.displayName="Switch";var No=memo(So);var Ka="os-shared-Typography",re={root:`${Ka}-root`},ko={regular:400,medium:500,semibold:600,bold:700};var wo=styled(ja)(({theme:e})=>({color:e.palette.text.primary}));var Io=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...l},i)=>{let p=o!==void 0?typeof o=="number"?o:ko[o]:void 0,m=Array.isArray(s)?s:[s];return jsx(wo,{ref:i,className:yc(re.root,a),variant:e,sx:[p!==void 0&&{fontWeight:p},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...m],"data-testid":"Typography",...l})});Io.displayName="Typography";var Bo=memo(Io);var Ya="os-shared-RadioButton",ae={root:`${Ya}-root`},E={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},vo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var Ja=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),Po=styled(Ja)({backgroundColor:E.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:E.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),To=styled(qa,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({$iconSize:e,$checkedColor:o,$disabledColor:t,$hoverColor:r,$maxWidth:a})=>({"& .MuiSvgIcon-root":{fontSize:e},maxWidth:a,cursor:"pointer",color:E.color,"&.Mui-checked":{color:o??E.checkedColor},...r&&{"&:hover":{backgroundColor:"transparent",color:r}},"&.Mui-disabled":{color:t??E.disabledColor}}));function Mo(e="sm"){return vo[e]}var Lo=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:l,sx:i,disableRipple:p=true,...m},d)=>{let c=Mo(e);return jsx(To,{ref:d,className:yc(ae.root,l),"data-testid":"RadioButton",size:c.muiSize,disableRipple:p,checkedIcon:o??jsx(Po,{}),$iconSize:s??c.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:c.maxWidth,sx:i,...m})});Lo.displayName="RadioButton";var Fo=memo(Lo);var se="os-shared-CircularProgress",L={root:`${se}-root`,progress:`${se}-progress`,labelOverlay:`${se}-labelOverlay`,labelText:`${se}-labelText`};var Ro=styled(Pa)(({theme:e})=>({color:e.palette.common.blue??e.palette.primary.main,background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Ao=styled(Q)(()=>({position:"relative",display:"inline-flex"})),Do=styled(Q)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Eo=styled(ja)(()=>({fontSize:"14px",fontWeight:700,color:"#3B4152"}));var Ho=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},l)=>{let i=e==="determinate"&&o;return jsxs(Ao,{className:yc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Ro,{ref:l,variant:e,value:t,className:L.progress,...s}),i&&jsx(Do,{className:L.labelOverlay,children:jsx(Eo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Ho.displayName="CircularProgress";var Wo=memo(Ho);var ls="os-shared-Tooltip",ie={wrapper:`${ls}-wrapper`};var Zo=styled(({className:e,...o})=>createElement(ms,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function jo({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...l}){return jsx(Zo,{className:e,title:o,placement:t,arrow:true,sx:s,...l,children:jsx(Q,{display:"flex",alignItems:"center",className:ie.wrapper,...a,children:r})})}jo.displayName="Tooltip";var Uo=memo(jo);var us="os-shared-Skeleton",le={root:`${us}-root`},Go="rounded",_o=16;var Xo=styled(xs)(()=>({}));var Yo=forwardRef(({className:e,sx:o,variant:t=Go,height:r=_o,...a},s)=>jsx(Xo,{ref:s,className:yc(le.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Yo.displayName="Skeleton";var qo=memo(Yo);var bs="os-shared-Avatar",pe={root:`${bs}-root`},Jo={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var Qo=styled(Ss,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=Jo[o];return {width:t,height:t,fontSize:r,fontWeight:600,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var et=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(Qo,{ref:s,className:yc(pe.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));et.displayName="Avatar";var ot=memo(et);var Bs="os-shared-Divider",me={root:`${Bs}-root`};var tt=styled(vs)(()=>({}));var rt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(tt,{ref:a,className:yc(me.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));rt.displayName="Divider";var at=memo(rt);var Ls="os-shared-Collapse",de={root:`${Ls}-root`},st=true,nt=300;var it=styled(Fs)(()=>({}));var lt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=st,timeout:a=nt,...s},l)=>jsx(it,{ref:l,className:yc(de.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));lt.displayName="Collapse";var pt=memo(lt);var Es="os-shared-Badge",ce={root:`${Es}-root`},mt={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503",red:"#FF0000"},dt=["primary","secondary","neutral","dark"];var Vs={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark},Os={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Zs(e,o){let t=mt[e];return t||(Vs[e]?.(o)??o.palette.common.white)}function Ks(e,o){return dt.includes(e)?o.palette.common.white:Os[e]?.(o)??o.palette.common.white}var ct=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Zs(o,e),color:Ks(o,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var ft=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:l,...i},p)=>jsx(ct,{ref:p,className:yc(ce.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:l}));ft.displayName="Badge";var ut=memo(ft);var _s="os-shared-Backdrop",fe={root:`${_s}-root`};var xt=styled(Q)(({theme:e})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(e.palette.common.black,.3)}));var yt=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},l)=>{if(!t)return null;let i=p=>{r?.(),a?.(p);};return createPortal(jsx(xt,{ref:l,className:yc(fe.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});yt.displayName="Backdrop";var gt=memo(yt);var ue="os-shared-CopyButton",B={root:`${ue}-root`,icon:`${ue}-icon`,copyIcon:`${ue}-copyIcon`,copiedIcon:`${ue}-copiedIcon`},Ct=2e3,ht=200;var Nt=e=>{let{palette:o}=useTheme();return jsx(Xe,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},kt=e=>{let{palette:o}=useTheme();return jsx(Xe,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var It=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),$e=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 ${ht}ms ease`}));var Bt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=Ct,onClick:a,...s},l)=>{let[i,p]=useState(false),m=d=>{d.stopPropagation(),ob(t),p(true),setTimeout(()=>p(false),r),a?.(d);};return jsxs(It,{ref:l,className:yc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:m,...s,children:[jsx($e,{className:yc(B.icon,B.copyIcon),$visible:!i,children:jsx(Nt,{})}),jsx($e,{className:yc(B.icon,B.copiedIcon),$visible:i,children:jsx(kt,{})})]})});Bt.displayName="CopyButton";var vt=memo(Bt);var Le="os-shared-ProgressBar",W={root:`${Le}-root`,fill:`${Le}-fill`,text:`${Le}-text`};var Tt=styled(Q,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue,display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:"#20232B1A"},...t&&{minWidth:o>=10?"40px":"36px"}})),Mt=styled(Q,{shouldForwardProp:e=>e!=="$value"})(({$value:e})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:"#20232B1A",borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:"#20232B00"}})),$t=styled(ja,{shouldForwardProp:e=>e!=="$value"})(({$value:e})=>({fontSize:"8px",fontWeight:700,color:"#FFF",padding:"2px 4px",...e===0&&{color:"#8D8D9480"}}));var Ft=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Tt,{ref:r,className:yc(W.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Mt,{className:W.fill,$value:t,children:jsxs($t,{className:W.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});Ft.displayName="ProgressBar";var zt=memo(Ft);var ye="os-shared-Chip",v={root:`${ye}-root`,text:`${ye}-text`,copyButton:`${ye}-copyButton`,icon:`${ye}-icon`},Rt=2e3,ze=150;var Dt=e=>jsx(Xe,{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:"#20232B",stroke:"white",strokeWidth:"0.15"})})}),Et=e=>jsx(Xe,{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:"#2ACE00"}),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:"white"})]})});var Ce=styled(Q,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:"white 7px 0px 8px 2px"},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Re=styled(Q)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),Wt=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 ${ze}ms ease`,"&:hover":{opacity:1}})),Ae=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 ${ze}ms ease`}));var Vt=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:l=false,copyText:i,unknownText:p="Unknown",disableAnimation:m=false,...d},c)=>{let[u,x]=useState(false),g=y=>{y.stopPropagation(),i&&(ob(i),x(true),setTimeout(()=>x(false),Rt));},C={$variant:a,$hasIcon:r!=null,$isSelected:l,$disableAnimation:m},f=yc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(Ce,{ref:c,className:f,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...d,children:[jsx(Re,{className:v.text,"data-is-arabic":typeof t=="string"&&lc(t),children:t}),jsxs(Wt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":u?"copied":"copy","data-testid":"ChipCopyButton",$copied:u,onClick:g,children:[jsx(Ae,{$visible:!u,children:jsx(Dt,{})}),jsx(Ae,{$visible:u,children:jsx(Et,{})})]})]}):jsxs(Ce,{ref:c,className:f,sx:N,"data-testid":"Chip",...C,...d,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(Re,{className:v.text,children:t})]}):jsx(Ce,{className:f,sx:N,"data-testid":"Chip",...C,...d,children:p})});Vt.displayName="Chip";var Ot=memo(Vt);var Ee="os-shared-Slider",T={root:`${Ee}-root`,thumb:`${Ee}-thumb`,thumbIcon:`${Ee}-thumbIcon`},He=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");var Zt=e=>{let{palette:o}=useTheme();return jsx(Xe,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var Kt=styled(hn)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:He,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:He}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function In({children:e,className:o,...t}){return jsxs(SliderThumb,{className:yc(T.thumb,o),...t,children:[e,jsx(Zt,{className:T.thumbIcon})]})}var jt=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:l,onChange:i,slots:p,...m},d)=>{let c=useCallback((u,x)=>{i(x);},[i]);return jsx(Kt,{ref:d,className:yc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:l,onChange:c,...m,slots:{thumb:In,...p}})});jt.displayName="Slider";var Ut=memo(jt);var We="os-shared-Input",O={root:`${We}-root`,label:`${We}-label`,input:`${We}-input`},_t={sm:28,md:32,labelled:40},Xt=["e","E","+","-"],Yt=/^[0-9.]$/,qt=Ia();var Jt=(e,o)=>_t[e?"labelled":o],Qt=styled(Tn,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:Jt(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:500,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:400,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),er=styled(Pn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),or=styled(vn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:Jt(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var rr=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:l=false,type:i,id:p,className:m,sx:d,onKeyDown:c,onWheel:u,...x},g)=>{let C=!!e,f=i==="number",S=y=>{let A=y.metaKey||y.ctrlKey||y.altKey,ve=y.key.length===1;(Xt.includes(y.key)||qt&&ve&&!A&&!Yt.test(y.key))&&y.preventDefault(),c?.(y);},N=y=>{y.target instanceof HTMLElement&&y.target.blur(),u?.(y);};return jsxs(or,{className:yc(O.root,m),sx:d,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(er,{className:O.label,htmlFor:p,children:e}),jsx(Qt,{id:p,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:l,$size:o,onKeyDown:f?S:c,onWheel:f?N:u,...x})]})});rr.displayName="Input";var ar=memo(rr);var Oe="os-shared-Textarea",Z={root:`${Oe}-root`,label:`${Oe}-label`,textarea:`${Oe}-textarea`},Ze=20;var sr=styled(Rn,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:500,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Ze,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:400,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),nr=styled(Pn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),ir=styled(vn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Ze:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var pr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:l,id:i,className:p,sx:m,...d},c)=>{let u=!!e;return jsxs(ir,{className:yc(Z.root,p),sx:m,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:u,$minRows:s,children:[u&&jsx(nr,{className:Z.label,htmlFor:i,children:e}),jsx(sr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:l,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:u,$minRows:s,...d})]})});pr.displayName="Textarea";var mr=memo(pr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var cr=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:"#20232B",stroke:"#20232B",strokeWidth:"0.1"})});var ur=styled(Hn)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),xr=styled(Vn)(({theme:e})=>({background:e.palette.grey[50],minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),yr=styled(Wn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),gr=styled(Q)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Cr=styled(Q)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Sr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:l,slotProps:i={},disabled:p=false,expandIcon:m,className:d,sx:c,...u},x)=>{let g=e!==void 0,[C,f]=useState(o),S=g?e:C,N=(Vi,Je)=>{g||f(Je),t?.(Je);},{showArrow:y=true,...A}=i.label??{},{className:ve,sx:ba,...Sa}=i.root??{},Na=m??(y?jsx(gr,{component:"span",className:b.expandIcon,children:cr}):null),ka=jsxs(Fragment,{children:[s!=null&&jsx(Q,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:xc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(Cr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),l!=null&&jsx(Q,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:xc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:l})]});return jsxs(ur,{ref:x,"data-testid":"Accordion",disabled:p,expanded:S,onChange:N,className:yc(b.root,d,ve),sx:xc(c??{},ba),...Sa,...u,children:[jsx(xr,{className:b.summary,expandIcon:Na,"aria-expanded":S,...A,children:ka}),jsx(yr,{className:b.content,...i.content,children:a})]})});Sr.displayName="Accordion";var Nr=memo(Sr);var kr="os-shared-Menu",X={popper:`${kr}-popper`,panel:`${kr}-panel`},wr=12;var Br=styled(Gn)({}),vr=styled(Q,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Tr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:l,sx:i,...p},m)=>{let[d,c]=useState(false),x=useMemo(()=>Children.count(t),[t])>wr&&d,{onScroll:g,className:C,sx:f,...S}=s??{},N=useCallback(A=>{c((A.currentTarget.scrollTop??0)>0),g?.(A);},[g]),y=yc(X.panel,C,"MuiPopper-dropdown");return jsx(Br,{ref:m,className:yc(X.popper,l),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(vr,{$showShadow:x,onScroll:N,className:y,sx:xc(i??{},f),...S,children:t})})});Tr.displayName="Menu";var Mr=memo(Tr);var be="os-shared-Dialog",z={root:`${be}-root`,title:`${be}-title`,content:`${be}-content`,actions:`${be}-actions`};var Lr=styled(ei)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),Fr=styled(oi)(({theme:e})=>({padding:e.spacing(2)}));var zr=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:l,...i},p)=>jsxs(Lr,{ref:p,"data-testid":"Dialog",open:a,onClose:r,className:yc(z.root,s),sx:l,...i,children:[e&&jsx(ni,{className:z.title,children:e}),jsx(Fr,{className:z.content,children:t}),o&&jsx(si,{className:z.actions,children:o})]}));zr.displayName="Dialog";var Rr=memo(zr);var Se="os-shared-MenuItem",M={root:`${Se}-root`,indicator:`${Se}-indicator`,content:`${Se}-content`,disabled:`${Se}-disabled`},R={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Ar=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:"#1F88D0"}),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:"white"})]}),Dr=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"})}),Er=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:"#1F88D0",stroke:"#1F88D0",strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]});var Vr=styled(Q,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"0.6875rem",opacity:o?.5:1,color:e.palette.text.primary})),Ue=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function di(e,o){return o?R.indeterminate:e?R.checked:R.unchecked}var ci={[R.unchecked]:Dr,[R.checked]:Ar,[R.indeterminate]:Er};function fi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(Ue,{className:M.indicator,"aria-hidden":true,children:e});let r=di(o,t);return jsx(Ue,{className:M.indicator,"aria-hidden":true,children:ci[r]})}var Or=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:l,sx:i,...p},m)=>{let d=yc(M.root,"menu-item",o&&M.disabled,l);return jsxs(Vr,{ref:m,"data-testid":"MenuItem",className:d,sx:i,onClick:o?void 0:a,$isDisabled:o,...p,children:[fi(r,e,t),jsx("span",{className:M.content,children:s})]})});Or.displayName="MenuItem";var Zr=memo(Or);var Kr="os-shared-ToggleButtons",Y={root:`${Kr}-root`,button:`${Kr}-button`};var Gr=styled(Q)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),yi=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),_r=styled(Q,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?yi(e):{backgroundColor:"transparent",boxShadow:"none"}}));function Yr({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:l,sx:i},p){let{className:m,sx:d,...c}=r??{},u=yc(Y.root,l,m);return jsx(Gr,{ref:p,id:s,"data-testid":"ToggleButtons",className:u,sx:xc(i??{},d),...c,children:e.map(x=>jsx(_r,{className:Y.button,$isActive:o===x.key,onClick:()=>t(x.key),...a,children:x.content},x.key))})}var hi=forwardRef(Yr);Yr.displayName="ToggleButtons";var qr=memo(hi);var bi="os-shared-LazyImage",Ne={root:`${bi}-root`},Jr={display:"flex",justifyContent:"center",alignItems:"center"},ke={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 Qr=styled(Q)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function we(e){return e!=null&&e in ke}var Pi=LazyLoadImage,oa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...l},i)=>{let[p,m]=useState(we(e));if(useEffect(()=>{if(!we(e)){m(false);return}m(true),ke[e]().finally(()=>{m(false);});},[e]),p)return null;let{className:d,sx:c,style:u,...x}=o??{},g=we(e)||!!s||u!=null;return jsx(Qr,{component:"span",...x,className:yc(Ne.root,d??r),sx:c!=null?xc(a??{},c):a,children:jsx(Pi,{...l,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...Jr,...u}}:void 0})})});oa.displayName="LazyImage";var ta=memo(oa);var _e="os-shared-FieldFeedback",U={root:`${_e}-root`,icon:`${_e}-icon`,message:`${_e}-message`};var aa=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom[500]:t.error.light;return jsx(Xe,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:r})})})},sa=e=>jsx(Xe,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"#39953E"})})}),na=e=>{let{palette:o}=useTheme();return jsx(Xe,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function ia(e,o){return {warning:{backgroundColor:alpha(e.palette.custom[500],.15),textColor:e.palette.custom[500]},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var la=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=ia(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),pa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=ia(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ma=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 $i(e){return e!=null&&e!==""}function Li(e){switch(e){case "success":return jsx(sa,{});case "info":return jsx(na,{});case "error":case "warning":return jsx(aa,{severity:e})}}var da=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!$i(o))return null;let l=e;return jsxs(la,{ref:s,"data-testid":"FieldFeedback",className:yc(U.root,r),sx:a,$feedbackType:l,children:[t??jsx(ma,{className:U.icon,children:Li(l)}),jsx(pa,{className:U.message,$feedbackType:l,children:o})]})});da.displayName="FieldFeedback";var ca=memo(da);var zi="os-shared-ScrollLoader",Be={root:`${zi}-root`},fa=50;var ua=styled(Ri)({overflow:"auto",height:"100%",maxHeight:"100%"});function qe(e,o=fa){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var Ca=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:l,id:i,...p},m)=>{let[d,c]=useState(false),u=useRef(e),x=useRef(null);u.current=e;let g=useCallback(()=>{o&&!r&&u.current();},[o,r]),C=useCallback(()=>{let f=x.current;f&&qe(f)&&g();},[g]);return useEffect(()=>{let f=x.current;if(f)return f.addEventListener("scroll",C),()=>f.removeEventListener("scroll",C)},[C]),useEffect(()=>{let f=x.current;if(!f||t||d)return;let S=window.setTimeout(()=>{c(true),qe(f)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,d]),jsx(ua,{ref:f=>{x.current=f,typeof m=="function"?m(f):m&&(m.current=f);},id:i,"data-testid":"ScrollLoader",className:yc(Be.root,s),sx:l,...p,children:a})});Ca.displayName="ScrollLoader";var ha=memo(Ca);
2
+ export{Nr as Accordion,ot as Avatar,gt as Backdrop,ut as Badge,no as Button,ho as Checkbox,Ot as Chip,Wo as CircularProgress,pt as Collapse,vt as CopyButton,Rr as Dialog,at as Divider,ca as FieldFeedback,po as Icon,ar as Input,ta as LazyImage,Mr as Menu,Zr as MenuItem,zt as ProgressBar,Fo as RadioButton,ha as ScrollLoader,qo as Skeleton,Ut as Slider,No as Switch,mr as Textarea,qr as ToggleButtons,Uo as Tooltip,Bo as Typography,b as accordionClassNames,pe as avatarClassNames,fe as backdropClassNames,ce as badgeClassNames,k as buttonClassNames,$ as checkboxClassNames,v as chipClassNames,L as circularProgressClassNames,de as collapseClassNames,B as copyButtonClassNames,z as dialogClassNames,me as dividerClassNames,U as fieldFeedbackClassNames,oe as iconClassNames,O as inputClassNames,Ne as lazyImageClassNames,X as menuClassNames,M as menuItemClassNames,W as progressBarClassNames,ae as radioButtonClassNames,Be as scrollLoaderClassNames,le as skeletonClassNames,T as sliderClassNames,te as switchClassNames,Z as textareaClassNames,Y as toggleButtonsClassNames,ie as tooltipClassNames,re as typographyClassNames};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.3.124",
4
+ "version": "0.3.125",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "sideEffects": false,