@tap-payments/os-micro-frontend-shared 0.3.273 → 0.3.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-64ZDTAAW.js → chunk-265MSIZH.js} +1 -1
- package/build/_chunks/{chunk-NUCUSAD2.js → chunk-2DZTKOWC.js} +1 -1
- package/build/_chunks/{chunk-IPEPXEL5.js → chunk-2FFQR4XJ.js} +1 -1
- package/build/_chunks/{chunk-Y75WADMM.js → chunk-363HMCRF.js} +1 -1
- package/build/_chunks/chunk-37SWWF3G.js +1 -0
- package/build/_chunks/chunk-3M2GZVQW.js +2 -0
- package/build/_chunks/{chunk-X5HRCMTE.js → chunk-42T6C72N.js} +1 -1
- package/build/_chunks/{chunk-MF5ATA3Y.js → chunk-46V3JVHX.js} +1 -1
- package/build/_chunks/{chunk-3DOR47UW.js → chunk-52PPSCXG.js} +1 -1
- package/build/_chunks/{chunk-K6LOVRKX.js → chunk-5SPLSDGC.js} +1 -1
- package/build/_chunks/chunk-7L6NBFKR.js +1 -0
- package/build/_chunks/{chunk-PUJ762TG.js → chunk-7XEIN7KW.js} +1 -1
- package/build/_chunks/{chunk-BRFCMPF5.js → chunk-A6YF5T27.js} +1 -1
- package/build/_chunks/{chunk-TZOMS57X.js → chunk-ADEEIE7D.js} +1 -1
- package/build/_chunks/chunk-AOJUCMQQ.js +2 -0
- package/build/_chunks/{chunk-BNM6FJCR.js → chunk-B3QNGYUI.js} +1 -1
- package/build/_chunks/{chunk-GBGW63EG.js → chunk-BVAZARPH.js} +1 -1
- package/build/_chunks/{chunk-6TH5OBRZ.js → chunk-BXQASOYE.js} +1 -1
- package/build/_chunks/{chunk-AXNWVU3K.js → chunk-CAVYK7HF.js} +1 -1
- package/build/_chunks/{chunk-UEG5AHXV.js → chunk-DEMRELKE.js} +1 -1
- package/build/_chunks/{chunk-LDCBWAC4.js → chunk-DZYFAAXL.js} +1 -1
- package/build/_chunks/{chunk-ZUK5FRG5.js → chunk-EKOUE2IZ.js} +1 -1
- package/build/_chunks/{chunk-XRUOTYCI.js → chunk-F4TXGFRW.js} +1 -1
- package/build/_chunks/{chunk-4JUVQWRF.js → chunk-FIFXF3JZ.js} +1 -1
- package/build/_chunks/{chunk-UC5FMNUV.js → chunk-FJNHU3S4.js} +1 -1
- package/build/_chunks/{chunk-DJRPY3A2.js → chunk-HRL5HXES.js} +1 -1
- package/build/_chunks/chunk-HZCNE5Q2.js +1 -0
- package/build/_chunks/{chunk-FNUU2KSZ.js → chunk-I7OG7E3Z.js} +1 -1
- package/build/_chunks/{chunk-KCIFOOFA.js → chunk-IERB2R3J.js} +1 -1
- package/build/_chunks/{chunk-2ANYOHLU.js → chunk-IPIA27QM.js} +1 -1
- package/build/_chunks/chunk-ISC5KT5E.js +1 -0
- package/build/_chunks/{chunk-YIZKLFYJ.js → chunk-JDEIU7E5.js} +1 -1
- package/build/_chunks/{chunk-PHKAZCP5.js → chunk-JGVAEGDX.js} +1 -1
- package/build/_chunks/{chunk-HOHQMC2O.js → chunk-JM6GMHUT.js} +1 -1
- package/build/_chunks/{chunk-MI3EC2ZF.js → chunk-KOBQX2C2.js} +1 -1
- package/build/_chunks/chunk-KPY3W62P.js +1 -0
- package/build/_chunks/{chunk-XXCH74F3.js → chunk-KVZJDQV2.js} +1 -1
- package/build/_chunks/chunk-LS57WE6K.js +1 -0
- package/build/_chunks/{chunk-ONANHXZA.js → chunk-O44C6KUS.js} +1 -1
- package/build/_chunks/{chunk-GFOWTME6.js → chunk-PCGC6E7J.js} +1 -1
- package/build/_chunks/{chunk-LON6X4MJ.js → chunk-PQRI2WMI.js} +1 -1
- package/build/_chunks/chunk-QFKF5I2T.js +2 -0
- package/build/_chunks/{chunk-WC2MF35C.js → chunk-QVH3AVGY.js} +1 -1
- package/build/_chunks/{chunk-LVQ2UFZT.js → chunk-QZJCQWTE.js} +1 -1
- package/build/_chunks/{chunk-BXVLLRHG.js → chunk-RSIJKVO6.js} +1 -1
- package/build/_chunks/chunk-RXDZGI4N.js +1 -0
- package/build/_chunks/{chunk-TN55SPRQ.js → chunk-S27723NU.js} +1 -1
- package/build/_chunks/{chunk-FMUJQ45L.js → chunk-SKASDIJH.js} +1 -1
- package/build/_chunks/{chunk-RNJI3YXH.js → chunk-SN2KTD4P.js} +1 -1
- package/build/_chunks/{chunk-2JYBMD4I.js → chunk-UQ7XDCXB.js} +1 -1
- package/build/_chunks/{chunk-DOZLA7RE.js → chunk-UY75PFQ7.js} +1 -1
- package/build/_chunks/{chunk-FTRMTWS4.js → chunk-UZVOPL5U.js} +1 -1
- package/build/_chunks/{chunk-TX3XM6XL.js → chunk-VEPRRBYW.js} +1 -1
- package/build/_chunks/{chunk-SMJCH23I.js → chunk-VFCK7VBP.js} +1 -1
- package/build/_chunks/chunk-VLS6WUBL.js +1 -0
- package/build/_chunks/chunk-VNUT3HGU.js +1 -0
- package/build/_chunks/{chunk-AJS7K55Q.js → chunk-VRPTMDSJ.js} +1 -1
- package/build/_chunks/{chunk-DFEQ23C7.js → chunk-W2HSCMPT.js} +1 -1
- package/build/_chunks/chunk-WEDCKMUU.js +1 -0
- package/build/_chunks/{chunk-DRRME7J2.js → chunk-XMGXCCSD.js} +1 -1
- package/build/_chunks/{chunk-F3U4ZIAP.js → chunk-YDOKNGL2.js} +1 -1
- package/build/_chunks/chunk-YQEBQZXF.js +1 -0
- package/build/_chunks/{chunk-EUMG4QKT.js → chunk-YQYHL4AG.js} +1 -1
- package/build/_chunks/chunk-Z2DUFVI5.js +1 -0
- package/build/_chunks/{chunk-ZCULKYWE.js → chunk-ZERM22LM.js} +1 -1
- package/build/_chunks/{chunk-REZFP4CA.js → chunk-ZFVCIKJ5.js} +1 -1
- package/build/_chunks/{chunk-WNB7CBHZ.js → chunk-ZO7IPGTD.js} +1 -1
- package/build/_chunks/{chunk-H4FZYTL7.js → chunk-ZYP2H2JO.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Calender/style.d.ts +4 -4
- package/build/components/Card/index.js +1 -1
- package/build/components/CardList/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColorPicker/style.d.ts +2 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +6 -2
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateInput/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilterDropdown/style.d.ts +2 -2
- package/build/components/Filters/index.js +1 -1
- package/build/components/Filters/style.d.ts +2 -2
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiLevelSelect/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RadioGroup/style.d.ts +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/style.d.ts +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SearchInput/style.d.ts +2 -2
- package/build/components/Select/index.js +1 -1
- package/build/components/Select/style.d.ts +2 -2
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusButton/style.d.ts +2 -2
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Window/Window.d.ts +15 -0
- package/build/components/Window/WindowContent.d.ts +4 -0
- package/build/components/Window/WindowDialog.d.ts +4 -0
- package/build/components/Window/WindowFooter.d.ts +4 -0
- package/build/components/Window/WindowFooterActions.d.ts +4 -0
- package/build/components/Window/WindowProvider.d.ts +3 -0
- package/build/components/Window/constants.d.ts +41 -0
- package/build/components/Window/context.d.ts +10 -0
- package/build/components/Window/index.d.ts +9 -0
- package/build/components/Window/index.js +1 -0
- package/build/components/Window/style.d.ts +36 -0
- package/build/components/Window/type.d.ts +233 -0
- package/build/components/Window/utils.d.ts +41 -0
- package/build/components/WindowServices/DropdownIcon.d.ts +9 -0
- package/build/components/WindowServices/ServiceItem.d.ts +9 -0
- package/build/components/WindowServices/WindowServices.d.ts +4 -0
- package/build/components/WindowServices/WindowSkeleton.d.ts +4 -0
- package/build/components/WindowServices/constants.d.ts +37 -0
- package/build/components/WindowServices/index.d.ts +4 -0
- package/build/components/WindowServices/index.js +1 -0
- package/build/components/WindowServices/style.d.ts +45 -0
- package/build/components/WindowServices/type.d.ts +66 -0
- package/build/components/WindowServices/utils.d.ts +9 -0
- package/build/components/WindowToolbar/CloseIcon.d.ts +9 -0
- package/build/components/WindowToolbar/DirectionIcon.d.ts +12 -0
- package/build/components/WindowToolbar/MaximizeIcon.d.ts +9 -0
- package/build/components/WindowToolbar/MinimizeIcon.d.ts +9 -0
- package/build/components/WindowToolbar/SandboxIcon.d.ts +10 -0
- package/build/components/WindowToolbar/WindowToolbar.d.ts +4 -0
- package/build/components/WindowToolbar/WindowToolbarEndAdornment.d.ts +4 -0
- package/build/components/WindowToolbar/WindowToolbarStartAdornment.d.ts +4 -0
- package/build/components/WindowToolbar/WindowToolbarTitle.d.ts +12 -0
- package/build/components/WindowToolbar/constants.d.ts +12 -0
- package/build/components/WindowToolbar/index.d.ts +11 -0
- package/build/components/WindowToolbar/index.js +1 -0
- package/build/components/WindowToolbar/style.d.ts +56 -0
- package/build/components/WindowToolbar/type.d.ts +64 -0
- package/build/components/index.d.ts +6 -8
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/JSONViewWindow.d.ts +12 -0
- package/build/components/modules/JSONViewWindow/components/Content/Content.d.ts +11 -0
- package/build/components/modules/JSONViewWindow/components/Content/constants.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Content/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/Content/style.d.ts +266 -0
- package/build/components/modules/JSONViewWindow/components/Content/type.d.ts +10 -0
- package/build/components/{JSONViewer → modules/JSONViewWindow}/components/CopiedIndicator/CopiedIndicator.d.ts +1 -1
- package/build/components/modules/JSONViewWindow/components/CopiedIndicator/style.d.ts +276 -0
- package/build/components/{AppWindowWrapper/AppWindow/AppWindow.d.ts → modules/JSONViewWindow/components/Footer/Footer.d.ts} +2 -2
- package/build/components/modules/JSONViewWindow/components/Footer/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/Footer/style.d.ts +7 -0
- package/build/components/modules/JSONViewWindow/components/Footer/type.d.ts +11 -0
- package/build/components/modules/JSONViewWindow/components/HighlightText/index.d.ts +1 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/IconButton.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/style.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/type.d.ts +6 -0
- package/build/components/{JSONViewer/components/JSONSearchBar/styles.d.ts → modules/JSONViewWindow/components/JSONSearchBar/style.d.ts} +2 -2
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/JSONViewArrow.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/type.d.ts +6 -0
- package/build/components/modules/JSONViewWindow/components/List/List.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/List/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/List/type.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/Pane/Pane.d.ts +20 -0
- package/build/components/modules/JSONViewWindow/components/Pane/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/Pane/type.d.ts +5 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/Toolbar.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/constants.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/index.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/type.d.ts +21 -0
- package/build/components/modules/JSONViewWindow/components/index.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/constants.d.ts +26 -0
- package/build/components/modules/JSONViewWindow/context/Provider.d.ts +7 -0
- package/build/components/modules/JSONViewWindow/context/context.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/context/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/hooks/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/hooks/useJSONViewWindow.d.ts +24 -0
- package/build/components/{JSONViewer → modules/JSONViewWindow}/hooks/useJsonSearch.d.ts +1 -1
- package/build/components/modules/JSONViewWindow/index.d.ts +9 -0
- package/build/components/modules/JSONViewWindow/index.js +1 -0
- package/build/components/{JSONViewer → modules/JSONViewWindow}/style.d.ts +29 -40
- package/build/components/modules/JSONViewWindow/type.d.ts +33 -0
- package/build/components/modules/JSONViewWindow/utils.d.ts +14 -0
- package/build/components/modules/RangeCalender/components/QuickFilters/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/components/RangeDatepicker/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/RangeCalender/style.d.ts +3 -3
- package/build/components/modules/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
- package/build/components/modules/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
- package/build/components/modules/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/style.d.ts +2 -2
- package/build/components/modules/VirtualTables/components/ErrorList/styles.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/TableFooter/TableFooter.d.ts +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/modules/WindowShell/WindowShell.d.ts +4 -0
- package/build/components/modules/WindowShell/WindowShellAnimator.d.ts +28 -0
- package/build/components/modules/WindowShell/WindowShellSlotColumn.d.ts +8 -0
- package/build/components/modules/WindowShell/WindowShellSlotsLayout.d.ts +13 -0
- package/build/components/modules/WindowShell/WindowShellToolbar.d.ts +14 -0
- package/build/components/modules/WindowShell/constants.d.ts +6 -0
- package/build/components/modules/WindowShell/index.d.ts +3 -0
- package/build/components/modules/WindowShell/index.js +1 -0
- package/build/components/modules/WindowShell/style.d.ts +573 -0
- package/build/components/modules/WindowShell/type.d.ts +289 -0
- package/build/components/modules/WindowShell/utils.d.ts +49 -0
- package/build/components/modules/index.d.ts +4 -0
- package/build/components/modules/index.js +1 -0
- package/build/components/primitives/Input/style.d.ts +2 -2
- package/build/components/primitives/Slider/style.d.ts +1 -1
- package/build/components/primitives/Textarea/style.d.ts +2 -2
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.d.ts +1 -2
- package/build/constants/index.js +1 -1
- package/build/constants/window.d.ts +10 -5
- package/build/datetime/components/DateRangeCalendar/style.d.ts +5 -5
- package/build/datetime/components/index.js +1 -1
- package/build/hooks/index.d.ts +1 -2
- package/build/hooks/index.js +1 -1
- package/build/hooks/useElementSizeObserver.d.ts +18 -0
- package/build/index.js +1 -1
- package/build/types/appEvents.d.ts +0 -3
- package/build/types/index.js +1 -1
- package/build/types/table.d.ts +0 -2
- package/build/utils/index.js +1 -1
- package/package.json +4 -11
- package/build/_chunks/chunk-2RPPZGV7.js +0 -1
- package/build/_chunks/chunk-37JEPAIM.js +0 -1
- package/build/_chunks/chunk-7VJMQ6ZC.js +0 -1
- package/build/_chunks/chunk-ABVY4O2O.js +0 -1
- package/build/_chunks/chunk-EG32DA46.js +0 -1
- package/build/_chunks/chunk-EOBVIUIS.js +0 -1
- package/build/_chunks/chunk-FT35MCQE.js +0 -2
- package/build/_chunks/chunk-IBHWDBBJ.js +0 -2
- package/build/_chunks/chunk-IQAHULGQ.js +0 -2
- package/build/_chunks/chunk-LXG5YXOJ.js +0 -1
- package/build/_chunks/chunk-OOLWSYGD.js +0 -1
- package/build/_chunks/chunk-Q4FLSRWN.js +0 -1
- package/build/_chunks/chunk-QO5OUTFV.js +0 -1
- package/build/_chunks/chunk-RUFO5P34.js +0 -1
- package/build/_chunks/chunk-TKQTJ4MH.js +0 -1
- package/build/components/AppServices/AppServices.d.ts +0 -15
- package/build/components/AppServices/ServiceItem.d.ts +0 -12
- package/build/components/AppServices/index.d.ts +0 -2
- package/build/components/AppServices/index.js +0 -1
- package/build/components/AppServices/style.d.ts +0 -12
- package/build/components/AppServicesBar/AppServicesBar.d.ts +0 -22
- package/build/components/AppServicesBar/index.d.ts +0 -3
- package/build/components/AppServicesBar/index.js +0 -1
- package/build/components/AppWindowWrapper/AppWindow/constant.d.ts +0 -2
- package/build/components/AppWindowWrapper/AppWindow/index.d.ts +0 -5
- package/build/components/AppWindowWrapper/AppWindow/nestingContext.d.ts +0 -3
- package/build/components/AppWindowWrapper/AppWindow/style.d.ts +0 -18
- package/build/components/AppWindowWrapper/AppWindow/type.d.ts +0 -18
- package/build/components/AppWindowWrapper/AppWindow/utils.d.ts +0 -34
- package/build/components/AppWindowWrapper/AppWindowWrapper.d.ts +0 -4
- package/build/components/AppWindowWrapper/context/Provider.d.ts +0 -3
- package/build/components/AppWindowWrapper/context/context.d.ts +0 -3
- package/build/components/AppWindowWrapper/context/index.d.ts +0 -2
- package/build/components/AppWindowWrapper/context/type.d.ts +0 -88
- package/build/components/AppWindowWrapper/headers/AccountHeader/AccountHeader.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/index.d.ts +0 -3
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/type.d.ts +0 -16
- package/build/components/AppWindowWrapper/headers/AccountHeader/index.d.ts +0 -4
- package/build/components/AppWindowWrapper/headers/AccountHeader/type.d.ts +0 -14
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeader.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/index.d.ts +0 -4
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.d.ts +0 -25
- package/build/components/AppWindowWrapper/index.d.ts +0 -8
- package/build/components/AppWindowWrapper/index.js +0 -1
- package/build/components/AppWindowWrapper/type.d.ts +0 -11
- package/build/components/JSONViewer/JSONViewer.d.ts +0 -3
- package/build/components/JSONViewer/JSONViewerList.d.ts +0 -11
- package/build/components/JSONViewer/components/FooterButton/FooterButton.d.ts +0 -5
- package/build/components/JSONViewer/components/FooterButton/index.d.ts +0 -2
- package/build/components/JSONViewer/components/HighlightText/index.d.ts +0 -2
- package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +0 -5
- package/build/components/JSONViewer/components/JSONTitleBar/index.d.ts +0 -3
- package/build/components/JSONViewer/components/JSONTitleBar/type.d.ts +0 -14
- package/build/components/JSONViewer/components/index.d.ts +0 -4
- package/build/components/JSONViewer/context/Provider.d.ts +0 -7
- package/build/components/JSONViewer/context/context.d.ts +0 -3
- package/build/components/JSONViewer/context/index.d.ts +0 -2
- package/build/components/JSONViewer/hooks/index.d.ts +0 -2
- package/build/components/JSONViewer/hooks/useJsonViewerContext.d.ts +0 -9
- package/build/components/JSONViewer/index.d.ts +0 -7
- package/build/components/JSONViewer/index.js +0 -1
- package/build/components/JSONViewer/type.d.ts +0 -33
- package/build/components/JSONViewer/utils.d.ts +0 -7
- package/build/components/MFWidgetLoader/DefaultMFWidgetLoader.d.ts +0 -2
- package/build/components/MFWidgetLoader/MFWidgetLoader.d.ts +0 -6
- package/build/components/MFWidgetLoader/ReportsMFWidgetLoader.d.ts +0 -2
- package/build/components/MFWidgetLoader/index.d.ts +0 -2
- package/build/components/MFWidgetLoader/index.js +0 -1
- package/build/components/Toolbar/Toolbar.d.ts +0 -5
- package/build/components/Toolbar/ToolbarAppIcon.d.ts +0 -7
- package/build/components/Toolbar/index.d.ts +0 -4
- package/build/components/Toolbar/index.js +0 -1
- package/build/components/Toolbar/style.d.ts +0 -34
- package/build/components/Toolbar/type.d.ts +0 -10
- package/build/components/ToolbarIcon/CloseIcon/CloseIcon.d.ts +0 -3
- package/build/components/ToolbarIcon/CloseIcon/index.d.ts +0 -1
- package/build/components/ToolbarIcon/CloseIcon/style.d.ts +0 -4
- package/build/components/ToolbarIcon/ExpandButton/ExpandButton.d.ts +0 -9
- package/build/components/ToolbarIcon/ExpandButton/index.d.ts +0 -1
- package/build/components/ToolbarIcon/ExpandButton/style.d.ts +0 -14
- package/build/components/ToolbarIcon/MaximizeIcon/MaximizeIcon.d.ts +0 -7
- package/build/components/ToolbarIcon/MaximizeIcon/index.d.ts +0 -1
- package/build/components/ToolbarIcon/MaximizeIcon/style.d.ts +0 -4
- package/build/components/ToolbarIcon/MinimizeIcon/MinimizeIcon.d.ts +0 -3
- package/build/components/ToolbarIcon/MinimizeIcon/index.d.ts +0 -1
- package/build/components/ToolbarIcon/MinimizeIcon/style.d.ts +0 -4
- package/build/components/ToolbarIcon/index.d.ts +0 -4
- package/build/components/ToolbarIcon/index.js +0 -1
- package/build/components/ToolbarIcon/style.d.ts +0 -4
- package/build/constants/style.d.ts +0 -4
- package/build/hooks/useCheckUserLoggedIn.d.ts +0 -1
- package/build/hooks/useMouseState.d.ts +0 -8
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/CopiedIndicator/index.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/HighlightText.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/HighlightedParts.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/type.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/util.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchBar/JSONSearchBar.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchBar/index.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/HighlightMatchingKey.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/HighlightMatchingValue.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/index.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/type.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/util.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {n,j,k,l,h,f,b,g,i,m as m$1,c,e,d}from'./chunk-
|
|
1
|
+
import {n,j,k,l,h,f,b,g,i,m as m$1,c,e,d}from'./chunk-52PPSCXG.js';import {X,V,W,Y,k as k$1,a,O,Q,b as b$1,_,P,R,S,T,U,F,m,$,I,G,H,Z,L,M,ba as ba$1,aa,c as c$1,J,K,N}from'./chunk-ZO7IPGTD.js';import {ba}from'./chunk-CAVYK7HF.js';import {Dc,nc,mc}from'./chunk-Z2DUFVI5.js';import {forwardRef,useState,useCallback,useMemo,memo}from'react';import pe from'@mui/material/Box';import At from'@mui/material/InputLabel';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function Nt({endAdornmentProp:h,isLoading:o,showClear:S,showMenuArrow:i,menuOpen:b,ClearIconComponent:c=$,ChevronIconComponent:u=aa,onClear:p,onClearDefault:R}){if(!h&&!S&&!o&&!i)return null;let m=C=>{C.preventDefault(),C.stopPropagation(),p?p():R();};return jsxs(pe,{className:nc("Select-endAdornmentRoot",o&&"Select-endAdornmentRoot--loading"),component:"span",children:[h,o?jsx(pe,{component:"span",className:"Select-menuTriggerIcon Select-menuTriggerIcon--loading","aria-hidden":true,children:jsx(ba$1,{})}):null,!o&&S?jsx(pe,{component:"button",className:"Select-clearIconButton","data-select-clear":"",type:"button",tabIndex:0,"aria-label":"Clear selection",onMouseDown:m,onClick:m,children:jsx(c,{})}):null,!o&&i?jsx(pe,{component:"span",className:`Select-menuTriggerIcon${b?" Select-menuTriggerIcon-open":""}`,"aria-hidden":true,children:jsx(u,{})}):null]})}var Et=forwardRef(function({isMultiple:o=false,options:S,value:i,onChange:b,label:c="",disabled:u,required:p,hasError:R=false,helperText:m,feedback:C,showClearIcon:K=false,ClearIconComponent:me,ChevronIconComponent:q,onClear:Q,isLoading:F,MenuProps:j$1,children:ye,id:z="Select",className:J,open:w,onOpen:X$1,onClose:k$1,name:Y$1,inputProps:P,endAdornment:Z,renderValue:T,valueAlignment:_},g){let[fe,ee]=useState(false),I=w??fe,x=!!(u||F),{isProvided:te,isVisible:D,type:le}=Dc(C),L=`${z}-label`,B=Array.isArray(i)?i:i!=null?[i]:[],V$1=useCallback((t,$)=>{$?X$1?.(t):k$1?.(t),w===void 0&&ee($);},[X$1,k$1,w]),ne=t=>{t.button===0&&(m$1(t)||t.target.closest('.MuiSelect-select[role="combobox"]')||x||(t.preventDefault(),t.stopPropagation(),V$1(t,!I)));},oe=t=>{m$1(t)||t.target.closest('.MuiSelect-select[role="combobox"]')||(t.preventDefault(),t.stopPropagation());},ae=t=>{let ce=t.target.value.map(A=>S.find(W=>j(W)===A||String(W.value)===String(A))).filter(A=>A!=null);b?.(ce);},re=jsx(Nt,{endAdornmentProp:Z,isLoading:!!F,showClear:K&&n(i)&&!x,showMenuArrow:!F,menuOpen:I,ClearIconComponent:me,ChevronIconComponent:q,onClear:Q,onClearDefault:()=>b?.(o?[]:null)}),H=o?B.map(j):j(B[0]??null);return jsxs(X,{$hasFeedback:D,onMouseDown:ne,onClick:oe,children:[jsxs(V,{variant:"filled",required:p,className:J,children:[jsx(At,{id:L,children:c}),jsx(W,{multiple:o,ref:g,value:H,error:R&&!D,feedbackType:le,hasFeedback:D,valueAlignment:_,disableUnderline:true,required:p,hasLabel:!!c.trim(),labelId:L,id:z,name:Y$1,open:I,onOpen:t=>V$1(t,true),onClose:t=>{k(t)||o&&l(t)||V$1(t,false);},onChange:o?ae:void 0,renderValue:T,inputProps:P,disabled:x,IconComponent:()=>null,autoWidth:false,endAdornment:re,MenuProps:j$1,children:ye})]}),te?jsx(ba,{...C}):m!=null&&m!==""?jsx(Y,{children:m}):null]})}),Pe=Et;function Rt({options:h,maxVisibleValues:o,valueAlignment:S=m}){let b$1=typeof o=="number"&&Number.isFinite(o)?Math.max(0,Math.floor(o)):h.length,c=h.slice(0,b$1),u=h.length-c.length,p=c.map(b).join(", ");return jsxs(L,{className:a.values,$valueAlignment:S,children:[jsx(M,{className:a.value,children:p}),u>0?jsxs(N,{className:a.valueOverflow,children:["+",u," more"]}):null]})}var Ct=Rt;var vt=forwardRef(function({options:o,isMultiple:S$1=false,hasCheckbox:i$1,maxVisibleValues:b$2,value:c$2,onChange:u,label:p,placeholder:R$1,disabled:m$1,required:C,error:K$1=false,helperText:me,feedback:q,hasClearIcon:Q$1=false,ClearIconComponent:F$1,ChevronIconComponent:j,SearchIconComponent:ye,onClear:z,isLoading:J$1,isSearchable:w=false,searchPlaceholder:X,hasSelectionSummary:k=false,hasSelectedCheckmark:Y=false,valueAlignment:P$1=m,menuDirection:Z$1=k$1,MenuProps:T$1,children:_$1,id:g$1="Select",className:fe,sx:ee,selectClassNames:I$1,inputRef:x,open:te,onOpen:D,onClose:le,name:L$1,inputProps:B,endAdornment:V,renderValue:ne,renderOption:oe},ae){let[re,H$1]=useState(""),[t,$$1]=useState(Z$1),[ce,A]=useState(void 0),W=p??"",Ae=R$1??"",Ne=me??void 0,Ee=X??b$1,Mt=ye??_,Re=i$1??S$1,y=useMemo(()=>h(o),[o]),ke=nc(a.root,I$1?.root,fe),Te=useMemo(()=>f(T$1,t,ce),[T$1,t,ce]),De=e$1=>{let s=c(e$1);s?.width&&A(s.width),$$1(e({preferred:Z$1,anchorRect:s,menuMaxHeight:d(T$1,w,k),gapPx:c$1})),D?.(e$1);},N=w?re.toLowerCase().trim():"",Le=e=>!N||b(e).toLowerCase().includes(N),Be=e=>oe?jsx(J,{className:a.option,$customLayout:true,children:oe(e)}):jsx(J,{className:a.option,children:jsx(K,{title:b(e),children:b(e)})}),wt=useMemo(()=>N?y.filter(e=>b(e).toLowerCase().includes(N)):y,[y,N]),It=!!N&&wt.length===0,se=()=>{u?.(S$1?[]:null),z?.();},He=w?jsx(O,{className:a.search,disableGutters:true,"data-select-menu-search":"",onMouseDown:g,onClick:g,onKeyDown:g,children:jsx(Q,{placeholder:Ee,value:re,onChange:e=>H$1(e.target.value),onMouseDown:g,onClick:g,onKeyDown:e=>e.stopPropagation(),onKeyUp:e=>e.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":Ee,onMouseDown:g,onClick:g},endAdornment:jsx(Mt,{})})}):null,$e=It?jsx(P,{disableGutters:true,onMouseDown:g,onClick:g,children:"No results found"}):null;if(S$1){let e=Array.isArray(c$2)?c$2:[],s=y.filter(l=>e.some(f=>f===l.value||String(f)===String(l.value))),U$1=s.length,Ft=k&&U$1>0?jsx(R,{className:a.summary,disableGutters:true,disableSticky:true,"data-select-menu-keep-open":"",onMouseDown:g,onClick:g,onKeyDown:g,children:jsxs(S,{children:[jsxs(T,{children:[U$1," selected"]}),jsx(U,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:l=>{l.preventDefault(),l.stopPropagation(),se();},onClick:l=>{l.preventDefault(),l.stopPropagation(),se();},children:"Clear"})]})}):null;return jsx(F,{id:g$1,"data-testid":g$1??"Select",className:ke,sx:mc(ee??{}),children:jsxs(Pe,{ref:x??ae,isMultiple:true,id:g$1,className:nc(a.field,I$1?.field),options:y,value:s,onChange:l=>{u?.(Array.isArray(l)?l.map(f=>f.value):[]);},label:W,disabled:m$1,required:C,hasError:K$1,helperText:Ne,feedback:q,showClearIcon:Q$1,ClearIconComponent:F$1??$,ChevronIconComponent:j,onClear:se,isLoading:J$1,MenuProps:Te,open:te,onOpen:De,onClose:l=>{H$1(""),le?.(l);},name:L$1,inputProps:B,endAdornment:V,valueAlignment:P$1,renderValue:()=>s.length>0?jsx(Ct,{options:s,maxVisibleValues:b$2,valueAlignment:P$1}):Ae,children:[_$1,He,Ft,$e,y.map(l=>{let f=e.some(Ue=>Ue===l.value||String(Ue)===String(l.value)),We=Be(l);return jsx(I,{value:String(l.value),disabled:l.disabled,$selected:f,$hidden:!Le(l),className:a.option,onMouseDown:g,onClick:g,children:Re?jsxs(G,{children:[jsx(H,{checked:f,$mutedRect:f&&l.disabled,tabIndex:-1,disableRipple:true}),We]}):jsxs(Fragment,{children:[We,Y&&f?jsx(Z,{}):null]})},l.id)})]})})}let Ot=Array.isArray(c$2)?c$2[0]??null:c$2??null,O$1=i(y,Ot);return jsx(F,{id:g$1,"data-testid":g$1??"Select",className:ke,sx:mc(ee??{}),children:jsxs(Pe,{ref:x??ae,id:g$1,className:nc(a.field,I$1?.field),options:y,value:O$1,onChange:e=>{u?.(e==null||Array.isArray(e)?null:e.value);},label:W,disabled:m$1,required:C,hasError:K$1,helperText:Ne,feedback:q,showClearIcon:Q$1,ClearIconComponent:F$1??$,ChevronIconComponent:j,onClear:se,isLoading:J$1,MenuProps:Te,open:te,onOpen:De,onClose:e=>{H$1(""),le?.(e);},name:L$1,inputProps:B,endAdornment:V,valueAlignment:P$1,renderValue:()=>{if(!O$1)return Ae;if(ne)return ne(O$1);let e=b(O$1);return jsx(L,{className:a.values,$valueAlignment:P$1,children:jsx(M,{className:a.value,title:e,children:e})})},children:[_$1,He,$e,y.map(e=>{let s=O$1!=null&&(O$1.value===e.value||String(O$1.value)===String(e.value)),U=Be(e);return jsx(I,{value:String(e.value),disabled:e.disabled,$selected:s,$hidden:!Le(e),onClick:()=>u?.(e.value),className:a.option,children:Re?jsxs(G,{children:[jsx(H,{checked:s,tabIndex:-1,disableRipple:true}),U]}):jsxs(Fragment,{children:[U,Y&&s?jsx(Z,{}):null]})},e.id)})]})})});vt.displayName="Select";var Lt=memo(vt);export{Lt as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {nc,Bc,mc,db,ac,Cc,za as za$1}from'./chunk-RUFO5P34.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],u=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...u}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:nc(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:true,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:nc(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Bc(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:nc(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:nc(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:nc(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:nc(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:nc(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:nc(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:nc(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:nc(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:nc(Fe.root,e),sx:mc({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:nc(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:nc(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:nc(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:nc(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:nc(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=u=>{u.stopPropagation(),db(t),d(true),setTimeout(()=>d(false),r),s?.(u);};return jsxs(Xt,{ref:n,className:nc(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:nc(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:nc(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:nc(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},u)=>{let[y,m]=useState(false),f=!!(t&&n),h=r!=null&&!f,g=useCallback(b=>{b.stopPropagation(),n&&(db(n),m(true),setTimeout(()=>m(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=f&&typeof t=="string"?ac(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,f,h,p]),L=useMemo(()=>f?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(mo,{$visible:!y,children:jsx(pr,{})}),jsx(mo,{$visible:y,children:jsx(dr,{})})]}):null,[f,y,g]);return jsxs(mr,{ref:u,"data-testid":"Chip",className:nc($.root,e,`CustomVariant_${a}`),sx:mc(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:f,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:nc(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let u=useCallback((y,m)=>{n(m);},[n]);return jsx(hr,{ref:c,className:nc(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:u,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:u=false,focused:y,type:m,id:f="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=m==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>nc(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,u&&x.disableFocusRing,y&&inputClasses.focused,h),[t,r,a,z,Se,u,y,h]),Xa=useMemo(()=>nc(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||za$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:y||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:f??void 0,required:p,shrink:y||void 0,children:e}),jsx(wr,{id:f??void 0,inputRef:Ka,className:Xa,type:m,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:f?`${f}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:f?`${f}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...u},y)=>{let m=!!e;return jsxs(zr,{className:nc(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:y,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:m,$minRows:s,...u})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:u,...y},m)=>{let f=e!==void 0,[h,g]=useState(o),k=f?e:h,M=(oo,pe)=>{f||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:mc({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:mc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:m,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:nc(P.root,c,v),sx:mc(u??{},N),...I,...y,children:[jsx(Or,{className:nc(P.summary,W),sx:mc({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,u]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:f,className:h,sx:g,...k}=s??{},M=useCallback(b=>{u((b.currentTarget.scrollTop??0)>0),f?.(b);},[f]),L=nc(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:nc(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:m,onScroll:M,className:L,sx:mc(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:nc(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>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"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=nc(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:u,sx:y,...m}=a??{},f=nc(se.root,n,u),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:f,$size:r,sx:mc(p??{},y),...m,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:u,style:y,...m}=o??{},f=Je(e)||!!s||y!=null;return jsx(Ta,{component:"span",...m,className:nc(Xe.root,c??r),sx:u!=null?mc(a??{},u):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:f?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",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:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=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 zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Cc(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:nc(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,u]=useState(false),y=useRef(e),m=useRef(null);y.current=e;let f=useCallback(()=>{o&&!r&&y.current();},[o,r]),h=useCallback(()=>{let g=m.current;g&&Io(g)&&f();},[f]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let k=window.setTimeout(()=>{u(true),Io(g)&&f();},1e3);return ()=>window.clearTimeout(k)},[t,f,c]),jsx(Oa,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:nc(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
|
|
1
|
+
import {nc,Bc,mc,db,ac,Cc,za as za$1}from'./chunk-Z2DUFVI5.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef,useLayoutEffect}from'react';import vo from'@mui/material/Box';import ns,{circularProgressClasses}from'@mui/material/CircularProgress';import os from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ro from'@mui/material/SvgIcon';import fs from'@mui/material/Checkbox';import us from'@mui/material/FormControlLabel';import Cs from'@mui/material/Switch';import ks from'@mui/material/Typography';import Rs from'@mui/material/Radio';import Gs from'@mui/material/Tooltip';import tn from'@mui/material/Skeleton';import pn from'@mui/material/Avatar';import gn from'@mui/material/Divider';import Nn from'@mui/material/Collapse';import {createPortal}from'react-dom';import An from'@mui/material/Backdrop';import li,{SliderThumb}from'@mui/material/Slider';import vi,{inputClasses}from'@mui/material/Input';import bi from'@mui/material/FormControl';import Si from'@mui/material/InputLabel';import Fi from'@mui/material/InputBase';import Ei from'@mui/material/Accordion';import Wi from'@mui/material/AccordionDetails';import Hi from'@mui/material/AccordionSummary';import _i from'@mui/material/Popper';import Qi from'@mui/material/Dialog';import el from'@mui/material/DialogActions';import ol from'@mui/material/DialogContent';import tl from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Al from'@mui/material/Stack';var H="os-shared-Button",T={root:`${H}-root`,content:`${H}-content`,startIcon:`${H}-startIcon`,endIcon:`${H}-endIcon`,icon:`${H}-icon`,loading:`${H}-loading`,loadingSpinner:`${H}-loadingSpinner`},Mo={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Lo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Fo={sm:12,md:12,lg:14};var Ro=styled(os,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=Mo[t],u=Lo[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...o==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...o==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...o==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...o==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...u}}}),de=styled("span")(({theme:e})=>{let o=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:o,height:o}});var Ao=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...u},y)=>{let m=i!=null;return jsxs(Ro,{ref:y,className:nc(T.root,d),$variant:o,$size:t,$fullWidth:n,$isLoading:r,$hasIcon:m||!!a||!!s||r,$isIconOnly:m,disabled:p||r,disableRipple:true,"data-testid":"Button",sx:c,...u,children:[jsx(vo,{component:"span",className:T.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(de,{className:T.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(de,{className:T.startIcon,children:a}),e,s&&jsx(de,{className:T.endIcon,children:s})]})}),r&&jsx(de,{className:T.loading,sx:{position:"absolute"},children:jsx(ns,{className:T.loadingSpinner,size:Fo[t],color:"inherit"})})]})});Ao.displayName="Button";var Eo=memo(Ao);var ls="os-shared-Icon",Ne={root:`${ls}-root`};var Wo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Ho=forwardRef(({className:e,sx:o,...t},r)=>jsx(Wo,{className:nc(Ne.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));Ho.displayName="Icon";var Vo=memo(Ho);var to="os-shared-Checkbox",V={root:`${to}-root`,control:`${to}-control`,label:`${to}-label`};var Oo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Zo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},jo=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12},...o,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Go=styled(fs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ko=styled(us)(({theme:e})=>{let{base:o,grey:t}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:o.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Yo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},i)=>{let n=Bc(useId(),"checkbox"),p=jsx(Go,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(Oo,{disabled:t}),icon:jsx(Zo,{disabled:t}),indeterminateIcon:jsx(jo,{disabled:t}),"data-testid":"Checkbox",className:nc(e?V.control:V.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Ko,{className:nc(V.root,a),sx:r,control:p,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:V.label}}}):p});Yo.displayName="Checkbox";var Xo=memo(Yo);var hs="os-shared-Switch",we={root:`${hs}-root`};var qo=styled(Cs)(({theme:e,disabled:o})=>{let{base:t,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:o?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:t.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:t.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:t.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:t.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:t.white,backgroundColor:t.white,boxShadow:"none",filter:o?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var Jo=forwardRef(({className:e,sx:o,...t},r)=>jsx(qo,{ref:r,className:nc(we.root,e),sx:o,"data-testid":"Switch",disableRipple:true,...t}));Jo.displayName="Switch";var Qo=memo(Jo);var ws="os-shared-Typography",ke={root:`${ws}-root`},Ie="body.default.regular";var Bs=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function Ts(e,o){try{let t=o.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${o}`);return r[a]},e);if(!Bs(t))throw new TypeError(`Invalid typography textVariant: ${o}`);return t}catch(t){return console.warn(t),e.body.default.regular}}function $s(e,o,t){return o===void 0?t:typeof o=="number"?o:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[o]??t}var et=styled(ks,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:o=Ie,$weight:t})=>{let{base:r}=e.v2.palette,a=Ts(e.v2.typography.textVariants,o);return {color:r.black,...a,fontWeight:$s(e.v2.typography,t,a.fontWeight)}});var ot=forwardRef(({textVariant:e=Ie,variant:o="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(et,{ref:i,className:nc(ke.root,r),sx:a,"data-testid":"Typography",...s,variant:o,$textVariant:e,$weight:t}));ot.displayName="Typography";var tt=memo(ot);var Fs="os-shared-RadioButton";var Be={root:`${Fs}-root`};var st=({disabled:e,...o})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=e?"#BDC1CC":r[500];return jsxs(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},nt=({disabled:e,...o})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(ro,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...o,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var it=styled(Rs)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var lt=forwardRef(({disabled:e,sx:o,className:t,...r},a)=>jsx(it,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(st,{disabled:e}),icon:jsx(nt,{disabled:e}),"data-testid":"RadioButton",className:nc(Be.root,t),sx:o,...r}));lt.displayName="RadioButton";var pt=memo(lt);var $e="os-shared-CircularProgress",O={root:`${$e}-root`,progress:`${$e}-progress`,labelOverlay:`${$e}-labelOverlay`,labelText:`${$e}-labelText`};var ct=styled(ns)(({theme:e})=>{let{brand:o}=e.v2.palette;return {color:"#147DC5",background:alpha(o[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),mt=styled(vo)(()=>({position:"relative",display:"inline-flex"})),ft=styled(vo)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ut=styled(ks)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var yt=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&o;return jsxs(mt,{className:nc(O.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(ct,{ref:i,variant:e,value:t,className:O.progress,...s}),n&&jsx(ft,{className:O.labelOverlay,children:jsx(ut,{className:O.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});yt.displayName="CircularProgress";var gt=memo(yt);var Z="os-shared-Tooltip",w={popper:`${Z}-popper`,tooltip:`${Z}-tooltip`,arrow:`${Z}-arrow`,content:`${Z}-content`,title:`${Z}-title`,supportingText:`${Z}-supportingText`,wrapper:`${Z}-wrapper`};var xt=styled(({className:e,...o})=>createElement(Gs,{...o,classes:{popper:nc(w.popper,e),tooltip:w.tooltip,arrow:w.arrow}}))(({theme:e})=>{let{base:o,grey:t}=e.v2.palette,r=o.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${w.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${w.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ht=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),Ct=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:o})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:o?600:400,lineHeight:o?1:1.2,color:o?t[700]:alpha(t[700],.77),width:o?"100%":void 0}}),bt=styled("div")(({theme:e})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:o[500],width:"100%",whiteSpace:"pre-wrap"}});function qs(e){return e!=null&&e!==false&&e!==""}function Js(e){return !!e||e===0}function Qs(e,o){let t=qs(o);if(!Js(e)&&!t)return null;let r=jsx(Ct,{className:w.title,$hasSupportingText:t,children:e});return t?jsxs(ht,{className:w.content,children:[r,jsx(bt,{className:w.supportingText,children:o})]}):r}function St({className:e,title:o,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(xt,{className:e,title:Qs(o,t),placement:r,arrow:true,sx:i,...n,children:jsx(vo,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:nc(w.wrapper,p),...d,children:a})})}St.displayName="Tooltip";var vt=memo(St);var on="os-shared-Skeleton",Fe={root:`${on}-root`};var Nt=styled(tn)(()=>({}));var wt=forwardRef(({className:e,sx:o,variant:t="rounded",...r},a)=>jsx(Nt,{ref:a,className:nc(Fe.root,e),sx:mc({height:16},o),"data-testid":"Skeleton",variant:t,...r}));wt.displayName="Skeleton";var kt=memo(wt);var ln="os-shared-Avatar",ze={root:`${ln}-root`},Re="xs",De="teal",It={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},Bt={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function cn(e){let{from:o,to:t}=It[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${o} 0%, ${t} 100%)`}var Tt=styled(pn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:o=Re,$color:t=De})=>{let{dimension:r,fontSize:a}=Bt[o],{base:s}=e.v2.palette,i=cn(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var $t=forwardRef(({className:e,sx:o,size:t=Re,color:r=De,...a},s)=>jsx(Tt,{ref:s,className:nc(ze.root,e),sx:o,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));$t.displayName="Avatar";var Pt=memo($t);var yn="os-shared-Divider",Ae={root:`${yn}-root`};function hn(e,o){let{grey:t,border:r}=o.v2.palette;return e==="subtle"?r.subtle:t[100]}var Mt=styled(gn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:o="default",orientation:t="horizontal"})=>({borderColor:hn(o,e),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Lt=forwardRef(({className:e,sx:o,orientation:t="horizontal",type:r="default",...a},s)=>jsx(Mt,{ref:s,className:nc(Ae.root,e),sx:o,"data-testid":"Divider",orientation:t,$type:r,...a}));Lt.displayName="Divider";var Ft=memo(Lt);var vn="os-shared-Collapse",Ee={root:`${vn}-root`};var zt=styled(Nn)(()=>({}));var Rt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(zt,{ref:i,className:nc(Ee.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Rt.displayName="Collapse";var Dt=memo(Rt);var Tn="os-shared-Badge",We={root:`${Tn}-root`},He="default",At={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Mn(e,o){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=o.v2.palette;if(e==="highlight")return p.brand;let d=At[e];return d||({inactive:r[100],active:alpha(t.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??t.white)}function Ln(e,o){let{base:t}=o.v2.palette;return e==="inactive"?t.black:(t.white)}var Wt=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o=He,$compact:t,$round:r,$pointer:a})=>{let s=Mn(o,e);return {paddingBlock:e.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:t?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Ln(o,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:t?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Ht=forwardRef(({className:e,sx:o,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??He;return jsx(Wt,{ref:d,className:nc(We.root,e),sx:o,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ht.displayName="Badge";var Vt=memo(Ht);var Dn="os-shared-Backdrop",Ve={root:`${Dn}-root`};var Ot=styled(An,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:o=false,invisible:t=true})=>{let r=o&&!t?e.v2.blur[6]:"none";return {zIndex:t?999:1,backgroundColor:t?"transparent":alpha("#000",.3),backdropFilter:r,WebkitBackdropFilter:r}});var Zt=forwardRef(({className:e,sx:o,open:t=true,invisible:r=true,hasBlur:a=false,onClose:s,onClick:i,...n},p)=>{if(!t)return null;let d=c=>{s?.(),i?.(c);};return createPortal(jsx(Ot,{open:t,invisible:r,$hasBlur:a,ref:p,className:nc(Ve.root,e),sx:o,"data-testid":"Backdrop",onClick:d,...n}),document.body)});Zt.displayName="Backdrop";var jt=memo(Zt);var Oe="os-shared-CopyButton",R={root:`${Oe}-root`,icon:`${Oe}-icon`,copyIcon:`${Oe}-copyIcon`,copiedIcon:`${Oe}-copiedIcon`};var Gt=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},Kt=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),io=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var qt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=2e3,icon:a=jsx(Gt,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=u=>{u.stopPropagation(),db(t),d(true),setTimeout(()=>d(false),r),s?.(u);};return jsxs(Xt,{ref:n,className:nc(R.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(io,{className:nc(R.icon,R.copyIcon),$visible:!p,children:a}),jsx(io,{className:nc(R.icon,R.copiedIcon),$visible:p,children:jsx(Kt,{})})]})});qt.displayName="CopyButton";var Jt=memo(qt);var lo="os-shared-ProgressBar",Q={root:`${lo}-root`,fill:`${lo}-fill`,text:`${lo}-text`};var er=styled(vo,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>{let{base:r}=e.v2.palette;return {width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?e.v2.spacing(2):e.v2.spacing(0),...o===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}}}),or=styled(vo,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(t.black,0)}}}),tr=styled(ks,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>{let{base:t,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:t.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...o===0&&{color:alpha(r[500],.5)}}});var ar=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(er,{ref:r,className:nc(Q.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(or,{className:Q.fill,$value:t,children:jsxs(tr,{className:Q.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});ar.displayName="ProgressBar";var sr=memo(ar);var Ue="os-shared-Chip",$={root:`${Ue}-root`,text:`${Ue}-text`,copyButton:`${Ue}-copyButton`,icon:`${Ue}-icon`},nr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var pr=e=>{let{v2:o}=useTheme(),{base:t}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:t.black,stroke:t.white,strokeWidth:"0.15"})})})},dr=e=>{let{v2:o}=useTheme(),{success:t,base:r}=o.palette;return jsx(ro,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function ei(e,o){let t=nr[e];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:o.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:o.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:o.v2.spacing(t.paddingInline)},borderRadius:o.v2.radius(t.borderRadius)}}var mr=styled(vo,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...ei(o,e),...o==="text"&&t&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${$.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),co=styled(vo)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),fr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),mo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var yr=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},u)=>{let[y,m]=useState(false),f=!!(t&&n),h=r!=null&&!f,g=useCallback(b=>{b.stopPropagation(),n&&(db(n),m(true),setTimeout(()=>m(false),2e3));},[n]),k=useMemo(()=>h?jsx("span",{className:$.icon,children:r}):null,[h,r]),M=useMemo(()=>{if(t){let b=f&&typeof t=="string"?ac(t):void 0;return jsx(co,{className:$.text,"data-is-arabic":b,children:t})}return h?null:jsx(co,{className:$.text,children:p})},[t,f,h,p]),L=useMemo(()=>f?jsxs(fr,{className:$.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(mo,{$visible:!y,children:jsx(pr,{})}),jsx(mo,{$visible:y,children:jsx(dr,{})})]}):null,[f,y,g]);return jsxs(mr,{ref:u,"data-testid":"Chip",className:nc($.root,e,`CustomVariant_${a}`),sx:mc(s?{cursor:"not-allowed",opacity:.5}:{},o),$variant:a,$hasIcon:h,$hasCopy:f,$isSelected:i,$disableAnimation:d,...c,children:[k,M,L]})});yr.displayName="Chip";var gr=memo(yr);var uo="os-shared-Slider",D={root:`${uo}-root`,thumb:`${uo}-thumb`,thumbIcon:`${uo}-thumbIcon`};var xr=e=>{let{v2:o}=useTheme(),{grey:t}=o.palette;return jsx(ro,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:t[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var hr=styled(li)(({theme:e})=>{let{brand:o,base:t}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:o[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:t.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${D.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ui({children:e,className:o,...t}){return jsxs(SliderThumb,{className:nc(D.thumb,o),...t,children:[e,jsx(xr,{className:D.thumbIcon})]})}var Cr=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let u=useCallback((y,m)=>{n(m);},[n]);return jsx(hr,{ref:c,className:nc(D.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:u,...d,slots:{thumb:ui,...p}})});Cr.displayName="Slider";var br=memo(Cr);var B="os-shared-Input",x={root:`${B}-root`,label:`${B}-label`,input:`${B}-input`,loadingIcon:`${B}-loadingIcon`,validatedIcon:`${B}-validatedIcon`,hasLabel:`${B}-hasLabel`,sizeSm:`${B}-sizeSm`,sizeMd:`${B}-sizeMd`,disableFocusRing:`${B}-disableFocusRing`,hideArrows:`${B}-hideArrows`,hasTrailingIcon:`${B}-hasTrailingIcon`},F={sm:28,md:32,labelled:40};var Nr=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})};var wr=styled(vi)(({theme:e,endAdornment:o})=>{let{base:t,grey:r}=e.v2.palette,a=!!o;return {height:F.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:t.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(t.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:t.black,caretColor:t.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${x.hasLabel})`]:{height:F.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${x.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),kr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${o[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),Ir=styled(ns)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Br=styled(vo)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),Ni=`&:focus-within:where(:not(.${x.disableFocusRing})), &:where(.Mui-focused):where(:not(.${x.disableFocusRing}))`,wi="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",ki="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Tr=styled(bi)(({theme:e,disabled:o,fullWidth:t})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:t?"100%":"auto",height:F.md,margin:0,border:`1px solid ${o?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...o&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${x.sizeSm})`]:{height:F.sm},[`&:where(.${x.sizeMd})`]:{height:F.md},[`&:where(.${x.hasLabel})`]:{height:F.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[Ni]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[wi]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[ki]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:o="md",error:t=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:u=false,focused:y,type:m,id:f="Input",className:h,sx:g,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:v,onWheel:N,...I},W)=>{let z=!!e,Ce=m==="number",be=z&&d&&!a,oo=c&&!d&&!a,pe=be||oo,Se=o==="sm"?x.sizeSm:x.sizeMd,Ka=useCallback(C=>{typeof W=="function"?W(C):W&&(W.current=C);},[W]),Ya=useMemo(()=>nc(x.root,t&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",z&&x.hasLabel,Se,u&&x.disableFocusRing,y&&inputClasses.focused,h),[t,r,a,z,Se,u,y,h]),Xa=useMemo(()=>nc(x.input,z&&x.hasLabel,Se,n&&x.hideArrows,pe&&x.hasTrailingIcon),[z,Se,n,pe]),qa=C=>{let Qa=C.metaKey||C.ctrlKey||C.altKey,es=C.key.length===1;(["e","E","+","-"].includes(C.key)||za$1()&&es&&!Qa&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),v?.(C);},Ja=C=>{C.target instanceof HTMLElement&&C.target.blur(),N?.(C);};return jsxs(Tr,{className:Ya,sx:g,error:t,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:y||void 0,children:[z&&jsx(kr,{className:x.label,htmlFor:f??void 0,required:p,shrink:y||void 0,children:e}),jsx(wr,{id:f??void 0,inputRef:Ka,className:Xa,type:m,error:t,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,value:k,defaultValue:M,onChange:L,endAdornment:b,onKeyDown:Ce?qa:v,onWheel:Ce?Ja:N,...I}),be&&jsx(Ir,{className:x.loadingIcon,id:f?`${f}-loading-icon`:void 0,size:14.7,thickness:5}),oo&&jsx(Br,{className:x.validatedIcon,id:f?`${f}-validated-icon`:void 0,children:jsx(Nr,{})})]})});Pr.displayName="Input";var Mr=memo(Pr);var yo="os-shared-Textarea",te={root:`${yo}-root`,label:`${yo}-label`,textarea:`${yo}-textarea`},re=3;var Lr=styled(Fi,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=re})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:o?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...o&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:o?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Fr=styled(Si)(({theme:e})=>{let{grey:o}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${o[500]} !important`}}),zr=styled(bi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=re})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-re)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:o?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Dr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=re,maxRows:i,id:n,className:p,sx:d,required:c,...u},y)=>{let m=!!e;return jsxs(zr,{className:nc(te.root,p),sx:d,error:o,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(Fr,{className:te.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Lr,{id:n,inputRef:y,className:te.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:m,$minRows:s,...u})]})});Dr.displayName="Textarea";var Ar=memo(Dr);var U="os-shared-Accordion",P={root:`${U}-root`,summary:`${U}-summary`,content:`${U}-content`,labelStartAdornment:`${U}-labelStartAdornment`,labelContent:`${U}-labelContent`,labelEndAdornment:`${U}-labelEndAdornment`,expandIcon:`${U}-expandIcon`};var Wr=()=>{let{v2:e}=useTheme(),{base:o}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:o.black,stroke:o.black,strokeWidth:"0.1"})})};var Vr=styled(Ei)(({theme:e,square:o})=>{let{grey:t,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!o&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Or=styled(Hi)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Zr=styled(Wi)(({theme:e})=>{let{grey:o}=e.v2.palette;return {padding:0,borderTop:`1px solid ${o[100]}`}}),jr=styled(vo)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Ur=styled(vo)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Kr=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:u,...y},m)=>{let f=e!==void 0,[h,g]=useState(o),k=f?e:h,M=(oo,pe)=>{f||g(pe),t?.(pe);},{showArrow:L=true,...b}=n.label??{},{className:v,sx:N,...I}=n.root??{},{className:W,sx:z}=n.summary??{},Ce=d??(L?jsx(jr,{component:"span",className:P.expandIcon,children:jsx(Wr,{})}):null),be=jsxs(Fragment,{children:[s!=null&&jsx(vo,{component:"span",className:P.labelStartAdornment,...n.labelStartAdornment,sx:mc({flexShrink:0},n.labelStartAdornment?.sx),children:s},"label-start-adornment"),jsx(Ur,{component:"span",className:P.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r},"label-content"),i!=null&&jsx(vo,{component:"span",className:P.labelEndAdornment,...n.labelEndAdornment,sx:mc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i},"label-end-adornment")]});return jsxs(Vr,{ref:m,"data-testid":"Accordion",disabled:p,expanded:k,onChange:M,className:nc(P.root,c,v),sx:mc(u??{},N),...I,...y,children:[jsx(Or,{className:nc(P.summary,W),sx:mc({},z),expandIcon:Ce,"aria-expanded":k,...b,children:be}),jsx(Zr,{className:P.content,...n.content,children:a})]})});Kr.displayName="Accordion";var Yr=memo(Kr);var Xr="os-shared-Menu",ye={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var Jr=styled(_i)({}),Qr=styled(vo,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>{let{grey:t,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${t[100]}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var oa=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,u]=useState(false),m=useMemo(()=>Children.count(t),[t])>12&&c,{onScroll:f,className:h,sx:g,...k}=s??{},M=useCallback(b=>{u((b.currentTarget.scrollTop??0)>0),f?.(b);},[f]),L=nc(ye.panel,h,"MuiPopper-dropdown");return jsx(Jr,{ref:d,className:nc(ye.popper,i),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...p,children:jsx(Qr,{$showShadow:m,onScroll:M,className:L,sx:mc(n??{},g),...k,children:t})})});oa.displayName="Menu";var ta=memo(oa);var ge="os-shared-Dialog",A={root:`${ge}-root`,title:`${ge}-title`,divider:`${ge}-divider`,content:`${ge}-content`,actions:`${ge}-actions`};var ra=styled(Qi,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:o})=>{let{base:t}=e.v2.palette,r=o?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...o&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),aa=styled(tl)(({theme:e})=>{let{base:o}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:o.black,whiteSpace:"nowrap"}}),sa=styled("hr")(({theme:e})=>{let{grey:o}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${o[100]}`,margin:0,width:"100%",flexShrink:0}}),na=styled(ol,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:o})=>{let{grey:t}=e.v2.palette;return {padding:`${o?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ia=styled(el)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var pa=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ra,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:nc(A.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(aa,{className:A.title,children:e}),jsx(sa,{"aria-hidden":true,className:A.divider})]}):null,t!=null?jsx(na,{className:A.content,$hasHeading:!!e,children:t}):null,o?jsx(ia,{className:A.actions,children:o}):null]}));pa.displayName="Dialog";var da=memo(pa);var xo="os-shared-MenuItem",G={root:`${xo}-root`,indicator:`${xo}-indicator`,disabled:`${xo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ma=()=>{let{v2:e}=useTheme(),{brand:o,base:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:t.white})]})},fa=()=>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"})}),ua=()=>{let{v2:e}=useTheme(),{brand:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:o[500],stroke:o[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var xa=styled(vo,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>{let{base:t}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:t.black}}),ho=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function dl(e,o){return o?K.indeterminate:e?K.checked:K.unchecked}var cl={[K.unchecked]:fa,[K.checked]:ma,[K.indeterminate]:ua};function ml(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(ho,{className:G.indicator,"aria-hidden":true,children:e});let r=dl(o,t),a=cl[r];return jsx(ho,{className:G.indicator,"aria-hidden":true,children:jsx(a,{})})}var ha=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=nc(G.root,"menu-item",o&&G.disabled,i);return jsxs(xa,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:o?void 0:a,$isDisabled:o,...p,children:[ml(r,e,t),s]})});ha.displayName="MenuItem";var Ca=memo(ha);var bo="os-shared-ToggleButtons",se={root:`${bo}-root`,button:`${bo}-button`,overlay:`${bo}-overlay`},So={sm:"sm",md:"md"},ne=So.sm,Ye={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}},ba="left 0.25s ease-in-out, width 0.25s ease-in-out";function ul(e,o){let{palette:t}=e.v2;return {backgroundColor:"transparent",boxShadow:"none",color:o?t.foreground.primary:t.foreground.secondary,opacity:o?1:.5}}var Sa=styled(vo,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o=ne})=>{let t=Ye[o];return {position:"relative",backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(t.containerRadius)}}),va=styled(vo,{shouldForwardProp:e=>e!=="$left"&&e!=="$width"&&e!=="$size"&&e!=="$ready"})(({theme:e,$left:o,$width:t,$size:r=ne,$ready:a})=>{let s=Ye[r];return {position:"absolute",top:e.v2.spacing(2),left:o,width:t,height:s.buttonHeight,borderRadius:e.v2.radius(2),backgroundColor:e.v2.palette.background.primary,boxShadow:e.v2.elevation[100],transition:a?ba:"none",pointerEvents:"none",zIndex:1}}),Na=styled(vo,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:o=false,$size:t=ne})=>{let r=Ye[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",zIndex:2,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"opacity 0.25s ease-in-out, color 0.25s ease-in-out",...ul(e,o),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Ia({options:e,activeKey:o,onChange:t,size:r=ne,containerProps:a,buttonProps:s,id:i,className:n,sx:p,"data-testid":d},c){let{className:u,sx:y,...m}=a??{},f=nc(se.root,n,u),h=useRef([]),[g,k]=useState({left:0,width:0}),[M,L]=useState(false),b=useCallback(()=>{let v=e.findIndex(I=>I.key===o),N=h.current[v];N&&k({left:N.offsetLeft,width:N.offsetWidth});},[o,e]);return useLayoutEffect(()=>{b(),L(true);},[b]),useEffect(()=>{let v=h.current.filter(I=>I!=null);if(v.length===0||typeof ResizeObserver>"u")return;let N=new ResizeObserver(()=>{b();});return v.forEach(I=>N.observe(I)),()=>N.disconnect()},[e,b]),jsxs(Sa,{ref:c,id:i,"data-testid":d??i??"ToggleButtons",className:f,$size:r,sx:mc(p??{},y),...m,children:[g.width>0?jsx(va,{className:se.overlay,$left:g.left,$width:g.width,$size:r,$ready:M,"aria-hidden":true}):null,e.map((v,N)=>jsx(Na,{className:se.button,$isActive:o===v.key,$size:r,onClick:()=>t(v.key),...s,ref:I=>{h.current[N]=I;},children:v.content},v.key))]})}var Sl=forwardRef(Ia);Ia.displayName="ToggleButtons";var Ba=memo(Sl);var Nl="os-shared-LazyImage",Xe={root:`${Nl}-root`},qe={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ta=styled(vo)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Je(e){return e!=null&&e in qe}var Ml=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Je(e));if(useEffect(()=>{if(!Je(e)){d(false);return}d(true),qe[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:u,style:y,...m}=o??{},f=Je(e)||!!s||y!=null;return jsx(Ta,{component:"span",...m,className:nc(Xe.root,c??r),sx:u!=null?mc(a??{},u):a,children:jsx(Ml,{...i,ref:n,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:f?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});Pa.displayName="LazyImage";var Ma=memo(Pa);var wo="os-shared-FieldFeedback",ie={root:`${wo}-root`,icon:`${wo}-icon`,message:`${wo}-message`};var za=({severity:e="error",...o})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(ro,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},Ra=e=>{let{v2:o}=useTheme(),{success:t}=o.palette;return jsx(ro,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:t[700]})})})},Da=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",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:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});function Qe(e,o){let t=o??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(t){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return t}}var Aa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t,textColor:r}=Qe(e,o);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ea=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=Qe(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),Wa=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 zl(e){switch(e){case "success":return jsx(Ra,{});case "info":return jsx(Da,{});case "error":case "warning":return jsx(za,{severity:e})}}var Ha=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Cc(o))return null;let i=e;return jsxs(Aa,{ref:s,"data-testid":"FieldFeedback",className:nc(ie.root,r),sx:a,$feedbackType:i,children:[t??jsx(Wa,{className:ie.icon,children:zl(i)}),jsx(Ea,{className:ie.message,$feedbackType:i,children:o})]})});Ha.displayName="FieldFeedback";var Va=memo(Ha);var Dl="os-shared-ScrollLoader",eo={root:`${Dl}-root`};var Oa=styled(Al)({overflow:"auto",height:"100%",maxHeight:"100%"});function Io(e,o=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var _a=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,u]=useState(false),y=useRef(e),m=useRef(null);y.current=e;let f=useCallback(()=>{o&&!r&&y.current();},[o,r]),h=useCallback(()=>{let g=m.current;g&&Io(g)&&f();},[f]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)},[h]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let k=window.setTimeout(()=>{u(true),Io(g)&&f();},1e3);return ()=>window.clearTimeout(k)},[t,f,c]),jsx(Oa,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:nc(eo.root,s),sx:i,...p,children:a})});_a.displayName="ScrollLoader";var Ga=memo(_a);
|
|
2
2
|
export{ie as $,Ve as A,jt as B,R as C,Jt as D,Q as E,sr as F,$ as G,gr as H,D as I,br as J,x as K,Mr as L,te as M,Ar as N,P as O,Yr as P,ye as Q,ta as R,A as S,da as T,G as U,Ca as V,se as W,So as X,Ba as Y,Xe as Z,Ma as _,T as a,Qe as aa,Eo as b,Va as ba,Ne as c,eo as ca,Vo as d,Ga as da,V as e,Xo as f,we as g,Qo as h,ke as i,tt as j,Be as k,pt as l,O as m,gt as n,w as o,vt as p,Fe as q,kt as r,ze as s,Pt as t,Ae as u,Ft as v,Ee as w,Dt as x,We as y,Vt as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-6TH5OBRZ.js';import {a as a$1}from'./chunk-WNB7CBHZ.js';import {aa,ba}from'./chunk-AXNWVU3K.js';import {Dc,nc}from'./chunk-RUFO5P34.js';import {forwardRef,useState,useMemo,useCallback,memo}from'react';import w from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';import qe from'react-date-object';import _ from'react-date-object/calendars/arabic';import Ke from'react-date-object/calendars/gregorian';import q from'react-date-object/locales/arabic_en';import Xe from'react-date-object/locales/gregorian_en';var r={gregorian:"gregorian",hijri:"hijri"};var s="os-shared-DateInput",a={root:`${s}-root`,card:`${s}-card`,header:`${s}-header`,label:`${s}-label`,parts:`${s}-parts`,day:`${s}-day`,month:`${s}-month`,year:`${s}-year`,switcher:`${s}-switcher`,switcherLabel:`${s}-switcherLabel`,helperText:`${s}-helperText`},Ie=r.gregorian,ge="Day",De="Month",Me="Year",Se="Switch to Hijri Calendar",we="Switch to Gregorian Calendar",Ce=4,$e=8,Pe=.85,A=.55,Ve=4,S={day:52,year:72},Oe={day:44},je={day:1,month:3,year:1},ke=200,J=1900,ve=10,Fe=["January","February","March","April","May","June","July","August","September","October","November","December"],Le=["Muharram","Safar","Rabi' al-Awwal","Rabi' al-Thani","Jumada al-Awwal","Jumada al-Thani","Rajab","Sha'ban","Ramadan","Shawwal","Dhul-Qa'dah","Dhul-Hijjah"],He={day:null,month:null,year:null},vt=256,ye=30,be={height:ye,minHeight:ye,boxSizing:"border-box"},D={MenuListProps:{sx:{gap:0}},PaperProps:{sx:{maxHeight:vt,[`& .${a$1.option}`]:be,"& .MuiMenuItem-root":be}}},Ne={...D,PaperProps:{...D.PaperProps,sx:{...D.PaperProps.sx,minWidth:S.year}}};function We(e){return jsxs("svg",{width:12,height:12,viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,...e,children:[jsx("path",{d:"M7.375 8.625H1.625C0.935 8.625 0.375 8.065 0.375 7.375V1.625C0.375 0.935 0.935 0.375 1.625 0.375H7.375C8.065 0.375 8.625 0.935 8.625 1.625V7.375C8.625 8.065 8.065 8.625 7.375 8.625Z",stroke:"currentColor",strokeWidth:"0.75"}),jsx("path",{d:"M0.375 2.375H8.625",stroke:"currentColor",strokeWidth:"0.75"}),jsx("circle",{cx:"2.375",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"6.625",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"2.375",cy:"6.625",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"6.625",r:"0.625",fill:"currentColor"})]})}var{day:Lt,month:Ht,year:Nt}=je,Re=[`& .${a.day}`,`& .${a.month}`,`& .${a.year}`].join(", "),U={boxSizing:"border-box",maxWidth:"100%",overflow:"hidden",minWidth:0},Te=styled(w)({display:"flex",flexDirection:"column",width:"100%",minWidth:0,containerType:"inline-size"}),Ye=styled(w,{shouldForwardProp:e=>!["$error","$feedbackType","$hasSwitcher","$hasFeedback"].includes(e)})(({theme:e,$error:t,$feedbackType:n,$hasSwitcher:o,$hasFeedback:l})=>{let m=(n?aa(e,n).borderColor:void 0)??(t?e.palette.error.main:e.v2.palette.grey[100]),y=`${Ce}px`,P=l?0:o?`${$e}px`:y;return {display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",boxSizing:"border-box",backgroundColor:e.palette.common.white,border:`1px solid ${m}`,borderBottom:l?"none":`1px solid ${m}`,borderRadius:`${y} ${y} ${P} ${P}`,"& .MuiInputBase-root.Mui-disabled":{opacity:Pe}}}),Ge=styled(w)({display:"flex",flexDirection:"column",gap:8,padding:8,boxSizing:"border-box",width:"100%"}),Be=styled(w)({display:"flex",alignItems:"center",gap:4,minHeight:10}),ze=styled("span")(({theme:e})=>({fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"100%",letterSpacing:0,color:e.palette.grey[700]})),Ee=styled(w)({"--date-input-day-min":`${S.day}px`,"--date-input-year-min":`${S.year}px`,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",gap:Ve,width:"100%",minWidth:0,boxSizing:"border-box",[`& .${a.day}`]:{...U,flex:`${Lt} 0 0`,minWidth:"var(--date-input-day-min)"},[`& .${a.month}`]:{...U,flex:`${Ht} 0 0`},[`& .${a.year}`]:{...U,flex:`${Nt} 0 0`,minWidth:"var(--date-input-year-min)"},[`${Re} .MuiFormControl-root, ${Re} .MuiInputBase-root`]:{width:"100%",maxWidth:"100%",boxSizing:"border-box"},[`& .${a.day} .MuiFormControl-root`]:{minWidth:"var(--date-input-day-min)"},[`& .${a.month} .MuiFormControl-root`]:{minWidth:0},[`& .${a.year} .MuiFormControl-root`]:{minWidth:"var(--date-input-year-min)"},[`& .${a.year} .${a$1.value}`]:{flex:"0 0 auto",minWidth:"4ch",fontVariantNumeric:"tabular-nums",textOverflow:"clip"},[`@container (max-width: ${ke}px)`]:{"--date-input-day-min":`${Oe.day}px`,[`& .${a.day}`]:{flex:"0 0 var(--date-input-day-min)"},[`& .${a.month}`]:{flex:"1 1 0"},[`& .${a.year}`]:{flex:"0 0 var(--date-input-year-min)"}}}),Ae=styled("button")(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",width:"100%",minHeight:32,margin:0,padding:8,boxSizing:"border-box",border:"none",borderRadius:0,backgroundColor:alpha(e.palette.common.black,.05),color:e.palette.text.primary,cursor:"pointer",appearance:"none",fontFamily:"inherit",whiteSpace:"nowrap","&:hover:not(:disabled)":{backgroundColor:alpha(e.palette.common.black,.08)},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"},"&:focus-visible:not(:disabled)":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:-2}})),Je=styled("span")({display:"inline-flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:4,minWidth:0,whiteSpace:"nowrap"}),Ue=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({$disabled:e=false})=>({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",opacity:e?A:1,"& svg":{display:"block",width:12,height:12}})),Qe=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>({display:"block",fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"16px",letterSpacing:0,whiteSpace:"nowrap",color:e.v2.palette.base.black,opacity:t?A:1})),Ze=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.palette.common.black,.6),fontSize:10,lineHeight:"10px",marginTop:4,display:"block"})),F={width:"100%",maxWidth:"100%"},_e={...F,minWidth:0};function i(e){if(e==null||e==="")return null;let t=Number(e);return Number.isFinite(t)?t:null}function et(e){return i(e.day)!=null&&i(e.month)!=null&&i(e.year)!=null}function tt(e){return {day:e.day,month:e.month.number,year:e.year}}function at(e,t){let n=i(e.day),o=i(e.month),l=i(e.year);if(n==null||o==null||l==null)return null;let u=t===r.hijri,m=new qe({year:l,month:o,day:1,calendar:u?_:Ke,locale:u?q:Xe}),y=m.month.length;return m.setDay(Math.min(Math.max(n,1),y)),m}function Z(e){let t=at(e,r.gregorian);return t?(t.convert(_,q),tt(t)):null}function Wt(e){let t=at(e,r.hijri);return t?(t.convert(Ke,Xe),tt(t)):null}function rt(e,t){return t!==r.hijri?e:Z(e)??{day:null,month:null,year:null}}function nt(e,t){return t!==r.hijri?e:Wt(e)}function Rt(e,t){return new Date(e,t,0).getDate()}function K(e,t,n){return t==null||t<1||t>12?30:n===r.hijri?e==null?30:new qe({year:e,month:t,day:1,calendar:_,locale:q}).month.length:Rt(e??2001,t)}function ot(e){let t=Math.max(1,Math.min(31,Math.floor(e)));return Array.from({length:t},(n,o)=>{let l=o+1;return {value:l,label:String(l)}})}function lt(e){return (e===r.hijri?Le:Fe).map((n,o)=>({value:o+1,label:n}))}function it(e,t){let n=Math.floor(Math.min(e,t)),o=Math.floor(Math.max(e,t)),l=[];for(let u=o;u>=n;u-=1)l.push({value:u,label:String(u)});return l}function pt(e,t){let n=Z({day:1,month:1,year:e}),o=Z({day:31,month:12,year:t});return {yearMin:i(n?.year)??e,yearMax:i(o?.year)??t}}function ut(){return new Date().getFullYear()+ve}function dt(e,t){let n=i(e.day);if(n==null)return e;let o=K(i(e.year),i(e.month),t);return n<=o?e:{...e,day:o}}function st(e){return e===r.hijri?r.gregorian:r.hijri}function ct(e){return e==null?null:Array.isArray(e)?e[0]??null:e}var mt=forwardRef(function({label:t,value:n,onChange:o,dayOptions:l,monthOptions:u,yearOptions:m,dayLabel:y=ge,monthLabel:P=De,yearLabel:xt=Me,hasCalendarSwitcher:ae=false,calendarMode:re,onCalendarModeChange:ne,switcherLabel:ft,yearMin:L=J,yearMax:yt,disabled:x=false,error:bt=false,helperText:oe,feedback:H,id:M="DateInput",className:It,sx:gt,dateInputClassNames:f},Dt){let N=n!==void 0,[Mt,St]=useState(He),W=N?n:Mt,R=re!==void 0,[wt,Ct]=useState(Ie),V=R?re:wt,[le,T]=useState(null),$t=!!(l||u||m),b=V===r.hijri&&!$t,{isProvided:ie,isVisible:pe,type:Pt}=Dc(H),ue=!!bt&&!ie,de=t?.trim()??"",se=ft??(V===r.hijri?we:Se),I=useMemo(()=>{if(!b)return W;let d=rt(W,r.hijri);return et(d)?d:le??d},[le,b,W]),Y=yt??ut(),O=useMemo(()=>b?pt(L,Y):{yearMin:L,yearMax:Y},[b,Y,L]),G=b?r.hijri:r.gregorian,ce=K(i(I.year),i(I.month),G),Vt=useMemo(()=>l??ot(ce),[ce,l]),Ot=useMemo(()=>u??lt(G),[G,u]),jt=useMemo(()=>m??it(O.yearMin,O.yearMax),[O.yearMax,O.yearMin,m]),B=useCallback(d=>{let j=l?d:dt(d,r.gregorian);N||St(j),o?.(j);},[l,N,o]),z=useCallback(d=>j=>{let E={...I,[d]:ct(j)};if(!b){B(E);return}let me=nt(E,r.hijri);if(me){T(null),B(me);return}T(E);},[B,I,b]),kt=useCallback(()=>{if(x)return;let d=st(V);T(null),R||Ct(d),ne?.(d);},[V,x,R,ne]);return jsxs(Te,{ref:Dt,id:M,"data-testid":"DateInput",className:nc(a.root,f?.root,It),sx:gt,children:[jsxs(Ye,{className:nc(a.card,f?.card),$error:ue,$feedbackType:pe?Pt:void 0,$hasSwitcher:ae,$hasFeedback:pe,children:[jsxs(Ge,{children:[de?jsx(Be,{className:nc(a.header,f?.header),children:jsx(ze,{className:nc(a.label,f?.label),children:de})}):null,jsxs(Ee,{className:nc(a.parts,f?.parts),children:[jsx(w,{className:a.day,children:jsx(a$2,{id:`${M}-day`,label:y,options:Vt,value:I.day,onChange:z("day"),disabled:x,MenuProps:D,sx:F})}),jsx(w,{className:a.month,children:jsx(a$2,{id:`${M}-month`,label:P,options:Ot,value:I.month,onChange:z("month"),disabled:x,MenuProps:D,sx:_e})}),jsx(w,{className:a.year,children:jsx(a$2,{id:`${M}-year`,label:xt,options:jt,value:I.year,onChange:z("year"),disabled:x,MenuProps:Ne,sx:F})})]})]}),ae?jsx(Ae,{type:"button",id:`${M}-switcher`,className:nc(a.switcher,f?.switcher),onClick:kt,disabled:x,"aria-label":se,children:jsxs(Je,{children:[jsx(Ue,{$disabled:x,children:jsx(We,{"aria-hidden":true})}),jsx(Qe,{className:nc(a.switcherLabel,f?.switcherLabel),$disabled:x,children:se})]})}):null]}),H?jsx(ba,{...H}):null,!ie&&oe?jsx(Ze,{className:nc(a.helperText,f?.helperText),$error:ue,children:oe}):null]})});mt.displayName="DateInput";var ht=memo(mt);
|
|
1
|
+
import {a as a$2}from'./chunk-BXQASOYE.js';import {a as a$1}from'./chunk-ZO7IPGTD.js';import {aa,ba}from'./chunk-CAVYK7HF.js';import {Dc,nc}from'./chunk-Z2DUFVI5.js';import {forwardRef,useState,useMemo,useCallback,memo}from'react';import w from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';import qe from'react-date-object';import _ from'react-date-object/calendars/arabic';import Ke from'react-date-object/calendars/gregorian';import q from'react-date-object/locales/arabic_en';import Xe from'react-date-object/locales/gregorian_en';var r={gregorian:"gregorian",hijri:"hijri"};var s="os-shared-DateInput",a={root:`${s}-root`,card:`${s}-card`,header:`${s}-header`,label:`${s}-label`,parts:`${s}-parts`,day:`${s}-day`,month:`${s}-month`,year:`${s}-year`,switcher:`${s}-switcher`,switcherLabel:`${s}-switcherLabel`,helperText:`${s}-helperText`},Ie=r.gregorian,ge="Day",De="Month",Me="Year",Se="Switch to Hijri Calendar",we="Switch to Gregorian Calendar",Ce=4,$e=8,Pe=.85,A=.55,Ve=4,S={day:52,year:72},Oe={day:44},je={day:1,month:3,year:1},ke=200,J=1900,ve=10,Fe=["January","February","March","April","May","June","July","August","September","October","November","December"],Le=["Muharram","Safar","Rabi' al-Awwal","Rabi' al-Thani","Jumada al-Awwal","Jumada al-Thani","Rajab","Sha'ban","Ramadan","Shawwal","Dhul-Qa'dah","Dhul-Hijjah"],He={day:null,month:null,year:null},vt=256,ye=30,be={height:ye,minHeight:ye,boxSizing:"border-box"},D={MenuListProps:{sx:{gap:0}},PaperProps:{sx:{maxHeight:vt,[`& .${a$1.option}`]:be,"& .MuiMenuItem-root":be}}},Ne={...D,PaperProps:{...D.PaperProps,sx:{...D.PaperProps.sx,minWidth:S.year}}};function We(e){return jsxs("svg",{width:12,height:12,viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,...e,children:[jsx("path",{d:"M7.375 8.625H1.625C0.935 8.625 0.375 8.065 0.375 7.375V1.625C0.375 0.935 0.935 0.375 1.625 0.375H7.375C8.065 0.375 8.625 0.935 8.625 1.625V7.375C8.625 8.065 8.065 8.625 7.375 8.625Z",stroke:"currentColor",strokeWidth:"0.75"}),jsx("path",{d:"M0.375 2.375H8.625",stroke:"currentColor",strokeWidth:"0.75"}),jsx("circle",{cx:"2.375",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"6.625",cy:"4.375",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"2.375",cy:"6.625",r:"0.625",fill:"currentColor"}),jsx("circle",{cx:"4.5",cy:"6.625",r:"0.625",fill:"currentColor"})]})}var{day:Lt,month:Ht,year:Nt}=je,Re=[`& .${a.day}`,`& .${a.month}`,`& .${a.year}`].join(", "),U={boxSizing:"border-box",maxWidth:"100%",overflow:"hidden",minWidth:0},Te=styled(w)({display:"flex",flexDirection:"column",width:"100%",minWidth:0,containerType:"inline-size"}),Ye=styled(w,{shouldForwardProp:e=>!["$error","$feedbackType","$hasSwitcher","$hasFeedback"].includes(e)})(({theme:e,$error:t,$feedbackType:n,$hasSwitcher:o,$hasFeedback:l})=>{let m=(n?aa(e,n).borderColor:void 0)??(t?e.palette.error.main:e.v2.palette.grey[100]),y=`${Ce}px`,P=l?0:o?`${$e}px`:y;return {display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",boxSizing:"border-box",backgroundColor:e.palette.common.white,border:`1px solid ${m}`,borderBottom:l?"none":`1px solid ${m}`,borderRadius:`${y} ${y} ${P} ${P}`,"& .MuiInputBase-root.Mui-disabled":{opacity:Pe}}}),Ge=styled(w)({display:"flex",flexDirection:"column",gap:8,padding:8,boxSizing:"border-box",width:"100%"}),Be=styled(w)({display:"flex",alignItems:"center",gap:4,minHeight:10}),ze=styled("span")(({theme:e})=>({fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"100%",letterSpacing:0,color:e.palette.grey[700]})),Ee=styled(w)({"--date-input-day-min":`${S.day}px`,"--date-input-year-min":`${S.year}px`,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",gap:Ve,width:"100%",minWidth:0,boxSizing:"border-box",[`& .${a.day}`]:{...U,flex:`${Lt} 0 0`,minWidth:"var(--date-input-day-min)"},[`& .${a.month}`]:{...U,flex:`${Ht} 0 0`},[`& .${a.year}`]:{...U,flex:`${Nt} 0 0`,minWidth:"var(--date-input-year-min)"},[`${Re} .MuiFormControl-root, ${Re} .MuiInputBase-root`]:{width:"100%",maxWidth:"100%",boxSizing:"border-box"},[`& .${a.day} .MuiFormControl-root`]:{minWidth:"var(--date-input-day-min)"},[`& .${a.month} .MuiFormControl-root`]:{minWidth:0},[`& .${a.year} .MuiFormControl-root`]:{minWidth:"var(--date-input-year-min)"},[`& .${a.year} .${a$1.value}`]:{flex:"0 0 auto",minWidth:"4ch",fontVariantNumeric:"tabular-nums",textOverflow:"clip"},[`@container (max-width: ${ke}px)`]:{"--date-input-day-min":`${Oe.day}px`,[`& .${a.day}`]:{flex:"0 0 var(--date-input-day-min)"},[`& .${a.month}`]:{flex:"1 1 0"},[`& .${a.year}`]:{flex:"0 0 var(--date-input-year-min)"}}}),Ae=styled("button")(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",width:"100%",minHeight:32,margin:0,padding:8,boxSizing:"border-box",border:"none",borderRadius:0,backgroundColor:alpha(e.palette.common.black,.05),color:e.palette.text.primary,cursor:"pointer",appearance:"none",fontFamily:"inherit",whiteSpace:"nowrap","&:hover:not(:disabled)":{backgroundColor:alpha(e.palette.common.black,.08)},"&:disabled":{cursor:"not-allowed",pointerEvents:"none"},"&:focus-visible:not(:disabled)":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:-2}})),Je=styled("span")({display:"inline-flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:4,minWidth:0,whiteSpace:"nowrap"}),Ue=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({$disabled:e=false})=>({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",opacity:e?A:1,"& svg":{display:"block",width:12,height:12}})),Qe=styled("span",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>({display:"block",fontSize:10,fontWeight:500,fontStyle:"normal",lineHeight:"16px",letterSpacing:0,whiteSpace:"nowrap",color:e.v2.palette.base.black,opacity:t?A:1})),Ze=styled("small",{shouldForwardProp:e=>e!=="$error"})(({theme:e,$error:t})=>({color:t?e.palette.error.main:alpha(e.palette.common.black,.6),fontSize:10,lineHeight:"10px",marginTop:4,display:"block"})),F={width:"100%",maxWidth:"100%"},_e={...F,minWidth:0};function i(e){if(e==null||e==="")return null;let t=Number(e);return Number.isFinite(t)?t:null}function et(e){return i(e.day)!=null&&i(e.month)!=null&&i(e.year)!=null}function tt(e){return {day:e.day,month:e.month.number,year:e.year}}function at(e,t){let n=i(e.day),o=i(e.month),l=i(e.year);if(n==null||o==null||l==null)return null;let u=t===r.hijri,m=new qe({year:l,month:o,day:1,calendar:u?_:Ke,locale:u?q:Xe}),y=m.month.length;return m.setDay(Math.min(Math.max(n,1),y)),m}function Z(e){let t=at(e,r.gregorian);return t?(t.convert(_,q),tt(t)):null}function Wt(e){let t=at(e,r.hijri);return t?(t.convert(Ke,Xe),tt(t)):null}function rt(e,t){return t!==r.hijri?e:Z(e)??{day:null,month:null,year:null}}function nt(e,t){return t!==r.hijri?e:Wt(e)}function Rt(e,t){return new Date(e,t,0).getDate()}function K(e,t,n){return t==null||t<1||t>12?30:n===r.hijri?e==null?30:new qe({year:e,month:t,day:1,calendar:_,locale:q}).month.length:Rt(e??2001,t)}function ot(e){let t=Math.max(1,Math.min(31,Math.floor(e)));return Array.from({length:t},(n,o)=>{let l=o+1;return {value:l,label:String(l)}})}function lt(e){return (e===r.hijri?Le:Fe).map((n,o)=>({value:o+1,label:n}))}function it(e,t){let n=Math.floor(Math.min(e,t)),o=Math.floor(Math.max(e,t)),l=[];for(let u=o;u>=n;u-=1)l.push({value:u,label:String(u)});return l}function pt(e,t){let n=Z({day:1,month:1,year:e}),o=Z({day:31,month:12,year:t});return {yearMin:i(n?.year)??e,yearMax:i(o?.year)??t}}function ut(){return new Date().getFullYear()+ve}function dt(e,t){let n=i(e.day);if(n==null)return e;let o=K(i(e.year),i(e.month),t);return n<=o?e:{...e,day:o}}function st(e){return e===r.hijri?r.gregorian:r.hijri}function ct(e){return e==null?null:Array.isArray(e)?e[0]??null:e}var mt=forwardRef(function({label:t,value:n,onChange:o,dayOptions:l,monthOptions:u,yearOptions:m,dayLabel:y=ge,monthLabel:P=De,yearLabel:xt=Me,hasCalendarSwitcher:ae=false,calendarMode:re,onCalendarModeChange:ne,switcherLabel:ft,yearMin:L=J,yearMax:yt,disabled:x=false,error:bt=false,helperText:oe,feedback:H,id:M="DateInput",className:It,sx:gt,dateInputClassNames:f},Dt){let N=n!==void 0,[Mt,St]=useState(He),W=N?n:Mt,R=re!==void 0,[wt,Ct]=useState(Ie),V=R?re:wt,[le,T]=useState(null),$t=!!(l||u||m),b=V===r.hijri&&!$t,{isProvided:ie,isVisible:pe,type:Pt}=Dc(H),ue=!!bt&&!ie,de=t?.trim()??"",se=ft??(V===r.hijri?we:Se),I=useMemo(()=>{if(!b)return W;let d=rt(W,r.hijri);return et(d)?d:le??d},[le,b,W]),Y=yt??ut(),O=useMemo(()=>b?pt(L,Y):{yearMin:L,yearMax:Y},[b,Y,L]),G=b?r.hijri:r.gregorian,ce=K(i(I.year),i(I.month),G),Vt=useMemo(()=>l??ot(ce),[ce,l]),Ot=useMemo(()=>u??lt(G),[G,u]),jt=useMemo(()=>m??it(O.yearMin,O.yearMax),[O.yearMax,O.yearMin,m]),B=useCallback(d=>{let j=l?d:dt(d,r.gregorian);N||St(j),o?.(j);},[l,N,o]),z=useCallback(d=>j=>{let E={...I,[d]:ct(j)};if(!b){B(E);return}let me=nt(E,r.hijri);if(me){T(null),B(me);return}T(E);},[B,I,b]),kt=useCallback(()=>{if(x)return;let d=st(V);T(null),R||Ct(d),ne?.(d);},[V,x,R,ne]);return jsxs(Te,{ref:Dt,id:M,"data-testid":"DateInput",className:nc(a.root,f?.root,It),sx:gt,children:[jsxs(Ye,{className:nc(a.card,f?.card),$error:ue,$feedbackType:pe?Pt:void 0,$hasSwitcher:ae,$hasFeedback:pe,children:[jsxs(Ge,{children:[de?jsx(Be,{className:nc(a.header,f?.header),children:jsx(ze,{className:nc(a.label,f?.label),children:de})}):null,jsxs(Ee,{className:nc(a.parts,f?.parts),children:[jsx(w,{className:a.day,children:jsx(a$2,{id:`${M}-day`,label:y,options:Vt,value:I.day,onChange:z("day"),disabled:x,MenuProps:D,sx:F})}),jsx(w,{className:a.month,children:jsx(a$2,{id:`${M}-month`,label:P,options:Ot,value:I.month,onChange:z("month"),disabled:x,MenuProps:D,sx:_e})}),jsx(w,{className:a.year,children:jsx(a$2,{id:`${M}-year`,label:xt,options:jt,value:I.year,onChange:z("year"),disabled:x,MenuProps:Ne,sx:F})})]})]}),ae?jsx(Ae,{type:"button",id:`${M}-switcher`,className:nc(a.switcher,f?.switcher),onClick:kt,disabled:x,"aria-label":se,children:jsxs(Je,{children:[jsx(Ue,{$disabled:x,children:jsx(We,{"aria-hidden":true})}),jsx(Qe,{className:nc(a.switcherLabel,f?.switcherLabel),$disabled:x,children:se})]})}):null]}),H?jsx(ba,{...H}):null,!ie&&oe?jsx(Ze,{className:nc(a.helperText,f?.helperText),$error:ue,children:oe}):null]})});mt.displayName="DateInput";var ht=memo(mt);
|
|
2
2
|
export{r as a,a as b,ht as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,r as r$1}from'./chunk-
|
|
1
|
+
import {d,r as r$1}from'./chunk-CAVYK7HF.js';import {mc,nc}from'./chunk-Z2DUFVI5.js';import {Td,Ye}from'./chunk-3M2GZVQW.js';import {forwardRef,useMemo,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var N="os-shared-Logo",r={root:`${N}-root`,skeleton:`${N}-skeleton`},C="logo";var I=styled(d)(({theme:n})=>({borderRadius:"50%",backgroundColor:n.palette.common.white}));var R=forwardRef(({className:n,sx:f,id:s,src:o,width:g=24,height:l=24,isError:e,isLoading:S,fallback:t,alt:P=C},U)=>{let m=useMemo(()=>typeof o!="string"&&!!o?.type?.includes("application/pdf"),[o]),d=useMemo(()=>o?typeof o=="string"?o:(window.URL?URL:webkitURL).createObjectURL(o):"",[o]),w=useMemo(()=>e||!o?typeof t=="string"&&t?t:Td:m?Ye:d,[o,t,e,m,d]);return S?jsx(r$1,{variant:"circular",className:r.skeleton,sx:mc({width:g,height:l,flexShrink:0},f),"data-testid":s??"Logo"}):(e||!o)&&t!==void 0&&typeof t!="string"?jsx(Fragment,{children:t}):jsx(I,{ref:U,id:s,"data-testid":s??"Logo",alt:P,src:w,className:nc(r.root,n),sx:mc({width:g,height:l,objectFit:m&&o&&!e?"none":"contain"},f)})});R.displayName="Logo";var D=memo(R);export{r as a,D as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-CAVYK7HF.js';import {nc}from'./chunk-Z2DUFVI5.js';import {forwardRef,memo}from'react';import C from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var p="os-shared-Card",o={root:`${p}-root`,header:`${p}-header`,title:`${p}-title`},n=233,f=39;var c=styled(C)(({theme:r})=>{let{grey:e}=r.v2.palette;return {display:"flex",flexDirection:"column",height:n,border:`1px solid ${e[100]}`,borderRadius:r.v2.radius(8),backgroundColor:"#FBFBFB",fontSize:r.v2.typography.textVariants.body.small.regular.fontSize,transform:"scale(1)"}}),y=styled(C,{shouldForwardProp:r=>r!=="$hasStartAdornment"})(({theme:r,$hasStartAdornment:e})=>({display:"flex",alignItems:"center",...e&&{gap:r.v2.spacing(8)},height:f,flexShrink:0,overflow:"visible",padding:`${r.v2.spacing(8)} ${r.v2.spacing(12)}`,borderBottom:`1px solid ${r.v2.palette.grey[100]}`})),x=styled(j)(({theme:r})=>({flexGrow:1,minWidth:0,color:r.v2.palette.grey[900],textTransform:"capitalize"}));var H=forwardRef(({id:r,className:e,sx:d,children:s,...a},l)=>jsx(c,{ref:l,component:"article",id:r,"data-testid":r??"Card",...a,className:nc(o.root,e),sx:d,children:s}));H.displayName="Card";var v=memo(H);var g=forwardRef(({id:r,className:e,sx:d,children:s,startAdornment:a,endAdornment:l,...S},N)=>jsxs(y,{ref:N,component:"header",id:r,"data-testid":r??"CardHeader",...S,$hasStartAdornment:a!=null,className:nc(o.header,e),sx:d,children:[a,jsx(x,{component:"div",textVariant:"body.small.semibold",className:o.title,children:s}),l]}));g.displayName="CardHeader";var T=memo(g);export{o as a,v as b,T as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-PCGC6E7J.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:l,buttonSx:S}){let{t:I}=useTranslation(),d=f??false,b$1=useCallback(s=>s===e&&!d?"active":"inActive",[e,d]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:v?.map(({render:s,...a},o)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:o})},`custom-status-slot-${o}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:S});if(!a.status)return null;let n=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&n.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:n.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},n[0]?.value??`status-group-${o}`)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j as j$1,L,R as R$1}from'./chunk-
|
|
1
|
+
import {j as j$1,L,R as R$1}from'./chunk-CAVYK7HF.js';import {Bc,Ma}from'./chunk-Z2DUFVI5.js';import {dl,el}from'./chunk-3M2GZVQW.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:u,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:u.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),x=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),F=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:u,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${u[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),$=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),j=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),I=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ae=r=>r>=12?"PM":"AM",R=()=>new Date().getMinutes(),N=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var G=["AM","PM"],f=12,h=59;function O({onChange:r,defaultTime:o,enableRealTimeChange:i,size:u="large"}){let p=Bc(useId(),"time-picker"),[b,H]=useState(null),[a,U]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,y]=useState(o?.hour??N()),[l,C]=useState(o?.minute??R()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:a});},[c,l,a,i]);let q=e=>{H(e.currentTarget);},J=()=>{H(null),r?.({hour:c,minute:l,period:a});},K=e=>{U(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ma(s(Number(e.target.value)));if(m>12){e.preventDefault();return}y(m);},D=()=>{y(e=>e===12?1:e+1);},E=()=>{y(e=>e===1?12:e-1);},V=e=>{let m=Ma(s(Number(e.target.value)));if(m>59){e.preventDefault();return}C(m);},X=()=>{C(e=>e===59?(D(),0):e+1);},Y=()=>{C(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:u,open:v,onClick:q,children:`${s(c)}:${s(l)}${a.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(j,{children:[jsxs(k,{children:[jsx(x,{onClick:D,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(c),onChange:Q}),jsx(x,{onClick:E,children:jsx("img",{src:el,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(x,{onClick:X,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(l),onChange:V}),jsx(x,{onClick:Y,children:jsx("img",{src:el,alt:"arrow"})})]})]}),jsx($,{children:G.map(e=>jsx(F,{onClick:()=>{K(e);},selected:a===e,children:e},e))})]})})]})})}var ve=O;export{_ as a,ae as b,R as c,N as d,ce as e,G as f,f as g,h,O as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,k,d,l}from'./chunk-
|
|
1
|
+
import {j,k,d,l}from'./chunk-CAVYK7HF.js';import {nc}from'./chunk-Z2DUFVI5.js';import {forwardRef,memo}from'react';import B from'@mui/material/FormControl';import j$1 from'@mui/material/FormControlLabel';import q from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var i="os-shared-RadioGroup",t={root:`${i}-root`,title:`${i}-title`,group:`${i}-group`,item:`${i}-item`,label:`${i}-label`,icon:`${i}-icon`},V=["sm","md","lg"],W=["vertical","horizontal"],u="sm",S="vertical",I=0,A={sm:[7.5,16,7.5,8],md:[9,16,9,10],lg:[11,16,11,12]},T={sm:35,md:40,lg:45},U={sm:o=>({...o.v2.typography.textVariants.body.small.medium}),md:o=>({...o.v2.typography.textVariants.body.medium.medium}),lg:o=>({...o.v2.typography.textVariants.body.large.semibold,fontWeight:o.v2.typography.fontWeightMedium})};function J(o,r){let[e,a,s,d]=A[r];return `${o.v2.spacing(e)} ${o.v2.spacing(a)} ${o.v2.spacing(s)} ${o.v2.spacing(d)}`}var D=styled(B)({display:"flex",flexDirection:"column",width:"100%",minWidth:0}),C=styled(j)(({theme:o})=>({color:o.v2.palette.grey[700],marginBottom:o.v2.spacing(4)})),N=styled(q,{shouldForwardProp:o=>o!=="$layout"&&o!=="$spacing"})(({theme:o,$layout:r,$spacing:e})=>({display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:o.v2.spacing(e),...r==="horizontal"&&{[`& .${t.item}`]:{width:"auto",flexShrink:0}}})),v=styled(j$1,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:r})=>{let{brand:e,grey:a}=o.v2.palette;return {margin:0,width:"100%",cursor:"pointer",padding:J(o,r),maxHeight:o.v2.spacing(T[r]),"& .MuiFormControlLabel-label":{...U[r](o),color:a[900],display:"block",width:"100%",cursor:"pointer"},[`& .${k.root}`]:{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:e[500]}}}}),E=styled("span")(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:o.v2.spacing(8),width:"100%",minWidth:0})),$=styled(d)({flexShrink:0,display:"block",marginLeft:"auto"});var z=forwardRef(({option:o,size:r=u,customLabelRenderer:e,labelPosition:a="end",customRadioProps:s,labelSx:d,className:R,sx:y,...G},f)=>{let m=e?e(o):o.label,{src:l$1,...g}=o.icon??{};return jsx(v,{ref:f,value:o.value,control:jsx(l,{...s,...o.customProps}),label:jsxs(E,{className:t.label,sx:d,children:[m,l$1?jsx($,{...g,src:l$1,className:nc(t.icon,o.icon?.className)}):null]}),disabled:o.disabled,labelPlacement:a,$size:r,className:nc(t.item,R),sx:y,...G})});z.displayName="RadioItem";var F=memo(z);var w=forwardRef(({options:o,onOptionChange:r,size:e=u,customLabelRenderer:a,layout:s=S,spacing:d=I,labelPosition:R="end",customRadioProps:y,labelSx:G,onChange:f,title:m,id:l,className:g,sx:M,"data-testid":k,...H},Z)=>{let Y=(c,b)=>{r?.(b),f?.(c,b);};return jsxs(D,{ref:Z,id:l,"data-testid":k??l??"RadioGroup",className:nc(t.root,g),sx:M,children:[typeof m=="string"?jsx(C,{component:"span",textVariant:"body.small.medium",className:t.title,children:m}):m,jsx(N,{className:t.group,$layout:s,$spacing:d,onChange:Y,...H,children:o.map(c=>jsx(F,{option:c,size:e,customLabelRenderer:a,labelPosition:R,customRadioProps:y,labelSx:G},c.value))})]})});w.displayName="RadioGroup";var to=memo(w);export{t as a,V as b,W as c,u as d,S as e,I as f,to as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {v}from'./chunk-
|
|
1
|
+
import {v}from'./chunk-CAVYK7HF.js';import {Bc,Da,Ea}from'./chunk-Z2DUFVI5.js';import {Gb,Xc}from'./chunk-3M2GZVQW.js';import mo,{useId,useState,useRef,useCallback,useEffect,useMemo}from'react';import B from'@mui/material/Box';import uo from'@mui/material/ClickAwayListener';import ro from'@mui/material/Stack';import Y from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import O from'@mui/material/Button';import lo from'@mui/material/TextField';import po from'@mui/material/MenuList';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {RgbColorPicker,RgbaColorPicker}from'react-colorful';import fo from'@mui/material/Popper';import J from'@mui/material/MenuItem';import j from'@mui/material/InputAdornment';import v$1 from'color';import {Popper}from'@mui/material';var G=styled("button")({background:"transparent",border:"none",padding:0,margin:0,cursor:"pointer",width:10,height:10,display:"flex",justifyContent:"center",alignItems:"center","&:disabled, &.Mui-disabled":{opacity:.5,cursor:"not-allowed"}}),D=styled(B)(({theme:o})=>({boxShadow:"0px 8px 30px rgba(0, 0, 0, 0.16)",width:264,backgroundColor:"#ffffff",padding:"12px",borderRadius:o.spacing(1),"& .react-colorful":{width:"100%","&__saturation":{minHeight:152,borderRadius:"4px",marginBottom:o.spacing(2),border:0,"&-pointer":{width:13,height:13}},"&__hue":{borderRadius:"4px",height:"8px","&-pointer":{width:10,height:10}},"&__alpha":{marginTop:o.spacing(2),marginBottom:0,border:0,borderRadius:"4px",height:"8px","&-pointer":{width:10,height:10}}}})),V=styled(B)(()=>({display:"flex",gap:"8px",justifyContent:"flex-end"})),X=styled(o=>jsx(Y,{...o,component:"button"}))(({theme:o})=>({fontWeight:500,fontSize:"9px",color:o.palette.info.dark,textDecoration:"underline",cursor:"pointer",background:"transparent",border:"none",padding:0,margin:0,"&:disabled, &.Mui-disabled":{color:alpha(o.palette.info.dark,.5),textDecoration:"none"},"&:hover":{textDecoration:"none"}})),$=styled(O)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),U=styled(O)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}})),Z=styled(B,{shouldForwardProp:o=>o!=="active"})(({theme:o,active:s})=>({display:"flex",justifyContent:"space-between",alignItems:"center",color:o.palette.text.primary,border:"1px solid #F2F2F2",fontSize:12,fontWeight:500,backgroundColor:"transparent",padding:"4px 8px",borderRadius:"4px",minWidth:70,cursor:"pointer",...s&&{border:"1px solid #1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"}})),q=styled(po)({backgroundColor:"#ffffff",borderRadius:"4px",boxShadow:"0px 8px 30px 0px #00000029",minWidth:70,"& .MuiMenuItem-root":{fontSize:12,fontWeight:500,padding:"4px 8px"}}),x=styled(lo)(({theme:o})=>({"& .MuiOutlinedInput-root":{fontSize:"12px",fontWeight:500,borderRadius:"4px","& input":{padding:"4px","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.divider,borderWidth:"1px"},"&:hover, &.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.divider,borderWidth:"1px"}}}}));var ho=({scheme:o,setScheme:s})=>{let[n,r]=mo.useState(null),m=!!n,a=useCallback(c=>{r(n?null:c.currentTarget);},[n]),i=useCallback(()=>{r(null);},[]),d=useCallback(c=>{i(),s(c);},[i,s]);return jsxs(Fragment,{children:[jsxs(Z,{component:"button",active:m,onClick:a,children:[o,jsx(B,{component:"img",sx:{transform:m?"rotateZ(180deg)":"rotateZ(0)",transition:"200ms transform ease-out"},src:Xc})]}),jsx(fo,{anchorEl:n,open:!!n,placement:"bottom",disablePortal:true,keepMounted:true,modifiers:[{name:"offset",options:{offset:[0,4]}}],children:jsx(uo,{onClickAway:c=>{n?.contains(c.target)||i();},children:jsxs(q,{children:[jsx(J,{onClick:()=>d("RGB"),children:"RGB"}),jsx(J,{onClick:()=>d("HEX"),children:"HEX"})]})})})]})},K=ho;var Ro=({value:o,onChange:s,disableAlpha:n=false})=>{let[r,m]=useState(o),{r:a,g:i,b:d,a:c}=r;useEffect(()=>{m(o);},[o]);let u=useCallback((l,f)=>(isNaN(l)&&(l=0),l<0&&(l=0),l>f&&(l=f),console.log("num",l),l),[]),t=useCallback((l,f)=>P=>{m({...r,[l]:u(+P.target.value,f)});},[r,u]),e=useCallback((l,f)=>{s({...r,[l]:u(r[l],f)});},[s,r,u]);return jsxs(ro,{direction:"row",spacing:1,...n&&{flex:1},children:[jsx(x,{type:"number",value:a,onBlur:()=>e("r",255),onChange:t("r",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),jsx(x,{type:"number",value:i,onBlur:()=>e("g",255),onChange:t("g",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),jsx(x,{type:"number",value:d,onBlur:()=>e("b",255),onChange:t("b",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),!n&&jsx(x,{type:"number",value:c,onBlur:()=>e("a",100),onChange:t("a",100),inputProps:{min:0,max:100,style:{textAlign:"center"}},variant:"outlined",sx:{"& .MuiOutlinedInput-root":{pr:1}},InputProps:{endAdornment:jsx(j,{position:"end",sx:{m:0},children:jsx(Y,{component:"span",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})},size:"small"})]})},Q=Ro;var vo=({value:o,onChange:s,disableAlpha:n=false})=>{let r=useMemo(()=>v$1.rgb(o.r,o.g,o.b,o.a).hex().replace("#",""),[o]),[m,a]=useState(r),i=Math.round(o.a*100);return useEffect(()=>{let t=v$1.rgb(o.r,o.g,o.b).hex().replace("#","");a(t);},[o.r,o.g,o.b]),jsxs(ro,{direction:"row",spacing:1,alignItems:"flex-start",children:[jsx(x,{value:m,onChange:t=>{let e=t.target.value.replace(/[^0-9a-fA-F]/g,"").toUpperCase();e.length>6&&(e=e.slice(0,6)),a(e);},onBlur:()=>{let t=m;if(t.length===3&&(t=t.split("").map(e=>e+e).join(""),a(t)),t.length===6)try{let e=v$1(`#${t}`).alpha(o.a);s({r:e.red(),g:e.green(),b:e.blue(),a:e.alpha()});}catch{a(r);}else a(r);},placeholder:"FFFFFF",sx:{flex:1.4,"& .MuiOutlinedInput-root":{pl:1}},InputProps:{startAdornment:jsx(j,{position:"start",sx:{m:0},children:jsx(Y,{component:"span",color:t=>alpha(t.palette.text.primary,.5),display:"inline-block",fontSize:12,fontWeight:500,children:"#"})})}}),!n&&jsx(x,{type:"number",value:i,onChange:t=>{let e=parseInt(t.target.value,10);isNaN(e)&&(e=0),e<0&&(e=0),e>100&&(e=100),s({...o,a:e/100});},inputProps:{min:0,max:100},sx:{flex:.8,"& .MuiOutlinedInput-root":{pr:1}},InputProps:{endAdornment:jsx(j,{position:"end",sx:{m:0},children:jsx(Y,{component:"span",color:"text.primary",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})}})]})},oo=vo;var Wo=({initialValue:o="#ffffff",onCancel:s,onConfirm:n,disableAlpha:r=false})=>{let[m,a]=useState("RGB"),[i,d]=useState(()=>{let{alpha:p,...y}=Da(o).value;return {...y,a:p}}),{t:c}=useTranslation(),u=useCallback(()=>{let{alpha:p,...y}=Da(o).value;d({...y,a:p}),s();},[o,s]),t=useCallback(()=>{let{a:p,...y}=i;n(Ea({...y,alpha:r?1:p}));},[i,n,r]),e=useCallback(p=>{d(r?{...p,a:1}:p);},[r]),l=useCallback(p=>{d({...p,a:p.a/100});},[]),f=useCallback(p=>{d({...p,a:p.a});},[]);return jsxs(D,{className:"color-picker__widget",children:[jsx(r?RgbColorPicker:RgbaColorPicker,{color:i,onChange:e}),jsxs(ro,{mt:2,spacing:1,direction:"row",children:[jsx(K,{scheme:m,setScheme:a}),m==="RGB"?jsx(Q,{value:{...i,a:Math.round(i.a*100)},onChange:l,disableAlpha:r}):jsx(oo,{value:{...i,a:i.a},onChange:f,disableAlpha:r})]}),jsx(v,{sx:{my:"12px"}}),jsxs(V,{className:"color-picker__widget-actions",children:[jsx(U,{className:"color-picker__widget-actions__cancel",onClick:u,children:c("cancel")}),jsx($,{className:"color-picker__widget-actions__confirm",onClick:t,children:c("okay")})]})]})},to=Wo;var no={hideReset:false,disableAlpha:false},Vo=({value:o="#ffffff",onChange:s,onReset:n,sx:r,options:m=no,disabled:a=false})=>{let i=Bc(useId(),"color-picker"),[d,c]=useState(null),{disableAlpha:u=false,hideReset:t=false}={...no,...m},e=useRef(null),l=useCallback(()=>{a||c(e.current);},[a]),f=useCallback(()=>{a||c(null);},[a]),P=useCallback(p=>{s(u?p.substring(0,7):p),c(null);},[s,u]);return jsx(uo,{onClickAway:()=>c(null),children:jsxs(ro,{ref:e,id:i,"data-testid":"ColorPicker",bgcolor:"grey.400",borderRadius:"4px",p:"4px",pr:"12px",direction:"row",justifyContent:"space-between",spacing:1,alignItems:"center",className:"color-picker",sx:r,children:[jsxs(ro,{direction:"row",spacing:1,alignItems:"center",className:"color-picker__controls-wrapper",children:[jsx(B,{borderRadius:"5px",width:32,height:32,sx:{backgroundColor:o},className:"color-picker__viewer"}),jsxs(B,{className:"color-picker__actions-wrapper",children:[jsx(Y,{className:"color-picker__label",fontWeight:500,fontSize:9,color:"text.primary",textTransform:"uppercase",children:o}),jsx(X,{className:"color-picker__edit-btn",type:"button",onClick:l,disabled:a,children:"Edit"})]})]}),t?jsx("div",{}):jsx(G,{className:"color-picker__close-btn",type:"button",disabled:a,onClick:n,children:jsx(B,{component:"img",src:Gb,width:10,height:10})}),jsx(Popper,{anchorEl:d,open:!!d,placement:"top",children:jsx(to,{initialValue:o,onCancel:f,onConfirm:P,disableAlpha:u})})]})})},ao=Vo;var ot=ao;export{ot as a};
|