@tap-payments/os-micro-frontend-shared 0.1.484 → 0.1.485
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-RIHFQNBZ.js → chunk-2C3FYCJZ.js} +1 -1
- package/build/{chunk-I2CSMNXZ.js → chunk-2IIB45K2.js} +1 -1
- package/build/{chunk-GUMLHWEA.js → chunk-2PAKLX5A.js} +1 -1
- package/build/{chunk-C7V3J43X.js → chunk-2ROZ5GBC.js} +1 -1
- package/build/{chunk-UIUJ55RJ.js → chunk-3D6UJDPA.js} +1 -1
- package/build/{chunk-3KIAJGGV.js → chunk-3ZGZ5FIK.js} +1 -1
- package/build/{chunk-SYJ3OSE6.js → chunk-5CZ7VXQI.js} +1 -1
- package/build/{chunk-MGV7K27I.js → chunk-5RN6ZE7U.js} +1 -1
- package/build/{chunk-3GDG4UHA.js → chunk-6NMJMFZ4.js} +1 -1
- package/build/{chunk-2K3VBGIQ.js → chunk-754SYTN5.js} +1 -1
- package/build/{chunk-UBYTLQSK.js → chunk-7QVCQGTL.js} +1 -1
- package/build/{chunk-C75362ZW.js → chunk-7RXBKELW.js} +1 -1
- package/build/{chunk-PKH2JQX2.js → chunk-7TLT55SX.js} +1 -1
- package/build/{chunk-NBMFXLFF.js → chunk-ACVRFMZA.js} +1 -1
- package/build/{chunk-J7RRTJWX.js → chunk-B3DQAUV4.js} +1 -1
- package/build/{chunk-F6BD23DQ.js → chunk-BLJRBTJY.js} +1 -1
- package/build/{chunk-Q6OW2HMD.js → chunk-BU73TXJS.js} +1 -1
- package/build/{chunk-O7FBCA4V.js → chunk-CD4OW66V.js} +1 -1
- package/build/{chunk-F776GW4X.js → chunk-CHGXOBXJ.js} +1 -1
- package/build/{chunk-VQ27SJN6.js → chunk-D25BO6UL.js} +1 -1
- package/build/{chunk-5MWHUMZ7.js → chunk-DAA2SX67.js} +1 -1
- package/build/{chunk-NIZX3XZI.js → chunk-DFMAEDSH.js} +1 -1
- package/build/{chunk-IV7KMFMP.js → chunk-DIAV6KTN.js} +1 -1
- package/build/{chunk-FNG7EB2A.js → chunk-DTJGVP2A.js} +1 -1
- package/build/{chunk-RE64KU7O.js → chunk-EB37INRY.js} +1 -1
- package/build/{chunk-AN5A637H.js → chunk-ENVOVY2O.js} +1 -1
- package/build/{chunk-YXBUX354.js → chunk-EZT32NWC.js} +1 -1
- package/build/{chunk-YJPWSHZP.js → chunk-FMNSY545.js} +1 -1
- package/build/{chunk-LOQCY2OK.js → chunk-FRSMKKPS.js} +1 -1
- package/build/{chunk-WRDDVTG7.js → chunk-GOC4DJNU.js} +1 -1
- package/build/{chunk-OEWHWQLB.js → chunk-GOCLIEY4.js} +1 -1
- package/build/{chunk-UJB2MBYN.js → chunk-HEBSQ4LD.js} +1 -1
- package/build/{chunk-NE3IT66O.js → chunk-HFHOSPBQ.js} +1 -1
- package/build/{chunk-YBEFFG56.js → chunk-HVX3VNNF.js} +1 -1
- package/build/{chunk-A3A57XUD.js → chunk-HWZWTSHK.js} +1 -1
- package/build/{chunk-6T6LLYTZ.js → chunk-JFMTUEDJ.js} +1 -1
- package/build/{chunk-L66VVQTE.js → chunk-JPKPDHGA.js} +1 -1
- package/build/{chunk-WXXBPWPK.js → chunk-JTYEPTPC.js} +1 -1
- package/build/{chunk-WZPTU76Y.js → chunk-KDXUTFTC.js} +1 -1
- package/build/{chunk-IK4AAQU7.js → chunk-KIFTOGBV.js} +1 -1
- package/build/{chunk-XABCF3GH.js → chunk-LXVY6Z2V.js} +1 -1
- package/build/{chunk-X46UH3DH.js → chunk-ML3SLQQU.js} +1 -1
- package/build/{chunk-YNPOTGC2.js → chunk-ML6573Q7.js} +1 -1
- package/build/{chunk-HWDCNDKZ.js → chunk-MUT6L3JA.js} +1 -1
- package/build/{chunk-E7C6OLIT.js → chunk-MWNGTT3M.js} +1 -1
- package/build/{chunk-FCGTIKMW.js → chunk-NJZCTFGD.js} +1 -1
- package/build/{chunk-CDLNKNLX.js → chunk-NNY57WCR.js} +1 -1
- package/build/{chunk-67YAIV2Q.js → chunk-NOWBLOCZ.js} +1 -1
- package/build/chunk-ODAEN262.js +1 -0
- package/build/{chunk-CDX2YLA6.js → chunk-P4F6UZMP.js} +1 -1
- package/build/{chunk-HEYWMYBH.js → chunk-P5M65H62.js} +1 -1
- package/build/{chunk-RC7QOYMU.js → chunk-PPWY42W6.js} +2 -2
- package/build/{chunk-5OXGCV4G.js → chunk-PQQHTXNT.js} +1 -1
- package/build/{chunk-ITDYXMXO.js → chunk-PUBTUJQW.js} +1 -1
- package/build/{chunk-RZELXKDN.js → chunk-PZI7KDU4.js} +1 -1
- package/build/{chunk-2YA4NLMM.js → chunk-QLVQU2QO.js} +1 -1
- package/build/{chunk-NOSELIL3.js → chunk-RDOVQS4F.js} +1 -1
- package/build/{chunk-5TN7MMIG.js → chunk-RT24D3PU.js} +1 -1
- package/build/{chunk-DJ5SB6TY.js → chunk-RXJRTA5O.js} +1 -1
- package/build/{chunk-NFIVFWS3.js → chunk-SD7NTSGT.js} +1 -1
- package/build/{chunk-4OELZXPG.js → chunk-SVX77TK3.js} +1 -1
- package/build/{chunk-M53OPJNA.js → chunk-TFAFYSCO.js} +1 -1
- package/build/{chunk-POHVPPSE.js → chunk-TI7MUBQQ.js} +1 -1
- package/build/{chunk-JWKI3CR5.js → chunk-TKL2VOND.js} +1 -1
- package/build/{chunk-NLQYSAHE.js → chunk-ULNHI5LI.js} +1 -1
- package/build/{chunk-ZQNJNC3B.js → chunk-USKRKN56.js} +1 -1
- package/build/{chunk-3Z5K3QI3.js → chunk-UWNVAMEF.js} +1 -1
- package/build/{chunk-KLE7WQVZ.js → chunk-VTRCRHYL.js} +1 -1
- package/build/{chunk-N4AHAR4H.js → chunk-WZ2PKSYG.js} +1 -1
- package/build/{chunk-F4HESZHE.js → chunk-YCQF5BBA.js} +1 -1
- package/build/{chunk-M7Q7762F.js → chunk-YISRJ4V6.js} +1 -1
- package/build/{chunk-5ESY366O.js → chunk-ZOT7WST5.js} +1 -1
- package/build/{chunk-XN3DEGAL.js → chunk-ZXXZCGBC.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/apps.d.ts +3 -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-WRNKNOTO.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-EB37INRY.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 {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-USKRKN56.js';import {memo}from'react';import {styled}from'@mui/material';import {jsx}from'react/jsx-runtime';var p=styled(a$1)(({theme:t})=>({...t.typography.subtitle1,fontWeight:t.typography.fontWeightMedium,borderRadius:"4px",paddingInline:"8px",paddingBlock:"8.5px",minWidth:"auto"}));function a(t){return jsx(p,{...t,variant:"inActive"})}var i=memo(a);var y=i;export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1}from'./chunk-
|
|
1
|
+
import {b as b$1}from'./chunk-TI7MUBQQ.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 {pa,Vb,P}from'./chunk-
|
|
1
|
+
import {pa,Vb,P}from'./chunk-D25BO6UL.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function O(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function ce(){let[e,n]=useState(O());return useEffect(()=>{function t(){n(O());}return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t);}},[]),e}var le=()=>{let[e,n]=useState(false),[t,o]=useState(false);return {onMouseContentEnter:()=>{o(true);},onMouseContentLeave:()=>{o(false);},isHovered:e,isContentHovered:t,onMouseEnter:()=>{n(true);},onMouseLeave:()=>{n(false);}}};function pe({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let s;return e?o(e):s=setTimeout(()=>{o(e);},n),()=>{clearTimeout(s);}},[e]),t}var he=()=>{let[e,n]=useState(null),[t,o]=useState(void 0),[s,r]=useState(void 0),[i,c]=useState(false),[m,u]=useState(true);return {actionMenuAnchor:e,actionMenuOptions:t,selectedActionMenuId:s,isActionMenuCheckMarkHighlighted:i,setActionMenuAnchor:n,setActionMenuOptions:o,setSelectedActionMenuId:r,setIsActionMenuCheckMarkHighlighted:c,handleCloseActionMenu:l=>{if(l&&e?.getBoundingClientRect()){let{pageX:d,pageY:g}=l,f=e?.getBoundingClientRect(),{left:w,right:v,bottom:T,top:M}=f;if(d>w&&d<v&&g>M&&g<T){c(true),setTimeout(()=>{c(false);},2e3);return}}n(null),o(void 0),r(void 0);},hideDropdown:()=>{u(false),setTimeout(()=>{u(true);},100);},showActionsDropdown:m}};function Ee(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(r=>({...r,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(r=>r?t[r]:"",[t])}}var Ae=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{pa()||(window.location.href="/login");},[e]);};function Le(e){return {isParameterSelected:(o,s)=>s?.map(r=>Vb(e,o,r)),getColumnOrder:o=>{let s=e.findIndex(r=>r.name?.toLowerCase()===o?.toLowerCase());return s===-1?100:s}}}var De=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});e?.current&&o.observe(e.current);}),{showShadow:n}};var Be=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function Ke(){let[e,n]=useState(0),t=useRef(null),o=P(e),s=()=>{t.current&&(clearInterval(t.current),t.current=null);},r=()=>{s(),n(0);},i=c=>{c<=0||(t.current&&s(),n(c),t.current=setInterval(()=>{n(m=>{let u=m-1;return u<=0&&s(),u});},1e3));};return useEffect(()=>()=>{s();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:s,resetTimer:r}}var Ve=e=>{let n=useCallback(r=>e.find(i=>i.code.toLowerCase()===r.toLowerCase()),[e]),t=useCallback(({appCode:r,serviceCode:i})=>n(r)?.app_services.find(({code:c})=>c.toLowerCase()===i.toLowerCase()),[n]),o=useCallback(({appCode:r,serviceCode:i})=>t({appCode:r,serviceCode:i})?.functions??[],[t]),s=useCallback(({appCode:r,serviceCode:i,functionCode:c})=>o({appCode:r,serviceCode:i}).find(({code:m})=>m.toLowerCase()===c.toLowerCase()),[o]);return {getAppInfo:n,getServiceInfo:t,getServiceFunctions:o,getFunctionInfo:s}};function D(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Xe(e,n){useEffect(()=>{let t=o=>{n(...o.detail||[]);};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t);}},[e,n]);}var qe=(e,n)=>{let t=useMemo(()=>n?.entities.find(r=>r.id===e?.entityId),[n,e?.entityId]),o=useMemo(()=>t?.merchants?.find(r=>r.id===e?.merchantId),[t,e?.merchantId]),s=useMemo(()=>o?.display_name??o?.legacy_id??"Select",[o]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:s}};var te=()=>crypto.randomUUID();function tt(){let e=D("on-toast"),n=useCallback(t=>(o,s)=>{let r=s?.id??te();return e({action:"show",variant:t,message:o,options:{...s,id:r}}),r},[e]);return useMemo(()=>{let t=n("default");return t.success=n("success"),t.error=n("error"),t.loading=n("loading"),t.custom=n("custom"),t.dismiss=o=>{e({action:"dismiss",variant:"dismiss",toastId:o});},t.remove=o=>{e({action:"remove",variant:"remove",toastId:o});},t},[n,e])}var oe=10;function rt({threshold:e=oe,containerRef:n}={}){let[t,o]=useState(true),[s,r]=useState(false),[i,c]=useState(false),m=useCallback(a=>{let{scrollTop:p,scrollHeight:l,clientHeight:d}=a;c(l>d+e),o(p<=e),r(l-(p+d)<=e);},[e]),u=useCallback(a=>{if(a){if("currentTarget"in a){m(a.currentTarget);return}m(a);}},[m]);return useEffect(()=>{if(!n?.current)return;let a=n.current;u(a);let p=new ResizeObserver(()=>{u(a);});return p.observe(a),()=>{p.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:s,scrollable:i}}var ct=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:s=5e3}=e,r=typeof window<"u"&&typeof navigator<"u",[i,c]=useState(r?navigator.onLine:true),[m,u]=useState(false),[a,p]=useState(null),l=useRef(null),d=useRef(null),g=useCallback(f=>{l.current!==null&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{c(f),l.current=null;},o);},[o]);return useEffect(()=>{if(!r)return;let f=null,w=()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null);},v=async()=>{u(true),p(null),f?.abort(),f=new AbortController;try{let b=window.setTimeout(()=>{f?.abort();},s),A=await fetch(n,{method:"GET",cache:"no-store",signal:f.signal});window.clearTimeout(b);let I=A.ok;g(I),I?w():p(`Health check failed with status ${A.status}`);}catch{g(false),p("Unable to reach network");}finally{u(false);}},T=()=>{w(),g(true);},M=()=>{g(false),w(),v(),d.current=window.setInterval(v,t);};return window.addEventListener("online",T),window.addEventListener("offline",M),navigator.onLine||(v(),d.current=window.setInterval(v,t)),()=>{window.removeEventListener("online",T),window.removeEventListener("offline",M),l.current!==null&&window.clearTimeout(l.current),w(),f?.abort();}},[r,n,t,o,s,g]),r?{isOnline:i,isChecking:m,error:a}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};export{ce as a,le as b,pe as c,he as d,Ee as e,Ae as f,Le as g,De as h,Be as i,Ke as j,Ve as k,D as l,Xe as m,qe as n,tt as o,rt as p,ct as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-CNIYZZCP.js';import {_c,qh,rh,sh,th,uh}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CNIYZZCP.js';import {_c,qh,rh,sh,th,uh}from'./chunk-PPWY42W6.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",_c],["brand",qh],["entity",rh],["bank",sh],["individual",th],["password",uh]]);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 {Ua,Va}from'./chunk-
|
|
1
|
+
import {Ua,Va}from'./chunk-D25BO6UL.js';import {xb,Oc}from'./chunk-PPWY42W6.js';import so,{useState,useRef,useCallback,useEffect,useMemo}from'react';import B from'@mui/material/Box';import co from'@mui/material/ClickAwayListener';import eo from'@mui/material/Stack';import K from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import N from'@mui/material/Button';import ao from'@mui/material/TextField';import io from'@mui/material/MenuList';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {RgbColorPicker,RgbaColorPicker}from'react-colorful';import To from'@mui/material/Divider';import mo from'@mui/material/Popper';import Z from'@mui/material/MenuItem';import Q from'@mui/material/InputAdornment';import v from'color';import {Popper}from'@mui/material';var L=styled("button")({background:"transparent",border:"none",padding:0,margin:0,cursor:"pointer",width:10,height:10,display:"flex",justifyContent:"center",alignItems:"center","&:disabled, &.Mui-disabled":{opacity:.5,cursor:"not-allowed"}}),O=styled(B)(({theme:o})=>({boxShadow:"0px 8px 30px rgba(0, 0, 0, 0.16)",width:264,backgroundColor:"#ffffff",padding:"12px",borderRadius:o.spacing(1),"& .react-colorful":{width:"100%","&__saturation":{minHeight:152,borderRadius:"4px",marginBottom:o.spacing(2),border:0,"&-pointer":{width:13,height:13}},"&__hue":{borderRadius:"4px",height:"8px","&-pointer":{width:10,height:10}},"&__alpha":{marginTop:o.spacing(2),marginBottom:0,border:0,borderRadius:"4px",height:"8px","&-pointer":{width:10,height:10}}}})),G=styled(B)(()=>({display:"flex",gap:"8px",justifyContent:"flex-end"})),D=styled(o=>jsx(K,{...o,component:"button"}))(({theme:o})=>({fontWeight:500,fontSize:"9px",color:o.palette.info.dark,textDecoration:"underline",cursor:"pointer",background:"transparent",border:"none",padding:0,margin:0,"&:disabled, &.Mui-disabled":{color:alpha(o.palette.info.dark,.5),textDecoration:"none"},"&:hover":{textDecoration:"none"}})),V=styled(N)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.info.dark}`,backgroundColor:o.palette.info.dark,fontWeight:700,fontSize:"11px",color:o.palette.common.white,"&:hover":{backgroundColor:o.palette.info.dark}})),X=styled(N)(({theme:o})=>({textTransform:"capitalize",minWidth:"auto",width:74,borderRadius:"4px",border:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.common.white,fontWeight:500,fontSize:"11px",color:o.palette.text.primary,"&:hover":{background:"transparent"}})),$=styled(B,{shouldForwardProp:o=>o!=="active"})(({theme:o,active:p})=>({display:"flex",justifyContent:"space-between",alignItems:"center",color:o.palette.text.primary,border:"1px solid #F2F2F2",fontSize:12,fontWeight:500,backgroundColor:"transparent",padding:"4px 8px",borderRadius:"4px",minWidth:70,cursor:"pointer",...p&&{border:"1px solid #1F88D0",boxShadow:"0px 0px 4px 0px #1F88D080"}})),U=styled(io)({backgroundColor:"#ffffff",borderRadius:"4px",boxShadow:"0px 8px 30px 0px #00000029",minWidth:70,"& .MuiMenuItem-root":{fontSize:12,fontWeight:500,padding:"4px 8px"}}),x=styled(ao)(({theme:o})=>({"& .MuiOutlinedInput-root":{fontSize:"12px",fontWeight:500,borderRadius:"4px","& input":{padding:"4px","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.divider,borderWidth:"1px"},"&:hover, &.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.divider,borderWidth:"1px"}}}}));var fo=({scheme:o,setScheme:p})=>{let[n,r]=so.useState(null),m=!!n,a=useCallback(c=>{r(n?null:c.currentTarget);},[n]),i=useCallback(()=>{r(null);},[]),s=useCallback(c=>{i(),p(c);},[i,p]);return jsxs(Fragment,{children:[jsxs($,{component:"button",active:m,onClick:a,children:[o,jsx(B,{component:"img",sx:{transform:m?"rotateZ(180deg)":"rotateZ(0)",transition:"200ms transform ease-out"},src:Oc})]}),jsx(mo,{anchorEl:n,open:!!n,placement:"bottom",disablePortal:true,keepMounted:true,modifiers:[{name:"offset",options:{offset:[0,4]}}],children:jsx(co,{onClickAway:c=>{n?.contains(c.target)||i();},children:jsxs(U,{children:[jsx(Z,{onClick:()=>s("RGB"),children:"RGB"}),jsx(Z,{onClick:()=>s("HEX"),children:"HEX"})]})})})]})},q=fo;var ko=({value:o,onChange:p,disableAlpha:n=false})=>{let[r,m]=useState(o),{r:a,g:i,b:s,a:c}=r;useEffect(()=>{m(o);},[o]);let f=useCallback((l,u)=>(isNaN(l)&&(l=0),l<0&&(l=0),l>u&&(l=u),console.log("num",l),l),[]),t=useCallback((l,u)=>k=>{m({...r,[l]:f(+k.target.value,u)});},[r,f]),e=useCallback((l,u)=>{p({...r,[l]:f(r[l],u)});},[p,r,f]);return jsxs(eo,{direction:"row",spacing:1,...n&&{flex:1},children:[jsx(x,{type:"number",value:a,onBlur:()=>e("r",255),onChange:t("r",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),jsx(x,{type:"number",value:i,onBlur:()=>e("g",255),onChange:t("g",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),jsx(x,{type:"number",value:s,onBlur:()=>e("b",255),onChange:t("b",255),inputProps:{min:0,max:255,style:{textAlign:"center"}},variant:"outlined",size:"small",...n&&{sx:{flex:1}}}),!n&&jsx(x,{type:"number",value:c,onBlur:()=>e("a",100),onChange:t("a",100),inputProps:{min:0,max:100,style:{textAlign:"center"}},variant:"outlined",sx:{"& .MuiOutlinedInput-root":{pr:1}},InputProps:{endAdornment:jsx(Q,{position:"end",sx:{m:0},children:jsx(K,{component:"span",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})},size:"small"})]})},J=ko;var Ao=({value:o,onChange:p,disableAlpha:n=false})=>{let r=useMemo(()=>v.rgb(o.r,o.g,o.b,o.a).hex().replace("#",""),[o]),[m,a]=useState(r),i=Math.round(o.a*100);return useEffect(()=>{let t=v.rgb(o.r,o.g,o.b).hex().replace("#","");a(t);},[o.r,o.g,o.b]),jsxs(eo,{direction:"row",spacing:1,alignItems:"flex-start",children:[jsx(x,{value:m,onChange:t=>{let e=t.target.value.replace(/[^0-9a-fA-F]/g,"").toUpperCase();e.length>6&&(e=e.slice(0,6)),a(e);},onBlur:()=>{let t=m;if(t.length===3&&(t=t.split("").map(e=>e+e).join(""),a(t)),t.length===6)try{let e=v(`#${t}`).alpha(o.a);p({r:e.red(),g:e.green(),b:e.blue(),a:e.alpha()});}catch{a(r);}else a(r);},placeholder:"FFFFFF",sx:{flex:1.4,"& .MuiOutlinedInput-root":{pl:1}},InputProps:{startAdornment:jsx(Q,{position:"start",sx:{m:0},children:jsx(K,{component:"span",color:t=>alpha(t.palette.text.primary,.5),display:"inline-block",fontSize:12,fontWeight:500,children:"#"})})}}),!n&&jsx(x,{type:"number",value:i,onChange:t=>{let e=parseInt(t.target.value,10);isNaN(e)&&(e=0),e<0&&(e=0),e>100&&(e=100),p({...o,a:e/100});},inputProps:{min:0,max:100},sx:{flex:.8,"& .MuiOutlinedInput-root":{pr:1}},InputProps:{endAdornment:jsx(Q,{position:"end",sx:{m:0},children:jsx(K,{component:"span",color:"text.primary",display:"inline-block",fontSize:12,fontWeight:500,children:"%"})})}})]})},Y=Ao;var Ho=({initialValue:o="#ffffff",onCancel:p,onConfirm:n,disableAlpha:r=false})=>{let[m,a]=useState("RGB"),[i,s]=useState(()=>{let{alpha:d,...S}=Ua(o).value;return {...S,a:d}}),{t:c}=useTranslation(),f=useCallback(()=>{let{alpha:d,...S}=Ua(o).value;s({...S,a:d}),p();},[o,p]),t=useCallback(()=>{let{a:d,...S}=i;n(Va({...S,alpha:r?1:d}));},[i,n,r]),e=useCallback(d=>{s(r?{...d,a:1}:d);},[r]),l=useCallback(d=>{s({...d,a:d.a/100});},[]),u=useCallback(d=>{s({...d,a:d.a});},[]);return jsxs(O,{className:"color-picker__widget",children:[jsx(r?RgbColorPicker:RgbaColorPicker,{color:i,onChange:e}),jsxs(eo,{mt:2,spacing:1,direction:"row",children:[jsx(q,{scheme:m,setScheme:a}),m==="RGB"?jsx(J,{value:{...i,a:Math.round(i.a*100)},onChange:l,disableAlpha:r}):jsx(Y,{value:{...i,a:i.a},onChange:u,disableAlpha:r})]}),jsx(To,{sx:{my:"12px"}}),jsxs(G,{className:"color-picker__widget-actions",children:[jsx(X,{className:"color-picker__widget-actions__cancel",onClick:f,children:c("cancel")}),jsx(V,{className:"color-picker__widget-actions__confirm",onClick:t,children:c("okay")})]})]})},oo=Ho;var to={hideReset:false,disableAlpha:false},Go=({value:o="#ffffff",onChange:p,onReset:n,sx:r,options:m=to,disabled:a=false})=>{let[i,s]=useState(null),{disableAlpha:c=false,hideReset:f=false}={...to,...m},t=useRef(null),e=useCallback(()=>{a||s(t.current);},[a]),l=useCallback(()=>{a||s(null);},[a]),u=useCallback(k=>{p(c?k.substring(0,7):k),s(null);},[p,c]);return jsx(co,{onClickAway:()=>s(null),children:jsxs(eo,{ref:t,bgcolor:"grey.400",borderRadius:"4px",p:"4px",pr:"12px",direction:"row",justifyContent:"space-between",spacing:1,alignItems:"center",className:"color-picker",sx:r,children:[jsxs(eo,{direction:"row",spacing:1,alignItems:"center",className:"color-picker__controls-wrapper",children:[jsx(B,{borderRadius:"5px",width:32,height:32,sx:{backgroundColor:o},className:"color-picker__viewer"}),jsxs(B,{className:"color-picker__actions-wrapper",children:[jsx(K,{className:"color-picker__label",fontWeight:500,fontSize:9,color:"text.primary",textTransform:"uppercase",children:o}),jsx(D,{className:"color-picker__edit-btn",type:"button",onClick:e,disabled:a,children:"Edit"})]})]}),f?jsx("div",{}):jsx(L,{className:"color-picker__close-btn",type:"button",disabled:a,onClick:n,children:jsx(B,{component:"img",src:xb,width:10,height:10})}),jsx(Popper,{anchorEl:i,open:!!i,placement:"top",children:jsx(oo,{initialValue:o,onCancel:l,onConfirm:u,disableAlpha:c})})]})})},ro=Go;var Qe=ro;export{Qe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {tg}from'./chunk-
|
|
1
|
+
import {tg}from'./chunk-PPWY42W6.js';import {useTranslation}from'react-i18next';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F6F8FACC",gap:"0.5rem",height:"100%"})),m=styled("img")(()=>({width:"2rem",height:"2rem"})),n=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 o({heading:t,message:y,...d}){let{t:p}=useTranslation();return jsxs(a,{...d,children:[jsx(m,{src:tg,alt:"empty container"}),jsx(n,{children:p(t)}),jsx(s,{children:p(y)})]})}var I=o;export{I as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-LXVY6Z2V.js';import {Dc,J,cb}from'./chunk-D25BO6UL.js';import {Pl}from'./chunk-PPWY42W6.js';import {useState,useMemo}from'react';import {ResponsiveContainer,AreaChart,Area,Tooltip}from'recharts';import {useTheme}from'@mui/material/styles';import {useTranslation}from'react-i18next';import S from'dayjs';import U from'@mui/material/Box';import {styled,Box,Typography}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var M=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"})),b=styled(Typography)({width:"auto",marginBottom:"4px",fontWeight:500,color:"#4B4847ED",fontSize:"9px",whiteSpace:"nowrap",overflow:"visible"}),w=styled(Typography)({display:"flex",alignItems:"center",gap:"5px",fontWeight:600,color:"#4B4847",fontSize:11,whiteSpace:"nowrap",overflow:"visible",width:"auto"}),K=styled(Box)({display:"flex",alignItems:"center",height:"100%",gap:"2.6px",maxHeight:"19px"}),B=styled(Typography)({fontWeight:500,fontSize:11,lineHeight:"130%",color:"#4B4847",letterSpacing:"-0.14px"});var L=(t,i,r)=>t?.value===void 0||t?.value===null?"":t?.dataKey===Pl.AMOUNT?`${cb(t.value,r).fullAmount}`.trim():`${t.value.toLocaleString()} ${i}`.trim(),W=(t,i,r=0)=>{let a=S(t).add(r,"hour").format(),n=new Date,o=S(a).isSame(n,"year");return J(a,i?void 0:{sameDay:`[Today] ${o?"":"YYYY"}`,nextDay:`[Tomorrow] ${o?"":"YYYY"}`,lastDay:`[Yesterday] ${o?"":"YYYY"}`,sameElse:`MMM DD ${o?"":", YYYY"}`,lastWeek:`MMM DD ${o?"":", YYYY"}`,nextWeek:`MMM DD ${o?"":", YYYY"}`},void 0,void 0,r!==void 0)};var V=({active:t,payload:i,dateRange:r,selectedCurrency:a$1})=>{let{t:n}=useTranslation(),o=S(r?.[0]),u=S(r?.[1]),d=o?.isSame(u,"day");if(t&&i?.length){let e=i[0],f=Dc(e?.dataKey,e?.value),y=e?.payload?.date&&W(e?.payload?.date,d,e?.payload?.hour);return jsxs(M,{className:"chart-tooltip",children:[jsx(b,{children:y??e?.payload?.date}),jsxs(w,{children:[e?.dataKey===Pl.AMOUNT&&jsxs(K,{children:[jsx(a,{currencyCode:a$1,width:12}),jsx(B,{children:a$1})]}),jsx(U,{children:`${L(e,n(f),a$1)}`})]})]})}return null},x=V;var N=[{dataKey:30},{dataKey:32.9941},{dataKey:39.0471},{dataKey:56.3412},{dataKey:69.3118},{dataKey:87.4706},{dataKey:94.3882},{dataKey:110.406}],j=()=>jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:40},data:N,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=j;var tt=({data:t,dataKey:i,isLoading:r,dateRange:a,selectedCurrency:n})=>{let o=useTheme(),[u,d]=useState(false),[e,f]=useState({x:0,y:0}),y=t?.length===0,P=h=>{h.activeCoordinate&&h.isTooltipActive&&f(h.activeCoordinate);},O=useMemo(()=>jsx(x,{position:e,dateRange:a,selectedCurrency:n}),[e,a,n]);return r||y?jsx(T,{}):jsx(ResponsiveContainer,{children:jsxs(AreaChart,{margin:{top:20},data:t,onMouseMove:P,children:[t.length>0&&jsx(Tooltip,{content:O,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:o.palette.success.dark,activeDot:{r:5,fill:o.palette.success.dark,strokeWidth:2,stroke:"white",cursor:u?"pointer":"default",onMouseOver:()=>d(true),onMouseLeave:()=>d(false)}})]})})},E=tt;var St=E;export{x as a,T as b,St as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2C3FYCJZ.js';import {e}from'./chunk-DTJGVP2A.js';import {sg}from'./chunk-PPWY42W6.js';import {memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a=styled(Box,{shouldForwardProp:t=>t!=="isLongerString"})(({theme:t,isLongerString:r})=>({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:r?"12rem":"8.4rem",marginRight:"auto",position:"relative"}));styled("div")(()=>({padding:"3.5px",background:"rgba(32, 35, 43, 0.10);",display:"flex",borderRadius:"50px"}));styled("button")(()=>({padding:0,cursor:"pointer",width:"auto",marginLeft:"auto",paddingRight:0,background:"none",border:"none"}));function u({Ids:t,onCancelClick:r,isShown:l,cardNumber:o}){return l?jsxs(a,{isLongerString:(o?.length??0)>11,children:[o?jsx(b,{children:o}):jsx("span",{children:t?.join(",")}),jsx(e,{pointer:true,round:true,onClick:r,variant:"active",sx:{position:"absolute",right:"8px"},children:jsx("img",{src:sg,alt:"close",style:{width:"8px",height:"7px"}})})]}):null}var s=memo(u);var L=s;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Fc}from'./chunk-
|
|
1
|
+
import {Fc}from'./chunk-PPWY42W6.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:Fc,alt:"w"}),r]})}var e=memo(d);var S=e;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-DAA2SX67.js';import {a}from'./chunk-PZI7KDU4.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 {Bb,lc}from'./chunk-
|
|
1
|
+
import {Bb,lc}from'./chunk-D25BO6UL.js';import {na,la,bm}from'./chunk-PPWY42W6.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),Bb(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?na:la,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"&&lc(o),children:o}),jsx(AnimatePresence,{children:b&&S})]})})})]}):jsx(m,{...bm,...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 {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-GOCLIEY4.js';import {a,c,e,f,b}from'./chunk-RDOVQS4F.js';import {a as a$3}from'./chunk-237EA4BW.js';import {a as a$2}from'./chunk-SD7NTSGT.js';import {a as a$5}from'./chunk-PZI7KDU4.js';import {a as a$6}from'./chunk-NKNRVF6Q.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {Ic,w as w$1}from'./chunk-PPWY42W6.js';import*as w from'react';import w__default,{useState,useMemo}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';import P from'@mui/material/Box';import Le from'@mui/material/Input';import {styled}from'@mui/material/styles';import {ListSubheader,Box,MenuItem}from'@mui/material';import Ke from'@mui/material/MenuItem';function Pe({onSubmit:e,methods:n,children:o}){return jsx(FormProvider,{...n,children:jsx("form",{onSubmit:e,noValidate:true,children:o})})}var Fe=w__default.memo(Pe);var J=w.forwardRef(({name:e,helperText:n,hideArrows:o,...t},l)=>{let{control:i}=useFormContext();return jsx(Controller,{name:e,control:i,defaultValue:t.defaultValue,render:({field:c,fieldState:a$1})=>jsx(a,{...t,...c,ref:l,hasError:!!a$1.error,helperText:n??a$1.error?.message,hideArrows:o,onChange:p=>{c.onChange(p),t.onChange?.(p);},onWheel:p=>{p.target instanceof HTMLElement&&p.target.blur();}})})});J.displayName="RFHFormInput";var Q=w.memo(J);var Ae=Q;function Y({phoneName:e$1,countries:n,countryName:o,helperText:t,isCountriesLoading:l,disabled:i,...c}){let{control:a,watch:p,setValue:x}=useFormContext(),h=p(o),b=u=>{x(o,u);};return jsx(Controller,{name:e$1,control:a,render:({field:{onChange:u,value:s},fieldState:f})=>jsx(e,{...c,phoneValue:s,countries:n,hasError:!!f.error,helperText:t??f.error?.message,onPhoneChange:d=>{u(d);},disabled:i,countryValue:h,onCountryChange:b,isCountriesLoading:l})})}Y.displayName="RFHPhoneInput";var Z=Y;var Ee=Z;var B=(e,n)=>e.toFixed(n);function j({amountName:e,currencies:n,currencyName:o,helperText:t,isCurrenciesLoading:l,...i}){let{control:c,watch:a,setValue:p}=useFormContext(),x=a(o),h=a(e),b=u=>{p(o,u),p(e,B(Number(h),u?.decimals||2));};return jsx(Controller,{name:e,control:c,render:({field:{onChange:u,value:s},fieldState:f$1})=>jsx(f,{...i,amountValue:s??"",currencies:n,hasError:!!f$1.error,helperText:t??f$1.error?.message,onAmountChange:d=>{u(d);},onAmountBlur:d=>{u(B(Number(d),x?.decimals||2));},currencyValue:x,onCurrencyChange:b,isCurrenciesLoading:l})})}j.displayName="RFHAmountInput";var ee=j;var We=ee;function te({name:e,helperText:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:l,fieldState:i})=>jsx(c,{...o,...l,hasError:!!i.error,helperText:n??i.error?.message})})}te.displayName="RFHSelect";var ne=w.memo(te);var k=ne;function le({name:e,disabled:n,...o}){let{control:t}=useFormContext();return jsx(Controller,{name:e,control:t,render:({field:{name:l,onBlur:i,onChange:c,value:a,disabled:p}})=>jsx(a$3,{...o,onChange:c,onBlur:i,name:l,disabled:p||n,checked:a??false})})}le.displayName="RFHSWitch";var ie=w.memo(le);var Te=ie;var me=styled(a$1)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$1)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var se=styled(P)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(Le)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));var ce=styled(P)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(P)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(P)(({theme:e,maxWidth:n})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...n&&{maxWidth:`${n}%`}}));var ue=styled(a$1)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(P)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function $e({name:e,options:n,...o}){let[t,l]=useState(null),[i,c]=useState(0),a=!!t,p=s=>{l(a?null:s.currentTarget);},x=()=>{l(null);},{watch:h,setValue:b}=useFormContext(),u=h(e);return jsx(a$4,{open:a,anchorEl:t,onOpen:p,onClose:x,trigger:jsx(k,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(ce,{children:jsx(se,{"data-testid":"AccordionWrapper",children:n.map?.((s,f)=>{let d=i===f;return jsx(a$5,{Header:jsx(me,{variant:"caption",children:s.group}),defaultExpanded:true,sx:{flexShrink:0,border:0,...d&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}},summarySx:{backgroundColor:d?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28},expanded:d,onChange:(m,g)=>{m.stopPropagation(),m.preventDefault(),c(g?f:null);},children:(s?.options||[]).map((m,g)=>{let r=o?.isOptionEqualToValue?.(m,u);return jsxs(ue,{onClick:()=>{b(e,m,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),x();},children:[o.renderOption?.(m)||m.label,r&&jsx(a$6,{src:Ic,alt:"blue-check",sx:{width:14,height:10}})]},`${m.value}-${m.label}-${g}`)})},`${s.group}-group-${f}`)})})})})}var fe=$e;var Ue=fe;var xe=styled(a$2)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),he=styled(Le)(({theme:e})=>({width:"100%",height:36,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:"1px solid #F2F2F2",boxSizing:"border-box","&:hover":{borderColor:"#F2F2F2"},"&.Mui-focused":{borderColor:"#F2F2F2",backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}}));styled(Ke)(({theme:e})=>({opacity:1,paddingTop:0,paddingBottom:0,marginBottom:8,minHeight:"auto",pointerEvents:"none",backgroundColor:e.palette.common.white,"&:hover":{backgroundColor:e.palette.common.white},"&.Mui-focusVisible":{backgroundColor:e.palette.common.white},"&.Mui-disabled":{backgroundColor:e.palette.common.white,opacity:1}}));function M({name:e,helperText:n,getOptionValue:o,getOptionLabel:t,renderOption:l,isOptionEqualToValue:i,getOptionDisabled:c,showSearchInput:a=false,searchPlaceholder:p="Search",showCheckbox:x=true,options:h,...b$1}){let{control:u}=useFormContext(),[s,f]=useState(""),d=useMemo(()=>{if(!a||!s.trim())return h??[];let m=s.toLowerCase().trim();return (h??[]).filter(g=>{let r=(t?t(g):g?.label)??"";return String(r).toLowerCase().includes(m)})},[h,a,s,t]);return jsx(Controller,{name:e,control:u,defaultValue:[],render:({field:m,fieldState:g})=>jsxs(b,{...b$1,...m,options:d,getOptionLabel:t,hasError:!!g.error,helperText:n??g.error?.message,onChange:r=>m.onChange(r),MenuProps:{...b$1.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[a&&jsx(ListSubheader,{disableSticky:true,sx:{backgroundColor:"#fff",pt:1,pb:1},children:jsx(he,{placeholder:p,value:s,onChange:r=>f(r.target.value),onKeyDown:r=>r.stopPropagation(),onKeyUp:r=>r.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":p},endAdornment:jsx(Box,{component:"img",src:w$1,alt:"search",sx:{width:14,height:14,flexShrink:0}})})}),d?.map(r=>{let A=m.value?.some(F=>i?i(F,r):F?.id===r?.id),R=c?c(r):false,be=t?t(r):r.label,W=l?l(r):be;return jsx(MenuItem,{value:(o?o(r):r?.id)??"",disabled:R,sx:{fontSize:"12px",backgroundColor:F=>A?"#F8F8F8 !important":F.palette.common.white,"&.Mui-disabled":{opacity:1}},children:x?jsxs(Box,{sx:{display:"flex",alignItems:"center",width:"100%",gap:"8px"},children:[jsx(xe,{checked:A,sx:{...A&&R&&{"& svg rect":{fill:"#BDC1CC"}}}}),W]}):W},(o?o(r):r?.id)??"")})]})})}var Ze=M;var je=useForm;export{Fe as a,Ae as b,Ee as c,We as d,k as e,Te as f,Ue as g,Ze as h,je as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-USKRKN56.js';import {Xg,hj}from'./chunk-PPWY42W6.js';import {memo,useState}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import P from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var x=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:"80px",flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),r=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),h=styled(a)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),f=styled(P)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:11,height:32,gap:8}));function K({onSearchChange:t,placeholder:I,...v}){let[a,p]=useState(false),[n,s]=useState(""),{t:b}=useTranslation(),w=useTheme(),B=()=>{p(false),t?.(""),s("");},C=()=>{p(true),l();},l=()=>{n&&t?.(n);},k=i=>{i.key==="Enter"&&t?.(n);},E=i=>{s(i.currentTarget.value);};return jsxs(f,{children:[jsx(AnimatePresence,{children:a&&jsxs(Fragment,{children:[jsx(x,{initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${w.palette.divider}`,boxShadow:"none"},placeholder:I??(b("search")||""),onKeyDown:k,onChange:E}),jsx(r,{style:{right:48},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},src:Xg,alt:"close",onClick:B}),jsx(r,{style:{right:9},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},src:hj,alt:"search",onClick:l})]})}),jsx(h,{...v,variant:a?"active":"inActive",icon:"search",onClick:C})]})}var g=memo(K);var Y=g;export{Y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-HVX3VNNF.js';import {a,f,e as e$1}from'./chunk-2C3FYCJZ.js';import {e}from'./chunk-DTJGVP2A.js';import {a as a$1}from'./chunk-S7OMWEM6.js';import {fb,p}from'./chunk-D25BO6UL.js';import {vb}from'./chunk-PPWY42W6.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(fb(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:vb,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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-YCQF5BBA.js';import {a as a$3}from'./chunk-4W6J54AY.js';import {a as a$1}from'./chunk-SD7NTSGT.js';import {a as a$4}from'./chunk-NKNRVF6Q.js';import {a}from'./chunk-CNIYZZCP.js';import {ob,xb,w,vb,Ic}from'./chunk-PPWY42W6.js';import re,{useState,useRef,useMemo}from'react';import {Box,CircularProgress,Typography}from'@mui/material';import le from'@mui/material/ClickAwayListener';import f from'@mui/material/Box';import j from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';styled(a)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));styled(f)(()=>({display:"flex",flexDirection:"column",maxHeight:400,overflow:"auto",gap:"8px"}));var A=styled(j)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));styled(a$1)(()=>({padding:0,width:12,height:12,".MuiSvgIcon-root, img":{width:12,height:12}}));var L=styled(f)(()=>({display:"flex",flexDirection:"column",gap:"8px",padding:"4px"})),B=styled(f)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"})),M=styled(f)(({theme:e,maxWidth:p})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...p&&{maxWidth:`${p}%`}}));styled(a)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:8}));var H=styled(f)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400],minWidth:"89px",position:"relative"})),z=styled(f)(()=>({position:"absolute",right:8,bottom:13.5,width:15,height:15}));var D=(e,p,l)=>e.map(n=>{let c=n?.options.map(i=>{let S=i?.options?.filter(r=>l.some(m=>r?.[m]?.toLowerCase().includes(p.toLowerCase())));return {...i,options:S}}).filter(i=>i?.options?.length>0);return {...n,options:c}}).filter(n=>n?.options?.length>0);function N({childOption:e,selectedOptions:p,onChangeOptions:l}){let[n,c]=useState(null),i=r=>{l([...p||[],r]);},S=r=>{l(p?.filter(m=>m.value!==r.value)||[]);};return jsxs(a$2,{onMouseEnter:r=>{e.options?.length>0&&c(r.currentTarget);},onMouseLeave:()=>{n&&c(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"220px",minWidth:"89px"},children:[e.label,jsx("img",{src:ob,className:"arrow-icon",alt:"arrow"})]}),jsx(a$3,{sx:{maxHeight:"450px",overflow:"auto"},open:!!n,anchorEl:n,placement:"right-start",children:e.options?.map(r=>{let a=!!p?.find(d=>d.value===r.value);return jsx(a$2,{isSelected:a,onClick:d=>{d.stopPropagation(),d.preventDefault(),a?S(r):i(r);},children:jsx(Box,{sx:{flex:1,maxWidth:"220px",minWidth:"89px"},children:r.label})},r.value)})})]})}function G({parentOption:e,selectedOptions:p,onChangeOptions:l}){let[n,c]=useState(null);return jsxs(a$2,{onMouseEnter:i=>{e.options?.length>0&&c(i.currentTarget);},onMouseLeave:()=>{n&&c(null);},children:[jsxs(Box,{sx:{display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"340px",minWidth:"89px"},children:[e.label,jsx("img",{src:ob,className:"arrow-icon",alt:"arrow"})]}),jsx(a$3,{sx:{maxHeight:"450px",overflow:"auto"},open:!!n,anchorEl:n,placement:"right-start",children:e.options?.map(i=>jsx(N,{childOption:i,selectedOptions:p,onChangeOptions:l},i.label))})]})}function ae({nestedOptions:e,onChangeOptions:p,selectedOptions:l,placeholder:n,isLoading:c,searchBy:i=["label"],disabled:S}){let[r,m]=useState(null),[a,d]=useState(""),q=useRef(null),y=!!r,J=t=>{m(y?null:t.currentTarget);},K=()=>{m(null);},Q=()=>{a&&d("");},Y=useMemo(()=>a?D(e,a,i):e,[e,a,i]),Z=c?jsx(CircularProgress,{size:16}):jsx(a$4,{src:a?xb:w,alt:a?"close":"search",onClick:Q,sx:{width:12,height:12}}),x=Number(l?.length??0);return jsx(le,{onClickAway:()=>{y&&K();},children:jsxs(H,{id:"TriggerWrapper",onClick:t=>!S&&J(t),ref:q,children:[jsx(Typography,{color:"grey",sx:{cursor:"pointer",fontSize:"10px",padding:"4px"},component:"label",children:n}),x===0&&jsx(Typography,{sx:{fontWeight:500,fontSize:"11px",padding:"0px 4px 4px"},component:"p",children:"Please Select"}),jsx(z,{component:"img",src:vb,alt:"down arrow",sx:{...y&&{transform:"rotate(180deg)"}}}),!!x&&jsx(B,{id:"SelectedBadgesWrapper",children:x>0&&x<=2?l?.map(t=>jsxs(M,{maxWidth:90,children:[jsx(a$4,{src:Ic,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]},t.value)):x>2&&l?.slice(0,2)?.map((t,b)=>jsxs(re.Fragment,{children:[jsxs(M,{maxWidth:90,children:[jsx(a$4,{src:Ic,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{children:t.label})]}),b===1&&jsx(M,{maxWidth:90,children:jsxs("span",{children:["+",x-2]})})]},t.value))}),jsx(a$3,{open:y,anchorEl:r,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",maxWidth:"340px"},children:jsxs(L,{children:[jsx(A,{placeholder:n||"Select",endAdornment:Z,onClick:t=>{t.stopPropagation();},value:a,onChange:t=>{d(t.target.value);},disableUnderline:true,sx:{cursor:"default",width:"100%",backgroundColor:"white",border:"1px solid #F2F2F2",...e.length&&{marginBottom:"4px"},...a&&{cursor:"pointer"}}}),jsx(B,{children:l?.map(t=>jsxs(M,{sx:{maxWidth:"150px"},onClick:b=>{b.stopPropagation(),b.preventDefault(),p(l?.filter(_=>_.value!==t.value)||[]);},children:[jsx(a$4,{src:Ic,alt:"blue-check",sx:{width:10,height:7.5}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label}),jsx(a$4,{src:xb,alt:"close",sx:{width:9,height:9}})]},t.value))}),Y?.map(t=>jsx(G,{parentOption:t,selectedOptions:l,onChangeOptions:p},t.label))]})})]})})}var X=ae;var Qe=X;export{N as a,G as b,Qe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-S7OMWEM6.js';import {ob,$c}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-S7OMWEM6.js';import {ob,$c}from'./chunk-PPWY42W6.js';import {useState,useCallback}from'react';import r from'@mui/material/Box';import O from'@mui/material/Popper';import {Box,ClickAwayListener}from'@mui/material';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var c=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),A=styled(r)(({theme:e})=>({fontSize:"11px",fontWeight:500,color:e.palette.text.primary})),b=styled(r)(()=>({width:16,height:16})),P=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",borderTopRightRadius:0,filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"max-content",minWidth:150})),D=styled(r)(({theme:e})=>({background:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",minWidth:130,width:"max-content",marginTop:"8px"})),v=styled(r,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"8px 8px 8px 12px",cursor:"pointer",...i&&{boxShadow:e.shadows[3]}})),N=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",height:32,padding:"8px 12px",cursor:"pointer",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:hover":{boxShadow:e.shadows[3]}}));function g({item:e,anchorEl:i,onMouseLeave:u,onSelectService:a}){return e?jsx(O,{open:true,anchorEl:i,placement:"left-start",onMouseLeave:u,sx:{zIndex:2e3},children:jsx(P,{children:e.services.map(t=>jsx(N,{onClick:x=>{x.stopPropagation(),a(e.appCode,t.serviceCode);},children:jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.iconUrl&&jsx("img",{src:t.iconUrl,alt:"service",width:16,height:16}),jsxs("span",{children:["View ",t.label]})]})},t.serviceCode))})}):null}function q({anchorEl:e,open:i,onClose:u,items:a$1,onSelectService:t,showViewApi:x=false,onViewApiClick:S}){let[B,y]=useState(null),[C,M]=useState(null),[H,h]=useState(false),z=useCallback((p,l)=>{y(p.currentTarget),M(l),h(false);},[]),w=useCallback(()=>{y(null),M(null),h(false);},[]),s=useCallback(()=>{u(),w();},[u,w]),R=useCallback((p,l)=>{t(p,l),s();},[t,s]),W=useCallback(p=>{p.stopPropagation(),S?.(),s();},[S,s]);return i?jsx(ClickAwayListener,{onClickAway:s,children:jsxs(r,{children:[jsx(a,{onClick:s}),jsx(O,{open:i,anchorEl:e,placement:"bottom-end",sx:{zIndex:2e3},children:jsx(D,{children:a$1.length===0&&!x?jsx(v,{sx:{cursor:"default","&:hover":{boxShadow:"none"}},children:jsx(c,{children:jsx(A,{sx:{fontSize:11,color:"text.secondary"},children:"No actions available"})})}):jsxs(Fragment,{children:[a$1.map(p=>jsxs(v,{onMouseOver:l=>z(l,p),open:C?.appCode===p.appCode,children:[jsxs(c,{children:[jsx(b,{children:jsx("img",{src:p.appIconUrl,alt:"app",width:16,height:16})}),jsx(A,{children:p.appName})]}),jsx(c,{children:jsx("img",{src:ob,alt:"icon",className:"arrow-icon"})})]},p.appCode)),x&&S&&jsx(v,{onClick:W,open:H,onMouseOver:()=>{M(null),h(true);},onMouseLeave:()=>h(false),children:jsxs(c,{children:[jsx(b,{children:jsx("img",{src:$c,alt:"app",width:16,height:16})}),jsx(A,{children:"View API"})]})})]})})}),a$1.length>0&&jsx(g,{item:C,anchorEl:B,onMouseLeave:w,onSelectService:R})]})}):null}var G=q;export{g as a,G as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {mi}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-A5FGRP2T.js';import {a as a$1}from'./chunk-CNIYZZCP.js';import {mi}from'./chunk-PPWY42W6.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:mi,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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Fc,bc}from'./chunk-
|
|
1
|
+
import {Fc,bc}from'./chunk-PPWY42W6.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:bc,error:Fc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
|