@tap-payments/os-micro-frontend-shared 0.3.159 → 0.3.161

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/build/_chunks/{chunk-YSJZK2JN.js → chunk-4JHD436N.js} +1 -1
  2. package/build/_chunks/{chunk-ECMR7EPI.js → chunk-6PJPVYTL.js} +1 -1
  3. package/build/_chunks/{chunk-MC6R7E5F.js → chunk-6S4TOQAE.js} +1 -1
  4. package/build/_chunks/{chunk-RS62NYYI.js → chunk-7SY4AIJK.js} +1 -1
  5. package/build/_chunks/{chunk-L4R4BDJ7.js → chunk-AJOHANFX.js} +1 -1
  6. package/build/_chunks/{chunk-RGB7VTZL.js → chunk-CAGX4VZ3.js} +1 -1
  7. package/build/_chunks/{chunk-IBN2INZA.js → chunk-CLVIPK6L.js} +1 -1
  8. package/build/_chunks/{chunk-YAP7GX6M.js → chunk-DRYHO7YQ.js} +1 -1
  9. package/build/_chunks/{chunk-RYB34WRF.js → chunk-EEU65NSL.js} +1 -1
  10. package/build/_chunks/{chunk-FEO3VQWW.js → chunk-FEJSSBRC.js} +1 -1
  11. package/build/_chunks/{chunk-V4ULI3XE.js → chunk-G4HBEVB3.js} +1 -1
  12. package/build/_chunks/{chunk-JDLTTFHQ.js → chunk-GFIXT2V6.js} +1 -1
  13. package/build/_chunks/{chunk-V2QTP3QF.js → chunk-GJZTTW2D.js} +1 -1
  14. package/build/_chunks/chunk-H6ZFSTJN.js +1 -0
  15. package/build/_chunks/{chunk-PKWJ2FEL.js → chunk-HK65MIL7.js} +1 -1
  16. package/build/_chunks/chunk-JGEONYF6.js +1 -0
  17. package/build/_chunks/{chunk-GR22RYCN.js → chunk-K36O7J2F.js} +1 -1
  18. package/build/_chunks/{chunk-DVYHSE43.js → chunk-OBSPPIDV.js} +1 -1
  19. package/build/_chunks/{chunk-KIUT6LEM.js → chunk-OFD3W4XI.js} +1 -1
  20. package/build/_chunks/{chunk-WOY5HLWU.js → chunk-PFS3RUBZ.js} +1 -1
  21. package/build/_chunks/{chunk-ARQLN5ZI.js → chunk-QH6TAHTA.js} +1 -1
  22. package/build/_chunks/{chunk-GDJCM6HE.js → chunk-RJFI62TJ.js} +1 -1
  23. package/build/_chunks/{chunk-S4WQR55H.js → chunk-TKRFKLWQ.js} +1 -1
  24. package/build/_chunks/chunk-U5GGG4B3.js +2 -0
  25. package/build/_chunks/{chunk-6KE3YFSY.js → chunk-VNHSEHK6.js} +2 -2
  26. package/build/_chunks/{chunk-SRJJ6AMD.js → chunk-VXF3NQFE.js} +1 -1
  27. package/build/_chunks/{chunk-RVZWPX6P.js → chunk-WSYB3EBL.js} +1 -1
  28. package/build/_chunks/{chunk-VXHDRLQR.js → chunk-XBVIZVR7.js} +1 -1
  29. package/build/_chunks/{chunk-AJTHCIH5.js → chunk-YVGD6YMS.js} +1 -1
  30. package/build/_chunks/chunk-YYN3PIEB.js +1 -0
  31. package/build/components/AccountDropdown/index.js +1 -1
  32. package/build/components/ActionMenu/index.js +1 -1
  33. package/build/components/ActionsDropdownMenu/index.js +1 -1
  34. package/build/components/ActiveFilterChip/index.js +1 -1
  35. package/build/components/ActivityAreaChart/index.js +1 -1
  36. package/build/components/Amount/index.js +1 -1
  37. package/build/components/AmountConversionFilter/index.js +1 -1
  38. package/build/components/AmountInput/index.js +1 -1
  39. package/build/components/AmountSlider/index.js +1 -1
  40. package/build/components/AmountStatusChip/index.js +1 -1
  41. package/build/components/AnimatedSpinnerIcon/index.js +1 -1
  42. package/build/components/AppServices/index.js +1 -1
  43. package/build/components/AppServicesBar/index.js +1 -1
  44. package/build/components/AppWindowWrapper/index.js +1 -1
  45. package/build/components/AuthenticationTypeChip/index.js +1 -1
  46. package/build/components/Autocomplete/index.js +1 -1
  47. package/build/components/BetaBanner/index.js +1 -1
  48. package/build/components/BrandLogo/index.js +1 -1
  49. package/build/components/Button/index.js +1 -1
  50. package/build/components/Calender/index.js +1 -1
  51. package/build/components/CardEmptyState/index.js +1 -1
  52. package/build/components/Chip/index.js +1 -1
  53. package/build/components/ChipStack/index.js +1 -1
  54. package/build/components/Collapse/index.js +1 -1
  55. package/build/components/ColorPicker/index.js +1 -1
  56. package/build/components/ColumnViews/index.js +1 -1
  57. package/build/components/ConfirmDialog/index.js +1 -1
  58. package/build/components/CopyImage/index.js +1 -1
  59. package/build/components/CountryFilter/index.js +1 -1
  60. package/build/components/CountryFlag/index.js +1 -1
  61. package/build/components/CurrencyAmount/index.js +1 -1
  62. package/build/components/CurrencyFilter/index.js +1 -1
  63. package/build/components/CurrencySymbol/index.js +1 -1
  64. package/build/components/CustomBackdrop/index.js +1 -1
  65. package/build/components/Customer/index.js +1 -1
  66. package/build/components/DateFilter/index.js +1 -1
  67. package/build/components/DeviceIcon/index.js +1 -1
  68. package/build/components/Dialog/index.js +1 -1
  69. package/build/components/Discount/index.js +1 -1
  70. package/build/components/DisplayAmount/index.js +1 -1
  71. package/build/components/Dropdown2/index.js +1 -1
  72. package/build/components/DropdownButton/index.js +1 -1
  73. package/build/components/DropdownMenu/index.js +1 -1
  74. package/build/components/Error/index.js +1 -1
  75. package/build/components/ErrorToast/index.js +1 -1
  76. package/build/components/ExpandableSideBar/index.js +1 -1
  77. package/build/components/FieldFeedback/index.js +1 -1
  78. package/build/components/FileInputPreview/index.js +1 -1
  79. package/build/components/FilePreview/index.js +1 -1
  80. package/build/components/FileUpload/index.js +1 -1
  81. package/build/components/FileUploader/index.js +1 -1
  82. package/build/components/FilterDropdown/index.js +1 -1
  83. package/build/components/Filters/index.js +1 -1
  84. package/build/components/FlippingCard/index.js +1 -1
  85. package/build/components/HeatMap/index.js +1 -1
  86. package/build/components/IOSSwitch/index.js +1 -1
  87. package/build/components/Icon/index.js +1 -1
  88. package/build/components/IconWithBadge/index.js +1 -1
  89. package/build/components/Input/index.js +1 -1
  90. package/build/components/InputBase/index.js +1 -1
  91. package/build/components/InputNumber/index.js +1 -1
  92. package/build/components/Inputs/index.js +1 -1
  93. package/build/components/JSONViewer/index.js +1 -1
  94. package/build/components/LanguageDropdown/index.js +1 -1
  95. package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
  96. package/build/components/ListColumnFilter/index.js +1 -1
  97. package/build/components/ListHeader/index.js +1 -1
  98. package/build/components/ListLayout/index.js +1 -1
  99. package/build/components/Loader/index.js +1 -1
  100. package/build/components/MFWidgetLoader/index.js +1 -1
  101. package/build/components/MaskedText/index.js +1 -1
  102. package/build/components/Menu/index.js +1 -1
  103. package/build/components/MenuItem/index.js +1 -1
  104. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  105. package/build/components/MerchantLogo/index.js +1 -1
  106. package/build/components/MerchantsDropdown/index.js +1 -1
  107. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  108. package/build/components/MultiSelectWithSearch/index.js +1 -1
  109. package/build/components/NestedDropdown/index.js +1 -1
  110. package/build/components/NoInternet/index.js +1 -1
  111. package/build/components/OpenFileInNewTab/index.js +1 -1
  112. package/build/components/PartnersFilter/index.js +1 -1
  113. package/build/components/PaymentSourceFilter/index.js +1 -1
  114. package/build/components/PhoneFilter/index.js +1 -1
  115. package/build/components/ProgressRing/index.js +1 -1
  116. package/build/components/RFH/index.js +1 -1
  117. package/build/components/RadioGroup/index.js +1 -1
  118. package/build/components/RangeCalender/index.js +1 -1
  119. package/build/components/RatingCount/index.js +1 -1
  120. package/build/components/ReceiptsViewer/index.js +1 -1
  121. package/build/components/ReferenceTypeFilter/index.js +1 -1
  122. package/build/components/ResizableHeightInput/index.js +1 -1
  123. package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
  124. package/build/components/SalesChannelFilter/index.js +1 -1
  125. package/build/components/ScrollLoader/index.js +1 -1
  126. package/build/components/SearchButton/index.js +1 -1
  127. package/build/components/SearchListInput/index.js +1 -1
  128. package/build/components/SelectDropdown/index.js +1 -1
  129. package/build/components/SelectWithSearch/index.js +1 -1
  130. package/build/components/Slider/index.js +1 -1
  131. package/build/components/StatusBar/index.js +1 -1
  132. package/build/components/StatusButton/index.js +1 -1
  133. package/build/components/StatusChip/index.js +1 -1
  134. package/build/components/StatusChipWithCopy/index.js +1 -1
  135. package/build/components/StatusFilter/index.js +1 -1
  136. package/build/components/StatusGroupChips/index.js +1 -1
  137. package/build/components/StatusIcons/index.js +1 -1
  138. package/build/components/StatusLabel/index.js +1 -1
  139. package/build/components/TableCells/index.js +1 -1
  140. package/build/components/TableReports/index.js +1 -1
  141. package/build/components/Timepicker/index.js +1 -1
  142. package/build/components/Toaster/index.js +1 -1
  143. package/build/components/ToggleView/index.js +1 -1
  144. package/build/components/Toolbar/index.js +1 -1
  145. package/build/components/ToolbarIcon/index.js +1 -1
  146. package/build/components/TooltipChip/index.js +1 -1
  147. package/build/components/TreeDropdown/index.js +1 -1
  148. package/build/components/VAT/index.js +1 -1
  149. package/build/components/VerificationIcon/index.js +1 -1
  150. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  151. package/build/components/VirtualTables/index.js +1 -1
  152. package/build/components/Widget/index.js +1 -1
  153. package/build/components/Window/index.js +1 -1
  154. package/build/components/WindowAppIcon/index.js +1 -1
  155. package/build/components/WindowSideBar/index.js +1 -1
  156. package/build/components/index.d.ts +1 -1
  157. package/build/components/index.js +1 -1
  158. package/build/components/primitives/Button/constants.d.ts +31 -5
  159. package/build/components/primitives/Button/style.d.ts +3 -0
  160. package/build/components/primitives/Button/type.d.ts +5 -0
  161. package/build/components/primitives/index.js +1 -1
  162. package/build/constants/index.js +1 -1
  163. package/build/hooks/index.js +1 -1
  164. package/build/index.js +1 -1
  165. package/build/theme/_v2/blur.d.ts +3 -0
  166. package/build/theme/_v2/elevation.d.ts +2 -0
  167. package/build/theme/_v2/gradients.d.ts +10 -0
  168. package/build/theme/_v2/index.d.ts +6 -0
  169. package/build/theme/_v2/palette.d.ts +3 -0
  170. package/build/theme/_v2/theme.d.ts +3 -0
  171. package/build/theme/_v2/type.d.ts +120 -0
  172. package/build/theme/_v2/utils.d.ts +3 -0
  173. package/build/theme/index.js +1 -1
  174. package/build/theme/theme.d.ts +2 -1
  175. package/build/types/custom/material-ui.d.ts +77 -0
  176. package/build/types/index.d.ts +1 -0
  177. package/build/types/index.js +1 -1
  178. package/build/utils/index.js +1 -1
  179. package/package.json +1 -1
  180. package/build/_chunks/chunk-6SFC6GJZ.js +0 -1
  181. package/build/_chunks/chunk-STBE7FVI.js +0 -1
  182. package/build/_chunks/chunk-UKAQCKZ5.js +0 -1
  183. package/build/_chunks/chunk-VJK74GR6.js +0 -2
  184. package/build/_chunks/chunk-VYDLL6DY.js +0 -1
  185. package/build/components/CircularProgressWithLabel/CircularProgressWithLabel.d.ts +0 -11
  186. package/build/components/CircularProgressWithLabel/index.d.ts +0 -2
  187. package/build/components/CircularProgressWithLabel/index.js +0 -1
  188. package/build/components/CircularProgressWithLabel/style.d.ts +0 -11
  189. /package/build/_chunks/{chunk-SWPEIUF7.js → chunk-4GZ7XOYY.js} +0 -0
