@tap-payments/os-micro-frontend-shared 0.3.150 → 0.3.151
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-JHIPGNC2.js → chunk-26M2HXR5.js} +1 -1
- package/build/_chunks/{chunk-RBCDAZB4.js → chunk-2CIV4TII.js} +1 -1
- package/build/_chunks/{chunk-JQ6FKHTQ.js → chunk-2U6YCW6N.js} +1 -1
- package/build/_chunks/{chunk-UFH7CDWV.js → chunk-2WHC5EPT.js} +1 -1
- package/build/_chunks/{chunk-4PJI6O5J.js → chunk-2YUYBTYF.js} +1 -1
- package/build/_chunks/{chunk-3LNOZKKV.js → chunk-3L2BA4XQ.js} +1 -1
- package/build/_chunks/{chunk-RS5TVJ7R.js → chunk-3VOBVZFJ.js} +1 -1
- package/build/_chunks/chunk-4DSO4G5S.js +1 -0
- package/build/_chunks/{chunk-HMGDQO2F.js → chunk-4IRFUOW5.js} +2 -2
- package/build/_chunks/{chunk-N3IRDIUC.js → chunk-4XDOS6NM.js} +1 -1
- package/build/_chunks/{chunk-XOVRZTNZ.js → chunk-5ALWC7FS.js} +1 -1
- package/build/_chunks/{chunk-YO3V43XF.js → chunk-6NNBWGIW.js} +1 -1
- package/build/_chunks/chunk-6OIXV5L2.js +1 -0
- package/build/_chunks/{chunk-TLZLKR7U.js → chunk-6ZDUY6EO.js} +1 -1
- package/build/_chunks/{chunk-DOT5ZDI2.js → chunk-767TZTOZ.js} +1 -1
- package/build/_chunks/{chunk-ODWWMBLG.js → chunk-77BF7TSG.js} +1 -1
- package/build/_chunks/{chunk-4YOQZXWJ.js → chunk-7OEJSZPG.js} +1 -1
- package/build/_chunks/{chunk-EF4ASBGX.js → chunk-7U4TEMF7.js} +1 -1
- package/build/_chunks/chunk-7UD2S336.js +1 -0
- package/build/_chunks/{chunk-INEO72VG.js → chunk-ABYPGA6A.js} +1 -1
- package/build/_chunks/{chunk-WXZAKC23.js → chunk-AVIDTGY5.js} +1 -1
- package/build/_chunks/{chunk-XZQENYCJ.js → chunk-BNWEQO2B.js} +1 -1
- package/build/_chunks/chunk-BXMBE224.js +1 -0
- package/build/_chunks/chunk-C6FBKUMX.js +1 -0
- package/build/_chunks/{chunk-G7NWZUZ3.js → chunk-CAV4XNQI.js} +1 -1
- package/build/_chunks/chunk-CO3EEXJQ.js +2 -0
- package/build/_chunks/{chunk-YPGVUZUZ.js → chunk-CWBSYHQB.js} +1 -1
- package/build/_chunks/{chunk-2IK5GP7X.js → chunk-DBKRFR7R.js} +1 -1
- package/build/_chunks/{chunk-EKMLYUWT.js → chunk-DLHTKK6K.js} +1 -1
- package/build/_chunks/{chunk-2SGS6G77.js → chunk-DV5XS66I.js} +1 -1
- package/build/_chunks/{chunk-4FNSHIAS.js → chunk-DXJJ34JD.js} +1 -1
- package/build/_chunks/{chunk-3UHLQWRW.js → chunk-DYLJN3W4.js} +1 -1
- package/build/_chunks/{chunk-TGKCKZOV.js → chunk-DYNS62II.js} +1 -1
- package/build/_chunks/{chunk-Y6KG2IWI.js → chunk-EH6DS7Z7.js} +1 -1
- package/build/_chunks/{chunk-XH5AY5UF.js → chunk-F44NMQ5K.js} +1 -1
- package/build/_chunks/{chunk-WZM4DBSN.js → chunk-F6UETIKM.js} +1 -1
- package/build/_chunks/{chunk-25H25Q54.js → chunk-FKYLAEBS.js} +1 -1
- package/build/_chunks/{chunk-ZZHAYV5P.js → chunk-FYOVM5SL.js} +1 -1
- package/build/_chunks/{chunk-UAHUS5PL.js → chunk-FZJGVE3N.js} +1 -1
- package/build/_chunks/{chunk-M5MYK5ZE.js → chunk-GIJKKRNG.js} +1 -1
- package/build/_chunks/{chunk-2Z4YOMWE.js → chunk-GIWRSAQ2.js} +1 -1
- package/build/_chunks/{chunk-EDJGLQW3.js → chunk-GWT72RF2.js} +1 -1
- package/build/_chunks/{chunk-OLRRHASW.js → chunk-GYI5NSQ5.js} +1 -1
- package/build/_chunks/{chunk-5ZAUKWVJ.js → chunk-H6HHXYRL.js} +1 -1
- package/build/_chunks/{chunk-IGIVQ5NH.js → chunk-HBTIZDBD.js} +1 -1
- package/build/_chunks/{chunk-B4AATE4F.js → chunk-HEVN6IWL.js} +1 -1
- package/build/_chunks/{chunk-JQRIG5FB.js → chunk-HIILTBHV.js} +2 -2
- package/build/_chunks/{chunk-4YIPQAS5.js → chunk-JVVVLEUF.js} +1 -1
- package/build/_chunks/{chunk-6UOULENE.js → chunk-JYTLSEW2.js} +1 -1
- package/build/_chunks/chunk-K5MU74T4.js +1 -0
- package/build/_chunks/chunk-KCEYICHJ.js +2 -0
- package/build/_chunks/chunk-KCXHCJAA.js +1 -0
- package/build/_chunks/{chunk-LXK6RPQQ.js → chunk-KKIVDOOU.js} +1 -1
- package/build/_chunks/{chunk-CCQTVHAD.js → chunk-KPR7PEDZ.js} +1 -1
- package/build/_chunks/{chunk-ZAYD5F7Y.js → chunk-KW2A7ATU.js} +1 -1
- package/build/_chunks/{chunk-HJ4J56OP.js → chunk-KZZ4GNLK.js} +1 -1
- package/build/_chunks/{chunk-7H5XBVPX.js → chunk-L2RZBHC7.js} +1 -1
- package/build/_chunks/{chunk-QRGXADXK.js → chunk-LA3XKVYQ.js} +1 -1
- package/build/_chunks/chunk-LDLGBNMM.js +1 -0
- package/build/_chunks/{chunk-VSXBLD2E.js → chunk-M5XBR2HX.js} +1 -1
- package/build/_chunks/{chunk-25TBIK37.js → chunk-MDJ47T6T.js} +1 -1
- package/build/_chunks/{chunk-MYPSQEJ5.js → chunk-MINGPVVR.js} +1 -1
- package/build/_chunks/{chunk-IKUDFCXC.js → chunk-MVTU6CC5.js} +1 -1
- package/build/_chunks/{chunk-S4RT3VB6.js → chunk-N2Q6HRNZ.js} +1 -1
- package/build/_chunks/{chunk-LIIULUSD.js → chunk-N3FCB33M.js} +1 -1
- package/build/_chunks/{chunk-2AWDKWKY.js → chunk-NA72WEHU.js} +1 -1
- package/build/_chunks/{chunk-NP25LI2M.js → chunk-NBGDT62B.js} +1 -1
- package/build/_chunks/{chunk-TEGPKTJ6.js → chunk-NJFK5TAC.js} +1 -1
- package/build/_chunks/chunk-NTJZ733T.js +1 -0
- package/build/_chunks/{chunk-KC4HCR3X.js → chunk-NY3LCGE5.js} +1 -1
- package/build/_chunks/{chunk-WQXW2YTH.js → chunk-O2SPQA5J.js} +1 -1
- package/build/_chunks/{chunk-2VW4TETV.js → chunk-O5KFJKRT.js} +1 -1
- package/build/_chunks/{chunk-BU7IMNX6.js → chunk-OK6HCBL2.js} +1 -1
- package/build/_chunks/{chunk-54QYUSHQ.js → chunk-OMFYODPG.js} +1 -1
- package/build/_chunks/{chunk-TMKPQNTQ.js → chunk-OVUUOEZN.js} +1 -1
- package/build/_chunks/{chunk-QBAIMI2A.js → chunk-P2DG6H76.js} +1 -1
- package/build/_chunks/{chunk-ZI2427WJ.js → chunk-PB4RPRX3.js} +1 -1
- package/build/_chunks/{chunk-CHBYSMFC.js → chunk-PPC5EHKW.js} +1 -1
- package/build/_chunks/{chunk-RZDTMTLU.js → chunk-PUIZRXVZ.js} +1 -1
- package/build/_chunks/{chunk-HA4UOJIP.js → chunk-PVUEYH5J.js} +1 -1
- package/build/_chunks/{chunk-AWXRPX7U.js → chunk-QRU7WDPB.js} +2 -2
- package/build/_chunks/{chunk-65ROHES3.js → chunk-R4GFBLY3.js} +1 -1
- package/build/_chunks/{chunk-XONJTPVT.js → chunk-R7TZPC2K.js} +1 -1
- package/build/_chunks/{chunk-MBQCD5AC.js → chunk-RHUTFOWS.js} +1 -1
- package/build/_chunks/{chunk-BFHCHIY3.js → chunk-RMTT4FOG.js} +1 -1
- package/build/_chunks/{chunk-7W7ZXZDB.js → chunk-RSZUTATX.js} +1 -1
- package/build/_chunks/{chunk-VSVL2PNY.js → chunk-RW3NBL6C.js} +1 -1
- package/build/_chunks/{chunk-M2OAS36B.js → chunk-RWIFX3JL.js} +1 -1
- package/build/_chunks/{chunk-QCMIRJFM.js → chunk-S2VISI6Z.js} +1 -1
- package/build/_chunks/{chunk-DLGM747U.js → chunk-TKEWLZ3T.js} +1 -1
- package/build/_chunks/{chunk-2GUSQI3N.js → chunk-TNJNIJJH.js} +1 -1
- package/build/_chunks/{chunk-EGQ7DSVR.js → chunk-TNV4RSI6.js} +1 -1
- package/build/_chunks/{chunk-WAQHJCE2.js → chunk-UC7E3QT2.js} +1 -1
- package/build/_chunks/{chunk-T3XQWHTK.js → chunk-UJ4IYIJH.js} +1 -1
- package/build/_chunks/{chunk-H7HCLGNO.js → chunk-UJ5BJK35.js} +1 -1
- package/build/_chunks/{chunk-S3OR26U4.js → chunk-ULE5G4WB.js} +1 -1
- package/build/_chunks/{chunk-OFCF6G2S.js → chunk-VB7FCFAH.js} +1 -1
- package/build/_chunks/{chunk-3VUNIEDW.js → chunk-VSJHH432.js} +1 -1
- package/build/_chunks/{chunk-JZCM7T3M.js → chunk-WLBPY6QG.js} +1 -1
- package/build/_chunks/{chunk-KWBCIIK4.js → chunk-X2IIYK74.js} +1 -1
- package/build/_chunks/{chunk-5DQPJCQP.js → chunk-XEEGI3DA.js} +1 -1
- package/build/_chunks/{chunk-AMHTC5C2.js → chunk-YLDK4XKQ.js} +1 -1
- package/build/_chunks/{chunk-UPUPMXR3.js → chunk-YYWTZ25R.js} +1 -1
- package/build/_chunks/{chunk-2VCDJEGW.js → chunk-Z66FPFEW.js} +1 -1
- package/build/_chunks/{chunk-VH2A4PRP.js → chunk-ZGLDEF2J.js} +1 -1
- package/build/components/AccountDropdown/index.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/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- 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/Button/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/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/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/CopyImage/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/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/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/DropdownButton/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/FieldFeedback/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/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- 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/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/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/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/RemoteFallback/index.js +1 -1
- 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/ScrollLoader/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/Skeleton/index.js +1 -1
- package/build/components/Slider/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/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/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/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/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-2B3IVXKZ.js +0 -1
- package/build/_chunks/chunk-6T5KBRSU.js +0 -1
- package/build/_chunks/chunk-6ZEXMPHP.js +0 -1
- package/build/_chunks/chunk-DYTDDHJN.js +0 -1
- package/build/_chunks/chunk-GOYUV7YE.js +0 -1
- package/build/_chunks/chunk-P2ESF6CK.js +0 -1
- package/build/_chunks/chunk-PAEWONDM.js +0 -2
- package/build/_chunks/chunk-PWJAM3H7.js +0 -1
- package/build/_chunks/chunk-R3NBSKNX.js +0 -2
- package/build/_chunks/chunk-TVAZADLI.js +0 -1
- package/build/_chunks/chunk-UKJ66LPD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-2CIV4TII.js';import {memo,useId,useRef,useMemo}from'react';import v from'@mui/material/Box';import ro from'@mui/material/Popover';import {styled}from'@mui/material/styles';import L from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var P=styled(v,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:r,disabled:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...r&&{borderColor:o.palette.info.dark,background:o.palette.common.white},"& .SelectDropdown_trailing-icon":{color:o.palette.text.primary},"&.SelectDropdown-open":{"& .SelectDropdown_trailing-arrow":{color:o.palette.info.dark}},"&.SelectDropdown-disabled":{"& .SelectDropdown_trailing-icon":{color:o.palette.text.disabled}},...e&&{cursor:"not-allowed"}})),I=styled(v)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a)(({theme:o,selected:r})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...r&&{backgroundColor:"#F8F8F8"}}));var D=jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"}),y={down:0,up:180,left:90,right:-90},Z=["down","up"],j="cubic-bezier(0.4, 0, 0.2, 1)";function q({direction:o="down",size:r=8,transitionEffect:e="rotation",transitionDurationMs:t=200,sx:n,className:p,...d}){let i=typeof r=="number"?r*5/8:"auto",m=e==="none"?"none":`opacity ${t}ms ease-in-out`,g=e==="none"?"none":`transform ${t}ms ${j}`,a=`${p??""} MUISvgIcon__trailing-arrow-icon`;return e==="fade"?jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"inherit",position:"relative",overflow:"visible",...n},className:a,...d,children:Z.map(s=>jsx("g",{transform:`rotate(${y[s]} 4 2.5)`,style:{opacity:o===s?1:0,transition:m,pointerEvents:"none"},children:D},s))}):jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"text.primary",transform:`rotate(${y[o]}deg)`,transformOrigin:"50% 50%",transition:g,...n},className:a,...d,children:D})}var T=q;var K="M0.110352 0.700684C0.107667 0.584484 0.13977 0.470009 0.203125 0.372559C0.266534 0.275041 0.358424 0.199466 0.46582 0.154785C0.573201 0.110137 0.691824 0.0987907 0.805664 0.122559C0.919306 0.146383 1.02308 0.203847 1.10352 0.287598L1.10547 0.289551L3.59766 2.78076L3.6748 2.85889L3.75293 2.78076L6.24512 0.289551L6.24609 0.287598C6.29924 0.23225 6.36317 0.188178 6.43359 0.157715C6.50408 0.12725 6.58044 0.110644 6.65723 0.109863C6.73385 0.109132 6.80991 0.123886 6.88086 0.152832C6.95193 0.18185 7.017 0.22453 7.07129 0.278809C7.12559 0.333107 7.16824 0.398144 7.19727 0.469238C7.22623 0.540187 7.24095 0.616243 7.24023 0.692871C7.23945 0.769659 7.22285 0.846017 7.19238 0.916504C7.1771 0.951852 7.1586 0.985627 7.13672 1.01709L7.0625 1.104L7.06055 1.10498L4.56934 3.59717L4.49121 3.67529L7.0625 6.24658C7.11787 6.29976 7.16193 6.36362 7.19238 6.43408C7.22278 6.50446 7.23942 6.58008 7.24023 6.65674C7.24101 6.73353 7.22629 6.81025 7.19727 6.88135C7.16829 6.95222 7.12539 7.01662 7.07129 7.0708C7.01702 7.12507 6.95191 7.16775 6.88086 7.19678C6.80988 7.22576 6.73389 7.24048 6.65723 7.23975C6.58044 7.23897 6.50408 7.22334 6.43359 7.19287C6.36315 7.16242 6.29925 7.11834 6.24609 7.06299L6.24512 7.06104L3.75293 4.56885L3.6748 4.4917L1.10449 7.06201L1.04004 7.11865C0.972059 7.17051 0.89296 7.20736 0.808594 7.2251C0.696438 7.24861 0.579855 7.23782 0.473633 7.19482C0.367223 7.15166 0.275113 7.07813 0.210938 6.98291C0.146759 6.88765 0.113309 6.77453 0.113281 6.65967C0.113345 6.5826 0.128185 6.50605 0.158203 6.43506C0.188279 6.36398 0.232716 6.29937 0.288086 6.24561L0.289063 6.24463L2.78125 3.75342L2.85938 3.67529L0.289063 1.10498L0.287109 1.104C0.17719 0.998435 0.11395 0.853049 0.110352 0.700684Z";function Q({size:o=8,strokeColor:r="white",strokeWidthSvg:e=.22006,sx:t,className:n,...p}){return jsx(L,{viewBox:"0 0 8 8",inheritViewBox:true,sx:{width:o,height:o,color:"inherit",...t},className:`${n??""} MUISvgIcon__trailing-close-icon`,...p,children:jsx("path",{d:K,fill:"currentColor",stroke:r,strokeWidth:e})})}var N=Q;function to(o){let{onClose:r,open:e,anchorEl:t,trigger:n,onOpen:p,children:d,disabled:i,listWrapperSx:m,hideArrow:g,onClear:a,hasValue:s,className:u,slotProps:A,...R}=o,E=yc(useId(),"select-dropdown"),f=a&&s,w=useRef(void 0);e&&t&&t.clientWidth>0&&(w.current=t.clientWidth);let M=w.current,{listWrapper:O,popover:H}=A??{},{slotProps:$,...V}=H??{},{paper:F,...z}=$??{},l=F,G={...l,sx:[{width:M??t?.clientWidth,maxWidth:"unset",boxSizing:"border-box"},...l?.sx?Array.isArray(l.sx)?l.sx:[l.sx]:[]]},U=useMemo(()=>["SelectDropdown",e&&"SelectDropdown-open",i&&"SelectDropdown-disabled",u].filter(Boolean).join(" "),[u,e,i]);return jsxs(P,{id:E,open:e,onClick:p,"data-testid":"SelectDropdown",disabled:i,className:U,...R,children:[jsx(v,{className:"SelectDropdown_trigger",sx:{flex:1,cursor:"pointer"},children:n}),jsxs(v,{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:8,className:"SelectDropdown_trailing-icon",role:"button",...f&&{sx:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),h.preventDefault(),a();}},children:[!g&&!f&&jsx(T,{className:"SelectDropdown_trailing-arrow",direction:e?"up":"down",transitionEffect:"fade"}),f&&jsx(N,{className:"SelectDropdown_trailing-close"})]}),jsx(ro,{open:e,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},...V,slotProps:{...z,paper:G},children:jsx(I,{className:"SelectDropdown_list-wrapper",sx:m,...O,children:d})})]})}var _=memo(to);var _o=_;export{_o as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {h,g,a,f,e,d,c}from'./chunk-
|
|
1
|
+
import {h,g,a,f,e,d,c}from'./chunk-VB7FCFAH.js';import {z}from'./chunk-DV5XS66I.js';import {yc,Ka,g as g$1}from'./chunk-2CIV4TII.js';import {vl,ka,Ua,Lg,fl,Za,Ta,Ug,Tg,Vg,Sg,Xg,Ab,zb,xk,fk,hb,sk,C,w,B,E,Qh,ek,u,yk}from'./chunk-KCEYICHJ.js';import {memo,useId,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function L({isActive:p,disableHover:n}){let[c,C]=useState(false),s=useTheme(),e=()=>{n||C(true);},i=()=>{C(false);},h=p?s.palette.common.white:s.palette.grey[700],u=c?s.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:u,fillOpacity:"0.1",onMouseEnter:e,onMouseLeave:i}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:h})]})})}var vt={inProgress:yk,initiated:yk,abandoned:u,cancelled:ek,reversed:Qh,reports:E,search:B,chevronDown:w,unAuthorized:C,unSettled:sk,unCaptured:hb,captured:fk,authorized:xk,openFlag:zb,closedFlag:Ab,unauthenticated:Xg,authenticated:Sg,paidOut:Vg,scheduled:Tg,checked:Ug,dashedChecked:Ta,deactivated:Za,destination:fl,destinationReversed:Lg,outstanding:Ua,active:ka,inactive:vl};var Nt=memo(p=>{let{variant:n="inActive",badgeCount:c$1,icon:C,label:s,dropdownOptions:e$1,selectedStatus:i,onButtonBodyClick:h$1,iconMapper:u=vt,buttonSx:Bt,...bt}=p,St=yc(useId(),"status-button"),[Lt,M]=useState(0),{t:y}=useTranslation(),E=useRef(null),[x,f$1]=useState(null),[o,H]=useState(i??e$1?.[0]?.status);useEffect(()=>{i!==void 0&&H(i);},[i]);let d$1=useMemo(()=>!!e$1?.length,[e$1]),I=!!x&&Lt>1,l=n==="active",P=useMemo(()=>l?"active":"inactive",[l]),m=useMemo(()=>o?e$1?.find(t=>t.status===o):null,[o,e$1]),kt=useMemo(()=>{if(m?.icon)return jsx(h,{variant:n,children:m.icon});let t=o&&u[o]?o:C;if(t&&u[t])return jsx(g,{icon:t,variant:n,src:u[t],alt:`${t}-icon`})},[m,o,u,C,n]),wt=useMemo(()=>!c$1||Number.isNaN(Ka(c$1))?null:jsx(z,{color:P,children:g$1(Number(c$1))}),[c$1,P]),T=useMemo(()=>d$1?jsx(L,{isActive:l}):null,[d$1,l]);useEffect(()=>{l||(M(0),f$1(null));},[l]);let g$2=useCallback(()=>{f$1(null);},[]),A=useCallback(()=>{d$1&&f$1(I?null:E.current);},[d$1,I]),Mt=useCallback(t=>{t.stopPropagation(),p?.onClick?.(t),h$1?.(o||e$1?.[0]?.status||"all"),A(),M(B=>B+1);},[p,h$1,o,e$1,A]),D=useCallback(t=>B=>{t?.onClick?.(B),H(t.status),g$2();},[g$2]),yt=useMemo(()=>e$1?.map(t=>({...t,onClick:D(t)}))||[],[e$1,D]),Et=a[n],xt=useMemo(()=>m?.label||(o?y(o):s),[m,o,y,s]);return jsxs(Fragment,{children:[jsx(Et,{id:St,"data-testid":"StatusButton",...bt,ref:E,onClick:Mt,statusVariant:n,sx:{...d$1&&{paddingInlineEnd:"27px"},...Bt},children:jsxs(f,{children:[jsxs(e,{variant:n,children:[kt,xt,wt]}),T&&jsx(d,{children:T})]})}),I&&d$1&&jsx(c,{open:I,onClose:g$2,anchorEl:x,menuItems:yt})]})}),gt=Nt;var oo=gt;
|
|
2
2
|
export{L as a,oo as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {x}from'./chunk-KCEYICHJ.js';import {memo,useId,useCallback}from'react';import {Slider}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=["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(", "),d=styled(Slider)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",backgroundImage:`url(${x})`,backgroundRepeat:"no-repeat",backgroundPosition:"center",boxShadow:p,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:p}}}));function t({value:e,min:a,max:n,step:l,disabled:m,onChange:r}){let u=yc(useId(),"slider"),b=useCallback((k,x)=>{r(x);},[r]);return jsx(d,{id:u,"data-testid":"Slider",value:e,min:a,max:n,step:l,disabled:m,onChange:b})}t.displayName="Slider";var h=memo(t);export{h as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {kc,yc,Zb,xa as xa$1,jc,ab}from'./chunk-RBCDAZB4.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Q from'@mui/material/Box';import Fa,{circularProgressClasses}from'@mui/material/CircularProgress';import Ta from'@mui/material/ButtonBase';import {styled,useTheme,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import $e from'@mui/material/SvgIcon';import Wa from'@mui/material/Checkbox';import Ha from'@mui/material/FormControlLabel';import Ka from'@mui/material/Switch';import qa from'@mui/material/Typography';import as from'@mui/material/Radio';import xs,{tooltipClasses}from'@mui/material/Tooltip';import Ss from'@mui/material/Skeleton';import vs from'@mui/material/Avatar';import Fs from'@mui/material/Divider';import Ws from'@mui/material/Collapse';import {createPortal}from'react-dom';import In,{SliderThumb}from'@mui/material/Slider';import Fn from'@mui/material/FormControl';import zn from'@mui/material/InputLabel';import Rn from'@mui/material/Input';import Vn from'@mui/material/InputBase';import Un from'@mui/material/Accordion';import Gn from'@mui/material/AccordionDetails';import _n from'@mui/material/AccordionSummary';import ei from'@mui/material/Popper';import ci from'@mui/material/DialogActions';import fi from'@mui/material/DialogTitle';import ii from'@mui/material/Dialog';import pi from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Oi from'@mui/material/Stack';var E="os-shared-Button",k={root:`${E}-root`,content:`${E}-content`,startIcon:`${E}-startIcon`,endIcon:`${E}-endIcon`,loading:`${E}-loading`,loadingSpinner:`${E}-loadingSpinner`},io={sm:{height:24,padding:"8px 16px",fontSize:"10px"},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px"},lg:{height:40,padding:"8px 32px",fontSize:"12px"}},po={sm:12,md:12,lg:14};var lo=styled(Ta,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...io[t],fontWeight:t==="sm"?e.typography.fontWeightBold:e.typography.fontWeightBolder??700,...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var co=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:p=false,disabled:i,className:l,sx:d,...m},c)=>jsxs(lo,{ref:c,className:kc(k.root,l),$variant:o,$size:t,$fullWidth:p,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:d,...m,children:[jsxs(Q,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Q,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(Q,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Q,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Fa,{className:k.loadingSpinner,size:po[t],color:"inherit"})})]}));co.displayName="Button";var fo=memo(co);var za="os-shared-Icon",oe={root:`${za}-root`};var yo=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var uo=forwardRef(({className:e,sx:o,...t},r)=>jsx(yo,{className:kc(oe.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));uo.displayName="Icon";var xo=memo(uo);var Me="os-shared-Checkbox",$={root:`${Me}-root`,control:`${Me}-control`,label:`${Me}-label`};var go=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:e?"#D2D5D8":t.common.white})]})},Co=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsx($e,{viewBox:"0 0 11 11",sx:{width:11,height:11},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":t.common.white,stroke:e?"#D2D5D8":t.grey[500],strokeWidth:"1.2"})})},ho=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]})};var No=styled(Wa)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),ko=styled(Ha)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var wo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},p)=>{let i=yc(useId(),"checkbox"),l=jsx(No,{id:i,ref:p,disableRipple:true,disabled:t,checkedIcon:jsx(go,{disabled:t}),icon:jsx(Co,{disabled:t}),indeterminateIcon:jsx(ho,{disabled:t}),"data-testid":"Checkbox",className:kc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(ko,{className:kc($.root,a),sx:r,control:l,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):l});wo.displayName="Checkbox";var Io=memo(wo);var ja="os-shared-Switch",te={root:`${ja}-root`};var Bo=styled(Ka)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var vo=forwardRef(({className:e,sx:o,...t},r)=>jsx(Bo,{ref:r,className:kc(te.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));vo.displayName="Switch";var Po=memo(vo);var Ya="os-shared-Typography",re={root:`${Ya}-root`};var To=styled(qa)(({theme:e})=>({color:e.palette.text.primary}));var Mo=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...p},i)=>{let l=useTheme(),d={regular:l.typography.fontWeightRegular,medium:l.typography.fontWeightMedium,semibold:l.typography.fontWeightBold,bold:l.typography.fontWeightBolder??700},m=o!==void 0?typeof o=="number"?o:d[o]:void 0,c=Array.isArray(s)?s:[s];return jsx(To,{ref:i,className:kc(re.root,a),variant:e,sx:[m!==void 0&&{fontWeight:m},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...c],"data-testid":"Typography",...p})});Mo.displayName="Typography";var $o=memo(Mo);var rs="os-shared-RadioButton",ae={root:`${rs}-root`},Lo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var ze=styled("span")({display:"flex",alignItems:"center",justifyContent:"center"}),Re=styled("span",{shouldForwardProp:e=>e!=="$checked"&&e!=="$disabled"})(({theme:e,$checked:o=false,$disabled:t=false})=>({borderRadius:"50%","--icon-size":"11px",width:"var(--icon-size)",height:"var(--icon-size)",display:"block",boxSizing:"border-box",...o?{backgroundColor:t?"#BDC1CC":e.palette.info.dark,...!t&&{boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"},"&::before":{display:"block",width:"var(--icon-size)",height:"var(--icon-size)",backgroundColor:t?"#BDC1CC":e.palette.info.dark,borderRadius:"50%",backgroundImage:`radial-gradient(${e.palette.common.white},${e.palette.common.white} 28%,transparent 32%)`,content:'""'}}:{border:`1px solid ${t?e.palette.grey[800]:e.palette.grey[700]}`,...t&&{backgroundColor:e.palette.grey[400]}}})),Fo=styled(as,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({theme:e,$iconSize:o,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:s})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:s,cursor:"pointer",color:e.palette.grey[500],"&.Mui-checked":{color:t??e.palette.info.dark},...a&&{"&:hover":{backgroundColor:"transparent",color:a}},"&.Mui-disabled":{color:r??"#C7C7CC"}}));function zo(e="sm"){return Lo[e]}var Ro=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:p,sx:i,disableRipple:l=true,icon:d,disabled:m,...c},y)=>{let f=zo(e);return jsx(Fo,{ref:y,className:kc(ae.root,p),"data-testid":"RadioButton",size:f.muiSize,disableRipple:l,disabled:m,icon:d??jsx(ze,{children:jsx(Re,{$checked:false,$disabled:m})}),checkedIcon:o??jsx(ze,{children:jsx(Re,{$checked:true,$disabled:m})}),$iconSize:s??f.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:f.maxWidth,sx:i,...c})});Ro.displayName="RadioButton";var Ao=memo(Ro);var se="os-shared-CircularProgress",L={root:`${se}-root`,progress:`${se}-progress`,labelOverlay:`${se}-labelOverlay`,labelText:`${se}-labelText`};var Eo=styled(Fa)(({theme:e})=>({color:e.palette.common.blue??"#147DC5",background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Wo=styled(Q)(()=>({position:"relative",display:"inline-flex"})),Ho=styled(Q)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Vo=styled(qa)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var Oo=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},p)=>{let i=e==="determinate"&&o;return jsxs(Wo,{className:kc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Eo,{ref:p,variant:e,value:t,className:L.progress,...s}),i&&jsx(Ho,{className:L.labelOverlay,children:jsx(Vo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Oo.displayName="CircularProgress";var Zo=memo(Oo);var ys="os-shared-Tooltip",ie={wrapper:`${ys}-wrapper`};var Uo=styled(({className:e,...o})=>createElement(xs,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function _o({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...p}){return jsx(Uo,{className:e,title:o,placement:t,arrow:true,sx:s,...p,children:jsx(Q,{display:"flex",alignItems:"center",className:ie.wrapper,...a,children:r})})}_o.displayName="Tooltip";var Xo=memo(_o);var bs="os-shared-Skeleton",pe={root:`${bs}-root`},Yo="rounded",qo=16;var Jo=styled(Ss)(()=>({}));var Qo=forwardRef(({className:e,sx:o,variant:t=Yo,height:r=qo,...a},s)=>jsx(Jo,{ref:s,className:kc(pe.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Qo.displayName="Skeleton";var et=memo(Qo);var Bs="os-shared-Avatar",le={root:`${Bs}-root`},ot={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var tt=styled(vs,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=ot[o];return {width:t,height:t,fontSize:r,fontWeight:e.typography.fontWeightBold,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var rt=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(tt,{ref:s,className:kc(le.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));rt.displayName="Avatar";var at=memo(rt);var Ls="os-shared-Divider",me={root:`${Ls}-root`};var st=styled(Fs)(()=>({}));var nt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(st,{ref:a,className:kc(me.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));nt.displayName="Divider";var it=memo(nt);var Es="os-shared-Collapse",de={root:`${Es}-root`},pt=true,lt=300;var mt=styled(Ws)(()=>({}));var dt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=pt,timeout:a=lt,...s},p)=>jsx(mt,{ref:p,className:kc(de.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));dt.displayName="Collapse";var ct=memo(dt);var js="os-shared-Badge",ce={root:`${js}-root`},ft={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"},yt=["primary","secondary","neutral","dark"];var Gs={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark,red:e=>e.palette.error.light},_s={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Xs(e,o){let t=ft[e];return t||(Gs[e]?.(o)??o.palette.common.white)}function Ys(e,o){return yt.includes(e)?o.palette.common.white:_s[e]?.(o)??o.palette.common.white}var ut=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Xs(o,e),color:Ys(o,e),fontSize:"0.6rem",fontWeight:e.typography.fontWeightBold,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var xt=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:p,...i},l)=>jsx(ut,{ref:l,className:kc(ce.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:p}));xt.displayName="Badge";var gt=memo(xt);var en="os-shared-Backdrop",fe={root:`${en}-root`};var Ct=styled(Q)(({theme:e})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(e.palette.common.black,.3)}));var ht=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},p)=>{if(!t)return null;let i=l=>{r?.(),a?.(l);};return createPortal(jsx(Ct,{ref:p,className:kc(fe.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});ht.displayName="Backdrop";var bt=memo(ht);var ye="os-shared-CopyButton",B={root:`${ye}-root`,icon:`${ye}-icon`,copyIcon:`${ye}-copyIcon`,copiedIcon:`${ye}-copiedIcon`},St=2e3,Nt=200;var It=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Bt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var Pt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),De=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${Nt}ms ease`}));var Tt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=St,onClick:a,...s},p)=>{let[i,l]=useState(false),d=m=>{m.stopPropagation(),ab(t),l(true),setTimeout(()=>l(false),r),a?.(m);};return jsxs(Pt,{ref:p,className:kc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:d,...s,children:[jsx(De,{className:kc(B.icon,B.copyIcon),$visible:!i,children:jsx(It,{})}),jsx(De,{className:kc(B.icon,B.copiedIcon),$visible:i,children:jsx(Bt,{})})]})});Tt.displayName="CopyButton";var Mt=memo(Tt);var Ee="os-shared-ProgressBar",H={root:`${Ee}-root`,fill:`${Ee}-fill`,text:`${Ee}-text`};var Lt=styled(Q,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue??"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:alpha(e.palette.text.primary,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}})),Ft=styled(Q,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(e.palette.text.primary,26/255),borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(e.palette.text.primary,0)}})),zt=styled(qa,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:e.palette.common.white,padding:"2px 4px",...o===0&&{color:alpha(e.palette.grey.A100,.5)}}));var At=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Lt,{ref:r,className:kc(H.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ft,{className:H.fill,$value:t,children:jsxs(zt,{className:H.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});At.displayName="ProgressBar";var Dt=memo(At);var ge="os-shared-Chip",v={root:`${ge}-root`,text:`${ge}-text`,copyButton:`${ge}-copyButton`,icon:`${ge}-icon`},Et=2e3,He=150;var Vt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Ot=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var he=styled(Q,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:`${e.palette.common.white} 7px 0px 8px 2px`},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Ve=styled(Q)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),jt=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:`opacity ${He}ms ease`,"&:hover":{opacity:1}})),Oe=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${He}ms ease`}));var Kt=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:p=false,copyText:i,unknownText:l="Unknown",disableAnimation:d=false,...m},c)=>{let[y,f]=useState(false),g=x=>{x.stopPropagation(),i&&(ab(i),f(true),setTimeout(()=>f(false),Et));},C={$variant:a,$hasIcon:r!=null,$isSelected:p,$disableAnimation:d},u=kc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(he,{ref:c,className:u,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...m,children:[jsx(Ve,{className:v.text,"data-is-arabic":typeof t=="string"&&Zb(t),children:t}),jsxs(jt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Oe,{$visible:!y,children:jsx(Vt,{})}),jsx(Oe,{$visible:y,children:jsx(Ot,{})})]})]}):jsxs(he,{ref:c,className:u,sx:N,"data-testid":"Chip",...C,...m,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(Ve,{className:v.text,children:t})]}):jsx(he,{className:u,sx:N,"data-testid":"Chip",...C,...m,children:l})});Kt.displayName="Chip";var Ut=memo(Kt);var je="os-shared-Slider",T={root:`${je}-root`,thumb:`${je}-thumb`,thumbIcon:`${je}-thumbIcon`},Ke=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");var Gt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var _t=styled(In)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:Ke,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Ke}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function $n({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,o),...t,children:[e,jsx(Gt,{className:T.thumbIcon})]})}var Xt=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:p,onChange:i,slots:l,...d},m)=>{let c=useCallback((y,f)=>{i(f);},[i]);return jsx(_t,{ref:m,className:kc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:p,onChange:c,...d,slots:{thumb:$n,...l}})});Xt.displayName="Slider";var Yt=memo(Xt);var Ue="os-shared-Input",O={root:`${Ue}-root`,label:`${Ue}-label`,input:`${Ue}-input`},Jt={sm:28,md:32,labelled:40},Qt=["e","E","+","-"],er=/^[0-9.]$/,or=xa$1();var tr=(e,o)=>Jt[e?"labelled":o],rr=styled(Rn,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:tr(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),ar=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),sr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:tr(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var ir=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:p=false,type:i,id:l,className:d,sx:m,onKeyDown:c,onWheel:y,...f},g)=>{let C=!!e,u=i==="number",S=x=>{let D=x.metaKey||x.ctrlKey||x.altKey,Te=x.key.length===1;(Qt.includes(x.key)||or&&Te&&!D&&!er.test(x.key))&&x.preventDefault(),c?.(x);},N=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(sr,{className:kc(O.root,d),sx:m,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(ar,{className:O.label,htmlFor:l,children:e}),jsx(rr,{id:l,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:p,$size:o,onKeyDown:u?S:c,onWheel:u?N:y,...f})]})});ir.displayName="Input";var pr=memo(ir);var _e="os-shared-Textarea",Z={root:`${_e}-root`,label:`${_e}-label`,textarea:`${_e}-textarea`},Xe=20;var lr=styled(Vn,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Xe,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),mr=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),dr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Xe:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var fr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:p,id:i,className:l,sx:d,...m},c)=>{let y=!!e;return jsxs(dr,{className:kc(Z.root,l),sx:d,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(mr,{className:Z.label,htmlFor:i,children:e}),jsx(lr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:p,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...m})]})});fr.displayName="Textarea";var yr=memo(fr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var xr=()=>{let{palette:e}=useTheme();return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:e.text.primary,stroke:e.text.primary,strokeWidth:"0.1"})})};var Cr=styled(Un)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),hr=styled(_n)(({theme:e})=>({background:e.palette.grey.A50??"#fbfbfb",minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),br=styled(Gn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),Sr=styled(Q)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Nr=styled(Q)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Ir=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:p,slotProps:i={},disabled:l=false,expandIcon:d,className:m,sx:c,...y},f)=>{let g=e!==void 0,[C,u]=useState(o),S=g?e:C,N=(_i,ro)=>{g||u(ro),t?.(ro);},{showArrow:x=true,...D}=i.label??{},{className:Te,sx:Ia,...Ba}=i.root??{},va=d??(x?jsx(Sr,{component:"span",className:b.expandIcon,children:jsx(xr,{})}):null),Pa=jsxs(Fragment,{children:[s!=null&&jsx(Q,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:jc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(Nr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),p!=null&&jsx(Q,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:p})]});return jsxs(Cr,{ref:f,"data-testid":"Accordion",disabled:l,expanded:S,onChange:N,className:kc(b.root,m,Te),sx:jc(c??{},Ia),...Ba,...y,children:[jsx(hr,{className:b.summary,expandIcon:va,"aria-expanded":S,...D,children:Pa}),jsx(br,{className:b.content,...i.content,children:a})]})});Ir.displayName="Accordion";var Br=memo(Ir);var vr="os-shared-Menu",X={popper:`${vr}-popper`,panel:`${vr}-panel`},Pr=12;var Mr=styled(ei)({}),$r=styled(Q,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Fr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:p,sx:i,...l},d)=>{let[m,c]=useState(false),f=useMemo(()=>Children.count(t),[t])>Pr&&m,{onScroll:g,className:C,sx:u,...S}=s??{},N=useCallback(D=>{c((D.currentTarget.scrollTop??0)>0),g?.(D);},[g]),x=kc(X.panel,C,"MuiPopper-dropdown");return jsx(Mr,{ref:d,className:kc(X.popper,p),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...l,children:jsx($r,{$showShadow:f,onScroll:N,className:x,sx:jc(i??{},u),...S,children:t})})});Fr.displayName="Menu";var zr=memo(Fr);var Se="os-shared-Dialog",R={root:`${Se}-root`,title:`${Se}-title`,content:`${Se}-content`,actions:`${Se}-actions`};var Ar=styled(ii)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),Dr=styled(pi)(({theme:e})=>({padding:e.spacing(2)}));var Er=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:p,...i},l)=>jsxs(Ar,{ref:l,"data-testid":"Dialog",open:a,onClose:r,className:kc(R.root,s),sx:p,...i,children:[e&&jsx(fi,{className:R.title,children:e}),jsx(Dr,{className:R.content,children:t}),o&&jsx(ci,{className:R.actions,children:o})]}));Er.displayName="Dialog";var Wr=memo(Er);var Ne="os-shared-MenuItem",M={root:`${Ne}-root`,indicator:`${Ne}-indicator`,content:`${Ne}-content`,disabled:`${Ne}-disabled`},A={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Vr=()=>{let{palette:e}=useTheme();return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e.info.dark}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:e.common.white})]})},Or=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),Zr=()=>{let{palette:e}=useTheme();return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e.info.dark,stroke:e.info.dark,strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Ur=styled(Q,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:e.palette.text.primary})),Je=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ci(e,o){return o?A.indeterminate:e?A.checked:A.unchecked}var hi={[A.unchecked]:Or,[A.checked]:Vr,[A.indeterminate]:Zr};function bi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(Je,{className:M.indicator,"aria-hidden":true,children:e});let r=Ci(o,t),a=hi[r];return jsx(Je,{className:M.indicator,"aria-hidden":true,children:jsx(a,{})})}var Gr=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:p,sx:i,...l},d)=>{let m=kc(M.root,"menu-item",o&&M.disabled,p);return jsxs(Ur,{ref:d,"data-testid":"MenuItem",className:m,sx:i,onClick:o?void 0:a,$isDisabled:o,...l,children:[bi(r,e,t),jsx("span",{className:M.content,children:s})]})});Gr.displayName="MenuItem";var _r=memo(Gr);var Xr="os-shared-ToggleButtons",Y={root:`${Xr}-root`,button:`${Xr}-button`};var Jr=styled(Q)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),ki=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),Qr=styled(Q,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:e.typography.fontWeightMedium,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?ki(e):{backgroundColor:"transparent",boxShadow:"none"}}));function oa({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:p,sx:i},l){let{className:d,sx:m,...c}=r??{},y=kc(Y.root,p,d);return jsx(Jr,{ref:l,id:s,"data-testid":"ToggleButtons",className:y,sx:jc(i??{},m),...c,children:e.map(f=>jsx(Qr,{className:Y.button,$isActive:o===f.key,onClick:()=>t(f.key),...a,children:f.content},f.key))})}var Bi=forwardRef(oa);oa.displayName="ToggleButtons";var ta=memo(Bi);var vi="os-shared-LazyImage",we={root:`${vi}-root`},ra={display:"flex",justifyContent:"center",alignItems:"center"},Ie={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var aa=styled(Q)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Be(e){return e!=null&&e in Ie}var Ri=LazyLoadImage,na=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...p},i)=>{let[l,d]=useState(Be(e));if(useEffect(()=>{if(!Be(e)){d(false);return}d(true),Ie[e]().finally(()=>{d(false);});},[e]),l)return null;let{className:m,sx:c,style:y,...f}=o??{},g=Be(e)||!!s||y!=null;return jsx(aa,{component:"span",...f,className:kc(we.root,m??r),sx:c!=null?jc(a??{},c):a,children:jsx(Ri,{...p,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...ra,...y}}:void 0})})});na.displayName="LazyImage";var ia=memo(na);var Qe="os-shared-FieldFeedback",K={root:`${Qe}-root`,icon:`${Qe}-icon`,message:`${Qe}-message`};var la=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom?.[500]??"#FF7A00":t.error.light;return jsx($e,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:r})})})},ma=e=>jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"#39953E"})})}),da=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function ca(e,o){let t=e.palette.custom?.[500]??"#FF7A00";return {warning:{backgroundColor:alpha(t,.15),textColor:t},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var fa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=ca(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),ya=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=ca(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ua=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function Ei(e){return e!=null&&e!==""}function Wi(e){switch(e){case "success":return jsx(ma,{});case "info":return jsx(da,{});case "error":case "warning":return jsx(la,{severity:e})}}var xa=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Ei(o))return null;let p=e;return jsxs(fa,{ref:s,"data-testid":"FieldFeedback",className:kc(K.root,r),sx:a,$feedbackType:p,children:[t??jsx(ua,{className:K.icon,children:Wi(p)}),jsx(ya,{className:K.message,$feedbackType:p,children:o})]})});xa.displayName="FieldFeedback";var ga=memo(xa);var Vi="os-shared-ScrollLoader",Pe={root:`${Vi}-root`},Ca=50;var ha=styled(Oi)({overflow:"auto",height:"100%",maxHeight:"100%"});function to(e,o=Ca){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var ka=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:p,id:i,...l},d)=>{let[m,c]=useState(false),y=useRef(e),f=useRef(null);y.current=e;let g=useCallback(()=>{o&&!r&&y.current();},[o,r]),C=useCallback(()=>{let u=f.current;u&&to(u)&&g();},[g]);return useEffect(()=>{let u=f.current;if(u)return u.addEventListener("scroll",C),()=>u.removeEventListener("scroll",C)},[C]),useEffect(()=>{let u=f.current;if(!u||t||m)return;let S=window.setTimeout(()=>{c(true),to(u)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,m]),jsx(ha,{ref:u=>{f.current=u,typeof d=="function"?d(u):d&&(d.current=u);},id:i,"data-testid":"ScrollLoader",className:kc(Pe.root,s),sx:p,...l,children:a})});ka.displayName="ScrollLoader";var wa=memo(ka);
|
|
1
|
+
import {kc,yc,Zb,xa as xa$1,jc,ab}from'./chunk-2CIV4TII.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import Q from'@mui/material/Box';import Fa,{circularProgressClasses}from'@mui/material/CircularProgress';import Ta from'@mui/material/ButtonBase';import {styled,useTheme,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import $e from'@mui/material/SvgIcon';import Wa from'@mui/material/Checkbox';import Ha from'@mui/material/FormControlLabel';import Ka from'@mui/material/Switch';import qa from'@mui/material/Typography';import as from'@mui/material/Radio';import xs,{tooltipClasses}from'@mui/material/Tooltip';import Ss from'@mui/material/Skeleton';import vs from'@mui/material/Avatar';import Fs from'@mui/material/Divider';import Ws from'@mui/material/Collapse';import {createPortal}from'react-dom';import In,{SliderThumb}from'@mui/material/Slider';import Fn from'@mui/material/FormControl';import zn from'@mui/material/InputLabel';import Rn from'@mui/material/Input';import Vn from'@mui/material/InputBase';import Un from'@mui/material/Accordion';import Gn from'@mui/material/AccordionDetails';import _n from'@mui/material/AccordionSummary';import ei from'@mui/material/Popper';import ci from'@mui/material/DialogActions';import fi from'@mui/material/DialogTitle';import ii from'@mui/material/Dialog';import pi from'@mui/material/DialogContent';import {LazyLoadImage}from'react-lazy-load-image-component';import Oi from'@mui/material/Stack';var E="os-shared-Button",k={root:`${E}-root`,content:`${E}-content`,startIcon:`${E}-startIcon`,endIcon:`${E}-endIcon`,loading:`${E}-loading`,loadingSpinner:`${E}-loadingSpinner`},io={sm:{height:24,padding:"8px 16px",fontSize:"10px"},md:{height:32,minWidth:75,padding:"8px 18px",fontSize:"11px"},lg:{height:40,padding:"8px 32px",fontSize:"12px"}},po={sm:12,md:12,lg:14};var lo=styled(Ta,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"})(({theme:e,$variant:o="primary",$size:t="md",$fullWidth:r,$isLoading:a,$hasIcon:s})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"4px",lineHeight:"100%",textTransform:"capitalize",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...io[t],fontWeight:t==="sm"?e.typography.fontWeightBold:e.typography.fontWeightBolder??700,...r&&{width:"100%"},...s&&!r&&{width:"auto",minWidth:0},...o==="primary"&&{background:e.palette.info.dark,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:"#1a78bb"}},...o==="secondary"&&{backgroundColor:e.palette.common.white,color:e.palette.grey[700],border:`1px solid ${e.palette.divider}`,"&:hover:not(:disabled)":{backgroundColor:e.palette.grey[100]}},...o==="ghost"&&{backgroundColor:"transparent",color:e.palette.info.dark,"&:hover:not(:disabled)":{backgroundColor:e.palette.info.light}},...o==="danger"&&{backgroundColor:e.palette.error.main,color:e.palette.common.white,"&:hover:not(:disabled)":{backgroundColor:e.palette.error.light}},"&.Mui-disabled":{opacity:.5}}));var co=forwardRef(({children:e,variant:o="primary",size:t="md",isLoading:r=false,startIcon:a,endIcon:s,fullWidth:p=false,disabled:i,className:l,sx:d,...m},c)=>jsxs(lo,{ref:c,className:kc(k.root,l),$variant:o,$size:t,$fullWidth:p,$isLoading:r,$hasIcon:!!a||!!s||r,disabled:i||r,"data-testid":"Button",sx:d,...m,children:[jsxs(Q,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:[a&&jsx(Q,{component:"span",className:k.startIcon,sx:{display:"inline-flex",alignItems:"center"},children:a}),e,s&&jsx(Q,{component:"span",className:k.endIcon,sx:{display:"inline-flex",alignItems:"center"},children:s})]}),r&&jsx(Q,{component:"span",className:k.loading,sx:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:jsx(Fa,{className:k.loadingSpinner,size:po[t],color:"inherit"})})]}));co.displayName="Button";var fo=memo(co);var za="os-shared-Icon",oe={root:`${za}-root`};var yo=styled("img")(({theme:e})=>({width:e.spacing(2),height:e.spacing(2),verticalAlign:"middle",flexShrink:0}));var uo=forwardRef(({className:e,sx:o,...t},r)=>jsx(yo,{className:kc(oe.root,e),sx:o,"data-testid":"Icon",...t,ref:r}));uo.displayName="Icon";var xo=memo(uo);var Me="os-shared-Checkbox",$={root:`${Me}-root`,control:`${Me}-control`,label:`${Me}-label`};var go=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:e?"#D2D5D8":t.common.white})]})},Co=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsx($e,{viewBox:"0 0 11 11",sx:{width:11,height:11},...o,children:jsx("rect",{x:"0.6",y:"0.6",width:"9.6",height:"9.6",rx:"1.8",fill:e?"#FAFBFB":t.common.white,stroke:e?"#D2D5D8":t.grey[500],strokeWidth:"1.2"})})},ho=({disabled:e,...o})=>{let{palette:t}=useTheme();return jsxs($e,{viewBox:"0 0 12 12",sx:{width:11,height:11},...o,children:[e?jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"}):jsx("rect",{width:"12",height:"12",rx:"2.4",fill:t.info.dark}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:e?"#D2D5D8":"#FAFBFB"})]})};var No=styled(Wa)(({theme:e})=>({padding:e.spacing(.5),"&:hover":{backgroundColor:"transparent"}})),ko=styled(Ha)(({theme:e})=>({marginLeft:0,gap:e.spacing(.5),"& .MuiFormControlLabel-label":{fontSize:"11px",color:e.palette.text.primary},"& .MuiFormControlLabel-label.Mui-disabled":{color:e.palette.grey[700]}}));var wo=forwardRef(({label:e,labelPlacement:o="end",disabled:t,sx:r,className:a,...s},p)=>{let i=yc(useId(),"checkbox"),l=jsx(No,{id:i,ref:p,disableRipple:true,disabled:t,checkedIcon:jsx(go,{disabled:t}),icon:jsx(Co,{disabled:t}),indeterminateIcon:jsx(ho,{disabled:t}),"data-testid":"Checkbox",className:kc(e?$.control:$.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(ko,{className:kc($.root,a),sx:r,control:l,label:e,labelPlacement:o,disabled:t,componentsProps:{typography:{className:$.label}}}):l});wo.displayName="Checkbox";var Io=memo(wo);var ja="os-shared-Switch",te={root:`${ja}-root`};var Bo=styled(Ka)(({theme:e})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:e.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:e.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));var vo=forwardRef(({className:e,sx:o,...t},r)=>jsx(Bo,{ref:r,className:kc(te.root,e),sx:o,"data-testid":"Switch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...t}));vo.displayName="Switch";var Po=memo(vo);var Ya="os-shared-Typography",re={root:`${Ya}-root`};var To=styled(qa)(({theme:e})=>({color:e.palette.text.primary}));var Mo=forwardRef(({variant:e="body1",weight:o,isTruncated:t=false,isUppercase:r=false,className:a,sx:s,...p},i)=>{let l=useTheme(),d={regular:l.typography.fontWeightRegular,medium:l.typography.fontWeightMedium,semibold:l.typography.fontWeightBold,bold:l.typography.fontWeightBolder??700},m=o!==void 0?typeof o=="number"?o:d[o]:void 0,c=Array.isArray(s)?s:[s];return jsx(To,{ref:i,className:kc(re.root,a),variant:e,sx:[m!==void 0&&{fontWeight:m},t&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r&&{textTransform:"uppercase"},...c],"data-testid":"Typography",...p})});Mo.displayName="Typography";var $o=memo(Mo);var rs="os-shared-RadioButton",ae={root:`${rs}-root`},Lo={sm:{iconSize:15,maxWidth:"24px",muiSize:"small"},md:{iconSize:18,maxWidth:"28px",muiSize:"medium"},lg:{iconSize:20,maxWidth:"32px",muiSize:"medium"}};var ze=styled("span")({display:"flex",alignItems:"center",justifyContent:"center"}),Re=styled("span",{shouldForwardProp:e=>e!=="$checked"&&e!=="$disabled"})(({theme:e,$checked:o=false,$disabled:t=false})=>({borderRadius:"50%","--icon-size":"11px",width:"var(--icon-size)",height:"var(--icon-size)",display:"block",boxSizing:"border-box",...o?{backgroundColor:t?"#BDC1CC":e.palette.info.dark,...!t&&{boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"},"&::before":{display:"block",width:"var(--icon-size)",height:"var(--icon-size)",backgroundColor:t?"#BDC1CC":e.palette.info.dark,borderRadius:"50%",backgroundImage:`radial-gradient(${e.palette.common.white},${e.palette.common.white} 28%,transparent 32%)`,content:'""'}}:{border:`1px solid ${t?e.palette.grey[800]:e.palette.grey[700]}`,...t&&{backgroundColor:e.palette.grey[400]}}})),Fo=styled(as,{shouldForwardProp:e=>e!=="$iconSize"&&e!=="$checkedColor"&&e!=="$disabledColor"&&e!=="$hoverColor"&&e!=="$maxWidth"})(({theme:e,$iconSize:o,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:s})=>({"& .MuiSvgIcon-root":{fontSize:o},maxWidth:s,cursor:"pointer",color:e.palette.grey[500],"&.Mui-checked":{color:t??e.palette.info.dark},...a&&{"&:hover":{backgroundColor:"transparent",color:a}},"&.Mui-disabled":{color:r??"#C7C7CC"}}));function zo(e="sm"){return Lo[e]}var Ro=forwardRef(({size:e="sm",checkedIcon:o,checkedColor:t,disabledColor:r,hoverColor:a,iconSize:s,className:p,sx:i,disableRipple:l=true,icon:d,disabled:m,...c},y)=>{let f=zo(e);return jsx(Fo,{ref:y,className:kc(ae.root,p),"data-testid":"RadioButton",size:f.muiSize,disableRipple:l,disabled:m,icon:d??jsx(ze,{children:jsx(Re,{$checked:false,$disabled:m})}),checkedIcon:o??jsx(ze,{children:jsx(Re,{$checked:true,$disabled:m})}),$iconSize:s??f.iconSize,$checkedColor:t,$disabledColor:r,$hoverColor:a,$maxWidth:f.maxWidth,sx:i,...c})});Ro.displayName="RadioButton";var Ao=memo(Ro);var se="os-shared-CircularProgress",L={root:`${se}-root`,progress:`${se}-progress`,labelOverlay:`${se}-labelOverlay`,labelText:`${se}-labelText`};var Eo=styled(Fa)(({theme:e})=>({color:e.palette.common.blue??"#147DC5",background:alpha(e.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),Wo=styled(Q)(()=>({position:"relative",display:"inline-flex"})),Ho=styled(Q)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),Vo=styled(qa)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var Oo=forwardRef(({variant:e="indeterminate",hasLabel:o=true,value:t,className:r,sx:a,...s},p)=>{let i=e==="determinate"&&o;return jsxs(Wo,{className:kc(L.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(Eo,{ref:p,variant:e,value:t,className:L.progress,...s}),i&&jsx(Ho,{className:L.labelOverlay,children:jsx(Vo,{className:L.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(t??0)}%`})})]})});Oo.displayName="CircularProgress";var Zo=memo(Oo);var ys="os-shared-Tooltip",ie={wrapper:`${ys}-wrapper`};var Uo=styled(({className:e,...o})=>createElement(xs,{...o,classes:{popper:e}}))(({theme:e})=>({zIndex:999999,[`& .${tooltipClasses.arrow}`]:{"&:before":{border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`},color:e.palette.common.white},[`& .${tooltipClasses.tooltip}`]:{backgroundColor:e.palette.common.white,color:e.palette.text.secondary,boxShadow:e.shadows[1],fontSize:12,border:`0.97px solid ${alpha(e.palette.text.primary,.13)}`,marginBottom:"7px !important"}}));function _o({className:e,title:o,placement:t="top",children:r,wrapperProps:a,sx:s,...p}){return jsx(Uo,{className:e,title:o,placement:t,arrow:true,sx:s,...p,children:jsx(Q,{display:"flex",alignItems:"center",className:ie.wrapper,...a,children:r})})}_o.displayName="Tooltip";var Xo=memo(_o);var bs="os-shared-Skeleton",pe={root:`${bs}-root`},Yo="rounded",qo=16;var Jo=styled(Ss)(()=>({}));var Qo=forwardRef(({className:e,sx:o,variant:t=Yo,height:r=qo,...a},s)=>jsx(Jo,{ref:s,className:kc(pe.root,e),sx:o,"data-testid":"Skeleton",variant:t,height:r,...a}));Qo.displayName="Skeleton";var et=memo(Qo);var Bs="os-shared-Avatar",le={root:`${Bs}-root`},ot={xs:{dimension:20,fontSize:"9px"},sm:{dimension:28,fontSize:"11px"},md:{dimension:36,fontSize:"14px"},lg:{dimension:48,fontSize:"18px"},xl:{dimension:64,fontSize:"24px"}};var tt=styled(vs,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:o="md"})=>{let{dimension:t,fontSize:r}=ot[o];return {width:t,height:t,fontSize:r,fontWeight:e.typography.fontWeightBold,backgroundColor:e.palette.info.dark,color:e.palette.common.white}});var rt=forwardRef(({className:e,sx:o,size:t="md",shape:r="circular",...a},s)=>jsx(tt,{ref:s,className:kc(le.root,e),sx:o,"data-testid":"Avatar",$size:t,variant:r,...a}));rt.displayName="Avatar";var at=memo(rt);var Ls="os-shared-Divider",me={root:`${Ls}-root`};var st=styled(Fs)(()=>({}));var nt=forwardRef(({className:e,sx:o,orientation:t="horizontal",...r},a)=>jsx(st,{ref:a,className:kc(me.root,e),sx:o,"data-testid":"Divider",orientation:t,...r}));nt.displayName="Divider";var it=memo(nt);var Es="os-shared-Collapse",de={root:`${Es}-root`},pt=true,lt=300;var mt=styled(Ws)(()=>({}));var dt=forwardRef(({className:e,sx:o,children:t,unmountOnExit:r=pt,timeout:a=lt,...s},p)=>jsx(mt,{ref:p,className:kc(de.root,e),sx:o,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:t}));dt.displayName="Collapse";var ct=memo(dt);var js="os-shared-Badge",ce={root:`${js}-root`},ft={primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"},yt=["primary","secondary","neutral","dark"];var Gs={default:e=>e.palette.info.main,inactive:e=>e.palette.grey[100],active:e=>alpha(e.palette.text.primary,.1),dark:e=>e.palette.info.dark,red:e=>e.palette.error.light},_s={default:e=>e.palette.common.white,inactive:e=>e.palette.text.primary,active:e=>e.palette.common.white,dark:e=>e.palette.common.white};function Xs(e,o){let t=ft[e];return t||(Gs[e]?.(o)??o.palette.common.white)}function Ys(e,o){return yt.includes(e)?o.palette.common.white:_s[e]?.(o)??o.palette.common.white}var ut=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:o="default",$compact:t,$round:r,$pointer:a})=>({paddingLeft:t?"0.16056rem":r?"0.275rem":"8px",paddingRight:t?"0.16056rem":r?"0.275rem":"8px",borderRadius:t?e.spacing(.5):e.spacing(2),backgroundColor:Xs(o,e),color:Ys(o,e),fontSize:"0.6rem",fontWeight:e.typography.fontWeightBold,overflow:"hidden",height:t?"12px":"16px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"auto"}));var xt=forwardRef(({className:e,sx:o,color:t="default",compact:r,round:a,pointer:s,children:p,...i},l)=>jsx(ut,{ref:l,className:kc(ce.root,e),sx:o,"data-testid":"Badge",$color:t,$compact:r,$round:a,$pointer:s,...i,children:p}));xt.displayName="Badge";var gt=memo(xt);var en="os-shared-Backdrop",fe={root:`${en}-root`};var Ct=styled(Q)(({theme:e})=>({position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999,backgroundColor:alpha(e.palette.common.black,.3)}));var ht=forwardRef(({className:e,sx:o,open:t=true,onClose:r,onClick:a,...s},p)=>{if(!t)return null;let i=l=>{r?.(),a?.(l);};return createPortal(jsx(Ct,{ref:p,className:kc(fe.root,e),sx:o,"data-testid":"Backdrop",onClick:i,...s}),document.body)});ht.displayName="Backdrop";var bt=memo(ht);var ye="os-shared-CopyButton",B={root:`${ye}-root`,icon:`${ye}-icon`,copyIcon:`${ye}-copyIcon`,copiedIcon:`${ye}-copiedIcon`},St=2e3,Nt=200;var It=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Bt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var Pt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),De=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${Nt}ms ease`}));var Tt=forwardRef(({className:e,sx:o,text:t,feedbackMs:r=St,onClick:a,...s},p)=>{let[i,l]=useState(false),d=m=>{m.stopPropagation(),ab(t),l(true),setTimeout(()=>l(false),r),a?.(m);};return jsxs(Pt,{ref:p,className:kc(B.root,e),sx:o,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:d,...s,children:[jsx(De,{className:kc(B.icon,B.copyIcon),$visible:!i,children:jsx(It,{})}),jsx(De,{className:kc(B.icon,B.copiedIcon),$visible:i,children:jsx(Bt,{})})]})});Tt.displayName="CopyButton";var Mt=memo(Tt);var Ee="os-shared-ProgressBar",H={root:`${Ee}-root`,fill:`${Ee}-fill`,text:`${Ee}-text`};var Lt=styled(Q,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:o,$isDecimal:t})=>({width:`${o}%`,minWidth:o>=10?"28px":"24px",height:"18px",borderRadius:"50px",background:e.palette.background.gradient?.darkShadedBlue??"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:o>10?"flex-end":"center",paddingInlineEnd:o>10?"2px":"0px",...o===0&&{background:alpha(e.palette.text.primary,26/255)},...t&&{minWidth:o>=10?"40px":"36px"}})),Ft=styled(Q,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(e.palette.text.primary,26/255),borderRadius:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,...o===0&&{background:alpha(e.palette.text.primary,0)}})),zt=styled(qa,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:o})=>({fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:e.palette.common.white,padding:"2px 4px",...o===0&&{color:alpha(e.palette.grey.A100,.5)}}));var At=forwardRef(({className:e,sx:o,value:t},r)=>{let a=!Number.isInteger(t);return jsx(Lt,{ref:r,className:kc(H.root,e),sx:o,"data-testid":"ProgressBar",$value:t,$isDecimal:a,children:jsx(Ft,{className:H.fill,$value:t,children:jsxs(zt,{className:H.text,$value:t,variant:"caption",children:[Number(t.toFixed(2)),"%"]})})})});At.displayName="ProgressBar";var Dt=memo(At);var ge="os-shared-Chip",v={root:`${ge}-root`,text:`${ge}-text`,copyButton:`${ge}-copyButton`,icon:`${ge}-icon`},Et=2e3,He=150;var Vt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.text.primary,stroke:o.common.white,strokeWidth:"0.15"})})})},Ot=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o.success.main}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:o.common.white})]})})};var he=styled(Q,{shouldForwardProp:e=>!["$variant","$hasIcon","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:o="text",$hasIcon:t,$isSelected:r,$disableAnimation:a})=>({display:"inline-flex",alignItems:"center",justifyContent:t?"flex-start":"center",gap:t?e.spacing(1):void 0,lineHeight:"normal",borderRadius:"30px",whiteSpace:"nowrap",boxSizing:"border-box",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.background.paper,...o==="text"&&{padding:`${e.spacing(.75)} ${e.spacing(1)}`,minHeight:"30px"},...o==="circular"&&{minHeight:24,minWidth:24,padding:e.spacing(.5),aspectRatio:"1 / 1"},...o==="pill-icon"&&{minHeight:24,minWidth:36,padding:`${e.spacing(.25)} ${e.spacing(.75)}`},...r&&{boxShadow:`${e.palette.common.white} 7px 0px 8px 2px`},...a&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),Ve=styled(Q)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto"}),jt=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:`opacity ${He}ms ease`,"&:hover":{opacity:1}})),Oe=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:`opacity ${He}ms ease`}));var Kt=forwardRef(({className:e,sx:o,children:t,icon:r,variant:a="text",disabled:s=false,isSelected:p=false,copyText:i,unknownText:l="Unknown",disableAnimation:d=false,...m},c)=>{let[y,f]=useState(false),g=x=>{x.stopPropagation(),i&&(ab(i),f(true),setTimeout(()=>f(false),Et));},C={$variant:a,$hasIcon:r!=null,$isSelected:p,$disableAnimation:d},u=kc(v.root,e,`CustomVariant_${a}`),N=[s?{cursor:"not-allowed",opacity:.5}:{},...Array.isArray(o)?o:o?[o]:[]];return t?i?jsxs(he,{ref:c,className:u,sx:[{gap:"4px"},...N],"data-testid":"Chip",...C,...m,children:[jsx(Ve,{className:v.text,"data-is-arabic":typeof t=="string"&&Zb(t),children:t}),jsxs(jt,{className:v.copyButton,role:"button",tabIndex:0,"aria-label":y?"copied":"copy","data-testid":"ChipCopyButton",$copied:y,onClick:g,children:[jsx(Oe,{$visible:!y,children:jsx(Vt,{})}),jsx(Oe,{$visible:y,children:jsx(Ot,{})})]})]}):jsxs(he,{ref:c,className:u,sx:N,"data-testid":"Chip",...C,...m,children:[r!=null&&jsx("span",{className:v.icon,children:r}),jsx(Ve,{className:v.text,children:t})]}):jsx(he,{className:u,sx:N,"data-testid":"Chip",...C,...m,children:l})});Kt.displayName="Chip";var Ut=memo(Kt);var je="os-shared-Slider",T={root:`${je}-root`,thumb:`${je}-thumb`,thumbIcon:`${je}-thumbIcon`},Ke=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");var Gt=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o.grey[700],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var _t=styled(In)(({theme:e})=>({color:e.palette.info.dark,height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:e.palette.common.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:Ke,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:Ke}},[`& .${T.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}));function $n({children:e,className:o,...t}){return jsxs(SliderThumb,{className:kc(T.thumb,o),...t,children:[e,jsx(Gt,{className:T.thumbIcon})]})}var Xt=forwardRef(({className:e,sx:o,value:t,min:r,max:a,step:s,disabled:p,onChange:i,slots:l,...d},m)=>{let c=useCallback((y,f)=>{i(f);},[i]);return jsx(_t,{ref:m,className:kc(T.root,e),sx:o,"data-testid":"Slider",value:t,min:r,max:a,step:s,disabled:p,onChange:c,...d,slots:{thumb:$n,...l}})});Xt.displayName="Slider";var Yt=memo(Xt);var Ue="os-shared-Input",O={root:`${Ue}-root`,label:`${Ue}-label`,input:`${Ue}-input`},Jt={sm:28,md:32,labelled:40},Qt=["e","E","+","-"],er=/^[0-9.]$/,or=xa$1();var tr=(e,o)=>Jt[e?"labelled":o],rr=styled(Rn,{shouldForwardProp:e=>!["$hasLabel","$hideArrows","$size"].includes(e)})(({theme:e,$hasLabel:o=false,$hideArrows:t=false,$size:r="md"})=>({height:tr(o,r),padding:o?"8px":"0 8px",border:"none",borderRadius:"inherit",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary,backgroundColor:"transparent",display:"flex",alignItems:o?"stretch":"center","&.Mui-disabled":{color:e.palette.grey[700]},"& input":{paddingTop:"4px",paddingBottom:"4px"},"& input::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),ar=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),sr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$size"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$size:s="md"})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",height:tr(a,s),margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}));var ir=forwardRef(({label:e,size:o="md",error:t=false,disabled:r=false,fullWidth:a=false,placeholder:s,hideArrows:p=false,type:i,id:l,className:d,sx:m,onKeyDown:c,onWheel:y,...f},g)=>{let C=!!e,u=i==="number",S=x=>{let D=x.metaKey||x.ctrlKey||x.altKey,Te=x.key.length===1;(Qt.includes(x.key)||or&&Te&&!D&&!er.test(x.key))&&x.preventDefault(),c?.(x);},N=x=>{x.target instanceof HTMLElement&&x.target.blur(),y?.(x);};return jsxs(sr,{className:kc(O.root,d),sx:m,error:t,disabled:r,fullWidth:a,"data-testid":"Input",$hasLabel:C,$size:o,children:[C&&jsx(ar,{className:O.label,htmlFor:l,children:e}),jsx(rr,{id:l,inputRef:g,className:O.input,type:i,error:t,disabled:r,placeholder:s??void 0,"aria-invalid":t||void 0,disableUnderline:true,fullWidth:true,$hasLabel:C,$hideArrows:p,$size:o,onKeyDown:u?S:c,onWheel:u?N:y,...f})]})});ir.displayName="Input";var pr=memo(ir);var _e="os-shared-Textarea",Z={root:`${_e}-root`,label:`${_e}-label`,textarea:`${_e}-textarea`},Xe=20;var lr=styled(Vn,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:o=false,$minRows:t=3})=>({border:"none",borderRadius:"inherit",padding:o?"8px":"8px 12px",fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:1.5,color:e.palette.text.primary,backgroundColor:"transparent",alignItems:"flex-start",width:"100%","&.Mui-disabled":{color:e.palette.grey[700]},"& textarea":{resize:"vertical",minHeight:`${Math.max(t*Xe,60)}px`,padding:0},"& textarea::placeholder":{color:e.palette.grey[700],fontWeight:e.typography.fontWeightRegular,opacity:o?0:1,...o&&{transition:"opacity 0.2s ease"}},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:e.palette.text.primary,caretColor:e.palette.text.primary,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},...o&&{marginTop:0,"& textarea":{margin:"0px !important",padding:"0px !important",paddingTop:"10px !important",lineHeight:"130%"},"& textarea:focus::placeholder":{opacity:"1 !important"}}})),mr=styled(zn)(({theme:e})=>({fontSize:"11px",color:`${e.palette.grey[700]} !important`})),dr=styled(Fn,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:o,error:t,fullWidth:r,$hasLabel:a=false,$minRows:s=3})=>({position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?40+s*Xe:void 0,margin:0,border:`1px solid ${t?e.palette.error.main:e.palette.divider}`,borderRadius:"4px",backgroundColor:o?e.palette.grey[100]:e.palette.common.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:t?e.palette.error.main:e.palette.grey[400]},"& .MuiFormLabel-asterisk":{color:e.palette.error.light},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:"8px",fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -1.5px) scale(0.75) !important",color:`${e.palette.grey[700]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}));var fr=forwardRef(({label:e,error:o=false,disabled:t=false,fullWidth:r=false,placeholder:a,minRows:s=3,maxRows:p,id:i,className:l,sx:d,...m},c)=>{let y=!!e;return jsxs(dr,{className:kc(Z.root,l),sx:d,error:o,disabled:t,fullWidth:r,"data-testid":"Textarea",$hasLabel:y,$minRows:s,children:[y&&jsx(mr,{className:Z.label,htmlFor:i,children:e}),jsx(lr,{id:i,inputRef:c,className:Z.textarea,multiline:true,minRows:s,maxRows:p,disabled:t,placeholder:a??void 0,"aria-invalid":o||void 0,fullWidth:true,$error:o,$hasLabel:y,$minRows:s,...m})]})});fr.displayName="Textarea";var yr=memo(fr);var F="os-shared-Accordion",b={root:`${F}-root`,summary:`${F}-summary`,content:`${F}-content`,labelStartAdornment:`${F}-labelStartAdornment`,labelContent:`${F}-labelContent`,labelEndAdornment:`${F}-labelEndAdornment`,expandIcon:`${F}-expandIcon`};var xr=()=>{let{palette:e}=useTheme();return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:e.text.primary,stroke:e.text.primary,strokeWidth:"0.1"})})};var Cr=styled(Un)(({theme:e,square:o})=>({overflow:"hidden",border:`1px solid ${e.palette.divider}`,...!o&&{borderRadius:e.shape.borderRadius},margin:0,background:e.palette.background.paper,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}})),hr=styled(_n)(({theme:e})=>({background:e.palette.grey.A50??"#fbfbfb",minHeight:"40px",height:"40px",padding:"10px","&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:10},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:8}})),br=styled(Gn)(({theme:e})=>({padding:0,borderTop:`1px solid ${e.palette.divider}`})),Sr=styled(Q)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),Nr=styled(Q)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Ir=forwardRef(({expanded:e,defaultExpanded:o=false,onChange:t,label:r,content:a,labelStartAdornment:s,labelEndAdornment:p,slotProps:i={},disabled:l=false,expandIcon:d,className:m,sx:c,...y},f)=>{let g=e!==void 0,[C,u]=useState(o),S=g?e:C,N=(_i,ro)=>{g||u(ro),t?.(ro);},{showArrow:x=true,...D}=i.label??{},{className:Te,sx:Ia,...Ba}=i.root??{},va=d??(x?jsx(Sr,{component:"span",className:b.expandIcon,children:jsx(xr,{})}):null),Pa=jsxs(Fragment,{children:[s!=null&&jsx(Q,{component:"span",className:b.labelStartAdornment,...i.labelStartAdornment,sx:jc({flexShrink:0},i.labelStartAdornment?.sx),children:s}),jsx(Nr,{component:"span",className:b.labelContent,...i.labelContent,sx:i.labelContent?.sx,children:r}),p!=null&&jsx(Q,{component:"span",className:b.labelEndAdornment,...i.labelEndAdornment,sx:jc({flexShrink:0,marginLeft:"auto"},i.labelEndAdornment?.sx),children:p})]});return jsxs(Cr,{ref:f,"data-testid":"Accordion",disabled:l,expanded:S,onChange:N,className:kc(b.root,m,Te),sx:jc(c??{},Ia),...Ba,...y,children:[jsx(hr,{className:b.summary,expandIcon:va,"aria-expanded":S,...D,children:Pa}),jsx(br,{className:b.content,...i.content,children:a})]})});Ir.displayName="Accordion";var Br=memo(Ir);var vr="os-shared-Menu",X={popper:`${vr}-popper`,panel:`${vr}-panel`},Pr=12;var Mr=styled(ei)({}),$r=styled(Q,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:o})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",boxShadow:e.shadows[11],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${e.palette.divider}`},"&::after":{content:o?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${e.palette.common.white} 100%)`}}));var Fr=forwardRef(({open:e,anchorEl:o,children:t,placement:r,popperSx:a,panelProps:s,className:p,sx:i,...l},d)=>{let[m,c]=useState(false),f=useMemo(()=>Children.count(t),[t])>Pr&&m,{onScroll:g,className:C,sx:u,...S}=s??{},N=useCallback(D=>{c((D.currentTarget.scrollTop??0)>0),g?.(D);},[g]),x=kc(X.panel,C,"MuiPopper-dropdown");return jsx(Mr,{ref:d,className:kc(X.popper,p),"data-testid":"Menu",open:e,anchorEl:o,placement:r??"bottom-start",sx:a,...l,children:jsx($r,{$showShadow:f,onScroll:N,className:x,sx:jc(i??{},u),...S,children:t})})});Fr.displayName="Menu";var zr=memo(Fr);var Se="os-shared-Dialog",R={root:`${Se}-root`,title:`${Se}-title`,content:`${Se}-content`,actions:`${Se}-actions`};var Ar=styled(ii)(({theme:e})=>({"& .MuiDialog-paper":{boxShadow:e.shadows[13],borderRadius:e.spacing(1)},"& .MuiModal-backdrop":{background:alpha(e.palette.common.black,.2)}})),Dr=styled(pi)(({theme:e})=>({padding:e.spacing(2)}));var Er=forwardRef(({heading:e,actions:o,children:t,onClose:r,open:a,className:s,sx:p,...i},l)=>jsxs(Ar,{ref:l,"data-testid":"Dialog",open:a,onClose:r,className:kc(R.root,s),sx:p,...i,children:[e&&jsx(fi,{className:R.title,children:e}),jsx(Dr,{className:R.content,children:t}),o&&jsx(ci,{className:R.actions,children:o})]}));Er.displayName="Dialog";var Wr=memo(Er);var Ne="os-shared-MenuItem",M={root:`${Ne}-root`,indicator:`${Ne}-indicator`,content:`${Ne}-content`,disabled:`${Ne}-disabled`},A={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var Vr=()=>{let{palette:e}=useTheme();return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:e.info.dark}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:e.common.white})]})},Or=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),Zr=()=>{let{palette:e}=useTheme();return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:e.info.dark,stroke:e.info.dark,strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var Ur=styled(Q,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:o=false})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:o?.5:1,color:e.palette.text.primary})),Je=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function Ci(e,o){return o?A.indeterminate:e?A.checked:A.unchecked}var hi={[A.unchecked]:Or,[A.checked]:Vr,[A.indeterminate]:Zr};function bi(e,o,t){if(e===null)return null;if(e!==void 0)return jsx(Je,{className:M.indicator,"aria-hidden":true,children:e});let r=Ci(o,t),a=hi[r];return jsx(Je,{className:M.indicator,"aria-hidden":true,children:jsx(a,{})})}var Gr=forwardRef(({isSelected:e=false,isDisabled:o=false,isIndeterminate:t=false,startAdornment:r,onClick:a,children:s,className:p,sx:i,...l},d)=>{let m=kc(M.root,"menu-item",o&&M.disabled,p);return jsxs(Ur,{ref:d,"data-testid":"MenuItem",className:m,sx:i,onClick:o?void 0:a,$isDisabled:o,...l,children:[bi(r,e,t),jsx("span",{className:M.content,children:s})]})});Gr.displayName="MenuItem";var _r=memo(Gr);var Xr="os-shared-ToggleButtons",Y={root:`${Xr}-root`,button:`${Xr}-button`};var Jr=styled(Q)(({theme:e})=>({backgroundColor:e.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),ki=e=>({backgroundColor:e.palette.common.white,boxShadow:`0px 0px 3px 0px ${alpha(e.palette.common.black,.2)}`}),Qr=styled(Q,{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:o=false})=>({fontSize:8,fontWeight:e.typography.fontWeightMedium,width:21,height:21,borderRadius:"1.5px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease",...o?ki(e):{backgroundColor:"transparent",boxShadow:"none"}}));function oa({options:e,activeKey:o,onChange:t,containerProps:r,buttonProps:a,id:s,className:p,sx:i},l){let{className:d,sx:m,...c}=r??{},y=kc(Y.root,p,d);return jsx(Jr,{ref:l,id:s,"data-testid":"ToggleButtons",className:y,sx:jc(i??{},m),...c,children:e.map(f=>jsx(Qr,{className:Y.button,$isActive:o===f.key,onClick:()=>t(f.key),...a,children:f.content},f.key))})}var Bi=forwardRef(oa);oa.displayName="ToggleButtons";var ta=memo(Bi);var vi="os-shared-LazyImage",we={root:`${vi}-root`},ra={display:"flex",justifyContent:"center",alignItems:"center"},Ie={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var aa=styled(Q)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Be(e){return e!=null&&e in Ie}var Ri=LazyLoadImage,na=forwardRef(({effect:e,wrapperProps:o,id:t,className:r,sx:a,placeholderSrc:s,...p},i)=>{let[l,d]=useState(Be(e));if(useEffect(()=>{if(!Be(e)){d(false);return}d(true),Ie[e]().finally(()=>{d(false);});},[e]),l)return null;let{className:m,sx:c,style:y,...f}=o??{},g=Be(e)||!!s||y!=null;return jsx(aa,{component:"span",...f,className:kc(we.root,m??r),sx:c!=null?jc(a??{},c):a,children:jsx(Ri,{...p,ref:i,effect:e,placeholderSrc:s,id:t,"data-testid":"LazyImage",wrapperProps:g?{style:{...ra,...y}}:void 0})})});na.displayName="LazyImage";var ia=memo(na);var Qe="os-shared-FieldFeedback",K={root:`${Qe}-root`,icon:`${Qe}-icon`,message:`${Qe}-message`};var la=({severity:e="error",...o})=>{let{palette:t}=useTheme(),r=e==="warning"?t.custom?.[500]??"#FF7A00":t.error.light;return jsx($e,{sx:{width:12,height:12},...o,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:r})})})},ma=e=>jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"#39953E"})})}),da=e=>{let{palette:o}=useTheme();return jsx($e,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.text.primary,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function ca(e,o){let t=e.palette.custom?.[500]??"#FF7A00";return {warning:{backgroundColor:alpha(t,.15),textColor:t},success:{backgroundColor:alpha(e.palette.success.dark,.15),textColor:e.palette.success.dark},info:{backgroundColor:alpha(e.palette.info.dark,.12),textColor:e.palette.info.dark},error:{backgroundColor:alpha(e.palette.error.main,.15),textColor:e.palette.error.main}}[o]}var fa=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{backgroundColor:t}=ca(e,o);return {display:"flex",alignItems:"flex-start",gap:"4px",minHeight:"32px",padding:"8px 12px",background:t,borderRadius:"0 0 4px 4px"}}),ya=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:o})=>{let{textColor:t}=ca(e,o);return {fontSize:"10px",lineHeight:"16px",display:"block",color:t,wordBreak:"break-word"}}),ua=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function Ei(e){return e!=null&&e!==""}function Wi(e){switch(e){case "success":return jsx(ma,{});case "info":return jsx(da,{});case "error":case "warning":return jsx(la,{severity:e})}}var xa=forwardRef(({type:e="error",message:o,icon:t,className:r,sx:a},s)=>{if(!Ei(o))return null;let p=e;return jsxs(fa,{ref:s,"data-testid":"FieldFeedback",className:kc(K.root,r),sx:a,$feedbackType:p,children:[t??jsx(ua,{className:K.icon,children:Wi(p)}),jsx(ya,{className:K.message,$feedbackType:p,children:o})]})});xa.displayName="FieldFeedback";var ga=memo(xa);var Vi="os-shared-ScrollLoader",Pe={root:`${Vi}-root`},Ca=50;var ha=styled(Oi)({overflow:"auto",height:"100%",maxHeight:"100%"});function to(e,o=Ca){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=o}var ka=forwardRef(({loadMoreItems:e,hasMore:o,isLoading:t=false,isFetchingNextPage:r,children:a,className:s,sx:p,id:i,...l},d)=>{let[m,c]=useState(false),y=useRef(e),f=useRef(null);y.current=e;let g=useCallback(()=>{o&&!r&&y.current();},[o,r]),C=useCallback(()=>{let u=f.current;u&&to(u)&&g();},[g]);return useEffect(()=>{let u=f.current;if(u)return u.addEventListener("scroll",C),()=>u.removeEventListener("scroll",C)},[C]),useEffect(()=>{let u=f.current;if(!u||t||m)return;let S=window.setTimeout(()=>{c(true),to(u)&&g();},1e3);return ()=>window.clearTimeout(S)},[t,g,m]),jsx(ha,{ref:u=>{f.current=u,typeof d=="function"?d(u):d&&(d.current=u);},id:i,"data-testid":"ScrollLoader",className:kc(Pe.root,s),sx:p,...l,children:a})});ka.displayName="ScrollLoader";var wa=memo(ka);
|
|
2
2
|
export{ga as $,fe as A,bt as B,B as C,Mt as D,H as E,Dt as F,v as G,Ut as H,T as I,Yt as J,O as K,pr as L,Z as M,yr as N,b as O,Br as P,X as Q,zr as R,R as S,Wr as T,M as U,_r as V,Y as W,ta as X,we as Y,ia as Z,K as _,k as a,Pe as aa,fo as b,wa as ba,oe as c,xo as d,$ as e,Io as f,te as g,Po as h,re as i,$o as j,ae as k,Ao as l,L as m,Zo as n,ie as o,Xo as p,pe as q,et as r,le as s,at as t,me as u,it as v,de as w,ct as x,ce as y,gt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {i}from'./chunk-MBQCD5AC.js';import {a}from'./chunk-KHM5KW53.js';import {Aa}from'./chunk-RBCDAZB4.js';import ee,{memo,useMemo,Children,useState,useRef,useEffect,useCallback,useLayoutEffect,isValidElement}from'react';import {motion}from'framer-motion';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var h=24;var D=.22;var nt=styled(P)(()=>({display:"flex",gap:"8px",overflow:"visible"})),Ut=["trackWidth","minTrackWidth","slotSize","hoverZIndex"],it=styled("div",{shouldForwardProp:t=>!Ut.includes(t)})(({trackWidth:t,minTrackWidth:e,slotSize:r,hoverZIndex:o})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${.22}s ease-out`,...o!==void 0?{zIndex:o}:{}})),$=styled(P)(()=>({display:"flex",alignItems:"center",paddingRight:"8px","& .chip-stack-overlap-slot":{marginRight:"-8px",position:"relative",zIndex:1},"& .chip-stack-overlap-slot:hover":{zIndex:2}}));function at(t){return {display:"flex",alignItems:"center",justifyContent:"center",width:`var(--chip-stack-slot-size, ${24}px)`,height:`var(--chip-stack-slot-size, ${24}px)`,borderRadius:"50%",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.common.white,flexShrink:0}}var ct=styled(({title:t,className:e,...r})=>t!=null&&t!==""?jsx(a,{title:t,wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{className:e,...r})}):jsx(P,{className:["chip-stack-overlap-slot",e].filter(Boolean).join(" "),...r}))(({theme:t})=>({...at(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,"& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),K=styled(({title:t,...e})=>jsx(a,{title:t??"",wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{...e})}))(({theme:t})=>({...at(t),fontSize:`max(${8}px, calc(var(--chip-stack-slot-size, ${24}px) * ${8.5} / ${24}))`,fontWeight:500,color:t.palette.text.disabled}));function st({overflowItems:t,size:e}){let r=`${Math.max(8,8.5*e/24)}px`;return jsxs(P,{sx:{width:e,height:e,borderRadius:"50%",border:o=>`1px solid ${o.palette.divider}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:r,fontWeight:600,bgcolor:"action.hover",flexShrink:0},children:["+",t.length]})}var Gt=["faceSize","avatarFill"],pt=styled(i,{shouldForwardProp:t=>!Gt.includes(t)})(({theme:t,faceSize:e,avatarFill:r})=>{let o=`${e}px`,i=`${Math.max(7,8.5*e/24)}px`;return {width:o,height:o,fontSize:i,fontWeight:500,lineHeight:"100%",letterSpacing:"0%",textAlign:"center",color:t.palette.common.white,background:r,backgroundSize:"cover","&.MuiAvatar-colorDefault":{background:r,color:t.palette.common.white},"& .MuiAvatar-img":{objectFit:"cover"}}});function lt(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function mt(t,e,r){return t==="static"?e?"static-children":r?"static-items":null:e?"animated-children":r?"animated-items":null}function dt({size:t,stackStep:e,gap:r,minTrackWidth:o}){let i=t??24,n=e??Math.round(i/2),s=r??Math.max(1,Math.round(i*3/24)),a=o??Math.max(60,Math.round(i*60/24));return {size:i,stackStep:n,gap:s,minTrackWidth:a}}function ut(t,e){if(t<=0)return 0;switch(e){case "right":return 0;case "left":return t-1;default:return Math.floor((t-1)/2)}}function ht(t,e){return e!==void 0&&t>e}function M(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function Yt(t,e){return isValidElement(t)&&t.key!=null&&t.key!==""?String(t.key):`chip-stack-child-${e}`}function B({items:t,maxItems:e,getItemKey:r,renderItem:o,renderOverflow:i,slotSize:n}){let s={slotSize:n};if(t.length===0)return [];let{visibleItems:a,hiddenItems:c}=M(t,e),p=a.map((m,l)=>({key:r(m,l),render:()=>o(m,l,s)}));return c.length>0&&p.push({key:`chip-stack-overflow-${c.length}-${a.length}`,render:()=>i({items:t,overflowItems:c,size:n})}),p}function ft({children:t,maxItems:e,slotSize:r,renderOverflow:o}){let i=Children.toArray(t);return B({items:i,maxItems:e,getItemKey:Yt,renderItem:n=>n,renderOverflow:o,slotSize:r})}function St(t,e){return t.length===e.length&&t.every((r,o)=>r===e[o])}function X(t,e,r){return t[e]??r}function kt(t,e,r,o,i,n){if(t===0)return [];let s=e*i,a=new Array(t);a[e]=s;for(let c=e-1;c>=0;c-=1)a[c]=a[c+1]-X(r,c,n)-o;for(let c=e+1;c<t;c+=1)a[c]=a[c-1]+X(r,c-1,n)+o;return a}function Ct(t,e,r){return t<=0?0:(t-1)*e+r}function xt(t,e,r,o){return Array.from({length:t},(i,n)=>t<=1||!e?0:r[n]-n*o)}function At(t,e,r,o,i){if(t<=0)return 0;let n=e.map((c,p)=>c+X(r,p,i)),s=Math.min(...e),a=Math.max(...n);return Math.max(o,a-s)}function gt(t,e,r){return Array.from({length:t},(o,i)=>{let n=e.current[i];return n?n.offsetWidth:r})}function Z(t,e){return t.id??`${t.first}-${t.last}-${e}`}function yt(t){return [t.first,t.last].map(e=>e?.[0]).filter(e=>e!=null&&e!=="").join("")}function Tt(t){if(t.tooltip!==void 0)return t.tooltip===null?null:t.tooltip;let e=`${t.first||""} ${t.last||""}`.trim();return e!==""?e:null}function Rt({slotCount:t,anchorIndex:e,size:r,stackStep:o,gap:i,fanOutEnabled:n,compact:s}){let[a,c]=useState(false),[p,m]=useState(()=>Array.from({length:t},()=>r)),l=useRef(null),f=useRef([]),C=useRef(null),x=useCallback(()=>{let v=gt(t,f,r);m(g=>St(g,v)?g:v);},[t,r]),d=useCallback(()=>{C.current&&cancelAnimationFrame(C.current),C.current=requestAnimationFrame(x);},[x]),A=useMemo(()=>kt(t,e,p,i,o,r),[t,e,p,i,o,r]),y=useMemo(()=>xt(t,n&&a,A,o),[t,n,a,A,o]),S=useMemo(()=>Ct(t,o,r),[t,o,r]),O=useMemo(()=>At(t,A,p,S,r),[t,A,p,S,r]),k=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),c(true));},[n]),u=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(false),120));},[n]);useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]),useEffect(()=>{n||c(false);},[n]),useLayoutEffect(()=>{m(Array.from({length:t},()=>r));},[t,r]),useLayoutEffect(()=>{x();},[t,r,x]),useEffect(()=>(d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d),C.current&&cancelAnimationFrame(C.current);}),[d]);let T=n&&a?O:s?r:S,b=n&&a,F=useMemo(()=>s?Array.from({length:t},(v,g)=>g===e||a?1:0):Array.from({length:t},()=>1),[s,t,e,a]);return {isHovering:a,handleMouseEnter:k,handleMouseLeave:u,slotRefs:f,translateX:y,slotOpacity:F,collapsedStackWidthPx:S,fannedRowWidthPx:O,trackWidth:T,hoverZIndexActive:b}}function H({items:t,children:e,maxItems:r,getItemKey:o,renderItem:i,renderOverflow:n,fanOutDirection:s,compact:a=false,"data-testid":c,sx:p,className:m,slotProps:l}){let f=Children.count(e)>0,{zIndex:C=1e3,size:x,stackStep:d,gap:A,minTrackWidth:y}=l?.layout??{},S=useMemo(()=>f?Children.toArray(e??null).length:t?.length??0,[f,e,t]),k=!(!a&&ht(S,r)),{size:u,stackStep:w,gap:T,minTrackWidth:b}=useMemo(()=>dt({size:x,stackStep:d,gap:A,minTrackWidth:y}),[x,d,A,y]),F=n??st,v=useMemo(()=>f?ft({children:e??null,maxItems:r,slotSize:u,renderOverflow:F}):!t?.length||!o||!i?[]:B({items:t,maxItems:r,getItemKey:o,renderItem:i,slotSize:u,renderOverflow:F}),[f,e,t,r,o,i,F,u]),g=v.length,Nt=useMemo(()=>ut(g,s),[g,s]),{handleMouseEnter:Et,handleMouseLeave:Mt,slotRefs:Wt,translateX:Lt,slotOpacity:tt,collapsedStackWidthPx:Kt,trackWidth:Vt,hoverZIndexActive:zt}=Rt({slotCount:g,anchorIndex:Nt,size:u,stackStep:w,gap:T,fanOutEnabled:k,compact:a});if(g===0)return null;let{sx:L,...Ht}=l?.shell??{},{style:Dt,...$t}=l?.track??{};return jsx(nt,{className:m,...Ht,sx:[{justifyContent:"flex-start",...k||a?{width:"100%"}:{}},...Array.isArray(p)?p:p!=null?[p]:[],...Array.isArray(L)?L:L!=null?[L]:[]],children:jsx(it,{"data-testid":c,...$t,style:Dt,onMouseEnter:k?Et:void 0,onMouseLeave:k?Mt:void 0,trackWidth:Vt,minTrackWidth:a?u:Math.max(b,Kt),slotSize:u,hoverZIndex:zt?C:void 0,children:v.map((et,R)=>jsx(motion.div,{ref:Xt=>{Wt.current[R]=Xt;},initial:false,animate:{x:Lt[R]??0,opacity:tt[R]??1},transition:{duration:.22,ease:"easeOut"},style:{position:"absolute",top:0,left:R*w,zIndex:R,width:u,height:u,pointerEvents:tt[R]===0?"none":"auto"},children:et.render()},et.key))})})}function oe({children:t,maxItems:e,renderOverflow:r,slotSize:o=24,sx:i,...n}){let s=useMemo(()=>ee.Children.toArray(t),[t]),{visibleItems:a,hiddenItems:c}=useMemo(()=>M(s,e),[s,e]),p=c.length>0,m=useMemo(()=>[{"--chip-stack-slot-size":`${o}px`},...Array.isArray(i)?i:i!=null?[i]:[]],[o,i]);if(!p)return jsx($,{"data-testid":"ChipStack",...n,sx:m,children:t});let l=r?.({items:s,overflowItems:c,size:o});return jsxs($,{"data-testid":"ChipStack",...n,sx:m,children:[a,l??jsx(K,{title:`${c.length} more`,children:jsxs("span",{children:["+",c.length]})})]})}var J=memo(oe);function ie(t){return jsx(ct,{"data-testid":"OverlapChip",...t})}var Q=memo(ie);var ce=["static","fanout-right","fanout-left","fanout-center"],Y="static";function pe(t){let{variant:e=Y,maxItems:r,renderOverflow:o,children:i,items:n,getItemKey:s,renderItem:a,compact:c=false,"data-testid":p,slotProps:m,sx:l,className:f}=t,C=Children.count(i??null)>0,x=!C&&(n?.length??0)>0&&s!=null&&a!=null,d=mt(e,C,x);if(d===null)return null;if(d==="static-children"||d==="static-items"){let S=m?.layout?.size??24;if(d==="static-items"&&n&&s&&a){let{visibleItems:O,hiddenItems:k}=M(n,r),u=k.length>0?o?.({items:n,overflowItems:k,size:S})??jsx(K,{title:`${k.length} more`,children:jsxs("span",{children:["+",k.length]})}):null,w=jsxs(Fragment,{children:[O.map((T,b)=>jsx(Q,{children:a(T,b,{slotSize:S})},s(T,b))),u]});return jsx(J,{"data-testid":p,slotSize:S,sx:l,className:f,children:w})}return jsx(J,{"data-testid":p,maxItems:r,renderOverflow:o,slotSize:S,sx:l,className:f,children:i})}let A=lt(e),y={maxItems:r,renderOverflow:o,fanOutDirection:A,compact:c,"data-testid":p??"ChipStack",slotProps:m,sx:l,className:f};return d==="animated-children"?jsx(H,{...y,children:i}):jsx(H,{...y,items:n,getItemKey:s,renderItem:a})}var wt=pe;function he({item:t,sourceIndex:e,slotSize:r}){let[o,i]=useState(false),n=useRef(null);useEffect(()=>{i(false);},[t.logo]);let s=!t.logo||o,a$1=Z(t,e),c="transparent";s&&(n.current?.key!==a$1&&(n.current={key:a$1,fill:Aa()}),c=n.current.fill);let p=jsx(pt,{faceSize:r,avatarFill:c,src:s?void 0:t.logo,slotProps:s?void 0:{img:{onError:()=>i(true)}},children:yt(t)}),m=Tt(t);return m!=null&&m!==""?jsx(a,{title:m,children:p}):p}var fe=he;var dr=wt;export{h as a,D as b,Z as c,Q as d,ce as e,Y as f,wt as g,fe as h,dr as i};
|
|
1
|
+
import {i}from'./chunk-RHUTFOWS.js';import {a}from'./chunk-KHM5KW53.js';import {Aa}from'./chunk-2CIV4TII.js';import ee,{memo,useMemo,Children,useState,useRef,useEffect,useCallback,useLayoutEffect,isValidElement}from'react';import {motion}from'framer-motion';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var h=24;var D=.22;var nt=styled(P)(()=>({display:"flex",gap:"8px",overflow:"visible"})),Ut=["trackWidth","minTrackWidth","slotSize","hoverZIndex"],it=styled("div",{shouldForwardProp:t=>!Ut.includes(t)})(({trackWidth:t,minTrackWidth:e,slotSize:r,hoverZIndex:o})=>({position:"relative",overflow:"visible",width:t,minWidth:e,height:r,transition:`width ${.22}s ease-out`,...o!==void 0?{zIndex:o}:{}})),$=styled(P)(()=>({display:"flex",alignItems:"center",paddingRight:"8px","& .chip-stack-overlap-slot":{marginRight:"-8px",position:"relative",zIndex:1},"& .chip-stack-overlap-slot:hover":{zIndex:2}}));function at(t){return {display:"flex",alignItems:"center",justifyContent:"center",width:`var(--chip-stack-slot-size, ${24}px)`,height:`var(--chip-stack-slot-size, ${24}px)`,borderRadius:"50%",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.common.white,flexShrink:0}}var ct=styled(({title:t,className:e,...r})=>t!=null&&t!==""?jsx(a,{title:t,wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{className:e,...r})}):jsx(P,{className:["chip-stack-overlap-slot",e].filter(Boolean).join(" "),...r}))(({theme:t})=>({...at(t),overflow:"hidden",lineHeight:0,boxSizing:"border-box",padding:0,"& > *":{width:"100%",height:"100%",minWidth:0,minHeight:0},"& img":{display:"block",width:"100%",height:"100%",objectFit:"contain"}})),K=styled(({title:t,...e})=>jsx(a,{title:t??"",wrapperProps:{className:"chip-stack-overlap-slot"},children:jsx(P,{...e})}))(({theme:t})=>({...at(t),fontSize:`max(${8}px, calc(var(--chip-stack-slot-size, ${24}px) * ${8.5} / ${24}))`,fontWeight:500,color:t.palette.text.disabled}));function st({overflowItems:t,size:e}){let r=`${Math.max(8,8.5*e/24)}px`;return jsxs(P,{sx:{width:e,height:e,borderRadius:"50%",border:o=>`1px solid ${o.palette.divider}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:r,fontWeight:600,bgcolor:"action.hover",flexShrink:0},children:["+",t.length]})}var Gt=["faceSize","avatarFill"],pt=styled(i,{shouldForwardProp:t=>!Gt.includes(t)})(({theme:t,faceSize:e,avatarFill:r})=>{let o=`${e}px`,i=`${Math.max(7,8.5*e/24)}px`;return {width:o,height:o,fontSize:i,fontWeight:500,lineHeight:"100%",letterSpacing:"0%",textAlign:"center",color:t.palette.common.white,background:r,backgroundSize:"cover","&.MuiAvatar-colorDefault":{background:r,color:t.palette.common.white},"& .MuiAvatar-img":{objectFit:"cover"}}});function lt(t){return t==="fanout-left"?"left":t==="fanout-center"?"center":"right"}function mt(t,e,r){return t==="static"?e?"static-children":r?"static-items":null:e?"animated-children":r?"animated-items":null}function dt({size:t,stackStep:e,gap:r,minTrackWidth:o}){let i=t??24,n=e??Math.round(i/2),s=r??Math.max(1,Math.round(i*3/24)),a=o??Math.max(60,Math.round(i*60/24));return {size:i,stackStep:n,gap:s,minTrackWidth:a}}function ut(t,e){if(t<=0)return 0;switch(e){case "right":return 0;case "left":return t-1;default:return Math.floor((t-1)/2)}}function ht(t,e){return e!==void 0&&t>e}function M(t,e){return e===void 0||e<1||t.length<e?{visibleItems:t,hiddenItems:[]}:{visibleItems:t.slice(0,e-1),hiddenItems:t.slice(e-1)}}function Yt(t,e){return isValidElement(t)&&t.key!=null&&t.key!==""?String(t.key):`chip-stack-child-${e}`}function B({items:t,maxItems:e,getItemKey:r,renderItem:o,renderOverflow:i,slotSize:n}){let s={slotSize:n};if(t.length===0)return [];let{visibleItems:a,hiddenItems:c}=M(t,e),p=a.map((m,l)=>({key:r(m,l),render:()=>o(m,l,s)}));return c.length>0&&p.push({key:`chip-stack-overflow-${c.length}-${a.length}`,render:()=>i({items:t,overflowItems:c,size:n})}),p}function ft({children:t,maxItems:e,slotSize:r,renderOverflow:o}){let i=Children.toArray(t);return B({items:i,maxItems:e,getItemKey:Yt,renderItem:n=>n,renderOverflow:o,slotSize:r})}function St(t,e){return t.length===e.length&&t.every((r,o)=>r===e[o])}function X(t,e,r){return t[e]??r}function kt(t,e,r,o,i,n){if(t===0)return [];let s=e*i,a=new Array(t);a[e]=s;for(let c=e-1;c>=0;c-=1)a[c]=a[c+1]-X(r,c,n)-o;for(let c=e+1;c<t;c+=1)a[c]=a[c-1]+X(r,c-1,n)+o;return a}function Ct(t,e,r){return t<=0?0:(t-1)*e+r}function xt(t,e,r,o){return Array.from({length:t},(i,n)=>t<=1||!e?0:r[n]-n*o)}function At(t,e,r,o,i){if(t<=0)return 0;let n=e.map((c,p)=>c+X(r,p,i)),s=Math.min(...e),a=Math.max(...n);return Math.max(o,a-s)}function gt(t,e,r){return Array.from({length:t},(o,i)=>{let n=e.current[i];return n?n.offsetWidth:r})}function Z(t,e){return t.id??`${t.first}-${t.last}-${e}`}function yt(t){return [t.first,t.last].map(e=>e?.[0]).filter(e=>e!=null&&e!=="").join("")}function Tt(t){if(t.tooltip!==void 0)return t.tooltip===null?null:t.tooltip;let e=`${t.first||""} ${t.last||""}`.trim();return e!==""?e:null}function Rt({slotCount:t,anchorIndex:e,size:r,stackStep:o,gap:i,fanOutEnabled:n,compact:s}){let[a,c]=useState(false),[p,m]=useState(()=>Array.from({length:t},()=>r)),l=useRef(null),f=useRef([]),C=useRef(null),x=useCallback(()=>{let v=gt(t,f,r);m(g=>St(g,v)?g:v);},[t,r]),d=useCallback(()=>{C.current&&cancelAnimationFrame(C.current),C.current=requestAnimationFrame(x);},[x]),A=useMemo(()=>kt(t,e,p,i,o,r),[t,e,p,i,o,r]),y=useMemo(()=>xt(t,n&&a,A,o),[t,n,a,A,o]),S=useMemo(()=>Ct(t,o,r),[t,o,r]),O=useMemo(()=>At(t,A,p,S,r),[t,A,p,S,r]),k=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),c(true));},[n]),u=useCallback(()=>{n&&(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>c(false),120));},[n]);useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]),useEffect(()=>{n||c(false);},[n]),useLayoutEffect(()=>{m(Array.from({length:t},()=>r));},[t,r]),useLayoutEffect(()=>{x();},[t,r,x]),useEffect(()=>(d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d),C.current&&cancelAnimationFrame(C.current);}),[d]);let T=n&&a?O:s?r:S,b=n&&a,F=useMemo(()=>s?Array.from({length:t},(v,g)=>g===e||a?1:0):Array.from({length:t},()=>1),[s,t,e,a]);return {isHovering:a,handleMouseEnter:k,handleMouseLeave:u,slotRefs:f,translateX:y,slotOpacity:F,collapsedStackWidthPx:S,fannedRowWidthPx:O,trackWidth:T,hoverZIndexActive:b}}function H({items:t,children:e,maxItems:r,getItemKey:o,renderItem:i,renderOverflow:n,fanOutDirection:s,compact:a=false,"data-testid":c,sx:p,className:m,slotProps:l}){let f=Children.count(e)>0,{zIndex:C=1e3,size:x,stackStep:d,gap:A,minTrackWidth:y}=l?.layout??{},S=useMemo(()=>f?Children.toArray(e??null).length:t?.length??0,[f,e,t]),k=!(!a&&ht(S,r)),{size:u,stackStep:w,gap:T,minTrackWidth:b}=useMemo(()=>dt({size:x,stackStep:d,gap:A,minTrackWidth:y}),[x,d,A,y]),F=n??st,v=useMemo(()=>f?ft({children:e??null,maxItems:r,slotSize:u,renderOverflow:F}):!t?.length||!o||!i?[]:B({items:t,maxItems:r,getItemKey:o,renderItem:i,slotSize:u,renderOverflow:F}),[f,e,t,r,o,i,F,u]),g=v.length,Nt=useMemo(()=>ut(g,s),[g,s]),{handleMouseEnter:Et,handleMouseLeave:Mt,slotRefs:Wt,translateX:Lt,slotOpacity:tt,collapsedStackWidthPx:Kt,trackWidth:Vt,hoverZIndexActive:zt}=Rt({slotCount:g,anchorIndex:Nt,size:u,stackStep:w,gap:T,fanOutEnabled:k,compact:a});if(g===0)return null;let{sx:L,...Ht}=l?.shell??{},{style:Dt,...$t}=l?.track??{};return jsx(nt,{className:m,...Ht,sx:[{justifyContent:"flex-start",...k||a?{width:"100%"}:{}},...Array.isArray(p)?p:p!=null?[p]:[],...Array.isArray(L)?L:L!=null?[L]:[]],children:jsx(it,{"data-testid":c,...$t,style:Dt,onMouseEnter:k?Et:void 0,onMouseLeave:k?Mt:void 0,trackWidth:Vt,minTrackWidth:a?u:Math.max(b,Kt),slotSize:u,hoverZIndex:zt?C:void 0,children:v.map((et,R)=>jsx(motion.div,{ref:Xt=>{Wt.current[R]=Xt;},initial:false,animate:{x:Lt[R]??0,opacity:tt[R]??1},transition:{duration:.22,ease:"easeOut"},style:{position:"absolute",top:0,left:R*w,zIndex:R,width:u,height:u,pointerEvents:tt[R]===0?"none":"auto"},children:et.render()},et.key))})})}function oe({children:t,maxItems:e,renderOverflow:r,slotSize:o=24,sx:i,...n}){let s=useMemo(()=>ee.Children.toArray(t),[t]),{visibleItems:a,hiddenItems:c}=useMemo(()=>M(s,e),[s,e]),p=c.length>0,m=useMemo(()=>[{"--chip-stack-slot-size":`${o}px`},...Array.isArray(i)?i:i!=null?[i]:[]],[o,i]);if(!p)return jsx($,{"data-testid":"ChipStack",...n,sx:m,children:t});let l=r?.({items:s,overflowItems:c,size:o});return jsxs($,{"data-testid":"ChipStack",...n,sx:m,children:[a,l??jsx(K,{title:`${c.length} more`,children:jsxs("span",{children:["+",c.length]})})]})}var J=memo(oe);function ie(t){return jsx(ct,{"data-testid":"OverlapChip",...t})}var Q=memo(ie);var ce=["static","fanout-right","fanout-left","fanout-center"],Y="static";function pe(t){let{variant:e=Y,maxItems:r,renderOverflow:o,children:i,items:n,getItemKey:s,renderItem:a,compact:c=false,"data-testid":p,slotProps:m,sx:l,className:f}=t,C=Children.count(i??null)>0,x=!C&&(n?.length??0)>0&&s!=null&&a!=null,d=mt(e,C,x);if(d===null)return null;if(d==="static-children"||d==="static-items"){let S=m?.layout?.size??24;if(d==="static-items"&&n&&s&&a){let{visibleItems:O,hiddenItems:k}=M(n,r),u=k.length>0?o?.({items:n,overflowItems:k,size:S})??jsx(K,{title:`${k.length} more`,children:jsxs("span",{children:["+",k.length]})}):null,w=jsxs(Fragment,{children:[O.map((T,b)=>jsx(Q,{children:a(T,b,{slotSize:S})},s(T,b))),u]});return jsx(J,{"data-testid":p,slotSize:S,sx:l,className:f,children:w})}return jsx(J,{"data-testid":p,maxItems:r,renderOverflow:o,slotSize:S,sx:l,className:f,children:i})}let A=lt(e),y={maxItems:r,renderOverflow:o,fanOutDirection:A,compact:c,"data-testid":p??"ChipStack",slotProps:m,sx:l,className:f};return d==="animated-children"?jsx(H,{...y,children:i}):jsx(H,{...y,items:n,getItemKey:s,renderItem:a})}var wt=pe;function he({item:t,sourceIndex:e,slotSize:r}){let[o,i]=useState(false),n=useRef(null);useEffect(()=>{i(false);},[t.logo]);let s=!t.logo||o,a$1=Z(t,e),c="transparent";s&&(n.current?.key!==a$1&&(n.current={key:a$1,fill:Aa()}),c=n.current.fill);let p=jsx(pt,{faceSize:r,avatarFill:c,src:s?void 0:t.logo,slotProps:s?void 0:{img:{onError:()=>i(true)}},children:yt(t)}),m=Tt(t);return m!=null&&m!==""?jsx(a,{title:m,children:p}):p}var fe=he;var dr=wt;export{h as a,D as b,Z as c,Q as d,ce as e,Y as f,wt as g,fe as h,dr as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-2CIV4TII.js';import {Yc,Db}from'./chunk-KCEYICHJ.js';import {memo,useId}from'react';import n from'@mui/material/Box';import W from'@mui/material/Popover';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var x=styled(n,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:e,disabled:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"8px",paddingInlineEnd:"4px",paddingTop:"6px",paddingBottom:"6px",borderRadius:"4px",background:"#F9F9F9",border:"1px solid #F9F9F9",cursor:"pointer",...e&&{borderColor:o.palette.info.dark,background:o.palette.common.white},...t&&{cursor:"not-allowed"}})),s=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"4px",fontSize:"10px",fontWeight:500,flex:1})),c=styled(n)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:200,marginTop:"4px",width:"auto",overflow:"auto"}));styled(a,{shouldForwardProp:o=>o!=="selected"})(({theme:o,selected:e})=>({paddingInlineStart:"12px",paddingInlineEnd:"8px",paddingTop:"8px",paddingBottom:"8px",fontSize:"10px",color:o.palette.common.black,fontWeight:500,lineHeight:"10px",cursor:"pointer",...e&&{backgroundColor:"#F8F8F8"}}));function H({onClose:o,open:e,anchorEl:t,trigger:b,onOpen:f,children:u,disabled:h}){let w=yc(useId(),"account-dropdown");return jsxs(x,{id:w,open:e,onClick:f,"data-testid":"Dropdown",disabled:h,children:[jsx(s,{children:b}),jsx(n,{sx:{width:16,height:16,display:"flex",alignItems:"center"},children:jsx(n,{component:"img",src:e?Yc:Db,alt:"arrow",sx:{width:16,height:16,...e&&{width:12,height:12,padding:"2px"}}})}),jsx(W,{open:e,anchorEl:t,sx:{width:t?.clientWidth},onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{style:{width:t?.clientWidth,maxWidth:"unset"}}},children:jsx(c,{children:u})})]})}var g=memo(H);var j=g;export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {yj}from'./chunk-KCEYICHJ.js';import {memo,useId}from'react';import f from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var d=styled(f,{shouldForwardProp:t=>t!=="variant"&&t!=="size"&&t!=="width"&&t!=="height"})(({theme:t,variant:o="confirm",size:e="default",width:n,height:r})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%",gap:"8px","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"},...n!==void 0&&{width:n},...r!==void 0&&{height:r}}));function u({children:t,sx:o,...e}){let n=yc(useId(),"button");return jsx(d,{id:n,"data-testid":"Button",sx:o,...e,children:t})}u.displayName="Button";var p=memo(u);function s({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:yj,alt:"Plus Button",width:24,height:24})})}s.displayName="PlusButton";var l=memo(s);var y=l;var q=p;export{y as a,q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {useId,useState,useRef,useMemo,useCallback,useEffect}from'react';import re from'@mui/material/Box';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var v=3,h=24,B=styled("div")(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"})),G=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"})),O=styled("div")(()=>({position:"relative",display:"inline-block",width:0,height:24,pointerEvents:"none"})),j=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,display:"flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,fontSize:12,position:"absolute",top:0,left:0,boxSizing:"border-box",whiteSpace:"nowrap",lineHeight:1,transition:"width 180ms ease-out, padding 180ms ease-out"})),F=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,minWidth:24,display:"inline-flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,overflow:"hidden",position:"relative",boxSizing:"border-box",whiteSpace:"nowrap",fontSize:12,lineHeight:1})),U={position:"relative",overflow:"visible",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"};function q({icons:i}){let[s,I]=useState(false),[l,R]=useState([]),P=useRef(null),S=useRef(null),y=useRef([]),e=useRef(null),u=i??[],b=Math.max(0,(u.length??1)-1),T=u[b],o=u.slice(0,b),{peekItems:w,mainShiftX:m,guardLeft:A,guardWidth:H}=useMemo(()=>{let t=o.length,D=l.length===t&&l.every(n=>n>0),g=-6*t,p=D?l.reduce((n,a)=>n+a,0):t*h,x=Math.max(0,t-1)*v,d=Math.round(s?g+p+v*t:0),E=t-1,C=-6*(E+1),z=[];for(let n=0;n<t;n++){let a=t-1-n,Z=-6*(n+1),ee=D?l.slice(0,a).reduce((_,ne)=>_+ne,0)+v*a:(h+v)*a,te=Math.round(n===E?C:C+ee);z.push({key:`peek-${n}`,rIdx:n,origIdx:a,offX:Z,hoverX:te,zIndex:t-n,refCb:_=>{y.current[a]=_;},content:o[a]});}let V=C,Y=p+x;return {peekItems:z,mainShiftX:d,guardLeft:V,guardWidth:Y}},[o,l,s]),r=useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null);},[]),f=useCallback(()=>{let g=o.map((p,x)=>{let d=y.current[x];if(!d)return h;let E=d.scrollWidth||h,C=Math.max(h,E+12+2);return Math.ceil(C)});R(p=>p.length===g.length&&p.every((x,d)=>x===g[d])?p:g);},[o.length]),K=useCallback(()=>{r(),I(true);},[r]),Q=useCallback(()=>{r(),e.current=setTimeout(()=>I(false),120);},[r]);return useEffect(()=>()=>r(),[r]),useEffect(()=>{f();},[o.length]),useEffect(()=>{if(!s)return;let t=window.requestAnimationFrame(()=>{f();});return ()=>window.cancelAnimationFrame(t)},[s,f]),{isHovering:s,handleMouseEnter:K,handleRootMouseLeave:Q,rootRef:P,mainChipRef:S,peekItems:w,mainShiftX:m,mainIcon:T,guardLeft:A,guardWidth:H}}function J({icons:i=[],expandedZIndex:s=1e3,sx:I}){let l=yc(useId(),"left-peek-right-expanding-chip"),{handleMouseEnter:R,handleRootMouseLeave:P,rootRef:S,mainChipRef:y,isHovering:e,peekItems:u,mainShiftX:b,mainIcon:T}=q({icons:i});return jsx(re,{id:l,sx:{...U,...I},"data-testid":"LeftPeekRightExpandingChipBox",children:jsx(B,{ref:S,onMouseLeave:P,onMouseEnter:R,children:jsxs(G,{"data-testid":"Container",initial:false,children:[jsx(O,{"data-testid":"PeekStack",onMouseEnter:R,onMouseLeave:P,style:{pointerEvents:e?"auto":"none"},children:jsx(AnimatePresence,{initial:false,children:u.map(({key:o,rIdx:w,offX:m,hoverX:A,zIndex:H,refCb:r,content:f})=>jsx(j,{"data-testid":`LeftPeekChip-${w}`,ref:r,initial:{opacity:0,scale:.95,x:m,y:0},animate:{opacity:1,scale:1,x:e?A:m,y:0},exit:{opacity:0,scale:.95,x:m,y:0},transition:{duration:.18,ease:"easeOut"},style:{zIndex:H,width:e?"auto":24,minWidth:24,padding:e?"0 6px":0,whiteSpace:"nowrap",overflow:e?"visible":"hidden",pointerEvents:e?"auto":"none"},children:e&&jsx(Fragment,{children:f})},o))})}),jsx(F,{"data-testid":"MainChip",ref:y,style:{zIndex:s+10,padding:"0 6px"},initial:false,animate:{x:e?b:0},transition:{duration:.18,ease:"easeOut"},children:T})]})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc,Ia}from'./chunk-
|
|
1
|
+
import {yc,Ia}from'./chunk-2CIV4TII.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=yc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ia(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-BXMBE224.js';import {memo,useState,useRef,useMemo,useEffect}from'react';import {useTheme}from'@mui/material';import {motion}from'framer-motion';import {Resizable}from're-resizable';import X from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var x={boxShadow:"rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px",display:"flex",flexDirection:"column",overflow:"visible",width:"-webkit-fill-available",height:"100% !important",margin:"auto"},C={position:"fixed",right:0,left:24,top:88,overflow:"visible",borderRadius:"12px"},S={width:"inherit",height:"inherit",gridRowStart:1,gridColumnStart:1,position:"relative",display:"flex",justifyContent:"center"},R=styled(motion.div,{shouldForwardProp:t=>t!=="maximized"&&t!=="minimized"})(({maximized:t,minimized:r})=>({overflow:"hidden",display:"flex",flexDirection:"column",width:"100%",height:"100%",zIndex:1,borderRadius:"12px",...t&&!r&&{transform:"translate(0,0) !important"},...r&&{visibility:"hidden",opacity:0,pointerEvents:"none"}})),v=styled(X)(()=>({flexGrow:1})),w=styled(motion.div)(()=>({width:"inherit",height:"100%",overflow:"hidden",flexGrow:1,position:"relative",display:"grid",gridTemplateColumns:"1fr"}));function V({children:t,id:r,onResize:y,isMaximized:e,isMinimized:s,dragControls:E,onClick:i,options:{width:o,height:H,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,order:d,openOrder:a=1},sandboxMode:m=false,sx:T}){let f=useTheme(),[I,g]=useState(true),_=useRef(null),N=useRef(null),u=useRef(),G=()=>{g(true);},L=()=>{i?.(),g(false);},k=useMemo(()=>({...x,maxWidth:o,borderRadius:e?"0 !important":12,...!e&&{top:0},background:m?f.palette.common.lightOrange:f.palette.background.transparent[0],backdropFilter:"blur(32px)"}),[o,e,m]);return useEffect(()=>{u.current?.updateSize({width:e?"100vw":o,height:e?"100vh":"100%"});},[e,o]),jsx(v,{id:"app-container-wrapper","data-testid":"AppContainerWrapper",sx:T,children:jsx(w,{"data-testid":"AppContainerContainer",children:jsx(motion.div,{id:"app-content","data-add-id":r,"data-testid":"AppContent",ref:N,initial:S,children:jsx(R,{id:"content-wrapper",drag:!e&&I,dragMomentum:false,dragConstraints:false,onDragStart:i,onDragEnter:i,onClick:i,dragControls:E,dragListener:false,style:{...d&&{zIndex:Number(d)+3},...C,height:H},initial:{marginInline:"auto",scale:0,left:0,...!e&&{left:48*(a-1)}},animate:{width:o,...e&&{width:"100vw"},scale:+!s,top:e?0:88+24*(a-1),left:e?0:48*(a-1)},ref:_,maximized:e,minimized:s,transition:{duration:e?.3:0},children:jsx(Resizable,{"data-id":r,ref:c=>{u.current=c;},style:k,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,onResizeStart:L,onResizeStop:G,onResize:(c,Y,B)=>{y?.(B);},children:t})})})})})}var W=memo(V);var ge=W;export{ge as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-YYWTZ25R.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var i=styled(a)(({theme:t})=>({color:t.palette.text.primary,"&.CustomVariant_text":{height:24},display:"inline-flex"}));var n=({title:t,slotProps:e={},children:l})=>{let{chip:h={},tooltip:a={}}=e,{sx:s,...c}=h;return jsx(a$1,{...a,title:t,children:jsx(i,{...c,sx:{height:24,display:"inline-flex",color:"text.primary",...s},children:l})})},C=n;export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc}from'./chunk-
|
|
1
|
+
import {yc}from'./chunk-2CIV4TII.js';import {i}from'./chunk-BXMBE224.js';import {useId}from'react';import f from'@mui/material/Stack';import a from'@mui/material/Box';import d from'@mui/material/Skeleton';import {jsx,jsxs}from'react/jsx-runtime';function h(){let o=yc(useId(),"default-mf-widget-loader");return jsxs(f,{id:o,"data-testid":"DefaultMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",children:[jsxs(f,{direction:"row",spacing:1,height:"4.1875rem",sx:{pb:"1.2rem",paddingInline:"32px",pt:"10px",background:g=>g.palette.background.transparent[0]},children:[jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31}),jsx(d,{sx:{bgcolor:"gray.300"},variant:"rounded",width:60,height:31})]}),jsx(a,{flex:1,bgcolor:"#fff"})]})}var W=4;function x(){let o=yc(useId(),"reports-mf-widget-loader");return jsx(f,{id:o,"data-testid":"ReportsMFWidgetLoader",height:"100%",borderRadius:"0 0 12px 12px",overflow:"hidden",sx:{padding:"8px 32px"},children:Array.from({length:W}).map((g,u)=>jsx(a,{children:jsxs(f,{direction:"row",spacing:1,sx:{py:1,height:56,borderTop:"1px solid rgb(242, 242, 242)"},children:[jsx(d,{variant:"rounded",width:32,height:32}),jsxs(a,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(d,{width:80,height:12.29}),jsxs(a,{sx:{display:"flex",gap:"4px"},children:[jsx(d,{width:50,height:12.29}),jsx(d,{width:125,height:12.29})]})]})]})},u))})}var F=({appCode:o})=>o===i.reports.code||o===i.upload.code?jsx(x,{}):jsx(h,{}),c=F;var G=c;export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {yc,Ba,Ca}from'./chunk-
|
|
1
|
+
import {yc,Ba,Ca}from'./chunk-2CIV4TII.js';import {Fb,Wc}from'./chunk-KCEYICHJ.js';import co,{useId,useState,useRef,useCallback,useEffect,useMemo}from'react';import B from'@mui/material/Box';import mo from'@mui/material/ClickAwayListener';import to from'@mui/material/Stack';import Q from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import L from'@mui/material/Button';import io from'@mui/material/TextField';import lo from'@mui/material/MenuList';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {RgbColorPicker,RgbaColorPicker}from'react-colorful';import Ho from'@mui/material/Divider';import uo from'@mui/material/Popper';import q from'@mui/material/MenuItem';import Y from'@mui/material/InputAdornment';import v from'color';import {Popper}from'@mui/material';var O=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"}}),G=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}}}})),D=styled(B)(()=>({display:"flex",gap:"8px",justifyContent:"flex-end"})),V=styled(o=>jsx(Q,{...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"}})),X=styled(L)(({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}})),$=styled(L)(({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"}})),U=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"}})),Z=styled(lo)({backgroundColor:"#ffffff",borderRadius:"4px",boxShadow:"0px 8px 30px 0px #00000029",minWidth:70,"& .MuiMenuItem-root":{fontSize:12,fontWeight:500,padding:"4px 8px"}}),x=styled(io)(({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 go=({scheme:o,setScheme:s})=>{let[n,r]=co.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(U,{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:Wc})]}),jsx(uo,{anchorEl:n,open:!!n,placement:"bottom",disablePortal:true,keepMounted:true,modifiers:[{name:"offset",options:{offset:[0,4]}}],children:jsx(mo,{onClickAway:c=>{n?.contains(c.target)||i();},children:jsxs(Z,{children:[jsx(q,{onClick:()=>d("RGB"),children:"RGB"}),jsx(q,{onClick:()=>d("HEX"),children:"HEX"})]})})})]})},J=go;var So=({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(to,{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(Y,{position:"end",sx:{m:0},children:jsx(Q,{component:"span",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})},size:"small"})]})},K=So;var _o=({value:o,onChange:s,disableAlpha:n=false})=>{let r=useMemo(()=>v.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.rgb(o.r,o.g,o.b).hex().replace("#","");a(t);},[o.r,o.g,o.b]),jsxs(to,{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(`#${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(Y,{position:"start",sx:{m:0},children:jsx(Q,{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(Y,{position:"end",sx:{m:0},children:jsx(Q,{component:"span",color:"text.primary",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})}})]})},j=_o;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(G,{className:"color-picker__widget",children:[jsx(r?RgbColorPicker:RgbaColorPicker,{color:i,onChange:e}),jsxs(to,{mt:2,spacing:1,direction:"row",children:[jsx(J,{scheme:m,setScheme:a}),m==="RGB"?jsx(K,{value:{...i,a:Math.round(i.a*100)},onChange:l,disableAlpha:r}):jsx(j,{value:{...i,a:i.a},onChange:f,disableAlpha:r})]}),jsx(Ho,{sx:{my:"12px"}}),jsxs(D,{className:"color-picker__widget-actions",children:[jsx($,{className:"color-picker__widget-actions__cancel",onClick:u,children:c("cancel")}),jsx(X,{className:"color-picker__widget-actions__confirm",onClick:t,children:c("okay")})]})]})},eo=Wo;var ro={hideReset:false,disableAlpha:false},Vo=({value:o="#ffffff",onChange:s,onReset:n,sx:r,options:m=ro,disabled:a=false})=>{let i=yc(useId(),"color-picker"),[d,c]=useState(null),{disableAlpha:u=false,hideReset:t=false}={...ro,...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(mo,{onClickAway:()=>c(null),children:jsxs(to,{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(to,{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(Q,{className:"color-picker__label",fontWeight:500,fontSize:9,color:"text.primary",textTransform:"uppercase",children:o}),jsx(V,{className:"color-picker__edit-btn",type:"button",onClick:l,disabled:a,children:"Edit"})]})]}),t?jsx("div",{}):jsx(O,{className:"color-picker__close-btn",type:"button",disabled:a,onClick:n,children:jsx(B,{component:"img",src:Fb,width:10,height:10})}),jsx(Popper,{anchorEl:d,open:!!d,placement:"top",children:jsx(eo,{initialValue:o,onCancel:f,onConfirm:P,disableAlpha:u})})]})})},no=Vo;var ot=no;export{ot as a};
|