@tap-payments/os-micro-frontend-shared 0.3.191-test.6 → 0.3.192-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-5DYTZMM6.js → chunk-34QPO4BT.js} +1 -1
- package/build/_chunks/{chunk-RXIB3IUK.js → chunk-3YZZCLZM.js} +1 -1
- package/build/_chunks/{chunk-5OT5VPEY.js → chunk-43Y4G733.js} +1 -1
- package/build/_chunks/{chunk-XBSDBN7W.js → chunk-4GZIGNHK.js} +1 -1
- package/build/_chunks/chunk-4KSZBODD.js +1 -0
- package/build/_chunks/{chunk-EIVZELFB.js → chunk-5265LVLZ.js} +1 -1
- package/build/_chunks/{chunk-4GZ7XOYY.js → chunk-65DHLOE2.js} +1 -1
- package/build/_chunks/{chunk-FNUZTVXA.js → chunk-6VYP72SC.js} +1 -1
- package/build/_chunks/{chunk-GI33FFFD.js → chunk-6XXNFAE6.js} +1 -1
- package/build/_chunks/chunk-7G4HONFM.js +15 -0
- package/build/_chunks/{chunk-43AY7J5C.js → chunk-AQSBPX44.js} +1 -1
- package/build/_chunks/chunk-BUZ4SKVB.js +1 -0
- package/build/_chunks/{chunk-XQWLBXKK.js → chunk-CJ5UKWQV.js} +1 -1
- package/build/_chunks/{chunk-4DLBXUMP.js → chunk-FGCM4XG4.js} +1 -1
- package/build/_chunks/{chunk-FQSIXRBP.js → chunk-GPH7KOOS.js} +1 -1
- package/build/_chunks/{chunk-YRXPE2TW.js → chunk-GQ2S6SU6.js} +1 -1
- package/build/_chunks/{chunk-AG3X4PT2.js → chunk-GVI7AAHI.js} +1 -1
- package/build/_chunks/chunk-HDCNWBW5.js +1 -0
- package/build/_chunks/chunk-HL4IRO4S.js +1 -0
- package/build/_chunks/{chunk-FAPDPYQ2.js → chunk-HOCMRLLW.js} +1 -1
- package/build/_chunks/chunk-HWJESKWC.js +1 -0
- package/build/_chunks/{chunk-BA6X4Y2F.js → chunk-I3IYLDI6.js} +1 -1
- package/build/_chunks/{chunk-PX3MXCDO.js → chunk-ITYEJ5K7.js} +1 -1
- package/build/_chunks/{chunk-DKGNG6AD.js → chunk-J55JXVBR.js} +1 -1
- package/build/_chunks/chunk-JHXPO26H.js +1 -0
- package/build/_chunks/{chunk-ERZHGCXS.js → chunk-KL222BUJ.js} +1 -1
- package/build/_chunks/{chunk-A5LEWQVP.js → chunk-KT5OIFAW.js} +1 -1
- package/build/_chunks/chunk-LENRKQGR.js +2 -0
- package/build/_chunks/chunk-LG2NW6MP.js +1 -0
- package/build/_chunks/{chunk-YU6DGIMI.js → chunk-LZS3HN7H.js} +1 -1
- package/build/_chunks/{chunk-QA3I46G4.js → chunk-OYJTFXHJ.js} +1 -1
- package/build/_chunks/{chunk-OQAQIKV6.js → chunk-OZ7BUFKX.js} +1 -1
- package/build/_chunks/{chunk-3RLONVW4.js → chunk-PXTLP2CC.js} +1 -1
- package/build/_chunks/{chunk-65ZPCFIZ.js → chunk-Q75K2RTY.js} +1 -1
- package/build/_chunks/{chunk-6HKQOLC7.js → chunk-Q7DXGK4R.js} +1 -1
- package/build/_chunks/{chunk-NFTEYMEJ.js → chunk-QGOUVN57.js} +1 -1
- package/build/_chunks/chunk-QM55EFW3.js +1 -0
- package/build/_chunks/{chunk-NMXZ5LI3.js → chunk-QVGSIVO2.js} +1 -1
- package/build/_chunks/chunk-QXHIDHUU.js +1 -0
- package/build/_chunks/{chunk-TDFRCU4Z.js → chunk-SHQLGMEI.js} +1 -1
- package/build/_chunks/{chunk-3OGYLOMB.js → chunk-TGXZLTQS.js} +1 -1
- package/build/_chunks/chunk-TLT2S75V.js +1 -0
- package/build/_chunks/{chunk-2Q3PJJYL.js → chunk-TPCLHFIE.js} +1 -1
- package/build/_chunks/{chunk-LKV5X523.js → chunk-U7VUIT37.js} +1 -1
- package/build/_chunks/{chunk-QNXMZVEN.js → chunk-UAGAZN23.js} +1 -1
- package/build/_chunks/{chunk-YEFZIPDH.js → chunk-UCLMQQVB.js} +1 -1
- package/build/_chunks/chunk-UZSTD2CE.js +1 -0
- package/build/_chunks/{chunk-IYIESMUP.js → chunk-VVTHF7YR.js} +1 -1
- package/build/_chunks/chunk-VXBU5TPS.js +1 -0
- package/build/_chunks/chunk-WWHRZD52.js +1 -0
- package/build/_chunks/{chunk-AAYT5TGN.js → chunk-XFMHET4N.js} +1 -1
- package/build/_chunks/{chunk-PDE4TL7U.js → chunk-XK4S7TQN.js} +1 -1
- package/build/_chunks/chunk-YHKF6F6S.js +2 -0
- package/build/_chunks/{chunk-T55OLJGK.js → chunk-YMCYR4NV.js} +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/AmountInput.d.ts +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountInput/style.d.ts +4 -3
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/CustomerForms/style.d.ts +7 -6
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/Input.d.ts +11 -0
- package/build/components/Input/index.d.ts +2 -0
- package/build/components/Input/index.js +1 -0
- package/build/components/Input/style.d.ts +3 -0
- package/build/components/InputBase/AmountInputBase/AmountInputBase.d.ts +19 -0
- package/build/components/InputBase/AmountInputBase/CurrencyList/CurrencyList.d.ts +15 -0
- package/build/components/InputBase/AmountInputBase/CurrencyList/index.d.ts +2 -0
- package/build/components/InputBase/AmountInputBase/CurrencyList/style.d.ts +8 -0
- package/build/components/InputBase/AmountInputBase/InputNumber/InputNumber.d.ts +4 -0
- package/build/components/InputBase/AmountInputBase/InputNumber/index.d.ts +3 -0
- package/build/components/InputBase/AmountInputBase/InputNumber/style.d.ts +8 -0
- package/build/components/InputBase/AmountInputBase/InputNumber/type.d.ts +5 -0
- package/build/components/InputBase/AmountInputBase/index.d.ts +5 -0
- package/build/components/InputBase/AmountInputBase/style.d.ts +14 -0
- package/build/components/InputBase/InputBase/InputBase.d.ts +11 -0
- package/build/components/InputBase/InputBase/index.d.ts +3 -0
- package/build/components/InputBase/InputBase/style.d.ts +15 -0
- package/build/components/{PhoneInput → InputBase/PhoneInputBase}/CountriesList/CountriesList.d.ts +1 -1
- package/build/components/{PhoneInput → InputBase/PhoneInputBase}/CountriesList/style.d.ts +4 -3
- package/build/components/{PhoneInput/PhoneInput.d.ts → InputBase/PhoneInputBase/PhoneInputBase.d.ts} +4 -4
- package/build/components/InputBase/PhoneInputBase/index.d.ts +3 -0
- package/build/components/{PhoneInput → InputBase/PhoneInputBase}/style.d.ts +5 -4
- package/build/components/InputBase/index.d.ts +3 -0
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/InputNumber.d.ts +8 -0
- package/build/components/InputNumber/index.d.ts +2 -0
- package/build/components/InputNumber/index.js +1 -0
- package/build/components/InputNumber/style.d.ts +4 -0
- package/build/components/Inputs/CountriesDropDown/style.d.ts +8 -6
- package/build/components/Inputs/FileInput/FileInput.d.ts +3 -0
- package/build/components/Inputs/FileInput/index.d.ts +2 -0
- package/build/components/Inputs/FileInput/style.d.ts +13 -0
- package/build/components/Inputs/FileInput/type.d.ts +3 -0
- package/build/components/Inputs/Input/Input.d.ts +3 -0
- package/build/components/Inputs/Input/index.d.ts +3 -0
- package/build/components/Inputs/Input/style.d.ts +14 -0
- package/build/components/Inputs/Input/type.d.ts +9 -0
- package/build/components/Inputs/SearchInput/SearchInput.d.ts +7 -0
- package/build/components/Inputs/SearchInput/index.d.ts +2 -0
- package/build/components/Inputs/SearchInput/styles.d.ts +3 -0
- package/build/components/Inputs/index.d.ts +3 -0
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/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/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/BranchMenuItem.d.ts +12 -0
- package/build/components/NestedMultiSelect/FieldSelectedValues.d.ts +8 -0
- package/build/components/NestedMultiSelect/NestedMultiSelect.d.ts +4 -0
- package/build/components/NestedMultiSelect/NodeMenuItem.d.ts +10 -0
- package/build/components/NestedMultiSelect/SelectableOption.d.ts +9 -0
- package/build/components/NestedMultiSelect/constants.d.ts +13 -0
- package/build/components/NestedMultiSelect/index.d.ts +4 -0
- package/build/components/NestedMultiSelect/index.js +1 -0
- package/build/components/NestedMultiSelect/style.d.ts +45 -0
- package/build/components/NestedMultiSelect/type.d.ts +52 -0
- package/build/components/NestedMultiSelect/utils.d.ts +15 -0
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/Inputs/AmountInput/AmountInput.d.ts +7 -0
- package/build/components/RFH/Inputs/AmountInput/index.d.ts +3 -0
- package/build/components/RFH/Inputs/AmountInput/type.d.ts +5 -0
- package/build/components/RFH/Inputs/AmountInput/utils.d.ts +1 -0
- package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +8 -0
- package/build/components/RFH/Inputs/FormInput/index.d.ts +3 -0
- package/build/components/RFH/Inputs/PhoneInput/PhoneInput.d.ts +11 -0
- package/build/components/RFH/Inputs/PhoneInput/index.d.ts +2 -0
- package/build/components/RFH/Inputs/index.d.ts +3 -0
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ReferenceTypeFilter/style.d.ts +3 -3
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SalesChannelFilter/style.d.ts +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/SearchListInput.d.ts +11 -0
- package/build/components/SearchListInput/index.d.ts +2 -0
- package/build/components/SearchListInput/index.js +1 -0
- package/build/components/SearchListInput/style.d.ts +7 -0
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Timepicker/style.d.ts +4 -3
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/style.d.ts +3 -3
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +3 -3
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +4 -10
- package/build/components/index.js +1 -1
- package/build/components/primitives/Input/constants.d.ts +0 -11
- package/build/components/primitives/Input/icons.d.ts +0 -2
- package/build/components/primitives/Input/style.d.ts +12 -14
- package/build/components/primitives/Input/type.d.ts +2 -20
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/account.d.ts +1 -0
- package/build/types/accountWidget.d.ts +10 -1
- package/build/types/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-3STREV2B.js +0 -1
- package/build/_chunks/chunk-4DB4CG7F.js +0 -2
- package/build/_chunks/chunk-4H7CRAGJ.js +0 -1
- package/build/_chunks/chunk-73EJMO2J.js +0 -1
- package/build/_chunks/chunk-AWKFBAKE.js +0 -1
- package/build/_chunks/chunk-B4PQ66NH.js +0 -1
- package/build/_chunks/chunk-D42PSZX5.js +0 -1
- package/build/_chunks/chunk-MIU4TWTI.js +0 -15
- package/build/_chunks/chunk-NVBSCBXM.js +0 -1
- package/build/_chunks/chunk-PQUVJZ7P.js +0 -1
- package/build/_chunks/chunk-PYGHWPNZ.js +0 -2
- package/build/_chunks/chunk-Q2RCK3CY.js +0 -2
- package/build/_chunks/chunk-QV4HZ5LX.js +0 -1
- package/build/_chunks/chunk-S7ASXGQK.js +0 -1
- package/build/_chunks/chunk-SFINGGWJ.js +0 -1
- package/build/_chunks/chunk-UARPH2NF.js +0 -1
- package/build/_chunks/chunk-UTIRQY4E.js +0 -1
- package/build/_chunks/chunk-XEITCT3F.js +0 -1
- package/build/_chunks/chunk-Y5VWDP7M.js +0 -1
- package/build/components/AccountDropdown/Dropdown.d.ts +0 -13
- package/build/components/AccountDropdown/index.d.ts +0 -2
- package/build/components/AccountDropdown/index.js +0 -1
- package/build/components/AccountDropdown/style.d.ts +0 -18
- package/build/components/DropdownButton/ChevronIcon.d.ts +0 -3
- package/build/components/DropdownButton/DropdownButton.d.ts +0 -8
- package/build/components/DropdownButton/constants.d.ts +0 -13
- package/build/components/DropdownButton/index.d.ts +0 -4
- package/build/components/DropdownButton/index.js +0 -1
- package/build/components/DropdownButton/style.d.ts +0 -31
- package/build/components/DropdownButton/type.d.ts +0 -14
- package/build/components/FeedbackInput/FeedbackInput.d.ts +0 -4
- package/build/components/FeedbackInput/constants.d.ts +0 -9
- package/build/components/FeedbackInput/index.d.ts +0 -4
- package/build/components/FeedbackInput/index.js +0 -1
- package/build/components/FeedbackInput/style.d.ts +0 -14
- package/build/components/FeedbackInput/type.d.ts +0 -42
- package/build/components/MultiSelectWithSearch/ChildMenuItem.d.ts +0 -10
- package/build/components/MultiSelectWithSearch/FlatMenuItem.d.ts +0 -9
- package/build/components/MultiSelectWithSearch/MultiSelectWithSearch.d.ts +0 -4
- package/build/components/MultiSelectWithSearch/ParentMenuItem.d.ts +0 -13
- package/build/components/MultiSelectWithSearch/index.d.ts +0 -6
- package/build/components/MultiSelectWithSearch/index.js +0 -1
- package/build/components/MultiSelectWithSearch/style.d.ts +0 -32
- package/build/components/MultiSelectWithSearch/type.d.ts +0 -23
- package/build/components/MultiSelectWithSearch/utils.d.ts +0 -4
- package/build/components/PhoneInput/index.d.ts +0 -3
- package/build/components/PhoneInput/index.js +0 -1
- package/build/components/RHFInput/RHFInput.d.ts +0 -8
- package/build/components/RHFInput/index.d.ts +0 -3
- package/build/components/RHFInput/index.js +0 -1
- package/build/components/RHFPhoneInput/RHFPhoneInput.d.ts +0 -11
- package/build/components/RHFPhoneInput/index.d.ts +0 -3
- package/build/components/RHFPhoneInput/index.js +0 -1
- package/build/components/SelectWithSearch/SearchIcon.d.ts +0 -8
- package/build/components/SelectWithSearch/SelectWithSearch.d.ts +0 -4
- package/build/components/SelectWithSearch/index.d.ts +0 -4
- package/build/components/SelectWithSearch/index.js +0 -1
- package/build/components/SelectWithSearch/style.d.ts +0 -28
- package/build/components/SelectWithSearch/type.d.ts +0 -34
- /package/build/components/{PhoneInput → InputBase/PhoneInputBase}/CountriesList/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {v}from'./chunk-
|
|
1
|
+
import {v}from'./chunk-YHKF6F6S.js';import {yc,Ba,Ca}from'./chunk-PLMJIRXJ.js';import {Eb,Vc}from'./chunk-YKKS24ES.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:Vc})]}),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}=Ba(o).value;return {...y,a:p}}),{t:c}=useTranslation(),u=useCallback(()=>{let{alpha:p,...y}=Ba(o).value;d({...y,a:p}),s();},[o,s]),t=useCallback(()=>{let{a:p,...y}=i;n(Ca({...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=yc(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:Eb,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-4KSZBODD.js';import {aa,ba}from'./chunk-YHKF6F6S.js';import {yc,Ac}from'./chunk-PLMJIRXJ.js';import {Cb,A,Qf}from'./chunk-YKKS24ES.js';import {memo,useId,useState,useEffect,useRef}from'react';import {styled,Box,TextField,Button,Typography,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R from'@mui/material/Box';import Me from'@mui/material/ClickAwayListener';import ve from'@mui/material/Popper';import T from'@mui/material/Skeleton';import {styled as styled$1}from'@mui/material/styles';import {useFormContext,Controller}from'react-hook-form';var _=styled(Box)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",height:40,"& *":{flex:1,margin:"0px !important"}})),I=styled(TextField,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows"].includes(e)})(({theme:e,hasError:n,feedbackType:o,hasFeedback:l,hideArrows:t})=>{let{borderColor:i}=aa(e,o),a=l?"4px 4px 0 0":"4px",s="#F2F2F2";return o&&(s=i),n&&!o&&(s=e.palette.error.main),{"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputBase-root":{maxHeight:"40px !important",alignItems:"flex-end !important"},"& fieldset":{border:"1px solid red"},"&:hover fieldset":{border:"1px solid green"},"&.Mui-focused fieldset":{border:"1px solid blue"},border:`1px solid ${s}`,borderBottom:l?"none":void 0,borderRadius:a,"& .MuiInputBase-input":{margin:"0px !important",padding:"0px !important",color:"#20232B !important",fontSize:"11px !important",fontStyle:"normal !important",fontWeight:"500 !important",lineHeight:"130% !important"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(0, 8px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled, .MuiFormLabel-root.MuiInputLabel-shrink":{transform:"translate(0, -1.5px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),K=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var U=styled("div")(()=>({position:"relative",display:"flex",justifyContent:"flex-end",alignItems:"center"})),O=styled(I)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"5px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.11);",padding:"4px 8px",height:"32px",border:"none",outline:"none",width:"100%","&:focus":{border:"1px solid #1F88D0"}})),G=styled(Button)(({theme:e})=>({display:"flex",height:"24px",padding:"8px",justifyContent:"center",alignItems:"center",gap:"8px",backgroundColor:e.palette.divider,color:e.palette.grey[700],fontSize:"9px",fontWeight:500,textTransform:"none",position:"absolute",right:4,opacity:"1 !important",top:4,borderRadius:"4px"}));function L(e){let n=yc(useId(),"file-input"),o=useRef(null);return jsxs(Fragment,{children:[jsxs(U,{id:n,"data-testid":"InputContainer",children:[jsx(O,{value:o.current?.files?.[0]?.name||"",...e}),jsx(G,{onClick:()=>{o.current?.click();},children:"Browse"})]}),jsx("input",{type:"file",ref:o,style:{display:"none"}})]})}var Fe=L;var Q=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),X=styled$1(R)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Y=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Z=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),j=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),ee=styled$1(R)(()=>({color:"red !important"}));styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var te=styled$1(R)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),oe=styled$1(a,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function Pe({defaultCountry:e,value:n,onChangeCountry:o,required:l,countries:t=[],isLoading:i=false}){let a=yc(useId(),"countries-dropdown"),[s,g]=useState(null),[F,u]=useState([]),[b,h]=useState(),ue=()=>{if(t&&e){let r=t.find(x=>x.iso2===e);r&&o?.(r);}};useEffect(()=>{u(t||[]),ue();},[t]);let A$1=!!s,xe=r=>{r.stopPropagation(),g(r.currentTarget);},N=()=>{g(null),h(void 0);},ce=r=>{o?.(r),N(),u(t);},fe=r=>{let x=Number(r.target.value);if(h(x),!x){u(t);return}u(t.filter(ge=>ge.idd_prefix.toString().startsWith(x.toString())));};return i?jsx(T,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(Me,{onClickAway:N,children:jsxs(R,{id:a,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(Q,{type:"button",onClick:xe,sx:{backgroundColor:"transparent",border:"none",height:34},children:[n?.logo?jsx("img",{src:n.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${n?.idd_prefix}`}),l&&jsx(ee,{component:"span",children:"*"}),jsx(R,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...A$1&&{transform:"rotate(180deg)"}}})]}),jsx(ve,{open:A$1,anchorEl:s,children:jsxs(X,{component:"article","data-testid":"CountriesWrapper",children:[jsx(j,{endAdornment:jsx("img",{src:A,alt:"arrow"}),onChange:fe,value:b,hideArrows:true}),jsx(Y,{children:F.map(r=>jsxs(Z,{onClick:()=>{ce(r);},children:[r.logo?jsx("img",{src:r.logo,alt:"c",className:"logo"}):jsx(T,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${r.idd_prefix}`})]},`country-code-${r.countryId}`))})]})})]})})}var ne=memo(Pe);var Le=ne;function E(e){let n=yc(useId(),"inputs-input"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>{let i=e.feedback,{isProvided:a,isVisible:s,type:g}=Ac(i),F=e.label??e.placeholder,u=e.label&&typeof e.placeholder=="string"?e.placeholder:void 0,b=t?.message??e.helperText,h=!a&&b?jsx(K,{children:b}):null;return jsxs(Box,{sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsx(_,{id:n,"data-testid":"InputWrapper",children:jsx(I,{rows:1,hasError:(!!t?.message||!!e.error)&&!a,hasFeedback:s,feedbackType:g,...l,variant:"standard",label:F,placeholder:u,size:"small",required:e.required,fullWidth:true,InputProps:{disabled:e.disabled,disableUnderline:true,...e.InputProps,sx:{fontSize:"11px",height:"40px",padding:"8px",borderRadius:s?"4px 4px 0 0":"4px",...e.InputProps?.sx},endAdornment:e?.InputProps?.endAdornment},InputLabelProps:{...e.InputLabelProps,sx:{color:"#8D8D94 !important",fontSize:"11px",padding:"8px",...e.InputLabelProps?.sx}},sx:e?.sx,disabled:e?.disabled,focused:e?.focused,type:e?.type,hideArrows:e?.hideArrows,onKeyDown:e?.onKeyDown})}),h,a?jsx(ba,{...i}):null]})}})}var H=E;var pe=styled("img")(()=>({width:"12px",height:"12px",marginRight:"4px"})),le=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",color:`${e.palette.custom[500]}`,fontSize:"10px",padding:"8px 12px",background:"#FF000026",borderRadius:"0 0 4px 4px",borderTop:"none",height:"32px"}));function z({showSearchIcon:e=true,error:n,errorMessage:o,feedback:l,...t}){let i=yc(useId(),"search-input"),a=!!(n&&o&&!l);return jsxs(Box,{id:i,"data-testid":"SearchInput",children:[jsx(H,{InputProps:{endAdornment:!t.disabled&&e&&jsx(Box,{component:"img",maxWidth:"16px",maxHeight:"16px",src:A,alt:"search"}),sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},...t.InputProps},sx:{...a&&{border:"1px solid #FF000026",borderBottom:"none",borderRadius:"4px 4px 0 0"}},feedback:l,error:n,...t}),a&&jsxs(le,{children:[jsx(pe,{src:Qf}),jsx(Typography,{color:"red",fontSize:"10px",children:o})]})]})}var Ae=z;function D(e){let n=yc(useId(),"inputs-select"),{control:o}=useFormContext();return jsx(Controller,{name:e.name,control:o,render:({field:l,fieldState:{error:t}})=>jsxs(Box,{id:n,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...l,value:l.value??"",error:!!t,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...t&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map(i=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},i.value??""))})]}),t?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:t.message})]})})}var Oe=D;export{Fe as a,te as b,oe as c,Le as d,H as e,Ae as f,Oe as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-YHKF6F6S.js';import {styled,Box,Button}from'@mui/material';var d=styled(j)(({theme:o})=>{let{grey:r}=o.v2.palette;return {fontWeight:o.v2.typography.fontWeightMedium,fontSize:"0.6875rem",color:r[500],paddingInlineStart:o.v2.spacing(16),paddingTop:o.v2.spacing(8),paddingBottom:o.v2.spacing(8),paddingInlineEnd:o.v2.spacing(8),borderBottom:`1px solid ${r[100]}`}}),l=styled(Box)(({theme:o})=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center",position:"sticky",bottom:0,backgroundColor:"white",zIndex:99999,borderTop:`1px solid ${o.palette.divider}`})),c=styled(Button)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),s=styled(Button)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}}));export{d as a,l as b,c,s as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {t}from'./chunk-
|
|
1
|
+
import {t}from'./chunk-YHKF6F6S.js';import {yc,dc}from'./chunk-PLMJIRXJ.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import c from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material';import {motion}from'framer-motion';var a=styled(c,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var b=forwardRef(({children:e,...o},r)=>{let s=yc(useId(),"table-cell");return jsx(a,{id:s,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),l=memo(b);var A=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?dc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),F=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),$=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),z=styled$1("img")(()=>({width:"12px",height:"12px"})),G=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),L=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),O=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),V=styled$1(t)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,color:e.palette.background.default,border:`1px solid ${e.palette.divider}`})),d=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),E=styled$1(d)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),H=styled$1(d)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),M=styled$1(l)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),Z=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),q=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),D=styled$1("img")(()=>({width:"36px",height:"24px"})),J=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{l as a,A as b,F as c,$ as d,z as e,G as f,L as g,O as h,V as i,d as j,E as k,H as l,M as m,Z as n,q as o,D as p,J as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {V,R}from'./chunk-
|
|
1
|
+
import {V,R}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {vb}from'./chunk-YKKS24ES.js';import {useId,useState,useRef,useMemo}from'react';import T from'@mui/material/Box';import {ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var h=styled("span")(()=>({fontSize:"11px"})),I=styled(V)(()=>({display:"flex",alignItems:"center",paddingInline:"16px",gap:"4px",borderBlock:"1px solid #F2F2F2",fontSize:"11px","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}})),M=styled(V)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:"#F4F4F4",fontWeight:600,paddingInline:"16px",fontSize:"11px",gap:"4px"})),k=styled(V)(()=>({gap:"2px",paddingInline:"16px",fontSize:"11px","&:hover":{backgroundColor:"#fff",boxShadow:"0px 0px 16px 0px #00000021"}})),A=styled("img")({marginLeft:"auto",width:16,height:12}),b=styled("img")({borderRadius:"2px",width:16,height:12,flexShrink:0}),w={marginTop:"8px",marginBottom:"8px",maxHeight:"190px",overflow:"auto"},P={zIndex:99999};function s({onCountriesChange:e,sx:L,selectedCountries:r,countriesOptions:i}){let B=yc(useId(),"country-filter"),[a,g]=useState(null),f=useRef(null),y=!!a,E=()=>{if(!y){g(f.current);return}d();},d=()=>{g(null);},z=t=>r?.includes(t)??false,u=t=>{e(t);},H=t=>{let o=r?.includes(t)?r?.filter(m=>m!==t):[...r??[],t];u(o),e(o);},x=useMemo(()=>r?.length===i.length,[r,i]);return jsx(ClickAwayListener,{onClickAway:d,children:jsxs(T,{ref:f,sx:L,id:B,"data-testid":"CountryFilter",children:[jsx(T,{children:jsxs(I,{onMouseEnter:t=>{t.stopPropagation(),E();},startAdornment:null,children:[jsx(h,{children:"Country"}),jsx(A,{src:vb,alt:""})]})}),jsxs(R,{open:y,anchorEl:a,sx:w,placement:"right-start",popperSx:P,children:[jsx(M,{onClick:t=>{t.stopPropagation(),x?(u([]),e([])):(u(i.map(({value:o})=>o)),e(i.map(({value:o})=>o)));},isSelected:x,children:x?"Unselect All":"Select All"}),i.map(({value:t,label:o,icon:m})=>jsxs(k,{isSelected:z(t),onClick:()=>H(t),children:[jsx(b,{src:m,alt:""}),o]},t))]})]})})}var tt=s;export{s as a,tt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {R,V}from'./chunk-
|
|
1
|
+
import {R,V}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {useId,useState}from'react';import f from'@mui/material/Box';import y from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:n=>n!=="open"})(({theme:n,open:t})=>({backgroundColor:n.palette.common.white,border:`1px solid ${n.palette.divider}`,fontSize:"11px",color:n.palette.text.primary,padding:"8px",borderRadius:"4px",display:"flex",alignItems:"center",height:32,gap:"4px",cursor:"pointer",...t&&{borderColor:n.palette.info.dark}}));var M=["EN","AR"];function r({defaultLanguage:n="EN",onChange:t}){let x=yc(useId(),"language-dropdown"),[a,w]=useState(n),[p,i]=useState(null),l=!!p,L=o=>{i(o.currentTarget);},d=()=>{i(null);},C=o=>{w(o),t?.(o),d();};return jsx(y,{onClickAway:d,children:jsxs(f,{id:x,"data-testid":"LanguageDropdown",children:[jsx(m,{onClick:L,open:l,children:jsx(f,{component:"span",children:a})}),jsx(R,{open:l,anchorEl:p,sx:{marginTop:"8px",marginBottom:"8px",width:31.8},children:M.map(o=>o!==a&&jsx(V,{onClick:()=>C(o),startAdornment:null,children:o},o))})]})})}var F=r;export{F as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {yc}from'./chunk-PLMJIRXJ.js';import {memo,useId}from'react';import f from'@mui/material/Box';import a from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(a,{shouldForwardProp:o=>o!=="isError"})(({theme:o})=>({padding:"8px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",height:32,color:o.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:o.palette.grey[700],fontWeight:400}}));function i({isError:o,...t}){let l=yc(useId(),"input");return jsx(f,{id:l,"data-testid":"Input",sx:{flexGrow:1},onClick:d=>{d.stopPropagation();},children:jsx(p,{...t,placeholder:t.placeholder,isError:o,disableUnderline:true})})}i.displayName="Input";var n=memo(i);var S=n;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-SHQLGMEI.js';import {s}from'./chunk-G3LCY5M2.js';import {memo,useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import F from'@mui/material/Box';import K from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var Q=styled(F)(({theme:n})=>({background:n.palette.grey[700],width:27,height:14,display:"inline-flex",alignItems:"center",marginInlineStart:"4px",borderRadius:"10px",padding:"2px 6px",img:{cursor:"pointer"}})),E=styled(F)(()=>({padding:"8px 16px",display:"flex",gap:"8px",justifyContent:"center"})),b=styled(K)(({theme:n})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${n.palette.info.dark}`,backgroundColor:n.palette.info.dark,fontWeight:700,fontSize:"11px",color:n.palette.common.white,"&:hover":{backgroundColor:n.palette.info.dark}})),O=styled(K)(({theme:n})=>({textTransform:"capitalize",minWidth:"auto",width:"100%",borderRadius:"4px",border:`1px solid ${n.palette.divider}`,backgroundColor:n.palette.common.white,fontWeight:500,fontSize:"11px",color:n.palette.text.primary,"&:hover":{background:"transparent"}}));var v="188px";function $({onCloseDropdown:n,filter:o,styles:g,header:R,searchable:c$1}){let[T,W]=useState([]),{t:f}=useTranslation(),p=useRef([]),B=o?.options?.map(e=>e.value).join(",")??"";useEffect(()=>{let e=i=>{let r=o?.data?.[o.apiKey]??[];if(Array.isArray(r)&&r.length)return new Set(r).has(i)},s=i=>i.map(({placeholder:r,value:t,isSelected:a,icon:l,options:d})=>{let x;if(c$1){let m=p.current.find(y=>y.apiKey===t);x=m!==void 0?m.isSelected??false:(a||e(t)||d?.every(({value:y})=>e(y)))??false;}else x=(a||e(t)||d?.every(({value:m})=>e(m)))??false;return {...r&&{label:r},name:t,selected:x,...l&&{icon:l},...d?.length&&{menuItems:s(d)}}});o.options&&W(s(o.options));},[o?.data,B,c$1]);let h=()=>{p.current=[];},P=e=>{h(),n(e);},I=()=>{if(c$1){let e=new Set(o?.data?.[o.apiKey]??[]);p.current.forEach(({apiKey:s,options:i,isSelected:r})=>{i?i.forEach(({apiKey:t,isSelected:a})=>{a?e.add(t):e.delete(t);}):r?e.add(s):e.delete(s);}),o?.onConfirm?.({[o.apiKey]:[...e]});}else {let e=p.current.reduce((s,{options:i,apiKey:r,isSelected:t})=>{if(i){let a=i.filter(({isSelected:l})=>l);a.length&&s.push(...a.map(({apiKey:l})=>l));}else t&&s.push(r);return s},[]);p.current.length&&o?.onConfirm?.({[o.apiKey]:[...new Set(e)]});}h();},V=s(I,n),A=e=>{I(),n(e);},N=e=>{let s=r=>r.map(({name:t,selected:a,menuItems:l,label:d})=>({...d&&{placeholder:d},apiKey:t,isSelected:a,...l?.length&&{options:s(l)}})),i=s(e);if(c$1){let r=new Set(i.map(t=>t.apiKey));p.current=[...p.current.filter(t=>!r.has(t.apiKey)),...i];}else p.current=i;},w=g?.maxWidth??v,k={maxWidth:w,width:`min(${w}, max-content)`};return jsx(c,{"data-testid":"ColumnFilter_List",title:f("filterBy")||"Filter by",menuItems:T,style:g,menuSx:k,sx:[e=>({...k,marginTop:"10px",textAlign:"left",boxShadow:e.shadows[3],overflow:"hidden",".nested-menu-item":{height:41,zIndex:9999}}),...(Array.isArray(o.sx)?o.sx:[o.sx]).filter(Boolean)],updatedList:N,header:R,onKeyDown:V,footer:jsxs(E,{sx:{position:"sticky",bottom:0,zIndex:99999},children:[jsx(O,{onClick:P,children:f("cancel")},"nested-dropdown-cancel"),jsx(b,{onClick:A,children:f("okay")},"nested-dropdown-ok")]})})}var M=memo($);var ce=M;export{v as a,Q as b,E as c,b as d,O as e,ce as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-HDCNWBW5.js';import {a}from'./chunk-2DC5PMER.js';import {R as R$1,L,V}from'./chunk-YHKF6F6S.js';import {kc}from'./chunk-PLMJIRXJ.js';import {Eb,A as A$1,Pc,vb}from'./chunk-YKKS24ES.js';import {forwardRef,useState,useMemo,memo,useRef,useLayoutEffect}from'react';import Ue from'@mui/material/ClickAwayListener';import {CircularProgress}from'@mui/material';import M from'@mui/material/Box';import j from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var N="os-shared-NestedMultiSelect",d={root:`${N}-root`,open:`${N}-open`,label:`${N}-label`,placeholder:`${N}-placeholder`,arrow:`${N}-arrow`,menu:`${N}-menu`,search:`${N}-search`,selectedBadge:`${N}-selectedBadge`,fieldRow:`${N}-fieldRow`};var ee=e=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:e,fontSize:"10px",fontWeight:500,cursor:"pointer"}),te=styled(M,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t=false})=>{let{base:l}=e.v2.palette;return {width:"100%",boxSizing:"border-box",minHeight:47,textAlign:"left",flexDirection:"column",border:`1px solid ${t?"#FAFBFB":"transparent"}`,borderRadius:"4px",backgroundColor:t?"#FAFBFB":e.palette.grey[400],minWidth:"89px",position:"relative",cursor:t?"not-allowed":"pointer",...t&&{color:alpha(l.black,.6),[`& .${d.label}`]:{opacity:.7,cursor:"not-allowed"},[`& .${d.placeholder}`]:{color:alpha(l.black,.6)},[`& .${d.arrow}`]:{opacity:.6},[`& .${d.fieldRow}`]:{opacity:.7},[`& .${d.fieldRow} *`]:{cursor:"not-allowed"}},[`&.${d.open} .${d.arrow}`]:{transform:"rotate(180deg)"}}}),le=styled(j)(({theme:e})=>({position:"absolute",top:9,left:8,margin:0,cursor:"pointer",fontSize:"10px",fontWeight:500,lineHeight:"100%",color:e.palette.grey[700],display:"block",pointerEvents:"none"})),oe=styled(j)(()=>({margin:0,fontWeight:500,fontSize:"11px",lineHeight:"18px",padding:"22px 24px 8px 8px"})),ne=styled(M)(({theme:e})=>({position:"absolute",top:15,right:4,width:16,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"inherit",lineHeight:0,transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})})),ie=styled(M)(()=>({display:"flex",flexDirection:"column",padding:"8px"})),re=styled(M)(()=>({display:"flex",columnGap:"8px",rowGap:"8px",flexWrap:"wrap",paddingInlineEnd:"20px"})),se=styled(M)(({theme:e})=>({...ee(`${e.palette.info.dark}1a`),maxWidth:"150px"})),ae=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),de=styled(M)(()=>({position:"relative",width:"100%",minWidth:0})),ce=styled(M)(()=>({display:"flex",flexWrap:"nowrap",alignItems:"center",gap:"4px",width:"100%",minWidth:0,overflow:"hidden",padding:"22px 24px 8px 8px"})),k=styled(M,{shouldForwardProp:e=>e!=="$truncate"})(({theme:e,$truncate:t})=>({...ee(`${e.palette.info.dark}1a`),overflow:"hidden",cursor:"inherit",flex:t?"1 1 auto":"0 0 auto",width:"max-content",maxWidth:t?"100%":"none",minWidth:t?0:"auto"})),ue=styled("span")(()=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0})),pe=styled("span")(()=>({position:"fixed",left:0,top:0,visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",width:"max-content",display:"inline-flex",padding:"4px 8px 4px 6px",fontSize:"10px",fontWeight:500})),Se=styled(M)(()=>({flex:1,maxWidth:"220px",minWidth:"89px"})),me=styled(M,{shouldForwardProp:e=>e!=="$maxWidth"})(({$maxWidth:e})=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:e,minWidth:"89px"}));var v=4,ke=48;function $e(e,t,l){let i=v*Math.max(e.length-1,0);if(e.reduce((s,a)=>s+a,0)+i<=t)return {count:e.length,truncateLast:false};let r=0,n=0;for(let s=0;s<e.length;s+=1){let a=n>0?v:0,c=s===e.length-1?0:v+l;if(r+a+e[s]+c<=t){r+=a+e[s],n+=1;continue}let x=t-r-a-c;if(n===0||x>=ke)return {count:n+1,truncateLast:true};break}return {count:Math.max(n,1),truncateLast:false}}function Ae(e,t,l,i){let o=e.length;if(o===0)return {count:0,truncateLast:false};let r=v*Math.max(o-1,0),s=e.reduce((a,h)=>a+h,0)+r+(i?v+l:0);return {count:o,truncateLast:s>t}}function He({options:e,maxVisibleSelected:t}){let l=useRef(null),i=useRef(null),o=typeof t=="number"&&Number.isFinite(t),r=o?Math.max(0,Math.floor(t)):e.length,[n,s]=useState({count:Math.min(r,e.length),truncateLast:false});useLayoutEffect(()=>{let c=l.current,f=i.current;if(!c||!f)return;let x=()=>{let y=e.slice(0,r).map(g=>(f.textContent=g.label,f.offsetWidth));f.textContent=`+${e.length}`;let C=f.offsetWidth,L=getComputedStyle(c),b=c.clientWidth-parseFloat(L.paddingLeft)-parseFloat(L.paddingRight),m=o?Ae(y,b,C,e.length>y.length):$e(y,b,C);s(g=>g.count===m.count&&g.truncateLast===m.truncateLast?g:m);};x();let w=new ResizeObserver(x);return w.observe(c),()=>w.disconnect()},[r,o,e]);let a=e.slice(0,n.count),h=e.length-n.count;return jsxs(de,{children:[jsx(pe,{ref:i,"aria-hidden":true}),jsxs(ce,{ref:l,className:d.fieldRow,children:[a.map((c,f)=>{let x=n.truncateLast&&f===a.length-1;return jsx(k,{$truncate:x,children:jsx(ue,{children:c.label})},c.value)}),h>0?jsx(k,{children:jsxs("span",{children:["+",h]})}):null]})]})}var Me=He;function xe({label:e,maxWidth:t,itemCount:l,isSelected:i,isIndeterminate:o,onToggle:r,children:n}){let[s,a]=useState(null);return jsxs(V,{isSelected:i,isIndeterminate:o,onClick:c=>{c.stopPropagation(),c.preventDefault(),r();},onMouseEnter:c=>{l>0&&a(c.currentTarget);},onMouseLeave:()=>{s&&a(null);},children:[jsxs(me,{$maxWidth:t,children:[e,jsx("img",{src:vb,className:"arrow-icon",alt:"arrow"})]}),jsx(R$1,{sx:{maxHeight:"450px",overflow:"auto"},open:!!s,anchorEl:s,placement:"right-start",children:n})]})}var I=e=>!e.options,E=e=>e.value??e.label,R=(e,t)=>t?.some(l=>l.value===e.value)??false,ge=(e,t,l)=>{if(R(e,t)){l(t?.filter(i=>i.value!==e.value)||[]);return}l([...t||[],e]);},A=e=>I(e)?e.value?[e]:[]:(e.options??[]).flatMap(A),H=(e,t)=>{let l=e.filter(i=>R(i,t)).length;return {allSelected:e.length>0&&l===e.length,someSelected:l>0&&l<e.length}},ye=(e,t,l)=>{let i=new Set(e.map(n=>n.value));if(H(e,t).allSelected){l((t??[]).filter(n=>!i.has(n.value)));return}let o=new Set((t??[]).map(n=>n.value)),r=e.filter(n=>!o.has(n.value));l([...t??[],...r]);},Ve=(e,t)=>{let l=e[t];return typeof l=="string"?l:""},_e=(e,t,l)=>l.some(i=>Ve(e,i).toLowerCase().includes(t)),D=(e,t,l)=>{if(!t)return e;let i=t.toLowerCase();return e.reduce((o,r)=>{if(I(r))return _e(r,i,l)&&o.push(r),o;let n=D(r.options??[],t,l);return n.length>0&&o.push({...r,options:n}),o},[])};function we({option:e,value:t,onChange:l}){let i=o=>{o.stopPropagation(),o.preventDefault(),ge(e,t,l);};return jsx(V,{isSelected:R(e,t),onClick:i,children:jsx(Se,{children:e.label})})}var ze=340,Ge=220;function _({node:e,depth:t,value:l,onChange:i}){if(I(e))return jsx(we,{option:e,value:l,onChange:i});let o=e.options??[],r=A(e),{allSelected:n,someSelected:s}=H(r,l);return jsx(xe,{label:e.label,maxWidth:t===0?ze:Ge,itemCount:o.length,isSelected:n,isIndeterminate:s,onToggle:()=>ye(r,l,i),children:o.map(a=>jsx(_,{node:a,depth:t+1,value:l,onChange:i},E(a)))})}var ve=forwardRef(({options:e,onChange:t,value:l,maxVisibleSelected:i,placeholder:o,label:r,isLoading:n,searchBy:s=["label"],disabled:a$2,className:h,sx:c,searchable:f=true,searchPlaceholder:x,onOpen:w,onClose:y},C)=>{let[L$1,b]=useState(null),[m,g]=useState(""),P=!!L$1,Ce=r??o,Pe=r?o??"Please Select":"Please Select",Oe=u=>{if(P){b(null),y?.();return}b(u.currentTarget),w?.();},We=()=>{b(null),y?.();},Be=()=>{m&&g("");},Fe=useMemo(()=>D(e,m,s),[e,m,s]),G=l?.length??0,Ie=n?jsx(CircularProgress,{size:16}):jsx(a,{src:m?Eb:A$1,alt:m?"close":"search",onClick:Be,sx:{width:12,height:12,cursor:m?"pointer":"default"}});return jsx(Ue,{onClickAway:()=>{P&&We();},children:jsxs(te,{ref:C,id:"FieldWrapper","data-testid":"NestedMultiSelect",$disabled:a$2,"aria-disabled":a$2||void 0,className:kc(d.root,P&&d.open,h),sx:c,onClick:u=>!a$2&&Oe(u),children:[jsx(le,{className:d.label,component:"label",children:Ce}),G===0&&jsx(oe,{className:d.placeholder,component:"p",children:Pe}),jsx(ne,{className:d.arrow,"aria-hidden":true,children:jsx(a$1,{})}),G>0&&l?jsx(Me,{options:l,maxVisibleSelected:i}):null,jsx(R$1,{open:P,anchorEl:L$1,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},panelProps:{className:d.menu},children:jsxs(ie,{children:[f?jsx(L,{className:d.search,fullWidth:true,size:"md",placeholder:x??o??"Select",endAdornment:Ie,value:m,onClick:u=>{u.stopPropagation();},onMouseDown:u=>{u.stopPropagation();},onChange:u=>{g(u.target.value);},sx:{mb:"4px"}}):null,jsx(re,{children:l?.map(u=>jsxs(se,{className:d.selectedBadge,onClick:K=>{K.stopPropagation(),K.preventDefault(),t(l?.filter(Ee=>Ee.value!==u.value)||[]);},children:[jsx(a,{src:Pc,alt:"blue-check",sx:{width:10,height:7.5}}),jsx(ae,{children:u.label}),jsx(a,{src:Eb,alt:"close",sx:{width:9,height:9}})]},u.value))}),Fe.map(u=>jsx(_,{node:u,depth:0,value:l,onChange:t},E(u)))]})})]})})});ve.displayName="NestedMultiSelect";var Qe=memo(ve);export{d as a,Qe as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {V}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Eb,A as A$1}from'./chunk-YKKS24ES.js';import {useId,useMemo,useState}from'react';import h from'@mui/material/Box';import R from'@mui/material/Input';import D from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var F=styled(h)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),b=styled(h)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),k=styled(h,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),v=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(R,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({theme:e,$hasSearchValue:s})=>({width:"100%",height:32,padding:"11px 12px",borderRadius:"5px",cursor:s?"pointer":"default",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-focused":{borderColor:e.palette.info.dark},"&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(V)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),y=styled(V)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),A=styled(D)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:s,filteredOptions:a,isLoading:$,initialSalesChannels:u,initialSalesChannelsSearch:P}){let V=yc(useId(),"sales-channel-filter"),o=useMemo(()=>u||[],[u]),[l,m]=useState(P||""),S=t=>o.some(i=>i.id===t),p=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(b,{id:V,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(k,{$active:!!l,children:jsx(v,{src:l?Eb:A$1,alt:"search",$isClear:!!l,onClick:()=>{m(""),s("");}})}),disabled:x,onChange:t=>{m(t.target.value),s(t.target.value);},value:l,disableUnderline:true}),jsx(F,{children:$?Array.from({length:9}).map((t,i)=>jsx(A,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:p,isIndeterminate:!p&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(p?[]:a);},children:p?"Deselect All":"Select All"}),a.map(t=>jsx(y,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let B=S(t.id)?o?.filter(O=>O.id!==t.id):[...o??[],t];e(B);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-4QONVXGE.js';import {R,V}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-4QONVXGE.js';import {R,V}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {Cb}from'./chunk-YKKS24ES.js';import {Box}from'@mui/material';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useId,useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var h=styled(r,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),w=styled(r)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(r)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),v=styled(r)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$1,onChange:D,options:i}){let M=yc(useId(),"dropdown2"),[d,s]=useState(null),[y,E]=useState(o),t=!!d,W=e=>{t||s(e.currentTarget);},m=()=>{t&&s(null);},k=e=>{E(e),D?.(e),m();};return jsxs(h,{onClick:W,open:t,id:M,"data-testid":"Dropdown2",children:[jsxs(w,{children:[jsx(b,{children:a$1}),jsx(v,{children:y})]}),jsx(Box,{component:"img",src:Cb,alt:"down arrow",sx:{width:15,...t&&{transform:"rotate(180deg)"}}}),jsx(R,{open:t,anchorEl:d,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,B)=>jsx(V,{onClick:()=>{k(e.value);},sx:T=>({...B!==i.length-1&&{borderBottom:`1px solid ${T.palette.divider}`}}),children:e.label},e.value))}),t&&jsx(a,{onClick:m})]})}var N=l;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1,g,a as a$1}from'./chunk-DGAX7HUY.js';import {a}from'./chunk-2DC5PMER.js';import {j as j$1,p}from'./chunk-
|
|
1
|
+
import {b as b$1,g,a as a$1}from'./chunk-DGAX7HUY.js';import {a}from'./chunk-2DC5PMER.js';import {j as j$1,p}from'./chunk-YHKF6F6S.js';import {yc}from'./chunk-PLMJIRXJ.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(j$1)(({theme:t})=>({color:t.v2.palette.base.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let g$1=yc(useId(),"status-label"),p$1=b$1[o]??g[o]??null;return jsx(p,{title:t,children:jsxs(f,{id:g$1,"data-testid":"StatusLabel",sx:{backgroundColor:p$1?.background||"transparent"},children:[jsx(a,{src:a$1[o]}),jsx(c,{sx:S=>({backgroundColor:p$1?.color||S.palette.info.dark}),children:x})]})})}var j=r;export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {kc,yc,ab,Zb,jc,zc,xa}from'./chunk-PLMJIRXJ.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import rt from'@mui/material/Box';import Ua,{circularProgressClasses}from'@mui/material/CircularProgress';import Va from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import _o from'@mui/material/SvgIcon';import Qa from'@mui/material/Checkbox';import os from'@mui/material/FormControlLabel';import ss from'@mui/material/Switch';import cs from'@mui/material/Typography';import Ss from'@mui/material/Radio';import Fs from'@mui/material/Tooltip';import Os from'@mui/material/Skeleton';import Gs from'@mui/material/Avatar';import en from'@mui/material/Divider';import pn from'@mui/material/Collapse';import {createPortal}from'react-dom';import Nn from'@mui/material/Backdrop';import Gn,{SliderThumb}from'@mui/material/Slider';import ni from'@mui/material/FormControl';import ii from'@mui/material/InputLabel';import li from'@mui/material/Input';import ui from'@mui/material/InputBase';import hi from'@mui/material/Accordion';import bi from'@mui/material/AccordionDetails';import Si from'@mui/material/AccordionSummary';import Bi from'@mui/material/Popper';import zi from'@mui/material/Dialog';import Di from'@mui/material/DialogActions';import Ri from'@mui/material/DialogContent';import Ai from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import fl from'@mui/material/Stack';var F="os-shared-Button",k={root:`${F}-root`,content:`${F}-content`,startIcon:`${F}-startIcon`,endIcon:`${F}-endIcon`,icon:`${F}-icon`,loading:`${F}-loading`,loadingSpinner:`${F}-loadingSpinner`},ke={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"}},we={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}},Ie={sm:12,md:12,lg:14};var Te=styled(Va,{shouldForwardProp:o=>o!=="$variant"&&o!=="$size"&&o!=="$fullWidth"&&o!=="$isLoading"&&o!=="$hasIcon"&&o!=="$isIconOnly"})(({theme:o,$variant:e="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=o.v2.palette,{paddingX:p,paddingY:d,...c}=ke[t],u=we[t];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:o.v2.spacing(6),borderRadius:o.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:`${o.v2.spacing(d)} ${o.v2.spacing(p)}`,fontWeight:o.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...e==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...e==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...e==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...e==="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}}}),Q=styled("span")(({theme:o})=>{let e=o.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:e,height:e}});var $e=forwardRef(({children:o,variant:e="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(Te,{ref:y,className:kc(k.root,d),$variant:e,$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(rt,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:m?jsx(Q,{className:k.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(Q,{className:k.startIcon,children:a}),o,s&&jsx(Q,{className:k.endIcon,children:s})]})}),r&&jsx(Q,{className:k.loading,sx:{position:"absolute"},children:jsx(Ua,{className:k.loadingSpinner,size:Ie[t],color:"inherit"})})]})});$e.displayName="Button";var Me=memo($e);var Ga="os-shared-Icon",yo={root:`${Ga}-root`};var Le=styled("img")(({theme:o})=>({width:o.v2.spacing(16),height:o.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Fe=forwardRef(({className:o,sx:e,...t},r)=>jsx(Le,{className:kc(yo.root,o),sx:e,"data-testid":"Icon",...t,ref:r}));Fe.displayName="Icon";var ze=memo(Fe);var Xo="os-shared-Checkbox",z={root:`${Xo}-root`,control:`${Xo}-control`,label:`${Xo}-label`};var De=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(_o,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?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})]})},Re=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette;return jsx(_o,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:o?a[50]:r.white,stroke:o?a[200]:a[500],strokeWidth:"1.2"})})},Ae=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a,foreground:s}=t.palette;return jsxs(_o,{viewBox:"0 0 12 12",sx:{width:12,height:12},...e,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:o?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var He=styled(Qa)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Ve=styled(os)(({theme:o})=>{let{base:e,grey:t}=o.v2.palette;return {marginLeft:0,gap:o.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:t[500]}}});var Oe=forwardRef(({label:o,labelPlacement:e="end",disabled:t,sx:r,className:a,...s},i)=>{let n=yc(useId(),"checkbox"),p=jsx(He,{id:n,ref:i,disableRipple:true,disabled:t,checkedIcon:jsx(De,{disabled:t}),icon:jsx(Re,{disabled:t}),indeterminateIcon:jsx(Ae,{disabled:t}),"data-testid":"Checkbox",className:kc(o?z.control:z.root,o?void 0:a),sx:o?void 0:r,...s});return o?jsx(Ve,{className:kc(z.root,a),sx:r,control:p,label:o,labelPlacement:e,disabled:t,componentsProps:{typography:{className:z.label}}}):p});Oe.displayName="Checkbox";var Ze=memo(Oe);var as="os-shared-Switch",go={root:`${as}-root`};var je=styled(ss)(({theme:o,disabled:e})=>{let{base:t,grey:r,success:a}=o.v2.palette;return {width:28,height:16,padding:0,borderRadius:o.v2.radius(8),opacity:e?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:o.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:e?"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:o.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:o.transitions.create(["background-color"],{duration:300})}}});var Ke=forwardRef(({className:o,sx:e,...t},r)=>jsx(je,{ref:r,className:kc(go.root,o),sx:e,"data-testid":"Switch",disableRipple:true,...t}));Ke.displayName="Switch";var Ue=memo(Ke);var ds="os-shared-Typography",xo={root:`${ds}-root`},Co="body.default.regular";var fs=o=>o!=null&&typeof o=="object"&&"fontFamily"in o&&"fontSize"in o&&"fontWeight"in o;function us(o,e){try{let t=e.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${e}`);return r[a]},o);if(!fs(t))throw new TypeError(`Invalid typography textVariant: ${e}`);return t}catch(t){return console.warn(t),o.body.default.regular}}function ys(o,e,t){return e===void 0?t:typeof e=="number"?e:{light:o.fontWeightLight,regular:o.fontWeightRegular,medium:o.fontWeightMedium,semibold:o.fontWeightBold,bold:o.fontWeightBolder}[e]??t}var Ye=styled(cs,{shouldForwardProp:o=>o!=="$textVariant"&&o!=="$weight"})(({theme:o,$textVariant:e=Co,$weight:t})=>{let{base:r}=o.v2.palette,a=us(o.v2.typography.textVariants,e);return {color:r.black,...a,fontWeight:ys(o.v2.typography,t,a.fontWeight)}});var Ge=forwardRef(({textVariant:o=Co,variant:e="subtitle2",weight:t,className:r,sx:a,...s},i)=>jsx(Ye,{ref:i,className:kc(xo.root,r),sx:a,"data-testid":"Typography",...s,variant:e,$textVariant:o,$weight:t}));Ge.displayName="Typography";var Xe=memo(Ge);var hs="os-shared-RadioButton";var ho={root:`${hs}-root`};var Je=({disabled:o,...e})=>{let{v2:t}=useTheme(),{brand:r,base:a}=t.palette,s=o?"#BDC1CC":r[500];return jsxs(_o,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,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}})]})},Qe=({disabled:o,...e})=>{let{v2:t}=useTheme(),{base:r,grey:a}=t.palette,s=o?a[50]:r.white,i=o?a[200]:a[500];return jsx(_o,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...e,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 ot=styled(Ss)(({theme:o})=>({padding:o.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var et=forwardRef(({disabled:o,sx:e,className:t,...r},a)=>jsx(ot,{ref:a,disableRipple:true,disabled:o,checkedIcon:jsx(Je,{disabled:o}),icon:jsx(Qe,{disabled:o}),"data-testid":"RadioButton",className:kc(ho.root,t),sx:e,...r}));et.displayName="RadioButton";var tt=memo(et);var So="os-shared-CircularProgress",D={root:`${So}-root`,progress:`${So}-progress`,labelOverlay:`${So}-labelOverlay`,labelText:`${So}-labelText`};var at=styled(Ua)(({theme:o})=>{let{brand:e}=o.v2.palette;return {color:"#147DC5",background:alpha(e[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),st=styled(rt)(()=>({position:"relative",display:"inline-flex"})),nt=styled(rt)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),it=styled(cs)(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightBolder??700,color:"#3B4152"}));var lt=forwardRef(({variant:o="indeterminate",hasLabel:e=true,value:t,className:r,sx:a,...s},i)=>{let n=o==="determinate"&&e;return jsxs(st,{className:kc(D.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(at,{ref:i,variant:o,value:t,className:D.progress,...s}),n&&jsx(nt,{className:D.labelOverlay,children:jsx(it,{className:D.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});lt.displayName="CircularProgress";var pt=memo(lt);var R="os-shared-Tooltip",h={popper:`${R}-popper`,tooltip:`${R}-tooltip`,arrow:`${R}-arrow`,content:`${R}-content`,title:`${R}-title`,supportingText:`${R}-supportingText`,wrapper:`${R}-wrapper`};var dt=styled(({className:o,...e})=>createElement(Fs,{...e,classes:{popper:kc(h.popper,o),tooltip:h.tooltip,arrow:h.arrow}}))(({theme:o})=>{let{base:e,grey:t}=o.v2.palette,r=e.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${h.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${h.tooltip}`]:{backgroundColor:r,color:t[700],boxShadow:o.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:o.v2.spacing(6),borderRadius:o.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),ct=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:o.v2.spacing(6),maxWidth:296,width:"100%"})),mt=styled("div",{shouldForwardProp:o=>o!=="$hasSupportingText"})(({theme:o,$hasSupportingText:e})=>{let{grey:t}=o.v2.palette;return {margin:0,fontSize:12,fontWeight:e?600:400,lineHeight:e?1:1.2,color:e?t[700]:alpha(t[700],.77),width:e?"100%":void 0}}),ft=styled("div")(({theme:o})=>{let{grey:e}=o.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:e[500],width:"100%",whiteSpace:"pre-wrap"}});function As(o){return o!=null&&o!==false&&o!==""}function Ws(o){return !!o||o===0}function Es(o,e){let t=As(e);if(!Ws(o)&&!t)return null;let r=jsx(mt,{className:h.title,$hasSupportingText:t,children:o});return t?jsxs(ct,{className:h.content,children:[r,jsx(ft,{className:h.supportingText,children:e})]}):r}function ut({className:o,title:e,supportingText:t,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(dt,{className:o,title:Es(e,t),placement:r,arrow:true,sx:i,...n,children:jsx(rt,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:kc(h.wrapper,p),...d,children:a})})}ut.displayName="Tooltip";var yt=memo(ut);var Vs="os-shared-Skeleton",wo={root:`${Vs}-root`};var gt=styled(Os)(()=>({}));var xt=forwardRef(({className:o,sx:e,variant:t="rounded",height:r=16,...a},s)=>jsx(gt,{ref:s,className:kc(wo.root,o),sx:e,"data-testid":"Skeleton",variant:t,height:r,...a}));xt.displayName="Skeleton";var Ct=memo(xt);var Ys="os-shared-Avatar",Io={root:`${Ys}-root`},Bo="xs",To="teal",ht={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 _s(o){let{from:e,to:t}=ht[o];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${e} 0%, ${t} 100%)`}var St=styled(Gs,{shouldForwardProp:o=>!["$size","$color"].includes(o)})(({theme:o,$size:e=Bo,$color:t=To})=>{let{dimension:r,fontSize:a}=bt[e],{base:s}=o.v2.palette,i=_s(t);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var vt=forwardRef(({className:o,sx:e,size:t=Bo,color:r=To,...a},s)=>jsx(St,{ref:s,className:kc(Io.root,o),sx:e,"data-testid":"Avatar",...a,$size:t,$color:r,variant:"circular"}));vt.displayName="Avatar";var Nt=memo(vt);var on="os-shared-Divider",Po={root:`${on}-root`};function rn(o,e){let{grey:t,border:r}=e.v2.palette;return o==="subtle"?r.subtle:t[100]}var kt=styled(en,{shouldForwardProp:o=>o!=="$type"})(({theme:o,$type:e="default",orientation:t="horizontal"})=>({borderColor:rn(e,o),...t==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var wt=forwardRef(({className:o,sx:e,orientation:t="horizontal",type:r="default",...a},s)=>jsx(kt,{ref:s,className:kc(Po.root,o),sx:e,"data-testid":"Divider",orientation:t,$type:r,...a}));wt.displayName="Divider";var It=memo(wt);var ln="os-shared-Collapse",$o={root:`${ln}-root`};var Bt=styled(pn)(()=>({}));var Tt=forwardRef(({className:o,sx:e,children:t,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Bt,{ref:i,className:kc($o.root,o),sx:e,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));Tt.displayName="Collapse";var Pt=memo(Tt);var un="os-shared-Badge",Mo={root:`${un}-root`},Lo="default",$t={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function xn(o,e){let{base:t,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=e.v2.palette;if(o==="highlight")return p.brand;let d=$t[o];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]}[o]??t.white)}function Cn(o,e){let{base:t}=e.v2.palette;return o==="inactive"?t.black:(t.white)}var Lt=styled("span",{shouldForwardProp:o=>!["$color","$compact","$round","$pointer"].includes(o)})(({theme:o,$color:e=Lo,$compact:t,$round:r,$pointer:a})=>{let s=xn(e,o);return {paddingBlock:o.v2.spacing(2),paddingInline:t?"0.16056rem":r?"0.275rem":o.v2.spacing(4),borderRadius:t?o.v2.radius(4):r?o.v2.radius(16):o.v2.radius(48),background:s,color:Cn(e,o),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 Ft=forwardRef(({className:o,sx:e,color:t,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=t??r??Lo;return jsx(Lt,{ref:d,className:kc(Mo.root,o),sx:e,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Ft.displayName="Badge";var zt=memo(Ft);var vn="os-shared-Backdrop",Fo={root:`${vn}-root`};var Dt=styled(Nn,{shouldForwardProp:o=>o!=="$hasBlur"})(({theme:o,$hasBlur:e=false})=>{let t=e?o.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:t,WebkitBackdropFilter:t}});var Rt=forwardRef(({className:o,sx:e,open:t=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!t)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Dt,{open:t,$hasBlur:r,ref:n,className:kc(Fo.root,o),sx:e,"data-testid":"Backdrop",onClick:p,...i}),document.body)});Rt.displayName="Backdrop";var At=memo(Rt);var zo="os-shared-CopyButton",P={root:`${zo}-root`,icon:`${zo}-icon`,copyIcon:`${zo}-copyIcon`,copiedIcon:`${zo}-copiedIcon`};var Ht=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(_o,{sx:{height:12.6,width:13},...o,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"})})})},Vt=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(_o,{sx:{height:12.6,width:13},...o,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 Zt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),oe=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 200ms ease"}));var jt=forwardRef(({className:o,sx:e,text:t,feedbackMs:r=2e3,icon:a=jsx(Ht,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=u=>{u.stopPropagation(),ab(t),d(true),setTimeout(()=>d(false),r),s?.(u);};return jsxs(Zt,{ref:n,className:kc(P.root,o),sx:e,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(oe,{className:kc(P.icon,P.copyIcon),$visible:!p,children:a}),jsx(oe,{className:kc(P.icon,P.copiedIcon),$visible:p,children:jsx(Vt,{})})]})});jt.displayName="CopyButton";var Kt=memo(jt);var ee="os-shared-ProgressBar",U={root:`${ee}-root`,fill:`${ee}-fill`,text:`${ee}-text`};var Yt=styled(rt,{shouldForwardProp:o=>!["$value","$isDecimal"].includes(o)})(({theme:o,$value:e,$isDecimal:t})=>{let{base:r}=o.v2.palette;return {width:`${e}%`,minWidth:e>=10?"28px":"24px",height:"18px",borderRadius:o.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:e>10?"flex-end":"center",paddingInlineEnd:e>10?o.v2.spacing(2):o.v2.spacing(0),...e===0&&{background:alpha(r.black,26/255)},...t&&{minWidth:e>=10?"40px":"36px"}}}),Gt=styled(rt,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t}=o.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(t.black,26/255),borderRadius:o.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...e===0&&{background:alpha(t.black,0)}}}),Xt=styled(cs,{shouldForwardProp:o=>o!=="$value"})(({theme:o,$value:e})=>{let{base:t,grey:r}=o.v2.palette;return {fontSize:"8px",fontWeight:o.typography.fontWeightBolder??700,color:t.white,padding:`${o.v2.spacing(2)} ${o.v2.spacing(4)}`,...e===0&&{color:alpha(r[500],.5)}}});var qt=forwardRef(({className:o,sx:e,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Yt,{ref:r,className:kc(U.root,o),sx:e,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Gt,{className:U.fill,$value:t,children:jsxs(Xt,{className:U.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});qt.displayName="ProgressBar";var Jt=memo(qt);var Ao="os-shared-Chip",w={root:`${Ao}-root`,text:`${Ao}-text`,copyButton:`${Ao}-copyButton`,icon:`${Ao}-icon`},Qt={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 tr=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(_o,{sx:{height:"10px"},...o,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"})})})},rr=o=>{let{v2:e}=useTheme(),{success:t,base:r}=e.palette;return jsx(_o,{sx:{height:"10px"},...o,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 Hn(o,e){let t=Qt[o];return {height:t.height,..."width"in t&&{width:t.width,minWidth:t.width},..."padding"in t&&{padding:e.v2.spacing(t.padding)},..."paddingBlock"in t&&{paddingBlock:e.v2.spacing(t.paddingBlock)},..."paddingInline"in t&&{paddingInline:e.v2.spacing(t.paddingInline)},borderRadius:e.v2.radius(t.borderRadius)}}var sr=styled(rt,{shouldForwardProp:o=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(o)})(({theme:o,$variant:e="text",$hasIcon:t,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=o.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:o.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...Hn(e,o),...e==="text"&&t&&{gap:o.v2.spacing(6),paddingInlineStart:o.v2.spacing(5),paddingInlineEnd:o.v2.spacing(8)},...r&&{gap:o.v2.spacing(4)},[`& .${w.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"}}}}),re=styled(rt)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),nr=styled("span",{shouldForwardProp:o=>o!=="$copied"})(({$copied:o})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:o?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),ae=styled("span",{shouldForwardProp:o=>o!=="$visible"})(({$visible:o})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:o?1:0,transition:"opacity 150ms ease"}));var lr=forwardRef(({className:o,sx:e,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),x=r!=null&&!f,g=useCallback(S=>{S.stopPropagation(),n&&(ab(n),m(true),setTimeout(()=>m(false),2e3));},[n]),v=useMemo(()=>x?jsx("span",{className:w.icon,children:r}):null,[x,r]),N=useMemo(()=>{if(t){let S=f&&typeof t=="string"?Zb(t):void 0;return jsx(re,{className:w.text,"data-is-arabic":S,children:t})}return x?null:jsx(re,{className:w.text,children:p})},[t,f,x,p]),T=useMemo(()=>f?jsxs(nr,{className:w.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(ae,{$visible:!y,children:jsx(tr,{})}),jsx(ae,{$visible:y,children:jsx(rr,{})})]}):null,[f,y,g]);return jsxs(sr,{ref:u,"data-testid":"Chip",className:kc(w.root,o,`CustomVariant_${a}`),sx:jc(s?{cursor:"not-allowed",opacity:.5}:{},e),$variant:a,$hasIcon:x,$hasCopy:f,$isSelected:i,$disableAnimation:d,...c,children:[v,N,T]})});lr.displayName="Chip";var pr=memo(lr);var ne="os-shared-Slider",$={root:`${ne}-root`,thumb:`${ne}-thumb`,thumbIcon:`${ne}-thumbIcon`};var dr=o=>{let{v2:e}=useTheme(),{grey:t}=e.palette;return jsx(_o,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...o,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 cr=styled(Gn)(({theme:o})=>{let{brand:e,base:t}=o.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:e[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}},[`& .${$.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function oi({children:o,className:e,...t}){return jsxs(SliderThumb,{className:kc($.thumb,e),...t,children:[o,jsx(dr,{className:$.thumbIcon})]})}var mr=forwardRef(({className:o,sx:e,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(cr,{ref:c,className:kc($.root,o),sx:e,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:i,onChange:u,...d,slots:{thumb:oi,...p}})});mr.displayName="Slider";var fr=memo(mr);var eo="os-shared-Input",M={root:`${eo}-root`,label:`${eo}-label`,input:`${eo}-input`,loadingIcon:`${eo}-loadingIcon`,validatedIcon:`${eo}-validatedIcon`},yr={sm:28,md:32,labelled:40};var xr=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(_o,{viewBox:"0 0 10 8",sx:{width:10,height:8},...o,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 hr=(o,e)=>yr[o?"labelled":e],br=styled(li,{shouldForwardProp:o=>!["$hasLabel","$hideArrows","$size","$hasTrailingIcon"].includes(o)})(({theme:o,$hasLabel:e=false,$hideArrows:t=false,$size:r="md",$hasTrailingIcon:a=false})=>{let{base:s,grey:i}=o.v2.palette;return {height:hr(e,r),padding:e?o.v2.spacing(6):`0 ${o.v2.spacing(6)}`,...e&&{paddingTop:o.v2.spacing(18)},paddingLeft:o.v2.spacing(8),paddingRight:a?o.v2.spacing(28):void 0,border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:o.v2.typography.fontWeightMedium,color:s.black,backgroundColor:"transparent",display:"flex",alignItems:e?"stretch":"center","&.Mui-disabled":{color:alpha(s.black,.6)},"& input":{padding:0},"& input::placeholder":{color:i[500],fontWeight:o.v2.typography.fontWeightRegular,opacity:e?0:1,...e&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:s.black,caretColor:s.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...e&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),Sr=styled(ii)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${e[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),vr=styled(Ua)(({theme:o})=>({position:"absolute",top:"30%",right:o.v2.spacing(8),color:o.v2.palette.grey[500]})),Nr=styled(rt)(({theme:o})=>({position:"absolute",top:"50%",right:o.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),kr=styled(ni,{shouldForwardProp:o=>!["$hasLabel","$size"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>{let{grey:i,base:n,brand:p,error:d}=o.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:hr(a,s),margin:0,border:`1px solid ${e?"#FAFBFB":t?"#FF3D00":i[100]}`,borderRadius:o.v2.radius(4),backgroundColor:e?"#FAFBFB":n.white,transition:"border-color 0.15s ease, box-shadow 0.15s ease","&:focus-within":{borderColor:t?"#FF3D00":p[500],boxShadow:t?"none":`0px 0px 4px 0px ${alpha(p[500],.5)}`},"& .MuiFormLabel-asterisk":{color:d[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.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, -1.5px) scale(0.90) !important",color:`${i[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var wr=forwardRef(({label:o,size:e="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:i=false,required:n,loading:p=false,validated:d=false,type:c,id:u,className:y,sx:m,onKeyDown:f,onWheel:x,...g},v)=>{let N=!!o,T=c==="number",S=N&&p&&!r,mo=d&&!p&&!r,Uo=S||mo,Yo=C=>{let he=C.metaKey||C.ctrlKey||C.altKey,fo=C.key.length===1;(["e","E","+","-"].includes(C.key)||xa()&&fo&&!he&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),f?.(C);},Go=C=>{C.target instanceof HTMLElement&&C.target.blur(),x?.(C);};return jsxs(kr,{className:kc(M.root,y),sx:m,error:t,disabled:r,fullWidth:a,required:n,"data-testid":"Input",$hasLabel:N,$size:e,children:[N&&jsx(Sr,{className:M.label,htmlFor:u,required:n,children:o}),jsx(br,{id:u,inputRef:v,className:M.input,type:c,error:t,disabled:r,required:n,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:N,$hideArrows:i,$size:e,$hasTrailingIcon:Uo,onKeyDown:T?Yo:f,onWheel:T?Go:x,...g}),S&&jsx(vr,{className:M.loadingIcon,size:14.7,thickness:5}),mo&&jsx(Nr,{className:M.validatedIcon,children:jsx(xr,{})})]})});wr.displayName="Input";var Ir=memo(wr);var ie="os-shared-Textarea",G={root:`${ie}-root`,label:`${ie}-label`,textarea:`${ie}-textarea`},X=3;var Br=styled(ui,{shouldForwardProp:o=>!["$error","$hasLabel","$minRows"].includes(o)})(({theme:o,$hasLabel:e=false,$minRows:t=X})=>{let{base:r,grey:a}=o.v2.palette;return {border:"none",borderRadius:"inherit",padding:e?`${o.v2.spacing(32)} ${o.v2.spacing(8)} ${o.v2.spacing(8)}`:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...e&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:e?void 0:`${Math.max(t*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:o.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"}}}),Tr=styled(ii)(({theme:o})=>{let{grey:e}=o.v2.palette;return {fontSize:"10px",fontWeight:o.typography.fontWeightMedium,color:`${e[500]} !important`}}),Pr=styled(ni,{shouldForwardProp:o=>!["$hasLabel","$minRows"].includes(o)})(({theme:o,disabled:e,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=X})=>{let{grey:i,base:n,error:p}=o.v2.palette,d=t?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-X)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:o.v2.radius(4),backgroundColor:e?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:o.v2.spacing(2),padding:o.v2.spacing(8),fontSize:"10px",fontWeight:o.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Mr=forwardRef(({label:o,error:e=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=X,maxRows:i,id:n,className:p,sx:d,required:c,...u},y)=>{let m=!!o;return jsxs(Pr,{className:kc(G.root,p),sx:d,error:e,disabled:t,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:m,$minRows:s,children:[m&&jsx(Tr,{className:G.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:o}),jsx(Br,{id:n,inputRef:y,className:G.textarea,multiline:true,minRows:s,maxRows:i,disabled:t,required:c,placeholder:a??void 0,"aria-invalid":e||void 0,fullWidth:true,$error:e,$hasLabel:m,$minRows:s,...u})]})});Mr.displayName="Textarea";var Lr=memo(Mr);var W="os-shared-Accordion",I={root:`${W}-root`,summary:`${W}-summary`,content:`${W}-content`,labelStartAdornment:`${W}-labelStartAdornment`,labelContent:`${W}-labelContent`,labelEndAdornment:`${W}-labelEndAdornment`,expandIcon:`${W}-expandIcon`};var zr=()=>{let{v2:o}=useTheme(),{base:e}=o.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:e.black,stroke:e.black,strokeWidth:"0.1"})})};var Rr=styled(hi)(({theme:o,square:e})=>{let{grey:t,base:r}=o.v2.palette;return {overflow:"hidden",border:`1px solid ${t[100]}`,...!e&&{borderRadius:o.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Ar=styled(Si)(({theme:o})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:o.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:o.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:o.v2.spacing(8)}})),Wr=styled(bi)(({theme:o})=>{let{grey:e}=o.v2.palette;return {padding:0,borderTop:`1px solid ${e[100]}`}}),Er=styled(rt)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Hr=styled(rt)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Zr=forwardRef(({expanded:o,defaultExpanded:e=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=o!==void 0,[x,g]=useState(e),v=f?o:x,N=(he,fo)=>{f||g(fo),t?.(fo);},{showArrow:T=true,...S}=n.label??{},{className:mo,sx:Uo,...Yo}=n.root??{},Go=d??(T?jsx(Er,{component:"span",className:I.expandIcon,children:jsx(zr,{})}):null),C=jsxs(Fragment,{children:[s!=null&&jsx(rt,{component:"span",className:I.labelStartAdornment,...n.labelStartAdornment,sx:jc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx(Hr,{component:"span",className:I.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(rt,{component:"span",className:I.labelEndAdornment,...n.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Rr,{ref:m,"data-testid":"Accordion",disabled:p,expanded:v,onChange:N,className:kc(I.root,c,mo),sx:jc(u??{},Uo),...Yo,...y,children:[jsx(Ar,{className:I.summary,expandIcon:Go,"aria-expanded":v,...S,children:C}),jsx(Wr,{className:I.content,...n.content,children:a})]})});Zr.displayName="Accordion";var jr=memo(Zr);var Kr="os-shared-Menu",so={popper:`${Kr}-popper`,panel:`${Kr}-panel`};var Yr=styled(Bi)({}),Gr=styled(rt,{shouldForwardProp:o=>o!=="$showShadow"})(({theme:o,$showShadow:e})=>{let{grey:t,base:r}=o.v2.palette;return {borderRadius:o.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:o.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:e?'""':"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 _r=forwardRef(({open:o,anchorEl:e,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:x,sx:g,...v}=s??{},N=useCallback(S=>{u((S.currentTarget.scrollTop??0)>0),f?.(S);},[f]),T=kc(so.panel,x,"MuiPopper-dropdown");return jsx(Yr,{ref:d,className:kc(so.popper,i),"data-testid":"Menu",open:o,anchorEl:e,placement:r??"bottom-start",sx:a,...p,children:jsx(Gr,{$showShadow:m,onScroll:N,className:T,sx:jc(n??{},g),...v,children:t})})});_r.displayName="Menu";var qr=memo(_r);var no="os-shared-Dialog",L={root:`${no}-root`,title:`${no}-title`,divider:`${no}-divider`,content:`${no}-content`,actions:`${no}-actions`};var Jr=styled(zi,{shouldForwardProp:o=>o!=="$hasBlurBackdrop"})(({theme:o,$hasBlurBackdrop:e})=>{let{base:t}=o.v2.palette,r=e?o.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:t.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:o.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...e&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),Qr=styled(Ai)(({theme:o})=>{let{base:e}=o.v2.palette;return {padding:`${o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(12)}`,fontSize:"13px",fontWeight:o.typography.fontWeightBolder,lineHeight:"normal",color:e.black,whiteSpace:"nowrap"}}),oa=styled("hr")(({theme:o})=>{let{grey:e}=o.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${e[100]}`,margin:0,width:"100%",flexShrink:0}}),ea=styled(Ri,{shouldForwardProp:o=>o!=="$hasHeading"})(({theme:o,$hasHeading:e})=>{let{grey:t}=o.v2.palette;return {padding:`${e?o.v2.spacing(12):o.v2.spacing(16)} ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,fontSize:"12px",fontWeight:o.typography.fontWeightMedium,lineHeight:"normal",color:t[500]}}),ta=styled(Di)(({theme:o})=>({padding:`0 ${o.v2.spacing(16)} ${o.v2.spacing(16)}`,gap:o.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var aa=forwardRef(({heading:o,actions:e,children:t,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(Jr,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:kc(L.root,i),sx:n,...p,children:[o?jsxs(Fragment,{children:[jsx(Qr,{className:L.title,children:o}),jsx(oa,{"aria-hidden":true,className:L.divider})]}):null,t!=null?jsx(ea,{className:L.content,$hasHeading:!!o,children:t}):null,e?jsx(ta,{className:L.actions,children:e}):null]}));aa.displayName="Dialog";var sa=memo(aa);var pe="os-shared-MenuItem",H={root:`${pe}-root`,indicator:`${pe}-indicator`,disabled:`${pe}-disabled`},V={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ia=()=>{let{v2:o}=useTheme(),{brand:e,base:t}=o.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:e[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})]})},la=()=>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"})}),pa=()=>{let{v2:o}=useTheme(),{brand:e}=o.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:e[500],stroke:e[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ma=styled(rt,{shouldForwardProp:o=>o!=="$isDisabled"})(({theme:o,$isDisabled:e=false})=>{let{base:t}=o.v2.palette;return {padding:o.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:o.v2.spacing(8),textTransform:"capitalize",cursor:e?"not-allowed":"pointer",flex:1,fontSize:o.typography.subtitle1.fontSize,opacity:e?.5:1,color:t.black}}),de=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ki(o,e){return e?V.indeterminate:o?V.checked:V.unchecked}var Ui={[V.unchecked]:la,[V.checked]:ia,[V.indeterminate]:pa};function Yi(o,e,t){if(o===null)return null;if(o!==void 0)return jsx(de,{className:H.indicator,"aria-hidden":true,children:o});let r=Ki(e,t),a=Ui[r];return jsx(de,{className:H.indicator,"aria-hidden":true,children:jsx(a,{})})}var fa=forwardRef(({isSelected:o=false,isDisabled:e=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=kc(H.root,"menu-item",e&&H.disabled,i);return jsxs(ma,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:e?void 0:a,$isDisabled:e,...p,children:[Yi(r,o,t),s]})});fa.displayName="MenuItem";var ua=memo(fa);var ya="os-shared-ToggleButtons",lo={root:`${ya}-root`,button:`${ya}-button`},me={sm:"sm",md:"md"},po=me.sm,fe={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function Xi(o,e){let{palette:t,elevation:r}=o.v2;return e?{backgroundColor:t.background.primary,boxShadow:r[100],color:t.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:t.foreground.secondary}}var Ca=styled(rt,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:e=po})=>{let t=fe[e];return {backgroundColor:o.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:o.v2.spacing(2),borderRadius:o.v2.radius(t.containerRadius)}}),ha=styled(rt,{shouldForwardProp:o=>o!=="$isActive"&&o!=="$size"})(({theme:o,$isActive:e=false,$size:t=po})=>{let r=fe[t];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:o.v2.radius(2),fontSize:r.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...Xi(o,e),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function Sa({options:o,activeKey:e,onChange:t,size:r=po,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:u,...y}=a??{},m=kc(lo.root,n,c);return jsx(Ca,{ref:d,id:i,"data-testid":"ToggleButtons",className:m,$size:r,sx:jc(p??{},u),...y,children:o.map(f=>jsx(ha,{className:lo.button,$isActive:e===f.key,$size:r,onClick:()=>t(f.key),...s,children:f.content},f.key))})}var Ji=forwardRef(Sa);Sa.displayName="ToggleButtons";var va=memo(Ji);var Qi="os-shared-LazyImage",Vo={root:`${Qi}-root`},Oo={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 Na=styled(rt)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Zo(o){return o!=null&&o in Oo}var il=LazyLoadImage,wa=forwardRef(({effect:o,wrapperProps:e,id:t,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Zo(o));if(useEffect(()=>{if(!Zo(o)){d(false);return}d(true),Oo[o]().finally(()=>{d(false);});},[o]),p)return null;let{className:c,sx:u,style:y,...m}=e??{},f=Zo(o)||!!s||y!=null;return jsx(Na,{component:"span",...m,className:kc(Vo.root,c??r),sx:u!=null?jc(a??{},u):a,children:jsx(il,{...i,ref:n,effect:o,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:f?{style:{display:"flex",justifyContent:"center",alignItems:"center",...y}}:void 0})})});wa.displayName="LazyImage";var Ia=memo(wa);var ue="os-shared-FieldFeedback",q={root:`${ue}-root`,icon:`${ue}-icon`,message:`${ue}-message`};var Ba=({severity:o="error",...e})=>{let t=useTheme(),{warning:r,error:a}=t.v2.palette,s=o==="warning"?r[500]:a[500];return jsx(_o,{sx:{width:12,height:12},...e,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})})})},Ta=o=>{let{v2:e}=useTheme(),{success:t}=e.palette;return jsx(_o,{sx:{width:12,height:12},...o,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]})})})},Pa=o=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx(_o,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:t.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function jo(o,e){let t=e??"error",{brand:r,success:a,error:s,status:i}=o.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 $a=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{backgroundColor:t,textColor:r}=jo(o,e);return {display:"flex",alignItems:"flex-start",gap:o.v2.spacing(4),minHeight:"32px",padding:`${o.v2.spacing(8)} ${o.v2.spacing(12)}`,background:t,color:r,borderRadius:`0 0 ${o.v2.radius(4)} ${o.v2.radius(4)}`}}),Ma=styled("div",{shouldForwardProp:o=>o!=="$feedbackType"})(({theme:o,$feedbackType:e})=>{let{textColor:t}=jo(o,e);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),La=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 dl(o){switch(o){case "success":return jsx(Ta,{});case "info":return jsx(Pa,{});case "error":case "warning":return jsx(Ba,{severity:o})}}var Fa=forwardRef(({type:o="error",message:e,icon:t,className:r,sx:a},s)=>{if(!zc(e))return null;let i=o;return jsxs($a,{ref:s,"data-testid":"FieldFeedback",className:kc(q.root,r),sx:a,$feedbackType:i,children:[t??jsx(La,{className:q.icon,children:dl(i)}),jsx(Ma,{className:q.message,$feedbackType:i,children:e})]})});Fa.displayName="FieldFeedback";var za=memo(Fa);var ml="os-shared-ScrollLoader",Ko={root:`${ml}-root`};var Da=styled(fl)({overflow:"auto",height:"100%",maxHeight:"100%"});function Ce(o,e=50){return o.scrollHeight-(o.scrollTop+o.clientHeight)<=e}var Ea=forwardRef(({loadMoreItems:o,hasMore:e,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,u]=useState(false),y=useRef(o),m=useRef(null);y.current=o;let f=useCallback(()=>{e&&!r&&y.current();},[e,r]),x=useCallback(()=>{let g=m.current;g&&Ce(g)&&f();},[f]);return useEffect(()=>{let g=m.current;if(g)return g.addEventListener("scroll",x),()=>g.removeEventListener("scroll",x)},[x]),useEffect(()=>{let g=m.current;if(!g||t||c)return;let v=window.setTimeout(()=>{u(true),Ce(g)&&f();},1e3);return ()=>window.clearTimeout(v)},[t,f,c]),jsx(Da,{ref:g=>{m.current=g,typeof d=="function"?d(g):d&&(d.current=g);},id:n,"data-testid":"ScrollLoader",className:kc(Ko.root,s),sx:i,...p,children:a})});Ea.displayName="ScrollLoader";var Ha=memo(Ea);
|
|
2
|
+
export{q as $,Fo as A,At as B,P as C,Kt as D,U as E,Jt as F,w as G,pr as H,$ as I,fr as J,M as K,Ir as L,G as M,Lr as N,I as O,jr as P,so as Q,qr as R,L as S,sa as T,H as U,ua as V,lo as W,me as X,va as Y,Vo as Z,Ia as _,k as a,jo as aa,Me as b,za as ba,yo as c,Ko as ca,ze as d,Ha as da,z as e,Ze as f,go as g,Ue as h,xo as i,Xe as j,ho as k,tt as l,D as m,pt as n,h as o,yt as p,wo as q,Ct as r,Io as s,Nt as t,Po as u,It as v,$o as w,Pt as x,Mo as y,zt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-GTARVX4J.js';import {
|
|
1
|
+
import {a as a$1}from'./chunk-GTARVX4J.js';import {r}from'./chunk-YHKF6F6S.js';import {a}from'./chunk-54RTNLV2.js';import {yc,Fa,Ga,Ea,h}from'./chunk-PLMJIRXJ.js';import {Yc,Xc,Oc,Nc,Mc,Pc,Te}from'./chunk-YKKS24ES.js';import {useRef,useId,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {createPortal}from'react-dom';import {styled,alpha}from'@mui/material';import oe from'@mui/material/Popover';import Je from'react-currency-input-field';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var ne=styled("div")(({showWarning:e})=>({display:"flex",gap:"0.25rem",justifyContent:"flex-start",alignItems:"flex-start",padding:"0.25rem",borderRadius:"0.25rem",width:"14.25rem",minHeight:e?"3.6rem":"2.5rem"})),te=styled("div")(()=>({display:"flex",flexDirection:"column",width:"100%"})),re=styled("div")(()=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",flex:1})),ie=styled("div")(({theme:e,showWarning:o,showDropDown:t})=>({height:"2rem",border:o?`1px solid ${e.palette.common.red}24`:t?`1px solid ${e.palette.info.dark}`:`1px solid ${e.palette.grey[100]}`,borderRadius:o?"0.25rem 0.25rem 0rem 0rem":"0.25rem",display:"flex",alignItems:"center",justifyContent:"space-between",paddingRight:"0.5rem",paddingLeft:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",margin:0,zIndex:4e3,...t&&{boxShadow:`0px 0px 4px 0px ${e.palette.info.dark}80`}})),ae=styled("div")(({theme:e})=>({height:"1.1rem",borderRadius:"0rem 0rem 0.25rem 0.25rem",display:"flex",justifyContent:"flex-start",margin:0,alignItems:"center",background:e.palette.background.gradient.error,paddingLeft:"0.5rem"})),se=styled("p")(({theme:e})=>({color:e.palette.common.red,fontSize:"0.62rem",fontWeight:400,fontFamily:"Lato",padding:0,margin:0,paddingLeft:"0.25rem"})),de=styled("img")({height:"auto",width:"auto",verticalAlign:"top"}),le=styled("div")({display:"flex",flexDirection:"column",justifyContent:"center"}),ce=styled("div")({display:"flex",height:"0.8rem",alignItems:"center",width:"8.5rem"}),pe=styled(Je)(({theme:e,showWarning:o,disabled:t})=>({color:o?e.palette.common.red:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"4.5rem",height:"0.9rem",border:"none",outline:"none",textAlign:"right",padding:0,"&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},backgroundColor:"transparent",alignSelf:"flex-end","&::placeholder":{color:e.palette.grey.A400},...t&&{opacity:.3}})),me=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.8125rem",fontWeight:600,width:"5.2rem",border:"none",outline:"none",padding:0,margin:0,paddingLeft:16,textAlign:"right","&::-webkit-outer-spin-button":{appearance:"none",margin:0},"&::-webkit-inner-spin-button":{appearance:"none",margin:0},alignSelf:"center"})),I=styled("p")(({theme:e,showWarning:o,showBottomPadding:t,autoMargin:i})=>({color:o?e.palette.common.red:e.palette.grey[700],fontSize:"0.625rem",fontWeight:500,padding:0,margin:0,height:t?"0.43rem":"auto",...t&&{lineHeight:"0.625",leadingTrim:"both",paddingBottom:"0.31rem"},...i&&{paddingBottom:"0.43rem",lineHeight:"0.625"}})),Ne=styled("div")({display:"flex"}),v=styled(Ne)(({limited:e,paddingTop:o,marginRightAuto:t})=>({paddingRight:"0.5rem",alignItems:"center",cursor:"pointer",...t&&{marginRight:"auto"},...e&&{width:"3rem"},...o&&{paddingTop:"0.31rem"}})),A=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:500,margin:0,padding:0,textTransform:"capitalize",paddingRight:"0.25rem",paddingLeft:"0.2rem",lineHeight:"0.865"})),ue=styled("div")({width:0,height:0}),ge=styled(oe)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"0.25rem"}})),F=styled("div")(({theme:e,disabled:o,isRefundInProcess:t,warning:i,isHighlighted:a})=>({borderRadius:"0.3rem",backgroundColor:e.palette.common.white,border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,width:"2rem",height:"2rem",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",pointerEvents:o?"none":"auto",transition:"all 0.2s ease-in-out","&:hover":{border:`1px solid ${i?e.palette.common.red:e.palette.info.dark}`},...a&&{border:`1px solid ${e.palette.info.dark}`},...o&&{opacity:.3}})),H=styled("img")(()=>({width:"0.85rem",height:"0.85rem"})),fe=styled(oe)(({theme:e})=>({backgroundColor:"transparent",boxShadow:e.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem"}})),he=styled("div")(({showDaysMenu:e})=>({height:e?"4.5rem":"auto"})),ye=styled("div")(({theme:e})=>({display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[100]}`,maxWidth:"9.25rem",height:"2.75rem",padding:"0.5rem",cursor:"pointer",gap:"0.31rem",flexDirection:"column",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:`0px 0px 16px 0px ${alpha(e.palette.common.black,.13)}`}})),Ce=styled("img")(({spaceFromBottom:e,currencyPadding:o})=>({height:"0.4rem",width:"0.6rem",cursor:"pointer",marginBottom:e||o?"0":"auto",verticalAlign:"middle",...e&&{marginTop:"2px"}}));var Xe=({selectedCurrency:e,option:o,closeDropdown:t,handleSelectOption:i})=>{let{t:a$1}=useTranslation();return jsxs(ye,{onClick:()=>{i&&i(o.value,o?.currency),t();},children:[jsx(I,{showBottomPadding:true,showWarning:false,children:a$1(o.name)}),jsxs(ce,{children:[jsxs(v,{marginRightAuto:true,children:[jsx(a,{currencyCode:o?.currency??e,width:"0.76rem"}),jsx(A,{children:o?.currency??e})]}),jsx(me,{showWarning:false,children:Fa(o.value||0,o?.currency??e)})]})]})};function Ye({menuAnchor:e,showDropDown:o,selectedCurrency:t,options:i,closeDropdown:a,handleSelectOption:g}){return i.length<=1?null:jsx(fe,{open:o,anchorEl:e,anchorOrigin:{vertical:18,horizontal:-76},style:{backgroundColor:"transparent",zIndex:4e3,padding:0,margin:0},onClose:a,children:jsx(he,{children:i.map(f=>jsx(Fragment,{children:Xe({selectedCurrency:t,option:f,closeDropdown:a,handleSelectOption:g})}))})})}var $=Ye;function oo({showWarning:e,selectedCurrency:o,onAmountChange:t,amount:i,currencyConfig:a$2,toggleDropDown:g,showDropDown:f,showDropdownIcon:M,disabled:x,isLoading:h}){let{t:b}=useTranslation(),y=useRef(null),C=()=>{y.current&&y.current.click();};return jsxs(Fragment,{children:[jsxs(le,{children:[jsx(I,{showBottomPadding:true,showWarning:e,children:b("amount")}),jsxs(v,{limited:true,paddingTop:true,onClick:C,children:[jsx(a,{currencyCode:o,width:"0.76rem"}),jsx(A,{children:jsx(a$1,{currency:o})}),!e&&M&&jsx(Ce,{src:f?Yc:Xc,alt:"drop-down icon",currencyPadding:true})]})]}),jsx(ue,{ref:y,onClick:g}),h?jsx(r,{variant:"text",width:"100%",height:"100%"}):jsx(pe,{disabled:x,placeholder:a$2[o]?"0.000":"0.00",onValueChange:t,value:i,decimalsLimit:a$2[o]??2,showWarning:e||false,decimalScale:a$2[o]??2,autoFocus:true})]})}var B=oo;function so({anchorEl:e,initialAmount:o,options:t,onConfirm:i,handleClose:a,currency:g,isCheckMarkHighlighted:f}){let M=yc(useId(),"action-menu"),{t:x}=useTranslation(),[h$1,b]=useState(o?.toString()),[y,C]=useState(),[u,k]=useState(""),be=useRef(null),[R,E]=useState(false),[c,Se]=useState(g),j=false,[De,Ie]=useState(false),[ve,G]=useState(Oc),[Ae,K]=useState(Nc),Me=useRef(),ke=()=>{C(void 0),E(false);};useEffect(()=>{Me.current?.focus();},[De]);let Re=()=>{ke(),Ie(r=>!r);},Ee=!!e,We=r=>{E(p=>!p),C(r.currentTarget);},Pe=t?.find(r=>r.currency===c)?.value,Te$1=Fa(Pe||0,c),Oe=`${x("maxAllowed")} ${Te$1}`,Fe=`${x("minAllowed")} ${Ga(.1,c||"KWD")}`,He=r=>{let p=h(r);p>o?k(Oe):p<.1&&r!==void 0?k(Fe):k(""),b(r);},Le=(r,p)=>{let Ve=Ga(r||0,p||"KWD");b(Ve),Se(p||c);},U=r=>{C(void 0),E(false),a(r);},$e=()=>{K(Pc);},ze=()=>{K(Nc);},V=r=>{U(r);},Be=()=>{U();},je=()=>{G(Te);},Ge=()=>{G(Oc);},Ke=()=>{i?.(h(h$1),c),V();},Ue=!!u||!h$1;return createPortal(jsx(ge,{id:M,"data-testid":"ActionMenu",open:Ee,anchorEl:e,style:{backgroundColor:"transparent",zIndex:3e3},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",anchorOrigin:{vertical:"top",horizontal:-234},ref:be,onClose:r=>{V(r);},children:jsxs(ne,{showWarning:!!u,children:[jsxs(te,{children:[jsxs(ie,{showWarning:!!u,showDropDown:R,children:[jsx(B,{showWarning:!!u,selectedCurrency:c,onAmountChange:He,amount:h$1,currencyConfig:Ea,toggleDropDown:We,showDropDown:!R,showDropdownIcon:(t?.length||0)>1}),jsx($,{showDropDown:R,menuAnchor:y,selectedCurrency:c,closeDropdown:Re,options:t??[],handleSelectOption:Le})]}),!!u&&jsxs(ae,{children:[jsx(de,{src:Mc,alt:"info"}),jsx(se,{children:u})]})]}),jsxs(re,{children:[jsx(F,{onMouseLeave:Ge,onMouseEnter:je,warning:true,role:"button",onClick:Be,children:jsx(H,{isRefundInProcess:j,src:ve,alt:"Cross icon"})}),jsx(F,{onMouseLeave:ze,onMouseEnter:$e,isRefundInProcess:j,disabled:Ue,role:"button",onClick:Ke,isHighlighted:f,children:jsx(H,{src:Ae,alt:"Check icon"})})]})]})}),document.body)}var xe=so;var jo=xe;export{$ as a,B as b,jo as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionMenuDropDown,b as ActionMenuItem,c as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as ActionMenuDropDown,b as ActionMenuItem,c as default}from'../../_chunks/chunk-YMCYR4NV.js';import'../../_chunks/chunk-GTARVX4J.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-54RTNLV2.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-65DHLOE2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-7YM2GCX3.js';import'../../_chunks/chunk-4QONVXGE.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-
|
|
1
|
+
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-7YM2GCX3.js';import'../../_chunks/chunk-4QONVXGE.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-65DHLOE2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-GVI7AAHI.js';import'../../_chunks/chunk-5265LVLZ.js';import'../../_chunks/chunk-3YZZCLZM.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-65DHLOE2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ChartTooltip,b as LoadingChart,c as default}from'../../_chunks/chunk-P6AANDMG.js';import'../../_chunks/chunk-54RTNLV2.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-
|
|
1
|
+
export{a as ChartTooltip,b as LoadingChart,c as default}from'../../_chunks/chunk-P6AANDMG.js';import'../../_chunks/chunk-54RTNLV2.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-65DHLOE2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Vc as AmountConversionFilter}from'../../_chunks/chunk-
|
|
1
|
+
export{Vc as AmountConversionFilter}from'../../_chunks/chunk-LENRKQGR.js';import'../../_chunks/chunk-4Y7VUXWK.js';import'../../_chunks/chunk-Q7DXGK4R.js';import'../../_chunks/chunk-HL4IRO4S.js';import'../../_chunks/chunk-PXTLP2CC.js';import'../../_chunks/chunk-XK4S7TQN.js';import'../../_chunks/chunk-52PIMKF7.js';import'../../_chunks/chunk-WBMN7RUZ.js';import'../../_chunks/chunk-6Z43FXSQ.js';import'../../_chunks/chunk-AQSBPX44.js';import'../../_chunks/chunk-7YO3MHIA.js';import'../../_chunks/chunk-OYJTFXHJ.js';import'../../_chunks/chunk-DGAX7HUY.js';import'../../_chunks/chunk-GIMMLEHK.js';import'../../_chunks/chunk-K7E7VQC6.js';import'../../_chunks/chunk-EPAZDHMC.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-KL222BUJ.js';import'../../_chunks/chunk-WWHRZD52.js';import'../../_chunks/chunk-Q75K2RTY.js';import'../../_chunks/chunk-4GZIGNHK.js';import'../../_chunks/chunk-7G4HONFM.js';import'../../_chunks/chunk-QVGSIVO2.js';import'../../_chunks/chunk-GQ2S6SU6.js';import'../../_chunks/chunk-HOCMRLLW.js';import'../../_chunks/chunk-GPH7KOOS.js';import'../../_chunks/chunk-HWJESKWC.js';import'../../_chunks/chunk-VVTHF7YR.js';import'../../_chunks/chunk-QXHIDHUU.js';import'../../_chunks/chunk-SHQLGMEI.js';import'../../_chunks/chunk-VXBU5TPS.js';import'../../_chunks/chunk-C2FOU777.js';import'../../_chunks/chunk-MR7E7S3Z.js';import'../../_chunks/chunk-YABQXVHX.js';import'../../_chunks/chunk-ZYPVGU62.js';import'../../_chunks/chunk-DFOJBASH.js';import'../../_chunks/chunk-CJ5UKWQV.js';import'../../_chunks/chunk-4CCJR5TN.js';import'../../_chunks/chunk-UZSTD2CE.js';import'../../_chunks/chunk-QM55EFW3.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-TLT2S75V.js';import'../../_chunks/chunk-QGOUVN57.js';import'../../_chunks/chunk-KT5OIFAW.js';import'../../_chunks/chunk-UCLMQQVB.js';import'../../_chunks/chunk-HMXIKTDO.js';import'../../_chunks/chunk-LZS3HN7H.js';import'../../_chunks/chunk-BR33EMDB.js';import'../../_chunks/chunk-TPCLHFIE.js';import'../../_chunks/chunk-2DC5PMER.js';import'../../_chunks/chunk-OZ7BUFKX.js';import'../../_chunks/chunk-L7UCO3DZ.js';import'../../_chunks/chunk-YEDSUHFZ.js';import'../../_chunks/chunk-ITYEJ5K7.js';import'../../_chunks/chunk-J55JXVBR.js';import'../../_chunks/chunk-JHXPO26H.js';import'../../_chunks/chunk-BUZ4SKVB.js';import'../../_chunks/chunk-2QOHNFXP.js';import'../../_chunks/chunk-XFMHET4N.js';import'../../_chunks/chunk-CDEAHMMR.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-43Y4G733.js';import'../../_chunks/chunk-U7VUIT37.js';import'../../_chunks/chunk-TGXZLTQS.js';import'../../_chunks/chunk-42DLESST.js';import'../../_chunks/chunk-I3IYLDI6.js';import'../../_chunks/chunk-UAGAZN23.js';import'../../_chunks/chunk-TZ5FU2AJ.js';import'../../_chunks/chunk-FGCM4XG4.js';import'../../_chunks/chunk-PQSELTNR.js';import'../../_chunks/chunk-34QPO4BT.js';import'../../_chunks/chunk-6XXNFAE6.js';import'../../_chunks/chunk-JTC7EPQL.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-VWIY6RR5.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-6VYP72SC.js';import'../../_chunks/chunk-LG2NW6MP.js';import'../../_chunks/chunk-4KSZBODD.js';import'../../_chunks/chunk-AAYATR56.js';import'../../_chunks/chunk-7YM2GCX3.js';import'../../_chunks/chunk-4QONVXGE.js';import'../../_chunks/chunk-GVI7AAHI.js';import'../../_chunks/chunk-5265LVLZ.js';import'../../_chunks/chunk-3YZZCLZM.js';import'../../_chunks/chunk-P6AANDMG.js';import'../../_chunks/chunk-L6FVX4JA.js';import'../../_chunks/chunk-AWNFVAW7.js';import'../../_chunks/chunk-3Q5OZQPU.js';import'../../_chunks/chunk-2XKWNE4A.js';import'../../_chunks/chunk-G3LCY5M2.js';import'../../_chunks/chunk-YMCYR4NV.js';import'../../_chunks/chunk-GTARVX4J.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-54RTNLV2.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-65DHLOE2.js';
|
|
@@ -9,6 +9,6 @@ interface AmountInputI extends BoxProps {
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
selectedCurrency: Currency;
|
|
11
11
|
}
|
|
12
|
-
declare function AmountInput({ amount, setAmount, maxAmount, isError, selectedCurrency,
|
|
12
|
+
declare function AmountInput({ amount, setAmount, maxAmount, isError, selectedCurrency, ...props }: AmountInputI): import("react").JSX.Element;
|
|
13
13
|
declare const _default: import("react").MemoExoticComponent<typeof AmountInput>;
|
|
14
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Xb as default}from'../../_chunks/chunk-
|
|
1
|
+
export{Xb as default}from'../../_chunks/chunk-LENRKQGR.js';import'../../_chunks/chunk-4Y7VUXWK.js';import'../../_chunks/chunk-Q7DXGK4R.js';import'../../_chunks/chunk-HL4IRO4S.js';import'../../_chunks/chunk-PXTLP2CC.js';import'../../_chunks/chunk-XK4S7TQN.js';import'../../_chunks/chunk-52PIMKF7.js';import'../../_chunks/chunk-WBMN7RUZ.js';import'../../_chunks/chunk-6Z43FXSQ.js';import'../../_chunks/chunk-AQSBPX44.js';import'../../_chunks/chunk-7YO3MHIA.js';import'../../_chunks/chunk-OYJTFXHJ.js';import'../../_chunks/chunk-DGAX7HUY.js';import'../../_chunks/chunk-GIMMLEHK.js';import'../../_chunks/chunk-K7E7VQC6.js';import'../../_chunks/chunk-EPAZDHMC.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-KL222BUJ.js';import'../../_chunks/chunk-WWHRZD52.js';import'../../_chunks/chunk-Q75K2RTY.js';import'../../_chunks/chunk-4GZIGNHK.js';import'../../_chunks/chunk-7G4HONFM.js';import'../../_chunks/chunk-QVGSIVO2.js';import'../../_chunks/chunk-GQ2S6SU6.js';import'../../_chunks/chunk-HOCMRLLW.js';import'../../_chunks/chunk-GPH7KOOS.js';import'../../_chunks/chunk-HWJESKWC.js';import'../../_chunks/chunk-VVTHF7YR.js';import'../../_chunks/chunk-QXHIDHUU.js';import'../../_chunks/chunk-SHQLGMEI.js';import'../../_chunks/chunk-VXBU5TPS.js';import'../../_chunks/chunk-C2FOU777.js';import'../../_chunks/chunk-MR7E7S3Z.js';import'../../_chunks/chunk-YABQXVHX.js';import'../../_chunks/chunk-ZYPVGU62.js';import'../../_chunks/chunk-DFOJBASH.js';import'../../_chunks/chunk-CJ5UKWQV.js';import'../../_chunks/chunk-4CCJR5TN.js';import'../../_chunks/chunk-UZSTD2CE.js';import'../../_chunks/chunk-QM55EFW3.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-TLT2S75V.js';import'../../_chunks/chunk-QGOUVN57.js';import'../../_chunks/chunk-KT5OIFAW.js';import'../../_chunks/chunk-UCLMQQVB.js';import'../../_chunks/chunk-HMXIKTDO.js';import'../../_chunks/chunk-LZS3HN7H.js';import'../../_chunks/chunk-BR33EMDB.js';import'../../_chunks/chunk-TPCLHFIE.js';import'../../_chunks/chunk-2DC5PMER.js';import'../../_chunks/chunk-OZ7BUFKX.js';import'../../_chunks/chunk-L7UCO3DZ.js';import'../../_chunks/chunk-YEDSUHFZ.js';import'../../_chunks/chunk-ITYEJ5K7.js';import'../../_chunks/chunk-J55JXVBR.js';import'../../_chunks/chunk-JHXPO26H.js';import'../../_chunks/chunk-BUZ4SKVB.js';import'../../_chunks/chunk-2QOHNFXP.js';import'../../_chunks/chunk-XFMHET4N.js';import'../../_chunks/chunk-CDEAHMMR.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-43Y4G733.js';import'../../_chunks/chunk-U7VUIT37.js';import'../../_chunks/chunk-TGXZLTQS.js';import'../../_chunks/chunk-42DLESST.js';import'../../_chunks/chunk-I3IYLDI6.js';import'../../_chunks/chunk-UAGAZN23.js';import'../../_chunks/chunk-TZ5FU2AJ.js';import'../../_chunks/chunk-FGCM4XG4.js';import'../../_chunks/chunk-PQSELTNR.js';import'../../_chunks/chunk-34QPO4BT.js';import'../../_chunks/chunk-6XXNFAE6.js';import'../../_chunks/chunk-JTC7EPQL.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-VWIY6RR5.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-6VYP72SC.js';import'../../_chunks/chunk-LG2NW6MP.js';import'../../_chunks/chunk-4KSZBODD.js';import'../../_chunks/chunk-AAYATR56.js';import'../../_chunks/chunk-7YM2GCX3.js';import'../../_chunks/chunk-4QONVXGE.js';import'../../_chunks/chunk-GVI7AAHI.js';import'../../_chunks/chunk-5265LVLZ.js';import'../../_chunks/chunk-3YZZCLZM.js';import'../../_chunks/chunk-P6AANDMG.js';import'../../_chunks/chunk-L6FVX4JA.js';import'../../_chunks/chunk-AWNFVAW7.js';import'../../_chunks/chunk-3Q5OZQPU.js';import'../../_chunks/chunk-2XKWNE4A.js';import'../../_chunks/chunk-G3LCY5M2.js';import'../../_chunks/chunk-YMCYR4NV.js';import'../../_chunks/chunk-GTARVX4J.js';import'../../_chunks/chunk-YHKF6F6S.js';import'../../_chunks/chunk-54RTNLV2.js';import'../../_chunks/chunk-PLMJIRXJ.js';import'../../_chunks/chunk-WHXHVOBY.js';import'../../_chunks/chunk-YKKS24ES.js';import'../../_chunks/chunk-65DHLOE2.js';
|