@@ -0,0 +1,120 @@
1
+ export type GreyScale = {
2
+ 50: string;
3
+ 100: string;
4
+ 200: string;
5
+ 400: string;
6
+ 500: string;
7
+ 900: string;
8
+ };
9
+ export type BrandScale = {
10
+ 50: string;
11
+ 500: string;
12
+ };
13
+ export type SuccessScale = {
14
+ 500: string;
15
+ 700: string;
16
+ };
17
+ export type ErrorScale = {
18
+ 500: string;
19
+ 700: string;
20
+ };
21
+ export type WarningScale = {
22
+ 500: string;
23
+ 600: string;
24
+ };
25
+ export type Base = {
26
+ white: string;
27
+ black: string;
28
+ };
29
+ type Foreground = {
30
+ primary: string;
31
+ secondary: string;
32
+ tertiary: string;
33
+ disabled: string;
34
+ inverted: string;
35
+ brand: string;
36
+ };
37
+ type Background = {
38
+ primary: string;
39
+ secondary: string;
40
+ tertiary: string;
41
+ };
42
+ type Border = {
43
+ default: string;
44
+ subtle: string;
45
+ strong: string;
46
+ };
47
+ type InteractivePrimary = {
48
+ default: string;
49
+ disabled: string;
50
+ subtle: string;
51
+ };
52
+ type Interactive = {
53
+ primary: InteractivePrimary;
54
+ };
55
+ type StatusTone = {
56
+ default: string;
57
+ subtle: string;
58
+ emphasis: string;
59
+ };
60
+ type WarningStatus = {
61
+ default: string;
62
+ emphasis: string;
63
+ };
64
+ type Status = {
65
+ success: StatusTone;
66
+ danger: StatusTone;
67
+ warning: WarningStatus;
68
+ };
69
+ type Gradient = {
70
+ brand: string;
71
+ dark: string;
72
+ aqua: string;
73
+ mint: string;
74
+ warm: string;
75
+ peach: string;
76
+ rose: string;
77
+ lavender: string;
78
+ };
79
+ export type PaletteTokens = {
80
+ base: Base;
81
+ grey: GreyScale;
82
+ brand: BrandScale;
83
+ success: SuccessScale;
84
+ error: ErrorScale;
85
+ warning: WarningScale;
86
+ foreground: Foreground;
87
+ background: Background;
88
+ gradient: Gradient;
89
+ border: Border;
90
+ interactive: Interactive;
91
+ status: Status;
92
+ };
93
+ export type ElevationTokens = {
94
+ 100: string;
95
+ 200: string;
96
+ 300: string;
97
+ 400: string;
98
+ 500: string;
99
+ 600: string;
100
+ };
101
+ export type BlurTokens = {
102
+ 2: string;
103
+ 4: string;
104
+ 6: string;
105
+ 8: string;
106
+ 12: string;
107
+ 20: string;
108
+ 32: string;
109
+ 36: string;
110
+ };
111
+ export type Spacing = (factor: number | string) => string;
112
+ export type Radius = (factor: number | string) => string;
113
+ export type ThemeV2 = {
114
+ palette: PaletteTokens;
115
+ elevation: ElevationTokens;
116
+ blur: BlurTokens;
117
+ spacing: Spacing;
118
+ radius: Radius;
119
+ };
120
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Radius, Spacing } from './type';
2
+ export declare const spacing: Spacing;
3
+ export declare const radius: Radius;
@@ -1 +1 @@
1
- export{f as appTheme,a as components,c as darkPalette,b as lightPalette,d as shadows,e as typography}from'../_chunks/chunk-UKAQCKZ5.js';
1
+ export{f as appTheme,a as components,c as darkPalette,b as lightPalette,d as shadows,e as typography}from'../_chunks/chunk-YYN3PIEB.js';
@@ -1,2 +1,3 @@
1
+ import { Theme } from '@mui/material/styles';
1
2
  import { type DirectionMode, type ThemeMode } from '../types/index.js';
