@tap-payments/os-micro-frontend-shared 0.3.226 → 0.3.228-test.4
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-SWXXEAIZ.js → chunk-36UPNYZ2.js} +1 -1
- package/build/_chunks/{chunk-DKMFQFZU.js → chunk-57BVC26N.js} +1 -1
- package/build/_chunks/{chunk-GNNMQUBT.js → chunk-5SDOLBWD.js} +1 -1
- package/build/_chunks/{chunk-QZAVOGKZ.js → chunk-6JHWQUVB.js} +1 -1
- package/build/_chunks/{chunk-AIT2A7YM.js → chunk-6WRCJ3JV.js} +1 -1
- package/build/_chunks/{chunk-OBHJVUFA.js → chunk-7EDX7L2Q.js} +1 -1
- package/build/_chunks/{chunk-T5WRDF6Z.js → chunk-7RGDRE5N.js} +1 -1
- package/build/_chunks/chunk-A5TVBLMW.js +2 -0
- package/build/_chunks/{chunk-LIHS4ZYZ.js → chunk-A7XZTRW7.js} +1 -1
- package/build/_chunks/{chunk-KSTOW7O3.js → chunk-AC5FVKRE.js} +1 -1
- package/build/_chunks/chunk-AOQLIWPT.js +1 -0
- package/build/_chunks/{chunk-OAEOQ7AZ.js → chunk-AYC5LJR4.js} +1 -1
- package/build/_chunks/{chunk-DEQ2OTPX.js → chunk-B4PTS6YE.js} +1 -1
- package/build/_chunks/{chunk-OYJYQKLK.js → chunk-C5KT4W73.js} +1 -1
- package/build/_chunks/{chunk-LOGPCQ24.js → chunk-CVVU7LQU.js} +1 -1
- package/build/_chunks/chunk-DFKVDI3S.js +1 -0
- package/build/_chunks/{chunk-32CPM4J3.js → chunk-E54H2MD4.js} +1 -1
- package/build/_chunks/{chunk-FTG5LY7I.js → chunk-EDB7FWU3.js} +1 -1
- package/build/_chunks/{chunk-WE7NB24K.js → chunk-F6CKS6UM.js} +1 -1
- package/build/_chunks/{chunk-GIUONT72.js → chunk-FBZFU4SR.js} +1 -1
- package/build/_chunks/{chunk-P57UJVYY.js → chunk-FG5BQBHL.js} +1 -1
- package/build/_chunks/{chunk-J4V7VRJY.js → chunk-FRUIFUX5.js} +1 -1
- package/build/_chunks/{chunk-W3D5YN4V.js → chunk-FTJ66PQ7.js} +1 -1
- package/build/_chunks/{chunk-VTJJFPK5.js → chunk-GOOCA5DE.js} +1 -1
- package/build/_chunks/chunk-I5N5IAEF.js +1 -0
- package/build/_chunks/{chunk-S3YBXSFG.js → chunk-IBXQUIGS.js} +1 -1
- package/build/_chunks/{chunk-4SWNFKMX.js → chunk-IPDUNXKW.js} +1 -1
- package/build/_chunks/{chunk-KS7YB4UX.js → chunk-JATMZKQB.js} +1 -1
- package/build/_chunks/{chunk-CAKSLKXG.js → chunk-JEMYLMGO.js} +1 -1
- package/build/_chunks/{chunk-XBUO2UHM.js → chunk-K7IIZSSP.js} +1 -1
- package/build/_chunks/{chunk-GAL3X7PR.js → chunk-KW63NI5X.js} +1 -1
- package/build/_chunks/{chunk-ZGZK4AZ3.js → chunk-L3QTQGRX.js} +1 -1
- package/build/_chunks/{chunk-BIJMWICZ.js → chunk-LACJOZAQ.js} +1 -1
- package/build/_chunks/{chunk-F2LUAXXO.js → chunk-LMIQA4BQ.js} +1 -1
- package/build/_chunks/{chunk-6VQVT7U4.js → chunk-MIR5LWOK.js} +1 -1
- package/build/_chunks/{chunk-MMFW3YZV.js → chunk-MJMESYES.js} +1 -1
- package/build/_chunks/chunk-NBJVERMO.js +1 -0
- package/build/_chunks/{chunk-UD33MPJX.js → chunk-NRXZJ3SP.js} +1 -1
- package/build/_chunks/{chunk-WAY7BWQL.js → chunk-NSTK57XR.js} +1 -1
- package/build/_chunks/{chunk-YPVFVBG3.js → chunk-OIPJEXSN.js} +1 -1
- package/build/_chunks/{chunk-VQ4INPUZ.js → chunk-POBETEXT.js} +1 -1
- package/build/_chunks/{chunk-DPOBKAVX.js → chunk-PVFADDJD.js} +1 -1
- package/build/_chunks/{chunk-KD4RSWN6.js → chunk-PWK2Q4XY.js} +1 -1
- package/build/_chunks/{chunk-PHVELRMX.js → chunk-QDUVPDG5.js} +1 -1
- package/build/_chunks/{chunk-44UNMXKS.js → chunk-QI64N63S.js} +1 -1
- package/build/_chunks/{chunk-EI4VQCCM.js → chunk-RICZPR7Q.js} +1 -1
- package/build/_chunks/{chunk-HKQY74IJ.js → chunk-RJMMGFXQ.js} +1 -1
- package/build/_chunks/{chunk-33C463YL.js → chunk-RYUEVQJU.js} +1 -1
- package/build/_chunks/{chunk-TH5E43JD.js → chunk-SHPLL25Y.js} +1 -1
- package/build/_chunks/{chunk-DBFH6OKQ.js → chunk-SK7L4FPZ.js} +1 -1
- package/build/_chunks/{chunk-XSRIBZ5H.js → chunk-SQQQO7OV.js} +1 -1
- package/build/_chunks/{chunk-7GVPGH6A.js → chunk-T4EQN7S3.js} +1 -1
- package/build/_chunks/chunk-TBVDKU6Z.js +1 -0
- package/build/_chunks/{chunk-KV7KQ6MZ.js → chunk-TKJY4RKT.js} +1 -1
- package/build/_chunks/{chunk-JQTHWXQR.js → chunk-TOYCZFK4.js} +1 -1
- package/build/_chunks/chunk-UCMEXZPX.js +1 -0
- package/build/_chunks/{chunk-FNWPZLRV.js → chunk-UW7IPQHO.js} +1 -1
- package/build/_chunks/{chunk-W4PURLBP.js → chunk-VC74URMO.js} +1 -1
- package/build/_chunks/{chunk-TIO3V7XA.js → chunk-VLG2MR3G.js} +1 -1
- package/build/_chunks/{chunk-TY3LDUTP.js → chunk-VX4M7RWB.js} +1 -1
- package/build/_chunks/{chunk-AFDB2YM6.js → chunk-W3S7OIS3.js} +1 -1
- package/build/_chunks/{chunk-JEYLI22W.js → chunk-WBSLKERM.js} +1 -1
- package/build/_chunks/{chunk-R5PUIGMB.js → chunk-WJI2VGZO.js} +1 -1
- package/build/_chunks/{chunk-64ILCI3S.js → chunk-WLJRMDL2.js} +1 -1
- package/build/_chunks/chunk-WSUQM76Y.js +1 -0
- package/build/_chunks/{chunk-JORNMG4I.js → chunk-WUAPKJJD.js} +1 -1
- package/build/_chunks/{chunk-QGQRTANO.js → chunk-X57YOWP2.js} +1 -1
- package/build/_chunks/{chunk-MHZSYMQP.js → chunk-X7DIX5Y2.js} +1 -1
- package/build/_chunks/{chunk-4AFJCOBN.js → chunk-XBF2WYZ5.js} +1 -1
- package/build/_chunks/{chunk-FAKPBQH3.js → chunk-XJCQHAUH.js} +1 -1
- package/build/_chunks/{chunk-MBTSXCJW.js → chunk-XNEEY5CO.js} +1 -1
- package/build/_chunks/{chunk-O4UZRDVR.js → chunk-XUGHTNTE.js} +1 -1
- package/build/_chunks/{chunk-5EP3LEOE.js → chunk-Y53JKURM.js} +1 -1
- package/build/_chunks/{chunk-5DLQTR4L.js → chunk-Z4JJP2AI.js} +1 -1
- package/build/_chunks/{chunk-TKU4GMEV.js → chunk-Z5YTSBNX.js} +1 -1
- package/build/_chunks/chunk-ZQNQIXT7.js +2 -0
- package/build/_chunks/{chunk-545BCGVE.js → chunk-ZRSUSRXM.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/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/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ChipStack/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/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/CurrencyAmount.d.ts +3 -7
- package/build/components/CurrencyAmount/constants.d.ts +8 -0
- package/build/components/CurrencyAmount/index.d.ts +4 -4
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmount/style.d.ts +3 -0
- package/build/components/CurrencyAmount/type.d.ts +11 -0
- package/build/components/CurrencyAmountInput/CurrencyAmountInput.d.ts +4 -0
- package/build/components/CurrencyAmountInput/constants.d.ts +10 -0
- package/build/components/CurrencyAmountInput/index.d.ts +4 -0
- package/build/components/CurrencyAmountInput/index.js +1 -0
- package/build/components/CurrencyAmountInput/style.d.ts +11 -0
- package/build/components/CurrencyAmountInput/type.d.ts +16 -0
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.d.ts +0 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/JSONViewer/style.d.ts +0 -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/MerchantLogo/index.js +1 -1
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/OpenFileInNewTab/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RHFGroupedSelect/index.js +1 -1
- package/build/components/RHFInput/index.js +1 -1
- package/build/components/RHFPhoneInput/index.js +1 -1
- package/build/components/RHFSwitch/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/Sidebar.d.ts +4 -0
- package/build/components/Sidebar/constants.d.ts +10 -0
- package/build/components/Sidebar/index.d.ts +3 -0
- package/build/components/Sidebar/index.js +1 -0
- package/build/components/Sidebar/style.d.ts +18 -0
- package/build/components/Sidebar/type.d.ts +35 -0
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +0 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/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/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/index.d.ts +3 -6
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.js +1 -1
- package/build/constants/style.d.ts +1 -0
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-4XXNGLS6.js +0 -1
- package/build/_chunks/chunk-6YAD5SCS.js +0 -2
- package/build/_chunks/chunk-BL45EG5I.js +0 -1
- package/build/_chunks/chunk-FKG3SYY6.js +0 -1
- package/build/_chunks/chunk-MQOX7MKN.js +0 -1
- package/build/_chunks/chunk-ND2SYD7Y.js +0 -1
- package/build/_chunks/chunk-U62XSJM5.js +0 -1
- package/build/_chunks/chunk-UO33K26R.js +0 -1
- package/build/_chunks/chunk-V2RLDP5A.js +0 -2
- package/build/components/AmountInput/AmountInput.d.ts +0 -14
- package/build/components/AmountInput/index.d.ts +0 -2
- package/build/components/AmountInput/index.js +0 -1
- package/build/components/AmountInput/style.d.ts +0 -7
- package/build/components/Customer/CustomerDropdown/CustomerDropdown.d.ts +0 -8
- package/build/components/Customer/CustomerDropdown/index.d.ts +0 -1
- package/build/components/Customer/CustomerDropdown/style.d.ts +0 -10
- package/build/components/Customer/CustomerForms/CustomerEmailForm.d.ts +0 -12
- package/build/components/Customer/CustomerForms/CustomerFullInfo.d.ts +0 -14
- package/build/components/Customer/CustomerForms/CustomerFullInfoForm.d.ts +0 -12
- package/build/components/Customer/CustomerForms/CustomerPhoneNumberForm.d.ts +0 -12
- package/build/components/Customer/CustomerForms/index.d.ts +0 -9
- package/build/components/Customer/CustomerForms/style.d.ts +0 -24
- package/build/components/Customer/CustomerForms/validation.d.ts +0 -30
- package/build/components/Customer/index.d.ts +0 -2
- package/build/components/Customer/index.js +0 -1
- package/build/components/DisplayAmount/DisplayAmount.d.ts +0 -12
- package/build/components/DisplayAmount/index.d.ts +0 -2
- package/build/components/DisplayAmount/index.js +0 -1
- package/build/components/DisplayAmount/style.d.ts +0 -5
- package/build/components/ExpandableSideBar/ExpandableSideBar.d.ts +0 -5
- package/build/components/ExpandableSideBar/constant.d.ts +0 -1
- package/build/components/ExpandableSideBar/index.d.ts +0 -3
- package/build/components/ExpandableSideBar/index.js +0 -1
- package/build/components/ExpandableSideBar/style.d.ts +0 -22
- package/build/components/ExpandableSideBar/type.d.ts +0 -17
- package/build/components/Inputs/CountriesDropDown/CountriesDropdown.d.ts +0 -13
- package/build/components/Inputs/CountriesDropDown/index.d.ts +0 -3
- package/build/components/Inputs/CountriesDropDown/style.d.ts +0 -22
- package/build/components/WindowSideBar/WindowSideBar.d.ts +0 -11
- package/build/components/WindowSideBar/constant.d.ts +0 -1
- package/build/components/WindowSideBar/index.d.ts +0 -5
- package/build/components/WindowSideBar/index.js +0 -1
- package/build/components/WindowSideBar/style.d.ts +0 -14
- package/build/components/WindowSideBar/type.d.ts +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {f}from'./chunk-
|
|
1
|
+
import {f}from'./chunk-VLG2MR3G.js';import e from'@mui/material/Box';import l from'@mui/material/Button';import d from'@mui/material/Input';import n from'@mui/material/ListSubheader';import r from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';var c=keyframes`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(-90deg);
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {lc}from'./chunk-
|
|
1
|
+
import {lc}from'./chunk-I5N5IAEF.js';import {forwardRef,memo}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled}from'@mui/material/styles';var o="os-shared-MaskedText",t={root:`${o}-root`,start:`${o}-start`,mask:`${o}-mask`,end:`${o}-end`};var p=()=>jsxs("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,children:[jsx("circle",{cx:"3",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"8",cy:"4",r:"1.5",fill:"currentColor"}),jsx("circle",{cx:"13",cy:"4",r:"1.5",fill:"currentColor"})]});var k=styled("span")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.v2.spacing(2),minWidth:0,color:"inherit",font:"inherit",lineHeight:1,whiteSpace:"nowrap"})),m=styled("span")({minWidth:0}),c=styled("span")({display:"inline-flex",alignItems:"center",flexShrink:0,lineHeight:0,"& svg":{display:"block",width:16,height:8}});function M(e,d,n){let s=Math.max(0,d),a=Math.max(0,n);return !e||s+a>=e.length?{start:e,end:"",isMasked:false}:{start:e.slice(0,s),end:e.slice(e.length-a),isMasked:true}}var T=forwardRef(({className:e,sx:d,text:n,startLength:s=8,endLength:a=4,separator:y,id:h,...g},S)=>{let{start:C,end:N,isMasked:u}=M(n,s,a);return jsxs(k,{ref:S,id:h??"MaskedText",className:lc(t.root,e),sx:d,"data-testid":"MaskedText",...g,children:[jsx(m,{className:t.start,children:C}),u&&jsxs(Fragment,{children:[jsx(c,{className:t.mask,children:y??jsx(p,{})}),jsx(m,{className:t.end,children:N})]})]})});T.displayName="MaskedText";var P=memo(T);
|
|
2
2
|
export{t as a,P as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {h}from'./chunk-
|
|
1
|
+
import {h}from'./chunk-VLG2MR3G.js';import*as e from'react';import {useFormContext,Controller}from'react-hook-form';import {jsx}from'react/jsx-runtime';function r({name:m,disabled:n,...c}){let{control:p}=useFormContext();return jsx(Controller,{name:m,control:p,render:({field:{name:a,onBlur:s,onChange:h$1,value:l,disabled:d}})=>jsx(h,{...c,onChange:h$1,onBlur:s,name:a,disabled:d||n,checked:l??false})})}r.displayName="RHFSwitch";var i=e.memo(r);var x=i;export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-NRXZJ3SP.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,b,d as d$1,n}from'./chunk-
|
|
1
|
+
import {j,b,d as d$1,n}from'./chunk-VLG2MR3G.js';import {Wb,zc}from'./chunk-I5N5IAEF.js';import {Bj,Cj,Ij,Oe as Oe$1}from'./chunk-ZQNQIXT7.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),w=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:b$1,successFooter:pe,progressVariant:ae},ne)=>{let{t:a}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let B=Wb(x?.maxSize||0,0).toUpperCase(),c=useMemo(()=>{let ce=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),me=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||ce?a("invalidFileType"):me?`File is larger than ${B}`:R},[j,R,s,B,a]),C=useMemo(()=>n$1.length?jsxs(w,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Wb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Bj,width:56,height:56}),C]})}),pe??jsxs(Q,{children:[jsx(b,{variant:"secondary",size:"md",icon:jsx(d$1,{src:Cj,alt:"delete"}),onClick:()=>{H([]);},"aria-label":"delete"}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a("uploading")}),jsx(g,{children:a("wait")})]}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),C]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[c?jsx(d,{isError:true,children:c}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a("uploadBulkFile")}),S||!!c&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:b$1,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:c?Ij:Oe$1,width:56,height:56}),te,C,c?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a("uploadAgain")})}):jsxs(w,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",B]}),e&&jsx(g,{children:a("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=zc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Oe=ee;export{Oe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {$,Fb,A,uc,vc}from'./chunk-
|
|
1
|
+
import {$,Fb,A,uc,vc}from'./chunk-I5N5IAEF.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function H(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function ge(){let[e,n]=useState(H);return useEffect(()=>{let t;function o(){cancelAnimationFrame(t),t=requestAnimationFrame(()=>{n(H());});}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),cancelAnimationFrame(t);}},[]),e}var Te=()=>{let[e,n]=useState(false),[t,o]=useState(false),r=useCallback(()=>{n(true);},[]),s=useCallback(()=>{n(false);},[]),i=useCallback(()=>{o(true);},[]),a=useCallback(()=>{o(false);},[]);return {onMouseContentEnter:i,onMouseContentLeave:a,isHovered:e,isContentHovered:t,onMouseEnter:r,onMouseLeave:s}};function be({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let r;return e?o(e):r=setTimeout(()=>{o(e);},n),()=>{clearTimeout(r);}},[e]),t}function Me(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(s=>({...s,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(s=>s?t[s]:"",[t])}}var ke=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{$()||(window.location.href="/login");},[e]);};function He(e){return {isParameterSelected:(o,r)=>r?.map(s=>Fb(e,o,s)),getColumnOrder:o=>{let r=e.findIndex(s=>s.name?.toLowerCase()===o?.toLowerCase());return r===-1?100:r}}}var De=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=e?.current;if(!o)return;let r=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});return r.observe(o),()=>r.disconnect()},[e]),{showShadow:n}};var Pe=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function ze(){let[e,n]=useState(0),t=useRef(null),o=A(e),r=()=>{t.current&&(clearInterval(t.current),t.current=null);},s=()=>{r(),n(0);},i=a=>{a<=0||(t.current&&r(),n(a),t.current=setInterval(()=>{n(c=>{let u=c-1;return u<=0&&r(),u});},1e3));};return useEffect(()=>()=>{r();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:r,resetTimer:s}}var Ne=e=>{let n=useMemo(()=>new Map(e.map(i=>[i.code.toLowerCase(),i])),[e]),t=useCallback(i=>n.get(i.toLowerCase()),[n]),o=useCallback(({appCode:i,serviceCode:a})=>t(i)?.app_services.find(({code:c})=>c.toLowerCase()===a.toLowerCase()),[t]),r=useCallback(({appCode:i,serviceCode:a})=>o({appCode:i,serviceCode:a})?.functions??[],[o]),s=useCallback(({appCode:i,serviceCode:a,functionCode:c})=>r({appCode:i,serviceCode:a}).find(({code:u})=>u?.toLowerCase()===c.toLowerCase()),[r]);return {getAppInfo:t,getServiceInfo:o,getServiceFunctions:r,getFunctionInfo:s}};function F(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Xe(e,n){let t=useRef(n);t.current=n,useEffect(()=>{let o=r=>{let s=r;t.current(...s.detail||[]);};return window.addEventListener(e,o),()=>{window.removeEventListener(e,o);}},[e]);}var et=(e,n)=>{let{selectedEntity:t,selectedMerchant:o,displayName:r}=useMemo(()=>{let s=n?.entities.find(c=>c.id===e?.entityId),i=s?.merchants?.find(c=>c.id===e?.merchantId),a=i?.display_name??i?.legacy_id??"Select";return {selectedEntity:s,selectedMerchant:i,displayName:a}},[n,e?.entityId,e?.merchantId]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:r}};var se=()=>crypto.randomUUID();function rt(){let e=F("on-toast"),n=useCallback(t=>(o,r)=>{let s=r?.id??se();return e({action:"show",variant:t,message:o,options:{...r,id:s}}),s},[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 ae=10;function at({threshold:e=ae,containerRef:n}={}){let[t,o]=useState(true),[r,s]=useState(false),[i,a]=useState(false),c=useCallback(l=>{let{scrollTop:m,scrollHeight:p,clientHeight:f}=l;a(p>f+e),o(m<=e),s(p-(m+f)<=e);},[e]),u=useCallback(l=>{if(l){if("currentTarget"in l){c(l.currentTarget);return}c(l);}},[c]);return useEffect(()=>{if(!n?.current)return;let l=n.current;u(l);let m=new ResizeObserver(()=>{u(l);});return m.observe(l),()=>{m.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:r,scrollable:i}}var lt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:r=5e3}=e,s=typeof window<"u"&&typeof navigator<"u",[i,a]=useState(s?navigator.onLine:true),[c,u]=useState(false),[l,m]=useState(null),p=useRef(null),f=useRef(null),g=useCallback(d=>{p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{a(d),p.current=null;},o);},[o]);return useEffect(()=>{if(!s)return;let d=null,w=()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null);},v=async()=>{u(true),m(null),d?.abort(),d=new AbortController;try{let M=window.setTimeout(()=>{d?.abort();},r),y=await fetch(n,{method:"GET",cache:"no-store",signal:d.signal});window.clearTimeout(M);let x=y.ok;g(x),x?w():m(`Health check failed with status ${y.status}`);}catch{g(false),m("Unable to reach network");}finally{u(false);}},S=()=>{w(),g(true);},C=()=>{g(false),w(),v(),f.current=window.setInterval(v,t);};return window.addEventListener("online",S),window.addEventListener("offline",C),navigator.onLine||(v(),f.current=window.setInterval(v,t)),()=>{window.removeEventListener("online",S),window.removeEventListener("offline",C),p.current!==null&&window.clearTimeout(p.current),w(),d?.abort();}},[s,n,t,o,r,g]),s?{isOnline:i,isChecking:c,error:l}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var dt=(e={},n,t)=>{let o=uc(e,t.requiredFilterKeys);return {columns:useMemo(()=>vc(n,o,t),[n,o])}};function ht(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}function Ct(){let[e,n]=useState(true);return {onScrollHandler:useCallback(o=>{let{scrollTop:r,scrollHeight:s,clientHeight:i}=o.currentTarget,a=r===0||i<s-r-1;n(c=>c===a?c:a);},[]),showShadow:e}}export{ge as a,Te as b,be as c,Me as d,ke as e,He as f,De as g,Pe as h,ze as i,Ne as j,F as k,Xe as l,et as m,rt as n,at as o,lt as p,dt as q,ht as r,Ct as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {zc}from'./chunk-
|
|
1
|
+
import {zc}from'./chunk-I5N5IAEF.js';import {Nj,j,m as m$1}from'./chunk-ZQNQIXT7.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {jsx}from'react/jsx-runtime';function g({countryCode:o,currencyCode:t,...n}){let l=zc(useId(),"country-flag");return jsx(d,{...n,id:l,"data-testid":"CountryFlag",component:"img",src:o&&j(o)||t&&m$1(t)||Nj,width:n.width||16,alt:o??t??"flag",loading:"lazy",onError:u=>{u.currentTarget.src=Nj;}})}g.displayName="CountryFlag";var m=memo(g);var h=m;export{h as a};
|