@tap-payments/os-micro-frontend-shared 0.1.461 → 0.1.462
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/{chunk-KV7GJ72N.js → chunk-244BRWI7.js} +2 -2
- package/build/{chunk-SAJ5FSML.js → chunk-2HYW5OC4.js} +1 -1
- package/build/{chunk-3OLMLOEK.js → chunk-2LNZNBDY.js} +1 -1
- package/build/{chunk-SNBWLK74.js → chunk-2MR625YR.js} +1 -1
- package/build/{chunk-EPARJISX.js → chunk-2QSOVWXD.js} +1 -1
- package/build/{chunk-LIW4JZ4I.js → chunk-2R6U2FCP.js} +1 -1
- package/build/{chunk-F2MRJQ43.js → chunk-375HN727.js} +1 -1
- package/build/chunk-3CK6GF4K.js +4 -0
- package/build/{chunk-6T5WO4ZO.js → chunk-3JFRUO4B.js} +1 -1
- package/build/{chunk-K6VWVOCI.js → chunk-5MHFOGIR.js} +1 -1
- package/build/{chunk-X7QR2IJK.js → chunk-5NNDPXIN.js} +1 -1
- package/build/{chunk-Y4XDKP3V.js → chunk-5O7VVKBB.js} +1 -1
- package/build/{chunk-JZ3R2X2G.js → chunk-5S6FHYNW.js} +1 -1
- package/build/{chunk-ZQHS7AJ7.js → chunk-5UPHYEPO.js} +1 -1
- package/build/{chunk-6K5CMC3L.js → chunk-6EPOVQF4.js} +1 -1
- package/build/{chunk-STCLF5Q6.js → chunk-6GO5HH4P.js} +1 -1
- package/build/{chunk-GNZS6CJI.js → chunk-6QHS4WMN.js} +1 -1
- package/build/{chunk-OTEJXB7A.js → chunk-6SFH3UOS.js} +1 -1
- package/build/chunk-74ECWAQP.js +2 -0
- package/build/{chunk-ER4GLJJ5.js → chunk-7LA32IXV.js} +1 -1
- package/build/{chunk-CJEPM5RM.js → chunk-7VJZP5DM.js} +1 -1
- package/build/{chunk-YAVBIOIA.js → chunk-A2P466RW.js} +1 -1
- package/build/{chunk-ATMXGZIA.js → chunk-A4MWX7JV.js} +1 -1
- package/build/{chunk-YZXKHCGT.js → chunk-AYXIDURU.js} +1 -1
- package/build/{chunk-75VVU3PH.js → chunk-BFPAX7ED.js} +1 -1
- package/build/{chunk-R2TA4KJA.js → chunk-BUN4HQ4Z.js} +1 -1
- package/build/{chunk-7ICZMWWH.js → chunk-C36ZQCTX.js} +1 -1
- package/build/{chunk-DX64VJ4L.js → chunk-D3F2AN7A.js} +1 -1
- package/build/{chunk-PRGVCJUK.js → chunk-DA4WJJ2M.js} +1 -1
- package/build/{chunk-7YXI7AGF.js → chunk-DVGQZDMQ.js} +1 -1
- package/build/{chunk-TZSAJ5FD.js → chunk-DYAGYQDI.js} +1 -1
- package/build/{chunk-KNQW575E.js → chunk-E7CS4WYC.js} +1 -1
- package/build/{chunk-LODIZ3ZK.js → chunk-EPENXGXN.js} +1 -1
- package/build/{chunk-7S6I52TK.js → chunk-F2MZEVT3.js} +1 -1
- package/build/{chunk-NKMNUA3Q.js → chunk-FK2TVLNV.js} +1 -1
- package/build/{chunk-KBNSYDAF.js → chunk-FLGQO7AD.js} +1 -1
- package/build/{chunk-5IBK44E2.js → chunk-H6QW7GRM.js} +1 -1
- package/build/{chunk-S4UNWOIS.js → chunk-HPXFZSAB.js} +1 -1
- package/build/{chunk-2M456WLL.js → chunk-HRV5IS5K.js} +1 -1
- package/build/{chunk-UDWLRLYY.js → chunk-I5UBX4RU.js} +1 -1
- package/build/{chunk-LFMWQPE5.js → chunk-INDDNYVY.js} +1 -1
- package/build/{chunk-BPWFBNSR.js → chunk-JCLHFQNS.js} +1 -1
- package/build/{chunk-3EVU2KKU.js → chunk-JI2BPOMY.js} +1 -1
- package/build/{chunk-KT5MLKNH.js → chunk-JITG7Z6W.js} +1 -1
- package/build/{chunk-OPWQQCL3.js → chunk-K63LRPDM.js} +2 -2
- package/build/{chunk-IUNIN7LF.js → chunk-LH6RMVB7.js} +1 -1
- package/build/{chunk-VENA4IWX.js → chunk-LME4KQ2K.js} +1 -1
- package/build/{chunk-W5IT3XWP.js → chunk-MM52VYUX.js} +1 -1
- package/build/{chunk-AUXVZJZ4.js → chunk-MPE37FHO.js} +1 -1
- package/build/{chunk-CALRJDTN.js → chunk-MTJLPDF4.js} +1 -1
- package/build/{chunk-X4WUH4FY.js → chunk-N5DTVED7.js} +1 -1
- package/build/{chunk-C6OLTUJU.js → chunk-NRYO4RFB.js} +1 -1
- package/build/{chunk-DBSODHT2.js → chunk-NYAQBRCQ.js} +1 -1
- package/build/{chunk-5CXQWIQX.js → chunk-ONXBOK33.js} +1 -1
- package/build/{chunk-EPL3AUIQ.js → chunk-OOSAG54L.js} +1 -1
- package/build/{chunk-M4CNQOA6.js → chunk-P6HAZK64.js} +1 -1
- package/build/{chunk-DRQ4PIKI.js → chunk-Q3KXKMBO.js} +1 -1
- package/build/chunk-QBOSQE5Q.js +1 -0
- package/build/{chunk-S4GZUCDY.js → chunk-RCHICZ67.js} +1 -1
- package/build/chunk-RLM3DOK4.js +1 -0
- package/build/{chunk-BVQBA2US.js → chunk-SH6I2ZZB.js} +1 -1
- package/build/{chunk-V6KOULDJ.js → chunk-SV2BAHHH.js} +1 -1
- package/build/{chunk-J4EMHU5X.js → chunk-U7PHGDKK.js} +1 -1
- package/build/{chunk-SHABBVWW.js → chunk-UF4P3QQ5.js} +1 -1
- package/build/{chunk-SYXUUQ76.js → chunk-UHXDENO4.js} +1 -1
- package/build/{chunk-3LHQJANY.js → chunk-VPWITZRS.js} +1 -1
- package/build/{chunk-6MTQQSJV.js → chunk-X6X46AOG.js} +1 -1
- package/build/{chunk-JYKBHSCM.js → chunk-Y335D6NN.js} +1 -1
- package/build/{chunk-5K5DWPWH.js → chunk-YP6YVQUQ.js} +1 -1
- package/build/{chunk-GRLBEUSU.js → chunk-Z3RHPCTB.js} +1 -1
- package/build/{chunk-REXKQ76C.js → chunk-Z5I6XOVT.js} +1 -1
- package/build/{chunk-77FXNRWB.js → chunk-ZFANEQT6.js} +1 -1
- package/build/{chunk-RFK5OPDS.js → chunk-ZS6XB5VI.js} +1 -1
- package/build/components/AccordionAdapter/index.js +1 -1
- package/build/components/AccountDropdown/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/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesActionMenu/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/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/ColorPicker/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/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateButton/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/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilteredIds/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/IconGallery/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/IconWithLabel/index.js +1 -1
- package/build/components/IconsDropdown/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/LabeledIconDropdown/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/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/MultiSelectStatusButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/Sandbox/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/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/TableHeader/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableView/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/chunk-IIATXOXS.js +0 -4
- package/build/chunk-KTRE2MLJ.js +0 -1
- package/build/chunk-T5E3GSBQ.js +0 -2
- package/build/chunk-Z2CKMTD5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,d,b,c,j as j$1,e}from'./chunk-
|
|
1
|
+
import {a,d,b,c,j as j$1,e}from'./chunk-MPE37FHO.js';import {Wb,Xb}from'./chunk-74ECWAQP.js';import {memo,useState}from'react';import X from'@mui/material/ClickAwayListener';import Z from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {DateObject,Calendar}from'react-multi-date-picker';import i from'@mui/material/Box';import l from'@mui/material/Button';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(l)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),O=styled(i)(()=>({position:"relative"})),z=styled(i,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({display:t?"flex":"none",flexDirection:"column",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),top:37,color:e.palette.text.primary,fontSize:"11px",margin:"8px 0",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"}})),H=styled(l,{shouldForwardProp:t=>t!=="open"})(({open:t,theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,padding:e.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,textTransform:"none",height:32,...t&&{border:"1px solid",borderColor:e.palette.info.dark,boxShadow:e.shadows[7]}})),j=styled(i)(({theme:t})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,padding:"16px",borderTop:`1px solid ${t.palette.divider}`})),A=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:t.palette.text.primary,border:"1px solid",borderColor:t.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:t.palette.text.primary}})),E=styled(l)(({theme:t})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:t.palette.info.dark,"&:hover":{background:t.palette.info.dark}})),Y=styled(i)(()=>({display:"flex",gap:"8px"}));var te=["Su","Mo","Tu","We","Th","Fr","Sa"];function re({isAr:t=false,value:e$1,setValue:y,enableTimePicker:p,placement:L,sx:R,...I}){let[w,k]=useState(null),[C,N]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),[D,g]=useState(e$1?new DateObject(new Date(e$1.toLocaleString())):new DateObject(new Date)),V=e$1?.hour?a(e$1.hour):d(),$=e$1?.hour?b(e$1.hour):b(new Date().getHours()),[a$1,q]=useState({hour:V,minute:e$1?.minute??c(),period:$}),{t:B}=useTranslation(),u=!!w,G=r=>r==="right"?t?Wb:Xb:t?Xb:Wb,J=r=>{k(r.currentTarget);},f=()=>{k(null);},K=()=>{let r=a$1.hour;p&&(r=e(a$1.hour,a$1.period||"AM"));let d=p?D.setHour(r).setMinute(a$1.minute):D;N(d),y&&y(d),f();},Q=r=>{q(r);};return jsx(X,{onClickAway:f,children:jsxs(O,{sx:{...R},children:[jsx(H,{onClick:J,open:u,className:"date-button",children:C.format("MMM D, YYYY")}),jsx(Z,{open:u,anchorEl:w,placement:L,children:jsxs(z,{className:"calender-content",open:u,children:[jsx(Calendar,{numberOfMonths:1,format:"MMM DD YYYY",monthYearSeparator:" ",renderButton:(r,d)=>jsx(W,{onClick:d,children:jsx("img",{src:G(r),alt:"arrow"})}),onMonthChange:r=>{g(r);},onYearChange:r=>{g(r);},onChange:r=>{g(r);},weekDays:t?void 0:te,minDate:new Date,value:C,...I}),jsxs(j,{sx:{...p&&{justifyContent:"space-between"}},children:[p&&jsx(j$1,{enableRealTimeChange:true,onChange:Q,defaultTime:a$1}),jsxs(Y,{children:[jsx(A,{variant:"contained",onClick:f,children:B("cancel")}),jsx(E,{variant:"contained",onClick:K,children:B("okay")})]})]})]})})]})})}var F=memo(re);var Ce=F;export{Ce as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Dc}from'./chunk-
|
|
1
|
+
import {Dc}from'./chunk-74ECWAQP.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var t=styled(i)(({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 d({error:r,...p}){return jsxs(t,{...p,children:[jsx("img",{src:Dc,alt:"w"}),r]})}var e=memo(d);var S=e;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-CNIYZZCP.js';import {p}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-CNIYZZCP.js';import {p}from'./chunk-5UPHYEPO.js';import F from'react';import {useTranslation}from'react-i18next';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var y="37px",f=styled(a,{shouldForwardProp:o=>o!=="showBackDrop"&&o!=="areTotalRowsNotFillingHeight"&&o!=="sandboxMode"&&o!=="maximized"})(({theme:o,showBackDrop:i,areTotalRowsNotFillingHeight:r,sandboxMode:n,maximized:p})=>({minHeight:y,...!p&&{borderBottomLeftRadius:o.spacing(1.5),borderBottomRightRadius:o.spacing(1.5)},display:"flex",alignItems:"center",border:"none",justifyContent:"space-between",padding:"6px 32px",background:n?o.palette.common.lightOrange:o.palette.grey[300],backdropFilter:"blur(32px)",boxShadow:i?o.shadows[24]:"none",borderTop:r?`1px outset ${o.palette.grey[800]}`:"none",width:"100%",marginTop:"auto",flexShrink:0,cursor:"move"})),u=styled("div")(({theme:o})=>({position:"absolute",top:0,left:0,right:0,height:"1.5px",backgroundColor:o.palette.grey[300],boxShadow:`inset 0 1px 0 0 ${o.palette.grey[300]}`})),d=styled(a)(({theme:o})=>({borderRadius:"37.5px",border:"0.75px solid rgba(242, 242, 242, 0.70)",backgroundColor:o.palette.common.white,opacity:1,paddingInline:o.spacing(1),display:"flex",alignItems:"center",height:24,gap:"7px",maxWidth:"max-content"})),x=styled(a$1)(()=>({fontSize:"9px",fontWeight:400,lineHeight:"10.8px"})),g=styled(a$1)(()=>({fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px"}));styled(a)(()=>({display:"flex",gap:"3px",alignItems:"center"}));styled(a)(()=>({display:"flex",gap:"6px"}));styled("span")(()=>({fontWeight:400}));function R({totalCount:o,showBackDrop:i=false,showSeparator:r,sandboxMode:n,maximized:p$1,selectedCount:m,...T}){let{t:b}=useTranslation();return jsxs(f,{component:"footer","data-testid":"TableFooter",maximized:p$1??false,sandboxMode:n,showBackDrop:i,areTotalRowsNotFillingHeight:!!r,...T,children:[r&&jsx(u,{}),m?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("selected")}),jsx(g,{children:p(m)})]}):null,o||o===0?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("count")}),jsx(g,{children:p(o||0)})]}):null]})}var h=F.memo(R);var M=h;export{y as a,h as b,M as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-BFPAX7ED.js';import {a as a$3}from'./chunk-DYAGYQDI.js';import {a as a$1}from'./chunk-A2P466RW.js';import {a}from'./chunk-CNIYZZCP.js';import {vb,v,Gc}from'./chunk-74ECWAQP.js';import {useState,useMemo}from'react';import c from'@mui/material/Box';import $ from'@mui/material/Input';import {styled}from'@mui/material/styles';import {CircularProgress}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var Y=styled(a)(({theme:o})=>({fontSize:"10px",color:o.palette.grey[700],fontWeight:600,lineHeight:"10px"})),Z=styled(a)(({theme:o})=>({fontSize:"11px",color:o.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200})),_=styled(c)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"})),k=styled($)(({theme:o})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:o.palette.info.dark}})),O=styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}})),W=styled(c)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),ee=styled(c)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap"})),oe=styled(c)(({theme:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${o.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer"})),F=styled(a)(({theme:o,selected:a})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:o.palette.common.black,cursor:"pointer",padding:8,justifyContent:"space-between",...a&&{backgroundColor:"#F8F8F8"}}));function q({options:o,onChangeOption:a,selectedOption:l,placeholder:D,label:M,isLoading:z,renderOption:f,iconUrl:d,disabled:u,onClearValue:A}){let[g,S]=useState(null),[n,m]=useState(""),x=!!g,H=e=>{S(x?null:e.currentTarget);},h=()=>{S(null),m("");},T=z?jsx(CircularProgress,{size:16}):jsx(c,{component:"img",src:n?vb:v,alt:"search",onClick:()=>{n&&m("");}}),R=useMemo(()=>n?o.filter(e=>{let p=e?.label?.toLowerCase(),X=e?.value?.toLowerCase();return p?.includes(n.toLowerCase())||X?.includes(n.toLowerCase())}):o,[o,n]),V=useMemo(()=>jsx(c,{sx:{display:"flex",alignItems:"center",maxWidth:16},children:jsx(c,{component:"img",src:d,alt:"icon",sx:{maxWidth:12,height:12}})}),[d]);return jsx(a$2,{disabled:u,open:x,anchorEl:g,onOpen:e=>!u&&H(e),onClose:h,hasValue:!!l?.value,onClear:A,trigger:jsx(a$3,{name:"name",placeholder:"Please Select",hasError:false,label:M,sx:{cursor:"pointer"},value:l?.label||"",InputLabelProps:{filled:!!l?.label},disabled:u,InputProps:{disableUnderline:true,...!!d&&{startAdornment:V}}}),children:jsxs(W,{children:[jsx(k,{placeholder:D||"Select",endAdornment:T,onClick:e=>{e.stopPropagation();},value:n,onChange:e=>{m(e.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...o.length&&{marginBottom:"4px"},...n&&{cursor:"pointer"}}}),R.map(e=>f?f(e,{closeDropdown:h,open:x}):jsxs(F,{selected:l?.value===e.value,onClick:p=>{p.stopPropagation(),p.preventDefault(),l?.value===e.value?a(null):a(e),h();},children:[jsx("span",{children:e.label}),l?.value===e?.value&&jsx(c,{component:"img",src:Gc,alt:"close",sx:{width:10,height:7.5}})]},e.value))]})})}var L=q;var xe=L;export{Y as a,Z as b,_ as c,k as d,O as e,W as f,ee as g,oe as h,F as i,xe as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Mh}from'./chunk-74ECWAQP.js';import {memo}from'react';import d from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var n=styled(d,{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 s({children:t,sx:o,...e}){return jsx(n,{sx:o,...e,children:t})}var i=memo(s);function p({...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:Mh,alt:"Plus Button",width:24,height:24})})}p.displayName="PlusButton";var u=memo(p);var c=u;var H=i;export{c as a,H as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-A2P466RW.js';import {memo}from'react';import f from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled(f,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:o})=>({padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",gap:"8px",textTransform:"capitalize",cursor:o?"not-allowed":"pointer",flex:1,fontSize:"13px",color:"#20232B"})),m=styled(a)(({theme:e})=>({padding:0,width:"14px !important",svg:{width:"14px !important",height:"14px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(e.palette.common.black,.26)}}}));function I({isSelected:e,isDisabled:o,isIndeterminate:l,hideCheckbox:p,onClick:s,children:c,className:t,...x}){let i=o?"disabled menu-item":"menu-item",b=t?`${i} ${t}`:i;return jsxs(r,{className:b,onClick:s,disabled:o,...x,children:[!p&&jsx(m,{size:"small",checked:e,indeterminate:l,disabled:o}),c]})}var d=memo(I);var N=d;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-VBQVGZ4J.js';import {a as a$3}from'./chunk-SUBE55I6.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {rc}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-VBQVGZ4J.js';import {a as a$3}from'./chunk-SUBE55I6.js';import {a as a$2}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {rc}from'./chunk-5UPHYEPO.js';import {Nh,Oh,Th,Md}from'./chunk-74ECWAQP.js';import {memo,useState,useEffect,useMemo}from'react';import n from'@mui/material/Box';import {useDropzone}from'react-dropzone';import {useTranslation}from'react-i18next';import {Button}from'@mui/material';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var x=styled(n)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),m=styled(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),H=styled(n)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),u=styled(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),f=styled(n)(({theme:e})=>({width:431,height:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),g=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),$=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),h=styled(n)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),F=styled(n)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),J=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),L=styled(n)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));function ie({accept:e,footer:i,options:b,isCreateLoading:y,progress:V,error:k,subtitleComponent:S,isSuccess:z,onConfirm:X,isSendDisabled:q}){let{t:a}=useTranslation(),[p,T]=useState([]),{getRootProps:G,getInputProps:K,open:U,acceptedFiles:I,isDragReject:P,fileRejections:s}=useDropzone(b);useEffect(()=>{T(I);},[I]);let w=rc(b?.maxSize||0,0).toUpperCase(),d=useMemo(()=>{let O=s.length&&s[0].errors.some(W=>W.code==="file-invalid-type"),Q=s.length&&s[0].errors.some(W=>W.code==="file-too-large");return P||O?a("invalidFileType"):Q?`File is larger than ${w}`:k},[P,k,s]);return z&&p.length&&!y?jsxs(x,{children:[jsxs(n,{children:[jsx(m,{children:"File uploaded"}),S]}),jsx(f,{children:jsxs(g,{children:[z&&jsx(n,{component:"img",src:Nh,width:56,height:56}),jsxs(h,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(F,{children:rc(p[0].size)})]})]})}),jsxs(L,{children:[jsx(a$1,{onClick:()=>{T([]);},children:jsx(a$2,{src:Oh,alt:"delete",sx:{width:14,height:14}})}),jsx(J,{disabled:q,onClick:()=>{X?.(p);},children:"Bulk Send"})]})]}):y&&p.length?jsxs(x,{children:[jsxs(n,{children:[jsx(m,{children:a("uploading")}),jsx(u,{children:a("wait")}),S]}),jsx(f,{children:jsxs(g,{children:[y&&jsx(a$3,{size:56,value:V}),jsxs(h,{sx:{fontWeight:600},children:[jsx(n,{children:p[0].name}),jsx(F,{children:rc(p[0].size)})]})]})}),i&&i]}):jsxs(x,{children:[jsxs(n,{children:[jsx(m,{isError:!!d,children:d||a("uploadBulkFile")}),!!d&&jsx(u,{children:"Supported formats: xls, xlxs"}),S]}),jsxs(f,{...G(),children:[jsx("input",{...K()}),jsxs(g,{children:[jsx(n,{component:"img",src:d?Th:Md,width:56,height:56}),d?jsx(Fragment,{children:jsx(H,{onClick:U,children:a("uploadAgain")})}):jsxs(h,{children:[jsxs(n,{children:[jsx($,{onClick:U,children:"Click to upload"})," or drag and drop"]}),jsxs(F,{children:["Maximum file size ",w]}),e&&jsx(u,{children:a("supportedFormats",{accept:e})})]})]})]}),i&&i]})}var N=memo(ie);var Te=N;export{Te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-A2P466RW.js';import {a}from'./chunk-CNIYZZCP.js';import {mb}from'./chunk-74ECWAQP.js';import {memo,useState,useRef,useEffect,useMemo}from'react';import X from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var W=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)})),z=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:p})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:p?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),L=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"}})),N=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary,width:"100%"})),k=styled(a$1)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),B=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1})),R=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center"})),H=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"})),$=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flex:1,position:"relative",left:4})),A=styled(Box)(()=>({flex:"1 0 auto"})),G=styled(Box)(({theme:e})=>({position:"relative",backgroundColor:e.palette.common.white,zIndex:999999}));function Y({label:e,icon:p,name:i,menuItems:t,setSelected:g,onSelect:h,selected:a,displayChildrenCount:C,disabled:r,placement:f="right",sx:w,menuSx:y}){let[l,u]=useState(null),d=useRef(null),[m,s]=useState(false),b=o=>{!r&&a!==void 0&&(g({name:o,selected:!a}),a||s(false));};return useEffect(()=>{s(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(z,{"data-testid":"NestedDropdown_MenuItem",ref:d,className:`nested-menu-item ${l?"active":""} ${r?"disabled":""}`,onMouseEnter:o=>{!l&&t?.length&&u(o.currentTarget);},onMouseLeave:()=>{l&&u(null);},onClick:o=>{r||(o.stopPropagation(),b(i));},sx:{...t?.length&&{cursor:r?"not-allowed":"pointer"},zIndex:99999,...w},disabled:r,children:[a!==void 0&&jsx(k,{size:"small",indeterminate:m,checked:a,disabled:r}),jsxs(B,{children:[p&&p,jsxs(R,{children:[e&&jsx(N,{children:e}),!!t?.length&&jsxs($,{children:[C&&jsx(H,{children:t.length}),jsx("img",{src:mb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(X,{open:!!(l&&t?.length),anchorEl:l,placement:f==="left"?"left-start":"right-start",sx:{zIndex:99999,...y},children:jsx(I,{className:"child-dropdown",menuItems:t,placement:f,onChildrenChange:o=>{let S=o.every(n=>n.selected);a!==void 0&&!r&&(S&&g({name:i,selected:true}),o.every(n=>!n.selected)&&g({name:i,selected:false}),s(o?.some(n=>n.selected)&&!o.every(n=>!n.selected)&&!S));},onSelect:o=>{h(o,i);}})})]})}var T=memo(Y);function j({title:e,menuItems:p,onChildrenChange:i,onSelect:t,className:g,updatedList:h,footer:a,placement:C="right",...r}){let[f,w]=useState({name:"",selected:false}),[y,l]=useState();return useEffect(()=>{l(p);},[p]),useEffect(()=>{if(f.name){let{name:u,selected:d}=f,m=[],s=S=>S?.map(n=>(m.push({name:n.name,selected:d}),{...n,selected:d,...n.menuItems?.length&&{menuItems:s(n.menuItems)}})),o=(S=>S.map(n=>n.name===u?(m.push({name:n.name,selected:d}),{...n,selected:d,...n.menuItems?.length&&{menuItems:s(n.menuItems)}}):n))(y);l(o),h&&h(o),i&&i(o),t&&t(m);}},[f]),jsxs(L,{component:"article",className:`tap-dropdown ${g||""}`,...r,children:[jsx(G,{children:e&&jsx(W,{component:"p",children:e})}),jsx(A,{children:y?.map((u,d)=>jsx(T,{setSelected:({name:m,selected:s})=>{w({name:m,selected:s});},onSelect:m=>{t&&t(m);},placement:C,...u},`${u.name}-${d}`))}),a&&a]})}var I=memo(j);var q=(e,{menuItemSx:p,menuSx:i})=>(e.forEach(t=>{t.sx={...p,...t.sx},t.menuSx={...i,...t.menuSx},t.menuItems?.length&&q(t.menuItems,{menuItemSx:p,menuSx:i});}),e);function se({title:e,menuItems:p,onSelect:i,updatedList:t,placement:g="right",menuItemSx:h={},menuSx:a={},...C}){let r=useMemo(()=>q(p,{menuItemSx:h,menuSx:a}),[p,h,a]),[f,w]=useState(r);useEffect(()=>{r.length&&w(r);},[r]);let y=l=>{let u=m=>m.map(s=>({...s,selected:l.find(b=>s.name===b.name)?.selected??s.selected,...s.menuItems?.length&&{menuItems:u(s.menuItems)}})),d=u(f);w(d),t&&t(d);};return jsx(I,{"data-testid":"NestedDropdown",placement:g,menuItems:f,title:e,onSelect:l=>{i&&i(l),y(l);},...C})}var J=memo(se);var Me=J;export{T as a,I as b,Me as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-74ECWAQP.js';import {memo,useState,useRef,useMemo,useEffect}from'react';import {useTheme}from'@mui/material';import {motion}from'framer-motion';import {Resizable}from're-resizable';import X from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b={boxShadow:"rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px",display:"flex",flexDirection:"column",overflow:"visible",width:"-webkit-fill-available",height:"100% !important",margin:"auto"},x={position:"fixed",right:0,left:24,top:88,overflow:"visible",borderRadius:"12px"},C={width:"inherit",height:"inherit",gridRowStart:1,gridColumnStart:1,position:"relative",display:"flex",justifyContent:"center"},S=styled(motion.div,{shouldForwardProp:t=>t!=="maximized"})(({maximized:t})=>({overflow:"hidden",display:"flex",flexDirection:"column",width:"100%",height:"100%",zIndex:1,borderRadius:"12px",...t&&{transform:"translate(0,0) !important"}})),R=styled(X)(()=>({flexGrow:1})),w=styled(motion.div)(()=>({width:"inherit",height:"100%",overflow:"hidden",flexGrow:1,position:"relative",display:"grid",gridTemplateColumns:"1fr"}));function V({children:t,id:l,onResize:v,isMaximized:e,isMinimized:y,dragControls:H,onClick:n,options:{width:r,height:E,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,order:s,openOrder:i=1},sandboxMode:d=false,sx:T}){let m=useTheme(),[I,f]=useState(true),_=useRef(null),N=useRef(null),g=useRef(),G=()=>{f(true);},L=()=>{n?.(),f(false);},k=useMemo(()=>({...b,maxWidth:r,borderRadius:e?"0 !important":12,...!e&&{top:0},background:d?m.palette.common.lightOrange:m.palette.background.transparent[0],backdropFilter:"blur(32px)"}),[r,e,d]);return useEffect(()=>{g.current?.updateSize({width:e?"100vw":r,height:e?"100vh":"100%"});},[e,r]),jsx(R,{id:"app-container-wrapper","data-testid":"AppContainerWrapper",sx:T,children:jsx(w,{"data-testid":"AppContainerContainer",children:jsx(motion.div,{id:"app-content","data-add-id":l,"data-testid":"AppContent",ref:N,initial:C,children:jsx(S,{id:"content-wrapper",drag:!e&&I,dragMomentum:false,dragConstraints:false,onDragStart:n,onDragEnter:n,onClick:n,dragControls:H,dragListener:false,style:{...s&&{zIndex:Number(s)+3},...x,height:E},initial:{marginInline:"auto",scale:0,left:0,...!e&&{left:48*(i-1)}},animate:{width:r,...e&&{width:"100vw"},scale:+!y,top:e?0:88+24*(i-1),left:e?0:48*(i-1)},ref:_,maximized:e,transition:{duration:e?.3:0},children:jsx(Resizable,{"data-id":l,ref:u=>{g.current=u;},style:k,minHeight:D,minWidth:A,maxHeight:P,maxWidth:z,onResizeStart:L,onResizeStop:G,onResize:(u,Y,B)=>{v?.(B);},children:t})})})})})}var W=memo(V);var ge=W;export{ge as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-A2P466RW.js';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),m=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),g=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),h=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),R=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),T=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),z=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),A=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),D=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),x=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function $({open:t,menuItems:n,anchorEl:a,onClose:d,footer:b,selected:I,multiple:f,allowShadows:l=true,...w}){let p=useTheme();return jsxs(m,{open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...w,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(u,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:M=>{o.onClick&&o.onClick(M);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===I&&{backgroundColor:"transparent",boxShadow:l?p.shadows[10]:"none"},...o.sx},children:[f&&jsx(x,{size:"small",checked:o.selected}),o.icon&&jsx(g,{children:o.icon}),jsx(h,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),b]})}var y=$;var K=y;export{R as a,T as b,z as c,A as d,D as e,K as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {Th,Md}from'./chunk-74ECWAQP.js';import M from'@mui/material/Box';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"})),m=styled(Box)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.palette.text.primary,cursor:"pointer",gap:"8px"})),l=styled("span")(({theme:t})=>({fontWeight:500,color:t.palette.text.primary,cursor:"pointer",fontSize:"9px"})),n=styled(Box)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",color:t.palette.text.primary})),f=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}`})),y=styled(a)(({theme:t})=>({color:t.palette.error.main,fontSize:"8px",fontWeight:500}));var j=({getRootProps:t,getInputProps:C,open:U,onChangeFiles:h,processFiles:F,disabled:W,errorMessage:a,maxFileSize:I,preventDuplicates:b,label:P="Click to upload",hintText:S,sx:k})=>jsxs(c,{...t(),sx:k,onClick:U,children:[jsx("input",{"data-slot":"input",...C(),onChange:T=>{let i=F(Array.from(T.target.files||[]));(i.length>0||!b)&&h(i);},disabled:W}),jsxs(m,{"data-slot":"content",children:[jsx(u,{"data-slot":"icon-wrapper",children:jsx(M,{component:"img",src:a?Th:Md,width:16,height:16})}),a?jsxs(n,{children:[jsx(y,{children:a}),jsx(l,{children:"Click to upload again"})]}):jsxs(n,{children:[jsx(l,{children:P}),jsx(f,{children:S||`PDF, JPG or PNG files up to ${I}`})]})]})]}),g=j;var N=g;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ab}from'./chunk-
|
|
1
|
+
import {ab}from'./chunk-5UPHYEPO.js';import {memo}from'react';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),e=styled(f)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function l({amount:m,currencyCode:a,...i}){let{integerAmount:u,decimalAmount:s}=ab(m,a);return jsxs(e,{...i,children:[jsx("span",{children:u}),jsx("span",{children:"."}),jsx(r,{children:s})]})}var p=memo(l);var B=p;export{B as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {a}from'./chunk-3QA32K6H.js';import {
|
|
1
|
+
import {a}from'./chunk-3QA32K6H.js';import {Mg}from'./chunk-74ECWAQP.js';import {useState}from'react';import L from'@mui/material/Skeleton';import i from'@mui/material/Box';import {styled,Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var x=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),f=styled(Box)`
|
|
2
2
|
position: absolute;
|
|
3
|
-
`;function P({mainIcon:m,overlayIcon:s,mainIconAlt:c="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:B={top:10,left:17},borderColor:u="#F2F2F2",label:b="",sx:w,onError:y,containerSx:C}){let[r,d]=useState(true);return jsx(a,{title:b,children:jsx(i,{display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(x,{style:{borderColor:u,width:a$1,height:a$1},children:[t&&r&&jsx(i,{width:t,height:t,children:r&&jsx(L,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[s&&jsx(f,{sx:B,children:s}),jsx(i,{width:t,height:t,component:"img",src:m||
|
|
3
|
+
`;function P({mainIcon:m,overlayIcon:s,mainIconAlt:c="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:B={top:10,left:17},borderColor:u="#F2F2F2",label:b="",sx:w,onError:y,containerSx:C}){let[r,d]=useState(true);return jsx(a,{title:b,children:jsx(i,{display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(x,{style:{borderColor:u,width:a$1,height:a$1},children:[t&&r&&jsx(i,{width:t,height:t,children:r&&jsx(L,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[s&&jsx(f,{sx:B,children:s}),jsx(i,{width:t,height:t,component:"img",src:m||Mg,alt:c,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:r?0:1,...w},onError:p=>{d(false),p.currentTarget.src=Mg,y?.(p);},onLoad:()=>{d(false);}})]})]})})})}export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1}from'./chunk-
|
|
1
|
+
import {b as b$1}from'./chunk-2QSOVWXD.js';import {memo}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(b$1)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),p=styled("span")(()=>({display:"flex",alignItems:"center"}));function l({amount:m,currency:t,...s}){return jsx(n,{disableAnimation:true,expandDirection:"left",...s,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(p,{children:t}),m]})})}var i=memo(l);var b=i;export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-3QA32K6H.js';import {o}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-3QA32K6H.js';import {o}from'./chunk-5UPHYEPO.js';import {db}from'./chunk-74ECWAQP.js';import {styled as styled$1,alpha}from'@mui/material';import {styled}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var s=(o=>(o.DEFAULT="default",o.PRIMARY="primary",o.SECONDARY="secondary",o.SUCCESS="success",o.WARNING="warning",o.ERROR="error",o.INACTIVE="inActive",o.ACTIVE="active",o.DARK="dark",o.NEUTRAL="neutral",o.GRAY="gray",o.ORANGE="orange",o.RED="red",o))(s||{});var C=(e,t)=>new Map([["default",t.palette.info.main],["primary","#1976d2"],["secondary","#f50057"],["inActive",t.palette.grey[100]],["active",alpha(t.palette.text.primary,.1)],["dark",t.palette.info.dark],["neutral","#656565"],["gray","#CFCFCF"],["orange","#FFD503"],["red","#FF0000"]]).get(e)||t.palette.common.white,R=(e,t)=>new Map([["default",t.palette.common.white],["primary",t.palette.common.white],["secondary",t.palette.common.white],["inActive",t.palette.text.primary],["active",t.palette.common.white],["dark",t.palette.common.white],["neutral",t.palette.common.white]]).get(e)||t.palette.common.white,x=new Map([["compact",.5],["round",0],["normal",2]]),E=styled("span")(({theme:e,variant:t,compact:r,round:p,pointer:g})=>({padding:r?"0.08031rem 0.16056rem":p?"0.5rem 0.275rem":"8px 8px",borderRadius:e.spacing(x.get(p?"round":r?"compact":"normal")||2),backgroundColor:C(t,e),color:R(t,e),fontSize:"0.6rem",fontWeight:600,overflow:"hidden",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Tap Sans",cursor:g?"pointer":"auto"})),c=E;var u=styled$1(motion.span)(({order:e})=>({zIndex:(e||0)+1})),a=(e,t)=>({start:{x:e*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t?e*t:e*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),A=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.25)}));function S({totalPaymentsCount:e,index:t}){let{t:r}=useTranslation();return jsx(a$1,{title:r("totalPaymentCount",{amount:o(e)}),children:jsx(u,{order:t,variants:a(t),"data-testid":"AgreementCell_CountAnimatedBadge",children:jsxs(A,{children:[jsx("img",{src:db,alt:"start",style:{width:"10px",height:"10px"}})," ",(e||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:e})]})})})}var z=c;export{s as a,u as b,a as c,S as d,z as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-RCHICZ67.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function A({isFilteredIdsShown:i,availableStatuses:f,status:e,onStatusChange:l,buttonSx:S}){let{t:v}=useTranslation(),I=useCallback(s=>s===e&&!i?"active":"inActive",[e,i]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:f?.map(({render:s,...a$1},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a$1,index:d})},`custom-status-slot-${d}`);if(!Array.isArray(a$1.status))return createElement(a,{...a$1,key:`status-button-array-${a$1.status}`,variant:I(a$1.status),onClick:()=>{Array.isArray(a$1.status)||u(a$1.status);},buttonSx:S});if(!a$1.status)return null;let o=a$1.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],m=!!e&&o.some(t=>t?.value===e);return jsx("div",{children:jsx(a,{...a$1,selectedStatus:m?e:void 0,variant:m?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:o.map(t=>({label:t?.label||v(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},o[0]?.value)})})}var c=memo(A);var $=c;export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-MTJLPDF4.js';import {a as a$2}from'./chunk-4W6J54AY.js';import {a}from'./chunk-CNIYZZCP.js';import {db}from'./chunk-5UPHYEPO.js';import {mj,nj}from'./chunk-74ECWAQP.js';import {useState,useEffect}from'react';import _ from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var W=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),L=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),f=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),B=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),S=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),z=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),h=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),k=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var Y=e=>e===0?12:e<=12?e:e-12,pe=e=>e>=12?"PM":"AM",$=()=>new Date().getMinutes(),j=()=>{let e=new Date().getHours();return Y(e)},ae=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var F=["AM","PM"],x=12,g=59;function N({onChange:e,defaultTime:o,enableRealTimeChange:p,size:R="large"}){let[A,y]=useState(null),[a$1,O]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[u,w]=useState(o?.hour??j()),[s,C]=useState(o?.minute??$()),H=!!A;useEffect(()=>{p&&e?.({hour:u,minute:s,period:a$1});},[u,s,a$1,p]);let U=r=>{y(r.currentTarget);},q=()=>{y(null),e?.({hour:u,minute:s,period:a$1});},G=r=>{O(r);},i=r=>r<10?`0${r}`:r.toString(),J=r=>{let l=db(i(Number(r.target.value)));if(l>12){r.preventDefault();return}w(l);},v=()=>{w(r=>r===12?1:r+1);},D=()=>{w(r=>r===1?12:r-1);},K=r=>{let l=db(i(Number(r.target.value)));if(l>59){r.preventDefault();return}C(l);},Q=()=>{C(r=>r===59?(v(),0):r+1);},V=()=>{C(r=>r===0?(D(),59):r-1);};return jsx(_,{onClickAway:q,children:jsxs(m,{children:[jsx(L,{size:R,open:H,onClick:U,children:`${i(u)}:${i(s)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(W,{children:[jsxs(z,{children:[jsxs(h,{children:[jsx(f,{onClick:v,children:jsx("img",{src:mj,alt:"arrow"})}),jsx(k,{value:i(u),onChange:J}),jsx(f,{onClick:D,children:jsx("img",{src:nj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(h,{children:[jsx(f,{onClick:Q,children:jsx("img",{src:mj,alt:"arrow"})}),jsx(k,{value:i(s),onChange:K}),jsx(f,{onClick:V,children:jsx("img",{src:nj,alt:"arrow"})})]})]}),jsx(S,{children:F.map(r=>jsx(B,{onClick:()=>{G(r);},selected:a$1===r,children:r},r))})]})})]})})}var ye=N;export{Y as a,pe as b,$ as c,j as d,ae as e,F as f,x as g,g as h,N as i,ye as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Pa}from'./chunk-
|
|
1
|
+
import {Pa}from'./chunk-5UPHYEPO.js';import b from'react';import y from'@mui/material/Box';import f from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(f,{shouldForwardProp:r=>!["isError","hideArrows"].includes(r)})(({theme:r,hideArrows:o})=>({padding:"8px",border:`1px solid ${r.palette.divider}`,borderRadius:"4px",height:32,color:r.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:r.palette.grey[700],fontWeight:400},...o&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}));var c=Pa();function x({isError:r,hideArrows:o,inputProps:u,onKeyDown:n,...t},s){let d=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}c&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(y,{sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(p,{...t,ref:s,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...u,type:"number"},onKeyDown:d,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}var l=b.forwardRef(x);var M=l;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-
|
|
1
|
+
import {e}from'./chunk-P6HAZK64.js';import {a}from'./chunk-U7PHGDKK.js';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {motion}from'framer-motion';import {jsx}from'react/jsx-runtime';import {memo,useState}from'react';var f=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]})),v=styled(n)(({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(n)(({theme:o})=>({minHeight:95,background:o.palette.grey[400],paddingInline:"24px",paddingTop:"23px",paddingBottom:"23px",gap:"15px",position:"relative",zIndex:2})),C=styled(n)(({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 l({children:o,index:e,dialogRef:a,height:t,onClick:r,order:p,dragControls:s,style:d}){return jsx(f,{drag:true,dragListener:false,dragMomentum:false,dragControls:s,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+p},onClick:r,ref:a,style:d,children:o})}function T({title:o,onCloseDialog:e$1,...a$1}){let[t,r]=useState(false);return jsx(e,{onMouseEnter:()=>{r(true);},onMouseLeave:()=>{r(false);},isHovered:t,title:o,leftActions:jsx(a,{onClick:c=>{c.stopPropagation(),e$1();}}),...a$1})}var I=memo(T);var z=l;export{v as a,b,C as c,I as d,z as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Bg,Cg}from'./chunk-74ECWAQP.js';import {styled,Box}from'@mui/material';import v,{useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var c=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),d=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),u=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var x=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(x||{});var h=e=>{let o=v.Children.count(e.children)-1;return jsx(c,{...e,sx:{width:o*30+2}})},m=h;var V=[{icon:jsx("img",{src:Bg,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:Cg,alt:"LIST"}),value:"LIST"}],y=e=>{let{currentView:o,onToggleClick:a,getOverrideViews:t}=e,l=useMemo(()=>t?t(V):V,[t]),f=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return a?jsxs(m,{children:[l.map(r=>jsx(d,{onClick:()=>a(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(u,{activeIndex:f})]}):null},T=y;var M=T;export{x as a,M as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-JCLHFQNS.js';import {memo,useState,useRef,useMemo}from'react';import {useTheme}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import C from'@mui/material/Box';import x from'@mui/material/Button';import {styled,alpha}from'@mui/material/styles';function m({isActive:t}){let[o,r]=useState(false),a=useTheme(),p=()=>{r(true);},l=()=>{r(false);},c=t?a.palette.common.white:a.palette.grey[700],s=o?a.palette.common.black:"transparent";return jsx("svg",{width:"27",height:"30",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg",children:jsxs("g",{id:"Group 140343",children:[jsx("path",{id:"Active",d:"M0 0H11C19.8366 0 27 7.16344 27 16C27 24.8366 19.8366 32 11 32H0V0Z",fill:s,fillOpacity:"0.1",onMouseEnter:p,onMouseLeave:l}),jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:c})]})})}var v=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)}),w=styled(x)(({theme:t})=>({...v(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),y=styled(x)(({theme:t})=>({...v(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}));styled(C)(({theme:t,variant:o})=>({borderRadius:"50px",backgroundColor:o==="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:o==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:o})=>({fill:o==="active"?t.palette.common.white:t.palette.text.primary,color:o==="active"?t.palette.common.white:t.palette.text.primary,maxWidth:"14px",maxHeight:"14px"}));styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"}));var B=styled(f)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),b=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),D=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),I=styled(C)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem"}));var L={active:w,inActive:y};function F({variant:t="inActive",label:o,dropdownOptions:r,...a}){let[p,l]=useState(null),c=useRef(null),s=!!p,f=()=>{l(null);},S=L[t],d=r&&r.length>0,g=d?jsx(m,{isActive:t==="active"}):null,R=n=>{n.stopPropagation(),n.preventDefault(),d&&l(c.current);},E=useMemo(()=>(r||[]).map(n=>({...n,onClick:H=>{n?.onClick?.(H),f();}})),[r]);return jsxs(Fragment,{children:[jsx(S,{"data-testid":"StatusButton",...a,ref:c,onClick:n=>{a?.onClick?.(n),R(n);},sx:{...d&&{paddingInlineEnd:"27px"}},children:jsxs(D,{children:[jsx(I,{children:o}),g&&jsx(b,{children:g})]})}),s&&jsx(B,{open:s,onClose:f,anchorEl:p,menuItems:E})]})}var M=memo(F);var dt=M;
|
|
2
2
|
export{m as a,dt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-6EPOVQF4.js';import {a}from'./chunk-SV2BAHHH.js';import {memo}from'react';import n from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var x="32px";var m=styled(n,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:o})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:o?x:"16px",height:"100%",overflow:"auto"})),u=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),l=styled(n,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:o?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),s=styled(n,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:o})=>({background:o?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600}));function B({sections:e,isMaximized:o,onClick:p,activeSection:b,activeSubSection:S}){let d=b||e?.[0]?.id,g=S||e?.[0]?.subSections?.[0]?.id;return jsx(m,{isMaximized:o,children:jsx(u,{children:e?.map(t=>jsx(a,{defaultExpanded:d===t.id,summarySx:{padding:0,minHeight:0,marginBottom:"4px",borderRadius:"4px !important","& .MuiAccordionSummary-content":{margin:"0 !important"}},sx:{background:"transparent",border:"none !important","&.MuiAccordion-root":{borderRadius:"4px !important"}},Header:jsx(s,{onClick:()=>{p?.(t.id,t.subSections?.[0]?.id);},isActive:d===t.id,children:t.title},t.id),children:jsx(Fragment,{children:t.subSections?.map(i=>jsx(l,{onClick:()=>{p?.(t.id,i.id);},isActive:g===i.id,children:i.title},`${t.id}-${i.id}`))})},`${t.id}`))})})}var f=memo(B);var P=f;export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {nb}from'./chunk-
|
|
1
|
+
import {nb}from'./chunk-74ECWAQP.js';import {useCallback}from'react';import A,{autocompleteClasses}from'@mui/material/Autocomplete';import M from'@mui/material/Box';import {styled}from'@mui/material/styles';import P from'@mui/material/TextField';import C from'@mui/material/Popper';import {jsx}from'react/jsx-runtime';var i=styled(P)({"& .MuiInputBase-root":{paddingTop:13,paddingBottom:13,borderRadius:4,"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderStyle:"solid",borderColor:"#F2F2F2"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#F2F2F2"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#1F88D0"}}},[`& .${autocompleteClasses.input}`]:{fontSize:11,paddingTop:0,paddingBottom:0,paddingLeft:0},[`& .${autocompleteClasses.endAdornment}`]:{marginRight:8}}}),a=styled(C)({fontSize:11,borderRadius:"8px",border:"1px solid #F2F2F2",boxShadow:"0px 2px 56px 0px #20232B24"});var g=s=>{let{options:u,value:m,onChange:f,label:t,renderInput:x,slotProps:p,textFieldProps:e,...c}=s,b=useCallback(l=>{let F=typeof e=="function"?e(l):e;return jsx(i,{...l,...F,label:t})},[e,t]);return jsx(A,{options:u,value:m,onChange:f,popupIcon:jsx(M,{component:"img",src:nb,sx:{transform:"rotate(90deg)"},width:8,alt:"close"}),renderInput:x||b,PopperComponent:a,...c,slotProps:{...p,popper:{modifiers:[{name:"offset",options:{offset:[0,4]}}],...p?.popper}}})},I=g;export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {Xc
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {Xc,ah,bh,ch,dh,eh}from'./chunk-74ECWAQP.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var y=styled(i)(({theme:o})=>({display:"flex",gap:o.spacing(1),insetInlineStart:o.spacing(1.25),zIndex:1}));styled(i)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var b=styled(i)(({theme:o})=>({display:"flex",height:"2rem",justifyContent:"space-between",alignItems:"center",width:"100%",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),"& > *":{flex:"1 1 0px;"}})),f=styled("div",{shouldForwardProp:o=>o!=="sandboxMode"&&o!=="maximized"&&o!=="isDragging"})(({maximized:o,isDragging:e})=>({...!o&&{borderTopRightRadius:12,borderTopLeftRadius:12},...e&&{cursor:"move"},margin:0})),U=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isDragging"})(({isDragging:o})=>({...o&&{cursor:"move"},margin:0})),u=styled(i,{shouldForwardProp:o=>o!=="maximized"&&o!=="isHovered"})(({theme:o,maximized:e})=>({height:32,position:"relative",display:"flex",width:"100%",justifyContent:"center",transition:"all 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",...e&&{display:"block !important",position:"fixed",right:0,left:0,zIndex:999,background:"transparent",".toolbar-wrapper":{display:"flex",justifyContent:"space-between",gap:10,alignItems:"center",position:"absolute",right:0,left:0,height:"2rem",".action-box":{visibility:"hidden"}},"&:hover":{".toolbar-wrapper":{top:0},".action-box":{visibility:"visible"}}},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1}}})),P=styled(f)(()=>({position:"sticky",top:0,left:0,right:0,zIndex:1e3,background:"#eaeaea",backdropFilter:"blur(32px)"}));var w=styled(a)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),h=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var S=new Map([["json",Xc],["brand",ah],["entity",bh],["bank",ch],["individual",dh],["password",eh]]);function R({title:o,icon:e}){let n=S.get(e||"")??(S.get(o?.toLowerCase())||e);return jsxs(h,{className:"action-box",children:[n&&jsx(I,{src:n,alt:"icon"}),jsx(w,{className:"title",children:o})]})}var T=R;var W=T;function D({onMouseEnter:o,onMouseLeave:e,isMaximized:n,isHovered:z,children:M,rightActions:A,leftActions:d,title:B,icon:H,...C}){return jsx(u,{onMouseEnter:o,onMouseLeave:e,maximized:n,id:"toolbar",isHovered:z,...C,children:jsxs(b,{className:"toolbar-wrapper",children:[d?jsx(y,{className:"action-box",children:d}):jsx("div",{}),jsx(W,{title:B,icon:H}),A||jsx("div",{})]})})}var k=memo(D);var no=k;export{f as a,U as b,P as c,W as d,no as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {
|
|
1
|
+
import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {Xh}from'./chunk-74ECWAQP.js';import {memo}from'react';import i from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var a=styled(i)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),s=styled(i)(({theme:e})=>({padding:"8px 12px",borderBottom:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),l=styled(i)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(i)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${e.palette.divider}`,height:40})),c=styled(a$1)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),f=styled(i)(()=>({display:"flex",alignItems:"center",gap:"8px"})),g=styled(i)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(i)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(i)(()=>({margin:"12px "}));function L({children:e,...t}){return jsx(a,{component:"article","data-testid":"Widget",...t,children:e})}var I=memo(L);function R({children:e,action:t,...r}){return jsxs(s,{"data-testid":"Widget_WidgetHeader",component:"header",...r,children:[jsx(l,{children:e}),t&&t]})}var b=memo(R);function v({allowShadow:e=true,children:t,...r}){let{onScrollHandler:d,showShadow:h}=a$2();return jsxs(y,{component:"ul","data-testid":"Widget_List",onScroll:d,...r,children:[t,h&&e&&jsx(i,{component:"img",src:Xh,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var z=memo(v);function A({children:e,icon:t,actions:r,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(f,{component:"aside",children:[t&&t,jsx(c,{noWrap:true,className:"content",children:e})]}),r&&jsx(g,{component:"aside",children:r})]})}var E=memo(A);var ce=I;export{b as a,z as b,E as c,ce as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-K63LRPDM.js';var e=a;export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ABDRIOU6.js';import {h,g,a as a$1,f,e as e$1,d,c}from'./chunk-UF4P3QQ5.js';import {e}from'./chunk-LME4KQ2K.js';import {db,p}from'./chunk-5UPHYEPO.js';import {La,if as _if,sj,Qa,Ka,rf,qf,sf,pf,uf,qb,pb,Ki,si,_a,Fi,w,s,v,y,fg,ri,q,Li}from'./chunk-74ECWAQP.js';import {memo,useState,useRef,useEffect,useMemo,useCallback}from'react';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var mt={inProgress:Li,initiated:Li,abandoned:q,cancelled:ri,reversed:fg,reports:y,search:v,chevronDown:s,unAuthorized:w,unSettled:Fi,unCaptured:_a,captured:si,authorized:Ki,openFlag:pb,closedFlag:qb,unauthenticated:uf,authenticated:pf,paidOut:sf,scheduled:qf,checked:rf,dashedChecked:Ka,deactivated:Qa,destination:sj,destinationReversed:_if,outstanding:La};var At=memo(I=>{let{variant:r="inActive",badgeCount:i,icon:g$1,label:k,dropdownOptions:o,selectedStatus:d$1,onButtonBodyClick:E,iconMapper:l=mt,buttonSx:ft,...Ct}=I,[Bt,y]=useState(0),{t:T}=useTranslation(),w=useRef(null),[A,h$1]=useState(null),[n,L]=useState(d$1??o?.[0]?.status);useEffect(()=>{d$1!==void 0&&L(d$1);},[d$1]);let c$1=useMemo(()=>!!o?.length,[o]),p$1=!!A&&Bt>1,s=r==="active",M=useMemo(()=>s?"active":"inActive",[s]),u=useMemo(()=>n?o?.find(t=>t.status===n):null,[n,o]),vt=useMemo(()=>{if(u?.icon)return jsx(h,{variant:r,children:u.icon});let t=n&&l[n]?n:g$1;if(t&&l[t])return jsx(g,{icon:t,variant:r,src:l[t],alt:`${t}-icon`})},[u,n,l,g$1,r]),St=useMemo(()=>!i||Number.isNaN(db(i))?null:jsx(e,{variant:M,children:p(Number(i))}),[i,M]),x=useMemo(()=>c$1?jsx(a,{isActive:s}):null,[c$1,s]);useEffect(()=>{s||(y(0),h$1(null));},[s]);let f$1=useCallback(()=>{h$1(null);},[]),D=useCallback(()=>{c$1&&h$1(p$1?null:w.current);},[c$1,p$1]),bt=useCallback(t=>{t.stopPropagation(),I?.onClick?.(t),E?.(n||o?.[0]?.status||"all"),D(),y(C=>C+1);},[I,E,n,o,D]),N=useCallback(t=>C=>{t?.onClick?.(C),L(t.status),f$1();},[f$1]),gt=useMemo(()=>o?.map(t=>({...t,onClick:N(t)}))||[],[o,N]),kt=a$1[r],Et=useMemo(()=>u?.label||(n?T(n):k),[u,n,T,k]);return jsxs(Fragment,{children:[jsx(kt,{"data-testid":"StatusButton",...Ct,ref:w,onClick:bt,sx:{...c$1&&{paddingInlineEnd:"27px"},...ft},children:jsxs(f,{children:[jsxs(e$1,{variant:r,children:[vt,Et,St]}),x&&jsx(d,{children:x})]})}),p$1&&c$1&&jsx(c,{open:p$1,onClose:f$1,anchorEl:A,menuItems:gt})]})}),ht=At;var $t=ht;export{$t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-2QSOVWXD.js';import {Jl}from'./chunk-74ECWAQP.js';import {memo}from'react';import {jsx}from'react/jsx-runtime';var p={"3DS":{text:"3DS"},"Non-3DS":{text:"Non 3DS",styles:{...Jl}},"Device Biometric":{text:"Biometric"}};function y({title:t,ref:n,...r}){let i=p[t];return jsx(b,{chipStyles:i?.styles,ref:n,...r,children:i?.text||t})}var h=memo(y);var l=h;export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-HPXFZSAB.js';import {a}from'./chunk-4W6J54AY.js';import {a as a$2}from'./chunk-S7OMWEM6.js';import {tb}from'./chunk-74ECWAQP.js';import {Box}from'@mui/material';import n from'@mui/material/Box';import {styled}from'@mui/material/styles';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=styled(n,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:a})=>({minWidth:105,height:32,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",padding:"7px 8px",paddingRight:"4px",...a&&{boxShadow:o.shadows[7],borderColor:o.palette.info.dark}})),h=styled(n)(()=>({display:"flex",flexDirection:"column",gap:"1px"})),b=styled(n)(()=>({fontWeight:600,fontSize:"8px",color:"#8D8D94"})),w=styled(n)(({theme:o})=>({fontWeight:500,fontSize:"11px",lineHeight:1.1,color:o.palette.text.primary}));function l({defaultValue:o,label:a$3,onChange:M,options:i}){let[s,d]=useState(null),[y,D]=useState(o),r=!!s,E=e=>{r||d(e.currentTarget);},m=()=>{r&&d(null);},I=e=>{D(e),M?.(e),m();};return jsxs(g,{onClick:E,open:r,children:[jsxs(h,{children:[jsx(b,{children:a$3}),jsx(w,{children:y})]}),jsx(Box,{component:"img",src:tb,alt:"down arrow",sx:{width:15,...r&&{transform:"rotate(180deg)"}}}),jsx(a,{open:r,anchorEl:s,sx:{minWidth:105,marginTop:"8px",marginBottom:"8px"},placement:"top",children:i.map((e,W)=>jsx(a$1,{onClick:()=>{I(e.value);},sx:k=>({...W!==i.length-1&&{borderBottom:`1px solid ${k.palette.divider}`}}),children:e.label},e.value))}),r&&jsx(a$2,{onClick:m})]})}var G=l;export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-NKNRVF6Q.js';import {tb}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-NKNRVF6Q.js';import {tb}from'./chunk-74ECWAQP.js';import u from'react';import {AccordionDetails}from'@mui/material';import l from'@mui/material/Accordion/Accordion';import x from'@mui/material/AccordionActions/AccordionActions';import f from'@mui/material/AccordionSummary/AccordionSummary';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var i=styled(l)(({theme:o})=>({overflow:"hidden",border:"1px solid transparent",background:"#ffffff",borderRadius:"0px 0px 3px 3px",margin:0,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0,border:`1px solid ${o.palette.divider}`}})),a=styled(f)(()=>({background:"#FBFBFB","&.Mui-expanded":{minHeight:"unset"},"& .MuiAccordionSummary-content":{display:"flex",flexDirection:"column"},".MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"}}));styled("section")(()=>({display:"flex",flexDirection:"column"}));var p=styled(x)(({theme:o})=>({borderTop:`1px solid ${o.palette.divider}`}));function m({Header:o,Footer:c,summarySx:s,...d}){return jsxs(i,{component:"section","data-testid":"AccordionAdapter",...d,children:[jsx(a,{expandIcon:jsx(a$1,{src:tb}),"aria-controls":"panel3-content",id:"panel3-header",sx:s,children:o}),jsx(AccordionDetails,{sx:{padding:0},children:d.children}),c&&jsx(p,{children:c})]})}m.displayName="AccordionAdapter";var A=u.memo(m);var k=A;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ja,Ia,Ta,Ha,Dd,Ed}from'./chunk-
|
|
1
|
+
import {Ja,Ia,Ta,Ha,Dd,Ed}from'./chunk-74ECWAQP.js';import {styled}from'@mui/material/styles';import P from'@mui/material/Box';import {jsx,jsxs}from'react/jsx-runtime';import k from'@mui/material/Typography';var e=styled(P)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}}));var d=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.error.main}}));function S(o){return jsx(d,{...o,className:"header-icon",children:jsx("img",{src:Ja,alt:"close"})})}var x=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.warning.main}}));function U(o){return jsx(x,{...o,className:"header-icon",children:jsx("img",{src:Ia,alt:"minimize"})})}var u=styled(e)(({theme:o})=>({"&.header-icon:hover":{backgroundColor:o.palette.info.dark}}));function ro({isMaximized:o,...r}){return jsx(u,{...r,className:"header-icon",children:jsx("img",{src:o?Ta:Ha,alt:"maximize"})})}var g=styled(e,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},...r&&{backgroundColor:`${o.palette.success.main} !important`}})),h=styled(P)(({theme:o})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px","&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),y=styled(k,{shouldForwardProp:o=>o!=="isHovered"})(({theme:o,isHovered:r})=>({fontSize:"10px",color:o.palette.success.main,opacity:r?1:0}));function fo({isExpanded:o,isHovered:r,children:b,...B}){return jsxs(h,{...B,children:[jsx(g,{className:"header-icon",isHovered:r,children:jsx(P,{component:"img",sx:{...r&&{opacity:1}},src:o?Dd:Ed,alt:"arrow"})}),jsx(y,{className:"request-text",isHovered:r,children:b})]})}export{S as a,U as b,ro as c,fo as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-JCLHFQNS.js';import {styled,Button,Box,alpha}from'@mui/material';var p=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)}),c=styled(Button)(({theme:t})=>({...p(t),background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}})),l=styled(Button)(({theme:t})=>({...p(t),backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}})),g={active:c,inActive:l};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 h=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),y=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),f=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})),S=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),v=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"})),B=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{g as a,h as b,y as c,f as d,b as e,S as f,v as g,B as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zb,jc}from'./chunk-
|
|
1
|
+
import {zb,jc}from'./chunk-5UPHYEPO.js';import {ma,ka,Jl}from'./chunk-74ECWAQP.js';import {useState,useCallback,useMemo}from'react';import {useTranslation}from'react-i18next';import {motion,AnimatePresence}from'framer-motion';import f from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var m=styled(f,{shouldForwardProp:o=>!["textColor","bgColor","borderColor","disabled","minWidth","padding","maxWidth","isSelected","disableAnimation"].includes(o)})(({theme:o,isSelected:s,textColor:r=o.palette.text.primary,bgColor:e="#EFF1F2",borderColor:c="#EFF1F2",disabled:d=false,padding:i,minWidth:n,maxWidth:a,disableAnimation:l})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:i||"0px 8px",borderRadius:"30px",border:`1px solid ${c}`,backgroundColor:e,color:r,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:n||"67px",maxWidth:a||"none",width:"fit-content",overflow:"hidden",textOverflow:a?"ellipsis":"unset",boxSizing:"border-box",...s&&{boxShadow:"white 7px 0px 8px 2px"},...l&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}})),u=styled(f)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),I=styled(f)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"}));var H=({children:o,unknownText:s,copyText:r,expandDirection:e="right",chipStyles:c,containerStyles:d,fullWidth:i=false,...n})=>{let[a,l]=useState(false),{t:C}=useTranslation(),p=n.isSelected,g=p&&r,w=useCallback(x=>{if(x.stopPropagation(),r){l(true),zb(r);let R=setTimeout(()=>{l(false);},2e3);return ()=>{clearTimeout(R);}}},[r]),S=useMemo(()=>jsx(I,{sx:{...e==="right"&&{right:"8px"},...e==="left"&&{left:"8px"}},children:jsx(motion.img,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},exit:{opacity:0,x:-2},transition:{duration:.1},onClick:w,src:a?ma:ka,style:{height:12,width:12,objectFit:"contain"}})}),[a,w,e]),b=g&&e==="right",v=g&&e==="left";return o?jsxs(motion.div,{style:{position:"relative",...d,...i&&{width:"100%",minWidth:0}},animate:{zIndex:p?3:0},children:[jsx(m,{...n,sx:{visibility:"hidden",pointerEvents:"none",width:i?"100%":"auto"},children:jsx(u,{children:o})}),jsx(motion.div,{style:{position:"absolute",top:0,zIndex:p?3:0,width:i?"100%":"auto",left:e==="right"?0:"unset",right:e==="left"?0:"unset"},transition:{delay:p?0:.3,duration:.2},children:jsx(m,{...n,isSelected:p,sx:{width:i?"100%":"auto"},...c,children:jsxs(motion.div,{layout:"size",style:{display:"flex",gap:"4px",...i&&{maxWidth:"100%",width:"100%"}},animate:{...b&&{paddingRight:12},...v&&{paddingLeft:12}},transition:{delay:p?0:.3,duration:.2},children:[jsx(AnimatePresence,{children:v&&S}),jsx(u,{"data-is-arabic":typeof o=="string"&&jc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...Jl,...n,isSelected:false,sx:x=>({borderColor:x.palette.divider,width:i?"100%":"auto"}),children:C(s||"unknown")})},M=H;var D=M;export{D as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-X6X46AOG.js';import {a,f,e as e$1}from'./chunk-UF4P3QQ5.js';import {e}from'./chunk-LME4KQ2K.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {db,p}from'./chunk-5UPHYEPO.js';import {tb}from'./chunk-74ECWAQP.js';import {memo,useRef,useMemo,useCallback,useState}from'react';import {styled,Box,Popper}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var L=styled(Box,{shouldForwardProp:t=>t!=="isDisabled"})(({isDisabled:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",...t&&{"& img":{opacity:.3}}}));var W=memo(t=>{let{variant:r="inActive",badgeCount:o,label:i,...a$1}=t,l=useRef(null),p$1=useMemo(()=>!o||Number.isNaN(db(o))?null:jsx(e,{variant:"inActive",children:p(Number(o))}),[o]),s=useCallback(e=>{e.stopPropagation(),t?.onClick?.(e);},[t]),u=a[r];return jsx(u,{"data-testid":"MultiSelectStatusButton",...a$1,ref:l,onClick:s,children:jsx(f,{children:jsxs(e$1,{variant:r,children:[i,p$1]})})})}),E=W;function Y({buttonLabel:t,onClear:r,onConfirm:o,dropdownItems:i,apiKey:a,data:l,styles:p,buttonDisabled:s}){let[u,e]=useState(null),y=N=>{e(N.currentTarget);},c=()=>{e(null);},d=!!u,f=l?.[a],D=Array.isArray(f)?f.length:0;return jsxs("div",{children:[jsx(E,{onClick:y,label:jsxs(L,{isDisabled:s,children:[t,jsx("img",{src:tb,alt:"arrow-down"})]}),disabled:s,badgeCount:D}),d&&jsx(a$1,{onClick:c}),jsx(Popper,{open:d,anchorEl:u,placement:"bottom-start",sx:{zIndex:9999},children:jsx(e$2,{onCloseDropdown:c,filter:{apiKey:a,data:l,onClear:r,onConfirm:o,options:i,type:"list"},styles:{...p,height:"300px",overflowY:"scroll",maxWidth:"200px"}})})]})}var P=memo(Y);var ct=P;export{ct as a};
|