2
- export declare const appTheme: (mode: ThemeMode, dir: DirectionMode) => import("@mui/material/styles").Theme;
3
+ export declare const appTheme: (mode: ThemeMode, dir: DirectionMode) => Theme;
@@ -0,0 +1,77 @@
1
+ import { Color } from '@mui/material';
2
+ import type { ThemeV2 } from '../../theme/_v2/type';
3
+ declare module '@mui/material/styles/createPalette' {
4
+ interface CommonColors {
5
+ black: string;
6
+ white: string;
7
+ blue: string;
8
+ purple: string;
9
+ red: string;
10
+ green: string;
11
+ orange: string;
12
+ lightOrange: string;
13
+ lightPurple: string;
14
+ }
15
+ interface TypeText {
16
+ primary: string;
17
+ secondary: string;
18
+ disabled: string;
19
+ label: string;
20
+ textSecondary: string;
21
+ }
22
+ interface TypeBackground {
23
+ transparent: string[];
24
+ highlight: string;
25
+ gradient: {
26
+ blueGreen: string;
27
+ greenYellow: string;
28
+ yellowOrange: string;
29
+ orangeRed: string;
30
+ redPurple: string;
31
+ purpleBlue: string;
32
+ shadedBlue: string;
33
+ darkShadedBlue: string;
34
+ darkToLight: string;
35
+ error: string;
36
+ };
37
+ }
38
+ interface Palette {
39
+ custom: Color;
40
+ }
41
+ interface PaletteOptions {
42
+ custom?: Partial<Color>;
43
+ }
44
+ }
45
+ declare module '@mui/material' {
46
+ interface Color {
47
+ A50: string;
48
+ A800: string;
49
+ }
50
+ }
51
+ declare module '@mui/material/styles/createTypography' {
52
+ interface FontStyle {
53
+ fontWeightBolder?: number;
54
+ }
55
+ }
56
+ declare module '@mui/material/styles' {
57
+ interface TypographyVariantsOptions {
58
+ fontWeightBolder?: number;
59
+ }
60
+ interface Palette {
61
+ custom: Palette['grey'];
62
+ }
63
+ interface PaletteOptions {
64
+ custom?: PaletteOptions['grey'];
65
+ }
66
+ interface Theme {
67
+ v2: ThemeV2;
68
+ }
69
+ interface ThemeOptions {
70
+ v2: ThemeV2;
71
+ }
72
+ }
73
+ declare module '@mui/material/Typography' {
74
+ interface TypographyPropsVariantOverrides {
75
+ fontWeightBolder: number;
76
+ }
77
+ }
@@ -40,3 +40,4 @@ export * from './flag';
40
40
  export * from './window';
41
41
  export * from './insights';
42
42
  export * from './columnFiltersGate';
