@tap-payments/os-micro-frontend-shared 0.3.33 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-LI36HMPN.js → chunk-2BIUUEZV.js} +1 -1
- package/build/_chunks/{chunk-CHNDTZFE.js → chunk-3W5UI4JD.js} +1 -1
- package/build/_chunks/{chunk-Z7ZZN6BM.js → chunk-4POYAYNS.js} +1 -1
- package/build/_chunks/{chunk-FA3LRBSM.js → chunk-4QZPVL4K.js} +1 -1
- package/build/_chunks/{chunk-GY37OJXL.js → chunk-5FOMHO42.js} +1 -1
- package/build/_chunks/{chunk-EBXZYMSR.js → chunk-5HAX5SU5.js} +1 -1
- package/build/_chunks/{chunk-2ITQR6AV.js → chunk-5JAZYSMT.js} +1 -1
- package/build/_chunks/{chunk-XODILRBP.js → chunk-6CAZQIGP.js} +1 -1
- package/build/_chunks/{chunk-XFXM4LRU.js → chunk-6Y7K2DR3.js} +1 -1
- package/build/_chunks/{chunk-6RUN2A52.js → chunk-7FX6EOCN.js} +1 -1
- package/build/_chunks/{chunk-3FWBPCYF.js → chunk-7JNTEKM5.js} +1 -1
- package/build/_chunks/{chunk-X7RH7OAH.js → chunk-7JSR2MUI.js} +1 -1
- package/build/_chunks/{chunk-4RAIPDCL.js → chunk-A7V4BHUO.js} +1 -1
- package/build/_chunks/{chunk-UUO3QCDI.js → chunk-ARSNKO3J.js} +1 -1
- package/build/_chunks/{chunk-NUCD26IC.js → chunk-BBMD5G27.js} +1 -1
- package/build/_chunks/{chunk-OUUPKKXY.js → chunk-BKR25BNE.js} +1 -1
- package/build/_chunks/{chunk-JPNEQBKC.js → chunk-BP77XKPE.js} +1 -1
- package/build/_chunks/{chunk-25P32HJ3.js → chunk-C4XKK3VK.js} +1 -1
- package/build/_chunks/{chunk-ZZUHBUBW.js → chunk-CJJAJZMU.js} +1 -1
- package/build/_chunks/{chunk-Z42POOES.js → chunk-CLPSACHN.js} +1 -1
- package/build/_chunks/{chunk-N7RC2LPM.js → chunk-CVNV75LZ.js} +1 -1
- package/build/_chunks/{chunk-CVYHM5O4.js → chunk-CX2CMG37.js} +1 -1
- package/build/_chunks/{chunk-EE263HCZ.js → chunk-E352DQMZ.js} +1 -1
- package/build/_chunks/{chunk-GIKP4LIN.js → chunk-ECHTWP4G.js} +1 -1
- package/build/_chunks/{chunk-HDMYS6QD.js → chunk-EKVF7CLR.js} +1 -1
- package/build/_chunks/{chunk-JZV3ZJBB.js → chunk-ELLNE4SQ.js} +1 -1
- package/build/_chunks/{chunk-G3KITYB7.js → chunk-EMTERVOC.js} +1 -1
- package/build/_chunks/{chunk-ZJ3Y7NGV.js → chunk-EV4VYVUA.js} +1 -1
- package/build/_chunks/{chunk-Y6SN5NQH.js → chunk-FQN2ENGZ.js} +1 -1
- package/build/_chunks/{chunk-XRSE2L75.js → chunk-FRXYOX5V.js} +1 -1
- package/build/_chunks/{chunk-BUGQY66X.js → chunk-GAVZBUVE.js} +1 -1
- package/build/_chunks/{chunk-C5HVRHFE.js → chunk-GJ7M2MHJ.js} +1 -1
- package/build/_chunks/{chunk-DZBGGQBF.js → chunk-GXDLYPFJ.js} +1 -1
- package/build/_chunks/{chunk-YKPYXS5F.js → chunk-GY77SAWJ.js} +1 -1
- package/build/_chunks/{chunk-E6OJ5PER.js → chunk-GYW2DJ2H.js} +1 -1
- package/build/_chunks/{chunk-3LYDDROA.js → chunk-H4HIA43J.js} +1 -1
- package/build/_chunks/{chunk-KJILJZZL.js → chunk-HIMNKXWP.js} +1 -1
- package/build/_chunks/{chunk-CFJKHUF7.js → chunk-HIVZKT35.js} +1 -1
- package/build/_chunks/{chunk-ONOCM5IO.js → chunk-HSGIQESP.js} +1 -1
- package/build/_chunks/{chunk-A6JU6IHH.js → chunk-HVT3EERK.js} +1 -1
- package/build/_chunks/{chunk-NML2KBRY.js → chunk-IC4NGUDJ.js} +1 -1
- package/build/_chunks/{chunk-HZ37ITG2.js → chunk-IGR6WGTI.js} +1 -1
- package/build/_chunks/{chunk-CSZ3BKQ6.js → chunk-IKNMZV6C.js} +1 -1
- package/build/_chunks/{chunk-BWHXUPA4.js → chunk-IKWFUB2P.js} +1 -1
- package/build/_chunks/{chunk-ZFNXPCDH.js → chunk-IOPQV7KB.js} +1 -1
- package/build/_chunks/{chunk-4VUMJS3Q.js → chunk-IXRKGIZ3.js} +1 -1
- package/build/_chunks/{chunk-RP4EQUEN.js → chunk-IZ5CDD7Y.js} +1 -1
- package/build/_chunks/chunk-JPXKUMRX.js +1 -0
- package/build/_chunks/{chunk-Y2TYYOG5.js → chunk-K2C7CEOB.js} +1 -1
- package/build/_chunks/{chunk-TLIKGGIL.js → chunk-K2GMSM47.js} +1 -1
- package/build/_chunks/{chunk-N7TZLACN.js → chunk-KPHD7GM3.js} +1 -1
- package/build/_chunks/{chunk-4ZK5WIJY.js → chunk-KYU2IAPT.js} +1 -1
- package/build/_chunks/{chunk-HEAHZEQF.js → chunk-LAKZ2LLE.js} +1 -1
- package/build/_chunks/{chunk-NOVPYXJS.js → chunk-ME6IAGS5.js} +1 -1
- package/build/_chunks/{chunk-2QTISYZC.js → chunk-MES34FGP.js} +1 -1
- package/build/_chunks/{chunk-XHEVVGGE.js → chunk-MQVVEXA4.js} +1 -1
- package/build/_chunks/{chunk-KUVU47NF.js → chunk-MS33ADL3.js} +1 -1
- package/build/_chunks/{chunk-GCJHBKRY.js → chunk-MUONFF5X.js} +1 -1
- package/build/_chunks/{chunk-GS5HU2W2.js → chunk-NFBM7IBK.js} +1 -1
- package/build/_chunks/{chunk-URTGHZ5G.js → chunk-NOGJIOA5.js} +1 -1
- package/build/_chunks/{chunk-D46TFQTH.js → chunk-NSPGNCVW.js} +1 -1
- package/build/_chunks/{chunk-6WS2AF7Z.js → chunk-NT2XTLBR.js} +1 -1
- package/build/_chunks/{chunk-IBSQ66TO.js → chunk-OIMUFRPM.js} +1 -1
- package/build/_chunks/{chunk-6QI7MBR2.js → chunk-OIOUYR6I.js} +1 -1
- package/build/_chunks/{chunk-XDCJLWA2.js → chunk-OQTV3P6Z.js} +1 -1
- package/build/_chunks/{chunk-G3UNARKB.js → chunk-P6XMN5PJ.js} +1 -1
- package/build/_chunks/chunk-PAK54GSM.js +1 -0
- package/build/_chunks/{chunk-FR7AI525.js → chunk-PCZ7IE4C.js} +1 -1
- package/build/_chunks/{chunk-347S4JS5.js → chunk-PKG4X2X7.js} +1 -1
- package/build/_chunks/{chunk-T6ELU7DI.js → chunk-PPNJLNE7.js} +1 -1
- package/build/_chunks/{chunk-75FA6O7J.js → chunk-Q2UYJK5B.js} +1 -1
- package/build/_chunks/{chunk-MHPDSXWW.js → chunk-Q3BNKBLR.js} +1 -1
- package/build/_chunks/{chunk-CKGHTFE6.js → chunk-QV4TVJGH.js} +1 -1
- package/build/_chunks/{chunk-N6QA6D2G.js → chunk-R5XSQRL7.js} +1 -1
- package/build/_chunks/{chunk-YSPWF36D.js → chunk-RIC3E7MU.js} +1 -1
- package/build/_chunks/{chunk-H5GIJAFY.js → chunk-RNJASTYQ.js} +1 -1
- package/build/_chunks/{chunk-3MXAUJ6B.js → chunk-RSFXUYNZ.js} +1 -1
- package/build/_chunks/{chunk-UXLTK54A.js → chunk-SJWSSDSY.js} +1 -1
- package/build/_chunks/{chunk-UZTGBJST.js → chunk-SLMIGQPQ.js} +1 -1
- package/build/_chunks/{chunk-BKQKE7RW.js → chunk-SNVX6323.js} +1 -1
- package/build/_chunks/{chunk-5JB32U76.js → chunk-T2ZRUU44.js} +1 -1
- package/build/_chunks/{chunk-FRJQXNZF.js → chunk-TFB5L7LW.js} +1 -1
- package/build/_chunks/{chunk-ZZGDPPWY.js → chunk-TLJAQIJL.js} +1 -1
- package/build/_chunks/{chunk-6AEYAZ7J.js → chunk-U2CGKE2V.js} +1 -1
- package/build/_chunks/{chunk-KBAJZUXB.js → chunk-UFCIBS7P.js} +1 -1
- package/build/_chunks/{chunk-WJ563EIM.js → chunk-UPISPLGW.js} +1 -1
- package/build/_chunks/{chunk-P63BAZED.js → chunk-V6E637LE.js} +1 -1
- package/build/_chunks/{chunk-BDONG5DZ.js → chunk-VHJUHZEP.js} +1 -1
- package/build/_chunks/{chunk-LE2RDJDQ.js → chunk-VIWXTWST.js} +1 -1
- package/build/_chunks/{chunk-JOMXFKP5.js → chunk-VJKAFBW6.js} +1 -1
- package/build/_chunks/{chunk-QAJQQ6VZ.js → chunk-VJYHEAJY.js} +1 -1
- package/build/_chunks/{chunk-LMV5CX6B.js → chunk-VT6VDAXP.js} +1 -1
- package/build/_chunks/{chunk-OC76NYQO.js → chunk-VUOUS4XP.js} +1 -1
- package/build/_chunks/{chunk-O2I3RFJL.js → chunk-VXGABQ7J.js} +1 -1
- package/build/_chunks/{chunk-NTF472EL.js → chunk-WKYY433S.js} +1 -1
- package/build/_chunks/{chunk-WLGP5VR2.js → chunk-WOSHLQR3.js} +1 -1
- package/build/_chunks/{chunk-JWYLOQS7.js → chunk-WPZBY7O3.js} +1 -1
- package/build/_chunks/{chunk-V5UDRW53.js → chunk-WUODNG3Z.js} +1 -1
- package/build/_chunks/{chunk-JDUQR4LP.js → chunk-XTMBLCJK.js} +1 -1
- package/build/_chunks/{chunk-6XFGO7ZO.js → chunk-XURJIEHW.js} +1 -1
- package/build/_chunks/{chunk-STAU6ZUC.js → chunk-YI4WYHAR.js} +1 -1
- package/build/_chunks/{chunk-TD57M3ZC.js → chunk-YKO3ZLJ4.js} +1 -1
- package/build/_chunks/{chunk-GBIWQ52O.js → chunk-Z3WL4JXA.js} +1 -1
- package/build/_chunks/{chunk-6X4Q3E4C.js → chunk-Z66X47YA.js} +1 -1
- package/build/_chunks/{chunk-GNAKZ2VQ.js → chunk-ZHXM22SI.js} +1 -1
- package/build/components/Accordion/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CopyImage/index.js +1 -1
- package/build/components/CountBadge/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlagDetails/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LazyImage/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/MenuItem/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiDatakeyDonut/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/ScrollLoader/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/SimpleDialog/index.js +1 -1
- package/build/components/Skeleton/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/_v2/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/date.d.ts +17 -6
- package/build/utils/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-EZPGM3YA.js +0 -1
- package/build/_chunks/chunk-QWAZOXVA.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ga,Jc}from'./chunk-
|
|
1
|
+
import {Ga,Jc}from'./chunk-JPXKUMRX.js';import I,{useId}from'react';import h from'@mui/material/Box';import y from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var a=styled(y,{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 w=Ga();function l({isError:r,hideArrows:o,inputProps:s,onKeyDown:n,...t},m){let f=Jc(useId(),"input-number"),b=e=>{if(["e","E","+","-"].includes(e.key)&&e.preventDefault(),n){n?.(e);return}w&&isNaN(e.key)&&e.key!=="Backspace"&&e.preventDefault();};return jsx(h,{id:f,"data-testid":"InputNumber",sx:{flexGrow:1},onClick:e=>{e.stopPropagation();},children:jsx(a,{...t,ref:m,value:t.value||"",placeholder:t.placeholder,hideArrows:true,isError:r,disableUnderline:true,inputProps:{...s,type:"number"},onKeyDown:b,onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})}l.displayName="InputNumber";var d=I.forwardRef(l);var H=d;export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-JPXKUMRX.js';import {memo,useId}from'react';import {Typography}from'@mui/material';import i from'@mui/material/Box';import u,{circularProgressClasses}from'@mui/material/CircularProgress';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var n=styled(u)(({theme:r})=>({color:r.palette.common.blue,background:alpha(r.palette.info.dark,.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}})),p=styled(Typography)(()=>({fontSize:"14px",fontWeight:700,color:"#3B4152"})),s=styled(i)(()=>({position:"relative",display:"inline-flex"})),l=styled(i)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"}));function c({variant:r="determinate",...t}){let m=Jc(useId(),"circular-progress-with-label");return jsxs(s,{id:m,"data-testid":"CircularProgressWithLabel",children:[jsx(n,{variant:r,...t}),r==="determinate"&&jsx(l,{children:jsx(p,{variant:"caption",color:"text.secondary",children:`${Math.round(t?.value??0)}%`})})]})}c.displayName="CircularProgressWithLabel";var d=memo(c);var z=d;export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-JPXKUMRX.js';import {dd,Fh,Gh,Hh,Ih,Jh}from'./chunk-DSHV2G5D.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(a)(({theme:t})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:t.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize"})),w=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var g=new Map([["json",dd],["brand",Fh],["entity",Gh],["bank",Hh],["individual",Ih],["password",Jh]]);function W({title:t,icon:n}){let x=Jc(useId(),"window-app-icon"),e=g.get(n||"")??(g.get(t?.toLowerCase())||n);return jsxs(w,{id:x,className:"action-box","data-testid":"WindowAppIcon",children:[e&&jsx(I,{src:e,alt:"icon"}),jsx(m,{className:"title",children:t})]})}var y=W;var z=y;export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-JPXKUMRX.js';import {qi}from'./chunk-DSHV2G5D.js';import {memo,useId}from'react';import l from'@mui/material/ButtonBase';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';import {Box}from'@mui/material';var i=styled(l,{shouldForwardProp:t=>t!=="variant"})(({theme:t,variant:o="confirm",size:e="default"})=>({textTransform:"capitalize",borderRadius:"4px",lineHeight:"100%","&.Mui-disabled":{opacity:.5},...o==="confirm"&&{color:t.palette.common.white,background:t.palette.info.dark},...o==="cancel"&&{color:t.palette.grey[700],border:`1px solid ${t.palette.divider}`},...e==="small"&&{height:24,width:"auto",padding:"8px 16px",fontWeight:600,fontSize:"10px"},...e==="default"&&{height:32,width:75,fontWeight:700,padding:"8px 24px",fontSize:"11px"}}));function a({children:t,sx:o,...e}){let s=Jc(useId(),"button");return jsx(i,{id:s,"data-testid":"Button",sx:o,...e,children:t})}a.displayName="Button";var p=memo(a);function d({...t}){return jsx(Box,{component:"button","data-testid":"PlusButton",...t,sx:{cursor:"pointer",padding:0,margin:0,background:"transparent",border:"none",width:24,height:24,...t.sx},children:jsx("img",{src:qi,alt:"Plus Button",width:24,height:24})})}d.displayName="PlusButton";var m=memo(d);var P=m;var $=p;export{P as a,$ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-OQTV3P6Z.js';import {Jc}from'./chunk-JPXKUMRX.js';import {kh}from'./chunk-DSHV2G5D.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=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:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=Jc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:kh,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d as d$1}from'./chunk-
|
|
1
|
+
import {d as d$1}from'./chunk-SNVX6323.js';import {a}from'./chunk-IKNMZV6C.js';import {Jc}from'./chunk-JPXKUMRX.js';import {Bb,z}from'./chunk-DSHV2G5D.js';import {useId,useMemo,useState}from'react';import d from'@mui/material/Box';import R from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var b=styled(d)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),k=styled(d)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),v=styled(d,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),y=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(d$1,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({$hasSearchValue:e})=>({cursor:e?"pointer":"default",width:"100%",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(a)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),A=styled(a)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),L=styled(R)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:h,filteredOptions:a,isLoading:P,initialSalesChannels:m,initialSalesChannelsSearch:V}){let B=Jc(useId(),"sales-channel-filter"),o=useMemo(()=>m||[],[m]),[l,u]=useState(V||""),S=t=>o.some(i=>i.id===t),s=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(k,{id:B,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(v,{$active:!!l,children:jsx(y,{src:l?Bb:z,alt:"search",$isClear:!!l,onClick:()=>{u(""),h("");}})}),disabled:x,onChange:t=>{u(t.target.value),h(t.target.value);},value:l,disableUnderline:true}),jsx(b,{children:P?Array.from({length:9}).map((t,i)=>jsx(L,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:s,isIndeterminate:!s&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(s?[]:a);},children:s?"Deselect All":"Select All"}),a.map(t=>jsx(A,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let O=S(t.id)?o?.filter(D=>D.id!==t.id):[...o??[],t];e(O);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,b,g}from'./chunk-ONOCM5IO.js';import {a}from'./chunk-LI36HMPN.js';import {a as a$1}from'./chunk-6RUN2A52.js';import {Jc}from'./chunk-QWAZOXVA.js';import {Mc,zb,z as z$1}from'./chunk-DSHV2G5D.js';import Dt,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import ve from'@mui/material/Box';import {styled}from'@mui/material/styles';import zt from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ao from'@mui/material/InputLabel';import io from'@mui/material/MenuItem';import Vt from'@mui/material/SvgIcon';import Zt from'@mui/material/IconButton';import Xt from'@mui/material/CircularProgress';import eo from'@mui/material/FormControl';import _e from'@mui/material/Select';import Io from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Ro from'@mui/material/Input';var Ee=styled(ve)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),Re=styled(zt,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:o,hasFeedback:n,hideArrows:b,hasLabel:i,disabled:p})=>{let{borderColor:d}=c(e,o),a=n?"4px 4px 0 0":"4px",c$1=p?e.palette.grey[400]:e.palette.common.white,r=e.palette.divider;return o&&(r=d),t&&!o&&(r=e.palette.error.main),{border:`1px solid ${r}`,borderBottom:n?"none":void 0,borderRadius:a,...b&&{"& 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}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c$1,paddingTop:i?"11px":"0px",paddingBottom:i?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:i?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c$1}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:i?"flex-end":"center",alignSelf:i?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:i?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),Ae=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var We=Dt.forwardRef(({name:e,onChange:t,hasError:o,helperText:n,hideArrows:b$1,feedback:i,InputProps:p,InputLabelProps:d,label:a,placeholder:c,...r},y)=>{let h=Jc(useId(),"input-base"),S=g=>{t?.(g.target.value??"");},f=i!=null,m=b(i),l=typeof a=="string"&&a.trim().length>0?a:void 0,I=l??c,v=l&&typeof c=="string"?c:void 0;return jsxs(ve,{children:[jsx(Ee,{id:h,"data-testid":"InputBase",children:jsx(Re,{rows:1,hasError:!!o&&!f,hasFeedback:!!m,feedbackType:m?.type,hasLabel:!!I,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:r.type??"text",label:I,placeholder:v,onChange:S,InputLabelProps:d,InputProps:{disableUnderline:true,...p,sx:p?.sx},hideArrows:b$1,...r})}),m&&jsx(g,{...m}),!f&&n&&jsx(Ae,{children:n})]})});We.displayName="InputBase";var Te=We;var qt=Te;var Ne=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));Ne.displayName="DefaultClearIcon";var z=Ne;var De=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));De.displayName="DefaultSelectIcon";var $e=De;function ke({size:e=20,color:t="grey.A400",...o}){return jsx(Xt,{size:e,sx:{backgroundColor:"transparent",color:t},...o})}function Jt(e){if(e.button!==0)return;let t=e.currentTarget.closest(".MuiInputBase-root");if(!t||t.classList.contains("Mui-disabled"))return;e.preventDefault();let o=t.querySelector('.MuiSelect-select[role="combobox"]');o&&o.dispatchEvent(new MouseEvent("mousedown",{bubbles:true,cancelable:true,button:0,view:globalThis,clientX:e.clientX,clientY:e.clientY}));}function U({endAdornmentProp:e,isLoading:t,showClear:o,showMenuArrow:n,menuOpen:b,IconComponent:i,ClearIconComponent:p=z,onClear:d,onClearDefault:a}){return !(e||o||t||n)?null:jsxs(ve,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(ke,{}):null,!t&&o?jsx(Zt,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:r=>{r.preventDefault(),r.stopPropagation();},onClick:r=>{r.preventDefault(),r.stopPropagation(),d?d():a();},sx:r=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...i?{mr:2}:{},"&:hover":{backgroundColor:r.palette.action.hover},"&:focus-visible":{outline:`2px solid ${r.palette.primary.main}`,outlineOffset:1}}),children:jsx(p,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!i&&jsx(ve,{component:"span",className:`SelectBase-menuTriggerIcon${b?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,onMouseDown:Jt,children:jsx($e,{})})]})}function ne(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let o=e.id;return o!=null&&o!==""}return String(e)!==""}var ae=styled(eo)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(_e)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var ie=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),le=styled(_e,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:n})=>{let{borderColor:b}=c(e,o),i=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:i,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:i,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...o&&{border:`1px solid ${b}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),pe=styled(ve)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function lo(e,t){let{menuSearchable:o,menuSearchPlaceholder:n,...b$1}=e,{required:i,hasError:p,label:d,value:a,helperText:c,feedback:r,onChange:y,options:h,isOptionEqualToValue:S,renderOption:f,getOptionValue:m,isLoading:l,children:I,getOptionLabel:v,IconComponent:g$1,showClearIcon:x=false,ClearIconComponent:T=z,onClear:A,endAdornment:Y,inputProps:ge,open:H,onOpen:Z,onClose:J,menuHasSelectedCheckMark:be=false,...O}=b$1,ye=Jc(useId(),"select-base"),[xe,Ce]=useState(false),he=H??xe,_=useCallback((u,M)=>{M?Z?.(u):J?.(u),H===void 0&&Ce(M);},[Z,J,H]),Ie=u=>{y?.(u);},Me=()=>a==null?"":f?f(a):v?v(a):a?.label??"",Q="";a!=null&&(Q=(m?m(a):a?.id)??"");let L=!!(O.disabled||l),s=x&&ne(a,m)&&!L,P=jsx(U,{endAdornmentProp:Y,isLoading:!!l,showClear:s,showMenuArrow:!l,menuOpen:he,IconComponent:g$1,ClearIconComponent:T,onClear:A,onClearDefault:()=>y?.(null)}),C=b(r);return jsxs(pe,{children:[jsxs(ae,{id:ye,variant:"filled","data-testid":"SelectBase",required:i,children:[jsx(ao,{sx:{height:"100%"},id:`select-label-${d.trim()}`,"data-testid":"SelectBase_InputLabel",children:d}),jsx(le,{"data-testid":"SelectBase_Select",ref:t,value:Q,error:p&&!C,feedbackType:C?.type,hasFeedback:!!C,disableUnderline:true,required:i,labelId:`select-label-${d.trim()}`,id:`select-label-${d.trim()}`,renderValue:Me,...O,open:H,onOpen:u=>_(u,true),onClose:u=>_(u,false),inputProps:ge,disabled:L,IconComponent:g$1??(()=>null),endAdornment:P,children:I||h?.map(u=>{let M=S?S(u,a):u?.id===a?.id,j=(m?m(u):u?.id)??u?.label??"select-base-item";return jsxs(io,{disabled:!!u.disabled,value:(m?m(u):u?.id)??"",onClick:()=>{Ie(u);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Fe=>M?Fe.palette.action.hover:Fe.palette.common.white},children:[jsx(ve,{component:"span",sx:{flex:1,minWidth:0},children:f?f(u):u.label}),be&&M?jsx(ve,{component:"img",src:Mc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${j}`)})})]}),C?jsx(g,{...C}):jsx(ie,{children:c})]})}var Ue=Dt.forwardRef(lo);function bo({required:e,hasError:t,label:o,value:n,helperText:b$1,feedback:i,onChange:p,options:d,isOptionEqualToValue:a,renderOption:c,getOptionValue:r,isLoading:y,children:h,getOptionLabel:S,IconComponent:f,showClearIcon:m=false,ClearIconComponent:l=z,onClear:I,endAdornment:v,inputProps:g$1,open:x,onOpen:T,onClose:A,...Y},ge){let[H,Z]=useState(false),J=Jc(useId(),"select-base-multiple"),be=x??H,O=useCallback((s,k)=>{k?T?.(s):A?.(s),x===void 0&&Z(k);},[T,A,x]),ye=s=>{p?.(s);},xe=()=>{let s=n?.filter(k=>k!=null)??[];return r?s.map(r):s.map(k=>k?.id)},Ce=useMemo(()=>d?.filter(s=>n?.some(k=>{if(k==null)return false;if(a)return a(s,k);if(r){let u=r(s),M=r(k);return u===M||String(u)===String(M)}let P=s?.id,C=k?.id;return P===C||String(P)===String(C)})),[d,n,a,r]),he=()=>Ce?.map(s=>S?S(s):s.label)?.join(", "),_=!!(Y.disabled||y),Ie=m&&ne(n,r)&&!_,Q=jsx(U,{endAdornmentProp:v,isLoading:!!y,showClear:Ie,showMenuArrow:!y,menuOpen:be,IconComponent:f,ClearIconComponent:l,onClear:I,onClearDefault:()=>p?.([])}),L=b(i);return jsxs(pe,{children:[jsxs(ae,{id:J,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(ao,{id:`select-label-${o.trim()}`,"data-testid":"SelectBase_InputLabel",children:o}),jsx(le,{multiple:true,"data-testid":"SelectBase_Select",ref:ge,value:xe()??"",error:t&&!L,feedbackType:L?.type,hasFeedback:!!L,disableUnderline:true,required:e,labelId:`select-label-${o.trim()}`,id:`select-label-${o.trim()}`,renderValue:he,...Y,open:x,onOpen:s=>O(s,true),onClose:s=>O(s,false),inputProps:g$1,disabled:_,IconComponent:f??(()=>null),endAdornment:Q,onChange:s=>{let P=s.target.value?.map(C=>d?.find(u=>{if(r){let j=r(u);return j===C||String(j)===String(C)}let M=u?.id;return M===C||String(M)===String(C)}));p?.(P?.filter(C=>C!=null)??[]);},children:h||d?.map((s,k)=>{let P=a?a(s,n):s?.id===n?.id;return jsx(io,{value:(r?r(s):s?.id)??"",onClick:()=>{ye(s);},sx:{fontSize:"12px",backgroundColor:C=>P?C.palette.action.hover:C.palette.common.white},children:c?c(s):s.label},`select-base-multiple-item-${k}`)})})]}),L?jsx(g,{...L}):jsx(ie,{children:b$1})]})}var Ge=Dt.forwardRef(bo);var yo=Ue;var Ke=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),Xe=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Ye=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Ze=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),Je=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),Qe=styled$1(Box)(()=>({color:"red !important"}));function ot({isLoading:e,countries:t,value:o,onCountryChange:n,required:b,disabled:i}){let[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),[h,S]=useState(""),f=!!a&&!i,m=g=>{g.stopPropagation(),c(g.currentTarget);},l=()=>{c(null);},I=g=>{n?.(g),d(g),l(),y(t);},v=g=>{let x=g.target.value.toString()??"";if(S(x),!x){y(t);return}let T=t.filter(A=>A.idd_prefix.toString().startsWith(x)||A.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{o&&d(o);},[o?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Ke,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:m,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),b&&jsx(Qe,{component:"span",children:"*"}),jsx(ve,{component:"img",src:zb,alt:"d",className:"arrow",sx:{...f&&{transform:"rotate(180deg)"}}})]})}),f&&jsx(a$1,{onClick:l,sx:{zIndex:9999}}),f&&jsx(ClickAwayListener,{onClickAway:l,children:jsxs(Xe,{id:"CountriesList_CountriesWrapper",open:f,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(Je,{endAdornment:jsx("img",{src:z$1,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:h}),jsx(Ye,{"data-testid":"CountriesList_CountriesListStyled",children:r.map(g=>{let x=p?.countryId===g.countryId;return jsxs(Ze,{onClick:()=>{I(g);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:g.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${g.idd_prefix}`})]},`country-code-${g.countryId}`)})})]})})]})}ot.displayName="CountriesList";var rt=memo(ot);var de=rt;var at=styled(ve,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:o})=>{let{borderColor:n}=c(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:o?"4px 4px 0 0":"4px",borderBottom:o?"none":void 0,height:"40px"}}),it=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),lt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),pt=styled(ve)(()=>({flex:1}));function dt({phoneValue:e,hasError:t,countries:o,isCountriesLoading:n,countryValue:b$1,onCountryChange:i,onPhoneChange:p,helperText:d,required:a,disabled:c,feedback:r,...y},h){let S=x=>{p?.(x.target.value);},f=x=>{i?.(x);},m=r!=null,l={...r,message:r?.message??d},I=b(l),v=null;I?v=jsx(g,{...I}):m||(v=jsx(lt,{children:d}));let g$1=Jc(useId(),"phone-input-base");return jsxs(pt,{id:g$1,"data-testid":"PhoneInput",children:[jsxs(at,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:I?.type,hasFeedback:!!I,children:[jsx(de,{isLoading:n,countries:o,value:b$1,onCountryChange:f,required:a,disabled:c}),jsx(it,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:h,inputProps:{autoComplete:"off"},error:t&&!m,disabled:c,...y,onChange:S,hideArrows:true})]}),v]})}dt.displayName="PhoneInputBase";var ut=Dt.forwardRef(dt);var wo=ut;var ct=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),mt=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),ft=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),gt=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),bt=styled$1(Box)(()=>({color:"red !important"}));function ht({isLoading:e,currencies:t,value:o,onCurrencyChange:n,required:b}){let i=Jc(useId(),"currencies-list"),[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),h=!!a,S=l=>{l.stopPropagation(),c(l.currentTarget);},f=()=>{c(null);},m=l=>{n?.(l),d(l),f(),y(t);};return useEffect(()=>{o&&d(o);},[o?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{id:i,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(ct,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:S,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]}),b&&jsx(bt,{component:"span",children:"*"}),jsx(ve,{component:"img",src:zb,alt:"d",className:"arrow",sx:{...h&&{transform:"rotate(180deg)"}}})]})}),h&&jsx(a$1,{onClick:f}),h&&jsx(mt,{id:"currenciesList_currenciesWrapper",open:h,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(ft,{"data-testid":"currenciesList_currenciesListStyled",children:r.map(l=>{let I=p?.currencyId===l.currencyId;return jsxs(gt,{onClick:()=>{m(l);},sx:{backgroundColor:I?"#F9F9F9":"transparent",color:I?"#000":"#8D8D94"},children:[jsx("img",{src:l.logo,alt:"c",className:"logo"}),jsx("span",{children:l?.code.english})]},`currency-code-${l.currencyId}`)})})})]})}ht.displayName="CurrenciesList";var It=memo(ht);var St=It;var Bt=styled(Ro,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),wt=styled(ve)(()=>({flex:1}));function To({hasError:e,hideArrows:t,inputProps:o,...n},b){let i=Jc(useId(),"amount-input-number");return jsx(wt,{id:i,"data-testid":"AmountInputNumber",onClick:p=>{p.stopPropagation();},children:jsx(Bt,{ref:b,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...o,type:"number"},onKeyDown:p=>{["e","E","+","-"].includes(p.key)&&p.preventDefault();},...n})})}var Mt=forwardRef(To);var Ft=Mt;var Lt=styled(ve,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Pt=styled(ve)(()=>({width:"50px"})),Et=styled(Ft)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Rt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),At=styled(ve)(()=>({flex:1}));function Tt({amountValue:e,hasError:t,currencies:o,isCurrenciesLoading:n,currencyValue:b,onCurrencyChange:i,onAmountChange:p,onAmountBlur:d,helperText:a,required:c,...r},y){let h=l=>{p?.(l.target.value);},S=l=>{d?.(l.target.value);},f=l=>{i?.(l);},m=Jc(useId(),"amount-input-base");return jsxs(At,{id:m,"data-testid":"AmountInput",children:[jsxs(Lt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(St,{isLoading:n,currencies:o,value:b,onCurrencyChange:f,required:c}),jsx(Pt,{children:jsx(Et,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...r,onChange:h,onBlur:S,hideArrows:true})})]}),jsx(Rt,{children:a})]})}Tt.displayName="AmountInputBase";var Ht=Dt.forwardRef(Tt);var zo=Ht;export{qt as a,z as b,ie as c,pe as d,Ge as e,yo as f,de as g,wo as h,zo as i};
|
|
1
|
+
import {c,b,g}from'./chunk-HSGIQESP.js';import {a}from'./chunk-2BIUUEZV.js';import {a as a$1}from'./chunk-7FX6EOCN.js';import {Jc}from'./chunk-JPXKUMRX.js';import {Mc,zb,z as z$1}from'./chunk-DSHV2G5D.js';import Dt,{useId,forwardRef,memo,useState,useCallback,useMemo,useEffect}from'react';import ve from'@mui/material/Box';import {styled}from'@mui/material/styles';import zt from'@mui/material/TextField';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import ao from'@mui/material/InputLabel';import io from'@mui/material/MenuItem';import Vt from'@mui/material/SvgIcon';import Zt from'@mui/material/IconButton';import Xt from'@mui/material/CircularProgress';import eo from'@mui/material/FormControl';import _e from'@mui/material/Select';import Io from'@mui/material/Skeleton';import {styled as styled$1,Popper,Box,ClickAwayListener}from'@mui/material';import Ro from'@mui/material/Input';var Ee=styled(ve)(()=>({display:"flex",flexDirection:"column",gap:"4px",width:"100%",minHeight:40,"& .MuiTextField-root":{flex:1,margin:"0 !important"}})),Re=styled(zt,{shouldForwardProp:e=>!["hasError","feedbackType","hasFeedback","hideArrows","hasLabel"].includes(e)})(({theme:e,hasError:t,feedbackType:o,hasFeedback:n,hideArrows:b,hasLabel:i,disabled:p})=>{let{borderColor:d}=c(e,o),a=n?"4px 4px 0 0":"4px",c$1=p?e.palette.grey[400]:e.palette.common.white,r=e.palette.divider;return o&&(r=d),t&&!o&&(r=e.palette.error.main),{border:`1px solid ${r}`,borderBottom:n?"none":void 0,borderRadius:a,...b&&{"& 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}},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiInputLabel-root":{fontSize:"10px",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,overflow:"visible"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{maxHeight:"40px !important",height:"40px",overflow:"hidden",borderRadius:a,backgroundColor:c$1,paddingTop:i?"11px":"0px",paddingBottom:i?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:i?"stretch":"center","&:before, &:after":{display:"none"},"&:hover, &.Mui-focused, &.Mui-disabled":{backgroundColor:c$1}},"& .MuiFilledInput-input":{margin:0,padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:i?"flex-end":"center",alignSelf:i?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.text.primary,paddingBottom:i?"1px !important":"0 !important","&::placeholder":{color:e.palette.grey[500],opacity:1}}}}),Ae=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var We=Dt.forwardRef(({name:e,onChange:t,hasError:o,helperText:n,hideArrows:b$1,feedback:i,InputProps:p,InputLabelProps:d,label:a,placeholder:c,...r},y)=>{let h=Jc(useId(),"input-base"),S=g=>{t?.(g.target.value??"");},f=i!=null,m=b(i),l=typeof a=="string"&&a.trim().length>0?a:void 0,I=l??c,v=l&&typeof c=="string"?c:void 0;return jsxs(ve,{children:[jsx(Ee,{id:h,"data-testid":"InputBase",children:jsx(Re,{rows:1,hasError:!!o&&!f,hasFeedback:!!m,feedbackType:m?.type,hasLabel:!!I,fullWidth:true,size:"small",variant:"filled",ref:y,name:e,type:r.type??"text",label:I,placeholder:v,onChange:S,InputLabelProps:d,InputProps:{disableUnderline:true,...p,sx:p?.sx},hideArrows:b$1,...r})}),m&&jsx(g,{...m}),!f&&n&&jsx(Ae,{children:n})]})});We.displayName="InputBase";var Te=We;var qt=Te;var Ne=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));Ne.displayName="DefaultClearIcon";var z=Ne;var De=forwardRef((e,t)=>jsx(Vt,{ref:t,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));De.displayName="DefaultSelectIcon";var $e=De;function ke({size:e=20,color:t="grey.A400",...o}){return jsx(Xt,{size:e,sx:{backgroundColor:"transparent",color:t},...o})}function Jt(e){if(e.button!==0)return;let t=e.currentTarget.closest(".MuiInputBase-root");if(!t||t.classList.contains("Mui-disabled"))return;e.preventDefault();let o=t.querySelector('.MuiSelect-select[role="combobox"]');o&&o.dispatchEvent(new MouseEvent("mousedown",{bubbles:true,cancelable:true,button:0,view:globalThis,clientX:e.clientX,clientY:e.clientY}));}function U({endAdornmentProp:e,isLoading:t,showClear:o,showMenuArrow:n,menuOpen:b,IconComponent:i,ClearIconComponent:p=z,onClear:d,onClearDefault:a}){return !(e||o||t||n)?null:jsxs(ve,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,t?jsx(ke,{}):null,!t&&o?jsx(Zt,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:r=>{r.preventDefault(),r.stopPropagation();},onClick:r=>{r.preventDefault(),r.stopPropagation(),d?d():a();},sx:r=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...i?{mr:2}:{},"&:hover":{backgroundColor:r.palette.action.hover},"&:focus-visible":{outline:`2px solid ${r.palette.primary.main}`,outlineOffset:1}}),children:jsx(p,{sx:{fontSize:8,width:8,height:8}})}):null,!t&&n&&!i&&jsx(ve,{component:"span",className:`SelectBase-menuTriggerIcon${b?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,onMouseDown:Jt,children:jsx($e,{})})]})}function ne(e,t){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(t){let n=t(e);return n!=null&&n!==""}let o=e.id;return o!=null&&o!==""}return String(e)!==""}var ae=styled(eo)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(_e)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var ie=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),le=styled(_e,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:n})=>{let{borderColor:b}=c(e,o),i=n?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:i,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:i,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...o&&{border:`1px solid ${b}`},...n&&{borderBottom:"none"},...t&&{border:`1px solid ${e.palette.error.main}`}}}),pe=styled(ve)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1}));function lo(e,t){let{menuSearchable:o,menuSearchPlaceholder:n,...b$1}=e,{required:i,hasError:p,label:d,value:a,helperText:c,feedback:r,onChange:y,options:h,isOptionEqualToValue:S,renderOption:f,getOptionValue:m,isLoading:l,children:I,getOptionLabel:v,IconComponent:g$1,showClearIcon:x=false,ClearIconComponent:T=z,onClear:A,endAdornment:Y,inputProps:ge,open:H,onOpen:Z,onClose:J,menuHasSelectedCheckMark:be=false,...O}=b$1,ye=Jc(useId(),"select-base"),[xe,Ce]=useState(false),he=H??xe,_=useCallback((u,M)=>{M?Z?.(u):J?.(u),H===void 0&&Ce(M);},[Z,J,H]),Ie=u=>{y?.(u);},Me=()=>a==null?"":f?f(a):v?v(a):a?.label??"",Q="";a!=null&&(Q=(m?m(a):a?.id)??"");let L=!!(O.disabled||l),s=x&&ne(a,m)&&!L,P=jsx(U,{endAdornmentProp:Y,isLoading:!!l,showClear:s,showMenuArrow:!l,menuOpen:he,IconComponent:g$1,ClearIconComponent:T,onClear:A,onClearDefault:()=>y?.(null)}),C=b(r);return jsxs(pe,{children:[jsxs(ae,{id:ye,variant:"filled","data-testid":"SelectBase",required:i,children:[jsx(ao,{sx:{height:"100%"},id:`select-label-${d.trim()}`,"data-testid":"SelectBase_InputLabel",children:d}),jsx(le,{"data-testid":"SelectBase_Select",ref:t,value:Q,error:p&&!C,feedbackType:C?.type,hasFeedback:!!C,disableUnderline:true,required:i,labelId:`select-label-${d.trim()}`,id:`select-label-${d.trim()}`,renderValue:Me,...O,open:H,onOpen:u=>_(u,true),onClose:u=>_(u,false),inputProps:ge,disabled:L,IconComponent:g$1??(()=>null),endAdornment:P,children:I||h?.map(u=>{let M=S?S(u,a):u?.id===a?.id,j=(m?m(u):u?.id)??u?.label??"select-base-item";return jsxs(io,{disabled:!!u.disabled,value:(m?m(u):u?.id)??"",onClick:()=>{Ie(u);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:Fe=>M?Fe.palette.action.hover:Fe.palette.common.white},children:[jsx(ve,{component:"span",sx:{flex:1,minWidth:0},children:f?f(u):u.label}),be&&M?jsx(ve,{component:"img",src:Mc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${j}`)})})]}),C?jsx(g,{...C}):jsx(ie,{children:c})]})}var Ue=Dt.forwardRef(lo);function bo({required:e,hasError:t,label:o,value:n,helperText:b$1,feedback:i,onChange:p,options:d,isOptionEqualToValue:a,renderOption:c,getOptionValue:r,isLoading:y,children:h,getOptionLabel:S,IconComponent:f,showClearIcon:m=false,ClearIconComponent:l=z,onClear:I,endAdornment:v,inputProps:g$1,open:x,onOpen:T,onClose:A,...Y},ge){let[H,Z]=useState(false),J=Jc(useId(),"select-base-multiple"),be=x??H,O=useCallback((s,k)=>{k?T?.(s):A?.(s),x===void 0&&Z(k);},[T,A,x]),ye=s=>{p?.(s);},xe=()=>{let s=n?.filter(k=>k!=null)??[];return r?s.map(r):s.map(k=>k?.id)},Ce=useMemo(()=>d?.filter(s=>n?.some(k=>{if(k==null)return false;if(a)return a(s,k);if(r){let u=r(s),M=r(k);return u===M||String(u)===String(M)}let P=s?.id,C=k?.id;return P===C||String(P)===String(C)})),[d,n,a,r]),he=()=>Ce?.map(s=>S?S(s):s.label)?.join(", "),_=!!(Y.disabled||y),Ie=m&&ne(n,r)&&!_,Q=jsx(U,{endAdornmentProp:v,isLoading:!!y,showClear:Ie,showMenuArrow:!y,menuOpen:be,IconComponent:f,ClearIconComponent:l,onClear:I,onClearDefault:()=>p?.([])}),L=b(i);return jsxs(pe,{children:[jsxs(ae,{id:J,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(ao,{id:`select-label-${o.trim()}`,"data-testid":"SelectBase_InputLabel",children:o}),jsx(le,{multiple:true,"data-testid":"SelectBase_Select",ref:ge,value:xe()??"",error:t&&!L,feedbackType:L?.type,hasFeedback:!!L,disableUnderline:true,required:e,labelId:`select-label-${o.trim()}`,id:`select-label-${o.trim()}`,renderValue:he,...Y,open:x,onOpen:s=>O(s,true),onClose:s=>O(s,false),inputProps:g$1,disabled:_,IconComponent:f??(()=>null),endAdornment:Q,onChange:s=>{let P=s.target.value?.map(C=>d?.find(u=>{if(r){let j=r(u);return j===C||String(j)===String(C)}let M=u?.id;return M===C||String(M)===String(C)}));p?.(P?.filter(C=>C!=null)??[]);},children:h||d?.map((s,k)=>{let P=a?a(s,n):s?.id===n?.id;return jsx(io,{value:(r?r(s):s?.id)??"",onClick:()=>{ye(s);},sx:{fontSize:"12px",backgroundColor:C=>P?C.palette.action.hover:C.palette.common.white},children:c?c(s):s.label},`select-base-multiple-item-${k}`)})})]}),L?jsx(g,{...L}):jsx(ie,{children:b$1})]})}var Ge=Dt.forwardRef(bo);var yo=Ue;var Ke=styled$1("button")(({theme:e,disabled:t})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:t?"default":"pointer",opacity:t?.5:1})),Xe=styled$1(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),Ye=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),Ze=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),Je=styled$1(a)(()=>({height:24,padding:"4px",marginBottom:"4px"})),Qe=styled$1(Box)(()=>({color:"red !important"}));function ot({isLoading:e,countries:t,value:o,onCountryChange:n,required:b,disabled:i}){let[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),[h,S]=useState(""),f=!!a&&!i,m=g=>{g.stopPropagation(),c(g.currentTarget);},l=()=>{c(null);},I=g=>{n?.(g),d(g),l(),y(t);},v=g=>{let x=g.target.value.toString()??"";if(S(x),!x){y(t);return}let T=t.filter(A=>A.idd_prefix.toString().startsWith(x)||A.iso2.toLowerCase().startsWith(x.toLowerCase()));y(T);};return useEffect(()=>{o&&d(o);},[o?.countryId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(Ke,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:m,disabled:e||i,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${p?.idd_prefix}`})]}),b&&jsx(Qe,{component:"span",children:"*"}),jsx(ve,{component:"img",src:zb,alt:"d",className:"arrow",sx:{...f&&{transform:"rotate(180deg)"}}})]})}),f&&jsx(a$1,{onClick:l,sx:{zIndex:9999}}),f&&jsx(ClickAwayListener,{onClickAway:l,children:jsxs(Xe,{id:"CountriesList_CountriesWrapper",open:f,anchorEl:a,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",children:[jsx(Je,{endAdornment:jsx("img",{src:z$1,alt:"arrow"}),onChange:v,hideArrows:true,"data-testid":"CountriesList_InputStyled",value:h}),jsx(Ye,{"data-testid":"CountriesList_CountriesListStyled",children:r.map(g=>{let x=p?.countryId===g.countryId;return jsxs(Ze,{onClick:()=>{I(g);},sx:{backgroundColor:x?"#F9F9F9":"transparent",color:x?"#000":"#8D8D94"},children:[jsx("img",{src:g.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${g.idd_prefix}`})]},`country-code-${g.countryId}`)})})]})})]})}ot.displayName="CountriesList";var rt=memo(ot);var de=rt;var at=styled(ve,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:t,hasFeedback:o})=>{let{borderColor:n}=c(e,t);return {border:`1px solid ${t?n:e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:o?"4px 4px 0 0":"4px",borderBottom:o?"none":void 0,height:"40px"}}),it=styled(a)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),lt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),pt=styled(ve)(()=>({flex:1}));function dt({phoneValue:e,hasError:t,countries:o,isCountriesLoading:n,countryValue:b$1,onCountryChange:i,onPhoneChange:p,helperText:d,required:a,disabled:c,feedback:r,...y},h){let S=x=>{p?.(x.target.value);},f=x=>{i?.(x);},m=r!=null,l={...r,message:r?.message??d},I=b(l),v=null;I?v=jsx(g,{...I}):m||(v=jsx(lt,{children:d}));let g$1=Jc(useId(),"phone-input-base");return jsxs(pt,{id:g$1,"data-testid":"PhoneInput",children:[jsxs(at,{"data-testid":"PhoneInput_MobileWrapper",feedbackType:I?.type,hasFeedback:!!I,children:[jsx(de,{isLoading:n,countries:o,value:b$1,onCountryChange:f,required:a,disabled:c}),jsx(it,{value:e,"data-testid":"PhoneInput_InputNumberStyled",ref:h,inputProps:{autoComplete:"off"},error:t&&!m,disabled:c,...y,onChange:S,hideArrows:true})]}),v]})}dt.displayName="PhoneInputBase";var ut=Dt.forwardRef(dt);var wo=ut;var ct=styled$1("button")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),mt=styled$1(Popper)(({theme:e})=>({zIndex:99,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),ft=styled$1("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),gt=styled$1("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),bt=styled$1(Box)(()=>({color:"red !important"}));function ht({isLoading:e,currencies:t,value:o,onCurrencyChange:n,required:b}){let i=Jc(useId(),"currencies-list"),[p,d]=useState(),[a,c]=useState(null),[r,y]=useState([]),h=!!a,S=l=>{l.stopPropagation(),c(l.currentTarget);},f=()=>{c(null);},m=l=>{n?.(l),d(l),f(),y(t);};return useEffect(()=>{o&&d(o);},[o?.currencyId]),useEffect(()=>{t.length&&y(t);},[t.length]),jsxs(ve,{id:i,"data-testid":"currenciesList",sx:{position:"relative"},children:[jsx(ct,{type:"button","aria-describedby":"currenciesList_currenciesWrapper",onClick:S,disabled:e,sx:{backgroundColor:"transparent",border:"none",height:34,paddingInlineStart:"8px"},children:e?jsx(Io,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[p&&jsxs(Fragment,{children:[jsx("img",{src:p.logo,alt:"c",className:"logo"}),jsx("span",{children:p?.code.english})]}),b&&jsx(bt,{component:"span",children:"*"}),jsx(ve,{component:"img",src:zb,alt:"d",className:"arrow",sx:{...h&&{transform:"rotate(180deg)"}}})]})}),h&&jsx(a$1,{onClick:f}),h&&jsx(mt,{id:"currenciesList_currenciesWrapper",open:h,anchorEl:a,"data-testid":"currenciesList_currenciesWrapper",placement:"bottom-start",children:jsx(ft,{"data-testid":"currenciesList_currenciesListStyled",children:r.map(l=>{let I=p?.currencyId===l.currencyId;return jsxs(gt,{onClick:()=>{m(l);},sx:{backgroundColor:I?"#F9F9F9":"transparent",color:I?"#000":"#8D8D94"},children:[jsx("img",{src:l.logo,alt:"c",className:"logo"}),jsx("span",{children:l?.code.english})]},`currency-code-${l.currencyId}`)})})})]})}ht.displayName="CurrenciesList";var It=memo(ht);var St=It;var Bt=styled(Ro,{shouldForwardProp:e=>!["hasError","hideArrows"].includes(e)})(({theme:e,hideArrows:t})=>({padding:"8px",border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:32,color:e.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:e.palette.grey[700],fontWeight:400},...t&&{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}})),wt=styled(ve)(()=>({flex:1}));function To({hasError:e,hideArrows:t,inputProps:o,...n},b){let i=Jc(useId(),"amount-input-number");return jsx(wt,{id:i,"data-testid":"AmountInputNumber",onClick:p=>{p.stopPropagation();},children:jsx(Bt,{ref:b,placeholder:n.placeholder,hideArrows:true,hasError:e,disableUnderline:true,inputProps:{...o,type:"number"},onKeyDown:p=>{["e","E","+","-"].includes(p.key)&&p.preventDefault();},...n})})}var Mt=forwardRef(To);var Ft=Mt;var Lt=styled(ve,{shouldForwardProp:e=>e!=="hasError"})(({theme:e,hasError:t})=>({border:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",position:"relative",paddingInline:"8px",paddingInlineStart:"0px",alignItems:"center",borderRadius:"4px",height:"40px",...t&&{border:`1px solid ${e.palette.error.main}`}})),Pt=styled(ve)(()=>({width:"50px"})),Et=styled(Ft)(({error:e})=>({border:"none",paddingInlineEnd:0,img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}})),Rt=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),At=styled(ve)(()=>({flex:1}));function Tt({amountValue:e,hasError:t,currencies:o,isCurrenciesLoading:n,currencyValue:b,onCurrencyChange:i,onAmountChange:p,onAmountBlur:d,helperText:a,required:c,...r},y){let h=l=>{p?.(l.target.value);},S=l=>{d?.(l.target.value);},f=l=>{i?.(l);},m=Jc(useId(),"amount-input-base");return jsxs(At,{id:m,"data-testid":"AmountInput",children:[jsxs(Lt,{"data-testid":"AmountInput_MobileWrapper",hasError:t,children:[jsx(St,{isLoading:n,currencies:o,value:b,onCurrencyChange:f,required:c}),jsx(Pt,{children:jsx(Et,{value:e,"data-testid":"AmountInput_InputNumberStyled",ref:y,inputProps:{autoComplete:"off"},error:t,...r,onChange:h,onBlur:S,hideArrows:true})})]}),jsx(Rt,{children:a})]})}Tt.displayName="AmountInputBase";var Ht=Dt.forwardRef(Tt);var zo=Ht;export{qt as a,z as b,ie as c,pe as d,Ge as e,yo as f,de as g,wo as h,zo as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-KHM5KW53.js';import {eb,cb,Jc,nb}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-KHM5KW53.js';import {eb,cb,Jc,nb}from'./chunk-JPXKUMRX.js';import {Gj,va,ua,ta,Ei}from'./chunk-DSHV2G5D.js';import {b as b$1}from'./chunk-YRT7GXGY.js';import {memo,useId}from'react';import M from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var b=b$1(eb(),1);var D=styled(M,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:cb(t)?"18px":"24px"}));var e={DESKTOP:ta,PHONE:ua,TABLET:va,TERMINAL:Gj};var i=o=>!!e[o];function P({type:o,isTextShown:t,tableMode:E,...v}){let p=Jc(useId(),"device-icon"),{t:C}=useTranslation(),m=i(o)?e[o]:null;return jsx(a,{title:m?`Device - ${nb((o??"").toLowerCase())}`:C("unKnown"),children:t?jsx(D,{id:p,"data-testid":"DeviceIcon",tableMode:E,children:o?(0, b.default)(o):"Unknown"}):jsx(M,{...v,id:p,"data-testid":"DeviceIcon",component:"img",src:o?m||Ei:Ei,alt:o})})}var T=memo(P);var Y=T;export{e as a,i as b,Y as c};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {a}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-JPXKUMRX.js';import {ph}from'./chunk-DSHV2G5D.js';import {useState,useId}from'react';import T 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 h=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),c=styled(Box)`
|
|
2
2
|
position: absolute;
|
|
3
3
|
`;function d({mainIcon:B,overlayIcon:p,mainIconAlt:u="main icon",mainIconSize:t=20,containerSize:a$1=24,overlayPosition:b={top:10,left:17},borderColor:w="#F2F2F2",label:y="",sx:I,onError:W,containerSx:C}){let[e,s]=useState(true),F=Jc(useId(),"icon-with-badge");return jsx(a,{title:y,children:jsx(i,{id:F,"data-testid":"IconWithBadge",display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(h,{style:{borderColor:w,width:a$1,height:a$1},children:[t&&e&&jsx(i,{width:t,height:t,children:e&&jsx(T,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[p&&jsx(c,{sx:b,children:p}),jsx(i,{width:t,height:t,component:"img",src:B||ph,alt:u,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:e?0:1,...I},onError:n=>{s(false),n.currentTarget.src=ph,W?.(n);},onLoad:()=>{s(false);}})]})]})})})}var M=d;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-JPXKUMRX.js';import {memo,useId}from'react';import s from'react-dom';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var t=styled(Box)(()=>({position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:999}));function a(m){let p=Jc(useId(),"custom-backdrop");return s.createPortal(jsx(t,{...m,id:p,"data-testid":"CustomBackdrop"}),document.body)}var r=memo(a);var b=r;export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-JPXKUMRX.js';import {cc}from'./chunk-DSHV2G5D.js';import {useId}from'react';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var e=styled(motion.img,{shouldForwardProp:n=>n!=="width"&&n!=="height"})(({width:n,height:i})=>({width:n||"16px",height:i||"16px"}));var h=({width:n,height:i,sx:p}={})=>{let m=Jc(useId(),"animated-spinner-icon");return jsx(e,{id:m,"data-testid":"AnimatedSpinnerIcon",src:cc,alt:"Loading",className:"spinner-loader",width:n,height:i,sx:p,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}})},r=h;var u=r;export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-YKO3ZLJ4.js';import {Jc}from'./chunk-JPXKUMRX.js';import {memo,useId,useMemo}from'react';import {jsx}from'react/jsx-runtime';var m=({chipIndex:i,rowIndex:r,colIndex:t,selectedId:s})=>{let[,e,o,p]=(s??"").split("-");return Number(e)===r&&Number(o)===t&&Number(p)===i};function x({children:i,copyText:r,chipIndex:t,selectionProps:{onClick:s,rowIndex:e,colIndex:o,selectedId:p},...l}){let h=Jc(useId(),"status-chip-with-copy"),d=useMemo(()=>m({rowIndex:e,colIndex:o,selectedId:p,chipIndex:t}),[e,o,p,t]);return jsx(a,{...l,id:h,"data-testid":"StatusChipWithCopy",copyText:r,onClick:C=>{s?.(C,t);},isSelected:d,children:i})}var u=memo(x);var M=u;export{m as a,M as b};
|