@zydon/common 2.7.50 → 2.7.52
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/dist/{chunk-RBXJBUAX.js → chunk-57TAXCGA.js} +2 -2
- package/dist/{chunk-TLF76YLT.js → chunk-67G3SU45.js} +3 -3
- package/dist/{chunk-ME427CYO.js → chunk-6KDIPK6I.js} +2 -2
- package/dist/{chunk-M7G7BBNO.js → chunk-BPJ7GVOR.js} +3 -3
- package/dist/{chunk-RXJFG4ZF.js → chunk-BXHP4CYE.js} +2 -2
- package/dist/{chunk-RO6KQM2A.js → chunk-GG2QI35C.js} +4 -4
- package/dist/{chunk-AXH2MGYR.js → chunk-HDBCZZRX.js} +2 -2
- package/dist/{chunk-YHAGF7IQ.js → chunk-JD3H2MXN.js} +2 -2
- package/dist/{chunk-GHEFHID3.js → chunk-JHNJP4OO.js} +2 -2
- package/dist/{chunk-JN7AYFK2.js → chunk-JK273LN4.js} +3 -3
- package/dist/{chunk-5NVPK5JK.js → chunk-KTME4D5T.js} +2 -2
- package/dist/{chunk-WIQJA25K.js → chunk-LKPDHISO.js} +2 -2
- package/dist/{chunk-GTWJQJAN.js → chunk-MH47LABH.js} +2 -2
- package/dist/chunk-MZN5X6GM.js +7 -0
- package/dist/chunk-MZN5X6GM.js.map +1 -0
- package/dist/{chunk-GQNMT5OL.js → chunk-SBFNQNWD.js} +4 -4
- package/dist/chunk-SBFNQNWD.js.map +1 -0
- package/dist/chunk-TC4DDJSR.js +5 -0
- package/dist/chunk-TC4DDJSR.js.map +1 -0
- package/dist/{chunk-4DRAVVKF.js → chunk-TNVKQPKP.js} +2 -2
- package/dist/{chunk-KTDUAIF6.js → chunk-UBAQSPT5.js} +3 -3
- package/dist/{chunk-F6U6MBF2.js → chunk-V76B4HM6.js} +2 -2
- package/dist/{chunk-56WDC6RW.js → chunk-VJIUU4C3.js} +6 -6
- package/dist/{chunk-25RD3FNB.js → chunk-YSXPBMQX.js} +2 -2
- package/dist/components/ActionButton/index.js +3 -3
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/AvatarButton/index.js +5 -5
- package/dist/components/BuilderLayout/index.js +3 -3
- package/dist/components/BuilderSidebar/index.js +2 -2
- package/dist/components/CardBrand/index.d.ts +9 -0
- package/dist/components/CardBrand/index.js +14 -0
- package/dist/components/CardBrand/index.js.map +1 -0
- package/dist/components/CardBrandText/index.js +2 -0
- package/dist/components/CardBrandText/index.js.map +1 -1
- package/dist/components/Common/index.js +5 -5
- package/dist/components/DataView/index.js +3 -3
- package/dist/components/DragButton/index.js +3 -3
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/EasyCropModal/index.js +4 -4
- package/dist/components/Error/index.js +2 -2
- package/dist/components/ExpandableGroup/index.js +2 -2
- package/dist/components/FileUpload/index.js +8 -8
- package/dist/components/FrameSkeleton/index.js +2 -2
- package/dist/components/HelpButton/index.js +3 -3
- package/dist/components/Icon/index.js +2 -2
- package/dist/components/IconButton/index.js +3 -3
- package/dist/components/ImageCropModal/index.js +4 -4
- package/dist/components/Incrementer/index.js +3 -3
- package/dist/components/InfoCircle/index.js +2 -2
- package/dist/components/ListBundles/index.js +3 -3
- package/dist/components/MenuItem/index.js +2 -2
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/MoreMenu/index.js +2 -2
- package/dist/components/PasswordRules/index.js +2 -2
- package/dist/components/PopoverSelect/index.js +2 -2
- package/dist/components/SearchInput/index.js +3 -3
- package/dist/components/SelectableCards/index.js +4 -4
- package/dist/components/SeoPreview/index.js +2 -2
- package/dist/components/StateDisplay/index.js +3 -3
- package/dist/components/Steps/index.js +2 -2
- package/dist/components/StyledTab/index.js +2 -2
- package/dist/components/SwapList/index.js +3 -3
- package/dist/components/ToggleTheme/index.js +3 -3
- package/dist/components/WebhookCard/index.js +2 -2
- package/dist/components/carousel/index.js +3 -3
- package/dist/components/form/Address/index.js +5 -5
- package/dist/components/form/Autocomplete/index.js +4 -4
- package/dist/components/form/FileUpload/index.js +8 -8
- package/dist/components/form/Incrementer/index.js +3 -3
- package/dist/components/form/Password/index.js +2 -2
- package/dist/components/form/SelectableCards/index.js +4 -4
- package/dist/components/form/UploadAvatarWithCrop/index.js +5 -5
- package/dist/components/form/UploadWithCrop/index.js +6 -6
- package/dist/components/form/Webhook/index.js +5 -5
- package/dist/components/lightbox/index.js +2 -2
- package/dist/components/table/index.js +3 -3
- package/dist/components/upload/index.js +7 -7
- package/dist/contexts/PushNotifications/index.js +1 -1
- package/dist/hooks/useThemeToggle.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/theme/core/index.d.ts +1 -1
- package/dist/theme/styles/index.d.ts +13 -13
- package/dist/theme/theme-provider.js +3 -3
- package/dist/types/icon.d.ts +1 -0
- package/dist/types/icon.js +1 -1
- package/dist/utils/cards.js +2 -6
- package/dist/utils/cards.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GQNMT5OL.js.map +0 -1
- package/dist/chunk-XM4SVZO6.js +0 -5
- package/dist/chunk-XM4SVZO6.js.map +0 -1
- package/dist/{chunk-RBXJBUAX.js.map → chunk-57TAXCGA.js.map} +0 -0
- package/dist/{chunk-TLF76YLT.js.map → chunk-67G3SU45.js.map} +0 -0
- package/dist/{chunk-ME427CYO.js.map → chunk-6KDIPK6I.js.map} +0 -0
- package/dist/{chunk-M7G7BBNO.js.map → chunk-BPJ7GVOR.js.map} +0 -0
- package/dist/{chunk-RXJFG4ZF.js.map → chunk-BXHP4CYE.js.map} +0 -0
- package/dist/{chunk-RO6KQM2A.js.map → chunk-GG2QI35C.js.map} +0 -0
- package/dist/{chunk-AXH2MGYR.js.map → chunk-HDBCZZRX.js.map} +0 -0
- package/dist/{chunk-YHAGF7IQ.js.map → chunk-JD3H2MXN.js.map} +0 -0
- package/dist/{chunk-GHEFHID3.js.map → chunk-JHNJP4OO.js.map} +0 -0
- package/dist/{chunk-JN7AYFK2.js.map → chunk-JK273LN4.js.map} +0 -0
- package/dist/{chunk-5NVPK5JK.js.map → chunk-KTME4D5T.js.map} +0 -0
- package/dist/{chunk-WIQJA25K.js.map → chunk-LKPDHISO.js.map} +0 -0
- package/dist/{chunk-GTWJQJAN.js.map → chunk-MH47LABH.js.map} +0 -0
- package/dist/{chunk-4DRAVVKF.js.map → chunk-TNVKQPKP.js.map} +0 -0
- package/dist/{chunk-KTDUAIF6.js.map → chunk-UBAQSPT5.js.map} +0 -0
- package/dist/{chunk-F6U6MBF2.js.map → chunk-V76B4HM6.js.map} +0 -0
- package/dist/{chunk-56WDC6RW.js.map → chunk-VJIUU4C3.js.map} +0 -0
- package/dist/{chunk-25RD3FNB.js.map → chunk-YSXPBMQX.js.map} +0 -0
- package/dist/{index-c8f1e6e7.d.ts → index-5a5e5dc8.d.ts} +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-6KDIPK6I.js';
|
|
2
2
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ var f=({name:t,helperText:l,rules:s,onSelectOption:e,InputLabelProps:a$1,...u})=
|
|
|
6
6
|
|
|
7
7
|
export { i as a };
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-57TAXCGA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p, f } from './chunk-SA2BESEB.js';
|
|
2
|
-
import { a as a$3 } from './chunk-
|
|
2
|
+
import { a as a$3 } from './chunk-JK273LN4.js';
|
|
3
3
|
import { e } from './chunk-OF6623HG.js';
|
|
4
|
-
import { a } from './chunk-
|
|
4
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
5
5
|
import { a as a$1 } from './chunk-SBMEL2IJ.js';
|
|
6
6
|
import { a as a$2 } from './chunk-62UHO7QG.js';
|
|
7
7
|
import { k } from './chunk-GLRLKFPS.js';
|
|
@@ -20,4 +20,4 @@ O novo UploadAvatar oferece melhor gerenciamento de upload e integra\xE7\xE3o co
|
|
|
20
20
|
|
|
21
21
|
export { B as a, uo as b };
|
|
22
22
|
//# sourceMappingURL=out.js.map
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-67G3SU45.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import { createContext, forwardRef, useContext, useState, useMemo, useRef, useEffect } from 'react';
|
|
3
3
|
import le, { autocompleteClasses } from '@mui/material/Autocomplete';
|
|
4
4
|
import ae from '@mui/material/CircularProgress';
|
|
@@ -16,4 +16,4 @@ var k=8,te=u=>{let{data:o,index:n,style:m}=u,r=o[n],{showValueInLabel:i,key:d,..
|
|
|
16
16
|
|
|
17
17
|
export { Je as a };
|
|
18
18
|
//# sourceMappingURL=out.js.map
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-6KDIPK6I.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a } from './chunk-LDGBS7ZI.js';
|
|
2
|
+
import { a as a$1, e } from './chunk-6W52DPH4.js';
|
|
2
3
|
import { a as a$3, b } from './chunk-TWSAWMZ3.js';
|
|
4
|
+
import { p, r, a as a$2 } from './chunk-EQYL7U3J.js';
|
|
3
5
|
import { a as a$5 } from './chunk-WUFEPE2G.js';
|
|
4
6
|
import { c, b as b$1 } from './chunk-2WG6OWB4.js';
|
|
5
|
-
import { a as a$1, e } from './chunk-6W52DPH4.js';
|
|
6
|
-
import { p, r, a as a$2 } from './chunk-EQYL7U3J.js';
|
|
7
7
|
import { d, a as a$4 } from './chunk-GLRLKFPS.js';
|
|
8
8
|
import { useEffect, useMemo } from 'react';
|
|
9
9
|
import M from '@mui/material/CssBaseline';
|
|
@@ -15,4 +15,4 @@ var W=t=>({lighter:lighten(t,.815),light:lighten(t,.225),main:t,dark:darken(t,.1
|
|
|
15
15
|
|
|
16
16
|
export { x as a, te as b };
|
|
17
17
|
//# sourceMappingURL=out.js.map
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-BPJ7GVOR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a } from './chunk-KIWSLR76.js';
|
|
2
2
|
import { f } from './chunk-OF6623HG.js';
|
|
3
|
-
import { a as a$1 } from './chunk-
|
|
3
|
+
import { a as a$1 } from './chunk-SBFNQNWD.js';
|
|
4
4
|
import { forwardRef, useState, useRef, useMemo, useCallback } from 'react';
|
|
5
5
|
import T from '@mui/material/IconButton';
|
|
6
6
|
import R from '@mui/material/InputAdornment';
|
|
@@ -10,4 +10,4 @@ var C=forwardRef(({name:M,increment:e=1,updadteForMultiple:P,allowNegative:u=!1,
|
|
|
10
10
|
|
|
11
11
|
export { S as a };
|
|
12
12
|
//# sourceMappingURL=out.js.map
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-BXHP4CYE.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c, g, p, n, d, e as e$1, a as a$6, b, h, i, l, m as m$1, j as j$1, k as k$1 } from './chunk-SA2BESEB.js';
|
|
2
|
-
import { a as a$5 } from './chunk-
|
|
2
|
+
import { a as a$5 } from './chunk-JK273LN4.js';
|
|
3
3
|
import { a as a$1 } from './chunk-DTIGB5NW.js';
|
|
4
4
|
import { e } from './chunk-OF6623HG.js';
|
|
5
|
-
import { a as a$7 } from './chunk-
|
|
5
|
+
import { a as a$7 } from './chunk-KTME4D5T.js';
|
|
6
6
|
import { x } from './chunk-33C6UWPV.js';
|
|
7
7
|
import { a as a$4 } from './chunk-6U5LS7MP.js';
|
|
8
|
-
import { a } from './chunk-
|
|
8
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
9
9
|
import { a as a$2 } from './chunk-SBMEL2IJ.js';
|
|
10
10
|
import { j } from './chunk-VITOOMKK.js';
|
|
11
11
|
import { a as a$3 } from './chunk-62UHO7QG.js';
|
|
@@ -39,4 +39,4 @@ O SingleImageUpload oferece crop integrado, melhor gerenciamento de upload e int
|
|
|
39
39
|
|
|
40
40
|
export { eo as a, Oo as b, wr as c, Ko as d, St as e };
|
|
41
41
|
//# sourceMappingURL=out.js.map
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-GG2QI35C.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import { k, b } from './chunk-GLRLKFPS.js';
|
|
3
3
|
import { forwardRef, Children, isValidElement, useMemo, useState, useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
import N from '@mui/material/Box';
|
|
@@ -14,4 +14,4 @@ var Ge={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg
|
|
|
14
14
|
|
|
15
15
|
export { Ge as a, p as b, w as c, T as d, R as e, io as f, Co as g, ho as h, So as i, h as j, To as k, Lo as l, Ne as m, qo as n, St as o };
|
|
16
16
|
//# sourceMappingURL=out.js.map
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-HDBCZZRX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import { useRef } from 'react';
|
|
3
3
|
import A from '@mui/material/IconButton';
|
|
4
4
|
import l from '@mui/material/InputAdornment';
|
|
@@ -9,4 +9,4 @@ var h=({onSearch:n,onChange:i,trigger:d="click",iconPosition:r="end",tabIndex:f,
|
|
|
9
9
|
|
|
10
10
|
export { R as a };
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-JD3H2MXN.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import d from '@mui/material/Button';
|
|
4
4
|
import o from '@mui/material/Stack';
|
|
@@ -10,4 +10,4 @@ var R=r=>{switch(r){case"success":return jsx(a,{"data-testid":"icon-SUCCESS",ico
|
|
|
10
10
|
|
|
11
11
|
export { _ as a };
|
|
12
12
|
//# sourceMappingURL=out.js.map
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-JHNJP4OO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as a$2 } from './chunk-ESFOFEVL.js';
|
|
2
|
-
import { a } from './chunk-
|
|
3
|
-
import { a as a$3 } from './chunk-
|
|
2
|
+
import { a } from './chunk-V76B4HM6.js';
|
|
3
|
+
import { a as a$3 } from './chunk-SBFNQNWD.js';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import M from '@mui/lab/LoadingButton';
|
|
6
6
|
import r from '@mui/material/Button';
|
|
@@ -13,4 +13,4 @@ var y=({id:p,open:u,onClose:e,label:g,onSave:s,onRemove:f,onPreview:h,imageSrc:C
|
|
|
13
13
|
|
|
14
14
|
export { Z as a };
|
|
15
15
|
//# sourceMappingURL=out.js.map
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-JK273LN4.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import c from '@mui/material/IconButton';
|
|
3
3
|
import s from '@mui/material/Stack';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -8,4 +8,4 @@ var a=styled(c)(({theme:t})=>({position:"absolute",top:0,left:-2,zIndex:1,color:
|
|
|
8
8
|
|
|
9
9
|
export { D as a };
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-KTME4D5T.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import p from '@mui/material/Button';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ var e=({link:o,...n})=>jsx(p,{...n,startIcon:jsx(a$1,{icon:"HELP_CIRCLE"}),varia
|
|
|
6
6
|
|
|
7
7
|
export { a };
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-LKPDHISO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-SBFNQNWD.js';
|
|
2
2
|
import c from '@mui/lab/LoadingButton';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ var i=({actionType:n,children:E,...r})=>{let A={SAVE:"SAVE_MARK",NEW:"SIMPLE_ADD
|
|
|
6
6
|
|
|
7
7
|
export { C as a };
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-MH47LABH.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-RFAAH7QG.js';
|
|
2
|
+
|
|
3
|
+
var a={["VISA"]:"Visa",["MASTERCARD"]:"Mastercard",["AMEX"]:"American Express",["DISCOVER"]:"Discover",["DINERSCLUB"]:"Diners Club",["JCB"]:"JCB",["UNIONPAY"]:"UnionPay",["MAESTRO"]:"Maestro",["CIRRUS"]:"Cirrus",["HIPER"]:"Hiper",["HIPERCARD"]:"Hipercard",["ELO"]:"Elo",["PIX"]:"PIX",["PAYPAL"]:"PayPal",["GPAY"]:"GPay",["APPLEPAY"]:"Apple Pay",["AMAZONPAY"]:"Amazon Pay",["MERCADOPAY"]:"Mercado Pay",["GENERIC"]:"Gen\xE9rico"},C=e=>{let A=a$1(e);return a[A]||a["GENERIC"]};
|
|
4
|
+
|
|
5
|
+
export { C as a };
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=chunk-MZN5X6GM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/cards.ts"],"names":["cardBrandMapping","getCardBrand","cardNumber","flagCard","getFlagCard"],"mappings":"wCAIA,IAAMA,EAAmB,CACvB,OAAc,EAAG,OACjB,aAAoB,EAAG,aACvB,OAAc,EAAG,mBACjB,WAAkB,EAAG,WACrB,aAAoB,EAAG,cACvB,MAAa,EAAG,MAChB,WAAkB,EAAG,WACrB,UAAiB,EAAG,UACpB,SAAgB,EAAG,SACnB,QAAe,EAAG,QAClB,YAAmB,EAAG,YACtB,MAAa,EAAG,MAChB,MAAa,EAAG,MAChB,SAAgB,EAAG,SACnB,OAAc,EAAG,OACjB,WAAkB,EAAG,YACrB,YAAmB,EAAG,aACtB,aAAoB,EAAG,cACvB,UAAiB,EAAG,aACtB,EAEaC,EAAgBC,GAAuB,CAClD,IAAMC,EAAWC,EAAYF,CAAU,EAEvC,OACEF,EAAiBG,CAAoB,GAAKH,WAAiC,CAE/E","sourcesContent":["import { CardType } from 'types/cards';\n\nimport { getFlagCard as getCardType } from './flagCard';\n\nconst cardBrandMapping = {\n [CardType.VISA]: 'Visa',\n [CardType.MASTERCARD]: 'Mastercard',\n [CardType.AMEX]: 'American Express',\n [CardType.DISCOVER]: 'Discover',\n [CardType.DINERSCLUB]: 'Diners Club',\n [CardType.JCB]: 'JCB',\n [CardType.UNIONPAY]: 'UnionPay',\n [CardType.MAESTRO]: 'Maestro',\n [CardType.CIRRUS]: 'Cirrus',\n [CardType.HIPER]: 'Hiper',\n [CardType.HIPERCARD]: 'Hipercard',\n [CardType.ELO]: 'Elo',\n [CardType.PIX]: 'PIX',\n [CardType.PAYPAL]: 'PayPal',\n [CardType.GPAY]: 'GPay',\n [CardType.APPLEPAY]: 'Apple Pay',\n [CardType.AMAZONPAY]: 'Amazon Pay',\n [CardType.MERCADOPAY]: 'Mercado Pay',\n [CardType.GENERIC]: 'Genérico',\n};\n\nexport const getCardBrand = (cardNumber: string) => {\n const flagCard = getCardType(cardNumber);\n\n return (\n cardBrandMapping[flagCard as CardType] || cardBrandMapping[CardType.GENERIC]\n );\n};\n\nexport { getCardType };\n"]}
|