43
+ export * from './custom/material-ui';
@@ -1 +1 @@
1
- export{m as ACCOUNT_APP_SETTINGS,l as ACCOUNT_SECTION,n as AppEvent,h as ChargeBreakDownType,f as CurrencyCodes,o as DISCOUNT_TYPE,b as LanguageMode,i as NewRelicEventType,k as NewRelicFeatureName,j as NewRelicFeatureType,c as RECURRENCE_TYPE,q as ReportStatusEnum,g as SEGMENT_CODE,d as SEND_INVOICE,e as SalesChannelTypes,p as StatusValue,a as ThemeMode}from'../_chunks/chunk-SWPEIUF7.js';
1
+ export{m as ACCOUNT_APP_SETTINGS,l as ACCOUNT_SECTION,n as AppEvent,h as ChargeBreakDownType,f as CurrencyCodes,o as DISCOUNT_TYPE,b as LanguageMode,i as NewRelicEventType,k as NewRelicFeatureName,j as NewRelicFeatureType,c as RECURRENCE_TYPE,q as ReportStatusEnum,g as SEGMENT_CODE,d as SEND_INVOICE,e as SalesChannelTypes,p as StatusValue,a as ThemeMode}from'../_chunks/chunk-4GZ7XOYY.js';
@@ -1 +1 @@
1
- export{pc as DEFAULT_SKELETON_WIDTHS,fc as SELECTION_COLORS,ic as alignToJustifyContent,ua as api,uc as applyColumnFiltersGate,Rb as backendErrorHandler,Sa as calculateMaxAllowedRows,bb as capitalizeFirstLetter,fb as capitalizeString,t as changeDateTimezone,ta as clearTapOsLocalStorage,Da as conversionTypesLabels,r as convertCalendarDateToUTC,Ka as convertToNumber,s as convertUTCtoLocalDate,ab as copyText,Ea as currencyConfig,Jb as downloadFile,ob as extractIdsFromRowData,Cb as filterShownColumns,Ha as formatAmount,Ia as formatAmountWithCurrency,x as formatCellDate,Ga as formatCurrencyWithInput,y as formatDate,Oa as formatFlagDate,H as formatInTimezone,xc as formatLogDate,g as formatNumber,f as formatOrdinal,Na as formatPayoutDate,C as formatRelativeTimeWithinHour,A as formatSecondsAsTime,n as formatUTCOffset,F as generateBirthYearList,ib as generateChargeErrors,u as generateDayList,v as generateMonthList,G as generatePastYearList,Yb as generateReportLocalStorageKey,qc as generateSkeletonColumns,$a as generateUniqueUUID,w as generateYearList,l as getAmountPlaceholder,Nb as getApiErrorMessage,Sb as getApp,wa as getBrowserName,L as getBusinessSegmentConfig,fa as getCalenderTimezone,ga as getCalenderTimezoneHistory,gb as getCardNumber,Ra as getCellWidth,Db as getColumnOrderFromViews,Qa as getColumnWidthPercentage,yc as getComponentId,Ja as getConversion,La as getCountryNameByISO,o as getDefaultDateRange,Xb as getFileIconFromExtension,_a as getFirstChar,dc as getGeographyBoxColor,ka as getGlobalTableModeStorage,va as getHeaders,Ub as getIdentificationTypeList,ec as getLocalizedUnitLabel,Z as getLoggedInUserActiveSegment,X as getLoggedInUserData,U as getLoggedInUserJwtToken,Y as getLoggedInUserSegment,$b as getNameText,R as getNavigationData,N as getNonBusinessSegmentConfig,I as getOrderedWeekDays,hb as getPaymentMethodWithId,bc as getPaymentTypeKey,Pa as getPayoutDetails,Ib as getPhoneDetails,Wa as getPossibleActionNavigationView,pa as getPreviewStorage,rc as getProcessedColumns,za as getRandomColor,Aa as getRandomGradientColor,ba as getReportRecord,hc as getRowSelectionBorderStyles,P as getSecretKey,K as getSegmentData,gc as getSelectionStyles,Tb as getService,na as getSheetViewColumnsStorage,_b as getTextByLang,J as getTimestamp,q as getTimestampByTimezone,lc as getTimezoneByCountryCode,mc as getTimezoneByTimezone,m as getUTCOffset,p as getUTCTimestamp,d as getUniqueListBy,ya as getUserAgentDeviceType,ac as getUsername,z as getValueOfEndOfDay,ra as getViewsSelectionStorage,Kb as handleFileDownload,Lb as handleURLDownload,tc as hasActiveColumnFilters,Ob as hasError,Ba as hexa2Rgba,Fa as intlCurrency,Zb as isArabic,kb as isEmptyValue,Wb as isFile,Ta as isHeightNotFullyFilledByRows,_ as isJwtTokenExpired,Mb as isNetworkError,Qb as isNotFoundError,Eb as isParameterSelected,xa as isSafariBrowser,cc as isSamePaymentSource,Ma as isSaudiArabia,M as isSegmentActLikeBusinessSegment,Ua as isTableDefaultMode,Va as isTableSheetMode,mb as isTapstersFrontend,Pb as isTimeoutError,D as isTodayDate,$ as isUserLoggedInAndJwtTokenActive,e as isValidNumber,Xa as isValidString,B as isWithinTimeAgo,E as isYesterdayDate,kc as joinClassNames,Fb as mapDataToViews,Gb as mapViewsToData,db as maskValue,Za as matchOccurrence,jc as mergeSx,j as numberToString,k as pad,h as parseAmount,cb as percentageToNumber,Vb as readableFileSize,nb as removeAllCharsFromNumber,ha as removeCalenderTimezone,ia as removeCalenderTimezoneHistory,la as removeGlobalTableModeStorage,V as removeLoggedInUserJwtToken,S as removeNavigationData,Ya as removePrefixFromString,qa as removePreviewStorage,ca as removeReportRecord,c as removeUndefinedArrayElements,lb as removeUndefinedArrayValues,jb as removeUndefinedValues,Ca as rgba2Hexa,vc as sanitizeHtml,da as setCalenderTimezone,ea as setCalenderTimezoneHistory,ja as setGlobalTableModeStorage,W as setLoggedInUserData,T as setLoggedInUserJwtToken,Q as setNavigationData,oa as setPreviewStorage,aa as setReportRecord,O as setSecretKey,ma as setSheetViewColumnsStorage,sa as setViewsSelectionStorage,b as sortByString,a as sortList,i as stringToNumber,wc as trackFeatureEvent,nc as transformPaymentMethodsData,oc as transformPaymentSchemesData,eb as transformStringToProperCase,Hb as updateColumnSelection,sc as updateViewsSelection}from'../_chunks/chunk-MXISJOX2.js';import'../_chunks/chunk-N372QRVU.js';import'../_chunks/chunk-3YAJNHQC.js';import'../_chunks/chunk-SWPEIUF7.js';
1
+ export{pc as DEFAULT_SKELETON_WIDTHS,fc as SELECTION_COLORS,ic as alignToJustifyContent,ua as api,uc as applyColumnFiltersGate,Rb as backendErrorHandler,Sa as calculateMaxAllowedRows,bb as capitalizeFirstLetter,fb as capitalizeString,t as changeDateTimezone,ta as clearTapOsLocalStorage,Da as conversionTypesLabels,r as convertCalendarDateToUTC,Ka as convertToNumber,s as convertUTCtoLocalDate,ab as copyText,Ea as currencyConfig,Jb as downloadFile,ob as extractIdsFromRowData,Cb as filterShownColumns,Ha as formatAmount,Ia as formatAmountWithCurrency,x as formatCellDate,Ga as formatCurrencyWithInput,y as formatDate,Oa as formatFlagDate,H as formatInTimezone,xc as formatLogDate,g as formatNumber,f as formatOrdinal,Na as formatPayoutDate,C as formatRelativeTimeWithinHour,A as formatSecondsAsTime,n as formatUTCOffset,F as generateBirthYearList,ib as generateChargeErrors,u as generateDayList,v as generateMonthList,G as generatePastYearList,Yb as generateReportLocalStorageKey,qc as generateSkeletonColumns,$a as generateUniqueUUID,w as generateYearList,l as getAmountPlaceholder,Nb as getApiErrorMessage,Sb as getApp,wa as getBrowserName,L as getBusinessSegmentConfig,fa as getCalenderTimezone,ga as getCalenderTimezoneHistory,gb as getCardNumber,Ra as getCellWidth,Db as getColumnOrderFromViews,Qa as getColumnWidthPercentage,yc as getComponentId,Ja as getConversion,La as getCountryNameByISO,o as getDefaultDateRange,Xb as getFileIconFromExtension,_a as getFirstChar,dc as getGeographyBoxColor,ka as getGlobalTableModeStorage,va as getHeaders,Ub as getIdentificationTypeList,ec as getLocalizedUnitLabel,Z as getLoggedInUserActiveSegment,X as getLoggedInUserData,U as getLoggedInUserJwtToken,Y as getLoggedInUserSegment,$b as getNameText,R as getNavigationData,N as getNonBusinessSegmentConfig,I as getOrderedWeekDays,hb as getPaymentMethodWithId,bc as getPaymentTypeKey,Pa as getPayoutDetails,Ib as getPhoneDetails,Wa as getPossibleActionNavigationView,pa as getPreviewStorage,rc as getProcessedColumns,za as getRandomColor,Aa as getRandomGradientColor,ba as getReportRecord,hc as getRowSelectionBorderStyles,P as getSecretKey,K as getSegmentData,gc as getSelectionStyles,Tb as getService,na as getSheetViewColumnsStorage,_b as getTextByLang,J as getTimestamp,q as getTimestampByTimezone,lc as getTimezoneByCountryCode,mc as getTimezoneByTimezone,m as getUTCOffset,p as getUTCTimestamp,d as getUniqueListBy,ya as getUserAgentDeviceType,ac as getUsername,z as getValueOfEndOfDay,ra as getViewsSelectionStorage,Kb as handleFileDownload,Lb as handleURLDownload,tc as hasActiveColumnFilters,Ob as hasError,Ba as hexa2Rgba,Fa as intlCurrency,Zb as isArabic,kb as isEmptyValue,Wb as isFile,Ta as isHeightNotFullyFilledByRows,_ as isJwtTokenExpired,Mb as isNetworkError,Qb as isNotFoundError,Eb as isParameterSelected,xa as isSafariBrowser,cc as isSamePaymentSource,Ma as isSaudiArabia,M as isSegmentActLikeBusinessSegment,Ua as isTableDefaultMode,Va as isTableSheetMode,mb as isTapstersFrontend,Pb as isTimeoutError,D as isTodayDate,$ as isUserLoggedInAndJwtTokenActive,e as isValidNumber,Xa as isValidString,B as isWithinTimeAgo,E as isYesterdayDate,kc as joinClassNames,Fb as mapDataToViews,Gb as mapViewsToData,db as maskValue,Za as matchOccurrence,jc as mergeSx,j as numberToString,k as pad,h as parseAmount,cb as percentageToNumber,Vb as readableFileSize,nb as removeAllCharsFromNumber,ha as removeCalenderTimezone,ia as removeCalenderTimezoneHistory,la as removeGlobalTableModeStorage,V as removeLoggedInUserJwtToken,S as removeNavigationData,Ya as removePrefixFromString,qa as removePreviewStorage,ca as removeReportRecord,c as removeUndefinedArrayElements,lb as removeUndefinedArrayValues,jb as removeUndefinedValues,Ca as rgba2Hexa,vc as sanitizeHtml,da as setCalenderTimezone,ea as setCalenderTimezoneHistory,ja as setGlobalTableModeStorage,W as setLoggedInUserData,T as setLoggedInUserJwtToken,Q as setNavigationData,oa as setPreviewStorage,aa as setReportRecord,O as setSecretKey,ma as setSheetViewColumnsStorage,sa as setViewsSelectionStorage,b as sortByString,a as sortList,i as stringToNumber,wc as trackFeatureEvent,nc as transformPaymentMethodsData,oc as transformPaymentSchemesData,eb as transformStringToProperCase,Hb as updateColumnSelection,sc as updateViewsSelection}from'../_chunks/chunk-MXISJOX2.js';import'../_chunks/chunk-N372QRVU.js';import'../_chunks/chunk-3YAJNHQC.js';import'../_chunks/chunk-4GZ7XOYY.js';
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.159",
4
+ "version": "0.3.161",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -1 +0,0 @@
1
- import {a}from'./chunk-L4R4BDJ7.js';var m=a;export{m as a};
@@ -1 +0,0 @@
1
- import {a as a$2}from'./chunk-N2LPXJYV.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a as a$3}from'./chunk-VYDLL6DY.js';import {a}from'./chunk-GNY2VGGW.js';import {Vb,yc}from'./chunk-MXISJOX2.js';import {Ej,Fj,Lj,Pe}from'./chunk-3YAJNHQC.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),b=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),L=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),O=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var X=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:te,error:R,errorHint:oe,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:B,successFooter:pe,progressVariant:ne},ae)=>{let{t:n}=useTranslation(),[a,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:j,isDragReject:M,fileRejections:s}=useDropzone(x);useImperativeHandle(ae,()=>({open:f}),[f]),useEffect(()=>{H(j);},[j]);let C=Vb(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return M||me?n("invalidFileType"):ce?`File is larger than ${C}`:R},[M,R,s,C,n]),W=useMemo(()=>a.length?jsxs(b,{sx:{fontWeight:600},children:[jsx(p,{children:a[0].name}),jsx(z,{children:Vb(a[0].size)})]}):null,[a]);return P&&a.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Ej,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:Fj,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:ie,onClick:()=>{re?.(a);},children:"Bulk Send"})]})]}):U&&a.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??n("uploading")}),jsx(g,{children:n("wait")})]}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[U&&jsx(a$3,{size:56,value:te,variant:ne}),W]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:n("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:B,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Lj:Pe,width:56,height:56}),oe,W,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:n("uploadAgain")})}):jsxs(b,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",C]}),e&&jsx(g,{children:n("supportedFormats",{accept:e})})]})]})]}),i]})});X.displayName="FileUploadBase";var Y=memo(X);var _=forwardRef((e,i)=>{let x=yc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Y,{...e,ref:i})})});_.displayName="FileUpload";var ee=memo(_);var Qe=ee;export{Qe as a};
@@ -1 +0,0 @@
1
- import {createTheme}from'@mui/material/styles';var r={MuiSvgIcon:{styleOverrides:{root:{width:"0.8em",height:"0.8em"}}},MuiButtonBase:{defaultProps:{disableRipple:true}},MuiPopper:{styleOverrides:{root:{zIndex:1400}}}};var t={mode:"light",common:{black:"#000",white:"#fff",blue:"#147DC5",green:"#2ACE00",purple:"#6D4BCB",red:"#ff0000",orange:"#DD702C",lightOrange:"#FFF7F2",lightPurple:"#4E1FD0"},text:{primary:"#20232B",textSecondary:"#9F9F9F"},grey:{50:"#FEFEFE",100:"#F2F2F2",200:"#002945",300:"rgba(246, 248, 250, 0.8)",400:"#f9f9f9",500:"#8C9196",600:"#5C5C5C",700:"#8D8D94",800:"#E4E6E9",900:"#1D1B20",A50:"#fbfbfb",A100:"#8d8d94",A200:"#000014",A400:"#C1C1C1",A700:"#818181",A800:"#1F222A"},primary:{light:"#FCFCFC",main:"#1D1E21",dark:"#1D1E21"},background:{default:"#fff",highlight:"rgba(117, 122, 135, 0.1)",gradient:{blueGreen:"linear-gradient(180deg, #b4d9eb 0%, #cae4c5 100%)",greenYellow:"linear-gradient(180deg, #cae4c5 0%, #fffcbb 100%)",yellowOrange:"linear-gradient(180deg, #fffcbb 0%, #ffdbb1 100%)",orangeRed:"linear-gradient(180deg, #ffdbb1 0%, #ffc9c9 100%)",redPurple:"linear-gradient(180deg, #ffc9c9 0%, #ceb9e8 100%)",purpleBlue:"linear-gradient(180deg, #CEB9E8 0%, #B4D9EB 100%)",shadedBlue:"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",darkShadedBlue:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",darkToLight:"linear-gradient(254deg, #101010 0.51%, #343740 49.67%, #101010 100%)",error:"linear-gradient(0deg, rgba(255, 0, 0, 0.14) 0%, rgba(255, 0, 0, 0.14) 100%), #FFF"},transparent:["rgba(249, 249, 249, 0.80)","rgba(32, 35, 43, 0.60)","rgba(242, 242, 242, 0.50)"]},warning:{main:"#F4BE4F",light:"#E9DB94",dark:"#E37B00"},error:{light:"#FF0000",main:"#FF3D00",dark:"#EA611C"},success:{light:"#BFEBB4",main:"#2ACE00",dark:"#76BB40"},divider:"#F2F2F2",info:{light:"#F4F9FD",main:"#29b6f6",dark:"#1F88D0"},action:{hover:"#f5f5f5"},secondary:{main:"#6D4BCB",light:"#DDDDDD"},custom:{50:"#e7f4fc",100:"#FFF0DE",200:"#E4F0F8",300:"#FFECE5",400:"#efefef",500:"#FF7A00",600:"#FFF5F2",700:"#128C7E",800:"#0085FF",900:"#3BC84F"}},o={mode:"dark",text:{primary:"#fff"},background:{default:"#000"}};var x=["none","0px 0px 1.4847px #FFFFFF","0px 0px 28px rgba(0, 0, 0, 0.04)","0px 0px 16px 0px rgba(0, 0, 0, 0.13)}","7px 0px 8px 0px #F2F2F2","0px 0px 28px 0px rgba(0, 0, 0, 0.04)","0px 0px 8px 0px rgba(0, 0, 0, 0.13)","0px 0px 4px 0px rgba(31, 136, 208, 0.50)","0px 0px 12px 0px rgba(0, 0, 0, 0.15)","0px 8px 30px 0px rgba(0, 0, 0, 0.16)","0px 0px 16px 0px rgba(0, 0, 0, 0.15)","0px 0px 16px 0px rgba(0, 0, 0, 0.13)","-4px 0px 16px 0px rgba(0, 0, 0, 0.10)","0px 0px 32px 0px rgba(0, 0, 0, 0.11)","0px 4px 8px 0px rgba(0, 0, 0, 0.14)","0px 0px 36px 0px rgba(0, 0, 0, 0.05)","0px 0px 44px 0px rgba(0, 0, 0, 0.25)","0px 0px 6px 0px rgba(0, 0, 0, 0.11)","0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)","0px 8px 30px 0px rgba(0, 0, 0, 0.15)","0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)","0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)","0px 1px 1px 0px rgba(0, 0, 0, 0.10), 0px 2px 2px 0px rgba(0, 0, 0, 0.09), 0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 9px 4px 0px rgba(0, 0, 0, 0.01), 0px 14px 4px 0px rgba(0, 0, 0, 0.00)","0px 1px 16px 0px rgba(0, 0, 0, 0.07)","0px -1px 16px 0px rgba(0, 0, 0, 0.07)"];var a=e=>e==="ltr"?["Tap Sans","sans-serif"].join(", "):["Noto Sans Arabic","sans-serif"].join(", "),i=(e="ltr")=>({htmlFontSize:16,fontFamily:a(e),fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,fontWeightBolder:700,allVariants:{fontFamily:a(e),fontSize:"0.875rem",lineHeight:"normal",fontStyle:"normal",fontWeight:"normal",fontStretch:"normal",letterSpacing:"normal"},h1:{fontSize:"3.5rem"},h2:{fontSize:"3rem"},h3:{fontSize:"2.5rem"},h4:{fontSize:"2rem"},h5:{fontSize:"1.5rem"},h6:{fontSize:"1.25rem"},subtitle1:{fontSize:"0.6875rem",lineHeight:"15px",fontWeight:400},subtitle2:{fontSize:"0.875rem"},body1:{fontSize:"1rem"},body2:{fontSize:"0.875rem"},button:{fontSize:"0.875rem"},caption:{fontSize:"0.75rem"},overline:{fontSize:"0.75rem"}});var c=(e,p)=>createTheme({palette:e==="dark"?o:t,direction:p,typography:i(p),components:r,shape:{borderRadius:8},shadows:x});export{r as a,t as b,o as c,x as d,i as e,c as f};
@@ -1,2 +0,0 @@
1
- import {kc,yc,Zb,xa as xa$1,jc,ab}from'./chunk-MXISJOX2.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Q from'@mui/material/Box';import Fa,{circularProgressClasses}from'@mui/material/CircularProgress';import Ta from'@mui/material/ButtonBase';import {styled,useTheme,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import $e from'@mui/material/SvgIcon';import Wa from'@mui/material/Checkbox';import Ha from'@mui/material/FormControlLabel';import Ka from'@mui/material/Switch';import qa from'@mui/material/Typography';import as from'@mui/material/Radio';import xs,{tooltipClasses}from'@mui/material/Tooltip';import Ss from'@mui/material/Skeleton';import vs from'@mui/material/Avatar';import Fs from'@mui/material/Divider';import Ws from'@mui/material/Collapse';import {createPortal}from'react-dom';import on from'@mui/material/Backdrop';import In,{SliderThumb}from'@mui/material/Slider';import Fn from'@mui/material/FormControl';import zn from'@mui/material/InputLabel';import Rn from'@mui/material/Input';import Vn from'@mui/material/InputBase';import Un from'@mui/material/Accordion';import Gn from'@mui/material/AccordionDetails';import _n from'@mui/material/AccordionSummary';import ei from'@mui/material/Popper';import ci from'@mui/material/DialogActions';import fi from'@mui/material/DialogTitle';import ii from'@mui/material/Dialog';import pi from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Oi from'@mui/material/Stack';var E="os-shared-Button",k={root:`${E}-root`,content:`${E}-content`,startIcon:`${E}-startIcon`,endIcon:`${E}-endIcon`,loading:`${E}-loading`,loadingSpinner:`${E}-loadingSpinner`},io={sm:{height:24,padding:"8px 16px",fontSize:"10px"},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px"},lg:{height:40,padding:"8px 32px",fontSize:"12px"}},po={sm:12,md:12,lg:14};var lo=styled(Ta,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...io[t],fontWeight:t==="sm"?e.typography.fontWeightBold:e.typography.fontWeightBolder??700,...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var co=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:p=false,disabled:i,className:l,sx:d,...m},c)=>jsxs(lo,{ref:c,className:kc(k.root,l),$variant:o,$size:t,$fullWidth:p,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:d,...m,children:[jsxs(Q,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Q,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(Q,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Q,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Fa,{className:k.loadingSpinner,size:po[t],color:"inherit"})})]}));co.displayName="Button";var fo=memo(co);var za="os-shared-Icon",oe={root:`${za}-root`};var yo=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var uo=forwardRef(({className:e,sx:o,...t},r)=>jsx(yo,{className:kc(oe.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));uo.displayName="Icon";var xo=memo(uo);var Me="os-shared-Checkbox",$={root:`${Me}-root`,control:`${Me}-control`,label:`${Me}-label`};var go=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:e?"#D2D5D8":t.common.white})]})},Co=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsx($e,{viewBox:"0 0 11 11",sx:{width:11,height:11},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":t.common.white,stroke:e?"#D2D5D8":t.grey[500],strokeWidth:"1.2"})})},ho=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]})};var No=styled(Wa)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),ko=styled(Ha)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var wo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},p)=>{let i=yc(useId(),"checkbox"),l=jsx(No,{id:i,ref:p,disableRipple:true,disabled:t,checkedIcon:jsx(go,{disabled:t}),icon:jsx(Co,{disabled:t}),indeterminateIcon:jsx(ho,{disabled:t}),"data-testid":"Checkbox",className:kc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(ko,{className:kc($.root,a),sx:r,control:l,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):l});wo.displayName="Checkbox";var Io=memo(wo);var ja="os-shared-Switch",te={root:`${ja}-root`};var Bo=styled(Ka)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var vo=forwardRef(({className:e,sx:o,...t},r)=>jsx(Bo,{ref:r,className:kc(te.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));vo.displayName="Switch";var Po=memo(vo);var Ya="os-shared-Typography",re={root:`${Ya}-root`};var To=styled(qa)(({theme:e})=>({color:e.palette.text.primary}));var Mo=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...p},i)=>{let l=useTheme(),d={regular:l.typography.fontWeightRegular,medium:l.typography.fontWeightMedium,semibold:l.typography.fontWeightBold,bold:l.typography.fontWeightBolder??700},m=o!==void 0?typeof o=="number"?o:d[o]:void 0,c=Array.isArray(s)?s:[s];return jsx(To,{ref:i,className:kc(re.root,a),variant:e,sx:[m!==void 0&&{fontWeight:m},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...c],"data-testid":"Typography",...p})});Mo.displayName="Typography";var $o=memo(Mo);var rs="os-shared-RadioButton",ae={root:`${rs}-root`},Lo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var ze=styled("span")({display:"flex",alignItems:"center",justifyContent:"center"}),Re=styled("span",{shouldForwardProp:e=>e!=="$checked"&&e!=="$disabled"})(({theme:e,$checked:o=false,$disabled:t=false})=>({borderRadius:"50%","--icon-size":"11px",width:"var(--icon-size)",height:"var(--icon-size)",display:"block",boxSizing:"border-box",...o?{backgroundColor:t?"#BDC1CC":e.palette.info.dark,...!t&&{boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"},"&::before":{display:"block",width:"var(--icon-size)",height:"var(--icon-size)",backgroundColor:t?"#BDC1CC":e.palette.info.dark,borderRadius:"50%",backgroundImage:`radial-gradient(${e.palette.common.white},${e.palette.common.white} 28%,transparent 32%)`,content:'""'}}:{border:`1px solid ${t?e.palette.grey[800]:e.palette.grey[700]}`,...t&&{backgroundColor:e.palette.grey[400]}}})),Fo=styled(as,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({theme:e,$iconSize:o,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:s})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:s,cursor:"pointer",color:e.palette.grey[500],"&.Mui-checked":{color:t??e.palette.info.dark},...a&&{"&:hover":{backgroundColor:"transparent",color:a}},"&.Mui-disabled":{color:r??"#C7C7CC"}}));function zo(e="sm"){return Lo[e]}var Ro=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:p,sx:i,disableRipple:l=true,icon:d,disabled:m,...c},y)=>{let f=zo(e);return jsx(Fo,{ref:y,className:kc(ae.root,p),"data-testid":"RadioButton",size:f.muiSize,disableRipple:l,disabled:m,icon:d??jsx(ze,{children:jsx(Re,{$checked:false,$disabled:m})}),checkedIcon:o??jsx(ze,{children:jsx(Re,{$checked:true,$disabled:m})}),$iconSize:s??f.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:f.maxWidth,sx:i,...c})});Ro.displayName="RadioButton";var Ao=memo(Ro);var se="os-shared-CircularProgress",L={root:`${se}-root`,progress:`${se}-progress`,labelOverlay:`${se}-labelOverlay`,labelText:`${se}-labelText`};var Eo=styled(Fa)(({theme:e})=>({color:e.palette.common.blue??"#147DC5",background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Wo=styled(Q)(()=>({position:"relative",display:"inline-flex"})),Ho=styled(Q)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Vo=styled(qa)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var Oo=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},p)=>{let i=e==="determinate"&&o;return jsxs(Wo,{className:kc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Eo,{ref:p,variant:e,value:t,className:L.progress,...s}),i&&jsx(Ho,{className:L.labelOverlay,children:jsx(Vo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Oo.displayName="CircularProgress";var Zo=memo(Oo);var ys="os-shared-Tooltip",ie={wrapper:`${ys}-wrapper`};var Uo=styled(({className:e,...o})=>createElement(xs,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function _o({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...p}){return jsx(Uo,{className:e,title:o,placement:t,arrow:true,sx:s,...p,children:jsx(Q,{display:"flex",alignItems:"center",className:ie.wrapper,...a,children:r})})}_o.displayName="Tooltip";var Xo=memo(_o);var bs="os-shared-Skeleton",pe={root:`${bs}-root`},Yo="rounded",qo=16;var Jo=styled(Ss)(()=>({}));var Qo=forwardRef(({className:e,sx:o,variant:t=Yo,height:r=qo,...a},s)=>jsx(Jo,{ref:s,className:kc(pe.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Qo.displayName="Skeleton";var et=memo(Qo);var Bs="os-shared-Avatar",le={root:`${Bs}-root`},ot={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var tt=styled(vs,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=ot[o];return {width:t,height:t,fontSize:r,fontWeight:e.typography.fontWeightBold,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var rt=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(tt,{ref:s,className:kc(le.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));rt.displayName="Avatar";var at=memo(rt);var Ls="os-shared-Divider",me={root:`${Ls}-root`};var st=styled(Fs)(()=>({}));var nt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(st,{ref:a,className:kc(me.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));nt.displayName="Divider";var it=memo(nt);var Es="os-shared-Collapse",de={root:`${Es}-root`},pt=true,lt=300;var mt=styled(Ws)(()=>({}));var dt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=pt,timeout:a=lt,...s},p)=>jsx(mt,{ref:p,className:kc(de.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));dt.displayName="Collapse";var ct=memo(dt);var js="os-shared-Badge",ce={root:`${js}-root`},ft={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"},yt=["primary","secondary","neutral","dark"];var Gs={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark,red:e=>e.palette.error.light},_s={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Xs(e,o){let t=ft[e];return t||(Gs[e]?.(o)??o.palette.common.white)}function Ys(e,o){return yt.includes(e)?o.palette.common.white:_s[e]?.(o)??o.palette.common.white}var ut=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Xs(o,e),color:Ys(o,e),fontSize:"0.6rem",fontWeight:e.typography.fontWeightBold,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var xt=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:p,...i},l)=>jsx(ut,{ref:l,className:kc(ce.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:p}));xt.displayName="Badge";var gt=memo(xt);var en="os-shared-Backdrop",fe={root:`${en}-root`};var Ct=styled(on)(({theme:e})=>({zIndex:1,backgroundColor:alpha(e.palette.common.black,.3)}));var ht=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},p)=>{if(!t)return null;let i=l=>{r?.(),a?.(l);};return createPortal(jsx(Ct,{open:t,ref:p,className:kc(fe.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});ht.displayName="Backdrop";var bt=memo(ht);var ye="os-shared-CopyButton",B={root:`${ye}-root`,icon:`${ye}-icon`,copyIcon:`${ye}-copyIcon`,copiedIcon:`${ye}-copiedIcon`},St=2e3,Nt=200;var It=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Bt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var Pt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),De=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${Nt}ms ease`}));var Tt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=St,onClick:a,...s},p)=>{let[i,l]=useState(false),d=m=>{m.stopPropagation(),ab(t),l(true),setTimeout(()=>l(false),r),a?.(m);};return jsxs(Pt,{ref:p,className:kc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:d,...s,children:[jsx(De,{className:kc(B.icon,B.copyIcon),$visible:!i,children:jsx(It,{})}),jsx(De,{className:kc(B.icon,B.copiedIcon),$visible:i,children:jsx(Bt,{})})]})});Tt.displayName="CopyButton";var Mt=memo(Tt);var Ee="os-shared-ProgressBar",H={root:`${Ee}-root`,fill:`${Ee}-fill`,text:`${Ee}-text`};var Lt=styled(Q,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue??"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:alpha(e.palette.text.primary,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}})),Ft=styled(Q,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(e.palette.text.primary,26/255),borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(e.palette.text.primary,0)}})),zt=styled(qa,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:e.palette.common.white,padding:"2px 4px",...o===0&&{color:alpha(e.palette.grey.A100,.5)}}));var At=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Lt,{ref:r,className:kc(H.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ft,{className:H.fill,$value:t,children:jsxs(zt,{className:H.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});At.displayName="ProgressBar";var Dt=memo(At);var ge="os-shared-Chip",v={root:`${ge}-root`,text:`${ge}-text`,copyButton:`${ge}-copyButton`,icon:`${ge}-icon`},Et=2e3,He=150;var Vt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Ot=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var he=styled(Q,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:`${e.palette.common.white} 7px 0px 8px 2px`},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Ve=styled(Q)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),jt=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:`opacity ${He}ms ease`,"&:hover":{opacity:1}})),Oe=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${He}ms ease`}));var Kt=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:p=false,copyText:i,unknownText:l="Unknown",disableAnimation:d=false,...m},c)=>{let[y,f]=useState(false),g=x=>{x.stopPropagation(),i&&(ab(i),f(true),setTimeout(()=>f(false),Et));},C={$variant:a,$hasIcon:r!=null,$isSelected:p,$disableAnimation:d},u=kc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(he,{ref:c,className:u,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...m,children:[jsx(Ve,{className:v.text,"data-is-arabic":typeof t=="string"&&Zb(t),children:t}),jsxs(jt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Oe,{$visible:!y,children:jsx(Vt,{})}),jsx(Oe,{$visible:y,children:jsx(Ot,{})})]})]}):jsxs(he,{ref:c,className:u,sx:N,"data-testid":"Chip",...C,...m,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(Ve,{className:v.text,children:t})]}):jsx(he,{className:u,sx:N,"data-testid":"Chip",...C,...m,children:l})});Kt.displayName="Chip";var Ut=memo(Kt);var je="os-shared-Slider",T={root:`${je}-root`,thumb:`${je}-thumb`,thumbIcon:`${je}-thumbIcon`},Ke=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");var Gt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var _t=styled(In)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:Ke,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Ke}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function $n({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,o),...t,children:[e,jsx(Gt,{className:T.thumbIcon})]})}var Xt=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:p,onChange:i,slots:l,...d},m)=>{let c=useCallback((y,f)=>{i(f);},[i]);return jsx(_t,{ref:m,className:kc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:p,onChange:c,...d,slots:{thumb:$n,...l}})});Xt.displayName="Slider";var Yt=memo(Xt);var Ue="os-shared-Input",O={root:`${Ue}-root`,label:`${Ue}-label`,input:`${Ue}-input`},Jt={sm:28,md:32,labelled:40},Qt=["e","E","+","-"],er=/^[0-9.]$/,or=xa$1();var tr=(e,o)=>Jt[e?"labelled":o],rr=styled(Rn,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:tr(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),ar=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),sr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:tr(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var ir=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:p=false,type:i,id:l,className:d,sx:m,onKeyDown:c,onWheel:y,...f},g)=>{let C=!!e,u=i==="number",S=x=>{let D=x.metaKey||x.ctrlKey||x.altKey,Te=x.key.length===1;(Qt.includes(x.key)||or&&Te&&!D&&!er.test(x.key))&&x.preventDefault(),c?.(x);},N=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(sr,{className:kc(O.root,d),sx:m,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(ar,{className:O.label,htmlFor:l,children:e}),jsx(rr,{id:l,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:p,$size:o,onKeyDown:u?S:c,onWheel:u?N:y,...f})]})});ir.displayName="Input";var pr=memo(ir);var _e="os-shared-Textarea",Z={root:`${_e}-root`,label:`${_e}-label`,textarea:`${_e}-textarea`},Xe=20;var lr=styled(Vn,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Xe,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),mr=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),dr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Xe:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var fr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:p,id:i,className:l,sx:d,...m},c)=>{let y=!!e;return jsxs(dr,{className:kc(Z.root,l),sx:d,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(mr,{className:Z.label,htmlFor:i,children:e}),jsx(lr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:p,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...m})]})});fr.displayName="Textarea";var yr=memo(fr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var xr=()=>{let{palette:e}=useTheme();return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:e.text.primary,stroke:e.text.primary,strokeWidth:"0.1"})})};var Cr=styled(Un)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),hr=styled(_n)(({theme:e})=>({background:e.palette.grey.A50??"#fbfbfb",minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),br=styled(Gn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),Sr=styled(Q)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Nr=styled(Q)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Ir=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:p,slotProps:i={},disabled:l=false,expandIcon:d,className:m,sx:c,...y},f)=>{let g=e!==void 0,[C,u]=useState(o),S=g?e:C,N=(_i,ro)=>{g||u(ro),t?.(ro);},{showArrow:x=true,...D}=i.label??{},{className:Te,sx:Ia,...Ba}=i.root??{},va=d??(x?jsx(Sr,{component:"span",className:b.expandIcon,children:jsx(xr,{})}):null),Pa=jsxs(Fragment,{children:[s!=null&&jsx(Q,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:jc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(Nr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),p!=null&&jsx(Q,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:p})]});return jsxs(Cr,{ref:f,"data-testid":"Accordion",disabled:l,expanded:S,onChange:N,className:kc(b.root,m,Te),sx:jc(c??{},Ia),...Ba,...y,children:[jsx(hr,{className:b.summary,expandIcon:va,"aria-expanded":S,...D,children:Pa}),jsx(br,{className:b.content,...i.content,children:a})]})});Ir.displayName="Accordion";var Br=memo(Ir);var vr="os-shared-Menu",X={popper:`${vr}-popper`,panel:`${vr}-panel`},Pr=12;var Mr=styled(ei)({}),$r=styled(Q,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Fr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:p,sx:i,...l},d)=>{let[m,c]=useState(false),f=useMemo(()=>Children.count(t),[t])>Pr&&m,{onScroll:g,className:C,sx:u,...S}=s??{},N=useCallback(D=>{c((D.currentTarget.scrollTop??0)>0),g?.(D);},[g]),x=kc(X.panel,C,"MuiPopper-dropdown");return jsx(Mr,{ref:d,className:kc(X.popper,p),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...l,children:jsx($r,{$showShadow:f,onScroll:N,className:x,sx:jc(i??{},u),...S,children:t})})});Fr.displayName="Menu";var zr=memo(Fr);var Se="os-shared-Dialog",R={root:`${Se}-root`,title:`${Se}-title`,content:`${Se}-content`,actions:`${Se}-actions`};var Ar=styled(ii)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),Dr=styled(pi)(({theme:e})=>({padding:e.spacing(2)}));var Er=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:p,...i},l)=>jsxs(Ar,{ref:l,"data-testid":"Dialog",open:a,onClose:r,className:kc(R.root,s),sx:p,...i,children:[e&&jsx(fi,{className:R.title,children:e}),jsx(Dr,{className:R.content,children:t}),o&&jsx(ci,{className:R.actions,children:o})]}));Er.displayName="Dialog";var Wr=memo(Er);var Ne="os-shared-MenuItem",M={root:`${Ne}-root`,indicator:`${Ne}-indicator`,content:`${Ne}-content`,disabled:`${Ne}-disabled`},A={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Vr=()=>{let{palette:e}=useTheme();return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e.info.dark}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:e.common.white})]})},Or=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),Zr=()=>{let{palette:e}=useTheme();return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e.info.dark,stroke:e.info.dark,strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Ur=styled(Q,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:e.palette.text.primary})),Je=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ci(e,o){return o?A.indeterminate:e?A.checked:A.unchecked}var hi={[A.unchecked]:Or,[A.checked]:Vr,[A.indeterminate]:Zr};function bi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(Je,{className:M.indicator,"aria-hidden":true,children:e});let r=Ci(o,t),a=hi[r];return jsx(Je,{className:M.indicator,"aria-hidden":true,children:jsx(a,{})})}var Gr=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:p,sx:i,...l},d)=>{let m=kc(M.root,"menu-item",o&&M.disabled,p);return jsxs(Ur,{ref:d,"data-testid":"MenuItem",className:m,sx:i,onClick:o?void 0:a,$isDisabled:o,...l,children:[bi(r,e,t),jsx("span",{className:M.content,children:s})]})});Gr.displayName="MenuItem";var _r=memo(Gr);var Xr="os-shared-ToggleButtons",Y={root:`${Xr}-root`,button:`${Xr}-button`};var Jr=styled(Q)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),ki=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),Qr=styled(Q,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:e.typography.fontWeightMedium,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?ki(e):{backgroundColor:"transparent",boxShadow:"none"}}));function oa({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:p,sx:i},l){let{className:d,sx:m,...c}=r??{},y=kc(Y.root,p,d);return jsx(Jr,{ref:l,id:s,"data-testid":"ToggleButtons",className:y,sx:jc(i??{},m),...c,children:e.map(f=>jsx(Qr,{className:Y.button,$isActive:o===f.key,onClick:()=>t(f.key),...a,children:f.content},f.key))})}var Bi=forwardRef(oa);oa.displayName="ToggleButtons";var ta=memo(Bi);var vi="os-shared-LazyImage",we={root:`${vi}-root`},ra={display:"flex",justifyContent:"center",alignItems:"center"},Ie={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var aa=styled(Q)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Be(e){return e!=null&&e in Ie}var Ri=LazyLoadImage,na=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...p},i)=>{let[l,d]=useState(Be(e));if(useEffect(()=>{if(!Be(e)){d(false);return}d(true),Ie[e]().finally(()=>{d(false);});},[e]),l)return null;let{className:m,sx:c,style:y,...f}=o??{},g=Be(e)||!!s||y!=null;return jsx(aa,{component:"span",...f,className:kc(we.root,m??r),sx:c!=null?jc(a??{},c):a,children:jsx(Ri,{...p,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...ra,...y}}:void 0})})});na.displayName="LazyImage";var ia=memo(na);var Qe="os-shared-FieldFeedback",K={root:`${Qe}-root`,icon:`${Qe}-icon`,message:`${Qe}-message`};var la=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom?.[500]??"#FF7A00":t.error.light;return jsx($e,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:r})})})},ma=e=>jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"#39953E"})})}),da=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function ca(e,o){let t=e.palette.custom?.[500]??"#FF7A00";return {warning:{backgroundColor:alpha(t,.15),textColor:t},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var fa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=ca(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),ya=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=ca(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ua=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function Ei(e){return e!=null&&e!==""}function Wi(e){switch(e){case "success":return jsx(ma,{});case "info":return jsx(da,{});case "error":case "warning":return jsx(la,{severity:e})}}var xa=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Ei(o))return null;let p=e;return jsxs(fa,{ref:s,"data-testid":"FieldFeedback",className:kc(K.root,r),sx:a,$feedbackType:p,children:[t??jsx(ua,{className:K.icon,children:Wi(p)}),jsx(ya,{className:K.message,$feedbackType:p,children:o})]})});xa.displayName="FieldFeedback";var ga=memo(xa);var Vi="os-shared-ScrollLoader",Pe={root:`${Vi}-root`},Ca=50;var ha=styled(Oi)({overflow:"auto",height:"100%",maxHeight:"100%"});function to(e,o=Ca){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var ka=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:p,id:i,...l},d)=>{let[m,c]=useState(false),y=useRef(e),f=useRef(null);y.current=e;let g=useCallback(()=>{o&&!r&&y.current();},[o,r]),C=useCallback(()=>{let u=f.current;u&&to(u)&&g();},[g]);return useEffect(()=>{let u=f.current;if(u)return u.addEventListener("scroll",C),()=>u.removeEventListener("scroll",C)},[C]),useEffect(()=>{let u=f.current;if(!u||t||m)return;let S=window.setTimeout(()=>{c(true),to(u)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,m]),jsx(ha,{ref:u=>{f.current=u,typeof d=="function"?d(u):d&&(d.current=u);},id:i,"data-testid":"ScrollLoader",className:kc(Pe.root,s),sx:p,...l,children:a})});ka.displayName="ScrollLoader";var wa=memo(ka);
2
- export{ga as $,fe as A,bt as B,B as C,Mt as D,H as E,Dt as F,v as G,Ut as H,T as I,Yt as J,O as K,pr as L,Z as M,yr as N,b as O,Br as P,X as Q,zr as R,R as S,Wr as T,M as U,_r as V,Y as W,ta as X,we as Y,ia as Z,K as _,k as a,Pe as aa,fo as b,wa as ba,oe as c,xo as d,$ as e,Io as f,te as g,Po as h,re as i,$o as j,ae as k,Ao as l,L as m,Zo as n,ie as o,Xo as p,pe as q,et as r,le as s,at as t,me as u,it as v,de as w,ct as x,ce as y,gt as z};
@@ -1 +0,0 @@
1
- import {yc}from'./chunk-MXISJOX2.js';import {memo,useId}from'react';import {Typography}from'@mui/material';import i from'@mui/material/Box';import f,{circularProgressClasses}from'@mui/material/CircularProgress';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(f)(({theme:r})=>({color:r.palette.common.blue,background:alpha(r.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),p=styled(i)(()=>({position:"relative",display:"inline-flex"})),l=styled(i)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),s=styled(Typography)(()=>({fontSize:"14px",fontWeight:700,color:"#3B4152"}));function c({variant:r="determinate",hasLabel:m=true,...t}){let u=yc(useId(),"circular-progress-with-label");return jsxs(p,{id:u,"data-testid":"CircularProgressWithLabel",children:[jsx(n,{variant:r,...t}),r==="determinate"&&m&&jsx(l,{children:jsx(s,{variant:"caption",color:"text.secondary",children:`${Math.round(t?.value??0)}%`})})]})}c.displayName="CircularProgressWithLabel";var d=memo(c);var M=d;export{M as a};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { CircularProgressProps } from '@mui/material/CircularProgress';
3
- declare function CircularProgressWithLabel({ variant, hasLabel, ...props }: CircularProgressProps & {
4
- value?: number;
5
- hasLabel?: boolean;
6
- }): import("react").JSX.Element;
7
- declare namespace CircularProgressWithLabel {
8
- var displayName: string;
9
- }
10
- declare const _default: import("react").MemoExoticComponent<typeof CircularProgressWithLabel>;
11
- export default _default;
@@ -1,2 +0,0 @@
1
- import CircularProgressWithLabel from './CircularProgressWithLabel';
2
- export default CircularProgressWithLabel;
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-VYDLL6DY.js';import'../../_chunks/chunk-MXISJOX2.js';import'../../_chunks/chunk-N372QRVU.js';import'../../_chunks/chunk-3YAJNHQC.js';import'../../_chunks/chunk-SWPEIUF7.js';
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LoadingIcon: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
- export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const LoadingTextWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
- export declare const LoadingText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
10
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
11
- }, "width" | "minWidth" | "minHeight" | "height" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "align" | "className" | "style" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;