@tap-payments/os-micro-frontend-shared 0.3.36 → 0.3.37
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-5ARDDYXJ.js → chunk-24GIPYTV.js} +1 -1
- package/build/_chunks/chunk-25IWFELL.js +1 -0
- package/build/_chunks/{chunk-L3H7ON2F.js → chunk-264AVQZB.js} +1 -1
- package/build/_chunks/{chunk-I5KEW75Q.js → chunk-2IDI5FIT.js} +1 -1
- package/build/_chunks/{chunk-LVM3MTOA.js → chunk-2R3RHB6S.js} +1 -1
- package/build/_chunks/{chunk-EUJTQSJL.js → chunk-2SZM47F2.js} +1 -1
- package/build/_chunks/{chunk-J35OWNMC.js → chunk-37FU3HTL.js} +1 -1
- package/build/_chunks/{chunk-L5JCONCT.js → chunk-3MIQWQQL.js} +1 -1
- package/build/_chunks/{chunk-E6LKOOFL.js → chunk-3MZJFU75.js} +1 -1
- package/build/_chunks/{chunk-KSPGIGIC.js → chunk-3UW23XJL.js} +1 -1
- package/build/_chunks/{chunk-5LUJKHHC.js → chunk-425IBHKE.js} +1 -1
- package/build/_chunks/{chunk-HQI3NKYJ.js → chunk-4SY2RHF6.js} +1 -1
- package/build/_chunks/{chunk-KZBOCKP5.js → chunk-5IVJR7ID.js} +1 -1
- package/build/_chunks/chunk-5LSKIBCX.js +1 -0
- package/build/_chunks/{chunk-IG2EYCRZ.js → chunk-5MLLBPE3.js} +1 -1
- package/build/_chunks/{chunk-BPMC6UFW.js → chunk-5S3T3XNY.js} +1 -1
- package/build/_chunks/{chunk-GONBJ7T4.js → chunk-5Z2NA3V4.js} +1 -1
- package/build/_chunks/{chunk-WWQP6V2S.js → chunk-5ZTK2DTR.js} +1 -1
- package/build/_chunks/{chunk-AXVYPNDS.js → chunk-644HXTAE.js} +1 -1
- package/build/_chunks/{chunk-P2M3F4LT.js → chunk-65AWRJJE.js} +1 -1
- package/build/_chunks/{chunk-VSVZKK4J.js → chunk-6AJO36AF.js} +1 -1
- package/build/_chunks/{chunk-RQS3IG3X.js → chunk-6IBFFDYO.js} +1 -1
- package/build/_chunks/{chunk-K26V7ISU.js → chunk-7HIN4SP6.js} +1 -1
- package/build/_chunks/{chunk-A4HTULOP.js → chunk-7MJVA3JB.js} +1 -1
- package/build/_chunks/{chunk-6DR4DXYQ.js → chunk-7Z7U2OMA.js} +1 -1
- package/build/_chunks/{chunk-SFEYZ6UC.js → chunk-AKFLA3AI.js} +1 -1
- package/build/_chunks/{chunk-4GLLOAFY.js → chunk-ANJRT2B4.js} +1 -1
- package/build/_chunks/{chunk-ZI75N7BZ.js → chunk-ASJ6GAAA.js} +1 -1
- package/build/_chunks/{chunk-HE3FMLQY.js → chunk-ASRZLEZV.js} +1 -1
- package/build/_chunks/{chunk-ZCJKWR2O.js → chunk-B6GU33JP.js} +1 -1
- package/build/_chunks/{chunk-P7ECTYML.js → chunk-B7J5INEP.js} +1 -1
- package/build/_chunks/{chunk-JDWCL7GJ.js → chunk-BWJPQOMN.js} +1 -1
- package/build/_chunks/{chunk-ESJCK6HW.js → chunk-CILKCYEG.js} +1 -1
- package/build/_chunks/{chunk-ELKH5INT.js → chunk-CNPPHOFA.js} +1 -1
- package/build/_chunks/{chunk-I6PM7KFE.js → chunk-COBEFFDC.js} +1 -1
- package/build/_chunks/{chunk-PYS2U3OD.js → chunk-COPHDTAJ.js} +1 -1
- package/build/_chunks/{chunk-AC4KAKGY.js → chunk-CRGXVUQV.js} +1 -1
- package/build/_chunks/{chunk-DNNN35L5.js → chunk-CVUX77JW.js} +1 -1
- package/build/_chunks/{chunk-OUERY42D.js → chunk-CYUHMSLI.js} +1 -1
- package/build/_chunks/{chunk-4CO35TOY.js → chunk-CZIIDBGD.js} +1 -1
- package/build/_chunks/{chunk-LK32TVZ3.js → chunk-D3PKO4EA.js} +1 -1
- package/build/_chunks/{chunk-LUU7CTOO.js → chunk-DKQRANZG.js} +1 -1
- package/build/_chunks/{chunk-XLWWA6CJ.js → chunk-DSFHY45V.js} +1 -1
- package/build/_chunks/{chunk-5T3HOXFP.js → chunk-E3WHOVVW.js} +1 -1
- package/build/_chunks/{chunk-BDKEJBMX.js → chunk-E6IVKR44.js} +1 -1
- package/build/_chunks/{chunk-CFYVC5K6.js → chunk-EJCYMB26.js} +1 -1
- package/build/_chunks/{chunk-BW4IWQUI.js → chunk-F42NLFOM.js} +1 -1
- package/build/_chunks/{chunk-GVNRRGWG.js → chunk-FCN2PNOQ.js} +1 -1
- package/build/_chunks/{chunk-AJB47VOM.js → chunk-FX73HHSU.js} +1 -1
- package/build/_chunks/{chunk-2I5NAVTK.js → chunk-G2ULHE77.js} +1 -1
- package/build/_chunks/{chunk-PC45PNLX.js → chunk-GKOMALZH.js} +1 -1
- package/build/_chunks/{chunk-G2OWSFMR.js → chunk-H6A7LB3N.js} +1 -1
- package/build/_chunks/{chunk-ORXU3VCN.js → chunk-HZKRAADE.js} +1 -1
- package/build/_chunks/{chunk-5H7WMTMR.js → chunk-IQGGEFTS.js} +1 -1
- package/build/_chunks/{chunk-ZNSKASYS.js → chunk-IRN4UAJD.js} +1 -1
- package/build/_chunks/{chunk-UB7HUWAQ.js → chunk-JF6PWJZY.js} +1 -1
- package/build/_chunks/{chunk-BYJ2XLTW.js → chunk-JHBGSF4J.js} +1 -1
- package/build/_chunks/{chunk-BJ3Z2WFR.js → chunk-JIJNZQG6.js} +1 -1
- package/build/_chunks/{chunk-MFCHF5BK.js → chunk-JUKEYCTU.js} +1 -1
- package/build/_chunks/{chunk-PPEV33QB.js → chunk-KAQE76SE.js} +1 -1
- package/build/_chunks/{chunk-DQVP4KZV.js → chunk-KDBZ73Y5.js} +1 -1
- package/build/_chunks/{chunk-7LQ7FNTX.js → chunk-KFQ6O6W4.js} +1 -1
- package/build/_chunks/{chunk-SWILNQW4.js → chunk-KQVBQWAY.js} +1 -1
- package/build/_chunks/{chunk-6AYUI5GV.js → chunk-LDCV2JMD.js} +1 -1
- package/build/_chunks/{chunk-DRCLG5VT.js → chunk-LYFXQM4Y.js} +1 -1
- package/build/_chunks/{chunk-XBFQH3GZ.js → chunk-ND3CQPHU.js} +1 -1
- package/build/_chunks/{chunk-QFXOBSXW.js → chunk-O6HUXU74.js} +1 -1
- package/build/_chunks/{chunk-6X7LS7KK.js → chunk-ONAXBL6X.js} +1 -1
- package/build/_chunks/{chunk-HBEH35LA.js → chunk-OPT6Q26G.js} +1 -1
- package/build/_chunks/{chunk-U6FHSFDK.js → chunk-OU26R2ZH.js} +1 -1
- package/build/_chunks/{chunk-DU6IKIQE.js → chunk-OUZKELT6.js} +1 -1
- package/build/_chunks/{chunk-5JBBLGV3.js → chunk-P53QM5ZH.js} +1 -1
- package/build/_chunks/{chunk-2AVUNWTY.js → chunk-PGMSTAF5.js} +1 -1
- package/build/_chunks/{chunk-LWXV6NHK.js → chunk-PMDVZJAI.js} +1 -1
- package/build/_chunks/{chunk-PK3VKOBG.js → chunk-PRHUY2CD.js} +1 -1
- package/build/_chunks/{chunk-XJEXIR7N.js → chunk-PXRISNLH.js} +1 -1
- package/build/_chunks/{chunk-5FY5WEAA.js → chunk-QA56IEXS.js} +1 -1
- package/build/_chunks/{chunk-ZVG6L7OA.js → chunk-QBD3O77Y.js} +1 -1
- package/build/_chunks/{chunk-MOUYRKQ3.js → chunk-QGSBHZTO.js} +1 -1
- package/build/_chunks/{chunk-BK4QE2XY.js → chunk-QI5ONUIK.js} +1 -1
- package/build/_chunks/{chunk-IUCNIU4U.js → chunk-QL4R766B.js} +1 -1
- package/build/_chunks/{chunk-PHN2UNJA.js → chunk-QV6X6ZN6.js} +1 -1
- package/build/_chunks/{chunk-JDGHZNKY.js → chunk-RIJTT6QH.js} +1 -1
- package/build/_chunks/{chunk-WVGNLRZQ.js → chunk-RIKXHYPW.js} +1 -1
- package/build/_chunks/{chunk-WDGLJVOT.js → chunk-S36DJQ7J.js} +1 -1
- package/build/_chunks/{chunk-KRGJ5FIM.js → chunk-SJ6HXWDZ.js} +1 -1
- package/build/_chunks/{chunk-KKIMVGFE.js → chunk-TFSDMTHE.js} +1 -1
- package/build/_chunks/{chunk-B76YFNBT.js → chunk-TNRTGLOJ.js} +1 -1
- package/build/_chunks/{chunk-S3WB7BAM.js → chunk-TTMCRWE5.js} +1 -1
- package/build/_chunks/{chunk-IN4TI6C5.js → chunk-U4O4343E.js} +1 -1
- package/build/_chunks/{chunk-IQ2H33GE.js → chunk-UB3MA7UL.js} +1 -1
- package/build/_chunks/{chunk-27NBJWWB.js → chunk-UPH4OINU.js} +1 -1
- package/build/_chunks/{chunk-G4YDGHDJ.js → chunk-V5PNP75S.js} +1 -1
- package/build/_chunks/{chunk-HTHM56FJ.js → chunk-VSKVOLMX.js} +1 -1
- package/build/_chunks/{chunk-FCBDFBYS.js → chunk-VYZDFZAK.js} +1 -1
- package/build/_chunks/{chunk-4A4VJPND.js → chunk-WJLRJAUM.js} +1 -1
- package/build/_chunks/{chunk-6Q3JVULI.js → chunk-WKDLZKPO.js} +1 -1
- package/build/_chunks/{chunk-UK456O6R.js → chunk-WNBENFER.js} +1 -1
- package/build/_chunks/{chunk-B6Q43W42.js → chunk-WUS2EVHL.js} +1 -1
- package/build/_chunks/{chunk-4VFSZWB2.js → chunk-YDPDHWVC.js} +1 -1
- package/build/_chunks/{chunk-MN5KDIJ4.js → chunk-YDPQT7J7.js} +1 -1
- package/build/_chunks/{chunk-TZFVDVTZ.js → chunk-YTOCVVWT.js} +1 -1
- package/build/_chunks/{chunk-VW75KIKI.js → chunk-YZFKWXML.js} +1 -1
- package/build/_chunks/{chunk-6KXK4BO7.js → chunk-ZPST4MU4.js} +1 -1
- package/build/components/Accordion/index.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/Checkbox/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/CountBadge/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/FlagDetails/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/LazyImage/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/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/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/SimpleDialog/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/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/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/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/_v2/index.js +1 -1
- package/build/components/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-OIVTFRJE.js +0 -1
- package/build/_chunks/chunk-PSRI6U2B.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-V5PNP75S.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useId,useMemo}from'react';import L from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import y from'@mui/material/FormControlLabel';import {FormControl,FormLabel,Stack}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var R=styled(y,{shouldForwardProp:o=>!["size","showHoverEffects","labelSx"].includes(o)})(({size:o="small",showHoverEffects:e=true,labelSx:r})=>({margin:"0",width:"100%",cursor:"pointer",padding:o==="small"?"7.5px 16px 7.5px 8px":o==="medium"?"9px 16px 9px 10px":"11px 16px 11px 12px",maxHeight:o==="small"?"35px":o==="medium"?"40px":"45px",...e&&{"&:hover":{boxShadow:"0px 0px 16px 0px #00000021",borderLeft:"1px solid transparent"}},"& .MuiFormControlLabel-label":{fontSize:o==="small"?"11px":o==="medium"?"13px":"15px",fontWeight:"500",color:"#20232B",width:"100%",cursor:"pointer",...r},"& .MuiRadio-root":{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:"#1F88D0"}}}));function k({option:o,size:e="small",customLabelRenderer:r,labelPosition:m="end",showHoverEffects:i=true,customRadioProps:n,labelSx:s,icon:l,...d}){let p=r?r(o):o.label,u=useMemo(()=>l?jsxs(Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[p,jsx("img",{alt:"icon",...l})]}):p,[l,p]);return jsx(R,{value:o.value,control:jsx(a,{size:e,...n,...o.customProps}),label:u,disabled:o.disabled,size:e,labelPlacement:m,showHoverEffects:i,labelSx:s,...d})}function h({options:o,onOptionChange:e,size:r="small",customLabelRenderer:m,layout:i="vertical",spacing:n=0,labelPosition:s="end",showHoverEffects:l=true,customRadioProps:d,labelSx:p,onChange:u,title:c,sx:g,...S}){let v=t=>{let x=t.target.value;e?.(x),u?.(t,x);},w=Jc(useId(),"radio-group");return jsxs(FormControl,{id:w,"data-testid":"RadioGroup",children:[typeof c=="string"?jsx(FormLabel,{children:c}):c,jsx(L,{onChange:v,sx:{display:"flex",flexDirection:i==="horizontal"?"row":"column",gap:n,...g},...S,children:o.map(t=>jsx(k,{icon:t.icon,option:t,size:r,customLabelRenderer:m,labelPosition:s,showHoverEffects:l,customRadioProps:d,labelSx:p},t.value))})]})}h.displayName="RadioGroup";var B=memo(h);export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import s from'react-dom';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled(Box)(()=>({position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:999}));function a(m){let p=Jc(useId(),"custom-backdrop");return s.createPortal(jsx(t,{...m,id:p,"data-testid":"CustomBackdrop"}),document.body)}var r=memo(a);var b=r;export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-ASRZLEZV.js';import {a}from'./chunk-QV6X6ZN6.js';import {Jc}from'./chunk-25IWFELL.js';import {Cb,A as A$1}from'./chunk-3JUTMTQV.js';import {useId,useMemo,useState}from'react';import d from'@mui/material/Box';import R from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var b=styled(d)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),k=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),v=styled(d,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),y=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(d$1,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({$hasSearchValue:e})=>({cursor:e?"pointer":"default",width:"100%",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(a)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),A=styled(a)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),L=styled(R)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:h,filteredOptions:a,isLoading:P,initialSalesChannels:m,initialSalesChannelsSearch:V}){let B=Jc(useId(),"sales-channel-filter"),o=useMemo(()=>m||[],[m]),[l,u]=useState(V||""),S=t=>o.some(i=>i.id===t),s=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(k,{id:B,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(v,{$active:!!l,children:jsx(y,{src:l?Cb:A$1,alt:"search",$isClear:!!l,onClick:()=>{u(""),h("");}})}),disabled:x,onChange:t=>{u(t.target.value),h(t.target.value);},value:l,disableUnderline:true}),jsx(b,{children:P?Array.from({length:9}).map((t,i)=>jsx(L,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:s,isIndeterminate:!s&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(s?[]:a);},children:s?"Deselect All":"Select All"}),a.map(t=>jsx(A,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let O=S(t.id)?o?.filter(D=>D.id!==t.id):[...o??[],t];e(O);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import a from'@mui/material/Box';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var e=styled(motion.div)(()=>({width:"100%",height:"100%",cursor:"pointer",".card-front > div, .card-back > div, .card-container":{width:"inherit",height:"inherit"},".card-container":{perspective:"1000px"},".card":{width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"},".card-front, .card-back":{position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},".card-back":{transform:"rotateY(180deg)"}}));function t({frontCard:d,backCard:n,isFlipped:p,isHovered:c}){let m=Jc(useId(),"flipping-card");return jsx(e,{id:m,"data-testid":"FlippingCard",children:jsx(motion.div,{className:"card-container",children:jsxs(motion.div,{className:"card",animate:{rotateY:p?180:c?20:0},transition:{duration:.3},children:[jsx(motion.div,{className:"card-front",children:jsx(a,{children:d})}),jsx(motion.div,{className:"card-back",children:jsx(a,{children:n})})]})})})}var N=t;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,Ra}from'./chunk-
|
|
1
|
+
import {Jc,Ra}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=Jc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Ra(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {re}from'./chunk-3JUTMTQV.js';import {useId}from'react';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:t})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.palette.background.paper,height:31,gap:o.spacing(1),borderRadius:o.shape.borderRadius,borderWidth:1,padding:o.spacing(1),border:`1px solid ${o.palette.divider}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...t==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...t==="bottom-right"&&{right:12,transform:"none"},...t==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:t==="bottom-center"?"translate(-50%, 100%)":t==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:t==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),s=styled("img")({cursor:"pointer"}),p=styled(Typography)(({theme:o})=>({fontSize:11,fontWeight:500,color:o.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}));function g({message:o="Something went wrong",onRetry:t,position:l="bottom-center",iconSrc:m}){let c=Jc(useId(),"error-toast");return jsxs(n,{id:c,"data-testid":"ErrorToast",toastPosition:l,children:[jsx(p,{children:o}),jsx(s,{onClick:f=>t?.(f),src:m||re,alt:"toast-icon"})]})}var d=g;var v=d;export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-JHBGSF4J.js';import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var r=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexDirection:"row"})),i=styled(b)(()=>({padding:"0.75px 12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"4px"}));var x=({chips:t,containerSx:a,defaultChipSx:n,...l})=>{let u=Jc(useId(),"status-group-chips");return !t||t.length===0?null:jsx(r,{id:u,"data-testid":"StatusGroupChips",sx:a,...l,children:t.map(({key:d,content:C,sx:f,...m})=>jsx(i,{sx:{...n,...f},...m,children:C},d))})},y=x;export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {t,s}from'./chunk-3JUTMTQV.js';import {useId}from'react';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var c=styled(S)(()=>({height:10}));styled("span")(({theme:o})=>({fontSize:o.typography.body2.fontSize,lineHeight:"17px",fontWeight:"700"}));styled("span")(()=>({fontWeight:"400"}));var l=styled("span")(({symbol:o,fontSize:e,color:t})=>({display:"inline-block",height:e,width:e,backgroundColor:t,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var u={SAR:s,AED:t};function g({currency:o,fontSize:e,color:t,sx:m={}}){let a=Jc(useId(),"currency-symbol"),n=u[o];return n?t?jsx(l,{id:a,"data-testid":"CurrencySymbol",symbol:n,fontSize:e,color:t,"aria-label":o,role:"img",sx:m}):jsx(c,{id:a,"data-testid":"CurrencySymbol",component:"img",src:n,alt:o,sx:{height:e,...m}}):jsx(Fragment,{children:o})}var b=g;var B=b;export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-4SY2RHF6.js';import {Jc}from'./chunk-25IWFELL.js';import {tb}from'./chunk-3JUTMTQV.js';import {memo,useState,useRef,useEffect,useMemo,useId}from'react';import Z from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var z=styled(a)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.subtitle1.fontSize,color:e.palette.grey[700],paddingInlineStart:e.spacing(2),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingInlineEnd:e.spacing(1)})),L=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:r})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:r?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),k=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),R=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),H=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),$=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),A=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),O=styled(Box)(({theme:e})=>({position:"relative",backgroundColor:e.palette.common.white,zIndex:999999}));function j({label:e,icon:r,name:s,menuItems:t,setSelected:y,onSelect:P,selected:p,displayChildrenCount:C,disabled:i,placement:x="right",sx:g,menuSx:I}){let[u,S]=useState(null),l=useRef(null),[a,n]=useState(false),h=o=>{!i&&p!==void 0&&(y({name:o,selected:!p}),p||n(false));};return useEffect(()=>{n(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(L,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${u?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!u&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{u&&S(null);},onClick:o=>{i||(o.stopPropagation(),h(s));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[p!==void 0&&jsx(R,{size:"small",indeterminate:a,checked:p,disabled:i}),jsxs(H,{children:[r&&r,jsxs($,{children:[e&&jsx(B,{children:e}),!!t?.length&&jsxs(G,{children:[C&&jsx(A,{children:t.length}),jsx("img",{src:tb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(Z,{open:!!(u&&t?.length),anchorEl:u,placement:x==="left"?"left-start":"right-start",sx:{zIndex:99999,...I},children:jsx(V,{className:"child-dropdown",menuItems:t,placement:x,onChildrenChange:o=>{let w=o.every(d=>d.selected);p!==void 0&&!i&&(w&&y({name:s,selected:true}),o.every(d=>!d.selected)&&y({name:s,selected:false}),n(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!w));},onSelect:o=>{P(o,s);}})})]})}var M=memo(j);function te({title:e,menuItems:r,onChildrenChange:s,onSelect:t,className:y,updatedList:P,footer:p,header:C,placement:i="right",...x}){let[g,I]=useState({name:"",selected:false}),[u,S]=useState();return useEffect(()=>{S(r);},[r]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,n=[],h=d=>d?.map(m=>(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}})),w=(d=>d.map(m=>m.name===l?(n.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:h(m.menuItems)}}):m))(u);S(w),P&&P(w),s&&s(w),t&&t(n);}},[g]),jsxs(k,{component:"article",className:`tap-dropdown ${y||""}`,...x,children:[jsx(O,{children:e&&jsx(z,{component:"p",children:e})}),C,jsx(F,{children:u?.map((l,a)=>jsx(M,{setSelected:({name:n,selected:h})=>{I({name:n,selected:h});},onSelect:n=>{t&&t(n);},placement:i,...l},`${l.name}-${a}`))}),p&&p]})}var V=memo(te);var K=(e,{menuItemSx:r,menuSx:s})=>(e.forEach(t=>{t.sx={...r,...t.sx},t.menuSx={...s,...t.menuSx},t.menuItems?.length&&K(t.menuItems,{menuItemSx:r,menuSx:s});}),e);function le({title:e,menuItems:r,onSelect:s,updatedList:t,header:y,placement:P="right",menuItemSx:p={},menuSx:C={},...i}){let x=useMemo(()=>K(r,{menuItemSx:p,menuSx:C}),[r,p,C]),[g,I]=useState(x),u=Jc(useId(),"nested-dropdown");useEffect(()=>{I(x);},[x]);let S=l=>{let a=h=>h.map(o=>({...o,selected:l.find(w=>o.name===w.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),n=a(g);I(n),t&&t(n);};return jsx(V,{id:u,"data-testid":"NestedDropdown",placement:P,menuItems:g,title:e,header:y,onSelect:l=>{s&&s(l),S(l);},...i})}var Q=memo(le);var Ne=Q;export{M as a,V as b,Ne as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-KFQ6O6W4.js';import {e}from'./chunk-B7J5INEP.js';import {Jc}from'./chunk-25IWFELL.js';import {Ig}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var l=styled(Box,{shouldForwardProp:t=>t!=="isLongLabel"})(({theme:t,isLongLabel:i})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"6px 16px",height:"32px",background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,borderRadius:"50px",fontSize:"11px",gap:t.spacing(1),minWidth:i?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));function u({ids:t,visible:i,label:o,onDismiss:d,dismissible:m=true}){let c=Jc(useId(),"active-filter-chip");return i?jsxs(l,{id:c,"data-testid":"ActiveFilterChip",isLongLabel:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),m&&jsx(e,{pointer:true,round:true,onClick:d,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:Ig,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var N=s;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import {styled,CircularProgress}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(CircularProgress)(()=>({width:"24px !important",height:"24px !important",padding:"5px",".MuiCircularProgress-root":{width:"14px !important",height:"14px !important",display:"flex"},".MuiCircularProgress-circle":{strokeWidth:"1.017px",stroke:"rgba(0, 0, 0, 0.62)"}}));function t(i){let p=Jc(useId(),"loader");return jsx(o,{id:p,"data-testid":"Loader",...i})}t.displayName="Loader";var e=memo(t);var P=e;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-WN5DXLHY.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-WN5DXLHY.js';import {Jc}from'./chunk-25IWFELL.js';import c,{forwardRef,useId,useMemo,useState,useRef,useEffect}from'react';import {styled,Box,useTheme}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var f=styled(forwardRef((t,o)=>{let{className:r,variant:n="text",...e}=t,i=`${r||""} CustomVariant_${n}`;return jsx(Box,{ref:o,...e,className:i})}),{shouldForwardProp:t=>t!=="icon"})(({theme:t,variant:o="text",icon:r})=>({border:`1px solid ${t.palette.divider}`,borderRadius:"30px",backgroundColor:t.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",...r&&{justifyContent:"flex-start",gap:t.spacing(1)},...o==="text"&&{padding:`${t.spacing(.75)} ${t.spacing(1)}`,height:"30px",maxWidth:"150px"},...o==="circular"&&{height:24,width:24},...o==="pill-icon"&&{height:24,width:36}})),C=styled("span")(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:t.spacing(1)})),h=styled(motion.span,{shouldForwardProp:t=>t!=="sourcesCount"})(({sourcesCount:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"absolute",minWidth:`${t*6+36}px `,minHeight:"24px",cursor:"pointer",backgroundColor:"transparent",borderRadius:"16px"})),x=t=>{let{index:o,xDelta:r=39,shadow:n,itemsCount:e=0,expandDirection:i="RIGHT"}=t,a=(e-1)*6;return {start:{x:o*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:i==="RIGHT"?o*r:a+-1*((e-1-o)*r),transition:{duration:.3,type:"tween",ease:"easeOut"},boxShadow:n}}};var $=forwardRef(({children:t,...o},r)=>{let n=Jc(useId(),"chip"),{icon:e}=o;return jsxs(f,{ref:r,id:n,"data-testid":"Chip",...o,children:[jsx(Fragment,{children:e}),t]})}),H=$;var F=({order:t,children:o,getSourceAnimation:r,sourceCount:n,expandDirection:e})=>{let i=r||x,a$1=useTheme(),p=useMemo(()=>i({index:t,shadow:a$1.shadows[4],itemsCount:n,expandDirection:e}),[t,a$1.shadows,i,n,e]);return jsx(a,{order:t,variants:p,children:o})},u=F;var g=({children:t,className:o,getSourceAnimation:r,expandDirection:n})=>{let e=c.Children.count(t),[i,a]=useState({width:0,height:0}),p=useRef(null);useEffect(()=>{if(!p.current)return;let s=p.current;a({width:s.clientWidth,height:s.clientHeight});},[]);let y=useMemo(()=>c.Children.map(t,s=>!c.isValidElement(s)||s.type!==u?(console.error(`\u26A0\uFE0F WARNING: "${g.name}" must contains only children of type "${u.name}"`),s):c.cloneElement(s,{...s.props,sourceCount:e,getSourceAnimation:r,expandDirection:n})),[t,r,e,n]);return jsx(C,{"data-testid":"styled-source-cell",sx:{...i},children:jsx(h,{ref:p,layout:true,className:o,whileHover:"animate",animate:"start",sourcesCount:e,variants:{animate:{width:e*38,zIndex:50}},style:{zIndex:29},children:y})})},L=g;export{H as a,u as b,L as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {Kc}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var e=styled(d)(({theme:r})=>({fontSize:"10px",color:r.palette.error.light,padding:"8px",background:r.palette.background.gradient.error,borderRadius:"4px",display:"flex",gap:"4px",alignItems:"center",height:32}));function l({error:r,...i}){let n=Jc(useId(),"error");return jsxs(e,{...i,id:n,"data-testid":"Error",children:[jsx("img",{src:Kc,alt:"w"}),r]})}var p=memo(l);var k=p;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-5Z2NA3V4.js';import {a}from'./chunk-O6YEG23R.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useState,useId}from'react';import l from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';var c=styled(motion.div)(({theme:o})=>({borderRadius:"8px",position:"fixed",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 46px)",width:416,margin:"auto",background:o.palette.grey[400],boxShadow:o.shadows[3]})),C=styled(l)(({theme:o})=>({background:o.palette.common.white,flex:1,paddingTop:"31px",paddingBottom:"31px",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"column",position:"relative",overflow:"auto"})),b=styled(l)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),h=styled(l)(({theme:o})=>({display:"flex",flexDirection:"column",padding:"18px 24px",boxShadow:o.shadows[15],position:"relative",gap:8,minHeight:68,backgroundColor:o.palette.common.white,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}));function p({children:o,index:e,dialogRef:a,height:t,onClick:r,order:s,dragControls:d,style:m}){let n=Jc(useId(),"dialog");return jsx(c,{id:n,"data-testid":"Dialog",drag:true,dragListener:false,dragMomentum:false,dragControls:d,initial:{top:"50%",left:`calc(50% + ${e*10}px - ${416/2}px)`},transition:{duration:.1},animate:{...t&&{top:`calc(50% + ${e*10}px - ${t/2}px)`},zIndex:2+s},onClick:r,ref:a,style:m,children:o})}function L({title:o,onCloseDialog:e,...a$1}){let[t,r]=useState(false);return jsx(d,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:n=>{n.stopPropagation(),e();}}),...a$1})}var M=memo(L);var K=p;export{C as a,b,h as c,M as d,K as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-JHBGSF4J.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var p=styled(b)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),i=styled("span")(()=>({display:"flex",alignItems:"center"}));function C({amount:s,currency:t,...a}){let u=Jc(useId(),"amount-status-chip");return jsx(p,{id:u,"data-testid":"AmountStatusChip",disableAnimation:true,expandDirection:"left",...a,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(i,{children:t}),s]})})}var m=memo(C);var L=m;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-QGSBHZTO.js';import {Jc}from'./chunk-25IWFELL.js';import {memo,useId,useMemo}from'react';import {jsx}from'react/jsx-runtime';var m=({chipIndex:i,rowIndex:r,colIndex:t,selectedId:s})=>{let[,e,o,p]=(s??"").split("-");return Number(e)===r&&Number(o)===t&&Number(p)===i};function x({children:i,copyText:r,chipIndex:t,selectionProps:{onClick:s,rowIndex:e,colIndex:o,selectedId:p},...l}){let h=Jc(useId(),"status-chip-with-copy"),d=useMemo(()=>m({rowIndex:e,colIndex:o,selectedId:p,chipIndex:t}),[e,o,p,t]);return jsx(a,{...l,id:h,"data-testid":"StatusChipWithCopy",copyText:r,onClick:C=>{s?.(C,t);},isSelected:d,children:i})}var u=memo(x);var M=u;export{m as a,M as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-UPH4OINU.js';import {Jc,ob}from'./chunk-25IWFELL.js';import {useId}from'react';import {motion}from'framer-motion';import {Box,Typography}from'@mui/material';import {styled}from'@mui/material/styles';import I from'@mui/material/Box';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(Box)(({size:t})=>({display:"flex",flexDirection:"column",alignItems:"center",width:t,height:t,position:"relative"})),y=styled(Box)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center"}),b=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({fontSize:"17px",fontWeight:700,color:t?"#CFD0D2":"#000"})),D=styled(Typography,{shouldForwardProp:t=>t!=="isEmpty"})(({isEmpty:t})=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?"#CFD0D2":"#8D8D94",fontSize:"11px",fontWeight:500,letterSpacing:"0%",textAlign:"right",verticalAlign:"middle"}));var C=()=>jsxs(I,{component:"span",sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px"},children:[jsx(a,{width:51,height:16}),jsx(a,{width:84,height:8})]});var v=({value:t,label:k,size:o=172,strokeWidth:p=22,isLoading:l=false})=>{let E=Jc(useId(),"progress-ring"),m=t==null||t==="",F=ob(t||"0"),s=Math.min(Math.max(F??0,0),100),c=(o-p)/2,n=2*Math.PI*c,r=o/2;return jsxs(u,{id:E,"data-testid":"ProgressRing",size:o,children:[jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,style:{position:"absolute",top:0,left:0},children:[jsx("defs",{children:jsxs("linearGradient",{id:"progressGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0.67%",stopColor:"#3DA6E1"}),jsx("stop",{offset:"98.91%",stopColor:"#147DC5"})]})}),jsx("circle",{cx:r,cy:r,r:c,stroke:"#F3F3F3",strokeWidth:p,fill:"transparent"}),jsx(motion.circle,{cx:r,cy:r,r:c,stroke:"url(#progressGradient)",strokeWidth:p,fill:"transparent",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n,transform:`rotate(-90 ${r} ${r})`,animate:{strokeDashoffset:l?n:n-n*s/100},transition:{duration:1,ease:"easeOut"}})]}),jsxs(y,{children:[jsx(b,{isEmpty:m,children:l?jsx(C,{}):m?"----":jsxs(motion.span,{initial:{opacity:0},animate:{opacity:1},transition:{ease:"easeOut",duration:.5},children:[Number.isInteger(s)?s:s.toFixed(1),"%"]})}),!l&&jsx(D,{isEmpty:m,children:k})]})]})},T=v;var U=T;export{U as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-QL4R766B.js';import {Jc}from'./chunk-25IWFELL.js';import {createContext,useState,useMemo,useContext,useId}from'react';import {styled,Button}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:"16px"})),y=styled("p")(({theme:o})=>({fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary})),P=styled("p")(({theme:o})=>({fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight,margin:0})),h=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"})),c=styled(Button)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),fontSize:"11px",fontWeight:o.typography.fontWeightMedium,boxShadow:"none",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,textTransform:"none","&:hover":{boxShadow:"none"}}));var r=createContext([{onClose:()=>{},open:false,message:"",title:"",confirmText:"",cancelText:"",onConfirm:()=>{},onCancel:()=>{}},()=>{}]);function E({children:o}){let[i,e]=useState({onClose:()=>{},open:false,message:"",title:"",onConfirm:()=>{},onCancel:()=>{},cancelText:"",confirmText:""}),t=useMemo(()=>[i,e],[i]);return jsxs(r.Provider,{value:t,children:[o,jsx(S,{})]})}var v=()=>{let[o,i]=useContext(r);return {...o,isConfirmed:({message:t,title:l,confirmText:p,cancelText:m,style:s})=>new Promise((g,T)=>{i({...o,open:true,message:t,title:l,cancelText:m,confirmText:p,style:s,onConfirm:g,onCancel:T});}).then(()=>(i({...o,open:false}),true),()=>(i({...o,open:false}),false))}};function d(){let o=Jc(useId(),"confirm-dialog"),{open:i,onClose:e,onConfirm:t,onCancel:l,confirmText:p,cancelText:m,message:s,title:f,style:g}=v();return jsxs(a,{open:i,onClose:e,sx:g,id:o,"data-testid":"ConfirmDialog",children:[f&&jsx(y,{className:"title",children:f}),jsxs(u,{children:[jsx(P,{className:"message",children:s}),jsxs(h,{children:[jsx(c,{className:"cancel",onClick:l,children:m||"No"}),jsx(c,{className:"confirm",onClick:t,children:p||"Yes"})]})]})]})}var S=d;export{r as a,E as b,v as c,S as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-25IWFELL.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=Jc(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 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var g=styled(Box)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),p=styled(Box,{shouldForwardProp:o=>o!=="active"})(({active:o})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",backgroundColor:o?"white":"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:o?"0px 0px 3px 0px #00000033":"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"}));var T=({options:o,activeKey:a,onChange:i,containerProps:d,buttonProps:u})=>{let m=Jc(useId(),"toggle-buttons");return jsx(g,{id:m,"data-testid":"ToggleButtons",...d,children:o.map(t=>jsx(p,{active:a===t.key,onClick:()=>i(t.key),...u,children:t.content},t.key))})},l=T;var w=l;export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-WUS2EVHL.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,pc}from'./chunk-
|
|
1
|
+
import {Jc,pc}from'./chunk-25IWFELL.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import x from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1,Avatar}from'@mui/material';import {motion}from'framer-motion';var p=styled(x,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var h=forwardRef(({children:e,...o},r)=>{let d=Jc(useId(),"table-cell");return jsx(p,{id:d,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),a=memo(h);var W=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?pc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),A=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),F=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),$=styled$1("img")(()=>({width:"12px",height:"12px"})),z=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),G=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),L=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),O=styled$1(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),l=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),V=styled$1(l)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),E=styled$1(l)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),H=styled$1(a)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),M=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Z=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),q=styled$1("img")(()=>({width:"36px",height:"24px"})),D=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{a,W as b,A as c,F as d,$ as e,z as f,G as g,L as h,O as i,l as j,V as k,E as l,H as m,M as n,Z as o,q as p,D as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-25IWFELL.js';import {Bi,Yd,Cb}from'./chunk-3JUTMTQV.js';import {useId,useCallback}from'react';import F from'@mui/material/Box';import A from'@mui/material/Stack';import {Box}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var C=styled(Box)(({theme:t})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:t.palette.grey[400],gap:"8px",cursor:"pointer"})),h=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),i=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),s=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),I=styled(Box)(({theme:t})=>({color:alpha(t.palette.text.primary,.3),fontSize:"8px",fontWeight:500})),U=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",background:t.palette.common.white,borderRadius:"4px",border:`1px solid ${t.palette.divider}`})),b=styled(a)(({theme:t})=>({color:t.palette.error.main,fontSize:"8px",fontWeight:500})),k=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16}));var H=({getRootProps:t,getInputProps:w,open:B,onChangeFiles:P,processFiles:c,disabled:S,errorMessage:a,onResetError:l,maxFileSize:M,preventDuplicates:T,label:E="Click to upload",hintText:j,sx:v})=>{let z=Jc(useId(),"file-uploader"),d=w(),D=useCallback(p=>{p.stopPropagation(),l?.(p);},[l]);return jsxs(C,{id:z,"data-testid":"FileUploader_root",...t(),sx:v,onClick:B,children:[jsx("input",{"data-slot":"input",...d,onChange:p=>{if(d.onChange?.(p),!c)return;let m=c(Array.from(p.target.files||[]));(m.length>0||!T)&&P?.(m);},disabled:S}),jsxs(h,{"data-slot":"content",flex:1,children:[jsx(U,{"data-slot":"icon-wrapper",children:jsx(F,{component:"img",src:a?Bi:Yd,width:16,height:16})}),a?jsxs(A,{direction:"row",alignItems:"center",flex:1,children:[jsxs(s,{flex:1,children:[jsx(b,{children:a}),jsx(i,{children:"Click to upload again"})]}),l&&jsx(k,{component:"button","data-slot":"close-icon-wrapper",onClick:D,children:jsx(F,{component:"img",src:Cb,width:10,height:10})})]}):jsxs(s,{children:[jsx(i,{children:E}),jsx(I,{children:j||`PDF, JPG or PNG files up to ${M}`})]})]})]})},W=H;var ot=W;export{ot as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-25IWFELL.js';import {Fi}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(r)(({theme:t})=>({border:`1px solid ${t.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:t})=>({padding:"8px 12px",borderBottom:`1px solid ${t.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40})),f=styled(a)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),g=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),I=styled(r)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(r)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(r)(()=>({margin:"12px "}));function N({children:t,...e}){let i=Jc(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...e,children:t})}var S=memo(N);function P({children:t,action:e,...i}){let d=Jc(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:t}),e&&e]})}var T=memo(P);function A({allowShadow:t=true,children:e,...i}){let d=Jc(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=a$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[e,L&&t&&jsx(r,{component:"img",src:Fi,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var E=memo(A);function G({children:t,icon:e,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[e&&e,jsx(f,{noWrap:true,className:"content",children:t})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ut=S;export{T as a,E as b,J as c,ut as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-OIVTFRJE.js';import {useId,useState,useRef,useCallback,useMemo,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useMotionValue,animate}from'framer-motion';import zt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=3,ft=styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:0,minWidth:0,height:"auto",lineHeight:1,position:"relative",zIndex:1001,fontSize:"12px",color:t.palette.text.primary})),ht=styled(motion.div)(()=>({display:"inline-flex"})),ut=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),gt=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),tt=styled(motion.div)(({side:t})=>({position:"absolute",display:"flex",alignItems:"center",...t==="left"?{right:"100%",flexDirection:"row-reverse",transformOrigin:"right center"}:{},...t==="right"?{left:"100%",flexDirection:"row",transformOrigin:"left center"}:{},top:"50%",transform:"translateY(-50%)",gap:0,pointerEvents:"auto",overflow:"visible"})),et=styled("div")(({side:t})=>({position:"absolute",top:0,bottom:0,...t==="left"?{right:"100%"}:{left:"100%"},pointerEvents:"auto",background:"transparent"})),xt=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",height:24,overflow:"visible"})),j=t=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,paddingInline:"8px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontSize:12,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"visible"}),mt=styled(motion.div)(({theme:t})=>({...j(t),position:"relative",zIndex:2,minWidth:24,flex:"0 0 auto",display:"inline-flex",overflow:"hidden",willChange:"transform"})),Ct=styled(motion.span)(()=>({display:"inline-flex",alignItems:"center",transform:"translateZ(0)"})),nt=styled(motion.span)(({theme:t})=>({display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",willChange:"width",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.background.paper,height:"24px",alignItems:"center",paddingInline:"0px"})),it=styled(motion.span)(()=>({display:"inline-flex",whiteSpace:"nowrap",alignItems:"center",height:"100%"})),yt=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",left:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),Et=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",right:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),rt=styled(motion.div)(({theme:t})=>({...j(t),minWidth:24,flex:"0 0 auto",display:"inline-flex"})),vt=styled(zt)(()=>({position:"relative",overflow:"visible",zIndex:101,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"20px"}));var L=24;function Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}){let[l,P]=useState(false),[r,q]=useState({left:0,right:0}),[c,G]=useState([]),[d,X]=useState([]),[f,J]=useState(0),[b,Y]=useState(0),m=useRef(null),k=useRef(null),z=useRef(null),M=useRef(null),A=useRef([]),O=useRef([]),T=useRef(null),$=useRef(null),I=useRef(null),w=useCallback((e,i)=>{if(e===i)return true;if(e.length!==i.length)return false;for(let a=0;a<e.length;a++)if(e[a]!==i[a])return false;return true},[]),D=useCallback((e,i)=>e.left===i.left&&e.right===i.right,[]),g=useMotionValue(0),n=useMotionValue(0),N=useMotionValue(0),C=useMemo(()=>{if(!c.length)return [];let e=[],i=x+c[0]/2;e.push(i);for(let a=1;a<c.length;a++)i+=c[a-1]/2+x+c[a]/2,e.push(i);return e},[c]),y=useMemo(()=>{if(!d.length)return [];let e=[],i=x+d[0]/2;e.push(i);for(let a=1;a<d.length;a++)i+=d[a-1]/2+x+d[a]/2,e.push(i);return e},[d]),Lt=l&&h?f:0,K=l&&u?b:0,at=h?f:0,Wt=useCallback(()=>{m.current&&clearTimeout(m.current),P(true);},[]),St=useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(false),120);},[]),_=useCallback(()=>{let e=k.current,i=M.current,a=z.current,Q=r;if(e){let R=e.getBoundingClientRect(),Z=(i??a)?.getBoundingClientRect();if(Z){let Pt=Math.round(Z.left-R.left),kt=Math.round(Z.right-R.left);Q={left:Pt,right:kt};}}let st=A.current.map(R=>R?R.offsetWidth:L),lt=O.current.map(R=>R?R.offsetWidth:L),pt=T.current?.scrollWidth??0,ct=$.current?.scrollWidth??0;D(r,Q)||q(Q),w(c,st)||G(st),w(d,lt)||X(lt),f!==pt&&J(pt),b!==ct&&Y(ct);},[r,c,d,f,b,D,w]),B=useCallback(()=>{I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{_();});},[_]);useEffect(()=>()=>{m.current&&clearTimeout(m.current);},[]),useLayoutEffect(()=>{_();},[H,t,v,h,u,_]),useEffect(()=>(B(),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B),I.current&&cancelAnimationFrame(I.current);}),[B]),useEffect(()=>{let i=animate(g,l&&h?f:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,h,f,g]),useEffect(()=>{let i=animate(n,l&&u?b:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,u,b,n]);let wt=useMemo(()=>{if(!C.length)return 0;let e=C.length-1,i=c[e]??L;return C[e]+i/2+K+x},[C,c,K]),Ht=useMemo(()=>{if(!y.length)return 0;let e=y.length-1,i=d[e]??L;return at+y[e]+i/2+x},[y,d,at]);return {isHovering:l,handleMouseEnter:Wt,handleMouseLeave:St,centerWrapRef:k,centerContentRef:z,centerChipRef:M,anchors:r,leftChipRefs:A,rightChipRefs:O,leftOffsets:C,rightOffsets:y,expandableRightInnerRef:T,expandableLeftInnerRef:$,expandableRightWidth:f,expandableLeftWidth:b,expandedRightMV:g,expandedLeftMV:n,shiftX:N,rightShift:Lt,leftShift:K,leftHoverWidth:wt,rightHoverWidth:Ht}}function Ot({leftIcons:t=[],rightIcons:v=[],centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u,expandedZIndex:l=1e3,...P}){let{isHovering:r,handleMouseEnter:q,handleMouseLeave:c,centerWrapRef:G,centerContentRef:d,centerChipRef:X,anchors:f,leftChipRefs:J,rightChipRefs:b,leftOffsets:Y,rightOffsets:m,expandableRightInnerRef:k,expandableLeftInnerRef:z,expandedRightMV:M,expandedLeftMV:A,shiftX:O,rightShift:T,leftShift:$,leftHoverWidth:I,rightHoverWidth:w}=Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}),D=Jc(useId(),"right-left-expanding-center-chip");return jsx(vt,{...P,id:D,"data-testid":"RightLeftExpandingCenterChipBox",children:jsx(ht,{"data-testid":"CenterShiftWrapper",initial:false,style:{x:O},children:jsxs(ft,{"data-testid":"CenterIconWrapper",ref:G,onMouseLeave:c,children:[jsxs(xt,{"data-testid":"PeekContainer",children:[jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(yt,{"data-testid":"LeftPeekChip",initial:{opacity:0,scale:.95,x:-4},animate:r?{opacity:0,scale:.9,x:-6}:{opacity:1,scale:1,x:-5},exit:{opacity:0,scale:.95,x:-4},transition:{duration:.18,ease:"easeOut"}},"left-peek")}),jsx(mt,{"data-testid":"CenterChip",ref:X,onMouseEnter:q,style:{borderRadius:(()=>{let g=u&&r,n=h&&r;return g&&n?"0":g?"0 12px 12px 0":n?"12px 0 0 12px":"12px"})(),borderLeft:u&&r?"none":void 0,borderRight:h&&r?"none":void 0},children:jsx(Ct,{"data-testid":"CenterContent",ref:d,children:H})}),u&&jsx(nt,{"data-testid":"ExpandableLeftContainer",style:{width:A,position:"absolute",right:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"12px 0 0 12px",borderRight:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableLeftInner",ref:z,children:u})}),h&&jsx(nt,{"data-testid":"ExpandableRightContainer",style:{width:M,position:"absolute",left:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"0 12px 12px 0",borderLeft:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableRightInner",ref:k,children:h})}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(Et,{"data-testid":"RightPeekChip",initial:{opacity:0,scale:.95,x:4},animate:r?{opacity:0,scale:.9,x:6}:{opacity:1,scale:1,x:5},exit:{opacity:0,scale:.95,x:4},transition:{duration:.18,ease:"easeOut"}},"right-peek")})]}),r&&t.length>0&&jsx(et,{"data-testid":"LeftHoverBridge",side:"left",style:{width:I,right:`calc(100% - ${f.left}px)`,zIndex:l,pointerEvents:"auto"}}),r&&v.length>0&&jsx(et,{"data-testid":"RightHoverBridge",side:"right",style:{width:w,left:`${f.right}px`,zIndex:l,pointerEvents:"auto"}}),jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(tt,{"data-testid":"LeftExpandedSection",side:"left",style:{right:`calc(100% - ${f.left}px)`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:t.map((g,n)=>{let C=(Y[n]??(L+x)*(n+1))+$;return jsx(ut,{"data-testid":`LeftExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:-C}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(t.length-n)},children:jsx(rt,{"data-testid":`LeftExpandChip-${n}`,ref:y=>J.current[n]=y,children:g})},`left-${n}`)})},"left-expanded")}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(tt,{"data-testid":"RightExpandedSection",side:"right",style:{left:`${f.right}px`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:v.map((g,n)=>{let N=m[n]??(L+x)*(n+1),C=T;return jsx(gt,{"data-testid":`RightExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:C+N}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(v.length-n)},children:jsx(rt,{"data-testid":`RightExpandChip-${n}`,ref:y=>b.current[n]=y,children:g})},`right-${n}`)})},"right-expanded")})]})})})}var Tt=Ot;export{Tt as a};
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {useId,useState,useRef,useCallback,useMemo,useEffect,useLayoutEffect}from'react';import {motion,AnimatePresence,useMotionValue,animate}from'framer-motion';import zt from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var x=3,ft=styled(motion.div)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:0,minWidth:0,height:"auto",lineHeight:1,position:"relative",zIndex:1001,fontSize:"12px",color:t.palette.text.primary})),ht=styled(motion.div)(()=>({display:"inline-flex"})),ut=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),gt=styled(motion.span)(({theme:t})=>({position:"static",display:"inline-flex",alignItems:"center",justifyContent:"center",width:0,overflow:"visible",margin:0,padding:0,fontSize:"10px",lineHeight:1,color:t.palette.text.secondary,userSelect:"none"})),tt=styled(motion.div)(({side:t})=>({position:"absolute",display:"flex",alignItems:"center",...t==="left"?{right:"100%",flexDirection:"row-reverse",transformOrigin:"right center"}:{},...t==="right"?{left:"100%",flexDirection:"row",transformOrigin:"left center"}:{},top:"50%",transform:"translateY(-50%)",gap:0,pointerEvents:"auto",overflow:"visible"})),et=styled("div")(({side:t})=>({position:"absolute",top:0,bottom:0,...t==="left"?{right:"100%"}:{left:"100%"},pointerEvents:"auto",background:"transparent"})),xt=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",height:24,overflow:"visible"})),j=t=>({border:`1px solid ${t.palette.divider}`,borderRadius:"12px",backgroundColor:t.palette.background.paper,paddingInline:"8px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,fontSize:12,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"visible"}),mt=styled(motion.div)(({theme:t})=>({...j(t),position:"relative",zIndex:2,minWidth:24,flex:"0 0 auto",display:"inline-flex",overflow:"hidden",willChange:"transform"})),Ct=styled(motion.span)(()=>({display:"inline-flex",alignItems:"center",transform:"translateZ(0)"})),nt=styled(motion.span)(({theme:t})=>({display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",willChange:"width",border:`1px solid ${t.palette.divider}`,backgroundColor:t.palette.background.paper,height:"24px",alignItems:"center",paddingInline:"0px"})),it=styled(motion.span)(()=>({display:"inline-flex",whiteSpace:"nowrap",alignItems:"center",height:"100%"})),yt=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",left:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),Et=styled(motion.div)(({theme:t})=>({...j(t),position:"absolute",right:0,zIndex:1,pointerEvents:"none",minWidth:24,paddingInline:0})),rt=styled(motion.div)(({theme:t})=>({...j(t),minWidth:24,flex:"0 0 auto",display:"inline-flex"})),vt=styled(zt)(()=>({position:"relative",overflow:"visible",zIndex:101,display:"flex",alignItems:"center",justifyContent:"center",minHeight:"20px"}));var L=24;function Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}){let[l,P]=useState(false),[r,q]=useState({left:0,right:0}),[c,G]=useState([]),[d,X]=useState([]),[f,J]=useState(0),[b,Y]=useState(0),m=useRef(null),k=useRef(null),z=useRef(null),M=useRef(null),A=useRef([]),O=useRef([]),T=useRef(null),$=useRef(null),I=useRef(null),w=useCallback((e,i)=>{if(e===i)return true;if(e.length!==i.length)return false;for(let a=0;a<e.length;a++)if(e[a]!==i[a])return false;return true},[]),D=useCallback((e,i)=>e.left===i.left&&e.right===i.right,[]),g=useMotionValue(0),n=useMotionValue(0),N=useMotionValue(0),C=useMemo(()=>{if(!c.length)return [];let e=[],i=x+c[0]/2;e.push(i);for(let a=1;a<c.length;a++)i+=c[a-1]/2+x+c[a]/2,e.push(i);return e},[c]),y=useMemo(()=>{if(!d.length)return [];let e=[],i=x+d[0]/2;e.push(i);for(let a=1;a<d.length;a++)i+=d[a-1]/2+x+d[a]/2,e.push(i);return e},[d]),Lt=l&&h?f:0,K=l&&u?b:0,at=h?f:0,Wt=useCallback(()=>{m.current&&clearTimeout(m.current),P(true);},[]),St=useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(false),120);},[]),_=useCallback(()=>{let e=k.current,i=M.current,a=z.current,Q=r;if(e){let R=e.getBoundingClientRect(),Z=(i??a)?.getBoundingClientRect();if(Z){let Pt=Math.round(Z.left-R.left),kt=Math.round(Z.right-R.left);Q={left:Pt,right:kt};}}let st=A.current.map(R=>R?R.offsetWidth:L),lt=O.current.map(R=>R?R.offsetWidth:L),pt=T.current?.scrollWidth??0,ct=$.current?.scrollWidth??0;D(r,Q)||q(Q),w(c,st)||G(st),w(d,lt)||X(lt),f!==pt&&J(pt),b!==ct&&Y(ct);},[r,c,d,f,b,D,w]),B=useCallback(()=>{I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{_();});},[_]);useEffect(()=>()=>{m.current&&clearTimeout(m.current);},[]),useLayoutEffect(()=>{_();},[H,t,v,h,u,_]),useEffect(()=>(B(),window.addEventListener("resize",B),()=>{window.removeEventListener("resize",B),I.current&&cancelAnimationFrame(I.current);}),[B]),useEffect(()=>{let i=animate(g,l&&h?f:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,h,f,g]),useEffect(()=>{let i=animate(n,l&&u?b:0,{duration:.2,ease:"easeOut"});return ()=>i.stop()},[l,u,b,n]);let wt=useMemo(()=>{if(!C.length)return 0;let e=C.length-1,i=c[e]??L;return C[e]+i/2+K+x},[C,c,K]),Ht=useMemo(()=>{if(!y.length)return 0;let e=y.length-1,i=d[e]??L;return at+y[e]+i/2+x},[y,d,at]);return {isHovering:l,handleMouseEnter:Wt,handleMouseLeave:St,centerWrapRef:k,centerContentRef:z,centerChipRef:M,anchors:r,leftChipRefs:A,rightChipRefs:O,leftOffsets:C,rightOffsets:y,expandableRightInnerRef:T,expandableLeftInnerRef:$,expandableRightWidth:f,expandableLeftWidth:b,expandedRightMV:g,expandedLeftMV:n,shiftX:N,rightShift:Lt,leftShift:K,leftHoverWidth:wt,rightHoverWidth:Ht}}function Ot({leftIcons:t=[],rightIcons:v=[],centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u,expandedZIndex:l=1e3,...P}){let{isHovering:r,handleMouseEnter:q,handleMouseLeave:c,centerWrapRef:G,centerContentRef:d,centerChipRef:X,anchors:f,leftChipRefs:J,rightChipRefs:b,leftOffsets:Y,rightOffsets:m,expandableRightInnerRef:k,expandableLeftInnerRef:z,expandedRightMV:M,expandedLeftMV:A,shiftX:O,rightShift:T,leftShift:$,leftHoverWidth:I,rightHoverWidth:w}=Rt({leftIcons:t,rightIcons:v,centerIcon:H,expandableCenterRight:h,expandableCenterLeft:u}),D=Jc(useId(),"right-left-expanding-center-chip");return jsx(vt,{...P,id:D,"data-testid":"RightLeftExpandingCenterChipBox",children:jsx(ht,{"data-testid":"CenterShiftWrapper",initial:false,style:{x:O},children:jsxs(ft,{"data-testid":"CenterIconWrapper",ref:G,onMouseLeave:c,children:[jsxs(xt,{"data-testid":"PeekContainer",children:[jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(yt,{"data-testid":"LeftPeekChip",initial:{opacity:0,scale:.95,x:-4},animate:r?{opacity:0,scale:.9,x:-6}:{opacity:1,scale:1,x:-5},exit:{opacity:0,scale:.95,x:-4},transition:{duration:.18,ease:"easeOut"}},"left-peek")}),jsx(mt,{"data-testid":"CenterChip",ref:X,onMouseEnter:q,style:{borderRadius:(()=>{let g=u&&r,n=h&&r;return g&&n?"0":g?"0 12px 12px 0":n?"12px 0 0 12px":"12px"})(),borderLeft:u&&r?"none":void 0,borderRight:h&&r?"none":void 0},children:jsx(Ct,{"data-testid":"CenterContent",ref:d,children:H})}),u&&jsx(nt,{"data-testid":"ExpandableLeftContainer",style:{width:A,position:"absolute",right:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"12px 0 0 12px",borderRight:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableLeftInner",ref:z,children:u})}),h&&jsx(nt,{"data-testid":"ExpandableRightContainer",style:{width:M,position:"absolute",left:"100%",top:0,height:"24px",zIndex:1,opacity:r?1:0,pointerEvents:r?"auto":"none",borderRadius:"0 12px 12px 0",borderLeft:"none"},initial:false,transition:{duration:.2,ease:"easeOut"},children:jsx(it,{"data-testid":"ExpandableRightInner",ref:k,children:h})}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(Et,{"data-testid":"RightPeekChip",initial:{opacity:0,scale:.95,x:4},animate:r?{opacity:0,scale:.9,x:6}:{opacity:1,scale:1,x:5},exit:{opacity:0,scale:.95,x:4},transition:{duration:.18,ease:"easeOut"}},"right-peek")})]}),r&&t.length>0&&jsx(et,{"data-testid":"LeftHoverBridge",side:"left",style:{width:I,right:`calc(100% - ${f.left}px)`,zIndex:l,pointerEvents:"auto"}}),r&&v.length>0&&jsx(et,{"data-testid":"RightHoverBridge",side:"right",style:{width:w,left:`${f.right}px`,zIndex:l,pointerEvents:"auto"}}),jsx(AnimatePresence,{initial:false,children:t.length>0&&jsx(tt,{"data-testid":"LeftExpandedSection",side:"left",style:{right:`calc(100% - ${f.left}px)`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:t.map((g,n)=>{let C=(Y[n]??(L+x)*(n+1))+$;return jsx(ut,{"data-testid":`LeftExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:-C}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(t.length-n)},children:jsx(rt,{"data-testid":`LeftExpandChip-${n}`,ref:y=>J.current[n]=y,children:g})},`left-${n}`)})},"left-expanded")}),jsx(AnimatePresence,{initial:false,children:v.length>0&&jsx(tt,{"data-testid":"RightExpandedSection",side:"right",style:{left:`${f.right}px`,top:"50%",position:"absolute",pointerEvents:r?"auto":"none",zIndex:l},initial:{opacity:0,x:0,y:"-50%"},animate:r?{opacity:1,x:0,y:"-50%"}:{opacity:0,x:0,y:"-50%"},exit:{opacity:0,x:0,y:"-50%"},transition:{duration:.25,ease:"easeOut"},children:v.map((g,n)=>{let N=m[n]??(L+x)*(n+1),C=T;return jsx(gt,{"data-testid":`RightExpandIcon-${n}`,initial:{opacity:0,x:0},animate:r?{opacity:1,x:C+N}:{opacity:0,x:0},exit:{opacity:0,x:0},transition:{duration:.25+n*.04,ease:"easeOut"},style:{zIndex:l+(v.length-n)},children:jsx(rt,{"data-testid":`RightExpandChip-${n}`,ref:y=>b.current[n]=y,children:g})},`right-${n}`)})},"right-expanded")})]})})})}var Tt=Ot;export{Tt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {ti}from'./chunk-3JUTMTQV.js';import {memo,useId}from'react';import l from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var i=styled(l,{shouldForwardProp:t=>t!=="variant"})(({theme:t,variant:o="confirm",size:e="default"})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%","&.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"}}));function a({children:t,sx:o,...e}){let s=Jc(useId(),"button");return jsx(i,{id:s,"data-testid":"Button",sx:o,...e,children:t})}a.displayName="Button";var p=memo(a);function d({...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:ti,alt:"Plus Button",width:24,height:24})})}d.displayName="PlusButton";var m=memo(d);var P=m;var $=p;export{P as a,$ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-JHBGSF4J.js';import {Jc}from'./chunk-25IWFELL.js';import {pe}from'./chunk-3JUTMTQV.js';import {useId}from'react';import {jsxs,jsx}from'react/jsx-runtime';var T=({text:t,startLength:r=8,endLength:d=4,chipIndex:a,copyText:i,selectionProps:m})=>{let n=Jc(useId(),"masked-text"),c=t.slice(0,r),x=t.slice(t.length-d);return jsxs(b,{id:n,"data-testid":"MaskedText",chipIndex:a,copyText:i,selectionProps:m,children:[c,jsx("img",{src:pe,alt:"passwordDots"}),x]})},p=T;var g=p;export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {memo,useId}from'react';import f from'@mui/material/Box';import a from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(a,{shouldForwardProp:o=>o!=="isError"})(({theme:o})=>({padding:"8px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",height:32,color:o.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:o.palette.grey[700],fontWeight:400}}));function i({isError:o,...t}){let l=Jc(useId(),"input");return jsx(f,{id:l,"data-testid":"Input",sx:{flexGrow:1},onClick:d=>{d.stopPropagation();},children:jsx(p,{...t,placeholder:t.placeholder,isError:o,disableUnderline:true})})}i.displayName="Input";var n=memo(i);var S=n;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-YDPDHWVC.js';import {qc,Jc,H,Ra}from'./chunk-25IWFELL.js';import {vn}from'./chunk-3JUTMTQV.js';import {useId,useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import L from'dayjs';import V from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var b=styled(Box)(()=>({width:"auto",display:"inline-block",whiteSpace:"nowrap",backgroundColor:"white",padding:"6px",border:"1.5px solid #E6E6E6",borderRadius:"7.5px",backdropFilter:"blur(23.280000686645508px)",boxShadow:"0px 0px 15.52px 0px #4B484729"})),w=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),K=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),B=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),S=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var W=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===vn.AMOUNT?`${Ra(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),$=(t,i,r=0)=>{let a=L(t).add(r,"hour").format(),n=new Date,e=L(a).isSame(n,"year");return H(a,i?void 0:{sameDay:`[Today] ${e?"":"YYYY"}`,nextDay:`[Tomorrow] ${e?"":"YYYY"}`,lastDay:`[Yesterday] ${e?"":"YYYY"}`,sameElse:`MMM DD ${e?"":", YYYY"}`,lastWeek:`MMM DD ${e?"":", YYYY"}`,nextWeek:`MMM DD ${e?"":", YYYY"}`},void 0,void 0,r!==void 0)};var G=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),e=L(r?.[0]),l=L(r?.[1]),f=e?.isSame(l,"day");if(t&&i?.length){let o=i[0],m=qc(o?.dataKey,o?.value),y=o?.payload?.date&&$(o?.payload?.date,f,o?.payload?.hour);return jsxs(b,{className:"chart-tooltip",children:[jsx(w,{children:y??o?.payload?.date}),jsxs(K,{children:[o?.dataKey===vn.AMOUNT&&jsxs(B,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(S,{children:a$1})]}),jsx(V,{children:`${W(o,n(m),a$1)}`})]})]})}return null},x=G;var _=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],q=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:_,children:[jsx("defs",{children:jsxs("linearGradient",{id:"loadingGradient",x1:"0",y1:"0",x2:"0",y2:"1",gradientUnits:"objectBoundingBox",children:[jsx("stop",{offset:"0.54",stopColor:"rgba(67, 67, 67, 0.035)"}),jsx("stop",{offset:"1",stopColor:"rgba(255, 255, 255, 0)"})]})}),jsx(Area,{dataKey:"dataKey",type:"linear",fill:"url(#loadingGradient)",fillOpacity:1,stroke:"#C2C2C2",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"4 4",activeDot:false})]})}),T=q;var rt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let e=Jc(useId(),"activity-area-chart"),l=useTheme(),[f,o]=useState(false),[m,y]=useState({x:0,y:0}),I=t?.length===0,O=h=>{h.activeCoordinate&&h.isTooltipActive&&y(h.activeCoordinate);},R=useMemo(()=>jsx(x,{position:m,dateRange:a,selectedCurrency:n}),[m,a,n]);return r||I?jsx(T,{}):jsx(ResponsiveContainer,{id:e,"data-testid":"ActivityAreaChart",children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:O,children:[t.length>0&&jsx(Tooltip,{content:R,cursor:{fill:"#A5A8A3",stroke:"#A5A8A3",strokeWidth:1,strokeOpacity:1,stopOpacity:.3,strokeDasharray:"5 5",strokeLinecap:"round",strokeLinejoin:"round"}}),jsx(Area,{dataKey:i,type:"monotone",fill:"#76BB4012",stroke:l.palette.success.dark,activeDot:{r:5,fill:l.palette.success.dark,strokeWidth:2,stroke:"white",cursor:f?"pointer":"default",onMouseOver:()=>o(true),onMouseLeave:()=>o(false)}})]})})},P=rt;var Ft=P;export{x as a,T as b,Ft as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-UPH4OINU.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import i from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(i)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gridTemplateRows:`repeat(${e}, 1fr)`,gap:"6px"})),g=styled(i)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0"})),$=styled(i)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),M=styled(g)(()=>({fontSize:"9px"})),O=styled(i)(()=>({display:"flex",flexDirection:"row",gap:"10px",padding:"22px 12px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:m,tooltip:l}){let s=Jc(useId(),"heat-map"),c=e.labels,d=t.labels;return jsxs(O,{id:s,"data-testid":"HeatMap",children:[jsxs(u,{rows:d.length,columns:1,children:[jsx("span",{}),d.map((r,o)=>jsx(M,{sx:{minWidth:"25px"},children:t.render?t.render(r):r},`${o}-${r}`))]}),jsxs(u,{rows:d.length,columns:c.length,children:[c.map((r,o)=>jsx(g,{children:e.render?e.render(r):r},`${o}-${r}`)),d.map(r=>c.map((o,h)=>{if(m)return jsx(a,{variant:"rectangular",width:"24px",height:"8px"},`${o}-${h}`);let f=n?.[o]?.[r]??{};return jsx(a$1,{title:l?.render&&f?.value?l.render(f,o,r):null,children:jsx($,{percentage:f?.colorOpacityDegree})},`${o}-${h}`)}))]})]})}var k=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let m=n-t,l=(e-t)/m,s=Math.floor(l*10);return k[Math.max(0,Math.min(10,s))]}var B=x;export{D as a,B as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(d)(()=>({color:"#1F88D0",backgroundColor:"#1F88D00D",padding:"8px 12px",borderRadius:"4px",fontSize:"11px",display:"flex",alignItems:"center",gap:"2px"})),r=styled("span")(()=>({fontWeight:700})),a=styled("span")(()=>({fontWeight:500}));function t(){let i=Jc(useId(),"beta-banner");return jsxs(n,{id:i,"data-testid":"BetaBanner",children:[jsx(r,{children:"Insights is in beta -"}),jsx(a,{children:"improvements are ongoing, thanks for your patience."})]})}var C=t;export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,gc}from'./chunk-
|
|
1
|
+
import {Jc,gc}from'./chunk-25IWFELL.js';import {Cb}from'./chunk-3JUTMTQV.js';import {useId}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,Fragment,jsxs}from'react/jsx-runtime';var m=styled(i)(({theme:e})=>({width:"100%",borderRadius:"4px",padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"flex-start",background:e.palette.grey[400],gap:"8px"})),x=styled(i)(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"})),f=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.palette.text.primary,cursor:"pointer",gap:"8px"})),u=styled("span")(({theme:e})=>({fontWeight:500,color:e.palette.text.primary,cursor:"pointer",fontSize:"8px"})),y=styled(i)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:e.palette.text.primary})),I=styled(i)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",background:e.palette.common.white,borderRadius:"4px",border:`1px solid ${e.palette.divider}`})),g=styled(i)(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"}));var T=({files:e,disabled:w,sx:C,onRemoveFile:W,getFilePreview:h,renderBrandLogo:v,renderOpenFileInNewTab:P})=>{let b=Jc(useId(),"file-preview");return jsx(Fragment,{children:e?.map((t,s)=>{let a=gc(t)?h(t.file):null,j=gc(t)&&t.file.type.includes("application/pdf"),n=gc(t)?t.file:t;return jsx(m,{id:`${b}-${s}`,"data-testid":"FilePreview",sx:C,children:jsxs(x,{"data-slot":"file-wrapper",children:[jsxs(f,{"data-slot":"file-Content",children:[jsx(I,{"data-slot":"file-icon-wrapper",children:gc(t)&&a?jsx(i,{component:"img",src:a,width:24,height:24,sx:{borderRadius:"50%",objectFit:j?"none":"cover"},onError:k=>{k.currentTarget.src=n.name;}}):v?.(n.id)}),jsxs(y,{"data-slot":"text-wrapper",children:[jsx(u,{"data-slot":"filename",children:n.name}),!gc(t)&&!a&&P?.(n.id)]})]}),!w&&jsx(g,{"data-slot":"close-icon-wrapper",onClick:()=>{W?.(t);},children:jsx(i,{component:"img",src:Cb,width:10,height:10})})]})},s)})})},A=T;export{m as a,x as b,f as c,u as d,y as e,I as f,g,A as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {useId,useState,useEffect}from'react';import {LazyLoadImage}from'react-lazy-load-image-component';import {jsx}from'react/jsx-runtime';var l=LazyLoadImage,r={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')},u=f=>{let m=Jc(useId(),"lazy-image"),{wrapperProps:t,...o}=f,{effect:e}=o,{style:p}=t||{},[c,a]=useState(!!e);return useEffect(()=>{if(!e||!(e in r))return;let i=r[e];a(true),i().finally(()=>{a(false);});},[e]),c?null:jsx(l,{...o,id:m,"data-testid":"LazyImage",wrapperProps:{...t,style:{display:"flex",justifyContent:"center",alignItems:"center",...p}}})},n=u;var A=n;export{A as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,Ra}from'./chunk-
|
|
1
|
+
import {Jc,Ra}from'./chunk-25IWFELL.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=Jc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ra(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 {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-25IWFELL.js';import {Jg}from'./chunk-3JUTMTQV.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var i=styled(Box)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F6F8FACC",gap:"0.5rem",height:"100%"})),n=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:t})=>({fontWeight:600,fontSize:"1rem",color:t.palette.text?.primary,padding:0,margin:0})),s=styled("p")(({theme:t})=>({fontWeight:400,fontSize:"0.75rem",color:t.palette.text?.primary,padding:0,margin:0,opacity:.5}));function r({heading:t,message:y,...g}){let l=Jc(useId(),"card-empty-state"),{t:m}=useTranslation();return jsxs(i,{...g,id:l,"data-testid":"CardEmptyState",children:[jsx(n,{src:Jg,alt:"empty container"}),jsx(d,{children:m(t)}),jsx(s,{children:m(y)})]})}var z=r;export{z as a};
|