@woovi/ui 6.0.0 → 6.0.2
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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Avatar as i,Box as a,Button as o,Card as n,CardActionArea as l,CardMedia as s,Checkbox as d,CircularProgress as c,Collapse as p,Dialog as m,DialogActions as h,DialogContent as u,DialogContentText as x,DialogTitle as f,Divider as g,Drawer as C,Fade as y,Grid as b,IconButton as v,Input as w,InputAdornment as M,Link as I,List as E,ListItem as S,ListItemIcon as A,ListItemText as k,Popper as T,Skeleton as D,Stack as R,Step as L,StepConnector as _,StepLabel as P,Stepper as N,SwipeableDrawer as O,Tab as z,Tabs as H,TextField as F,Tooltip as W,Typography as V,lighten as B,styled as j,useTheme as G}from"@mui/material";import Z from"@mui/material/Avatar";import{ThemeProvider as $,alpha as U,createTheme as Y,darken as q,lighten as X,styled as K,useTheme as Q}from"@mui/material/styles";import J from"@mui/lab/AvatarGroup";import ee from"@mui/material/Stack";import{Link as et,NavLink as er,Route as ei,matchPath as ea,useHistory as eo,useLocation as en,useParams as el}from"react-router-dom";import es from"@mui/material/Icon";import ed from"@mui/material/Button";import ec,{Component as ep,Fragment as em,createContext as eh,createElement as eu,forwardRef as ex,memo as ef,useCallback as eg,useContext as eC,useEffect as ey,useId as eb,useLayoutEffect as ev,useMemo as ew,useReducer as eM,useRef as eI,useState as eE}from"react";import eS from"@mui/icons-material/ArrowDropDown.js";import eA from"@mui/material/ButtonGroup";import ek from"@mui/material/ClickAwayListener";import eT from"@mui/material/Grow";import eD from"@mui/material/MenuItem";import eR from"@mui/material/MenuList";import eL from"@mui/material/Paper";import e_ from"@mui/material/Popper";import eP from"@mui/material/Card";import eN from"@mui/material/CardActions";import eO from"@mui/material/CardContent";import"@mui/material/CardHeader";import"@mui/material/CardMedia";import ez from"@mui/icons-material/ArrowBackOutlined.js";import eH from"@mui/material/Typography";import{Trans as eF,useTranslation as eW}from"react-i18next";import{ArrowOutward as eV,CallMade as eB,CheckCircle as ej,ChevronRight as eG,Close as eZ,CurrencyExchange as e$,EditCalendar as eU,Email as eY,ErrorOutline as eq,ExpandLess as eX,ExpandMore as eK,FileOpen as eQ,HowToReg as eJ,KeyboardArrowRight as e1,Lock as e2,Message as e0,NavigateBefore as e3,Paid as e4,PriorityHigh as e5,WhatsApp as e6}from"@mui/icons-material";import e9 from"@mui/icons-material/CallMade.js";import{CopyBlock as e7,dracula as e8}from"react-code-blocks";import te from"@mui/material/Accordion";import tt from"@mui/material/AccordionDetails";import tr from"@mui/material/AccordionSummary";import ti from"@mui/icons-material/ExpandMore.js";import ta from"@mui/material/AccordionActions";import to from"@mui/icons-material/Check.js";import tn from"@mui/material/Box";import{FormikProvider as tl,useField as ts,useFormik as td}from"formik";import tc from"@mui/icons-material/Close.js";import tp from"@mui/material/Drawer";import tm from"@mui/material/IconButton";import th from"dot-object";import{decodeNumber as tu,decodeQueryParams as tx,decodeString as tf,encodeNumber as tg,encodeQueryParams as tC,encodeString as ty}from"serialize-query-params";import tb from"moment";import tv from"query-string";import tw from"@mui/icons-material/Tag.js";import{hsl as tM,parseToHsl as tI,parseToRgb as tE,rgb as tS}from"polished";import tA from"@mui/material/LinearProgress";import{makeStyles as tk,useTheme as tT}from"@mui/styles";import tD from"@mui/material/CircularProgress";import tR from"@mui/material/Dialog";import tL from"@mui/material/DialogContent";import{useWindowSize as t_}from"use-window-size-hook";import tP from"@mui/material/DialogActions";import tN from"@mui/material/DialogTitle";import tO from"@mui/material/Tooltip";import tz from"@mui/icons-material/Refresh.js";import tH from"@mui/icons-material/Search.js";import tF from"@mui/material/Input";import tW from"@mui/material/InputAdornment";import tV from"@mui/icons-material/ChevronLeft.js";import tB from"@mui/icons-material/ChevronRight.js";import tj from"@mui/material/Badge";import tG from"@mui/material/Divider";import tZ from"@mui/material/Tab";import t$ from"@mui/material/Tabs";import tU from"@mui/icons-material/InfoOutlined.js";import tY from"@mui/material/Chip";import tq from"@mui/material/Modal";import tX from"@mui/material/Fade";import tK from"@mui/material/Slide";import{useDropzone as tQ}from"react-dropzone";import tJ from"chroma-js";import t1 from"react-ink";import{ErrorBoundary as t2}from"react-error-boundary";import t0 from"@mui/material/useMediaQuery";import{useSnackbar as t3}from"notistack";import t4 from"@mui/material/Snackbar";import t5 from"@mui/material/SnackbarContent";import t6 from"@mui/material/DialogContentText";import t9 from"@mui/icons-material/Add.js";import t7 from"@mui/material/List";import t8 from"@mui/material/ListItem";import re from"@mui/material/ListItemButton";import rt from"@mui/material/Popover";import rr from"@mui/icons-material/CheckCircleOutline.js";import ri from"@mui/icons-material/FileCopy.js";import{useDebouncedCallback as ra}from"use-debounce";import ro from"@mui/icons-material/ContentCopy.js";import rn from"@mui/icons-material/AccessTime.js";import{GRID_DETAIL_PANEL_TOGGLE_COL_DEF as rl,GridCloseIcon as rs,GridCsvExportMenuItem as rd,GridRow as rc,GridToolbarContainer as rp,GridToolbarExportContainer as rm,enUS as rh,esES as ru,getGridDefaultColumnTypes as rx,gridDetailPanelExpandedRowsContentCacheSelector as rf,ptBR as rg,useGridApiContext as rC,useGridApiRef as ry,useGridRootProps as rb,useGridSelector as rv}from"@mui/x-data-grid-pro";import{formatNumber as rw,parsePhoneNumberWithError as rM}from"libphonenumber-js";import{DataGridPro as rI}from"@mui/x-data-grid-pro/DataGridPro";import{formatToCPF as rE,formatToCPFOrCNPJ as rS,isCPF as rA}from"brazilian-values";import rk from"@mui/material/Link";import rT from"@mui/material/Skeleton";import rD from"use-local-storage-state";import rR from"@mui/icons-material/GridViewRounded.js";import rL from"@mui/icons-material/TableRowsRounded.js";import r_ from"@mui/icons-material/CloudUpload.js";import{getTime as rP}from"date-fns";import rN from"mime-types";import rO from"@mui/material/Step";import rz from"@mui/material/StepLabel";import rH from"@mui/material/Stepper";import"react-datasheet/lib/react-datasheet.css";import rF from"@mui/material/Table";import rW from"@mui/material/TableContainer";import{useExpanded as rV,useRowSelect as rB,useSortBy as rj,useTable as rG}from"react-table";import{useVirtual as rZ}from"react-virtual";import r$ from"@mui/material/Checkbox";import rU from"@mui/icons-material/CheckCircle.js";import rY from"@mui/icons-material/Edit.js";import rq from"@mui/icons-material/Error.js";import rX from"@mui/icons-material/HourglassEmpty.js";import rK from"@mui/material/TableRow";import rQ from"@mui/material/TableCell";import rJ from"@mui/material/TableHead";import r1 from"@mui/material/TableSortLabel";import{v4 as r2}from"uuid";import{DatePicker as r0}from"@mui/x-date-pickers";import{useRifm as r3}from"rifm";import{NumericFormat as r4}from"react-number-format";import{read as r5,utils as r6,write as r9}from"xlsx";import r7 from"@mui/material/TableBody";import r8 from"react-fast-compare";import{MdCancel as ie,MdCheckCircle as it,MdMailOutline as ir,MdOutlineDevicesOther as ii}from"react-icons/md";import{TbPasswordMobilePhone as ia}from"react-icons/tb";import{VscShield as io}from"react-icons/vsc";import{QRCodeSVG as il}from"qrcode.react";import is from"@mui/icons-material/QrCode.js";import id from"@mui/material/FormControlLabel";import ic from"@mui/material/Radio";import{useRadioGroup as ip}from"@mui/material/RadioGroup";import im from"@mui/material/InputBase";import ih from"@mui/material/Select";import iu from"@mui/material/ToggleButton";import ix from"@mui/material/ToggleButtonGroup";import ig from"@mui/material/FormControl";import iC from"@mui/material/NativeSelect";import{useVirtualizer as iy}from"@tanstack/react-virtual";import ib from"@mui/icons-material/KeyboardArrowDown.js";import iv from"@mui/icons-material/KeyboardArrowUp.js";import iw from"@mui/material/Collapse";import iM from"@mui/icons-material/DarkMode.js";import iI from"@mui/icons-material/LightMode.js";import{Timeline as iE,TimelineConnector as iS,TimelineContent as iA,TimelineDot as ik,TimelineItem as iT,TimelineSeparator as iD,timelineItemClasses as iR}from"@mui/lab";import{Rnd as iL}from"react-rnd";let i_=({size:e=50,sx:r,...i})=>{let a=Q();return t(Z,{sx:{width:`${e}px`,height:`${e}px`,fontSize:`${e/2.5}px`,backgroundColor:a.palette.grey[400],color:a.palette.common.white,border:`solid 1px ${a.palette.grey[500]}`,...r},...i})},iP=({name:e,size:r=42,imageUrl:i,alt:o,sx:n,...l})=>{var s;let d=e?(s=e,[" da "," do "," dos "," das "," e "," di "," du "," del "," della "].forEach(e=>{s=s.replace(e," ").trim()}),s).split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",...n},...l,children:i?t(i_,{size:r,src:i,alt:o}):t(i_,{size:r,children:d})})},iN=({size:e=50,excessCount:r,sx:a,...o})=>t(i,{sx:{width:`${e}px !important`,height:`${e}px !important`,minWidth:`${e}px !important`,minHeight:`${e}px !important`,fontSize:r?"18px !important":`${e/2.5}px !important`,backgroundColor:e=>`${r?e.palette.common.white:e.palette.primary.main} !important`,color:e=>`${r?e.palette.grey[700]:e.palette.common.white} !important`,borderColor:"#fff",...a},...o}),iO=({size:e=50,sx:r,...i})=>t(iN,{size:e,sx:{width:`${e}px !important`,...r},...i}),iz=({bubbleCount:e,edges:i,size:a=50,totalCount:o=null})=>{let n=o||i.length||0,l=n<e?null:n-e,s=G();return r(J,{children:[i.slice(0,e).map(({node:e})=>e.user?{url:e?.user?.profileImage?.url,userName:e?.user?.name}:{url:e?.profileImage?.url,userName:e?.name}).map((e,i)=>{let o=e.userName?e.userName.split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return e.url?t(iN,{alt:e.userName,src:e.url,size:a},e?.userName||i):r(iN,{alt:e.userName,src:e.url,size:a,children:[" ",o," "]},e?.userName||i)}),!!l&&t(R,{sx:{border:1,borderColor:s.palette.common.white},children:r(iO,{size:a,excessCount:!0,children:["+",l]})})]})},iH=({bubbleCount:e,usersArray:i=[],size:a})=>{let o=i.length<e?null:i.length-e;return r(J,{children:[i.slice(0,e).map(e=>e?{url:e?.profileImage?.url,userName:e?.name}:{url:null,userName:null}).map(e=>{let i=e.userName?e.userName.split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return e.url?t(iN,{alt:e.userName,src:e.url,size:a}):r(iN,{alt:e.userName,src:e.url,size:a,children:[" ",i," "]})}),!!o&&t(ee,{ml:"1px",children:r(iN,{size:a,excessCount:!0,children:["+",o]})})]})},iF=({bubbleCount:e,edges:i,size:a=50,totalCount:o})=>{let n=o-e;return r(J,{children:[i.slice(0,e).map(({node:e})=>e.user?{url:e?.user?.profileImage?.url,userName:e?.user?.name}:{url:e?.profileImage?.url,userName:e?.name}).map(e=>{let i=e.userName?e.userName.split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return e.url?t(iN,{alt:e.userName,src:e.url,size:a}):r(iN,{alt:e.userName,src:e.url,size:a,children:[" ",i," "]})}),!!n&&t(ee,{ml:"1px",children:r(iN,{size:a,excessCount:!0,children:["+",n]})})]})},iW=({onClick:e})=>{let r=eo();return t(a,{sx:{cursor:"pointer",display:"flex",marginLeft:"-30px",marginRight:1},onClick:e||(()=>r.goBack()),children:"←"})},iV=({fontSize:e="12px",children:r})=>{let i=Q();return t(a,{sx:{color:i.palette.tertiary.main,display:"flex",padding:"1px 8px",fontSize:e,maxWidth:"75px",alignItems:"center",borderStyle:"solid",borderColor:i.palette.tertiary.main,borderWidth:1,borderRadius:"10px"},children:r})},iB=({children:e,...r})=>t(es,{...r,children:e}),ij=({icon:i,size:a="medium",variant:n="contained",color:l="primary",children:s,label:d,link:p,external:m=!1,loading:h=!1,...u})=>{let x=()=>h?{startIcon:t(c,{sx:{color:"inherit"},size:12})}:{},f=r(e,{children:[!!i&&t(iB,{children:i}),d||s]});return p?m?t(o,{target:"_blank",href:p,color:l,variant:n,size:a,disableElevation:!0,...x(),...u,children:f}):t(o,{component:et,to:p,color:l,variant:n,size:a,disableElevation:!0,...x(),...u,children:f}):t(o,{color:l,variant:n,size:a,disableElevation:!0,...x(),...u,children:f})},iG=({variant:e="contained",sx:r,...i})=>t(ed,{sx:{ml:1,color:"outlined"===e?"#cb2431":"#fff",border:"1px solid #cb2431",padding:"8px 16px",boxShadow:"none",lineHeight:1,textTransform:"none",backgroundColor:"outlined"===e?"transparent":"#cb2431","&:hover":{color:"white",backgroundColor:"#cb2431"},"&:disabled":{color:"outlined"===e?"#c1c1c1":"#fff",border:"1px solid #c1c1c1",backgroundColor:"outlined"===e?"transparent":"#c1c1c1","&:hover":{color:"#c1c1c1",backgroundColor:"#c1c1c1"}},...r},variant:e,...i}),iZ=({mainButtonProps:i,options:a})=>{let[o,n]=eE(!1),l=G(),s=eI(null),d=e=>{s?.current?.contains(e.target)||n(!1)};return r(e,{children:[r(eA,{variant:"contained","aria-label":"split button",ref:s,disableElevation:!0,children:[t(ij,{...i,sx:{borderRadius:"4px 0 0 4px",textWrap:"nowrap",width:{xs:"100%",sm:"100%"}},children:i.value}),t(ij,{size:"small","aria-controls":o?"split-button-menu":void 0,"aria-expanded":o?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:()=>{n(e=>!e)},sx:{borderRadius:"0 4px 4px 0",borderLeft:"1px solid #83fcdc"},"data-testid":"split-button-popper",children:t(eS,{})})]}),t(e_,{open:o,anchorEl:s.current,role:void 0,transition:!0,children:({TransitionProps:e,placement:r})=>t(eT,{...e,style:{transformOrigin:"bottom"===r?"center top":"center bottom"},children:t(eL,{sx:{backgroundColor:l.palette.common.white},children:t(ek,{onClickAway:d,children:t(eR,{id:"split-button-menu",sx:{zIndex:999},autoFocusItem:!0,children:a.map((e,t)=>eu(eD,{...e,onClick:t=>{e?.onClick?.(t),n(!1)},key:`menu-item-${t}`},e.value))})})})})})]})},i$=({mainButtonProps:i,options:a})=>{let[o,n]=eE(!1),l=eI(null),s=e=>{l?.current?.contains(e.target)||n(!1)};return r(e,{children:[r(eA,{variant:"contained","aria-label":"split button",ref:l,disableElevation:!0,children:[t(ij,{...i,sx:{borderRadius:"4px 0 0 4px",textWrap:"nowrap"},children:i.value}),t(ij,{size:"small","aria-controls":o?"split-button-menu":void 0,"aria-expanded":o?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:()=>{n(e=>!e)},sx:{borderRadius:"0 4px 4px 0",borderLeft:"1px solid #83fcdc"},"data-testid":"split-button-popper",children:t(eS,{})})]}),t(e_,{open:o,anchorEl:l.current,role:void 0,transition:!0,children:({TransitionProps:e,placement:r})=>t(eT,{...e,style:{transformOrigin:"bottom"===r?"center top":"center bottom"},children:t(eL,{sx:{backgroundColor:"#fff"},children:t(ek,{onClickAway:s,children:t(eR,{id:"split-button-menu",sx:{zIndex:999},autoFocusItem:!0,children:a.map((e,t)=>eu(eD,{...e,onClick:t=>{e?.onClick?.(t),n(!1)},key:`menu-item-${t}`},e.value))})})})})})]})},iU=({size:e=21,color:r="#808080",sx:i,...o})=>t(a,{sx:{width:`${e}px`,height:`${e}px`,borderRadius:"50%",backgroundColor:r,...i},...o}),iY=({sx:e,symbol:i,children:o,...n})=>{let l=Q();return r(a,{sx:{cursor:"pointer",display:"flex",maxWidth:"250px",alignItems:"center",flexDirection:"column",...e},...n,children:[t(a,{sx:{width:"50px",height:"50px",display:"flex",alignItems:"center",borderRadius:"100px",justifyContent:"center",backgroundColor:l.palette.primary.main},className:"CircleButton__Button",children:t(a,{sx:{color:l.palette.common.white,fontSize:"30px",fontWeight:600},component:"p",className:"CircleButton__InsideText",children:i||"+"})}),o&&t(a,{sx:{marginTop:"14px",fontWeight:600},component:"p",className:"CircleButton__AuxText",children:o})]})},iq=({sx:e,...r})=>t(a,{sx:{display:"flex",flexDirection:"column",...e},...r}),iX=ex(({children:e,disabled:i,sx:o,...n},l)=>t(eP,{sx:{boxSizing:"border-box",borderRadius:"8px","@media print":{boxShadow:"none"},...o},ref:l,variant:"outlined",...n,children:r(R,{sx:{position:"relative",flexDirection:"column",height:"100%"},children:[i&&t(a,{sx:{top:0,left:0,right:0,bottom:0,zIndex:2,position:"absolute",background:"rgba(255, 255, 255, 0.5)",borderRadius:8}}),e]})})),iK=({children:e,sx:r={}})=>t(eN,{sx:{justifyContent:"flex-end",borderTop:e=>`1px solid ${e.palette.divider}`,...r},children:e}),iQ=({children:e})=>t(iX,{sx:{display:"flex",padding:Q().spacing(2)},children:t(V,{children:e})}),iJ=ex(({children:e,sx:r,tabIndex:i,...o},n)=>t(a,{ref:n,tabIndex:i,"data-testid":o["data-testid"],sx:{display:"flex",...r},children:e})),i1=({children:e,footer:i,title:a,showBackButton:o=!1,onBack:n})=>{let l=eo(),{t:s}=eW();return r(iJ,{sx:{flexDirection:"column",maxWidth:"550px",width:"100%"},children:[o&&t(iJ,{sx:{alignContent:"left"},children:t(ij,{color:"secondary",variant:"text",onClick:()=>{n?n():l.goBack()},startIcon:t(ez,{}),children:s("Back")})}),t(iJ,{children:r(eL,{sx:{padding:"32px",maxWidth:"550px",marginBottom:"5px",width:"100%",borderRadius:"8px"},variant:"outlined",children:[a&&t(iJ,{sx:{justifyContent:"center",alignItems:"center"},children:t(eH,{mb:"24px",variant:"h1",fontSize:"28px",fontWeight:"bold",textAlign:"center",children:a})}),e,i]})})]})},i2=e=>t(iX,{mb:"10px",p:"10px","data-testid":"loading",children:r(iJ,{sx:{justifyContent:"space-around",alignItems:"center"},children:[t(D,{animation:"wave",width:50,height:50,variant:"circular"}),r(iJ,{sx:{flexDirection:"column",marginLeft:1},children:[t(D,{animation:"wave",width:150}),t(D,{animation:"wave",width:100})]})]})}),i0=({title:e,description:i="",image:a,step:o=0,imageAlt:n="alt"})=>t(iX,{sx:{p:3,height:"100%"},children:r(R,{spacing:2,sx:{justifyContent:"space-between"},children:[t(s,{sx:{objectFit:"fill"},component:"img",image:a,alt:n}),t(V,{variant:"h4",color:"primary",fontWeight:e=>e.typography.fontWeightBold,children:o}),t(V,{variant:"h4",fontWeight:e=>e.typography.fontWeightBold,children:e}),t(V,{variant:"body1",children:i})]})}),i3=({label:e,value:i,color:a="pri",onClick:o})=>t(iX,{onClick:o,sx:{cursor:"pointer",display:"flex",justifyContent:"center",width:"100%",padding:"6px"},children:r(iJ,{sx:{flexDirection:"row",gap:"3px",alignItems:"baseline",alignContent:"center"},children:[t(V,{fontWeight:400,color:"#AFAFAF",children:e}),t(V,{fontWeight:600,mr:"6px",color:`${a}.main`,children:i}),o&&t(eB,{sx:{alignSelf:"flex-start"},fontSize:"small",color:a})]})}),i4=e=>t(i3,{label:e.label,value:t(D,{"data-testid":"loading",animation:"wave",width:100})}),i5=({sx:e,children:r,...i})=>t(eN,{sx:{display:"flex",borderTop:"solid 1px rgba(96, 115, 137, 0.2)",flexDirection:"column",justifyContent:"flex-end","@media (min-width: 600px)":{flexDirection:"row"},...e},...i,children:r}),i6=({sx:e,children:r,...i})=>t(a,{sx:{padding:"0 16px",...e},...i,children:r}),i9=ex((e,i)=>{let{t:o}=eW(),{children:n,column:l=!1,title:s,subtitle:d,primaryAction:c,secondaryAction:p,primaryProps:m={},secondaryProps:h={},icon:u,footerActions:x=[],footer:f,contentProps:g={},cardStyleProps:C={},cardProps:y={},borderColor:b}=e,v=e?.primaryLabel??o("Save"),w=e?.secondaryLabel??o("Cancel"),M=b?{outline:`3px solid ${b}`,outlineOffset:"0px"}:{};return r(iX,{style:{paddingTop:"16px",...C,...M},...y,ref:i,children:[s&&r(i6,{children:[t(a,{component:"h3",sx:{fontSize:"20px",margin:0},children:s}),d&&t(a,{sx:{fontWeight:"normal",fontSize:"14px"},children:d}),u]}),n&&t(eO,{sx:{flex:1,display:"flex",flexDirection:l?"column":"row"},...g,children:n}),x.length?t(i5,{children:x.map(({label:e,primary:r,onClick:i,disabled:a,...o})=>t(ij,{size:"small",color:r?"primary":"secondary",onClick:i,...o,children:e},`footer-btn-${e}`))}):f?t(i5,{children:f}):(c||p)&&r(i5,{children:[p&&t(ij,{variant:"text",color:"secondary",size:"small",onClick:p,...h,children:w}),c&&t(ij,{variant:"text",color:"primary",size:"small",onClick:c,...m,children:v})]})]})}),i7=()=>t(iX,{children:r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"95px",flex:1},children:[t(D,{animation:"wave",width:100}),t(D,{animation:"wave",width:150,height:30}),t(D,{animation:"wave",width:100})]})}),i8=({title:e,value:i,total:a,color:o="",onClick:n,loading:l=!1})=>l?t(i7,{}):t(iX,{sx:{cursor:n?"pointer":"default"},onClick:n,children:r(iJ,{sx:{justifyContent:"center",position:"relative"},children:[r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"95px",flex:1},children:[t(V,{variant:"subtitle1",color:"#AFAFAF",textAlign:"center",children:e}),t(V,{color:o?`${o}.main`:"",variant:"h5",fontWeight:"bold",textAlign:"center",children:i}),t(V,{variant:"subtitle1",textAlign:"center",children:a})]}),n&&t(iJ,{sx:{position:"absolute",right:8,top:8},children:t(e9,{color:"action"})})]})}),ae=({title:e,value:i,total:a,color:o="primary",onClick:n,loading:l=!1})=>l?t(i7,{}):t(iX,{sx:{cursor:n?"pointer":"default",height:"100%",transition:"transform 0.2s, box-shadow 0.2s","&:hover":n?{transform:"translateY(-2px)",boxShadow:3}:{}},onClick:n,children:t(iJ,{sx:{justifyContent:"center",position:"relative"},children:r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:40,flex:1,p:.7},children:[t(V,{variant:"body2",color:"text.primary",fontWeight:"medium",textAlign:"center",sx:{mb:.1},children:e}),t(V,{color:o?`${o}.main`:"text.primary",variant:"h6",fontWeight:"bold",textAlign:"center",sx:{mb:.2},children:i}),a&&t(V,{variant:"caption",textAlign:"center",color:"text.secondary",sx:{lineHeight:1.1},children:a})]})})}),at=({templateColumns:e="1fr",mobileColumns:r="2",gap:i="0",sx:o,...n})=>t(a,{sx:{display:"grid",gridGap:i,gridTemplateColumns:e,"@media (max-width: 780px)":{gridTemplateColumns:`repeat(${r}, minmax(150px, 1fr))`},...o},...n}),ar=({code:e,language:r,showLineNumbers:i})=>t(e7,{text:e,language:r,showLineNumbers:!!i,theme:e8,codeBlock:!0,wrapLongLines:!0}),ai=({initialExpanded:e,header:i,children:a})=>{let o=eb(),[n,l]=eE(e);return r(te,{expanded:n,elevation:0,square:!0,disableGutters:!0,onChange:()=>l(!n),sx:{fontWeight:"600","&:before":{display:"none"}},children:[t(tr,{sx:{p:0,m:0,"& .MuiAccordionSummary-content":{m:"0 !important"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(-180deg)"}},expandIcon:t(eX,{sx:{fontSize:"20px"},"aria-controls":`${o}-content`,id:`${o}-header`}),children:"string"==typeof i?t(eH,{sx:{fontWeight:"600"},children:i}):i}),t(tt,{sx:{m:"0 !important",p:0},children:a})]})},aa=(e,t)=>{let[r,i]=eE(e);return"function"==typeof t?[e,t]:[r,i]},ao=e=>{let{renderActions:i,primaryAction:a,primaryActionLabel:o,primaryActionProps:n={},secondaryAction:l,secondaryActionLabel:s,secondaryActionProps:d={}}=e;if(i)return t(as,{children:i});let c=l&&s,p=a&&o;return p||c?r(as,{children:[c?t(ij,{color:"secondary",variant:"text",onClick:l,...d,children:s}):null,p?t(ij,{color:"primary",variant:"text",onClick:a,...n,children:o}):null]}):null},an=({sx:e,...r})=>{let i=Q();return t(I,{sx:{color:i.palette.primary.main,fontSize:`${i.typography.fontSize}px`,wordWrap:"break-word",textDecoration:"none",...e},component:et,...r})},al=i=>{let a=Q(),{heading:o,secondaryHeading:n,secondaryHeadingLinkTo:l,expandIcon:s}=i,d=!s;return r(e,{children:[t(eH,{sx:{flexBasis:n?"33.3%":"95%",padding:d?"0 !important":void 0,margin:d?"0 !important":void 0,marginRight:a.spacing(1)},children:o}),n?l?t(iJ,{sx:{flex:1},children:t(an,{to:l,children:n})}):t(eH,{flex:1,children:n}):null]})},as=({sx:e,...r})=>t(ta,{sx:{flex:1,padding:"2px 10px",boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",borderRadius:"8px",...e},...r}),ad=e=>{let{alwaysExpanded:i,expandIconInvisible:a=!1,expandIcon:o,className:n,children:l,disabled:s=!1,lazy:d=!0,onChange:c,renderActions:p,primaryAction:m,primaryActionLabel:h,primaryActionProps:u,secondaryAction:x,secondaryActionLabel:f,secondaryActionProps:g,renderSummary:C,heading:y,secondaryHeading:b,secondaryHeadingLinkTo:v,isExpanded:w,...M}=e,[I,E]=aa(!!i||w||!1,e.onChange),S=e.alwaysExpanded||a?null:o||t(ti,{});return r(te,{onChange:(e,t)=>{e.stopPropagation(),i||E(t)},disabled:s,expanded:I,sx:{"& .MuiAccordionDetails-root":{padding:"0 24px 8px"},"& .MuiAccordionActions-root":{boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",borderRadius:"8px"}},...M,children:[t(tr,{expandIcon:!a&&S,sx:{userSelect:"auto","& .MuiAccordionSummary-content":{margin:"0 8px"}},children:(()=>{let{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a}=e;return e.renderSummary?e.renderSummary:t(al,{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a,expandIcon:S})})()}),t(tt,{sx:{flexDirection:"column"},children:d?I?l:null:l}),t(ao,{renderActions:p,primaryAction:m,primaryActionLabel:h,primaryActionProps:u,secondaryAction:x,secondaryActionLabel:f,secondaryActionProps:g})]})},ac=e=>{let{children:i,disable:o}=e,{renderActions:n,...l}=e,s=!!n;return t(a,{sx:{"&:not(:first-child)":{"& .MuiAccordion-root:first-child:not(.Mui-expanded)":{borderTop:"1px solid rgba(96, 115, 137, 0.12)"}},"& .MuiAccordion-root":{position:"relative",boxShadow:"0 0 0",background:"transparent","& > .MuiAccordionSummary-root":{backgroundColor:"#fff",boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",marginLeft:"-5px"},"&::before":{opacity:1},"& .MuiAccordionDetails-root":{paddingTop:"0px",margin:"0 0 10px 0px",borderLeft:"1px solid #e1e5ea",backgroundColor:"transparent","& .MuiAccordionActions-root:first-child":{width:"100%",left:"-30px",paddingLeft:"50px"},"& > div":{[`&:${s?"nth-last-child(2)":"last-child"}`]:{"& > .MuiAccordion-root":{position:"relative",marginBottom:0,"& > div > div > div > div > .MuiAccordionDetails-root, & > div > div > div > div > div > .MuiAccordionDetails-root":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:"-10px",left:0,transform:"translateX(-21px)",width:"1px",backgroundColor:"#f8f8f8"}},"& > .MuiAccordionSummary-root:last-child":{"&::before":{content:'""',display:"block",position:"absolute",top:"50%",bottom:0,left:"-21px",height:"auto",backgroundColor:"#f8f8f8"},"&::after":{content:'""',display:"block",position:"absolute",top:0,bottom:"50%",left:"-21px",height:"auto",width:"1px",backgroundColor:"#e0e5ea",zIndex:1}}}}},"& .MuiAccordionActions-root:last-child":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:"-21px",height:"auto",backgroundColor:"#f8f8f8",width:"1px"}},"& .MuiAccordionSummary-root":{"&::before":{content:'""',display:"block",width:"20px",height:0,borderTop:"1px solid #e1e5ea",marginTop:"-1px",position:"absolute",top:"50%",left:"-20px"}}}}},children:r(ad,{...l,...o?{expanded:!1,expandIcon:null}:{},children:[n&&t(ta,{sx:{position:"relative",zIndex:0},children:n}),i]})})},ap=({sx:e,leftNode:i,rightNode:o,...n})=>{let l=G();return r(a,{sx:{flex:1,display:"flex",flexWrap:"wrap",flexDirection:"row",...e},...n,children:[t(a,{sx:{flex:3,minWidth:"150px",paddingRight:"20px"},children:i}),t(a,{sx:{flex:1,padding:"5px 10px",minWidth:"250px",borderLeft:`1px solid ${l.palette.primary.dark}`},children:o})]})},am=e=>t(a,{...e}),ah=e=>t(a,{...e}),au=e=>{let{alwaysExpanded:i}=e,[a,o]=aa(!!i||e.isExpanded||!1,e.onChange),n=e.alwaysExpanded?null:t(ti,{}),{className:l,children:s,disabled:d=!1,lazy:c=!0,onChange:p,renderActions:m,primaryAction:h,primaryActionLabel:u,primaryActionProps:x,secondaryAction:f,secondaryActionLabel:g,secondaryActionProps:C,renderSummary:y,heading:b,secondaryHeading:v,secondaryHeadingLinkTo:w,dense:M=!1,borderRadius:I,...E}=e;return r(ee,{direction:"column",sx:{position:"relative"},children:[t(te,{onChange:(e,t)=>{e.stopPropagation(),i||o(t)},disabled:d,expanded:a,...E,sx:{borderRadius:I?`${I}px`:"0px","& .MuiAccordionSummary-content":{margin:"8px 0px 30px 0px"},"& .MuiAccordion-root .MuiAccordionDetails-root":{padding:"10px 0px",margin:0},"&:first-child":{borderRadius:I?`${I}px`:"4px 4px 0 0"},"&:last-child":{borderRadius:I?`${I}px`:"0 0 4px 4px"},"&.Mui-expanded":{margin:"10px 0"}},children:t(tr,{expandIcon:n,sx:{borderRadius:I?`${I}px`:"0px",display:"flex",backgroundColor:"#fff",padding:"0 24px 5px 24px",marginBottom:"0px"},children:r(ee,{flex:1,flexDirection:"column",children:[(()=>{let{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a}=e;return e.renderSummary?e.renderSummary:t(al,{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a,expandIcon:n})})(),t(tt,{sx:{borderRadius:I?`${I}px`:"0px",flexDirection:"column",backgroundColor:"#fff",padding:"5px 0px !important",margin:"0 !important",border:"transparent !important"},children:c?a?s:null:s})]})})}),t(ee,{sx:{position:"absolute",right:0,bottom:0,left:0,flex:1,padding:"0px 0px"},children:t(ao,{renderActions:m,primaryAction:h,primaryActionLabel:u,primaryActionProps:x,secondaryAction:f,secondaryActionLabel:g,secondaryActionProps:C,borderRadius:I})})]})},ax=({children:e,header:i,legend:o,number:n,status:l,onChange:s,showEdit:d,expanded:c,tag:p,color:m,expandIconInvisible:h=!1})=>{let u=Q(),{t:x}=eW(),f=m||u.palette.primary.main,g=r(R,{sx:{flexDirection:"row",alignItems:"center",width:"100%"},children:[!!n&&t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:u.palette.common.white,borderRadius:"50%",background:f},children:l?t(to,{}):n}),r(R,{sx:{flexDirection:"column",pl:"10px",pr:"8px"},children:[t(eH,{component:"span",fontSize:"14px",fontWeight:600,sx:{lineHeight:"17px"},children:i||"-"}),o&&t(eH,{component:"span",fontWeight:"200",color:"GrayText",fontSize:"12px",sx:{lineHeight:"15px"},children:o})]}),p&&p,l&&d&&t(eH,{sx:{fontSize:"14px","&:hover":{textDecoration:"underline"}},children:x("Change")})]});return t(a,{sx:{"& .MuiAccordionDetails-root":{padding:0,"@media (min-width: 600px)":{marginLeft:"45px"}},"& .MuiAccordionSummary-content":{margin:"0 8px"},"& .MuiAccordionSummary-root":{padding:0}},children:e&&t(ad,{onChange:s,renderSummary:g,expandIcon:null,isExpanded:c,expandIconInvisible:h,elevation:0,children:e})})},af=()=>t("svg",{width:90,height:90,viewBox:"0 0 135 135",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.5 0C30.222 0 0 30.222 0 67.5S30.222 135 67.5 135 135 104.778 135 67.5 104.778 0 67.5 0zm29.258 56.086a6.137 6.137 0 10-9.425-7.854L60.946 79.889 47.293 66.23a6.136 6.136 0 00-8.677 8.678l18.41 18.409a6.136 6.136 0 009.05-.412l30.682-36.818z",fill:"#03D69D"})}),ag=({number:e,header:i,status:o,legend:n,showEdit:l})=>{let{t:s}=eW(),d=G();return r(R,{sx:{flexDirection:"row",alignItems:"center"},children:[t(()=>o?t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:d.palette.common.white,borderRadius:"50%",background:"none"},children:t(af,{})}):e?t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:d.palette.common.white,borderRadius:"50%",background:d.palette.primary.main},children:e}):null,{}),r(R,{sx:{flexDirection:"column",pl:"10px",pr:"8px"},children:[t(V,{component:"span",fontSize:"14px",fontWeight:600,sx:{lineHeight:"17px"},children:i||"-"}),n&&t(V,{component:"span",fontWeight:"200",color:"GrayText",fontSize:"12px",sx:{lineHeight:"15px"},children:n})]}),o&&l&&t(V,{sx:{fontSize:"14px","&:hover":{textDecoration:"underline"}},children:s("Change")})]})},aC=({isParent:e,noBorder:r,sx:i,...a})=>e?t(ee,{sx:{padding:"2px 10px",justifyContent:"flex-end",position:"absolute",left:0,right:0,bottom:0,borderTop:r?"0px":"1px solid rgba(96,115,137, 0.12)",...i},...a}):t(ee,{...a,sx:i}),ay=e=>{let{children:i,renderActions:o,renderActionsInside:n,disable:l,borderRadius:s=0,rootProps:d={},...c}=e,p=Q(),m=!!o;return t(a,{sx:{"&:not(:first-child)":{"& .MuiAccordion-root:first-child:not(.Mui-expanded)":{borderTop:s?"0px":"1px solid rgba(96, 115, 137, 0.12)"}},"& > .MuiAccordion-root > .MuiAccordionSummary-root":{paddingBottom:n?"40px":0,borderRadius:s?`${s}px`:"0px"},"& .MuiAccordion-root":{position:"relative",boxShadow:"0 0 0",margin:0,background:"transparent","& > .MuiAccordionSummary-root":{backgroundColor:p.palette.background.paper,boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)"},"&::before":{opacity:1},"& .MuiAccordionDetails-root":{padding:"10px 0 0 20px",margin:"0 0 10px 20px",borderLeft:"1px solid #e1e5ea",backgroundColor:"transparent","& > div":{[`&:${m?"nth-last-child(2)":"last-child"}`]:{"& > .MuiAccordion-root":{position:"relative",marginBottom:0,"& > div > div > div > div > .MuiAccordionDetails-root, & > div > div > div > div > div > .MuiAccordionDetails-root":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:"-10px",left:0,transform:"translateX(-21px)",width:"1px",backgroundColor:"#f8f8f8"}},"& > .MuiAccordionSummary-root":{"&::before":{content:'""',display:"block",position:"absolute",top:"50%",bottom:0,left:"-21px",height:"auto",backgroundColor:"transparent"},"&::after":{content:'""',display:"block",position:"absolute",top:0,bottom:"50%",left:"-21px",height:"auto",width:"1px",backgroundColor:"#e0e5ea",zIndex:1}}}}},"& > .MuiCard-root":{position:"relative",overflow:"visible","&::before":{content:'""',display:"block",width:"20px",height:0,borderTop:"1px solid #e1e5ea",marginTop:"-1px",position:"absolute",top:"50%",left:"-20px"},"&::after":{content:'""',display:"block",position:"absolute",top:0,bottom:"50%",left:"-21px",height:"auto",width:"1px",backgroundColor:"#e0e5ea",zIndex:1},"&:last-child":{"&::after":{content:'""',display:"block",position:"absolute",top:"50%",bottom:0,backgroundColor:"#f8f8f8"}}},"& .MuiAccordionActions-root:last-child":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:"-21px",height:"auto",backgroundColor:"#f8f8f8",width:"1px"}},"& .MuiAccordionSummary-root":{"&::before":{content:'""',display:"block",width:"20px",height:0,borderTop:"1px solid #e1e5ea",marginTop:"-1px",position:"absolute",top:"50%",left:"-20px"}},"& > :last-child":{marginBottom:"0px"}}}},...d,children:r(ad,{...c,...l?{expanded:!1,expandIcon:null}:{},children:[i,o&&t(ta,{sx:{position:"relative",backgroundColor:"#fff",boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",borderRadius:"0 0 2px 2px",zIndex:0},children:o})]})})},ab=({sx:e,hide:r,...i})=>t(ti,{sx:{opacity:r?"0":"1",...e},...i}),av=e=>{let{sx:r,...i}=e;return t(ad,{...{...i,expandIcon:null,sx:{"&.MuiAccordion-root":{padding:0},"& .MuiAccordionSummary-root":{cursor:"auto !important"},...r}}})},aw={backgroundColor:"transparent",boxShadow:"none"},aM=({sx:e,children:r,...i})=>t(tn,{sx:{"&& .MuiAccordion-root":{...aw,"&.Mui-expanded":aw},"&& .MuiAccordionSummary-root":{...aw,"&.Mui-expanded":aw},"&& .MuiAccordionDetails-root":aw,...e},...i,children:r}),aI=({sx:e,rightComponent:i,leftComponent:o,...n})=>r(a,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",marginBottom:"15px",flexDirection:"row",justifyContent:"space-between",...e},...n,children:[t(a,{sx:{flex:1,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:o}),t(a,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-end"},children:i})]}),aE=({sx:e,...r})=>t(V,{sx:{color:G().palette.primary.dark,fontSize:"14px",textAlign:"center",fontWeight:600,...e},...r}),aS=({sx:e,...r})=>t(a,{sx:{margin:"16px 8px","@media (min-width: 600px)":{margin:"16px"},...e},...r}),aA=({sx:e,children:r,...i})=>t(a,{sx:{display:"flex",justifyContent:"center","> span":{maxWidth:"1000px",marginBottom:"20px",padding:"0px 90px"},...e},...i,children:t(eH,{children:r})}),ak=({sx:e,children:r,...i})=>t(a,{sx:{width:"100%",color:"#7c8289",height:"200px",display:"flex",fontSize:"18px",alignItems:"center",fontWeight:600,flexDirection:"row",justifyContent:"center",...e},...i,children:r}),aT=()=>{let{t:e}=eW();return r(iJ,{sx:{alignItems:"center",gap:.5},children:[t(e2,{fontSize:"small",color:"secondary"}),t(V,{variant:"body2",color:"secondary",textAlign:"center",children:e("Your data is encrypted")})]})},aD=({children:e,...r})=>t(ee,{direction:"row",spacing:1,...r,children:e}),aR=({items:e,Heading:i,isVisible:o=!1,...n})=>{let l=Q();if(!o)return null;let s=e.filter(e=>!e.filter||e.filter());return 0===s.length?null:r(a,{p:1,left:0,width:"100vw",bottom:0,zIndex:l.zIndex.drawer,bgcolor:"rgb(255,255,255, 0.9)",position:"fixed",borderTop:"1px solid rgba(0, 0, 0, 0.12)",boxShadow:"0px -2px 3px 0px rgb(0, 0, 0, 0.12)",...n,children:[i??null,t(E,{sx:{padding:"4px",display:"flex",flexDirection:"row",justifyContent:"center"},children:t(aD,{children:s.map(e=>r(ij,{size:"small",color:e?.color||"primary",variant:"contained",onClick:e.onClick,"data-testid":e?.dataTestId||e?.label,children:[e.label,t(a,{component:"span",sx:{marginLeft:"10px",display:"flex"},children:"string"==typeof e.icon?t(iB,{children:e.icon}):e.icon})]},e.dataTestId||e.label))})})]})},aL=({children:e,isOpen:i,onRequestClose:a,onClear:o,onApply:n,filtersTitle:l,showFooterButtons:s=!0,sx:d={}})=>{let{t:c}=eW();return r(tp,{sx:{...d,"& .MuiDrawer-paper":{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"strech",width:"85%",maxWidth:"550px"}},"data-testid":"filter-drawer",anchor:"right",open:i,onClose:a,children:[r(ee,{sx:{alignItems:"center",paddingLeft:"15px",paddingRight:"15px",borderBottom:"1px solid rgba(80, 80, 80, 0.12)",flexDirection:"row",justifyContent:"space-between"},children:[t(V,{sx:{fontSize:"16px",fontWeight:600},children:l||c("Filter")}),t(tm,{onClick:a,size:"large",children:t(tc,{})})]}),t(ee,{sx:{flexDirection:"column",overflow:"auto",pr:"15px",pl:"15px",flexGrow:2},children:e}),s&&t(ee,{sx:{padding:"8px",borderTop:"1px solid rgba(80, 80, 80, 0.12)",flexDirection:"row",justifyContent:"center"},children:r(aD,{children:[t(ij,{variant:"text",onClick:o,color:"secondary",children:c("Clear Filters")}),t(ij,{variant:"text",onClick:n,children:c("Apply")})]})})]})},a_={stringify:e=>tv.stringify(e,{arrayFormat:"index"}),parse:e=>tv.parse(e,{arrayFormat:"index"})},aP=(e,t)=>{if("quantity"===t)return Number.parseInt(e,10);if(["metatags","flags","chargePaid","search","next"].some(e=>t.includes(e)))return e;if(e&&tb(e,"YYYY-MM-DDTHH:mm:ss.sssZ",!0).isValid()){let t=tb(e);return t.isValid?t.toISOString():e}return e&&"string"==typeof e?e.indexOf("true")>-1||!(e.indexOf("false")>-1)&&e:e},aN=e=>e?a_.parse(e.search.substr(1)):{},aO=()=>{var e;let t=Object.entries(tb((e=aN(location)).createdAt).isValid()?e:(delete e.createdAt,{...e,"createdAt.end":e["createdAt.end"]||e["createdAt.begin"]})).map(([e,t])=>({[e]:aP(t,e)})).reduce((e,t)=>({...e,...t}),{});return th.object(t)},az=(e=[],t=["search","comment","bankProviderCode","bankCode"])=>{let r=aO(),i=e.map(e=>{let i=aP(th.pick(e,r),e);if("boolean"==typeof i||null===i||i)return"boolean"!=typeof i&&Number(i)&&-1===t.indexOf(e)&&(i=Number(i)),"object"==typeof i&&null!==i&&Object.keys(i).map(e=>{Number(i[e])&&parseFloat(i[e])&&(i[e]=parseFloat(i[e]))}),{[e]:i}}).reduce((e,t)=>({...e,...t}),{});return i?th.object(i):{}},aH=e=>e.reduce((e,t)=>({...e,[t?.key||t?.field]:{encode:t?.encode||ty,decode:t?.decode||tf}}),{quantity:{encode:tg,decode:tu},search:{encode:ty,decode:tf}}),aF=(e,t)=>{if(!e)return e;if(e instanceof tb||e&&tb(e,"YYYY-MM-DDTHH:mm:ss.sssZ",!0).isValid()){let t=tb(e);return t._isValid?t.toISOString():e}if(Array.isArray(e)){if("orderBy"===t){let t=[];for(let r of e){if(r.hasOwnProperty("label")){t.push({direction:r.value.direction,sort:r.value.sort});continue}t.push({direction:r.direction,sort:r.sort})}return t}return e}return"object"==typeof e?e?.label&&(e.value||"boolean"==typeof e.value)?e.value:Object.keys(e).reduce((t,r)=>({...t,[r]:aF(e[r])}),{}):e},aW=e=>Object.entries(e).filter(([e,t])=>null===t||("tags"===e&&"string"==typeof t?t.split(","):Array.isArray(t)||"string"==typeof t?!!t.length:"boolean"==typeof t||!!t)).reduce((e,[t,r])=>({...e,[t]:aF(r,t)}),{}),{stringify:aV}=a_,aB=i=>{let{filterProp:a="filters",useQueryString:o=!0,getFragmentVariables:n=()=>({filters:{}}),stateFilters:l,onCloseFilter:s,refetch:d,handleLoading:c,updateFilter:p,filters:m,useDecodeEncode:h=!1,shouldUpdateFilter:u=null,setShouldUpdateFilter:x=()=>null,filtersProps:f={}}=i,g=eo(),C=en(),y=m.reduce((e,t)=>"section"in t?[...e,...t.fields]:[...e,t],[]),b=aH(y),v=td({initialValues:ew(()=>{let e=y.reduce((e,t)=>{let r=Array.isArray(t?.field)?t.field.map(e=>({[e]:void 0})).reduce((e,t)=>({...e,...t}),{}):{[t.field]:void 0};return{...e,...r}},{}),{filters:t}=n();if(o){if(h)return tx(b,aN(C));let r=az(Object.keys(th.dot(e)));return{...e,...t||{},...r}}return{...e,...t||{}}},[]),onSubmit:e=>{let{quantity:t,search:r,queryParams:i}=aO(),{pathname:l}=C,{...m}=e,u=aW(m);if(u?.value?.min&&delete u.min,u?.value?.max&&delete u.max,o)if(h){let i=tC(b,{...e,search:r,quantity:t});g.replace({pathname:l,search:aV(i)})}else{let e=aV({...i||{},...th.dot(u),quantity:t,search:r});g.replace({pathname:l,search:e})}else p({...u});if(s(),d)if(n){let e=()=>{};if(o)e=()=>({...n()});else{let t=n();e=()=>({...t,[a]:{...t[a]||{},...u}})}c?.(!0),d(e,null,()=>c?.(!1))}else{let e={[a]:{...u},first:t||30,search:r};c?.(!0),d(t=>({...t,...e,[a]:{...e[a]||{},...u}}),null,()=>c?.(!1))}}}),{resetForm:w,setFieldValue:M,values:I}=v;ey(()=>{u&&(M(u,void 0),x(null))},[u]);let E=(e,r)=>{let{component:i,props:a={},getProps:o}=e;return i?t(i,{...o?o(f):a,values:I,setFieldValue:M},`${r}:${a.name}`):null};return{formikbag:v,resetFilters:()=>{if(o){let{pathname:e}=C,{quantity:t,search:r}=aO(),i=aV({quantity:t,search:r});g.replace({pathname:e,search:i})}else p({search:l.search});w({}),s(),d&&(c?.(!0),d(e=>({...e,...(e=>{if(n)return n(e);if(o){if(h){let{quantity:t,search:r,...i}=tx(b,aN(C));return{quantity:parseInt(t,10)||10,search:e?void 0:r,[a]:e?{}:i}}let{quantity:t,search:r,orderBy:i}=aO();return{quantity:parseInt(t,10)||10,search:e?void 0:r,orderBy:e?void 0:i,[a]:e?{}:az()}}return{search:e?void 0:l.search,[a]:e?{}:{...l},first:10}})(!0)}),null,()=>c?.(!1)))},renderFilterInput:(i,a)=>{if(i.fields)return r(e,{children:[t(V,{fontWeight:"bold",children:i.section}),t(iJ,{sx:{flexDirection:"column"},children:i.fields.map((e,t)=>E(e,t))})]});return E(i,a)}}},aj=e=>{let{onCloseFilter:r,filters:i,isOpen:a,filtersTitle:o}=e,{formikbag:n,resetFilters:l,renderFilterInput:s}=aB(e),{handleSubmit:d}=n;return t(tl,{value:n,children:t(aL,{isOpen:a,onRequestClose:r,onApply:d,onClear:l,filtersTitle:o,children:i.map((e,t)=>s(e,t))})})},aG=e=>{let{formikbag:r,isOpen:i,resetFilters:a,filters:o,renderFilterInput:n,onCloseFilter:l}=e,{handleSubmit:s}=r;return t(tl,{value:r,children:t(aL,{isOpen:i,onRequestClose:l,onApply:s,onClear:a,children:o.map((e,t)=>n(e,t))})})},aZ=({title:e,subTitle:i})=>{let[o,n]=eE(!1);return r(a,{sx:{my:1},children:[r(R,{onMouseOver:()=>{n(!0)},onMouseOut:()=>{n(!1)},onClick:()=>{window.location.hash=e},spacing:.5,direction:"row",sx:{cursor:"pointer"},children:[t(eH,{fontWeight:Q().typography.fontWeightBold,id:e,children:e}),o&&t(tw,{fontSize:"small",color:"disabled"})]}),"string"==typeof i?t(eH,{children:i}):i]})},a$=(e,t)=>{let r=!1;"#"==e[0]&&(e=e.slice(1),r=!0);let i=parseInt(e,16),a=(i>>16)+t;a>255?a=255:a<0&&(a=0);let o=(i>>8&255)+t;o>255?o=255:o<0&&(o=0);let n=(255&i)+t;return n>255?n=255:n<0&&(n=0),(r?"#":"")+(n|o<<8|a<<16).toString(16)},aU=e=>e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,r,i)=>"#"+t+t+r+r+i+i).substring(1).match(/.{2}/g).map(e=>parseInt(e,16)),aY=(e,t)=>{let r=aU(e).join(",");return t?`rgba(${r}, ${t})`:`rgba(${r})`},aq=(e,t,r)=>Math.min(Math.max(e,t),r),aX=(e,t)=>{let r=tI(e),i=Object.entries(t).map(([e,t])=>{let i=tI(t);return[e,e=>{var t;let a=tI(e),o=a.hue+(i.hue-r.hue),n=a.lightness+(i.lightness-r.lightness),l=a.saturation+(i.saturation-r.saturation);return tS(tE(tM({hue:(t=Math.round(o))<0?360-Math.abs(t):t>360?0+(t-360):t,lightness:aq(Number(n.toFixed(2)),0,1),saturation:aq(Number(l.toFixed(2)),0,1)})))}]});return e=>i.map(([t,r])=>[t,r(e)]).reduce((e,t)=>({...e,[t[0]]:t[1]}),{})},aK=({sx:e,opacity:r=.12,...i})=>t(tn,{sx:{width:"100%",height:"1px",border:"none",backgroundColor:aY(G().palette.common.black,r),...e},component:"hr",...i}),aQ=({children:e,transitionTimeout:i=350,placement:o="top-start",render:n,...l})=>{let[s,d]=eE(!1),c=eI(null);return r("div",{...{onMouseOver:()=>d(!0),onMouseLeave:()=>d(!1)},children:[r(a,{sx:{position:"relative",cursor:"pointer"},children:[t(a,{sx:{position:"absolute",top:0,right:0},ref:c}),e]}),t(T,{open:s,anchorEl:c.current,placement:o,transition:!0,...l,children:({TransitionProps:e})=>t(eT,{...e,timeout:i,children:n})})]})},aJ=({width:e,height:i})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:i,viewBox:"0 0 22 15",fill:"none",children:[t("rect",{width:"22",height:"15",fill:"#1E1E1E"}),t("path",{d:"M-2921 -928H2997V-940H-2921V-928ZM3104 -821V1078H3116V-821H3104ZM2997 1185H-2921V1197H2997V1185ZM-3028 1078V-821H-3040V1078H-3028ZM-2921 1185C-2980.09 1185 -3028 1137.09 -3028 1078H-3040C-3040 1143.72 -2986.72 1197 -2921 1197V1185ZM3104 1078C3104 1137.09 3056.09 1185 2997 1185V1197C3062.72 1197 3116 1143.72 3116 1078H3104ZM2997 -928C3056.09 -928 3104 -880.094 3104 -821H3116C3116 -886.722 3062.72 -940 2997 -940V-928ZM-2921 -940C-2986.72 -940 -3040 -886.722 -3040 -821H-3028C-3028 -880.094 -2980.09 -928 -2921 -928V-940Z",fill:"white"}),t("path",{d:"M-2781 -681C-2781 -682.105 -2780.1 -683 -2779 -683H132C133.104 -683 134 -682.105 134 -681V938C134 939.105 133.104 940 132 940H-2779C-2780.1 940 -2781 939.105 -2781 938V-681Z",fill:"#444444"}),t("path",{d:"M-2779 -682H132V-684H-2779V-682ZM133 -681V938H135V-681H133ZM132 939H-2779V941H132V939ZM-2780 938V-681H-2782V938H-2780ZM-2779 939C-2779.55 939 -2780 938.552 -2780 938H-2782C-2782 939.657 -2780.66 941 -2779 941V939ZM133 938C133 938.552 132.552 939 132 939V941C133.657 941 135 939.657 135 938H133ZM132 -682C132.552 -682 133 -681.552 133 -681H135C135 -682.657 133.657 -684 132 -684V-682ZM-2779 -684C-2780.66 -684 -2782 -682.657 -2782 -681H-2780C-2780 -681.552 -2779.55 -682 -2779 -682V-684Z",fill:"white","fill-opacity":"0.1"}),t("rect",{width:"665",height:"1487",transform:"translate(-580 -598)",fill:"white"}),t("path",{d:"M-238.5 -15C-238.5 -16.933 -236.933 -18.5 -235 -18.5H30C31.933 -18.5 33.5 -16.933 33.5 -15V33C33.5 34.933 31.933 36.5 30 36.5H-235C-236.933 36.5 -238.5 34.933 -238.5 33V-15Z",stroke:"black","stroke-opacity":"0.23"}),t("rect",{y:"3",width:"19",height:"12",rx:"1",fill:"#CDCDCD"}),t("rect",{y:"4.99951",width:"19",height:"2",fill:"#999999"}),t("rect",{x:"1",y:"8.49951",width:"17",height:"1.5",rx:"0.5",fill:"white"}),t("circle",{cx:"16.3975",cy:"5.39746",r:"5.39746",fill:"#494949"}),t("path",{d:"M19.6942 7.24938C19.4831 7.24938 19.27 7.22059 19.0551 7.16302C18.8402 7.10161 18.6444 7.00757 18.4679 6.88091C18.4103 6.84637 18.3719 6.80223 18.3527 6.74849C18.3335 6.69476 18.3297 6.64294 18.3412 6.59305C18.3527 6.53931 18.3757 6.49517 18.4103 6.46063C18.4487 6.42609 18.4947 6.40689 18.5485 6.40306C18.6022 6.39538 18.6598 6.41073 18.7212 6.44911C18.8709 6.54507 19.0244 6.618 19.1818 6.66789C19.343 6.71779 19.5099 6.74274 19.6826 6.74274C19.8592 6.74274 20.0108 6.71011 20.1375 6.64486C20.2641 6.57961 20.3601 6.48942 20.4253 6.37427C20.4944 6.25529 20.529 6.11711 20.529 5.95974C20.529 5.71794 20.458 5.52027 20.3159 5.36674C20.1739 5.21322 19.9763 5.13645 19.7229 5.13645C19.5771 5.13645 19.4408 5.16332 19.3142 5.21705C19.1875 5.26695 19.0666 5.35139 18.9515 5.47038C18.9246 5.50108 18.8881 5.52987 18.8421 5.55673C18.7999 5.57976 18.7519 5.59128 18.6981 5.59128C18.6175 5.59128 18.5561 5.57017 18.5139 5.52795C18.4717 5.48573 18.4506 5.42815 18.4506 5.35523V3.40351C18.4506 3.31907 18.4736 3.25382 18.5197 3.20776C18.5657 3.1617 18.631 3.13867 18.7154 3.13867H20.6441C20.7286 3.13867 20.7938 3.15978 20.8399 3.202C20.8859 3.24422 20.9089 3.30563 20.9089 3.38624C20.9089 3.46684 20.8859 3.53017 20.8399 3.57623C20.7938 3.61845 20.7286 3.63956 20.6441 3.63956H19.0321V5.10191H18.8709C18.9745 4.95606 19.1108 4.84283 19.2796 4.76223C19.4524 4.68163 19.6423 4.64133 19.8496 4.64133C20.1068 4.64133 20.3294 4.69506 20.5175 4.80253C20.7055 4.91 20.8514 5.06161 20.955 5.25736C21.0586 5.44927 21.1105 5.6738 21.1105 5.93096C21.1105 6.19196 21.0529 6.42225 20.9377 6.62183C20.8226 6.81758 20.6595 6.97111 20.4484 7.08242C20.2373 7.19372 19.9859 7.24938 19.6942 7.24938Z",fill:"white"}),t("path",{d:"M16.1154 7.24846C15.9004 7.24846 15.6817 7.21967 15.459 7.1621C15.2364 7.10069 15.0426 7.01049 14.8776 6.89151C14.8162 6.85313 14.7739 6.80707 14.7509 6.75333C14.7317 6.69576 14.7279 6.64394 14.7394 6.59789C14.7509 6.54799 14.7739 6.50577 14.8085 6.47123C14.8469 6.43668 14.8929 6.41749 14.9466 6.41365C15.0004 6.40598 15.0599 6.42133 15.1251 6.45971C15.2902 6.5595 15.4514 6.63243 15.6087 6.67849C15.7661 6.72071 15.9292 6.74182 16.0981 6.74182C16.2823 6.74182 16.4378 6.71495 16.5644 6.66122C16.6911 6.60748 16.7851 6.5288 16.8466 6.42517C16.9118 6.32154 16.9444 6.19679 16.9444 6.05094C16.9444 5.83217 16.8715 5.66904 16.7257 5.56157C16.5836 5.45027 16.3764 5.39461 16.1039 5.39461H15.7124C15.6241 5.39461 15.5569 5.3735 15.5109 5.33128C15.4648 5.28522 15.4418 5.22189 15.4418 5.14129C15.4418 5.06453 15.4648 5.00504 15.5109 4.96281C15.5569 4.91676 15.6241 4.89373 15.7124 4.89373H16.0463C16.2113 4.89373 16.3514 4.86686 16.4666 4.81313C16.5817 4.75555 16.67 4.67687 16.7314 4.57708C16.7967 4.47344 16.8293 4.3487 16.8293 4.20285C16.8293 4.0071 16.764 3.85741 16.6335 3.75378C16.5069 3.64631 16.3207 3.59258 16.0751 3.59258C15.9177 3.59258 15.768 3.61369 15.626 3.65591C15.4878 3.69813 15.3439 3.77297 15.1942 3.88044C15.1366 3.91883 15.081 3.9361 15.0273 3.93226C14.9774 3.92458 14.9332 3.90539 14.8948 3.87469C14.8603 3.84014 14.8353 3.79792 14.82 3.74803C14.8085 3.69813 14.8123 3.64631 14.8315 3.59258C14.8507 3.53884 14.8891 3.49279 14.9466 3.4544C15.1079 3.33542 15.2902 3.24522 15.4936 3.18381C15.697 3.11856 15.9062 3.08594 16.1211 3.08594C16.3898 3.08594 16.6201 3.12816 16.812 3.2126C17.0078 3.29704 17.1555 3.41794 17.2553 3.57531C17.359 3.73267 17.4108 3.92075 17.4108 4.13952C17.4108 4.30456 17.3801 4.45425 17.3187 4.58859C17.2572 4.72293 17.169 4.83807 17.0538 4.93403C16.9425 5.02614 16.8063 5.09139 16.6451 5.12978V5.06645C16.9252 5.1125 17.1421 5.22765 17.2956 5.41188C17.4492 5.59228 17.5259 5.81873 17.5259 6.09124C17.5259 6.32921 17.4683 6.53647 17.3532 6.71303C17.2419 6.88575 17.0807 7.01817 16.8696 7.11028C16.6585 7.2024 16.4071 7.24846 16.1154 7.24846Z",fill:"white"}),t("path",{d:"M12.2588 7.09919C12.1782 7.09919 12.1149 7.07616 12.0688 7.0301C12.0228 6.98405 11.9998 6.92263 11.9998 6.84587C11.9998 6.76527 12.0228 6.70386 12.0688 6.66164C12.1149 6.61942 12.1782 6.59831 12.2588 6.59831H12.9612V3.53543H13.2606L12.42 4.07086C12.3586 4.1054 12.3011 4.11883 12.2473 4.11116C12.1974 4.10348 12.1533 4.08237 12.1149 4.04783C12.0804 4.01328 12.0554 3.97106 12.0401 3.92117C12.0285 3.87127 12.0324 3.81945 12.0516 3.76572C12.0746 3.71198 12.1149 3.66785 12.1725 3.6333L12.967 3.13242C13.0322 3.09404 13.0936 3.06333 13.1512 3.0403C13.2126 3.01343 13.2702 3 13.3239 3C13.3892 3 13.4429 3.01919 13.4851 3.05757C13.5312 3.09212 13.5542 3.15161 13.5542 3.23605V6.59831H14.199C14.2835 6.59831 14.3487 6.61942 14.3948 6.66164C14.4408 6.70386 14.4639 6.76527 14.4639 6.84587C14.4639 6.92647 14.4408 6.9898 14.3948 7.03586C14.3487 7.07808 14.2835 7.09919 14.199 7.09919H12.2588Z",fill:"white"})]}),a1=({size:e,color:i,viewBox:a="0 0 103 103"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:a,fill:i,children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.875 65.4105L12.875 51.4999C12.875 49.1297 14.7964 47.2083 17.1667 47.2083C19.5369 47.2083 21.4583 49.1297 21.4583 51.4999L21.4583 65.2333C21.4583 68.9094 21.4617 71.4084 21.6195 73.3401C21.7732 75.2216 22.0519 76.1838 22.3939 76.855C23.2168 78.4701 24.5299 79.7831 26.1449 80.6061C26.8161 80.9481 27.7783 81.2267 29.6599 81.3804C31.5915 81.5383 34.0905 81.5416 37.7667 81.5416H65.2333C68.9095 81.5416 71.4085 81.5382 73.3401 81.3804C75.2217 81.2267 76.1839 80.9481 76.8551 80.6061C78.4702 79.7831 79.7832 78.4701 80.6061 76.855C80.9482 76.1838 81.2268 75.2216 81.3805 73.34C81.5383 71.4084 81.5417 68.9094 81.5417 65.2333L81.5417 51.4999C81.5417 49.1297 83.4631 47.2083 85.8333 47.2083C88.2036 47.2083 90.125 49.1297 90.125 51.4999V65.4098C90.1251 68.8648 90.1251 71.7162 89.9353 74.039C89.7382 76.4513 89.3152 78.6689 88.254 80.7518C86.6081 83.9819 83.982 86.608 80.7518 88.2539C78.6689 89.3152 76.4514 89.7382 74.0391 89.9353C71.7165 90.125 68.8652 90.125 65.4106 90.1249H37.5894C34.1348 90.125 31.2835 90.125 28.9609 89.9353C26.5486 89.7382 24.3311 89.3152 22.2482 88.2539C19.0181 86.608 16.3919 83.9819 14.7461 80.7518C13.6848 78.6689 13.2618 76.4513 13.0647 74.039C12.8749 71.7164 12.8749 68.8652 12.875 65.4105Z"}),t("path",{d:"M35.591 54.5347C33.915 52.8587 33.915 50.1413 35.591 48.4653C37.267 46.7893 39.9843 46.7893 41.6603 48.4653L47.209 54.014V17.1667C47.209 14.7964 49.1304 12.875 51.5007 12.875C53.8709 12.875 55.7923 14.7964 55.7923 17.1667V54.014L61.341 48.4653C63.017 46.7893 65.7343 46.7893 67.4103 48.4653C69.0863 50.1413 69.0863 52.8587 67.4103 54.5347L54.5353 67.4097C52.8593 69.0857 50.142 69.0857 48.466 67.4097L35.591 54.5347Z"})]}),a2=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M0 24C0 10.7452 10.7452 0 24 0V0C37.2548 0 48 10.7452 48 24V24C48 37.2548 37.2548 48 24 48V48C10.7452 48 0 37.2548 0 24V24Z",fill:"#EB5757"}),t("path",{d:"M16.7472 31.9423C16.5639 31.7589 16.4609 31.5103 16.4609 31.251C16.4609 30.9917 16.5639 30.7431 16.7472 30.5597L22.9699 24.337L16.7472 18.1142C16.5691 17.9298 16.4706 17.6828 16.4728 17.4265C16.475 17.1701 16.5778 16.9248 16.7591 16.7435C16.9404 16.5623 17.1857 16.4594 17.442 16.4572C17.6984 16.455 17.9454 16.5535 18.1298 16.7316L24.3526 22.9544L30.5753 16.7316C30.7597 16.5535 31.0067 16.455 31.2631 16.4572C31.5194 16.4594 31.7647 16.5623 31.946 16.7435C32.1273 16.9248 32.2301 17.1701 32.2323 17.4265C32.2346 17.6828 32.136 17.9298 31.9579 18.1142L25.7352 24.337L31.9579 30.5597C32.136 30.7441 32.2346 30.9911 32.2323 31.2475C32.2301 31.5038 32.1273 31.7491 31.946 31.9304C31.7647 32.1117 31.5194 32.2145 31.2631 32.2167C31.0067 32.219 30.7597 32.1204 30.5753 31.9423L24.3526 25.7196L18.1298 31.9423C17.9465 32.1256 17.6978 32.2286 17.4385 32.2286C17.1793 32.2286 16.9306 32.1256 16.7472 31.9423Z",fill:"white"})]}),a0=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{width:"48",height:"48",rx:"24",fill:"#F2771E"}),t("path",{d:"M15 22C15 22.9193 15.1811 23.8295 15.5328 24.6788C15.8846 25.5281 16.4002 26.2997 17.0503 26.9497C17.7003 27.5998 18.4719 28.1154 19.3212 28.4672C20.1705 28.8189 21.0807 29 22 29C22.9193 29 23.8295 28.8189 24.6788 28.4672C25.5281 28.1154 26.2997 27.5998 26.9497 26.9497C27.5998 26.2997 28.1154 25.5281 28.4672 24.6788C28.8189 23.8295 29 22.9193 29 22C29 21.0807 28.8189 20.1705 28.4672 19.3212C28.1154 18.4719 27.5998 17.7003 26.9497 17.0503C26.2997 16.4002 25.5281 15.8846 24.6788 15.5328C23.8295 15.1811 22.9193 15 22 15C21.0807 15 20.1705 15.1811 19.3212 15.5328C18.4719 15.8846 17.7003 16.4002 17.0503 17.0503C16.4002 17.7003 15.8846 18.4719 15.5328 19.3212C15.1811 20.1705 15 21.0807 15 22ZM33 33L27 27Z",fill:"#F2771E"}),t("path",{d:"M33 33L27 27M15 22C15 22.9193 15.1811 23.8295 15.5328 24.6788C15.8846 25.5281 16.4002 26.2997 17.0503 26.9497C17.7003 27.5998 18.4719 28.1154 19.3212 28.4672C20.1705 28.8189 21.0807 29 22 29C22.9193 29 23.8295 28.8189 24.6788 28.4672C25.5281 28.1154 26.2997 27.5998 26.9497 26.9497C27.5998 26.2997 28.1154 25.5281 28.4672 24.6788C28.8189 23.8295 29 22.9193 29 22C29 21.0807 28.8189 20.1705 28.4672 19.3212C28.1154 18.4719 27.5998 17.7003 26.9497 17.0503C26.2997 16.4002 25.5281 15.8846 24.6788 15.5328C23.8295 15.1811 22.9193 15 22 15C21.0807 15 20.1705 15.1811 19.3212 15.5328C18.4719 15.8846 17.7003 16.4002 17.0503 17.0503C16.4002 17.7003 15.8846 18.4719 15.5328 19.3212C15.1811 20.1705 15 21.0807 15 22Z",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),a3=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{width:"48",height:"48",rx:"24",fill:"#03D69D"}),t("path",{d:"M16.4531 24L21.9388 29.4857L31.8817 18.5143",stroke:"white",strokeWidth:"5",strokeLinecap:"round"})]}),a4=({size:e,color:i,viewBox:a})=>r("svg",{viewBox:a,width:e,height:e,children:[t("path",{d:"M0 0h24v24H0z",fill:"none"}),t("path",{fill:i,d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"})]});a4.defaultProps={color:"#767676",viewBox:"0 0 24 24",size:24};let a5=({size:e,color:r,viewBox:i})=>t(a,{sx:{minWidth:`${e}px`},viewBox:i,width:e,height:e,component:"svg",children:t("circle",{fill:r,cx:"50",cy:"50",r:"50",stroke:"#c7c7c7",strokeWidth:"3"})});a5.defaultProps={color:"none",viewBox:"0 0 100 100",size:20};let a6={CheckboxChecked:({size:e=20,color:r,viewBox:i="0 0 100 100"})=>{let o=G();return t(a,{sx:{minWidth:`${e}px`},viewBox:i,width:e,height:e,component:"svg",children:t("circle",{fill:r||o.palette.primary.light,cx:"50",cy:"50",r:"50"})})},CheckboxUnchecked:a5,CheckboxIndeterminate:a4},a9=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{width:"48",height:"48",rx:"24",fill:"#F2771E"}),t("path",{d:"M36.5805 30.3668L26.7808 13.5738C26.497 13.0948 26.091 12.6975 25.6032 12.4214C25.1154 12.1453 24.5629 12 24.0006 12C23.4382 12 22.8857 12.1453 22.3979 12.4214C21.9102 12.6975 21.5042 13.0948 21.2203 13.5738L11.4206 30.3668C11.1452 30.8316 11 31.3604 11 31.8988C11 32.4372 11.1452 32.966 11.4206 33.4308C11.7013 33.9122 12.1067 34.3112 12.5953 34.5869C13.0839 34.8627 13.638 35.0052 14.2008 34.9999H33.8003C34.3627 35.0048 34.9164 34.8621 35.4046 34.5864C35.8927 34.3107 36.2978 33.9119 36.5783 33.4308C36.8541 32.9662 36.9996 32.4375 37 31.8991C37.0004 31.3606 36.8556 30.8318 36.5805 30.3668ZM34.2497 32.1028C34.2041 32.1794 34.1384 32.2425 34.0595 32.2853C33.9806 32.3281 33.8914 32.3491 33.8014 32.3461H14.2008C14.1108 32.3491 14.0217 32.3281 13.9428 32.2853C13.8639 32.2425 13.7981 32.1794 13.7526 32.1028C13.7139 32.0408 13.6934 31.9694 13.6934 31.8966C13.6934 31.8238 13.7139 31.7524 13.7526 31.6904L23.5523 14.8974C23.6008 14.8237 23.6673 14.7631 23.7455 14.7212C23.8238 14.6793 23.9115 14.6573 24.0006 14.6573C24.0896 14.6573 24.1773 14.6793 24.2556 14.7212C24.3339 14.7631 24.4003 14.8237 24.4488 14.8974L34.2474 31.6904C34.2864 31.7522 34.3073 31.8235 34.3077 31.8963C34.3081 31.9691 34.288 32.0406 34.2497 32.1028ZM22.6558 24.827V21.2886C22.6558 20.9367 22.7975 20.5992 23.0497 20.3503C23.3019 20.1015 23.6439 19.9617 24.0006 19.9617C24.3572 19.9617 24.6992 20.1015 24.9514 20.3503C25.2036 20.5992 25.3453 20.9367 25.3453 21.2886V24.827C25.3453 25.1789 25.2036 25.5164 24.9514 25.7652C24.6992 26.0141 24.3572 26.1539 24.0006 26.1539C23.6439 26.1539 23.3019 26.0141 23.0497 25.7652C22.7975 25.5164 22.6558 25.1789 22.6558 24.827ZM25.7935 29.25C25.7935 29.5999 25.6884 29.9419 25.4914 30.2329C25.2944 30.5238 25.0143 30.7506 24.6867 30.8845C24.3591 31.0184 23.9986 31.0534 23.6508 30.9852C23.303 30.9169 22.9835 30.7484 22.7327 30.501C22.482 30.2536 22.3112 29.9383 22.242 29.5951C22.1729 29.2519 22.2084 28.8962 22.3441 28.5729C22.4798 28.2497 22.7096 27.9733 23.0044 27.7789C23.2993 27.5845 23.6459 27.4808 24.0006 27.4808C24.4761 27.4808 24.9321 27.6672 25.2684 27.999C25.6046 28.3308 25.7935 28.7808 25.7935 29.25Z",fill:"white"})]}),a7=({open:e,sx:r,...i})=>t(a,{sx:{display:"grid",minHeight:"100vh",gridTemplateColumns:{xs:"1fr",sm:e?"240px 1fr":"73px 1fr"},...r},...i}),a8=tk({root:{height:"3px"},colorPrimary:{backgroundColor:e=>e.colors?.[0]||e.theme?.primaryLighterColor},barColorPrimary:{backgroundColor:e=>e.colors?.[1]||e.theme?.primaryLighterColor}}),oe=({currentProgress:e,colors:r,hideAfterComplete:i=!1,...a})=>{let[o,n]=eE(0),[l,s]=eE(!1),d=a8({colors:r});return(ey(()=>{let e=setInterval(()=>{n(t=>100===t?(clearInterval(e),i&&setTimeout(()=>{s(!0)},600),t):t+4)},300);return()=>{clearInterval(e)}},[]),l)?t(R,{width:"100%",...a,height:"3px"}):t(R,{width:"100%",...a,children:t(tA,{classes:{colorPrimary:d.colorPrimary,barColorPrimary:d.barColorPrimary,root:d.root},variant:"determinate",value:e??o})})},ot=({size:e,fullScreen:r,wrappedInDialog:i,...o})=>{let n=t(tD,{sx:{"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},size:e,"data-testid":"loading",...o});return r?t(a,{sx:{flex:1,width:"100%",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:n}):i?t(tR,{open:!0,children:t(tL,{children:n})}):n},or=()=>{let{width:e}=t_();return{isMobile:e<600,isTablet:e>600&&e<900,isDesktop:e>=900,width:e}},oi=eh([]);function oa({children:e,isStartOpen:r=null}){let{isTablet:i,isDesktop:a}=or(),[o,n]=eE("boolean"!=typeof r?i||a:r);return t(oi.Provider,{value:[o,n],children:e})}let oo=()=>{let[e,t]=eC(oi);return{isSidebarOpen:e,sidebarOpen:()=>{t(!0)},sidebarClose:()=>{t(!1)},sidebarToggle:()=>{t(!e)}}},on=({header:t,sidebar:i,children:o})=>{let{isSidebarOpen:n}=oo(),{width:l=0}=t_();return l<600?r(e,{children:[t,i,o]}):r(a,{sx:{width:"100%",height:"100vh",display:"grid",gridTemplateColumns:`${n?"240px":"0"} 1fr`},children:[i,r("div",{style:{minWidth:0},children:[t,o]})]})},ol=e=>t(eT,{...e}),os=e=>{let{title:i=null,bodyStyle:a={},isOpen:o,children:n,isScrollable:l,handleClose:s,className:d,dialogStyle:c={transitionDuration:600},actions:p,showClose:m=!1,fullWidth:h=!1,maxWidth:u="sm"}=e;return r(tR,{TransitionComponent:ol,open:o,onClose:s,"data-testid":"dialog-123",className:d,fullWidth:h,maxWidth:u,sx:{".MuiDialog-paper":{gap:1,px:2,py:1}},...c,children:[r(iJ,{sx:{justifyContent:"space-between"},children:[i?t(tN,{fontWeight:"bold",sx:{padding:0},children:i}):null,m&&t(tm,{onClick:()=>s(),children:t(tc,{})})]}),t(tL,{className:"Modal__DialogContent",style:l?a:{...a,overflow:"visible"},sx:{padding:0},children:n}),!!p&&t(tP,{children:p})]})},od=({sx:e,...r})=>t(a,{sx:{overflow:"auto",wordBreak:"break-all","&::-webkit-scrollbar":{width:"2px",height:"2px",WebkitBoxShadow:"inset 0 0 6px rgba(0, 0, 0, 0)",WebkitBorderRadius:"10px"},"&:hover":{"&::-webkit-scrollbar-thumb":{borderRadius:"10px",height:"3px",background:Q().palette.primary.main}},"&::-webkit-scrollbar-thumb":{background:"transparent"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},...e},...r}),oc=({size:e="100px"})=>r("svg",{width:e,height:e,viewBox:"0 0 195 182",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M2.13871 62.2408C2.13871 62.2408 10.3588 27.4986 42.7525 10.5971C75.1462 -6.30429 113.779 0.886713 145.237 5.85722C176.696 10.8277 196.706 34.8945 194.566 63.7653C192.427 92.6361 167.058 95.3647 147.688 124.312C128.319 153.26 127.315 164.025 96.1129 177.331C64.9106 190.637 24.8391 168.744 9.42793 129.932C-5.9832 91.1202 2.13871 62.2408 2.13871 62.2408Z",fill:"#03D69D"}),t("path",{opacity:"0.7",d:"M2.13871 62.2408C2.13871 62.2408 10.3588 27.4986 42.7525 10.5971C75.1462 -6.30429 113.779 0.886712 145.237 5.85722C176.696 10.8277 196.706 34.8945 194.566 63.7653C192.427 92.6361 167.058 95.3647 147.688 124.312C128.319 153.26 127.315 164.025 96.1129 177.331C64.9106 190.637 24.8391 168.744 9.42793 129.932C-5.9832 91.1202 2.13871 62.2408 2.13871 62.2408Z",fill:"white"}),t("path",{d:"M135.411 4.02396H105.264L104.012 6.34695C103.335 7.56463 102.344 8.57911 101.143 9.28539C99.9417 9.99168 98.5736 10.3641 97.1801 10.3641C95.7866 10.3641 94.4184 9.99168 93.2172 9.28539C92.016 8.57911 91.0253 7.56463 90.3478 6.34695L89.0923 4.02396H58.9362C57.4114 4.00343 55.9408 4.58926 54.8478 5.65265C53.7548 6.71605 53.1288 8.16997 53.1074 9.69478V164.938C53.1174 165.693 53.2762 166.439 53.5745 167.133C53.8729 167.827 54.3051 168.456 54.8463 168.983C55.3876 169.51 56.0274 169.925 56.7291 170.204C57.4309 170.484 58.1809 170.623 58.9362 170.613H135.411C136.936 170.632 138.406 170.045 139.498 168.981C140.59 167.917 141.215 166.462 141.236 164.938V9.69478C141.214 8.17072 140.589 6.71745 139.497 5.65418C138.405 4.59091 136.935 4.00457 135.411 4.02396Z",fill:"white",stroke:"#263238",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M88.4207 90.6044C90.3904 92.5089 92.1993 94.2579 94.0082 96.0069C89.908 100.865 84.803 103.858 78.0096 102.614C71.6986 101.448 67.5583 97.6782 65.9102 91.615C64.1817 85.2019 67.2367 78.5557 73.1457 75.2909C79.0547 72.026 86.4511 72.8811 91.3149 77.5063C96.7416 82.6367 102.048 87.8838 107.434 93.0531C110.208 95.696 114.308 96.0069 117.282 93.8693C120.619 91.4595 121.222 86.7955 118.649 83.6473C116.036 80.499 111.213 79.9938 108.077 82.6367C106.992 83.5307 106.108 84.6578 105.183 85.6683C103.173 83.725 101.364 81.976 99.5554 80.227C103.535 75.4852 108.56 72.2592 116.036 73.6973C122.267 74.8633 126.89 79.7994 127.935 85.9793C128.94 92.0425 125.644 98.3001 119.895 101.215C114.026 104.169 106.912 103.158 102.128 98.611C96.7818 93.4806 91.4757 88.3113 86.1295 83.1809C83.8382 80.9654 80.6224 80.3047 77.8086 81.5484C74.9546 82.7922 73.3869 84.9687 73.3467 88.0392C73.3065 91.0708 74.7536 93.364 77.6076 94.6466C80.5018 95.9292 83.2353 95.5405 85.6471 93.5195C86.6922 92.5867 87.5364 91.5372 88.4207 90.6044Z",fill:"#03D69D"})]}),op=({width:e="90px",active:r=!0,height:i=10,percent:o,barColor:n,...l})=>t(a,{...l,children:t(a,{className:"ProgressBar__wrapper",sx:{width:e,height:`${i}px`,overflow:"hidden",borderRadius:"8px",backgroundColor:"rgba(96, 115, 137, 0.26)"},children:t(a,{className:"ProgressBar__progress",sx:{width:`${Math.min(o,100)}%`,height:`${i}px`,transition:"width 1s",backgroundColor:n||(r?o>=100?"#7ed321":"#309dd1":"rgba(96, 115, 137, 0.4)")}})})}),om=({sx:e,...r})=>t(a,{component:"span",sx:{textAlign:"center",alignSelf:"center",...e},...r}),oh=ex(({width:e=20,height:r=20,sx:i,...o},n)=>{let l=Q(),s="number"==typeof e?e:parseInt(e,10);return t(a,{ref:n,sx:{color:"white",width:"number"==typeof e?`${e}px`:e,height:"number"==typeof r?`${r}px`:r,margin:"0 10px",cursor:"default",display:"flex",fontSize:`${.75*s}px`,textAlign:"center",borderRadius:"50%",justifyContent:"center",backgroundColor:l.palette.tertiary.main,...i},...o})});oh.displayName="BlockDescriptionTooltip";let ou=({width:e=20,height:r=20,...i})=>t(tO,{placement:"right-end",...i,children:t(oh,{width:e,height:r,children:t(om,{children:"?"})})}),ox=({sx:e,...r})=>t(a,{sx:{display:"flex",flexDirection:"row",...e},...r}),of=({getFragmentVariables:e,relay:r,handleLoading:i})=>t(v,{onClick:()=>{let t=t=>({...t,...e?e():{}});i?i(!0,()=>r.refetch(t,null,()=>i(!1))):r.refetch(t)},size:"large",children:t(tz,{})}),og=({onRefresh:e})=>t(v,{onClick:e,size:"large",children:t(tz,{})}),oC=e=>{let r=Q(),[i,a]=eE(aO().search||""),{onSearchTermChange:o,defaultValue:n,placeholder:l,handleLoading:s,staticContext:d,...c}=e,p=eI(null);return t(tF,{sx:{color:r.palette.text.primary,fontSize:e.fontSize??"13px"},type:"search",name:"search",value:i,onChange:e=>{p.current&&clearTimeout(p.current);let t=e.target.value;a(t),p.current=setTimeout(()=>o(t),500)},placeholder:l,startAdornment:t(tW,{position:"start",children:t(tH,{})}),...c})},{stringify:oy}=a_,ob=e=>{let{handleLoading:r=(e,t)=>{t&&t()},useQueryString:i=!0,relay:a,filters:o,updateFilter:n,placeholder:l,useNewFilters:s=!1,searchName:d="search"}=e,c=eo(),p=en(),{t:m}=eW();return t(oC,{onSearchTermChange:t=>{let{pathname:l}=p;if(i){let e=aW(aO()),r=oy({...th.dot(e),[d]:t});c.replace({pathname:l,search:r})}else n({...o,[d]:t});let m=s&&!i?{[d]:t}:null,h=t=>({...t,...((t={})=>{if(e.getFragmentVariables)return s?e.getFragmentVariables(t):e.getFragmentVariables();let{quantity:r,...i}=aO();return{[d]:i[d],filters:{...i,...t},first:parseInt(r,10)||30}})(m)});return r(!0,()=>a.refetch(h,null,()=>r(!1)))},placeholder:l||m("Search"),autoFocus:!0})},ov=({firstItemIndex:i,lastItemIndex:a,totalItems:o,handlePageChange:n,isLoading:l=!1})=>r(e,{children:[t(v,{onClick:()=>{i>=1&&n(!1)},disabled:l||i<1,"data-testid":"btn-paginate-left",size:"large",children:t(tV,{})}),t(v,{onClick:()=>{null==o?n(!0):a<o&&n(!0)},disabled:!!l||null!=o&&!(a<o),"data-testid":"btn-paginate-right",size:"large",children:t(tB,{})})]}),ow=(e,r,i)=>e.map((e,a)=>t(ei,{path:e.path,exact:e.exact,render:a=>t(e.component,{...i,...a,company:r,routes:e.routes,currentRoute:e})},a)),oM=(e,t)=>{let{path:r="",exact:i=!0}=t,{pathname:a}=e;return null!==ea(a,{path:r,exact:i})},oI=(e=[])=>e?.includes("TEMP"),oE=i=>{let o,n=eo(),l=el(),s=en(),{routes:d,routeTo:c}=i,{t:p}=eW(),m=ew(()=>ow(d,null,i),[]);ey(()=>{let{pathname:e}=s;if(!(d.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)&&d.length>0){let[e]=d;n.replace(`${c(e.name,l)}${s.search}`)}},[]);let h=d.filter(e=>!!e.label),u=d.length>1,x=-1===(o=d.findIndex(e=>oM(s,{path:e.path,exact:!1})))?0:"tabIndex"in d[o]?d[o].tabIndex:o;return r(e,{children:[u&&r(a,{sx:{marginLeft:"8px"," @media (min-width: 600px)":{marginLeft:"16px"},".MuiTabs-root":{minHeight:"0 !important"},".MuiTab-root":{fontSize:"14px",textTransform:"none",padding:"5px 0px",marginRight:"16px",minWidth:0,minHeight:0,opacity:1}},children:[t(t$,{value:x,onChange:(e,t)=>{let r=d[t].clearQueryParams?"":s.search,i=`${c(d[t].name,l)}${r}`;if(e?.metaKey||e.ctrlKey){let e=window.open(i,"_blank");e?.focus();return}return n.replace(i)},variant:"scrollable",children:h.map(({label:e,requiredFeatures:r,isTemp:i,hasBadge:a},o)=>{let n,l={...i||oI(r)?{border:"1px dashed red"}:{},overflow:"visible"};return t(tZ,{active:+(x===o),label:(n="function"==typeof e?e({t:p}):e,a?t(tj,{color:"error",variant:"dot",badgeContent:" ",children:n}):n),component:"button",sx:l},o)})}),t(tG,{sx:{marginRight:"8px","@media (min-width: 600px)":{marginRight:"16px"}}})]}),t(a,{sx:{margin:"16px 8px","@media (min-width: 600px)":{margin:"16px"}},children:m})]})},oS=e=>{let{location:t,routes:r,match:i,routeTo:a,history:o}=e;return ey(()=>{(()=>{let{pathname:e}=t,{params:n}=i;if(!(r.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)){let[e]=r;o.replace(a(e.name,n))}})()}),ew(()=>ow(r,null,e),[])},oA=(e,t=50)=>!e||e.length<t?[e,!1]:[`${e.slice(0,t)}...`,!0],ok=({children:e,length:r=50,...i})=>{let[a,o]=oA(e,r);return o?t(tO,{title:e,placement:"right-start",children:t(eH,{...i,children:a})}):t(eH,{...i,children:a})},oT=({children:e,header:i,number:o,status:n,...l})=>{let s=G();return r(R,{pl:"28px",...l,children:[t(a,{sx:{marginTop:"3px"},children:t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:s.palette.common.white,borderRadius:"50%",background:s.palette.primary.main},children:n?t(iB,{children:"check"}):o})}),r(R,{flexDirection:"column",pl:"25px",pr:"25px",flex:1,pt:"10px",children:[i&&t(V,{fontSize:"14px",mb:"15px",fontWeight:"600",children:i}),e]})]})},oD=({title:e,titleLabel:i})=>r(a,{sx:{display:"flex",flexDirection:"row"},children:[t(eH,{component:"h2",m:0,fontSize:22,fontWeight:600,children:e}),i&&t(tO,{title:i,placement:"right",children:t(tm,{size:"small",children:t(tU,{fontSize:"small"})})})]}),oR=({children:e,title:i,rightComponent:o,maxWidth:n="960px",marginTopBox:l="10px",overflow:s=!0,...d})=>{let c=Q();return t(a,{width:"100%",children:t(R,{sx:{flexDirection:"column",paddingLeft:1.5,paddingRight:1.5,background:e=>`linear-gradient(to right,${e.palette.primary.main},${e.palette.primary.dark})`,borderBottomLeftRadius:{lg:1},borderBottomRightRadius:{lg:1}},height:d.height?d.height:s?c.spacing(19):c.spacing(7),children:r(a,{mt:l,maxWidth:n,alignSelf:"center",width:"100%",children:[r(a,{sx:{color:c.palette.primary.contrastText,display:"flex",justifyContent:"space-between"},children:[t(iJ,{sx:{flexDirection:"row",alignItems:"center"},children:i&&t(oD,{title:i})}),o&&t(a,{sx:{maxWidth:"400px",alignSelf:"center",justifyContent:"center",zIndex:1},children:o})]}),t(iJ,{sx:{flexDirection:"column"},children:e})]})})})},oL=e=>{let{label:i,value:o,breakByColon:n=!0,sx:l={},...s}=e;return i?t(tY,{sx:{marginLeft:"3px",...l},label:(()=>{if(o)return r(a,{component:"span",sx:{fontWeight:600},children:[t(a,{sx:{margin:"2px 0",fontWeight:"normal",borderRight:"1px solid",marginRight:"5px",paddingRight:"4px"},component:"span",children:i}),o]});if(-1!==i.indexOf(":")&&n){let[e,o]=i.split(":");return r(a,{component:"span",sx:{fontWeight:600},children:[t(a,{sx:{margin:"2px 0",fontWeight:"normal",borderRight:"1px solid",marginRight:"5px",paddingRight:"4px"},component:"span",children:e}),o]})}return i})(),...s}):null},o_=({sx:e,...r})=>t(a,{sx:{display:"flex",fontSize:"14px",fontWeight:"normal",flexDirection:"row",...e},...r}),oP=({title:e,titleLabel:i})=>r(a,{sx:{display:"flex",flexDirection:"row"},children:[t(eH,{component:"h2",m:0,fontSize:22,fontWeight:600,children:e}),i&&t(tO,{title:i,placement:"right",children:t(tm,{size:"small",children:t(tU,{fontSize:"small"})})})]}),oN=e=>t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},...e}),oO=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{padding:1,sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{justifyContent:"center",flexWrap:"wrap",flexDirection:{xs:"column",sm:"column",md:"row"},gap:1},children:[r(R,{flexGrow:1,children:[e&&t(oP,{title:e,titleLabel:i}),o&&t(o_,{children:o}),d?.length>=1&&t(oN,{children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick},r))}),s&&t(oN,{children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oE,{routes:n,routeTo:l})]}),oz=i=>{let o,n=eo(),l=el(),s=en(),{routes:d,routeTo:c}=i,p=Q(),{t:m}=eW(),h=ew(()=>ow(d,null,i),[]);ey(()=>{let{pathname:e}=s;if(!(d.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)&&d.length>0){let[e]=d;n.replace(`${c(e.name,l)}${s.search}`)}},[n,s,l,c,d]);let u=d.filter(e=>!!e.label),x=d.length>1,f=-1===(o=d.findIndex(e=>oM(s,{path:e.path,exact:!1})))?0:"tabIndex"in d[o]?d[o].tabIndex:o;return r(e,{children:[x&&t(a,{sx:{paddingTop:p.spacing(.5),mx:p.spacing(2)},children:t(H,{value:f,onChange:(e,t)=>{let r=d[t].clearQueryParams?"":s.search,i=`${c(d[t].name,l)}${r}`;if(e?.metaKey||e.ctrlKey){let e=window.open(i,"_blank");e?.focus();return}return n.replace(i)},variant:"scrollable",allowScrollButtonsMobile:!0,TabIndicatorProps:{style:{height:p.spacing(.4),backgroundColor:p.palette.primary.main}},sx:{"& .MuiTabs-scroller":{height:48,paddingTop:p.spacing(1)},"& .MuiTabs-scrollButtons":{backgroundColor:p.palette.grey[200],borderRadius:p.spacing(1),mx:p.spacing(1),my:p.spacing(1),color:p.palette.grey[900]},"& .MuiTabs-scrollButtons.Mui-disabled":{opacity:.3},"& .MuiTab-root":{fontSize:14,textTransform:"none",marginRight:p.spacing(1),minWidth:0,minHeight:0}},children:u.map(({label:e},r)=>t(z,{label:"function"==typeof e?e({t:m}):e,component:"button",sx:{height:32,whiteSpace:"nowrap",fontWeight:p.typography.fontWeightBold,backgroundColor:f===r?p.palette.primary.main:p.palette.grey[200],borderRadius:p.spacing(1),color:p.palette.grey[700],"&.Mui-selected":{color:p.palette.common.white}}},r))})}),t(g,{sx:{mx:p.spacing(2)}}),t(a,{sx:{margin:p.spacing(2)},children:h})]})},oH=({sx:e,...r})=>t(a,{sx:{display:"flex",fontSize:"14px",fontWeight:"normal",flexDirection:"row",...e},...r}),oF=({title:e,titleLabel:i})=>r(a,{sx:{display:"flex",flexDirection:"row"},children:[t(eH,{component:"h2",m:0,fontSize:22,fontWeight:600,children:e}),i&&t(tO,{title:i,placement:"right",children:t(tm,{size:"small",children:t(tU,{fontSize:"small"})})})]}),oW=e=>t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},...e}),oV=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{alignItems:"center",justifyContent:"space-between",position:"sticky",mt:2,mb:2*!(n&&n.length>1),gap:2},children:[r(R,{flexGrow:1,children:[e&&t(oF,{title:e,titleLabel:i}),o&&t(oH,{children:o}),d?.length>=1&&t(oW,{children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick},r))}),s&&t(oW,{children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{sx:{alignItems:"center",justifyContent:"center"},children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oz,{routes:n,routeTo:l})]}),oB=i=>{let o,n=eo(),l=el(),s=en(),{routes:d,routeTo:c}=i,p=Q(),{t:m}=eW(),h=ew(()=>ow(d,null,i),[]);ey(()=>{let{pathname:e}=s;if(!(d.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)&&d.length>0){let[e]=d;n.replace(`${c(e.name,l)}${s.search}`)}},[n,s,l,c,d]);let u=d.filter(e=>!!e.label),x=d.length>1,f=-1===(o=d.findIndex(e=>oM(s,{path:e.path,exact:!1})))?0:"tabIndex"in d[o]?d[o].tabIndex:o;return r(e,{children:[x&&t(a,{sx:{paddingTop:p.spacing(.5),mx:p.spacing(2)},children:t(H,{value:f,onChange:(e,t)=>{let r=d[t].clearQueryParams?"":s.search,i=`${c(d[t].name,l)}${r}`;if(e?.metaKey||e.ctrlKey){let e=window.open(i,"_blank");e?.focus();return}return n.replace(i)},variant:"scrollable",allowScrollButtonsMobile:!0,TabIndicatorProps:{style:{height:p.spacing(.4),backgroundColor:p.palette.primary.main}},sx:{"& .MuiTabs-scroller":{height:48,paddingTop:p.spacing(1)},"& .MuiTabs-scrollButtons":{backgroundColor:p.palette.grey[200],borderRadius:p.spacing(1),margin:p.spacing(1),color:p.palette.grey[900]},"& .MuiTabs-scrollButtons.Mui-disabled":{opacity:.3},"& .MuiTab-root":{fontSize:14,textTransform:"none",marginRight:p.spacing(1),minWidth:0,minHeight:0}},children:u.map(({label:e},r)=>t(z,{label:"function"==typeof e?e({t:m}):e,component:"button",sx:{height:32,whiteSpace:"nowrap",border:`1px solid ${p.palette.grey[300]}`,fontWeight:p.typography.fontWeightBold,backgroundColor:p.palette.common.white,borderRadius:p.spacing(1),color:p.palette.common.black,"&.Mui-selected":{color:p.palette.primary.dark,borderColor:p.palette.primary.main}}},r))})}),t(g,{sx:{mx:p.spacing(2)}}),t(a,{sx:{margin:p.spacing(2)},children:h})]})},oj=e=>t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},...e}),oG=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{alignItems:"center",justifyContent:"space-between",position:"sticky",mt:2,mb:2*!(n&&n.length>1),gap:2},children:[r(R,{flexGrow:1,children:[e&&t(oF,{title:e,titleLabel:i}),o&&t(oH,{children:o}),d?.length>=1&&t(oj,{children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick},r))}),s&&t(oj,{children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{sx:{alignItems:"center",justifyContent:"center"},children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oB,{routes:n,routeTo:l})]}),oZ="DEBIT",o$="CREDIT",oU={IN:"#4CAF50",OUT:"#EF5350"},oY=({sx:e,color:r,children:i,...o})=>t(a,{component:"span",sx:{color:r,...e},...o,children:i}),oq=ex(({children:e,...r},i)=>{let{isMobile:a}=or();return a?t(iJ,{tabIndex:-1,ref:i,children:t(tK,{direction:"up",mountOnEnter:!0,unmountOnExit:!0,...r,children:e})}):t(iJ,{tabIndex:-1,ref:i,children:t(tX,{mountOnEnter:!0,unmountOnExit:!0,...r,children:e})})}),oX=({open:e,title:i,onClose:a,children:o,actions:n,width:l,maxHeight:s="400px",contentProps:d})=>{let c=Q();return t(tq,{open:e,onClose:a,closeAfterTransition:!0,sx:{"@media (max-width: 600px)":{zIndex:c.zIndex.mobileStepper+d?.sx.zIndex}},children:t(oq,{in:e,children:r(eL,{sx:{position:"absolute",left:0,bottom:0,right:0,boxShadow:c.shadows[2],borderTopLeftRadius:c.shape.borderRadius,borderTopRightRadius:c.shape.borderRadius,borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"fit-content","@media (min-width: 600px)":{width:l,maxWidth:700,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"@media (max-width: 600px)":{marginBottom:12}},children:[t(tN,{id:"dialog-title",children:i}),t(iJ,{sx:{maxHeight:s,overflowY:"auto"},children:t(tL,{sx:d?.sx,dividers:!0,children:o})}),n&&t(tP,{children:n})]})})})},oK={[o$]:"#4CAF50",[oZ]:"#FF9800"},oQ=e=>({[o$]:e.palette.success.light,[oZ]:e.palette.warning.light}),oJ=({status:e,sx:r,...i})=>{let a=oQ(Q());return t(oL,{sx:{color:"white !important",backgroundColor:`${a[e]||oK[e]} !important`,...r},...i})},o1="PENDING",o2="CREATED",o0="PARTIAL_REFUND",o3="IN_PROCESSING",o4="NOT_ACCOMPLISHED",o5="REJECTED",o6="RECEIVED",o9="REFUNDED",o7="CONFIRMED",o8=(e,t)=>({[o7]:e.palette.success.light,[o6]:e.palette.success.light,[o2]:e.palette.warning.light,[o1]:e.palette.warning.light,[o0]:e.palette.warning.light,[o3]:e.palette.warning.light,[o5]:e.palette.error.light,[o4]:e.palette.error.light,[o9]:e.palette.error.light})[t],ne=({status:e})=>{let r=Q(),{t:i}=eW();return t(oL,{variant:"filled",label:{[o6]:i("Received"),[o9]:i("Refunded"),[o0]:i("Partially refunded"),[o3]:i("In processing"),[o4]:i("Not accomplished"),[o5]:i("Rejected"),[o1]:i("Pending"),[o2]:i("Created"),[o7]:i("Confirmed"),[o2]:i("Created")}[e],sx:{color:"white",backgroundColor:o8(r,e)}})},nt=function({sx:e,children:r,...i}){return t(a,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",...e},...i,children:r})},nr=({children:e,sx:r,...i})=>t(a,{sx:{flex:1,display:"flex",minHeight:"300px",alignItems:"center",flexDirection:"column",justifyContent:"space-between",...r},...i,children:e}),ni=({sx:e,color:r="primary",variant:i="solid",children:o,...n})=>{let l=Q();return t(a,{sx:{padding:"12px",display:"flex",flexWrap:"wrap",flexGrow:1,fontSize:"14px",alignItems:"center",fontWeight:600,justifyContent:"space-between",..."solid"===i?{color:"warning"===r?l.palette.tertiary.main:"white",backgroundColor:"warning"===r?l.palette.warning.light:l.palette[r].main}:"outline"===i?{border:`1px solid ${l.palette[r].main}`,borderRadius:"8px"}:{},...e},...n,children:o})},na=()=>t("svg",{width:90,height:90,viewBox:"0 0 135 135",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M67.5 0C30.172 0 0 30.172 0 67.5S30.172 135 67.5 135 135 104.828 135 67.5 104.828 0 67.5 0zm33.75 91.733l-9.517 9.517L67.5 77.017 43.267 101.25l-9.517-9.517L57.983 67.5 33.75 43.267l9.517-9.517L67.5 57.983 91.733 33.75l9.517 9.517L77.017 67.5l24.233 24.233z",fill:"#EF5350"})}),no=({errors:e,callbackOnClose:i})=>{let{t:a}=eW(),o=G();return null!=e&&e.length>0?r(R,{direction:"row",gap:1,sx:{backgroundColor:"#FFCDC1",borderRadius:"4px",padding:"16px",alignItems:"flex-start",mb:2,justifyContent:"space-between"},children:[r(R,{direction:"column",spacing:1,children:[t(V,{variant:"body1",sx:{color:o.palette.error.main},children:a("Error!!!")}),e.map(e=>t(R,{direction:"row",spacing:.5,children:t(V,{component:"span",sx:{color:o.palette.error.main},children:e})}))]}),t(tm,{sx:{width:55,height:55},onClick:i,children:t(na,{})})]}):null},nn=({errors:i,columns:a,titleHeader:n,onClose:l,isOpen:s=!1,color:d,name:c,refColumn:p})=>{let m=c?`banner-infos-${c}`:"banner-infos",h=G();if(!(null!=i&&i.length>0)||!s)return null;let u=(e,t)=>t.valueGetter?t.valueGetter({row:e}):t.field?"-":String(e[t.field]),x={ERROR:{HEADER_BG:"#dc3545",HEADER_TEXT:h.palette.error.dark,CONTENT_BG:"#FFCDC1",CONTENT_TEXT:"#721c24"},SUCCESS:{HEADER_BG:"#28a745",HEADER_TEXT:h.palette.success.dark,CONTENT_BG:"#C8E6C9",CONTENT_TEXT:"#155724"}}[d||"ERROR"],f="SUCCESS"===d;return r(R,{"data-testid":m,direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-between"},mb:1,children:[r(R,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",backgroundColor:x.HEADER_BG,color:"white",borderRadius:"8px 8px 0 0",flexDirection:"row",padding:2},children:[r(R,{sx:{display:"flex",alignItems:"center",gap:2,flexDirection:"row"},children:[f?t(ej,{size:20}):t(eq,{size:20}),t(V,{sx:{fontSize:h.typography.body1,fontWeight:h.typography.fontWeightBold},children:n?.toUpperCase()})]}),t(o,{sx:{background:"none",border:"none",color:"white",cursor:"pointer",padding:1,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s"},onClick:l,onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.2)"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},"aria-label":"Fechar",children:t(eZ,{size:20})})]}),t(R,{direction:"row",gap:1,sx:{width:"100%",backgroundColor:x.CONTENT_BG,padding:2,borderBottomLeftRadius:1,borderBottomRightRadius:1},children:t(R,{direction:"column",spacing:1,sx:{width:"100%"},children:i.map((o,n)=>r(e,{children:[(({error:e,index:i})=>t(R,{"data-testid":((e,t)=>{if(!p)return`row-${t}`;let r=u(e,p);return`row-${r||t}`})(e,i),direction:"column",spacing:.5,children:a.map((i,a)=>r(R,{direction:"row",spacing:1,children:[r(V,{component:"span",sx:{color:x.CONTENT_TEXT,fontWeight:h.typography.fontWeightBold,minWidth:"100px"},children:[i.headerName,":"]}),t(V,{component:"span",sx:{color:x.CONTENT_TEXT},children:((e,t)=>{if(t.renderCell){let r=u(e,t),i=t.renderCell({color:x.CONTENT_TEXT,value:r,row:e});return null===i?"-":i}return u(e,t)})(e,i)})]},a))},i))({error:o,index:n}),n<i.length-1&&t(g,{sx:{backgroundColor:d||h.palette.error.main}})]}))})})]})},nl=({variant:e,children:r,color:i,...a})=>t(eH,{variant:e,color:i,...a,children:r}),ns=({onClick:e,icon:i})=>{let a=G(),{t:n}=eW();return t(o,{onClick:e,sx:{textTransform:"none",borderRadius:a.spacing(3.75),backgroundColor:a.palette.common.black,py:a.spacing(2),px:a.spacing(6.75),alignItems:"center"},children:r(R,{alignItems:"center",direction:"row",spacing:a.spacing(1),children:[i&&t("img",{src:i,width:24,height:24}),t(nl,{component:"span",variant:"subtitle1",sx:{color:a.palette.common.white},children:n("Donate with")}),t(nl,{component:"span",variant:"subtitle1",sx:{color:a.palette.primary.main},children:"clickpix"})]})})},nd=({onClick:e,icon:i})=>{let a=G(),{t:n}=eW();return t(o,{onClick:e,sx:{textTransform:"none",borderRadius:a.shape.borderRadius,backgroundColor:a.palette.common.black,py:a.spacing(1.5),px:a.spacing(6.75),alignItems:"center"},children:r(R,{alignItems:"center",direction:"row",spacing:a.spacing(1),children:[i&&t("img",{src:i,width:24,height:24}),t(nl,{component:"span",variant:"subtitle1",sx:{color:a.palette.common.white},children:n("Donate to a")}),t(nl,{component:"span",variant:"subtitle1",sx:{fontWeight:a.typography.fontWeightBold,color:a.palette.common.white},children:n("click")})]})})},nc=e=>({startIcon:e?t(tD,{size:"12px"}):null}),np=e=>{let{title:i,description:a,icon:o,renderActions:n,primaryAction:l,primaryActionLabel:s,primaryActionProps:d={},secondaryAction:c,secondaryActionLabel:p,secondaryActionProps:m={}}=e,h=G(),u=l&&s,x=c&&p,f=`rgba(${aU(h.palette.common.black).join(",")}, 0.12)`;return r(iX,{sx:{flex:1,height:"100%",display:"flex",padding:"0 10px",boxSizing:"border-box",minHeight:"150px",transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",flexDirection:"column","&:hover":{boxShadow:"0 10px 20px 0 rgba(96, 115, 137, 0.29)"}},children:[r(tn,{sx:{height:"60px",display:"flex",alignItems:"center",borderBottom:`1px solid ${f}`},children:[o?"string"==typeof o?t(iB,{sx:{color:h.palette.primary.light,margin:"-5px 5px -5px -5px",fontSize:"30px"},children:o}):t(tn,{sx:{display:"flex",margin:"0 10px 0 0"},children:t(o,{width:25,height:25,color:h.palette.primary.light})}):null,t(eH,{sx:{color:h.palette.common.black,margin:0,fontSize:"14px",fontWeight:"normal"},component:"h6",children:i})]}),t(eH,{sx:{flex:1,color:h.palette.grey[600],margin:"10px 0 0 0",fontSize:"12px",fontWeight:"normal"},component:"p",children:a}),n?n:u||x?r(ee,{justifyContent:"flex-end",sx:{mb:"10px"},children:[x?t(ij,{variant:"text",color:"secondary",onClick:c,...m,children:p}):null,u?t(ij,{variant:"text",color:"primary",onClick:l,...d,children:s}):null]}):null]})},nm=i=>{let{t:a}=eW(),{leftComponent:o,rightComponent:n,edges:l,emptyMessage:s=a("No data available"),renderItem:d,isLoading:c,withActionMargin:p=!0}=i;return r(e,{children:[p&&t(aI,{leftComponent:o,rightComponent:n}),c?t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(ot,{})}):0===l.length?t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(V,{children:s})}):l.map((e,t)=>d(e,t))]})},nh=({children:e,isSelected:r=!1,disabled:i=!1,onClick:a,sx:o={},...n})=>{let l,s,d,c=Q();return t(R,{sx:{width:"100%",justifyContent:"center",p:2,border:1,borderRadius:c.spacing(1),transition:"0.25s ease",...(l=c.palette.primary.main,s=q(c.palette.primary.dark,.3),d="lightGray",r?{color:i?c.palette.text.disabled:s,borderColor:i?"gray":l,boxShadow:`0px 0px 0px 2px ${i?d:X(l,.7)}`}:{color:i?c.palette.text.disabled:c.palette.text.secondary,borderColor:d}),...((e,t,r)=>{let i,a;return t?{}:{"&:hover":{cursor:"pointer",...(i=X(e.palette.primary.main,.7),a=e.palette.primary.main,{boxShadow:`0px 0px 0px ${r?2:1}px ${i}`,borderColor:r?a:X(a,.3)})}}})(c,i,r),...o},"data-testid":n["data-testid"],onClick:a,children:e})},nu=({title:e,icon:i,content:a,to:o,color:n})=>{let l=G();return r(eP,{component:et,variant:"outlined",sx:e=>({p:e.spacing(2),cursor:o?"pointer":"default",height:"100%",minHeight:90,display:"flex",alignItems:"stretch",justifyContent:"center",flexDirection:"column",textDecoration:"none",":hover":{borderColor:e.palette.grey[400]}}),...o.startsWith("/")?{}:{component:"a",href:o,target:"_blank",rel:"noopener noreferrer"},children:[r(ee,{direction:"row",sx:{alignItems:"center",justifyContent:"start",width:"100%"},spacing:1,children:[i,t(eH,{variant:"h4",sx:{color:n},fontWeight:l.typography.fontWeightBold,children:e})]}),a&&t(eH,{variant:"subtitle1",sx:{marginTop:1.2,color:n},children:a})]})},nx=({label:e,value:i,alignField:a="inherit"})=>r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:a},children:[t(eH,{variant:"body2",color:"GrayText",children:e}),t(eH,{variant:"body1",fontWeight:600,sx:{lineHeight:"16px",wordBreak:"break-word",display:"flex",flexWrap:"wrap",gap:1},children:i})]}),nf=({label:e,value:i,centeredLabel:a=!1})=>r(iJ,{sx:{flexDirection:"column",justifyContent:"center"},children:[t(V,{fontSize:"14px",fontWeight:"600",sx:{lineHeight:"16px"},textAlign:a?"center":"start",children:e}),t(V,{fontSize:"12px",textAlign:"center",children:i})]}),ng=({children:e,cardProps:i={},gridProps:a={},actions:o,templateColumns:n="repeat(auto-fit, minmax(150px, 1fr))"})=>r(iX,{mb:"10px",...i,children:[t(at,{templateColumns:n,gap:"15px",padding:"16px",...a,children:e}),!!o&&t(iK,{children:o})]}),nC=({sx:e,company:r,...i})=>r?.logo?.url?t(a,{sx:{margin:"20px",objectFit:"contain",...e},src:r.logo.url,component:"img",...i}):t(a,{sx:{color:"#607389",textAlign:"center",fontWeight:"bold"},component:"h1",children:r.nameFriendly}),ny=eh({showDialog:e=>{},hideDialog:()=>{}}),nb=e=>{let[t,r]=eE(e);return[t,e=>{null!=e&&r(e)}]},nv=({children:i})=>{let{t:a}=eW(),o=eI(null),n=eI(null),[l,s]=nb(null),[d,c]=nb(""),[p,g]=nb(!1),[C,y]=nb({}),b=()=>{n.current&&n.current(),g(!1)},v=()=>{o.current&&o.current(),g(!1)},[w,M]=nb(r(e,{children:[t(ij,{variant:"outlined",onClick:b,"data-testid":"btn-dialog-cancel",children:a("Cancel")}),t(iG,{color:"primary",onClick:v,"data-testid":"btn-dialog-confirm",children:a("Confirm")})]}));return r(ny.Provider,{value:{showDialog:i=>{let{title:l,message:d,onContinue:p,onClose:m,action:h,...u}=i;p&&(o.current=p),m&&(n.current=m);let x=h||r(e,{children:[t(ij,{variant:"outlined",color:"secondary",onClick:b,"data-testid":"btn-dialog-cancel",children:a("Cancel")}),t(iG,{color:"primary",onClick:v,"data-testid":"btn-dialog-confirm",children:a("Confirm")})]});s(l||null),c(d||""),M(x),y(u),g(!0)},hideDialog:b},children:[r(m,{open:p,onClose:b,...C,children:[l&&t(f,{children:l}),t(u,{children:"string"==typeof d?t(x,{children:d}):d}),!!w&&t(h,{children:w})]}),i]})},nw=({children:e,selectOnLeft:i,onClickSelect:a,selected:o,disabled:n,testId:l})=>{let s=a?t(ee,{alignItems:i?"flex-start":"flex-end",children:t(d,{onClick:a,checked:o,checkedIcon:t(a6.CheckboxChecked,{}),indeterminateIcon:t(a6.CheckboxIndeterminate,{}),icon:t(a6.CheckboxUnchecked,{}),disabled:n,inputProps:{"data-testid":l}})}):null;return r(ng,{gridProps:a?i?{templateColumns:"50px repeat(auto-fit, minmax(150px, 1fr))"}:{templateColumns:"repeat(auto-fit, minmax(150px, 1fr)) 50px"}:{templateColumns:"repeat(auto-fit, minmax(150px, 1fr))"},children:[!!i&&s,e,!i&&s]})},nM=({sx:e,...r})=>t(a,{sx:{width:"900px",height:"100%",padding:"10px",backgroundColor:"#f8f8f8","@media (max-width: 1000px)":{width:"300px"}},...r}),nI=class extends ep{state={error:null,fetchKey:0};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,{componentStack:t}){process.env.JEST_WORKER_ID}_retry=()=>{this.setState(e=>({error:null,fetchKey:e.fetchKey+1}))};render(){let{children:e,fallback:t}=this.props,{error:r,fetchKey:i}=this.state;if(r){if(r.cause?.code===401){let e=new URLSearchParams(window.location.search).get("next"),t=e?`/login?next=${encodeURIComponent(e)}`:"/login";return window.location.replace(t)}return"function"==typeof t?t(r,this._retry):t}return"function"==typeof e?e({fetchKey:i}):e}},nE="chunk_reload_triggered",nS=({error:e,retry:i})=>{let a=eI(!1),o=e=>"string"==typeof e?e:e&&"object"==typeof e&&"message"in e?e?.message:void 0,n=e=>"string"==typeof e&&e.includes("Loading chunk"),l=Array.isArray(e)?o(e[0])??"Ocorreu um erro desconhecido":o(e)??"Ocorreu um erro desconhecido";return ey(()=>{(Array.isArray(e)?e.some(e=>n(o(e))):n(o(e)))&&!a.current&&(a.current=!0,localStorage.getItem(nE)?setTimeout(()=>{localStorage.removeItem(nE)},6e4):(localStorage.setItem(nE,"true"),window.location.href="/"))},[e]),t(tn,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"center",margin:"10px"},children:t(tn,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",maxWidth:"500px"},children:r(iX,{sx:{margin:"20px",padding:"20px",alignItems:"center",flexDirection:"column"},children:[t("h3",{children:"Ops! Ocorreu um erro"}),t(tn,{component:"p",sx:{marginBottom:"20px"},children:l}),i?t(ed,{variant:"outlined",onClick:i,children:"Tentar novamente"}):t(ed,{variant:"outlined",onClick:()=>{window.location.href="/login/logout",window.location.reload()},children:"Tentar novamente"})]})})})},nA=({children:e})=>t(nI,{fallback:(e,r)=>t(nS,{error:e,retry:r}),children:({fetchKey:t})=>e({fetchKey:t})}),nk=nS,nT=function({color:e,onClick:i,children:a,background:o="#F9F9F9"}){let n=e||(o&&.5>=tJ(o).luminance()?"#FFF":"#000"),l=tJ(o).brighten(.2).toString();return r(tn,{component:"button",onClick:i,sx:{transition:"all 500ms cubic-bezier(0.2, 1, 0.22, 1)",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"15px",fontWeight:300,color:n,fill:n,background:o,border:"none",cursor:"pointer","&:hover":{background:l}},children:[a,t(t1,{})]})},nD=function(e){let{children:r}=e,i=e.className?`material-icons ${e.className}`:"material-icons";return t(a,{sx:{color:e.color||"#FFF",padding:e.padding||"5px",fontSize:e.fontSize||16,textAlign:"center",fontWeight:800},...e,className:i,component:"i",children:r})},nR=({onDrop:e,onFileDialogCancel:i,isLoading:a,children:o,url:n,onRemoveFile:l})=>{let{getRootProps:s,getInputProps:d,open:c}=tQ({onDrop:e,multiple:!1,noClick:!0,onFileDialogCancel:i}),p=!!l&&!!n&&!a;return t(ee,{flexDirection:"column",children:r(tn,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",border:"2px dashed #dddfe2",borderRadius:"2px",boxSizing:"border-box",minHeight:"100px",outline:"none"},children:[r("div",{role:"button","aria-pressed":"false",...s(),onClick:c,children:[t("input",{...d()}),a&&t(ot,{}),o({isLoading:a,open:c})]}),p&&t(ee,{children:t(nT,{background:"#fff",onClick:l,size:"large",children:t(nD,{color:"#515c6a",children:"delete"})})})]})})},nL=(e,t)=>{let r=aN(e);return tx(aH(t),r)},n_=e=>e?e.indexOf("true")>-1||!(e.indexOf("false")>-1)&&e:e,nP=({children:e,forceRow:r})=>t(R,{spacing:2,direction:r?"row":{xs:"column",md:"row"},children:e}),nN=({sx:e,...r})=>t(a,{sx:{width:"100%",maxWidth:"200px",objectFit:"contain",maxHeight:"150px",...e},component:"img",...r}),nO=({header:e,sidebar:i,children:a})=>{let{width:o}=t_();return o<600?r(b,{container:!0,children:[e,i,a]}):r(b,{container:!0,children:[e,t(iJ,{sx:{flexDirection:"column",mt:"60px",flex:1},children:a})]})},nz=({width:e,height:i="40px",showText:a=!0})=>{let o=a?"#1F6D61":"#fff",n=a?"#4AB7A8":"#fff";return r("svg",{version:"1.1",id:"OpenPixLogo","data-testid":"OpenPixLogo",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:e,height:i,viewBox:"0 0 670.49 140.22",children:[r("g",{fill:a?"#96969A":"#fff",fillRule:"nonzero",id:"open",children:[t("polygon",{points:"469.7,34.9 469.6,35.2 469.8,35"}),t("path",{d:"M264.8,59.4c0,8.5-1.2,15.9-3.7,22.4c-2.5,6.5-5.8,11.9-10,16.2c-4.2,4.3-9.1,7.6-14.7,9.8 c-5.6,2.2-11.5,3.3-17.8,3.3c-6.3,0-12.2-1.1-17.8-3.3c-5.6-2.2-10.5-5.4-14.7-9.8c-4.2-4.3-7.6-9.7-10-16.2 c-2.5-6.5-3.7-13.9-3.7-22.4c0-8.5,1.2-15.9,3.7-22.3c2.5-6.4,5.8-11.8,10-16.1c4.2-4.3,9.1-7.6,14.7-9.8 c5.6-2.2,11.5-3.3,17.8-3.3c6.3,0,12.2,1.1,17.8,3.3c5.6,2.2,10.5,5.4,14.7,9.8c4.2,4.3,7.6,9.7,10,16.1 C263.5,43.5,264.8,51,264.8,59.4L264.8,59.4z M254.5,59.4c0-6.6-0.9-12.6-2.6-17.9c-1.7-5.3-4.1-9.8-7.3-13.5 c-3.1-3.7-6.9-6.5-11.3-8.5c-4.4-1.9-9.4-2.9-14.9-2.9c-5.5,0-10.5,1-14.9,2.9c-4.4,1.9-8.2,4.8-11.3,8.5 c-3.1,3.7-5.6,8.2-7.3,13.5c-1.7,5.3-2.6,11.2-2.6,17.9c0,6.7,0.9,12.6,2.6,17.9c1.7,5.3,4.1,9.8,7.3,13.5 c3.1,3.7,6.9,6.6,11.3,8.5c4.4,2,9.4,3,14.9,3c5.5,0,10.5-1,14.9-3c4.4-2,8.2-4.8,11.3-8.5c3.1-3.7,5.6-8.2,7.3-13.5 C253.6,72,254.5,66.1,254.5,59.4L254.5,59.4z"}),t("path",{d:"M289.7,135.2h-9.3V37.8c2.8-0.9,6.3-1.9,10.5-2.7c4.3-0.9,9.7-1.3,16.2-1.3c5.4,0,10.3,0.9,14.7,2.6 c4.4,1.8,8.2,4.3,11.4,7.6c3.2,3.3,5.6,7.4,7.4,12.1c1.8,4.7,2.6,10.1,2.6,16.1c0,5.6-0.7,10.8-2.2,15.5 c-1.5,4.7-3.6,8.7-6.5,12.1c-2.8,3.4-6.3,6-10.5,7.9c-4.1,1.9-8.9,2.8-14.2,2.8c-4.8,0-9-0.7-12.6-2.1c-3.6-1.4-6.2-2.7-7.8-3.9 V135.2z M289.7,95.6c0.9,0.7,1.9,1.4,3.2,2.1c1.3,0.8,2.8,1.5,4.5,2.1c1.7,0.7,3.6,1.2,5.6,1.6c2,0.4,4.1,0.6,6.3,0.6 c4.6,0,8.4-0.8,11.5-2.4c3.1-1.6,5.6-3.7,7.5-6.4c1.9-2.7,3.3-5.9,4.1-9.5c0.9-3.7,1.3-7.5,1.3-11.6c0-9.7-2.4-17.1-7.3-22.3 c-4.8-5.2-11.3-7.8-19.2-7.8c-4.6,0-8.2,0.2-11,0.6c-2.8,0.4-4.9,0.9-6.3,1.4V95.6z"}),t("path",{d:"M353.7,72c0-6.5,0.9-12.1,2.8-16.9c1.9-4.8,4.3-8.8,7.3-12c3-3.2,6.4-5.6,10.3-7.2c3.8-1.6,7.8-2.4,11.9-2.4 c9,0,16.2,2.9,21.6,8.8c5.4,5.9,8.1,15,8.1,27.2c0,0.8,0,1.5-0.1,2.3c0,0.8-0.1,1.5-0.2,2.1h-51.7c0.3,9,2.5,16,6.7,20.8 c4.2,4.8,10.8,7.3,19.9,7.3c5,0,9-0.5,12-1.4c2.9-0.9,5.1-1.8,6.4-2.4l1.7,8c-1.3,0.8-3.8,1.7-7.5,2.7c-3.7,1-8,1.6-12.9,1.6 c-6.5,0-12-1-16.5-2.9c-4.6-1.9-8.3-4.6-11.3-8c-2.9-3.4-5.1-7.5-6.4-12.2C354.3,82.7,353.7,77.6,353.7,72L353.7,72z M406,66.1 c-0.2-7.7-2-13.7-5.4-18c-3.4-4.3-8.3-6.4-14.5-6.4c-3.3,0-6.3,0.7-8.9,2c-2.6,1.3-4.9,3.1-6.8,5.3c-1.9,2.2-3.5,4.8-4.6,7.8 c-1.1,2.9-1.7,6-1.9,9.3H406z"}),t("path",{d:"M430.7,37.8c2.8-0.8,6.5-1.6,11.1-2.6c4.7-0.9,10.4-1.4,17.1-1.4c5.6,0,10.3,0.8,14,2.4 c3.8,1.6,6.7,3.9,9,6.9c2.2,3,3.8,6.6,4.8,10.8c0.9,4.2,1.4,8.8,1.4,13.8v41.2h-9.3V70.7c0-5.2-0.4-9.6-1.1-13.3 c-0.7-3.6-1.9-6.6-3.6-8.8c-1.7-2.3-3.8-3.9-6.6-4.9c-2.7-1-6.1-1.5-10.2-1.5c-4.4,0-8.1,0.2-11.3,0.7c-3.2,0.5-5.3,0.9-6.2,1.3 v64.7h-9.3V37.8z"})]}),r("g",{fill:n,fillRule:"nonzero",id:"pix",children:[t("path",{d:"M532.1,19.1c12.8,0,22.3,2.4,28.5,7.3c6.3,4.9,9.4,11.8,9.4,20.7c0,5.1-0.9,9.5-2.7,13.1 c-1.8,3.6-4.4,6.5-7.8,8.7c-3.4,2.2-7.5,3.8-12.4,4.8c-4.9,1-10.4,1.5-16.6,1.5h-12.2v34.9h-8.9V21.6c3.1-0.9,6.8-1.5,11-1.9 C524.6,19.3,528.5,19.1,532.1,19.1z M532.5,26.8c-3.3,0-6.1,0.1-8.4,0.3c-2.3,0.2-4.3,0.4-5.9,0.6v39.9h11.2 c4.8,0,9.1-0.3,13-0.8c3.9-0.6,7.2-1.6,9.9-3.1c2.7-1.5,4.8-3.6,6.3-6.3c1.5-2.7,2.2-6.1,2.2-10.3c0-4-0.8-7.3-2.4-9.9 c-1.6-2.6-3.7-4.7-6.4-6.2c-2.6-1.5-5.7-2.6-9.1-3.2C539.6,27.1,536.1,26.8,532.5,26.8z"}),t("path",{d:"M599,22.5c0,2-0.6,3.6-1.8,4.8c-1.2,1.2-2.7,1.8-4.4,1.8c-1.7,0-3.2-0.6-4.4-1.8c-1.2-1.2-1.8-2.8-1.8-4.8 c0-2,0.6-3.6,1.8-4.8c1.2-1.2,2.7-1.8,4.4-1.8c1.7,0,3.2,0.6,4.4,1.8C598.3,19,599,20.5,599,22.5z M597,110.2h-8.5V42.9h8.5 V110.2z"}),t("path",{d:"M643,81.7c-1.9,2.3-3.8,4.7-5.7,7.2c-1.9,2.5-3.7,5-5.5,7.4c-1.8,2.4-3.4,4.9-4.9,7.4 c-1.5,2.5-2.7,4.7-3.7,6.6h-8.8c3.6-6.6,7.5-12.8,11.6-18.4c4.1-5.6,8.2-11.1,12.5-16.5l-22.8-32.4h9.9l17.6,25.5l17.6-25.5h9.2 l-22.3,32c1.9,2.4,3.9,4.9,6.1,7.7c2.2,2.8,4.3,5.7,6.5,8.7c2.2,3,4.2,6.1,6.3,9.3c2,3.2,3.9,6.4,5.6,9.6h-9.1 c-1-1.9-2.3-4-3.8-6.3c-1.5-2.3-3.1-4.7-4.9-7.2c-1.8-2.5-3.7-5-5.6-7.6C646.8,86.5,644.9,84,643,81.7z"})]}),r("g",{children:[t("path",{fill:o,d:"M134.8,93.9c-0.8-1.2-1.9-2.2-3.3-3l-11.4-6.2l-7.9-4.3l-7.9,4.3l7.9,4.3l9.9,5.4c2.9,1.6,2.9,5.1,0,6.7 l-43.8,24c-3.5,1.9-8.2,1.9-11.7,0l-43.8-24.1c-2.9-1.6-2.9-5.1,0-6.7l9.8-5.4l7.9-4.3l-7.9-4.3l-7.9,4.3l-11.4,6.2 c-2.8,1.6-4.5,4.1-4.5,6.9c0,1.4,0.4,2.7,1.2,3.8c0.8,1.2,1.9,2.2,3.3,3l53.3,29.2c3.5,1.9,8.2,1.9,11.7,0l53.2-29.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,96.4,135.6,95.1,134.8,93.9z"}),t("path",{fill:a?"#308E83":"#fff",d:"M134.8,67.7c-0.8-1.2-1.9-2.2-3.3-3l-11.4-6.2l-7.9-4.3l-7.9,4.3l7.9,4.3l9.9,5.4c2.9,1.6,2.9,5.1,0,6.7 l-9.8,5.4l-7.9,4.3L78.3,99c-3.5,1.9-8.2,1.9-11.7,0L40.5,84.7l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l9.8-5.4l7.9-4.3 l-7.9-4.3l-7.9,4.3l-11.4,6.2c-2.8,1.6-4.5,4.1-4.5,6.9c0,1.4,0.4,2.7,1.2,3.9c0.8,1.2,1.9,2.2,3.3,3l11.4,6.2l7.9,4.3l34,18.6 c3.5,1.9,8.2,1.9,11.7,0L112.2,89l7.9-4.3l11.4-6.2c2.8-1.6,4.5-4.1,4.5-6.9C136,70.2,135.6,68.9,134.8,67.7z"}),t("path",{fill:n,d:"M134.8,41.6c-0.8-1.2-1.9-2.2-3.3-3L78.3,9.5c-3.5-1.9-8.2-1.9-11.7,0L13.3,38.6c-2.8,1.6-4.5,4.1-4.5,6.9 c0,1.4,0.4,2.7,1.2,3.8c0.8,1.2,1.9,2.2,3.3,3l11.4,6.2l7.9,4.3l34,18.6c3.5,1.9,8.2,1.9,11.7,0l33.9-18.6l7.9-4.3l11.4-6.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,44.1,135.6,42.8,134.8,41.6z M122.1,48.8l-9.8,5.4l-7.9,4.3l-26,14.3c-3.5,1.9-8.2,1.9-11.7,0 L40.5,58.5l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l43.8-24c3.5-1.9,8.2-1.9,11.7,0l43.8,24.1C125,43.8,125,47.2,122.1,48.8z"}),r("g",{fill:o,children:[t("path",{d:"M65.8,44.1c-3.3-2-6.6-3.9-9.9-5.9c-1.2-0.7-2.4-1.1-3.8-1c-0.8-0.1-1.5,0.1-2.2,0.5 c-3.7,2.2-7.5,4.4-11.3,6.7c-1.4,0.8-1.4,2,0,2.8c3.7,2.1,7.4,4.1,11.1,6.3c2.2,1.3,4.4,1.1,6.6,0c3.2-1.8,6.3-3.7,9.5-5.5 C67.6,46.9,67.6,45.2,65.8,44.1z M58.4,46.4l-5.6,3.1c-0.2,0.1-0.5,0.1-0.8,0l-5.6-3.2c-0.5-0.3-0.5-1.1,0-1.4l5.7-3.2 c0.2-0.1,0.6-0.1,0.8,0l5.5,3.2C58.9,45.4,58.9,46.1,58.4,46.4z"}),t("path",{d:"M86.3,56.4L74.1,49c-0.8-0.5-1.7-0.5-2.5,0L59,56.2c-0.9,0.5-0.9,1.8,0,2.3l11.3,6.6c1.5,0.8,3.2,0.8,4.7,0 l11.3-6.5C87.2,58.2,87.2,56.9,86.3,56.4z M78.9,58l-6,3.4c-0.2,0.1-0.4,0.1-0.6,0l-6-3.5c-0.4-0.2-0.4-0.8,0-1.1l5.8-3.3 c0.4-0.2,0.8-0.2,1.1,0L79,57C79.4,57.2,79.4,57.8,78.9,58z"}),t("path",{d:"M86.6,33.1l-12.3-7.9c-0.8-0.5-1.8-0.5-2.6,0L59,32.3c-1.2,0.7-1.4,2.6-0.2,3.3l11.9,7c1.2,0.7,2.8,0.7,4,0 l11.8-6.4C87.7,35.5,87.7,33.8,86.6,33.1z M78.6,34.9l-5,2.7c-0.5,0.3-1.2,0.3-1.7,0l-5.1-3c-0.5-0.3-0.4-1.1,0.1-1.4l5.4-3 c0.3-0.2,0.8-0.2,1.1,0l5.3,3.4C79.1,33.9,79.1,34.6,78.6,34.9z"}),t("path",{d:"M87.1,52.3l3.5,2.2c0.9,0.7,2.1,0.7,3.1,0.1l3.3-2c0.8-0.5,0.8-1.6,0-2.1l-4-2.5c-0.4-0.2-0.8-0.2-1.2,0 l-4.7,2.6C86.6,50.9,86.5,51.8,87.1,52.3z"}),t("path",{d:"M96.7,46.7l3.4,2.2c0.9,0.6,2.1,0.6,3,0.1l3.6-2.2c0.5-0.3,0.6-1.1,0-1.5l-3.7-2.3c-0.7-0.5-1.7-0.5-2.4,0 l-3.8,2.2C96.2,45.5,96.1,46.3,96.7,46.7z"}),t("path",{d:"M87.6,41l4.2,2.9c0.7,0.5,1.5,0.5,2.2,0l4.3-2.8c0.4-0.3,0.4-0.8,0-1.1l-4.5-2.8c-0.6-0.4-1.3-0.4-1.9,0 l-4.3,2.6C87.2,40.2,87.2,40.7,87.6,41z"})]})]})]})},nH=({width:e,height:i="40px",color:a="#03D69D"})=>t("svg",{id:"WooviLogo","data-testid":"WooviLogo",width:e,height:i,viewBox:"0 0 124 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("g",{id:"Group",children:[t("path",{id:"Vector",d:"M101.243 35.5452C99.1586 35.5452 97.2858 34.3098 96.5084 32.3684L89.4766 15.5312C88.5932 13.4133 90.148 11.1189 92.4095 11.1189C93.7169 11.1189 94.883 11.8955 95.3777 13.1309L101.243 27.709L107.109 13.1309C107.604 11.9308 108.77 11.1189 110.077 11.1189C112.374 11.1189 113.894 13.4486 113.01 15.5312L105.978 32.4037C105.201 34.3098 103.328 35.5452 101.243 35.5452Z",fill:a}),t("path",{id:"Vector_2",d:"M122.833 1.16484C123.575 1.9414 123.964 2.82386 123.964 3.8828C123.964 4.94175 123.575 5.8595 122.833 6.56546C122.091 7.27143 121.137 7.62441 120.042 7.62441C118.911 7.62441 117.957 7.27143 117.215 6.56546C116.473 5.8595 116.12 4.94175 116.12 3.8828C116.12 2.82386 116.508 1.9414 117.25 1.16484C117.992 0.38828 118.946 0 120.042 0C121.137 0 122.091 0.38828 122.833 1.16484ZM116.791 32.3331V14.3664C116.791 12.6015 118.24 11.1542 120.007 11.1542C121.773 11.1542 123.222 12.6015 123.222 14.3664V32.2978C123.222 34.0628 121.773 35.51 120.007 35.51C118.24 35.5453 116.791 34.0981 116.791 32.3331Z",fill:a}),t("g",{id:"Group_2",children:t("path",{id:"Vector_3",d:"M23.8226 35.5453C21.8792 35.5453 20.2184 34.2746 19.7237 32.4391L16.5081 20.5083L13.2572 32.4391C12.7625 34.2746 11.1017 35.5453 9.1936 35.5453C7.32081 35.5453 5.66002 34.3099 5.12998 32.4744L0.112297 14.9665C-0.41774 13.0957 0.995693 11.2249 2.93916 11.2249C4.24659 11.2249 5.41267 12.1073 5.76603 13.378L9.40562 26.5443L12.8332 13.9781C13.2926 12.3544 14.7413 11.2249 16.4374 11.2249C18.1336 11.2249 19.6177 12.3544 20.0417 13.9781L23.4693 26.5443L27.1089 13.378C27.4622 12.1073 28.6283 11.2249 29.9357 11.2249H30.0417C31.9852 11.2249 33.3986 13.0957 32.8686 14.9665L27.8863 32.5097C27.3916 34.3099 25.7308 35.5453 23.8226 35.5453Z",fill:a})}),t("path",{id:"Vector_4",d:"M53.7168 25.6265C55.4482 27.3561 57.0383 28.9446 58.6285 30.533C55.0242 34.9453 50.5366 37.6632 44.5648 36.5337C39.0171 35.4747 35.3775 32.0508 33.9287 26.5443C32.4093 20.7201 35.0948 14.6841 40.2892 11.719C45.4835 8.754 51.9853 9.53056 56.261 13.731C61.0313 18.3904 65.6956 23.1557 70.4306 27.8503C72.8688 30.2506 76.4731 30.533 79.0879 28.5916C82.0208 26.4031 82.5508 22.1673 80.2893 19.3082C77.9925 16.449 73.7522 15.9901 70.996 18.3904C70.0419 19.2023 69.2645 20.2259 68.4518 21.1437C66.685 19.3788 65.0949 17.7903 63.5048 16.2019C67.0031 11.8955 71.42 8.96579 77.9925 10.2718C83.4695 11.3308 87.5332 15.8136 88.4519 21.426C89.3353 26.9326 86.4378 32.6156 81.3847 35.2629C76.2257 37.9456 69.9713 37.0278 65.7663 32.898C61.0666 28.2386 56.4023 23.5439 51.7026 18.8846C49.6885 16.8726 46.8616 16.2725 44.3881 17.4021C41.8793 18.5316 40.5012 20.5083 40.4658 23.2969C40.4305 26.0501 41.7026 28.1327 44.2114 29.2975C46.7556 30.4624 49.1585 30.1094 51.2786 28.2739C52.1973 27.4267 52.9394 26.4737 53.7168 25.6265Z",fill:a})]})}),nF={ACTIVE:"#FF9800",DELETED:"#ff7f50",ACTIVE_WAITING_PAYMENT_METHOD:"#FF9800",EXPIRED:"#ff7f50",OVERDUE:"#e65100",COMPLETED:"#4CAF50",SCHEDULED:"rgb(0 149 255)"},nW=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${nF[e]} !important`,color:"white !important",...r},...i}),nV=({label:e,text:i})=>r(iJ,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[t(V,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof i?t(V,{variant:"h6",sx:{overflowWrap:"anywhere"},children:i}):i]}),nB=({charge:i})=>{let{t:a}=eW();return!i.additionalInfo||i.additionalInfo.length<=0?null:i?.additionalInfo?.length>0?r(e,{children:[t(iJ,{sx:{justifyContent:"center",mb:"18px"},children:t(V,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:a("Additional information")})}),i.additionalInfo?.map(e=>t(nV,{label:e?.key,text:e?.value},e?.key))]}):null};var nj="6.0.0";let nG=({children:e,heading:i,secondaryHeading:a,primaryAction:o,primaryActionLabel:n,primaryActionProps:l,payAsGuestAction:s=null,payAsGuestActionLabel:d=null,payAsGuestActionProps:c=null,secondaryAction:p=null,secondaryActionLabel:m=null,secondaryActionProps:h=null,renderFooter:u=null,isTemp:x=!1,withCard:f=!0})=>{let C=G(),y=()=>r(R,{sx:{gap:2},flexDirection:"column",children:[t(nH,{}),r(R,{sx:{flexDirection:"column",justifyContent:"center"},children:[t(V,{variant:"h5",color:"secondary",align:"center",children:i}),a&&t(V,{color:"secondary",textAlign:"center",children:a})]})]}),b=()=>r(R,{sx:{flexDirection:"column"},children:[r(R,{sx:{flexDirection:"column",gap:1},children:[e,o?t(R,{children:t(ij,{fullWidth:!0,endIcon:t(e1,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:o,...l,children:t(V,{color:"#FFF",fontSize:18,fontWeight:600,children:n})})}):null,s?t(R,{sx:{ml:"-8px"},children:t(ij,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:t(e1,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:s,...c,children:t(V,{color:"#607389",fontSize:18,fontWeight:600,children:d})})}):null,p||m||h?t(R,{sx:{justifyContent:"center"},children:t(ij,{color:"secondary",variant:"none",onClick:p,...h,children:t(V,{color:C?.palette?.primary?.light,fontSize:18,children:m})})}):null]}),t(g,{light:!0}),r(R,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[u&&u(),r(R,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[t(aT,{}),r(V,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:C.palette.grey[400]},children:["(v",nj,")"]})]})]})]});return f?r(iX,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[y(),b()]}):r(R,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[y(),b()]})},nZ={REFUND:"#FF9800",PAYMENT:"#4CAF50",WITHDRAW:"#ff7f50",FEE:"#ff0000",BALANCE_BLOCK:"#ff0000",BALANCE_UNBLOCK:"#4CAF50",INTERNAL_TRANSFER:"#4CAF50",REVERSAL:"#4CAF50"},n$=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${nZ[e]} !important`,color:"white !important",...r},...i}),nU=(e,t)=>{if(e<1)return[];let r=Array(e).fill("");if(t){let i=t.trim().split("");for(let t=0;t<Math.min(e,i.length);t+=1)r[t]=i[t]}return r},nY={number:/^[0-9]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i},nq=ex(({name:e,length:i=6,type:a="alphanumeric",placeholder:o="",manageFocus:n=!0,error:l,disabled:s,autoFocus:d,onComplete:c,onChange:p},m)=>{let[h,u]=eE(-1),{t:x}=eW(),[f,g]=eE(""),[C,y]=eE(null),b=eI([]),v=e=>{let t=a instanceof RegExp?a:a in nY?nY[a]:null;return t?.test(e)},w=(e,t)=>{if(n){if("next"===e){let e=t+1;b.current[e<i?e:t].focus()}if("prev"===e){let e=t-1;b.current[e>-1?e:t].focus()}}},M=(e,t)=>{let r=[...nU(i,f)];r[t]=e;let a=r.join("");g(a),p&&p(a),t===i-1&&(a.length===i&&a.replaceAll(" ","").length===i?y(null):y(x("Code must be {{ size }} digits",{size:i})))},I=()=>{u(-1)},E=e=>{e.preventDefault();let t=e.clipboardData.getData("Text");v(t)&&(g(t),p&&p(t))};return ey(()=>{f.length===i&&c?.(f)},[f]),ey(()=>{e&&g("")},[e]),r(iJ,{sx:{flexDirection:"column"},children:[r(iJ,{sx:{gap:1},ref:m,children:[nU(i,f).map((r,i)=>t(F,{id:`${e}-${i+1}`,name:`${e}-${i}`,inputProps:{"data-testid":`code-input-${i+1}`},inputRef:e=>{b.current[i]=e},onChange:e=>{let t,r;v(r=(t=e.target.value).length>1?t.split("")[t.length-1]:t)?(M(r,i),w("next",i)):M("",i)},onKeyDown:e=>{"Backspace"===e.key&&(""!==e.target.value?M("",i):w("prev",i))},onFocus:e=>{e.target.select(),u(i)},onBlur:I,onPaste:E,error:l,disabled:s,placeholder:h===i?"":o,value:r,autoFocus:d&&0===i,size:"small",sx:{width:"40px"}},`${e}-${i}`)),t("input",{type:"hidden",name:e,value:f})]}),!!C&&t(V,{sx:{fontWeight:"400",fontSize:"0.64rem",paddingLeft:"10px"},color:"error",children:C})]})}),nX=e=>{let{name:r,...i}=e,[a]=ts(r);return t(nq,{...a,...i})},nK="staging",nQ=({sx:e,...r})=>t(a,{sx:{flex:1,margin:"10px",display:"flex",alignItems:"center",justifyContent:"center"},...r}),nJ=({sx:e,...r})=>t(a,{sx:{width:"100%",display:"flex",maxWidth:"500px",alignItems:"center",justifyContent:"center"},...r}),n1=({error:e,resetErrorBoundary:i})=>{let{t:a}=eW(),n=()=>{i&&i(),window.location.href="/login/logout",window.location.reload()};return process.env.NODE_ENV===nK?t(nQ,{children:t(nJ,{children:r(iX,{sx:{padding:"16px"},children:[t(V,{children:a("Error rendering")}),r(V,{children:[t("strong",{children:"Error:"})," ",e.toString()]}),i?t(o,{variant:"outlined",onClick:i,children:"Tentar novamente"}):t(o,{variant:"outlined",onClick:n,children:"Tentar novamente"})]})})}):t(nQ,{children:t(nJ,{children:r(iX,{sx:{padding:"16px"},children:[t(V,{children:a("Oops! an error has occurred")}),i?t(o,{variant:"outlined",onClick:i,children:"Tentar novamente"}):t(o,{variant:"outlined",onClick:n,children:"Tentar novamente"})]})})})},n2=({children:e})=>t(t2,{FallbackComponent:n1,onError:(e,t)=>{},onReset:e=>{window.location.href="/login/logout",window.location.reload()},children:e}),n0=({sx:e,...r})=>t(a,{sx:{display:"flex",fontSize:"14px",fontWeight:"normal",flexDirection:"row",...e},...r}),n3=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{alignItems:"center",justifyContent:"space-between",position:"sticky",mt:2,mb:2*!(n&&n.length>1),gap:2},children:[r(R,{flexGrow:1,children:[r(R,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e&&t(oD,{title:e,titleLabel:i}),d&&d.length>=1&&t(R,{direction:"row",spacing:1,children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick,sx:t=>({backgroundColor:e.theme&&t.palette[e.theme]?.light?t.palette[e.theme].light:t.palette.warning.main,color:"white"})},r))})]}),o&&t(n0,{children:o}),s&&t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{sx:{alignItems:"center",justifyContent:"center"},children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oE,{routes:n,routeTo:l})]}),n4=({clearAll:i,selectAll:a,selectedAll:o,edges:n,selectedCount:l})=>{let{t:s}=eW();return o?r(e,{children:[t(V,{sx:{display:"flex",fontSize:"0.875rem",lineHeight:"18px",fontWeight:"bold",alignItems:"center",borderRight:"1px solid #607389",marginRight:"5px",paddingRight:"15px"},children:s("{{count}} selected",{count:l})}),t(ij,{variant:"text",color:"primary",onClick:i,children:s("Clear Selection")})]}):t(ij,{variant:"text",color:"primary",onClick:()=>a(n),children:s("Select all")})},n5=e=>e.map(({link:e})=>e).reduce((e,t)=>t?[...e,t]:e,[]),n6=({link:e,label:r,isMobile:i,disabled:a=!1})=>{let o=en(),{sidebarClose:n}=oo(),l=!!ea(o.pathname,{path:e,exact:!0}),s=ew(()=>ex((r,i)=>t(er,{to:e,ref:i,...r})),[e]);return t(S,{dense:!0,component:s,onClick:()=>{!a&&i&&n()},disableGutters:!0,selected:l,disabled:a,sx:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer","&:hover":{backgroundColor:a?"transparent":void 0}},children:t(k,{primary:r,sx:a?{"& .MuiTypography-root":{color:"text.disabled"}}:void 0})})},n9=i=>{let{link:a,label:o,icon:n,items:l,isMobile:s,newChip:d,notificationCounter:c,disabled:m=!1,requiredRoles:h}=i,{t:u}=eW(),x=en(),{sidebarClose:f}=oo(),[g,C]=eE(!1),{width:y}=t_(),b=s?"8px":"4px",v=(({link:e,location:t,items:r})=>{let i;if((i="function"==typeof e?e():e)&&"string"==typeof i){let e=(e=>{let[t]=e.split("/").filter(Boolean);return t?`/${t}`:"/"})(t.pathname);return oM(t,{path:i,exact:"/home"===i||"/console"===i||i===e})}return n5(r||[]).map(e=>oM(t,{path:e,exact:!1})).reduce((e,t)=>e||t,!1)})({link:a,location:x,items:l}),w=()=>!!c&&!!(c>0);if(ew(()=>ex((e,r)=>t(er,{to:a===window.location.pathname?`${a}${window.location.search}`:a,ref:r,...e})),[a]),a){let e=h?.filter(e=>!e.includes("ADMIN"))||[];return t(W,{title:e.length>0?e.join(", "):"",children:t(er,{to:a,onClick:e=>{if(m){e.preventDefault(),e.stopPropagation();return}s&&f()},style:{textDecoration:"none",color:"text.primary"},children:r(S,{button:!0,disableRipple:!1,selected:v,disabled:m,sx:{paddingTop:b,paddingBottom:b,cursor:m?"not-allowed":"pointer","&:hover":{backgroundColor:e=>X(e.palette.secondary.main,.9)},"& .MuiTouchRipple-root":{color:e=>e.palette.secondary.main}},children:[n&&t(A,{sx:m?{color:"text.disabled"}:void 0,children:n}),r(iJ,{sx:{alignItems:"center",gap:1},children:[t(k,{primary:o,sx:{"& .MuiTypography-root":{color:m?"text.disabled":"text.primary"}}}),d&&t(oL,{label:u("New"),size:"small",color:"primary"}),w()&&c&&t(oL,{label:c.toString(),size:"small",color:"error"})]})]})})})}return r(e,{children:[r(S,{button:!0,disableRipple:!1,onClick:()=>{m||C(!g)},selected:v,disabled:m,sx:{paddingTop:b,paddingBottom:b,cursor:m?"not-allowed":"pointer","&:hover":{backgroundColor:e=>X(e.palette.secondary.main,.9)},"& .MuiTouchRipple-root":{color:e=>e.palette.secondary.main}},children:[n&&t(A,{sx:m?{color:"text.disabled"}:void 0,children:n}),r(iJ,{sx:{alignItems:"center",gap:1},children:[t(k,{primary:o,sx:{"& .MuiTypography-root":{color:m?"text.disabled":void 0}}}),d&&t(oL,{label:u("New"),size:"small",color:"primary"}),w()&&c&&t(oL,{label:c.toString(),size:"small",color:"error"})]})]}),l&&!!l.length&&t(p,{in:g,children:t(E,{component:"div",disablePadding:!0,children:l.map((e,r)=>t(n6,{link:e.link,label:e.label,isMobile:s,disabled:e.disabled},r))})})]})},n7=j(E)({paddingTop:0,paddingBottom:"20px",transition:"width 200ms ease-out",overflowY:"auto",overflowX:"hidden","& .Mui-selected":{fontWeight:600},"& .MuiListItemIcon-root":{minWidth:"30px"},"& .MuiCollapse-root .MuiListItem-root":{paddingLeft:"52px"},"& .MuiTypography-root":{fontWeight:"inherit"},"& .MuiList-root a":{paddingLeft:"52px"}}),n8=(e,i)=>e.map((e,a)=>{let{items:o,link:n,label:l,icon:s,separator:d,newChip:c,notificationCounter:p,disabled:m,requiredRoles:h}=e;return d?r(em,{children:[t(S,{children:t(k,{primary:l})}),o&&n8(o,i)]},l||a):t(n9,{label:l,icon:s,link:n,items:o,isMobile:i,newChip:c,notificationCounter:p,disabled:m,requiredRoles:h},l||a)}),le=({items:e})=>{let{width:r=1024}=t_();return t(n7,{children:n8(e,r<600)})},lt={sx:{width:"240px"}},lr=({items:e,header:i})=>{let{isSidebarOpen:o,sidebarClose:n}=oo();return r(C,{variant:t0(e=>e.breakpoints.down("lg"))?"temporary":"persistent",open:o,onClose:n,PaperProps:lt,children:[i&&t(a,{sx:{display:"flex",alignItems:"center",flexGrow:0,flexShrink:0,flexBasis:"auto",height:"60px",justifyContent:"center"},children:i}),t(g,{}),t(le,{items:e})]})},li=({key:e})=>{let{closeSnackbar:r}=t3();return t(o,{onClick:()=>r(e),"aria-label":"Close snackbar",sx:{cursor:"pointer",backgroundColor:"rgba(0, 0, 0, 0.08)",border:"none",color:"inherit",padding:"4px 4px",maxWidth:"24px",maxHeight:"24px",minWidth:"auto","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.26)"}},children:t(e3,{sx:{fontSize:e=>e.spacing(3)}})})},la=eh({showSnackbar:e=>{}}),lo=({handleClose:e})=>t(tm,{"aria-label":"Close",color:"primary",onClick:e,size:"large",children:t(tc,{})},"close"),ln=ec.forwardRef(({handleClose:e,message:r,action:i},a)=>t(t5,{sx:{backgroundColor:"#fff",color:"#000",marginBottom:"45px"},message:r,ref:a,action:i||t(lo,{handleClose:e})})),ll=({children:e})=>{let i=(e,t)=>{"clickaway"!==t&&o("")},[a,o]=eE(""),[n,l]=eE(t(lo,{handleClose:i})),[s,d]=eE(8e3),[c,p]=eE(null);return r(la.Provider,{value:{showSnackbar:({message:e,action:r=t(lo,{handleClose:i}),duration:a=4e3,onActionClick:n=null})=>{o(e),l(r),d(a),p(n)}},children:[t(t4,{open:!!a,autoHideDuration:s,onClose:i,children:t(ln,{handleClose:c||i,message:a,action:n})}),e]})},ls=()=>({showSnackbar:eC(la).showSnackbar}),ld=K(_)(()=>({marginLeft:19,padding:0})),lc=K("div")(({ownerState:e})=>({backgroundColor:"#d4f8ee",fontSize:"18px",zIndex:1,color:"#03D69D",width:40,height:40,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center",...e.active&&{backgroundColor:"#03d69d",color:"#fff"},...e.completed&&{backgroundColor:"#03d69d",color:"#fff"}})),lp=e=>{let{active:t,completed:i,className:a,icon:o}=e;return r(lc,{ownerState:{completed:i,active:t},className:a,children:[o,"\xba"]})},lm=({steps:e,orientation:r="vertical"})=>{let[i,a]=eE(0);return t(N,{activeStep:i,orientation:r,connector:t(ld,{}),children:e.map((e,r)=>t(L,{children:t(P,{StepIconComponent:lp,children:e.label})},r))})},lh={SUCCESS:"#4CAF50",PENDING:"#FF9800",FAILED:"#EF5350",NOT_APPLY:"#EF5350"},lu=({webhookStatus:e,sx:r,...i})=>t(oL,{sx:{color:"white !important",backgroundColor:`${lh[e]} !important`,...r},...i}),lx=({sx:e,...r})=>t(V,{component:"p",sx:{fontSize:"14px",textAlign:"center",whiteSpace:"pre-line",color:e=>e.palette.primary.dark,...e},...r}),lf=({sx:e,...r})=>t(I,{component:"a",sx:{fontWeight:600,cursor:"pointer",color:e=>e.palette.primary.main,...e},...r}),lg=()=>({title:"Termos de Uso e Politica de Privacidade",content:`
|
|
2
|
+
import{Fragment as e,jsx as t,jsxs as r}from"react/jsx-runtime";import{Avatar as i,Box as a,Button as o,Card as n,CardActionArea as l,CardMedia as s,Checkbox as d,CircularProgress as c,Collapse as p,Dialog as m,DialogActions as h,DialogContent as u,DialogContentText as x,DialogTitle as f,Divider as g,Drawer as C,Fade as y,Grid as b,IconButton as v,Input as w,InputAdornment as M,Link as I,List as E,ListItem as S,ListItemIcon as A,ListItemText as k,Popper as T,Skeleton as D,Stack as R,Step as L,StepConnector as _,StepLabel as P,Stepper as N,SwipeableDrawer as O,Tab as z,Tabs as H,TextField as F,Tooltip as W,Typography as V,lighten as B,styled as j,useTheme as G}from"@mui/material";import Z from"@mui/material/Avatar";import{ThemeProvider as $,alpha as U,createTheme as Y,darken as q,lighten as X,styled as K,useTheme as Q}from"@mui/material/styles";import J from"@mui/lab/AvatarGroup";import ee from"@mui/material/Stack";import{Link as et,NavLink as er,Route as ei,matchPath as ea,useHistory as eo,useLocation as en,useParams as el}from"react-router-dom";import es from"@mui/material/Icon";import ed from"@mui/material/Button";import ec,{Component as ep,Fragment as em,createContext as eh,createElement as eu,forwardRef as ex,memo as ef,useCallback as eg,useContext as eC,useEffect as ey,useId as eb,useLayoutEffect as ev,useMemo as ew,useReducer as eM,useRef as eI,useState as eE}from"react";import eS from"@mui/icons-material/ArrowDropDown.js";import eA from"@mui/material/ButtonGroup";import ek from"@mui/material/ClickAwayListener";import eT from"@mui/material/Grow";import eD from"@mui/material/MenuItem";import eR from"@mui/material/MenuList";import eL from"@mui/material/Paper";import e_ from"@mui/material/Popper";import eP from"@mui/material/Card";import eN from"@mui/material/CardActions";import eO from"@mui/material/CardContent";import"@mui/material/CardHeader";import"@mui/material/CardMedia";import ez from"@mui/icons-material/ArrowBackOutlined.js";import eH from"@mui/material/Typography";import{Trans as eF,useTranslation as eW}from"react-i18next";import{ArrowOutward as eV,CallMade as eB,CheckCircle as ej,ChevronRight as eG,Close as eZ,CurrencyExchange as e$,EditCalendar as eU,Email as eY,ErrorOutline as eq,ExpandLess as eX,ExpandMore as eK,FileOpen as eQ,HowToReg as eJ,KeyboardArrowRight as e1,Lock as e2,Message as e0,NavigateBefore as e3,Paid as e4,PriorityHigh as e5,WhatsApp as e6}from"@mui/icons-material";import e9 from"@mui/icons-material/CallMade.js";import{CopyBlock as e7,dracula as e8}from"react-code-blocks";import te from"@mui/material/Accordion";import tt from"@mui/material/AccordionDetails";import tr from"@mui/material/AccordionSummary";import ti from"@mui/icons-material/ExpandMore.js";import ta from"@mui/material/AccordionActions";import to from"@mui/icons-material/Check.js";import tn from"@mui/material/Box";import{FormikProvider as tl,useField as ts,useFormik as td}from"formik";import tc from"@mui/icons-material/Close.js";import tp from"@mui/material/Drawer";import tm from"@mui/material/IconButton";import th from"dot-object";import{decodeNumber as tu,decodeQueryParams as tx,decodeString as tf,encodeNumber as tg,encodeQueryParams as tC,encodeString as ty}from"serialize-query-params";import tb from"moment";import tv from"query-string";import tw from"@mui/icons-material/Tag.js";import{hsl as tM,parseToHsl as tI,parseToRgb as tE,rgb as tS}from"polished";import tA from"@mui/material/LinearProgress";import{makeStyles as tk,useTheme as tT}from"@mui/styles";import tD from"@mui/material/CircularProgress";import tR from"@mui/material/Dialog";import tL from"@mui/material/DialogContent";import{useWindowSize as t_}from"use-window-size-hook";import tP from"@mui/material/DialogActions";import tN from"@mui/material/DialogTitle";import tO from"@mui/material/Tooltip";import tz from"@mui/icons-material/Refresh.js";import tH from"@mui/icons-material/Search.js";import tF from"@mui/material/Input";import tW from"@mui/material/InputAdornment";import tV from"@mui/icons-material/ChevronLeft.js";import tB from"@mui/icons-material/ChevronRight.js";import tj from"@mui/material/Badge";import tG from"@mui/material/Divider";import tZ from"@mui/material/Tab";import t$ from"@mui/material/Tabs";import tU from"@mui/icons-material/InfoOutlined.js";import tY from"@mui/material/Chip";import tq from"@mui/material/Modal";import tX from"@mui/material/Fade";import tK from"@mui/material/Slide";import{useDropzone as tQ}from"react-dropzone";import tJ from"chroma-js";import t1 from"react-ink";import{ErrorBoundary as t2}from"react-error-boundary";import t0 from"@mui/material/useMediaQuery";import{useSnackbar as t3}from"notistack";import t4 from"@mui/material/Snackbar";import t5 from"@mui/material/SnackbarContent";import t6 from"@mui/material/DialogContentText";import t9 from"@mui/icons-material/Add.js";import t7 from"@mui/material/List";import t8 from"@mui/material/ListItem";import re from"@mui/material/ListItemButton";import rt from"@mui/material/Popover";import rr from"@mui/icons-material/CheckCircleOutline.js";import ri from"@mui/icons-material/FileCopy.js";import{useDebouncedCallback as ra}from"use-debounce";import ro from"@mui/icons-material/ContentCopy.js";import rn from"@mui/icons-material/AccessTime.js";import{GRID_DETAIL_PANEL_TOGGLE_COL_DEF as rl,GridCloseIcon as rs,GridCsvExportMenuItem as rd,GridRow as rc,GridToolbarContainer as rp,GridToolbarExportContainer as rm,enUS as rh,esES as ru,getGridDefaultColumnTypes as rx,gridDetailPanelExpandedRowsContentCacheSelector as rf,ptBR as rg,useGridApiContext as rC,useGridApiRef as ry,useGridRootProps as rb,useGridSelector as rv}from"@mui/x-data-grid-pro";import{formatNumber as rw,parsePhoneNumberWithError as rM}from"libphonenumber-js";import{DataGridPro as rI}from"@mui/x-data-grid-pro/DataGridPro";import{formatToCPF as rE,formatToCPFOrCNPJ as rS,isCPF as rA}from"brazilian-values";import rk from"@mui/material/Link";import rT from"@mui/material/Skeleton";import rD from"use-local-storage-state";import rR from"@mui/icons-material/GridViewRounded.js";import rL from"@mui/icons-material/TableRowsRounded.js";import r_ from"@mui/icons-material/CloudUpload.js";import{getTime as rP}from"date-fns";import rN from"mime-types";import rO from"@mui/material/Step";import rz from"@mui/material/StepLabel";import rH from"@mui/material/Stepper";import"react-datasheet/lib/react-datasheet.css";import rF from"@mui/material/Table";import rW from"@mui/material/TableContainer";import{useExpanded as rV,useRowSelect as rB,useSortBy as rj,useTable as rG}from"react-table";import{useVirtual as rZ}from"react-virtual";import r$ from"@mui/material/Checkbox";import rU from"@mui/icons-material/CheckCircle.js";import rY from"@mui/icons-material/Edit.js";import rq from"@mui/icons-material/Error.js";import rX from"@mui/icons-material/HourglassEmpty.js";import rK from"@mui/material/TableRow";import rQ from"@mui/material/TableCell";import rJ from"@mui/material/TableHead";import r1 from"@mui/material/TableSortLabel";import{v4 as r2}from"uuid";import{DatePicker as r0}from"@mui/x-date-pickers";import{useRifm as r3}from"rifm";import{NumericFormat as r4}from"react-number-format";import{read as r5,utils as r6,write as r9}from"xlsx";import r7 from"@mui/material/TableBody";import r8 from"react-fast-compare";import{MdCancel as ie,MdCheckCircle as it,MdMailOutline as ir,MdOutlineDevicesOther as ii}from"react-icons/md";import{TbPasswordMobilePhone as ia}from"react-icons/tb";import{VscShield as io}from"react-icons/vsc";import{QRCodeSVG as il}from"qrcode.react";import is from"@mui/icons-material/QrCode.js";import id from"@mui/material/FormControlLabel";import ic from"@mui/material/Radio";import{useRadioGroup as ip}from"@mui/material/RadioGroup";import im from"@mui/material/InputBase";import ih from"@mui/material/Select";import iu from"@mui/material/ToggleButton";import ix from"@mui/material/ToggleButtonGroup";import ig from"@mui/material/FormControl";import iC from"@mui/material/NativeSelect";import{useVirtualizer as iy}from"@tanstack/react-virtual";import ib from"@mui/icons-material/KeyboardArrowDown.js";import iv from"@mui/icons-material/KeyboardArrowUp.js";import iw from"@mui/material/Collapse";import iM from"@mui/icons-material/DarkMode.js";import iI from"@mui/icons-material/LightMode.js";import{Timeline as iE,TimelineConnector as iS,TimelineContent as iA,TimelineDot as ik,TimelineItem as iT,TimelineSeparator as iD,timelineItemClasses as iR}from"@mui/lab";import{Rnd as iL}from"react-rnd";let i_=({size:e=50,sx:r,...i})=>{let a=Q();return t(Z,{sx:{width:`${e}px`,height:`${e}px`,fontSize:`${e/2.5}px`,backgroundColor:a.palette.grey[400],color:a.palette.common.white,border:`solid 1px ${a.palette.grey[500]}`,...r},...i})},iP=({name:e,size:r=42,imageUrl:i,alt:o,sx:n,...l})=>{var s;let d=e?(s=e,[" da "," do "," dos "," das "," e "," di "," du "," del "," della "].forEach(e=>{s=s.replace(e," ").trim()}),s).split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",...n},...l,children:i?t(i_,{size:r,src:i,alt:o}):t(i_,{size:r,children:d})})},iN=({size:e=50,excessCount:r,sx:a,...o})=>t(i,{sx:{width:`${e}px !important`,height:`${e}px !important`,minWidth:`${e}px !important`,minHeight:`${e}px !important`,fontSize:r?"18px !important":`${e/2.5}px !important`,backgroundColor:e=>`${r?e.palette.common.white:e.palette.primary.main} !important`,color:e=>`${r?e.palette.grey[700]:e.palette.common.white} !important`,borderColor:"#fff",...a},...o}),iO=({size:e=50,sx:r,...i})=>t(iN,{size:e,sx:{width:`${e}px !important`,...r},...i}),iz=({bubbleCount:e,edges:i,size:a=50,totalCount:o=null})=>{let n=o||i.length||0,l=n<e?null:n-e,s=G();return r(J,{children:[i.slice(0,e).map(({node:e})=>e.user?{url:e?.user?.profileImage?.url,userName:e?.user?.name}:{url:e?.profileImage?.url,userName:e?.name}).map((e,i)=>{let o=e.userName?e.userName.split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return e.url?t(iN,{alt:e.userName,src:e.url,size:a},e?.userName||i):r(iN,{alt:e.userName,src:e.url,size:a,children:[" ",o," "]},e?.userName||i)}),!!l&&t(R,{sx:{border:1,borderColor:s.palette.common.white},children:r(iO,{size:a,excessCount:!0,children:["+",l]})})]})},iH=({bubbleCount:e,usersArray:i=[],size:a})=>{let o=i.length<e?null:i.length-e;return r(J,{children:[i.slice(0,e).map(e=>e?{url:e?.profileImage?.url,userName:e?.name}:{url:null,userName:null}).map(e=>{let i=e.userName?e.userName.split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return e.url?t(iN,{alt:e.userName,src:e.url,size:a}):r(iN,{alt:e.userName,src:e.url,size:a,children:[" ",i," "]})}),!!o&&t(ee,{ml:"1px",children:r(iN,{size:a,excessCount:!0,children:["+",o]})})]})},iF=({bubbleCount:e,edges:i,size:a=50,totalCount:o})=>{let n=o-e;return r(J,{children:[i.slice(0,e).map(({node:e})=>e.user?{url:e?.user?.profileImage?.url,userName:e?.user?.name}:{url:e?.profileImage?.url,userName:e?.name}).map(e=>{let i=e.userName?e.userName.split(" ").slice(0,2).map(e=>e.charAt(0)).join(""):"AN";return e.url?t(iN,{alt:e.userName,src:e.url,size:a}):r(iN,{alt:e.userName,src:e.url,size:a,children:[" ",i," "]})}),!!n&&t(ee,{ml:"1px",children:r(iN,{size:a,excessCount:!0,children:["+",n]})})]})},iW=({onClick:e})=>{let r=eo();return t(a,{sx:{cursor:"pointer",display:"flex",marginLeft:"-30px",marginRight:1},onClick:e||(()=>r.goBack()),children:"←"})},iV=({fontSize:e="12px",children:r})=>{let i=Q();return t(a,{sx:{color:i.palette.tertiary.main,display:"flex",padding:"1px 8px",fontSize:e,maxWidth:"75px",alignItems:"center",borderStyle:"solid",borderColor:i.palette.tertiary.main,borderWidth:1,borderRadius:"10px"},children:r})},iB=({children:e,...r})=>t(es,{...r,children:e}),ij=({icon:i,size:a="medium",variant:n="contained",color:l="primary",children:s,label:d,link:p,external:m=!1,loading:h=!1,...u})=>{let x=()=>h?{startIcon:t(c,{sx:{color:"inherit"},size:12})}:{},f=r(e,{children:[!!i&&t(iB,{children:i}),d||s]});return p?m?t(o,{target:"_blank",href:p,color:l,variant:n,size:a,disableElevation:!0,...x(),...u,children:f}):t(o,{component:et,to:p,color:l,variant:n,size:a,disableElevation:!0,...x(),...u,children:f}):t(o,{color:l,variant:n,size:a,disableElevation:!0,...x(),...u,children:f})},iG=({variant:e="contained",sx:r,...i})=>t(ed,{sx:{ml:1,color:"outlined"===e?"#cb2431":"#fff",border:"1px solid #cb2431",padding:"8px 16px",boxShadow:"none",lineHeight:1,textTransform:"none",backgroundColor:"outlined"===e?"transparent":"#cb2431","&:hover":{color:"white",backgroundColor:"#cb2431"},"&:disabled":{color:"outlined"===e?"#c1c1c1":"#fff",border:"1px solid #c1c1c1",backgroundColor:"outlined"===e?"transparent":"#c1c1c1","&:hover":{color:"#c1c1c1",backgroundColor:"#c1c1c1"}},...r},variant:e,...i}),iZ=({mainButtonProps:i,options:a})=>{let[o,n]=eE(!1),l=G(),s=eI(null),d=e=>{s?.current?.contains(e.target)||n(!1)};return r(e,{children:[r(eA,{variant:"contained","aria-label":"split button",ref:s,disableElevation:!0,children:[t(ij,{...i,sx:{borderRadius:"4px 0 0 4px",textWrap:"nowrap",width:{xs:"100%",sm:"100%"}},children:i.value}),t(ij,{size:"small","aria-controls":o?"split-button-menu":void 0,"aria-expanded":o?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:()=>{n(e=>!e)},sx:{borderRadius:"0 4px 4px 0",borderLeft:"1px solid #83fcdc"},"data-testid":"split-button-popper",children:t(eS,{})})]}),t(e_,{open:o,anchorEl:s.current,role:void 0,transition:!0,children:({TransitionProps:e,placement:r})=>t(eT,{...e,style:{transformOrigin:"bottom"===r?"center top":"center bottom"},children:t(eL,{sx:{backgroundColor:l.palette.common.white},children:t(ek,{onClickAway:d,children:t(eR,{id:"split-button-menu",sx:{zIndex:999},autoFocusItem:!0,children:a.map((e,t)=>eu(eD,{...e,onClick:t=>{e?.onClick?.(t),n(!1)},key:`menu-item-${t}`},e.value))})})})})})]})},i$=({mainButtonProps:i,options:a})=>{let[o,n]=eE(!1),l=eI(null),s=e=>{l?.current?.contains(e.target)||n(!1)};return r(e,{children:[r(eA,{variant:"contained","aria-label":"split button",ref:l,disableElevation:!0,children:[t(ij,{...i,sx:{borderRadius:"4px 0 0 4px",textWrap:"nowrap"},children:i.value}),t(ij,{size:"small","aria-controls":o?"split-button-menu":void 0,"aria-expanded":o?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:()=>{n(e=>!e)},sx:{borderRadius:"0 4px 4px 0",borderLeft:"1px solid #83fcdc"},"data-testid":"split-button-popper",children:t(eS,{})})]}),t(e_,{open:o,anchorEl:l.current,role:void 0,transition:!0,children:({TransitionProps:e,placement:r})=>t(eT,{...e,style:{transformOrigin:"bottom"===r?"center top":"center bottom"},children:t(eL,{sx:{backgroundColor:"#fff"},children:t(ek,{onClickAway:s,children:t(eR,{id:"split-button-menu",sx:{zIndex:999},autoFocusItem:!0,children:a.map((e,t)=>eu(eD,{...e,onClick:t=>{e?.onClick?.(t),n(!1)},key:`menu-item-${t}`},e.value))})})})})})]})},iU=({size:e=21,color:r="#808080",sx:i,...o})=>t(a,{sx:{width:`${e}px`,height:`${e}px`,borderRadius:"50%",backgroundColor:r,...i},...o}),iY=({sx:e,symbol:i,children:o,...n})=>{let l=Q();return r(a,{sx:{cursor:"pointer",display:"flex",maxWidth:"250px",alignItems:"center",flexDirection:"column",...e},...n,children:[t(a,{sx:{width:"50px",height:"50px",display:"flex",alignItems:"center",borderRadius:"100px",justifyContent:"center",backgroundColor:l.palette.primary.main},className:"CircleButton__Button",children:t(a,{sx:{color:l.palette.common.white,fontSize:"30px",fontWeight:600},component:"p",className:"CircleButton__InsideText",children:i||"+"})}),o&&t(a,{sx:{marginTop:"14px",fontWeight:600},component:"p",className:"CircleButton__AuxText",children:o})]})},iq=({sx:e,...r})=>t(a,{sx:{display:"flex",flexDirection:"column",...e},...r}),iX=ex(({children:e,disabled:i,sx:o,...n},l)=>t(eP,{sx:{boxSizing:"border-box",borderRadius:"8px","@media print":{boxShadow:"none"},...o},ref:l,variant:"outlined",...n,children:r(R,{sx:{position:"relative",flexDirection:"column",height:"100%"},children:[i&&t(a,{sx:{top:0,left:0,right:0,bottom:0,zIndex:2,position:"absolute",background:"rgba(255, 255, 255, 0.5)",borderRadius:8}}),e]})})),iK=({children:e,sx:r={}})=>t(eN,{sx:{justifyContent:"flex-end",borderTop:e=>`1px solid ${e.palette.divider}`,...r},children:e}),iQ=({children:e})=>t(iX,{sx:{display:"flex",padding:Q().spacing(2)},children:t(V,{children:e})}),iJ=ex(({children:e,sx:r,tabIndex:i,...o},n)=>t(a,{ref:n,tabIndex:i,"data-testid":o["data-testid"],sx:{display:"flex",...r},children:e})),i1=({children:e,footer:i,title:a,showBackButton:o=!1,onBack:n})=>{let l=eo(),{t:s}=eW();return r(iJ,{sx:{flexDirection:"column",maxWidth:"550px",width:"100%"},children:[o&&t(iJ,{sx:{alignContent:"left"},children:t(ij,{color:"secondary",variant:"text",onClick:()=>{n?n():l.goBack()},startIcon:t(ez,{}),children:s("Back")})}),t(iJ,{children:r(eL,{sx:{padding:"32px",maxWidth:"550px",marginBottom:"5px",width:"100%",borderRadius:"8px"},variant:"outlined",children:[a&&t(iJ,{sx:{justifyContent:"center",alignItems:"center"},children:t(eH,{mb:"24px",variant:"h1",fontSize:"28px",fontWeight:"bold",textAlign:"center",children:a})}),e,i]})})]})},i2=()=>t(iX,{sx:{mb:"10px",p:"10px"},"data-testid":"loading",children:r(iJ,{sx:{justifyContent:"space-around",alignItems:"center"},children:[t(D,{animation:"wave",width:50,height:50,variant:"circular"}),r(iJ,{sx:{flexDirection:"column",marginLeft:1},children:[t(D,{animation:"wave",width:150}),t(D,{animation:"wave",width:100})]})]})}),i0=({title:e,description:i="",image:a,step:o=0,imageAlt:n="alt"})=>t(iX,{sx:{p:3,height:"100%"},children:r(R,{spacing:2,sx:{justifyContent:"space-between"},children:[t(s,{sx:{objectFit:"fill"},component:"img",image:a,alt:n}),t(V,{variant:"h4",color:"primary",fontWeight:e=>e.typography.fontWeightBold,children:o}),t(V,{variant:"h4",fontWeight:e=>e.typography.fontWeightBold,children:e}),t(V,{variant:"body1",children:i})]})}),i3=({label:e,value:i,color:a="pri",onClick:o})=>t(iX,{onClick:o,sx:{cursor:"pointer",display:"flex",justifyContent:"center",width:"100%",padding:"6px"},children:r(iJ,{sx:{flexDirection:"row",gap:"3px",alignItems:"baseline",alignContent:"center"},children:[t(V,{fontWeight:400,color:"#AFAFAF",children:e}),t(V,{fontWeight:600,mr:"6px",color:`${a}.main`,children:i}),o&&t(eB,{sx:{alignSelf:"flex-start"},fontSize:"small",color:a})]})}),i4=e=>t(i3,{label:e.label,value:t(D,{"data-testid":"loading",animation:"wave",width:100})}),i5=({sx:e,children:r,...i})=>t(eN,{sx:{display:"flex",borderTop:"solid 1px rgba(96, 115, 137, 0.2)",flexDirection:"column",justifyContent:"flex-end","@media (min-width: 600px)":{flexDirection:"row"},...e},...i,children:r}),i6=({sx:e,children:r,...i})=>t(a,{sx:{padding:"0 16px",...e},...i,children:r}),i9=ex((e,i)=>{let{t:o}=eW(),{children:n,column:l=!1,title:s,subtitle:d,primaryAction:c,secondaryAction:p,primaryProps:m={},secondaryProps:h={},icon:u,footerActions:x=[],footer:f,contentProps:g={},cardStyleProps:C={},cardProps:y={},borderColor:b}=e,v=e?.primaryLabel??o("Save"),w=e?.secondaryLabel??o("Cancel"),M=b?{outline:`3px solid ${b}`,outlineOffset:"0px"}:{};return r(iX,{style:{paddingTop:"16px",...C,...M},...y,ref:i,children:[s&&r(i6,{children:[t(a,{component:"h3",sx:{fontSize:"20px",margin:0},children:s}),d&&t(a,{sx:{fontWeight:"normal",fontSize:"14px"},children:d}),u]}),n&&t(eO,{sx:{flex:1,display:"flex",flexDirection:l?"column":"row"},...g,children:n}),x.length?t(i5,{children:x.map(({label:e,primary:r,onClick:i,disabled:a,...o})=>t(ij,{size:"small",color:r?"primary":"secondary",onClick:i,...o,children:e},`footer-btn-${e}`))}):f?t(i5,{children:f}):(c||p)&&r(i5,{children:[p&&t(ij,{variant:"text",color:"secondary",size:"small",onClick:p,...h,children:w}),c&&t(ij,{variant:"text",color:"primary",size:"small",onClick:c,...m,children:v})]})]})}),i7=()=>t(iX,{children:r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"95px",flex:1},children:[t(D,{animation:"wave",width:100}),t(D,{animation:"wave",width:150,height:30}),t(D,{animation:"wave",width:100})]})}),i8=({title:e,value:i,total:a,color:o="",onClick:n,loading:l=!1})=>l?t(i7,{}):t(iX,{sx:{cursor:n?"pointer":"default"},onClick:n,children:r(iJ,{sx:{justifyContent:"center",position:"relative"},children:[r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"95px",flex:1},children:[t(V,{variant:"subtitle1",color:"#AFAFAF",textAlign:"center",children:e}),t(V,{color:o?`${o}.main`:"",variant:"h5",fontWeight:"bold",textAlign:"center",children:i}),t(V,{variant:"subtitle1",textAlign:"center",children:a})]}),n&&t(iJ,{sx:{position:"absolute",right:8,top:8},children:t(e9,{color:"action"})})]})}),ae=({title:e,value:i,total:a,color:o="primary",onClick:n,loading:l=!1})=>l?t(i7,{}):t(iX,{sx:{cursor:n?"pointer":"default",height:"100%",transition:"transform 0.2s, box-shadow 0.2s","&:hover":n?{transform:"translateY(-2px)",boxShadow:3}:{}},onClick:n,children:t(iJ,{sx:{justifyContent:"center",position:"relative"},children:r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:40,flex:1,p:.7},children:[t(V,{variant:"body2",color:"text.primary",fontWeight:"medium",textAlign:"center",sx:{mb:.1},children:e}),t(V,{color:o?`${o}.main`:"text.primary",variant:"h6",fontWeight:"bold",textAlign:"center",sx:{mb:.2},children:i}),a&&t(V,{variant:"caption",textAlign:"center",color:"text.secondary",sx:{lineHeight:1.1},children:a})]})})}),at=({templateColumns:e="1fr",mobileColumns:r="2",gap:i="0",sx:o,...n})=>t(a,{sx:{display:"grid",gridGap:i,gridTemplateColumns:e,"@media (max-width: 780px)":{gridTemplateColumns:`repeat(${r}, minmax(150px, 1fr))`},...o},...n}),ar=({code:e,language:r,showLineNumbers:i})=>t(e7,{text:e,language:r,showLineNumbers:!!i,theme:e8,codeBlock:!0,wrapLongLines:!0}),ai=({initialExpanded:e,header:i,children:a})=>{let o=eb(),[n,l]=eE(e);return r(te,{expanded:n,elevation:0,square:!0,disableGutters:!0,onChange:()=>l(!n),sx:{fontWeight:"600","&:before":{display:"none"}},children:[t(tr,{sx:{p:0,m:0,"& .MuiAccordionSummary-content":{m:"0 !important"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(-180deg)"}},expandIcon:t(eX,{sx:{fontSize:"20px"},"aria-controls":`${o}-content`,id:`${o}-header`}),children:"string"==typeof i?t(eH,{sx:{fontWeight:"600"},children:i}):i}),t(tt,{sx:{m:"0 !important",p:0},children:a})]})},aa=(e,t)=>{let[r,i]=eE(e);return"function"==typeof t?[e,t]:[r,i]},ao=e=>{let{renderActions:i,primaryAction:a,primaryActionLabel:o,primaryActionProps:n={},secondaryAction:l,secondaryActionLabel:s,secondaryActionProps:d={}}=e;if(i)return t(as,{children:i});let c=l&&s,p=a&&o;return p||c?r(as,{children:[c?t(ij,{color:"secondary",variant:"text",onClick:l,...d,children:s}):null,p?t(ij,{color:"primary",variant:"text",onClick:a,...n,children:o}):null]}):null},an=({sx:e,...r})=>{let i=Q();return t(I,{sx:{color:i.palette.primary.main,fontSize:`${i.typography.fontSize}px`,wordWrap:"break-word",textDecoration:"none",...e},component:et,...r})},al=i=>{let a=Q(),{heading:o,secondaryHeading:n,secondaryHeadingLinkTo:l,expandIcon:s}=i,d=!s;return r(e,{children:[t(eH,{sx:{flexBasis:n?"33.3%":"95%",padding:d?"0 !important":void 0,margin:d?"0 !important":void 0,marginRight:a.spacing(1)},children:o}),n?l?t(iJ,{sx:{flex:1},children:t(an,{to:l,children:n})}):t(eH,{flex:1,children:n}):null]})},as=({sx:e,...r})=>t(ta,{sx:{flex:1,padding:"2px 10px",boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",borderRadius:"8px",...e},...r}),ad=e=>{let{alwaysExpanded:i,expandIconInvisible:a=!1,expandIcon:o,className:n,children:l,disabled:s=!1,lazy:d=!0,onChange:c,renderActions:p,primaryAction:m,primaryActionLabel:h,primaryActionProps:u,secondaryAction:x,secondaryActionLabel:f,secondaryActionProps:g,renderSummary:C,heading:y,secondaryHeading:b,secondaryHeadingLinkTo:v,isExpanded:w,...M}=e,[I,E]=aa(!!i||w||!1,e.onChange),S=e.alwaysExpanded||a?null:o||t(ti,{});return r(te,{onChange:(e,t)=>{e.stopPropagation(),i||E(t)},disabled:s,expanded:I,sx:{"& .MuiAccordionDetails-root":{padding:"0 24px 8px"},"& .MuiAccordionActions-root":{boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",borderRadius:"8px"}},...M,children:[t(tr,{expandIcon:!a&&S,sx:{userSelect:"auto","& .MuiAccordionSummary-content":{margin:"0 8px"}},children:(()=>{let{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a}=e;return e.renderSummary?e.renderSummary:t(al,{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a,expandIcon:S})})()}),t(tt,{sx:{flexDirection:"column"},children:d?I?l:null:l}),t(ao,{renderActions:p,primaryAction:m,primaryActionLabel:h,primaryActionProps:u,secondaryAction:x,secondaryActionLabel:f,secondaryActionProps:g})]})},ac=e=>{let{children:i,disable:o}=e,{renderActions:n,...l}=e,s=!!n;return t(a,{sx:{"&:not(:first-child)":{"& .MuiAccordion-root:first-child:not(.Mui-expanded)":{borderTop:"1px solid rgba(96, 115, 137, 0.12)"}},"& .MuiAccordion-root":{position:"relative",boxShadow:"0 0 0",background:"transparent","& > .MuiAccordionSummary-root":{backgroundColor:"#fff",boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",marginLeft:"-5px"},"&::before":{opacity:1},"& .MuiAccordionDetails-root":{paddingTop:"0px",margin:"0 0 10px 0px",borderLeft:"1px solid #e1e5ea",backgroundColor:"transparent","& .MuiAccordionActions-root:first-child":{width:"100%",left:"-30px",paddingLeft:"50px"},"& > div":{[`&:${s?"nth-last-child(2)":"last-child"}`]:{"& > .MuiAccordion-root":{position:"relative",marginBottom:0,"& > div > div > div > div > .MuiAccordionDetails-root, & > div > div > div > div > div > .MuiAccordionDetails-root":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:"-10px",left:0,transform:"translateX(-21px)",width:"1px",backgroundColor:"#f8f8f8"}},"& > .MuiAccordionSummary-root:last-child":{"&::before":{content:'""',display:"block",position:"absolute",top:"50%",bottom:0,left:"-21px",height:"auto",backgroundColor:"#f8f8f8"},"&::after":{content:'""',display:"block",position:"absolute",top:0,bottom:"50%",left:"-21px",height:"auto",width:"1px",backgroundColor:"#e0e5ea",zIndex:1}}}}},"& .MuiAccordionActions-root:last-child":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:"-21px",height:"auto",backgroundColor:"#f8f8f8",width:"1px"}},"& .MuiAccordionSummary-root":{"&::before":{content:'""',display:"block",width:"20px",height:0,borderTop:"1px solid #e1e5ea",marginTop:"-1px",position:"absolute",top:"50%",left:"-20px"}}}}},children:r(ad,{...l,...o?{expanded:!1,expandIcon:null}:{},children:[n&&t(ta,{sx:{position:"relative",zIndex:0},children:n}),i]})})},ap=({sx:e,leftNode:i,rightNode:o,...n})=>{let l=G();return r(a,{sx:{flex:1,display:"flex",flexWrap:"wrap",flexDirection:"row",...e},...n,children:[t(a,{sx:{flex:3,minWidth:"150px",paddingRight:"20px"},children:i}),t(a,{sx:{flex:1,padding:"5px 10px",minWidth:"250px",borderLeft:`1px solid ${l.palette.primary.dark}`},children:o})]})},am=e=>t(a,{...e}),ah=e=>t(a,{...e}),au=e=>{let{alwaysExpanded:i}=e,[a,o]=aa(!!i||e.isExpanded||!1,e.onChange),n=e.alwaysExpanded?null:t(ti,{}),{className:l,children:s,disabled:d=!1,lazy:c=!0,onChange:p,renderActions:m,primaryAction:h,primaryActionLabel:u,primaryActionProps:x,secondaryAction:f,secondaryActionLabel:g,secondaryActionProps:C,renderSummary:y,heading:b,secondaryHeading:v,secondaryHeadingLinkTo:w,dense:M=!1,borderRadius:I,...E}=e;return r(ee,{direction:"column",sx:{position:"relative"},children:[t(te,{onChange:(e,t)=>{e.stopPropagation(),i||o(t)},disabled:d,expanded:a,...E,sx:{borderRadius:I?`${I}px`:"0px","& .MuiAccordionSummary-content":{margin:"8px 0px 30px 0px"},"& .MuiAccordion-root .MuiAccordionDetails-root":{padding:"10px 0px",margin:0},"&:first-child":{borderRadius:I?`${I}px`:"4px 4px 0 0"},"&:last-child":{borderRadius:I?`${I}px`:"0 0 4px 4px"},"&.Mui-expanded":{margin:"10px 0"}},children:t(tr,{expandIcon:n,sx:{borderRadius:I?`${I}px`:"0px",display:"flex",backgroundColor:"#fff",padding:"0 24px 5px 24px",marginBottom:"0px"},children:r(ee,{flex:1,flexDirection:"column",children:[(()=>{let{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a}=e;return e.renderSummary?e.renderSummary:t(al,{heading:r,secondaryHeading:i,secondaryHeadingLinkTo:a,expandIcon:n})})(),t(tt,{sx:{borderRadius:I?`${I}px`:"0px",flexDirection:"column",backgroundColor:"#fff",padding:"5px 0px !important",margin:"0 !important",border:"transparent !important"},children:c?a?s:null:s})]})})}),t(ee,{sx:{position:"absolute",right:0,bottom:0,left:0,flex:1,padding:"0px 0px"},children:t(ao,{renderActions:m,primaryAction:h,primaryActionLabel:u,primaryActionProps:x,secondaryAction:f,secondaryActionLabel:g,secondaryActionProps:C,borderRadius:I})})]})},ax=({children:e,header:i,legend:o,number:n,status:l,onChange:s,showEdit:d,expanded:c,tag:p,color:m,expandIconInvisible:h=!1})=>{let u=Q(),{t:x}=eW(),f=m||u.palette.primary.main,g=r(R,{sx:{flexDirection:"row",alignItems:"center",width:"100%"},children:[!!n&&t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:u.palette.common.white,borderRadius:"50%",background:f},children:l?t(to,{}):n}),r(R,{sx:{flexDirection:"column",pl:"10px",pr:"8px"},children:[t(eH,{component:"span",fontSize:"14px",fontWeight:600,sx:{lineHeight:"17px"},children:i||"-"}),o&&t(eH,{component:"span",fontWeight:"200",color:"GrayText",fontSize:"12px",sx:{lineHeight:"15px"},children:o})]}),p&&p,l&&d&&t(eH,{sx:{fontSize:"14px","&:hover":{textDecoration:"underline"}},children:x("Change")})]});return t(a,{sx:{"& .MuiAccordionDetails-root":{padding:0,"@media (min-width: 600px)":{marginLeft:"45px"}},"& .MuiAccordionSummary-content":{margin:"0 8px"},"& .MuiAccordionSummary-root":{padding:0}},children:e&&t(ad,{onChange:s,renderSummary:g,expandIcon:null,isExpanded:c,expandIconInvisible:h,elevation:0,children:e})})},af=()=>t("svg",{width:90,height:90,viewBox:"0 0 135 135",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.5 0C30.222 0 0 30.222 0 67.5S30.222 135 67.5 135 135 104.778 135 67.5 104.778 0 67.5 0zm29.258 56.086a6.137 6.137 0 10-9.425-7.854L60.946 79.889 47.293 66.23a6.136 6.136 0 00-8.677 8.678l18.41 18.409a6.136 6.136 0 009.05-.412l30.682-36.818z",fill:"#03D69D"})}),ag=({number:e,header:i,status:o,legend:n,showEdit:l})=>{let{t:s}=eW(),d=G();return r(R,{sx:{flexDirection:"row",alignItems:"center"},children:[t(()=>o?t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:d.palette.common.white,borderRadius:"50%",background:"none"},children:t(af,{})}):e?t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:d.palette.common.white,borderRadius:"50%",background:d.palette.primary.main},children:e}):null,{}),r(R,{sx:{flexDirection:"column",pl:"10px",pr:"8px"},children:[t(V,{component:"span",fontSize:"14px",fontWeight:600,sx:{lineHeight:"17px"},children:i||"-"}),n&&t(V,{component:"span",fontWeight:"200",color:"GrayText",fontSize:"12px",sx:{lineHeight:"15px"},children:n})]}),o&&l&&t(V,{sx:{fontSize:"14px","&:hover":{textDecoration:"underline"}},children:s("Change")})]})},aC=({isParent:e,noBorder:r,sx:i,...a})=>e?t(ee,{sx:{padding:"2px 10px",justifyContent:"flex-end",position:"absolute",left:0,right:0,bottom:0,borderTop:r?"0px":"1px solid rgba(96,115,137, 0.12)",...i},...a}):t(ee,{...a,sx:i}),ay=e=>{let{children:i,renderActions:o,renderActionsInside:n,disable:l,borderRadius:s=0,rootProps:d={},...c}=e,p=Q(),m=!!o;return t(a,{sx:{"&:not(:first-child)":{"& .MuiAccordion-root:first-child:not(.Mui-expanded)":{borderTop:s?"0px":"1px solid rgba(96, 115, 137, 0.12)"}},"& > .MuiAccordion-root > .MuiAccordionSummary-root":{paddingBottom:n?"40px":0,borderRadius:s?`${s}px`:"0px"},"& .MuiAccordion-root":{position:"relative",boxShadow:"0 0 0",margin:0,background:"transparent","& > .MuiAccordionSummary-root":{backgroundColor:p.palette.background.paper,boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)"},"&::before":{opacity:1},"& .MuiAccordionDetails-root":{padding:"10px 0 0 20px",margin:"0 0 10px 20px",borderLeft:"1px solid #e1e5ea",backgroundColor:"transparent","& > div":{[`&:${m?"nth-last-child(2)":"last-child"}`]:{"& > .MuiAccordion-root":{position:"relative",marginBottom:0,"& > div > div > div > div > .MuiAccordionDetails-root, & > div > div > div > div > div > .MuiAccordionDetails-root":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:"-10px",left:0,transform:"translateX(-21px)",width:"1px",backgroundColor:"#f8f8f8"}},"& > .MuiAccordionSummary-root":{"&::before":{content:'""',display:"block",position:"absolute",top:"50%",bottom:0,left:"-21px",height:"auto",backgroundColor:"transparent"},"&::after":{content:'""',display:"block",position:"absolute",top:0,bottom:"50%",left:"-21px",height:"auto",width:"1px",backgroundColor:"#e0e5ea",zIndex:1}}}}},"& > .MuiCard-root":{position:"relative",overflow:"visible","&::before":{content:'""',display:"block",width:"20px",height:0,borderTop:"1px solid #e1e5ea",marginTop:"-1px",position:"absolute",top:"50%",left:"-20px"},"&::after":{content:'""',display:"block",position:"absolute",top:0,bottom:"50%",left:"-21px",height:"auto",width:"1px",backgroundColor:"#e0e5ea",zIndex:1},"&:last-child":{"&::after":{content:'""',display:"block",position:"absolute",top:"50%",bottom:0,backgroundColor:"#f8f8f8"}}},"& .MuiAccordionActions-root:last-child":{"&::before":{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:"-21px",height:"auto",backgroundColor:"#f8f8f8",width:"1px"}},"& .MuiAccordionSummary-root":{"&::before":{content:'""',display:"block",width:"20px",height:0,borderTop:"1px solid #e1e5ea",marginTop:"-1px",position:"absolute",top:"50%",left:"-20px"}},"& > :last-child":{marginBottom:"0px"}}}},...d,children:r(ad,{...c,...l?{expanded:!1,expandIcon:null}:{},children:[i,o&&t(ta,{sx:{position:"relative",backgroundColor:"#fff",boxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.08)",borderRadius:"0 0 2px 2px",zIndex:0},children:o})]})})},ab=({sx:e,hide:r,...i})=>t(ti,{sx:{opacity:r?"0":"1",...e},...i}),av=e=>{let{sx:r,...i}=e;return t(ad,{...{...i,expandIcon:null,sx:{"&.MuiAccordion-root":{padding:0},"& .MuiAccordionSummary-root":{cursor:"auto !important"},...r}}})},aw={backgroundColor:"transparent",boxShadow:"none"},aM=({sx:e,children:r,...i})=>t(tn,{sx:{"&& .MuiAccordion-root":{...aw,"&.Mui-expanded":aw},"&& .MuiAccordionSummary-root":{...aw,"&.Mui-expanded":aw},"&& .MuiAccordionDetails-root":aw,...e},...i,children:r}),aI=({sx:e,rightComponent:i,leftComponent:o,...n})=>r(a,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",marginBottom:"15px",flexDirection:"row",justifyContent:"space-between",...e},...n,children:[t(a,{sx:{flex:1,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:o}),t(a,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-end"},children:i})]}),aE=({sx:e,...r})=>t(V,{sx:{color:G().palette.primary.dark,fontSize:"14px",textAlign:"center",fontWeight:600,...e},...r}),aS=({sx:e,...r})=>t(a,{sx:{margin:"16px 8px","@media (min-width: 600px)":{margin:"16px"},...e},...r}),aA=({sx:e,children:r,...i})=>t(a,{sx:{display:"flex",justifyContent:"center","> span":{maxWidth:"1000px",marginBottom:"20px",padding:"0px 90px"},...e},...i,children:t(eH,{children:r})}),ak=({sx:e,children:r,...i})=>t(a,{sx:{width:"100%",color:"#7c8289",height:"200px",display:"flex",fontSize:"18px",alignItems:"center",fontWeight:600,flexDirection:"row",justifyContent:"center",...e},...i,children:r}),aT=()=>{let{t:e}=eW();return r(iJ,{sx:{alignItems:"center",gap:.5},children:[t(e2,{fontSize:"small",color:"secondary"}),t(V,{variant:"body2",color:"secondary",textAlign:"center",children:e("Your data is encrypted")})]})},aD=({children:e,...r})=>t(ee,{direction:"row",spacing:1,...r,children:e}),aR=({items:e,Heading:i,isVisible:o=!1,...n})=>{let l=Q();if(!o)return null;let s=e.filter(e=>!e.filter||e.filter());return 0===s.length?null:r(a,{p:1,left:0,width:"100vw",bottom:0,zIndex:l.zIndex.drawer,bgcolor:"rgb(255,255,255, 0.9)",position:"fixed",borderTop:"1px solid rgba(0, 0, 0, 0.12)",boxShadow:"0px -2px 3px 0px rgb(0, 0, 0, 0.12)",...n,children:[i??null,t(E,{sx:{padding:"4px",display:"flex",flexDirection:"row",justifyContent:"center"},children:t(aD,{children:s.map(e=>r(ij,{size:"small",color:e?.color||"primary",variant:"contained",onClick:e.onClick,"data-testid":e?.dataTestId||e?.label,children:[e.label,t(a,{component:"span",sx:{marginLeft:"10px",display:"flex"},children:"string"==typeof e.icon?t(iB,{children:e.icon}):e.icon})]},e.dataTestId||e.label))})})]})},aL=({children:e,isOpen:i,onRequestClose:a,onClear:o,onApply:n,filtersTitle:l,showFooterButtons:s=!0,sx:d={}})=>{let{t:c}=eW();return r(tp,{sx:{...d,"& .MuiDrawer-paper":{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"strech",width:"85%",maxWidth:"550px"}},"data-testid":"filter-drawer",anchor:"right",open:i,onClose:a,children:[r(ee,{sx:{alignItems:"center",paddingLeft:"15px",paddingRight:"15px",borderBottom:"1px solid rgba(80, 80, 80, 0.12)",flexDirection:"row",justifyContent:"space-between"},children:[t(V,{sx:{fontSize:"16px",fontWeight:600},children:l||c("Filter")}),t(tm,{onClick:a,size:"large",children:t(tc,{})})]}),t(ee,{sx:{flexDirection:"column",overflow:"auto",pr:"15px",pl:"15px",flexGrow:2},children:e}),s&&t(ee,{sx:{padding:"8px",borderTop:"1px solid rgba(80, 80, 80, 0.12)",flexDirection:"row",justifyContent:"center"},children:r(aD,{children:[t(ij,{variant:"text",onClick:o,color:"secondary",children:c("Clear Filters")}),t(ij,{variant:"text",onClick:n,children:c("Apply")})]})})]})},a_={stringify:e=>tv.stringify(e,{arrayFormat:"index"}),parse:e=>tv.parse(e,{arrayFormat:"index"})},aP=(e,t)=>{if("quantity"===t)return Number.parseInt(e,10);if(["metatags","flags","chargePaid","search","next"].some(e=>t.includes(e)))return e;if(e&&tb(e,"YYYY-MM-DDTHH:mm:ss.sssZ",!0).isValid()){let t=tb(e);return t.isValid?t.toISOString():e}return e&&"string"==typeof e?e.indexOf("true")>-1||!(e.indexOf("false")>-1)&&e:e},aN=e=>e?a_.parse(e.search.substr(1)):{},aO=()=>{var e;let t=Object.entries(tb((e=aN(location)).createdAt).isValid()?e:(delete e.createdAt,{...e,"createdAt.end":e["createdAt.end"]||e["createdAt.begin"]})).map(([e,t])=>({[e]:aP(t,e)})).reduce((e,t)=>({...e,...t}),{});return th.object(t)},az=(e=[],t=["search","comment","bankProviderCode","bankCode"])=>{let r=aO(),i=e.map(e=>{let i=aP(th.pick(e,r),e);if("boolean"==typeof i||null===i||i)return"boolean"!=typeof i&&Number(i)&&-1===t.indexOf(e)&&(i=Number(i)),"object"==typeof i&&null!==i&&Object.keys(i).map(e=>{Number(i[e])&&parseFloat(i[e])&&(i[e]=parseFloat(i[e]))}),{[e]:i}}).reduce((e,t)=>({...e,...t}),{});return i?th.object(i):{}},aH=e=>e.reduce((e,t)=>({...e,[t?.key||t?.field]:{encode:t?.encode||ty,decode:t?.decode||tf}}),{quantity:{encode:tg,decode:tu},search:{encode:ty,decode:tf}}),aF=(e,t)=>{if(!e)return e;if(e instanceof tb||e&&tb(e,"YYYY-MM-DDTHH:mm:ss.sssZ",!0).isValid()){let t=tb(e);return t._isValid?t.toISOString():e}if(Array.isArray(e)){if("orderBy"===t){let t=[];for(let r of e){if(r.hasOwnProperty("label")){t.push({direction:r.value.direction,sort:r.value.sort});continue}t.push({direction:r.direction,sort:r.sort})}return t}return e}return"object"==typeof e?e?.label&&(e.value||"boolean"==typeof e.value)?e.value:Object.keys(e).reduce((t,r)=>({...t,[r]:aF(e[r])}),{}):e},aW=e=>Object.entries(e).filter(([e,t])=>null===t||("tags"===e&&"string"==typeof t?t.split(","):Array.isArray(t)||"string"==typeof t?!!t.length:"boolean"==typeof t||!!t)).reduce((e,[t,r])=>({...e,[t]:aF(r,t)}),{}),{stringify:aV}=a_,aB=i=>{let{filterProp:a="filters",useQueryString:o=!0,getFragmentVariables:n=()=>({filters:{}}),stateFilters:l,onCloseFilter:s,refetch:d,handleLoading:c,updateFilter:p,filters:m,useDecodeEncode:h=!1,shouldUpdateFilter:u=null,setShouldUpdateFilter:x=()=>null,filtersProps:f={}}=i,g=eo(),C=en(),y=m.reduce((e,t)=>"section"in t?[...e,...t.fields]:[...e,t],[]),b=aH(y),v=td({initialValues:ew(()=>{let e=y.reduce((e,t)=>{let r=Array.isArray(t?.field)?t.field.map(e=>({[e]:void 0})).reduce((e,t)=>({...e,...t}),{}):{[t.field]:void 0};return{...e,...r}},{}),{filters:t}=n();if(o){if(h)return tx(b,aN(C));let r=az(Object.keys(th.dot(e)));return{...e,...t||{},...r}}return{...e,...t||{}}},[]),onSubmit:e=>{let{quantity:t,search:r,queryParams:i}=aO(),{pathname:l}=C,{...m}=e,u=aW(m);if(u?.value?.min&&delete u.min,u?.value?.max&&delete u.max,o)if(h){let i=tC(b,{...e,search:r,quantity:t});g.replace({pathname:l,search:aV(i)})}else{let e=aV({...i||{},...th.dot(u),quantity:t,search:r});g.replace({pathname:l,search:e})}else p({...u});if(s(),d)if(n){let e=()=>{};if(o)e=()=>({...n()});else{let t=n();e=()=>({...t,[a]:{...t[a]||{},...u}})}c?.(!0),d(e,null,()=>c?.(!1))}else{let e={[a]:{...u},first:t||30,search:r};c?.(!0),d(t=>({...t,...e,[a]:{...e[a]||{},...u}}),null,()=>c?.(!1))}}}),{resetForm:w,setFieldValue:M,values:I}=v;ey(()=>{u&&(M(u,void 0),x(null))},[u]);let E=(e,r)=>{let{component:i,props:a={},getProps:o}=e;return i?t(i,{...o?o(f):a,values:I,setFieldValue:M},`${r}:${a.name}`):null};return{formikbag:v,resetFilters:()=>{if(o){let{pathname:e}=C,{quantity:t,search:r}=aO(),i=aV({quantity:t,search:r});g.replace({pathname:e,search:i})}else p({search:l.search});w({}),s(),d&&(c?.(!0),d(e=>({...e,...(e=>{if(n)return n(e);if(o){if(h){let{quantity:t,search:r,...i}=tx(b,aN(C));return{quantity:parseInt(t,10)||10,search:e?void 0:r,[a]:e?{}:i}}let{quantity:t,search:r,orderBy:i}=aO();return{quantity:parseInt(t,10)||10,search:e?void 0:r,orderBy:e?void 0:i,[a]:e?{}:az()}}return{search:e?void 0:l.search,[a]:e?{}:{...l},first:10}})(!0)}),null,()=>c?.(!1)))},renderFilterInput:(i,a)=>{if(i.fields)return r(e,{children:[t(V,{fontWeight:"bold",children:i.section}),t(iJ,{sx:{flexDirection:"column"},children:i.fields.map((e,t)=>E(e,t))})]});return E(i,a)}}},aj=e=>{let{onCloseFilter:r,filters:i,isOpen:a,filtersTitle:o}=e,{formikbag:n,resetFilters:l,renderFilterInput:s}=aB(e),{handleSubmit:d}=n;return t(tl,{value:n,children:t(aL,{isOpen:a,onRequestClose:r,onApply:d,onClear:l,filtersTitle:o,children:i.map((e,t)=>s(e,t))})})},aG=e=>{let{formikbag:r,isOpen:i,resetFilters:a,filters:o,renderFilterInput:n,onCloseFilter:l}=e,{handleSubmit:s}=r;return t(tl,{value:r,children:t(aL,{isOpen:i,onRequestClose:l,onApply:s,onClear:a,children:o.map((e,t)=>n(e,t))})})},aZ=({title:e,subTitle:i})=>{let[o,n]=eE(!1);return r(a,{sx:{my:1},children:[r(R,{onMouseOver:()=>{n(!0)},onMouseOut:()=>{n(!1)},onClick:()=>{window.location.hash=e},spacing:.5,direction:"row",sx:{cursor:"pointer"},children:[t(eH,{fontWeight:Q().typography.fontWeightBold,id:e,children:e}),o&&t(tw,{fontSize:"small",color:"disabled"})]}),"string"==typeof i?t(eH,{children:i}):i]})},a$=(e,t)=>{let r=!1;"#"==e[0]&&(e=e.slice(1),r=!0);let i=parseInt(e,16),a=(i>>16)+t;a>255?a=255:a<0&&(a=0);let o=(i>>8&255)+t;o>255?o=255:o<0&&(o=0);let n=(255&i)+t;return n>255?n=255:n<0&&(n=0),(r?"#":"")+(n|o<<8|a<<16).toString(16)},aU=e=>e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,r,i)=>"#"+t+t+r+r+i+i).substring(1).match(/.{2}/g).map(e=>parseInt(e,16)),aY=(e,t)=>{let r=aU(e).join(",");return t?`rgba(${r}, ${t})`:`rgba(${r})`},aq=(e,t,r)=>Math.min(Math.max(e,t),r),aX=(e,t)=>{let r=tI(e),i=Object.entries(t).map(([e,t])=>{let i=tI(t);return[e,e=>{var t;let a=tI(e),o=a.hue+(i.hue-r.hue),n=a.lightness+(i.lightness-r.lightness),l=a.saturation+(i.saturation-r.saturation);return tS(tE(tM({hue:(t=Math.round(o))<0?360-Math.abs(t):t>360?0+(t-360):t,lightness:aq(Number(n.toFixed(2)),0,1),saturation:aq(Number(l.toFixed(2)),0,1)})))}]});return e=>i.map(([t,r])=>[t,r(e)]).reduce((e,t)=>({...e,[t[0]]:t[1]}),{})},aK=({sx:e,opacity:r=.12,...i})=>t(tn,{sx:{width:"100%",height:"1px",border:"none",backgroundColor:aY(G().palette.common.black,r),...e},component:"hr",...i}),aQ=({children:e,transitionTimeout:i=350,placement:o="top-start",render:n,...l})=>{let[s,d]=eE(!1),c=eI(null);return r("div",{...{onMouseOver:()=>d(!0),onMouseLeave:()=>d(!1)},children:[r(a,{sx:{position:"relative",cursor:"pointer"},children:[t(a,{sx:{position:"absolute",top:0,right:0},ref:c}),e]}),t(T,{open:s,anchorEl:c.current,placement:o,transition:!0,...l,children:({TransitionProps:e})=>t(eT,{...e,timeout:i,children:n})})]})},aJ=({width:e,height:i})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:i,viewBox:"0 0 22 15",fill:"none",children:[t("rect",{width:"22",height:"15",fill:"#1E1E1E"}),t("path",{d:"M-2921 -928H2997V-940H-2921V-928ZM3104 -821V1078H3116V-821H3104ZM2997 1185H-2921V1197H2997V1185ZM-3028 1078V-821H-3040V1078H-3028ZM-2921 1185C-2980.09 1185 -3028 1137.09 -3028 1078H-3040C-3040 1143.72 -2986.72 1197 -2921 1197V1185ZM3104 1078C3104 1137.09 3056.09 1185 2997 1185V1197C3062.72 1197 3116 1143.72 3116 1078H3104ZM2997 -928C3056.09 -928 3104 -880.094 3104 -821H3116C3116 -886.722 3062.72 -940 2997 -940V-928ZM-2921 -940C-2986.72 -940 -3040 -886.722 -3040 -821H-3028C-3028 -880.094 -2980.09 -928 -2921 -928V-940Z",fill:"white"}),t("path",{d:"M-2781 -681C-2781 -682.105 -2780.1 -683 -2779 -683H132C133.104 -683 134 -682.105 134 -681V938C134 939.105 133.104 940 132 940H-2779C-2780.1 940 -2781 939.105 -2781 938V-681Z",fill:"#444444"}),t("path",{d:"M-2779 -682H132V-684H-2779V-682ZM133 -681V938H135V-681H133ZM132 939H-2779V941H132V939ZM-2780 938V-681H-2782V938H-2780ZM-2779 939C-2779.55 939 -2780 938.552 -2780 938H-2782C-2782 939.657 -2780.66 941 -2779 941V939ZM133 938C133 938.552 132.552 939 132 939V941C133.657 941 135 939.657 135 938H133ZM132 -682C132.552 -682 133 -681.552 133 -681H135C135 -682.657 133.657 -684 132 -684V-682ZM-2779 -684C-2780.66 -684 -2782 -682.657 -2782 -681H-2780C-2780 -681.552 -2779.55 -682 -2779 -682V-684Z",fill:"white","fill-opacity":"0.1"}),t("rect",{width:"665",height:"1487",transform:"translate(-580 -598)",fill:"white"}),t("path",{d:"M-238.5 -15C-238.5 -16.933 -236.933 -18.5 -235 -18.5H30C31.933 -18.5 33.5 -16.933 33.5 -15V33C33.5 34.933 31.933 36.5 30 36.5H-235C-236.933 36.5 -238.5 34.933 -238.5 33V-15Z",stroke:"black","stroke-opacity":"0.23"}),t("rect",{y:"3",width:"19",height:"12",rx:"1",fill:"#CDCDCD"}),t("rect",{y:"4.99951",width:"19",height:"2",fill:"#999999"}),t("rect",{x:"1",y:"8.49951",width:"17",height:"1.5",rx:"0.5",fill:"white"}),t("circle",{cx:"16.3975",cy:"5.39746",r:"5.39746",fill:"#494949"}),t("path",{d:"M19.6942 7.24938C19.4831 7.24938 19.27 7.22059 19.0551 7.16302C18.8402 7.10161 18.6444 7.00757 18.4679 6.88091C18.4103 6.84637 18.3719 6.80223 18.3527 6.74849C18.3335 6.69476 18.3297 6.64294 18.3412 6.59305C18.3527 6.53931 18.3757 6.49517 18.4103 6.46063C18.4487 6.42609 18.4947 6.40689 18.5485 6.40306C18.6022 6.39538 18.6598 6.41073 18.7212 6.44911C18.8709 6.54507 19.0244 6.618 19.1818 6.66789C19.343 6.71779 19.5099 6.74274 19.6826 6.74274C19.8592 6.74274 20.0108 6.71011 20.1375 6.64486C20.2641 6.57961 20.3601 6.48942 20.4253 6.37427C20.4944 6.25529 20.529 6.11711 20.529 5.95974C20.529 5.71794 20.458 5.52027 20.3159 5.36674C20.1739 5.21322 19.9763 5.13645 19.7229 5.13645C19.5771 5.13645 19.4408 5.16332 19.3142 5.21705C19.1875 5.26695 19.0666 5.35139 18.9515 5.47038C18.9246 5.50108 18.8881 5.52987 18.8421 5.55673C18.7999 5.57976 18.7519 5.59128 18.6981 5.59128C18.6175 5.59128 18.5561 5.57017 18.5139 5.52795C18.4717 5.48573 18.4506 5.42815 18.4506 5.35523V3.40351C18.4506 3.31907 18.4736 3.25382 18.5197 3.20776C18.5657 3.1617 18.631 3.13867 18.7154 3.13867H20.6441C20.7286 3.13867 20.7938 3.15978 20.8399 3.202C20.8859 3.24422 20.9089 3.30563 20.9089 3.38624C20.9089 3.46684 20.8859 3.53017 20.8399 3.57623C20.7938 3.61845 20.7286 3.63956 20.6441 3.63956H19.0321V5.10191H18.8709C18.9745 4.95606 19.1108 4.84283 19.2796 4.76223C19.4524 4.68163 19.6423 4.64133 19.8496 4.64133C20.1068 4.64133 20.3294 4.69506 20.5175 4.80253C20.7055 4.91 20.8514 5.06161 20.955 5.25736C21.0586 5.44927 21.1105 5.6738 21.1105 5.93096C21.1105 6.19196 21.0529 6.42225 20.9377 6.62183C20.8226 6.81758 20.6595 6.97111 20.4484 7.08242C20.2373 7.19372 19.9859 7.24938 19.6942 7.24938Z",fill:"white"}),t("path",{d:"M16.1154 7.24846C15.9004 7.24846 15.6817 7.21967 15.459 7.1621C15.2364 7.10069 15.0426 7.01049 14.8776 6.89151C14.8162 6.85313 14.7739 6.80707 14.7509 6.75333C14.7317 6.69576 14.7279 6.64394 14.7394 6.59789C14.7509 6.54799 14.7739 6.50577 14.8085 6.47123C14.8469 6.43668 14.8929 6.41749 14.9466 6.41365C15.0004 6.40598 15.0599 6.42133 15.1251 6.45971C15.2902 6.5595 15.4514 6.63243 15.6087 6.67849C15.7661 6.72071 15.9292 6.74182 16.0981 6.74182C16.2823 6.74182 16.4378 6.71495 16.5644 6.66122C16.6911 6.60748 16.7851 6.5288 16.8466 6.42517C16.9118 6.32154 16.9444 6.19679 16.9444 6.05094C16.9444 5.83217 16.8715 5.66904 16.7257 5.56157C16.5836 5.45027 16.3764 5.39461 16.1039 5.39461H15.7124C15.6241 5.39461 15.5569 5.3735 15.5109 5.33128C15.4648 5.28522 15.4418 5.22189 15.4418 5.14129C15.4418 5.06453 15.4648 5.00504 15.5109 4.96281C15.5569 4.91676 15.6241 4.89373 15.7124 4.89373H16.0463C16.2113 4.89373 16.3514 4.86686 16.4666 4.81313C16.5817 4.75555 16.67 4.67687 16.7314 4.57708C16.7967 4.47344 16.8293 4.3487 16.8293 4.20285C16.8293 4.0071 16.764 3.85741 16.6335 3.75378C16.5069 3.64631 16.3207 3.59258 16.0751 3.59258C15.9177 3.59258 15.768 3.61369 15.626 3.65591C15.4878 3.69813 15.3439 3.77297 15.1942 3.88044C15.1366 3.91883 15.081 3.9361 15.0273 3.93226C14.9774 3.92458 14.9332 3.90539 14.8948 3.87469C14.8603 3.84014 14.8353 3.79792 14.82 3.74803C14.8085 3.69813 14.8123 3.64631 14.8315 3.59258C14.8507 3.53884 14.8891 3.49279 14.9466 3.4544C15.1079 3.33542 15.2902 3.24522 15.4936 3.18381C15.697 3.11856 15.9062 3.08594 16.1211 3.08594C16.3898 3.08594 16.6201 3.12816 16.812 3.2126C17.0078 3.29704 17.1555 3.41794 17.2553 3.57531C17.359 3.73267 17.4108 3.92075 17.4108 4.13952C17.4108 4.30456 17.3801 4.45425 17.3187 4.58859C17.2572 4.72293 17.169 4.83807 17.0538 4.93403C16.9425 5.02614 16.8063 5.09139 16.6451 5.12978V5.06645C16.9252 5.1125 17.1421 5.22765 17.2956 5.41188C17.4492 5.59228 17.5259 5.81873 17.5259 6.09124C17.5259 6.32921 17.4683 6.53647 17.3532 6.71303C17.2419 6.88575 17.0807 7.01817 16.8696 7.11028C16.6585 7.2024 16.4071 7.24846 16.1154 7.24846Z",fill:"white"}),t("path",{d:"M12.2588 7.09919C12.1782 7.09919 12.1149 7.07616 12.0688 7.0301C12.0228 6.98405 11.9998 6.92263 11.9998 6.84587C11.9998 6.76527 12.0228 6.70386 12.0688 6.66164C12.1149 6.61942 12.1782 6.59831 12.2588 6.59831H12.9612V3.53543H13.2606L12.42 4.07086C12.3586 4.1054 12.3011 4.11883 12.2473 4.11116C12.1974 4.10348 12.1533 4.08237 12.1149 4.04783C12.0804 4.01328 12.0554 3.97106 12.0401 3.92117C12.0285 3.87127 12.0324 3.81945 12.0516 3.76572C12.0746 3.71198 12.1149 3.66785 12.1725 3.6333L12.967 3.13242C13.0322 3.09404 13.0936 3.06333 13.1512 3.0403C13.2126 3.01343 13.2702 3 13.3239 3C13.3892 3 13.4429 3.01919 13.4851 3.05757C13.5312 3.09212 13.5542 3.15161 13.5542 3.23605V6.59831H14.199C14.2835 6.59831 14.3487 6.61942 14.3948 6.66164C14.4408 6.70386 14.4639 6.76527 14.4639 6.84587C14.4639 6.92647 14.4408 6.9898 14.3948 7.03586C14.3487 7.07808 14.2835 7.09919 14.199 7.09919H12.2588Z",fill:"white"})]}),a1=({size:e,color:i,viewBox:a="0 0 103 103"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:a,fill:i,children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.875 65.4105L12.875 51.4999C12.875 49.1297 14.7964 47.2083 17.1667 47.2083C19.5369 47.2083 21.4583 49.1297 21.4583 51.4999L21.4583 65.2333C21.4583 68.9094 21.4617 71.4084 21.6195 73.3401C21.7732 75.2216 22.0519 76.1838 22.3939 76.855C23.2168 78.4701 24.5299 79.7831 26.1449 80.6061C26.8161 80.9481 27.7783 81.2267 29.6599 81.3804C31.5915 81.5383 34.0905 81.5416 37.7667 81.5416H65.2333C68.9095 81.5416 71.4085 81.5382 73.3401 81.3804C75.2217 81.2267 76.1839 80.9481 76.8551 80.6061C78.4702 79.7831 79.7832 78.4701 80.6061 76.855C80.9482 76.1838 81.2268 75.2216 81.3805 73.34C81.5383 71.4084 81.5417 68.9094 81.5417 65.2333L81.5417 51.4999C81.5417 49.1297 83.4631 47.2083 85.8333 47.2083C88.2036 47.2083 90.125 49.1297 90.125 51.4999V65.4098C90.1251 68.8648 90.1251 71.7162 89.9353 74.039C89.7382 76.4513 89.3152 78.6689 88.254 80.7518C86.6081 83.9819 83.982 86.608 80.7518 88.2539C78.6689 89.3152 76.4514 89.7382 74.0391 89.9353C71.7165 90.125 68.8652 90.125 65.4106 90.1249H37.5894C34.1348 90.125 31.2835 90.125 28.9609 89.9353C26.5486 89.7382 24.3311 89.3152 22.2482 88.2539C19.0181 86.608 16.3919 83.9819 14.7461 80.7518C13.6848 78.6689 13.2618 76.4513 13.0647 74.039C12.8749 71.7164 12.8749 68.8652 12.875 65.4105Z"}),t("path",{d:"M35.591 54.5347C33.915 52.8587 33.915 50.1413 35.591 48.4653C37.267 46.7893 39.9843 46.7893 41.6603 48.4653L47.209 54.014V17.1667C47.209 14.7964 49.1304 12.875 51.5007 12.875C53.8709 12.875 55.7923 14.7964 55.7923 17.1667V54.014L61.341 48.4653C63.017 46.7893 65.7343 46.7893 67.4103 48.4653C69.0863 50.1413 69.0863 52.8587 67.4103 54.5347L54.5353 67.4097C52.8593 69.0857 50.142 69.0857 48.466 67.4097L35.591 54.5347Z"})]}),a2=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M0 24C0 10.7452 10.7452 0 24 0V0C37.2548 0 48 10.7452 48 24V24C48 37.2548 37.2548 48 24 48V48C10.7452 48 0 37.2548 0 24V24Z",fill:"#EB5757"}),t("path",{d:"M16.7472 31.9423C16.5639 31.7589 16.4609 31.5103 16.4609 31.251C16.4609 30.9917 16.5639 30.7431 16.7472 30.5597L22.9699 24.337L16.7472 18.1142C16.5691 17.9298 16.4706 17.6828 16.4728 17.4265C16.475 17.1701 16.5778 16.9248 16.7591 16.7435C16.9404 16.5623 17.1857 16.4594 17.442 16.4572C17.6984 16.455 17.9454 16.5535 18.1298 16.7316L24.3526 22.9544L30.5753 16.7316C30.7597 16.5535 31.0067 16.455 31.2631 16.4572C31.5194 16.4594 31.7647 16.5623 31.946 16.7435C32.1273 16.9248 32.2301 17.1701 32.2323 17.4265C32.2346 17.6828 32.136 17.9298 31.9579 18.1142L25.7352 24.337L31.9579 30.5597C32.136 30.7441 32.2346 30.9911 32.2323 31.2475C32.2301 31.5038 32.1273 31.7491 31.946 31.9304C31.7647 32.1117 31.5194 32.2145 31.2631 32.2167C31.0067 32.219 30.7597 32.1204 30.5753 31.9423L24.3526 25.7196L18.1298 31.9423C17.9465 32.1256 17.6978 32.2286 17.4385 32.2286C17.1793 32.2286 16.9306 32.1256 16.7472 31.9423Z",fill:"white"})]}),a0=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{width:"48",height:"48",rx:"24",fill:"#F2771E"}),t("path",{d:"M15 22C15 22.9193 15.1811 23.8295 15.5328 24.6788C15.8846 25.5281 16.4002 26.2997 17.0503 26.9497C17.7003 27.5998 18.4719 28.1154 19.3212 28.4672C20.1705 28.8189 21.0807 29 22 29C22.9193 29 23.8295 28.8189 24.6788 28.4672C25.5281 28.1154 26.2997 27.5998 26.9497 26.9497C27.5998 26.2997 28.1154 25.5281 28.4672 24.6788C28.8189 23.8295 29 22.9193 29 22C29 21.0807 28.8189 20.1705 28.4672 19.3212C28.1154 18.4719 27.5998 17.7003 26.9497 17.0503C26.2997 16.4002 25.5281 15.8846 24.6788 15.5328C23.8295 15.1811 22.9193 15 22 15C21.0807 15 20.1705 15.1811 19.3212 15.5328C18.4719 15.8846 17.7003 16.4002 17.0503 17.0503C16.4002 17.7003 15.8846 18.4719 15.5328 19.3212C15.1811 20.1705 15 21.0807 15 22ZM33 33L27 27Z",fill:"#F2771E"}),t("path",{d:"M33 33L27 27M15 22C15 22.9193 15.1811 23.8295 15.5328 24.6788C15.8846 25.5281 16.4002 26.2997 17.0503 26.9497C17.7003 27.5998 18.4719 28.1154 19.3212 28.4672C20.1705 28.8189 21.0807 29 22 29C22.9193 29 23.8295 28.8189 24.6788 28.4672C25.5281 28.1154 26.2997 27.5998 26.9497 26.9497C27.5998 26.2997 28.1154 25.5281 28.4672 24.6788C28.8189 23.8295 29 22.9193 29 22C29 21.0807 28.8189 20.1705 28.4672 19.3212C28.1154 18.4719 27.5998 17.7003 26.9497 17.0503C26.2997 16.4002 25.5281 15.8846 24.6788 15.5328C23.8295 15.1811 22.9193 15 22 15C21.0807 15 20.1705 15.1811 19.3212 15.5328C18.4719 15.8846 17.7003 16.4002 17.0503 17.0503C16.4002 17.7003 15.8846 18.4719 15.5328 19.3212C15.1811 20.1705 15 21.0807 15 22Z",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),a3=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{width:"48",height:"48",rx:"24",fill:"#03D69D"}),t("path",{d:"M16.4531 24L21.9388 29.4857L31.8817 18.5143",stroke:"white",strokeWidth:"5",strokeLinecap:"round"})]}),a4=({size:e,color:i,viewBox:a})=>r("svg",{viewBox:a,width:e,height:e,children:[t("path",{d:"M0 0h24v24H0z",fill:"none"}),t("path",{fill:i,d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"})]});a4.defaultProps={color:"#767676",viewBox:"0 0 24 24",size:24};let a5=({size:e,color:r,viewBox:i})=>t(a,{sx:{minWidth:`${e}px`},viewBox:i,width:e,height:e,component:"svg",children:t("circle",{fill:r,cx:"50",cy:"50",r:"50",stroke:"#c7c7c7",strokeWidth:"3"})});a5.defaultProps={color:"none",viewBox:"0 0 100 100",size:20};let a6={CheckboxChecked:({size:e=20,color:r,viewBox:i="0 0 100 100"})=>{let o=G();return t(a,{sx:{minWidth:`${e}px`},viewBox:i,width:e,height:e,component:"svg",children:t("circle",{fill:r||o.palette.primary.light,cx:"50",cy:"50",r:"50"})})},CheckboxUnchecked:a5,CheckboxIndeterminate:a4},a9=()=>r("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{width:"48",height:"48",rx:"24",fill:"#F2771E"}),t("path",{d:"M36.5805 30.3668L26.7808 13.5738C26.497 13.0948 26.091 12.6975 25.6032 12.4214C25.1154 12.1453 24.5629 12 24.0006 12C23.4382 12 22.8857 12.1453 22.3979 12.4214C21.9102 12.6975 21.5042 13.0948 21.2203 13.5738L11.4206 30.3668C11.1452 30.8316 11 31.3604 11 31.8988C11 32.4372 11.1452 32.966 11.4206 33.4308C11.7013 33.9122 12.1067 34.3112 12.5953 34.5869C13.0839 34.8627 13.638 35.0052 14.2008 34.9999H33.8003C34.3627 35.0048 34.9164 34.8621 35.4046 34.5864C35.8927 34.3107 36.2978 33.9119 36.5783 33.4308C36.8541 32.9662 36.9996 32.4375 37 31.8991C37.0004 31.3606 36.8556 30.8318 36.5805 30.3668ZM34.2497 32.1028C34.2041 32.1794 34.1384 32.2425 34.0595 32.2853C33.9806 32.3281 33.8914 32.3491 33.8014 32.3461H14.2008C14.1108 32.3491 14.0217 32.3281 13.9428 32.2853C13.8639 32.2425 13.7981 32.1794 13.7526 32.1028C13.7139 32.0408 13.6934 31.9694 13.6934 31.8966C13.6934 31.8238 13.7139 31.7524 13.7526 31.6904L23.5523 14.8974C23.6008 14.8237 23.6673 14.7631 23.7455 14.7212C23.8238 14.6793 23.9115 14.6573 24.0006 14.6573C24.0896 14.6573 24.1773 14.6793 24.2556 14.7212C24.3339 14.7631 24.4003 14.8237 24.4488 14.8974L34.2474 31.6904C34.2864 31.7522 34.3073 31.8235 34.3077 31.8963C34.3081 31.9691 34.288 32.0406 34.2497 32.1028ZM22.6558 24.827V21.2886C22.6558 20.9367 22.7975 20.5992 23.0497 20.3503C23.3019 20.1015 23.6439 19.9617 24.0006 19.9617C24.3572 19.9617 24.6992 20.1015 24.9514 20.3503C25.2036 20.5992 25.3453 20.9367 25.3453 21.2886V24.827C25.3453 25.1789 25.2036 25.5164 24.9514 25.7652C24.6992 26.0141 24.3572 26.1539 24.0006 26.1539C23.6439 26.1539 23.3019 26.0141 23.0497 25.7652C22.7975 25.5164 22.6558 25.1789 22.6558 24.827ZM25.7935 29.25C25.7935 29.5999 25.6884 29.9419 25.4914 30.2329C25.2944 30.5238 25.0143 30.7506 24.6867 30.8845C24.3591 31.0184 23.9986 31.0534 23.6508 30.9852C23.303 30.9169 22.9835 30.7484 22.7327 30.501C22.482 30.2536 22.3112 29.9383 22.242 29.5951C22.1729 29.2519 22.2084 28.8962 22.3441 28.5729C22.4798 28.2497 22.7096 27.9733 23.0044 27.7789C23.2993 27.5845 23.6459 27.4808 24.0006 27.4808C24.4761 27.4808 24.9321 27.6672 25.2684 27.999C25.6046 28.3308 25.7935 28.7808 25.7935 29.25Z",fill:"white"})]}),a7=({open:e,sx:r,...i})=>t(a,{sx:{display:"grid",minHeight:"100vh",gridTemplateColumns:{xs:"1fr",sm:e?"240px 1fr":"73px 1fr"},...r},...i}),a8=tk({root:{height:"3px"},colorPrimary:{backgroundColor:e=>e.colors?.[0]||e.theme?.primaryLighterColor},barColorPrimary:{backgroundColor:e=>e.colors?.[1]||e.theme?.primaryLighterColor}}),oe=({currentProgress:e,colors:r,hideAfterComplete:i=!1,...a})=>{let[o,n]=eE(0),[l,s]=eE(!1),d=a8({colors:r});return(ey(()=>{let e=setInterval(()=>{n(t=>100===t?(clearInterval(e),i&&setTimeout(()=>{s(!0)},600),t):t+4)},300);return()=>{clearInterval(e)}},[]),l)?t(R,{width:"100%",...a,height:"3px"}):t(R,{width:"100%",...a,children:t(tA,{classes:{colorPrimary:d.colorPrimary,barColorPrimary:d.barColorPrimary,root:d.root},variant:"determinate",value:e??o})})},ot=({size:e,fullScreen:r,wrappedInDialog:i,...o})=>{let n=t(tD,{sx:{"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},size:e,"data-testid":"loading",...o});return r?t(a,{sx:{flex:1,width:"100%",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:n}):i?t(tR,{open:!0,children:t(tL,{children:n})}):n},or=()=>{let{width:e}=t_();return{isMobile:e<600,isTablet:e>600&&e<900,isDesktop:e>=900,width:e}},oi=eh([]);function oa({children:e,isStartOpen:r=null}){let{isTablet:i,isDesktop:a}=or(),[o,n]=eE("boolean"!=typeof r?i||a:r);return t(oi.Provider,{value:[o,n],children:e})}let oo=()=>{let[e,t]=eC(oi);return{isSidebarOpen:e,sidebarOpen:()=>{t(!0)},sidebarClose:()=>{t(!1)},sidebarToggle:()=>{t(!e)}}},on=({header:t,sidebar:i,children:o})=>{let{isSidebarOpen:n}=oo(),{width:l=0}=t_();return l<600?r(e,{children:[t,i,o]}):r(a,{sx:{width:"100%",height:"100vh",display:"grid",gridTemplateColumns:`${n?"240px":"0"} 1fr`},children:[i,r("div",{style:{minWidth:0},children:[t,o]})]})},ol=e=>t(eT,{...e}),os=e=>{let{title:i=null,bodyStyle:a={},isOpen:o,children:n,isScrollable:l,handleClose:s,className:d,dialogStyle:c={transitionDuration:600},actions:p,showClose:m=!1,fullWidth:h=!1,maxWidth:u="sm"}=e;return r(tR,{TransitionComponent:ol,open:o,onClose:s,"data-testid":"dialog-123",className:d,fullWidth:h,maxWidth:u,sx:{".MuiDialog-paper":{gap:1,px:2,py:1}},...c,children:[r(iJ,{sx:{justifyContent:"space-between"},children:[i?t(tN,{fontWeight:"bold",sx:{padding:0},children:i}):null,m&&t(tm,{onClick:()=>s(),children:t(tc,{})})]}),t(tL,{className:"Modal__DialogContent",style:l?a:{...a,overflow:"visible"},sx:{padding:0},children:n}),!!p&&t(tP,{children:p})]})},od=({sx:e,...r})=>t(a,{sx:{overflow:"auto",wordBreak:"break-all","&::-webkit-scrollbar":{width:"2px",height:"2px",WebkitBoxShadow:"inset 0 0 6px rgba(0, 0, 0, 0)",WebkitBorderRadius:"10px"},"&:hover":{"&::-webkit-scrollbar-thumb":{borderRadius:"10px",height:"3px",background:Q().palette.primary.main}},"&::-webkit-scrollbar-thumb":{background:"transparent"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},...e},...r}),oc=({size:e="100px"})=>r("svg",{width:e,height:e,viewBox:"0 0 195 182",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M2.13871 62.2408C2.13871 62.2408 10.3588 27.4986 42.7525 10.5971C75.1462 -6.30429 113.779 0.886713 145.237 5.85722C176.696 10.8277 196.706 34.8945 194.566 63.7653C192.427 92.6361 167.058 95.3647 147.688 124.312C128.319 153.26 127.315 164.025 96.1129 177.331C64.9106 190.637 24.8391 168.744 9.42793 129.932C-5.9832 91.1202 2.13871 62.2408 2.13871 62.2408Z",fill:"#03D69D"}),t("path",{opacity:"0.7",d:"M2.13871 62.2408C2.13871 62.2408 10.3588 27.4986 42.7525 10.5971C75.1462 -6.30429 113.779 0.886712 145.237 5.85722C176.696 10.8277 196.706 34.8945 194.566 63.7653C192.427 92.6361 167.058 95.3647 147.688 124.312C128.319 153.26 127.315 164.025 96.1129 177.331C64.9106 190.637 24.8391 168.744 9.42793 129.932C-5.9832 91.1202 2.13871 62.2408 2.13871 62.2408Z",fill:"white"}),t("path",{d:"M135.411 4.02396H105.264L104.012 6.34695C103.335 7.56463 102.344 8.57911 101.143 9.28539C99.9417 9.99168 98.5736 10.3641 97.1801 10.3641C95.7866 10.3641 94.4184 9.99168 93.2172 9.28539C92.016 8.57911 91.0253 7.56463 90.3478 6.34695L89.0923 4.02396H58.9362C57.4114 4.00343 55.9408 4.58926 54.8478 5.65265C53.7548 6.71605 53.1288 8.16997 53.1074 9.69478V164.938C53.1174 165.693 53.2762 166.439 53.5745 167.133C53.8729 167.827 54.3051 168.456 54.8463 168.983C55.3876 169.51 56.0274 169.925 56.7291 170.204C57.4309 170.484 58.1809 170.623 58.9362 170.613H135.411C136.936 170.632 138.406 170.045 139.498 168.981C140.59 167.917 141.215 166.462 141.236 164.938V9.69478C141.214 8.17072 140.589 6.71745 139.497 5.65418C138.405 4.59091 136.935 4.00457 135.411 4.02396Z",fill:"white",stroke:"#263238",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M88.4207 90.6044C90.3904 92.5089 92.1993 94.2579 94.0082 96.0069C89.908 100.865 84.803 103.858 78.0096 102.614C71.6986 101.448 67.5583 97.6782 65.9102 91.615C64.1817 85.2019 67.2367 78.5557 73.1457 75.2909C79.0547 72.026 86.4511 72.8811 91.3149 77.5063C96.7416 82.6367 102.048 87.8838 107.434 93.0531C110.208 95.696 114.308 96.0069 117.282 93.8693C120.619 91.4595 121.222 86.7955 118.649 83.6473C116.036 80.499 111.213 79.9938 108.077 82.6367C106.992 83.5307 106.108 84.6578 105.183 85.6683C103.173 83.725 101.364 81.976 99.5554 80.227C103.535 75.4852 108.56 72.2592 116.036 73.6973C122.267 74.8633 126.89 79.7994 127.935 85.9793C128.94 92.0425 125.644 98.3001 119.895 101.215C114.026 104.169 106.912 103.158 102.128 98.611C96.7818 93.4806 91.4757 88.3113 86.1295 83.1809C83.8382 80.9654 80.6224 80.3047 77.8086 81.5484C74.9546 82.7922 73.3869 84.9687 73.3467 88.0392C73.3065 91.0708 74.7536 93.364 77.6076 94.6466C80.5018 95.9292 83.2353 95.5405 85.6471 93.5195C86.6922 92.5867 87.5364 91.5372 88.4207 90.6044Z",fill:"#03D69D"})]}),op=({width:e="90px",active:r=!0,height:i=10,percent:o,barColor:n,...l})=>t(a,{...l,children:t(a,{className:"ProgressBar__wrapper",sx:{width:e,height:`${i}px`,overflow:"hidden",borderRadius:"8px",backgroundColor:"rgba(96, 115, 137, 0.26)"},children:t(a,{className:"ProgressBar__progress",sx:{width:`${Math.min(o,100)}%`,height:`${i}px`,transition:"width 1s",backgroundColor:n||(r?o>=100?"#7ed321":"#309dd1":"rgba(96, 115, 137, 0.4)")}})})}),om=({sx:e,...r})=>t(a,{component:"span",sx:{textAlign:"center",alignSelf:"center",...e},...r}),oh=ex(({width:e=20,height:r=20,sx:i,...o},n)=>{let l=Q(),s="number"==typeof e?e:parseInt(e,10);return t(a,{ref:n,sx:{color:"white",width:"number"==typeof e?`${e}px`:e,height:"number"==typeof r?`${r}px`:r,margin:"0 10px",cursor:"default",display:"flex",fontSize:`${.75*s}px`,textAlign:"center",borderRadius:"50%",justifyContent:"center",backgroundColor:l.palette.tertiary.main,...i},...o})});oh.displayName="BlockDescriptionTooltip";let ou=({width:e=20,height:r=20,...i})=>t(tO,{placement:"right-end",...i,children:t(oh,{width:e,height:r,children:t(om,{children:"?"})})}),ox=({sx:e,...r})=>t(a,{sx:{display:"flex",flexDirection:"row",...e},...r}),of=({getFragmentVariables:e,relay:r,handleLoading:i})=>t(v,{onClick:()=>{let t=t=>({...t,...e?e():{}});i?i(!0,()=>r.refetch(t,null,()=>i(!1))):r.refetch(t)},size:"large",children:t(tz,{})}),og=({onRefresh:e})=>t(v,{onClick:e,size:"large",children:t(tz,{})}),oC=e=>{let r=Q(),[i,a]=eE(aO().search||""),{onSearchTermChange:o,defaultValue:n,placeholder:l,handleLoading:s,staticContext:d,...c}=e,p=eI(null);return t(tF,{sx:{color:r.palette.text.primary,fontSize:e.fontSize??"13px"},type:"search",name:"search",value:i,onChange:e=>{p.current&&clearTimeout(p.current);let t=e.target.value;a(t),p.current=setTimeout(()=>o(t),500)},placeholder:l,startAdornment:t(tW,{position:"start",children:t(tH,{})}),...c})},{stringify:oy}=a_,ob=e=>{let{handleLoading:r=(e,t)=>{t&&t()},useQueryString:i=!0,relay:a,filters:o,updateFilter:n,placeholder:l,useNewFilters:s=!1,searchName:d="search"}=e,c=eo(),p=en(),{t:m}=eW();return t(oC,{onSearchTermChange:t=>{let{pathname:l}=p;if(i){let e=aW(aO()),r=oy({...th.dot(e),[d]:t});c.replace({pathname:l,search:r})}else n({...o,[d]:t});let m=s&&!i?{[d]:t}:null,h=t=>({...t,...((t={})=>{if(e.getFragmentVariables)return s?e.getFragmentVariables(t):e.getFragmentVariables();let{quantity:r,...i}=aO();return{[d]:i[d],filters:{...i,...t},first:parseInt(r,10)||30}})(m)});return r(!0,()=>a.refetch(h,null,()=>r(!1)))},placeholder:l||m("Search"),autoFocus:!0})},ov=({firstItemIndex:i,lastItemIndex:a,totalItems:o,handlePageChange:n,isLoading:l=!1})=>r(e,{children:[t(v,{onClick:()=>{i>=1&&n(!1)},disabled:l||i<1,"data-testid":"btn-paginate-left",size:"large",children:t(tV,{})}),t(v,{onClick:()=>{null==o?n(!0):a<o&&n(!0)},disabled:!!l||null!=o&&!(a<o),"data-testid":"btn-paginate-right",size:"large",children:t(tB,{})})]}),ow=(e,r,i)=>e.map((e,a)=>t(ei,{path:e.path,exact:e.exact,render:a=>t(e.component,{...i,...a,company:r,routes:e.routes,currentRoute:e})},a)),oM=(e,t)=>{let{path:r="",exact:i=!0}=t,{pathname:a}=e;return null!==ea(a,{path:r,exact:i})},oI=(e=[])=>e?.includes("TEMP"),oE=i=>{let o,n=eo(),l=el(),s=en(),{routes:d,routeTo:c}=i,{t:p}=eW(),m=ew(()=>ow(d,null,i),[]);ey(()=>{let{pathname:e}=s;if(!(d.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)&&d.length>0){let[e]=d;n.replace(`${c(e.name,l)}${s.search}`)}},[]);let h=d.filter(e=>!!e.label),u=d.length>1,x=-1===(o=d.findIndex(e=>oM(s,{path:e.path,exact:!1})))?0:"tabIndex"in d[o]?d[o].tabIndex:o;return r(e,{children:[u&&r(a,{sx:{marginLeft:"8px"," @media (min-width: 600px)":{marginLeft:"16px"},".MuiTabs-root":{minHeight:"0 !important"},".MuiTab-root":{fontSize:"14px",textTransform:"none",padding:"5px 0px",marginRight:"16px",minWidth:0,minHeight:0,opacity:1}},children:[t(t$,{value:x,onChange:(e,t)=>{let r=d[t].clearQueryParams?"":s.search,i=`${c(d[t].name,l)}${r}`;if(e?.metaKey||e.ctrlKey){let e=window.open(i,"_blank");e?.focus();return}return n.replace(i)},variant:"scrollable",children:h.map(({label:e,requiredFeatures:r,isTemp:i,hasBadge:a},o)=>{let n,l={...i||oI(r)?{border:"1px dashed red"}:{},overflow:"visible"};return t(tZ,{active:+(x===o),label:(n="function"==typeof e?e({t:p}):e,a?t(tj,{color:"error",variant:"dot",badgeContent:" ",children:n}):n),component:"button",sx:l},o)})}),t(tG,{sx:{marginRight:"8px","@media (min-width: 600px)":{marginRight:"16px"}}})]}),t(a,{sx:{margin:"16px 8px","@media (min-width: 600px)":{margin:"16px"}},children:m})]})},oS=e=>{let{location:t,routes:r,match:i,routeTo:a,history:o}=e;return ey(()=>{(()=>{let{pathname:e}=t,{params:n}=i;if(!(r.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)){let[e]=r;o.replace(a(e.name,n))}})()}),ew(()=>ow(r,null,e),[])},oA=(e,t=50)=>!e||e.length<t?[e,!1]:[`${e.slice(0,t)}...`,!0],ok=({children:e,length:r=50,...i})=>{let[a,o]=oA(e,r);return o?t(tO,{title:e,placement:"right-start",children:t(eH,{...i,children:a})}):t(eH,{...i,children:a})},oT=({children:e,header:i,number:o,status:n,...l})=>{let s=G();return r(R,{pl:"28px",...l,children:[t(a,{sx:{marginTop:"3px"},children:t(a,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"28px",height:"28px",flex:"none",color:s.palette.common.white,borderRadius:"50%",background:s.palette.primary.main},children:n?t(iB,{children:"check"}):o})}),r(R,{flexDirection:"column",pl:"25px",pr:"25px",flex:1,pt:"10px",children:[i&&t(V,{fontSize:"14px",mb:"15px",fontWeight:"600",children:i}),e]})]})},oD=({title:e,titleLabel:i})=>r(a,{sx:{display:"flex",flexDirection:"row"},children:[t(eH,{component:"h2",m:0,fontSize:22,fontWeight:600,children:e}),i&&t(tO,{title:i,placement:"right",children:t(tm,{size:"small",children:t(tU,{fontSize:"small"})})})]}),oR=({children:e,title:i,rightComponent:o,maxWidth:n="960px",marginTopBox:l="10px",overflow:s=!0,...d})=>{let c=Q();return t(a,{width:"100%",children:t(R,{sx:{flexDirection:"column",paddingLeft:1.5,paddingRight:1.5,background:e=>`linear-gradient(to right,${e.palette.primary.main},${e.palette.primary.dark})`,borderBottomLeftRadius:{lg:1},borderBottomRightRadius:{lg:1}},height:d.height?d.height:s?c.spacing(19):c.spacing(7),children:r(a,{mt:l,maxWidth:n,alignSelf:"center",width:"100%",children:[r(a,{sx:{color:c.palette.primary.contrastText,display:"flex",justifyContent:"space-between"},children:[t(iJ,{sx:{flexDirection:"row",alignItems:"center"},children:i&&t(oD,{title:i})}),o&&t(a,{sx:{maxWidth:"400px",alignSelf:"center",justifyContent:"center",zIndex:1},children:o})]}),t(iJ,{sx:{flexDirection:"column"},children:e})]})})})},oL=e=>{let{label:i,value:o,breakByColon:n=!0,sx:l={},...s}=e;return i?t(tY,{sx:{marginLeft:"3px",...l},label:(()=>{if(o)return r(a,{component:"span",sx:{fontWeight:600},children:[t(a,{sx:{margin:"2px 0",fontWeight:"normal",borderRight:"1px solid",marginRight:"5px",paddingRight:"4px"},component:"span",children:i}),o]});if(-1!==i.indexOf(":")&&n){let[e,o]=i.split(":");return r(a,{component:"span",sx:{fontWeight:600},children:[t(a,{sx:{margin:"2px 0",fontWeight:"normal",borderRight:"1px solid",marginRight:"5px",paddingRight:"4px"},component:"span",children:e}),o]})}return i})(),...s}):null},o_=({sx:e,...r})=>t(a,{sx:{display:"flex",fontSize:"14px",fontWeight:"normal",flexDirection:"row",...e},...r}),oP=({title:e,titleLabel:i})=>r(a,{sx:{display:"flex",flexDirection:"row"},children:[t(eH,{component:"h2",m:0,fontSize:22,fontWeight:600,children:e}),i&&t(tO,{title:i,placement:"right",children:t(tm,{size:"small",children:t(tU,{fontSize:"small"})})})]}),oN=e=>t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},...e}),oO=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{padding:1,sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{justifyContent:"center",flexWrap:"wrap",flexDirection:{xs:"column",sm:"column",md:"row"},gap:1},children:[r(R,{flexGrow:1,children:[e&&t(oP,{title:e,titleLabel:i}),o&&t(o_,{children:o}),d?.length>=1&&t(oN,{children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick},r))}),s&&t(oN,{children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oE,{routes:n,routeTo:l})]}),oz=i=>{let o,n=eo(),l=el(),s=en(),{routes:d,routeTo:c}=i,p=Q(),{t:m}=eW(),h=ew(()=>ow(d,null,i),[]);ey(()=>{let{pathname:e}=s;if(!(d.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)&&d.length>0){let[e]=d;n.replace(`${c(e.name,l)}${s.search}`)}},[n,s,l,c,d]);let u=d.filter(e=>!!e.label),x=d.length>1,f=-1===(o=d.findIndex(e=>oM(s,{path:e.path,exact:!1})))?0:"tabIndex"in d[o]?d[o].tabIndex:o;return r(e,{children:[x&&t(a,{sx:{paddingTop:p.spacing(.5),mx:p.spacing(2)},children:t(H,{value:f,onChange:(e,t)=>{let r=d[t].clearQueryParams?"":s.search,i=`${c(d[t].name,l)}${r}`;if(e?.metaKey||e.ctrlKey){let e=window.open(i,"_blank");e?.focus();return}return n.replace(i)},variant:"scrollable",allowScrollButtonsMobile:!0,TabIndicatorProps:{style:{height:p.spacing(.4),backgroundColor:p.palette.primary.main}},sx:{"& .MuiTabs-scroller":{height:48,paddingTop:p.spacing(1)},"& .MuiTabs-scrollButtons":{backgroundColor:p.palette.grey[200],borderRadius:p.spacing(1),mx:p.spacing(1),my:p.spacing(1),color:p.palette.grey[900]},"& .MuiTabs-scrollButtons.Mui-disabled":{opacity:.3},"& .MuiTab-root":{fontSize:14,textTransform:"none",marginRight:p.spacing(1),minWidth:0,minHeight:0}},children:u.map(({label:e},r)=>t(z,{label:"function"==typeof e?e({t:m}):e,component:"button",sx:{height:32,whiteSpace:"nowrap",fontWeight:p.typography.fontWeightBold,backgroundColor:f===r?p.palette.primary.main:p.palette.grey[200],borderRadius:p.spacing(1),color:p.palette.grey[700],"&.Mui-selected":{color:p.palette.common.white}}},r))})}),t(g,{sx:{mx:p.spacing(2)}}),t(a,{sx:{margin:p.spacing(2)},children:h})]})},oH=({sx:e,...r})=>t(a,{sx:{display:"flex",fontSize:"14px",fontWeight:"normal",flexDirection:"row",...e},...r}),oF=({title:e,titleLabel:i})=>r(a,{sx:{display:"flex",flexDirection:"row"},children:[t(eH,{component:"h2",m:0,fontSize:22,fontWeight:600,children:e}),i&&t(tO,{title:i,placement:"right",children:t(tm,{size:"small",children:t(tU,{fontSize:"small"})})})]}),oW=e=>t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},...e}),oV=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{alignItems:"center",justifyContent:"space-between",position:"sticky",mt:2,mb:2*!(n&&n.length>1),gap:2},children:[r(R,{flexGrow:1,children:[e&&t(oF,{title:e,titleLabel:i}),o&&t(oH,{children:o}),d?.length>=1&&t(oW,{children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick},r))}),s&&t(oW,{children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{sx:{alignItems:"center",justifyContent:"center"},children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oz,{routes:n,routeTo:l})]}),oB=i=>{let o,n=eo(),l=el(),s=en(),{routes:d,routeTo:c}=i,p=Q(),{t:m}=eW(),h=ew(()=>ow(d,null,i),[]);ey(()=>{let{pathname:e}=s;if(!(d.filter(t=>ea(e,{path:t.path,exact:!1})).length>0)&&d.length>0){let[e]=d;n.replace(`${c(e.name,l)}${s.search}`)}},[n,s,l,c,d]);let u=d.filter(e=>!!e.label),x=d.length>1,f=-1===(o=d.findIndex(e=>oM(s,{path:e.path,exact:!1})))?0:"tabIndex"in d[o]?d[o].tabIndex:o;return r(e,{children:[x&&t(a,{sx:{paddingTop:p.spacing(.5),mx:p.spacing(2)},children:t(H,{value:f,onChange:(e,t)=>{let r=d[t].clearQueryParams?"":s.search,i=`${c(d[t].name,l)}${r}`;if(e?.metaKey||e.ctrlKey){let e=window.open(i,"_blank");e?.focus();return}return n.replace(i)},variant:"scrollable",allowScrollButtonsMobile:!0,TabIndicatorProps:{style:{height:p.spacing(.4),backgroundColor:p.palette.primary.main}},sx:{"& .MuiTabs-scroller":{height:48,paddingTop:p.spacing(1)},"& .MuiTabs-scrollButtons":{backgroundColor:p.palette.grey[200],borderRadius:p.spacing(1),margin:p.spacing(1),color:p.palette.grey[900]},"& .MuiTabs-scrollButtons.Mui-disabled":{opacity:.3},"& .MuiTab-root":{fontSize:14,textTransform:"none",marginRight:p.spacing(1),minWidth:0,minHeight:0}},children:u.map(({label:e},r)=>t(z,{label:"function"==typeof e?e({t:m}):e,component:"button",sx:{height:32,whiteSpace:"nowrap",border:`1px solid ${p.palette.grey[300]}`,fontWeight:p.typography.fontWeightBold,backgroundColor:p.palette.common.white,borderRadius:p.spacing(1),color:p.palette.common.black,"&.Mui-selected":{color:p.palette.primary.dark,borderColor:p.palette.primary.main}}},r))})}),t(g,{sx:{mx:p.spacing(2)}}),t(a,{sx:{margin:p.spacing(2)},children:h})]})},oj=e=>t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},...e}),oG=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{alignItems:"center",justifyContent:"space-between",position:"sticky",mt:2,mb:2*!(n&&n.length>1),gap:2},children:[r(R,{flexGrow:1,children:[e&&t(oF,{title:e,titleLabel:i}),o&&t(oH,{children:o}),d?.length>=1&&t(oj,{children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick},r))}),s&&t(oj,{children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{sx:{alignItems:"center",justifyContent:"center"},children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oB,{routes:n,routeTo:l})]}),oZ="DEBIT",o$="CREDIT",oU={IN:"#4CAF50",OUT:"#EF5350"},oY=({sx:e,color:r,children:i,...o})=>t(a,{component:"span",sx:{color:r,...e},...o,children:i}),oq=ex(({children:e,...r},i)=>{let{isMobile:a}=or();return a?t(iJ,{tabIndex:-1,ref:i,children:t(tK,{direction:"up",mountOnEnter:!0,unmountOnExit:!0,...r,children:e})}):t(iJ,{tabIndex:-1,ref:i,children:t(tX,{mountOnEnter:!0,unmountOnExit:!0,...r,children:e})})}),oX=({open:e,title:i,onClose:a,children:o,actions:n,width:l,maxHeight:s="400px",contentProps:d})=>{let c=Q();return t(tq,{open:e,onClose:a,closeAfterTransition:!0,sx:{"@media (max-width: 600px)":{zIndex:c.zIndex.mobileStepper+d?.sx.zIndex}},children:t(oq,{in:e,children:r(eL,{sx:{position:"absolute",left:0,bottom:0,right:0,boxShadow:c.shadows[2],borderTopLeftRadius:c.shape.borderRadius,borderTopRightRadius:c.shape.borderRadius,borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"fit-content","@media (min-width: 600px)":{width:l,maxWidth:700,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"@media (max-width: 600px)":{marginBottom:12}},children:[t(tN,{id:"dialog-title",children:i}),t(iJ,{sx:{maxHeight:s,overflowY:"auto"},children:t(tL,{sx:d?.sx,dividers:!0,children:o})}),n&&t(tP,{children:n})]})})})},oK={[o$]:"#4CAF50",[oZ]:"#FF9800"},oQ=e=>({[o$]:e.palette.success.light,[oZ]:e.palette.warning.light}),oJ=({status:e,sx:r,...i})=>{let a=oQ(Q());return t(oL,{sx:{color:"white !important",backgroundColor:`${a[e]||oK[e]} !important`,...r},...i})},o1="PENDING",o2="CREATED",o0="PARTIAL_REFUND",o3="IN_PROCESSING",o4="NOT_ACCOMPLISHED",o5="REJECTED",o6="RECEIVED",o9="REFUNDED",o7="CONFIRMED",o8=(e,t)=>({[o7]:e.palette.success.light,[o6]:e.palette.success.light,[o2]:e.palette.warning.light,[o1]:e.palette.warning.light,[o0]:e.palette.warning.light,[o3]:e.palette.warning.light,[o5]:e.palette.error.light,[o4]:e.palette.error.light,[o9]:e.palette.error.light})[t],ne=({status:e})=>{let r=Q(),{t:i}=eW();return t(oL,{variant:"filled",label:{[o6]:i("Received"),[o9]:i("Refunded"),[o0]:i("Partially refunded"),[o3]:i("In processing"),[o4]:i("Not accomplished"),[o5]:i("Rejected"),[o1]:i("Pending"),[o2]:i("Created"),[o7]:i("Confirmed"),[o2]:i("Created")}[e],sx:{color:"white",backgroundColor:o8(r,e)}})},nt=function({sx:e,children:r,...i}){return t(a,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",...e},...i,children:r})},nr=({children:e,sx:r,...i})=>t(a,{sx:{flex:1,display:"flex",minHeight:"300px",alignItems:"center",flexDirection:"column",justifyContent:"space-between",...r},...i,children:e}),ni=({sx:e,color:r="primary",variant:i="solid",children:o,...n})=>{let l=Q();return t(a,{sx:{padding:"12px",display:"flex",flexWrap:"wrap",flexGrow:1,fontSize:"14px",alignItems:"center",fontWeight:600,justifyContent:"space-between",..."solid"===i?{color:"warning"===r?l.palette.tertiary.main:"white",backgroundColor:"warning"===r?l.palette.warning.light:l.palette[r].main}:"outline"===i?{border:`1px solid ${l.palette[r].main}`,borderRadius:"8px"}:{},...e},...n,children:o})},na=()=>t("svg",{width:90,height:90,viewBox:"0 0 135 135",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M67.5 0C30.172 0 0 30.172 0 67.5S30.172 135 67.5 135 135 104.828 135 67.5 104.828 0 67.5 0zm33.75 91.733l-9.517 9.517L67.5 77.017 43.267 101.25l-9.517-9.517L57.983 67.5 33.75 43.267l9.517-9.517L67.5 57.983 91.733 33.75l9.517 9.517L77.017 67.5l24.233 24.233z",fill:"#EF5350"})}),no=({errors:e,callbackOnClose:i})=>{let{t:a}=eW(),o=G();return null!=e&&e.length>0?r(R,{direction:"row",gap:1,sx:{backgroundColor:"#FFCDC1",borderRadius:"4px",padding:"16px",alignItems:"flex-start",mb:2,justifyContent:"space-between"},children:[r(R,{direction:"column",spacing:1,children:[t(V,{variant:"body1",sx:{color:o.palette.error.main},children:a("Error!!!")}),e.map(e=>t(R,{direction:"row",spacing:.5,children:t(V,{component:"span",sx:{color:o.palette.error.main},children:e})}))]}),t(tm,{sx:{width:55,height:55},onClick:i,children:t(na,{})})]}):null},nn=({errors:i,columns:a,titleHeader:n,onClose:l,isOpen:s=!1,color:d,name:c,refColumn:p})=>{let m=c?`banner-infos-${c}`:"banner-infos",h=G();if(!(null!=i&&i.length>0)||!s)return null;let u=(e,t)=>t.valueGetter?t.valueGetter({row:e}):t.field?"-":String(e[t.field]),x={ERROR:{HEADER_BG:"#dc3545",HEADER_TEXT:h.palette.error.dark,CONTENT_BG:"#FFCDC1",CONTENT_TEXT:"#721c24"},SUCCESS:{HEADER_BG:"#28a745",HEADER_TEXT:h.palette.success.dark,CONTENT_BG:"#C8E6C9",CONTENT_TEXT:"#155724"}}[d||"ERROR"],f="SUCCESS"===d;return r(R,{"data-testid":m,direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-between"},mb:1,children:[r(R,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",backgroundColor:x.HEADER_BG,color:"white",borderRadius:"8px 8px 0 0",flexDirection:"row",padding:2},children:[r(R,{sx:{display:"flex",alignItems:"center",gap:2,flexDirection:"row"},children:[f?t(ej,{size:20}):t(eq,{size:20}),t(V,{sx:{fontSize:h.typography.body1,fontWeight:h.typography.fontWeightBold},children:n?.toUpperCase()})]}),t(o,{sx:{background:"none",border:"none",color:"white",cursor:"pointer",padding:1,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s"},onClick:l,onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.2)"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},"aria-label":"Fechar",children:t(eZ,{size:20})})]}),t(R,{direction:"row",gap:1,sx:{width:"100%",backgroundColor:x.CONTENT_BG,padding:2,borderBottomLeftRadius:1,borderBottomRightRadius:1},children:t(R,{direction:"column",spacing:1,sx:{width:"100%"},children:i.map((o,n)=>r(e,{children:[(({error:e,index:i})=>t(R,{"data-testid":((e,t)=>{if(!p)return`row-${t}`;let r=u(e,p);return`row-${r||t}`})(e,i),direction:"column",spacing:.5,children:a.map((i,a)=>r(R,{direction:"row",spacing:1,children:[r(V,{component:"span",sx:{color:x.CONTENT_TEXT,fontWeight:h.typography.fontWeightBold,minWidth:"100px"},children:[i.headerName,":"]}),t(V,{component:"span",sx:{color:x.CONTENT_TEXT},children:((e,t)=>{if(t.renderCell){let r=u(e,t),i=t.renderCell({color:x.CONTENT_TEXT,value:r,row:e});return null===i?"-":i}return u(e,t)})(e,i)})]},a))},i))({error:o,index:n}),n<i.length-1&&t(g,{sx:{backgroundColor:d||h.palette.error.main}})]}))})})]})},nl=({variant:e,children:r,color:i,...a})=>t(eH,{variant:e,color:i,...a,children:r}),ns=({onClick:e,icon:i})=>{let a=G(),{t:n}=eW();return t(o,{onClick:e,sx:{textTransform:"none",borderRadius:a.spacing(3.75),backgroundColor:a.palette.common.black,py:a.spacing(2),px:a.spacing(6.75),alignItems:"center"},children:r(R,{alignItems:"center",direction:"row",spacing:a.spacing(1),children:[i&&t("img",{src:i,width:24,height:24}),t(nl,{component:"span",variant:"subtitle1",sx:{color:a.palette.common.white},children:n("Donate with")}),t(nl,{component:"span",variant:"subtitle1",sx:{color:a.palette.primary.main},children:"clickpix"})]})})},nd=({onClick:e,icon:i})=>{let a=G(),{t:n}=eW();return t(o,{onClick:e,sx:{textTransform:"none",borderRadius:a.shape.borderRadius,backgroundColor:a.palette.common.black,py:a.spacing(1.5),px:a.spacing(6.75),alignItems:"center"},children:r(R,{alignItems:"center",direction:"row",spacing:a.spacing(1),children:[i&&t("img",{src:i,width:24,height:24}),t(nl,{component:"span",variant:"subtitle1",sx:{color:a.palette.common.white},children:n("Donate to a")}),t(nl,{component:"span",variant:"subtitle1",sx:{fontWeight:a.typography.fontWeightBold,color:a.palette.common.white},children:n("click")})]})})},nc=e=>({startIcon:e?t(tD,{size:"12px"}):null}),np=e=>{let{title:i,description:a,icon:o,renderActions:n,primaryAction:l,primaryActionLabel:s,primaryActionProps:d={},secondaryAction:c,secondaryActionLabel:p,secondaryActionProps:m={}}=e,h=G(),u=l&&s,x=c&&p,f=`rgba(${aU(h.palette.common.black).join(",")}, 0.12)`;return r(iX,{sx:{flex:1,height:"100%",display:"flex",padding:"0 10px",boxSizing:"border-box",minHeight:"150px",transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",flexDirection:"column","&:hover":{boxShadow:"0 10px 20px 0 rgba(96, 115, 137, 0.29)"}},children:[r(tn,{sx:{height:"60px",display:"flex",alignItems:"center",borderBottom:`1px solid ${f}`},children:[o?"string"==typeof o?t(iB,{sx:{color:h.palette.primary.light,margin:"-5px 5px -5px -5px",fontSize:"30px"},children:o}):t(tn,{sx:{display:"flex",margin:"0 10px 0 0"},children:t(o,{width:25,height:25,color:h.palette.primary.light})}):null,t(eH,{sx:{color:h.palette.common.black,margin:0,fontSize:"14px",fontWeight:"normal"},component:"h6",children:i})]}),t(eH,{sx:{flex:1,color:h.palette.grey[600],margin:"10px 0 0 0",fontSize:"12px",fontWeight:"normal"},component:"p",children:a}),n?n:u||x?r(ee,{justifyContent:"flex-end",sx:{mb:"10px"},children:[x?t(ij,{variant:"text",color:"secondary",onClick:c,...m,children:p}):null,u?t(ij,{variant:"text",color:"primary",onClick:l,...d,children:s}):null]}):null]})},nm=i=>{let{t:a}=eW(),{leftComponent:o,rightComponent:n,edges:l,emptyMessage:s=a("No data available"),renderItem:d,isLoading:c,withActionMargin:p=!0}=i;return r(e,{children:[p&&t(aI,{leftComponent:o,rightComponent:n}),c?t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(ot,{})}):0===l.length?t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(V,{children:s})}):l.map((e,t)=>d(e,t))]})},nh=({children:e,isSelected:r=!1,disabled:i=!1,onClick:a,sx:o={},...n})=>{let l,s,d,c=Q();return t(R,{sx:{width:"100%",justifyContent:"center",p:2,border:1,borderRadius:c.spacing(1),transition:"0.25s ease",...(l=c.palette.primary.main,s=q(c.palette.primary.dark,.3),d="lightGray",r?{color:i?c.palette.text.disabled:s,borderColor:i?"gray":l,boxShadow:`0px 0px 0px 2px ${i?d:X(l,.7)}`}:{color:i?c.palette.text.disabled:c.palette.text.secondary,borderColor:d}),...((e,t,r)=>{let i,a;return t?{}:{"&:hover":{cursor:"pointer",...(i=X(e.palette.primary.main,.7),a=e.palette.primary.main,{boxShadow:`0px 0px 0px ${r?2:1}px ${i}`,borderColor:r?a:X(a,.3)})}}})(c,i,r),...o},"data-testid":n["data-testid"],onClick:a,children:e})},nu=({title:e,icon:i,content:a,to:o,color:n})=>{let l=G();return r(eP,{component:et,variant:"outlined",sx:e=>({p:e.spacing(2),cursor:o?"pointer":"default",height:"100%",minHeight:90,display:"flex",alignItems:"stretch",justifyContent:"center",flexDirection:"column",textDecoration:"none",":hover":{borderColor:e.palette.grey[400]}}),...o.startsWith("/")?{}:{component:"a",href:o,target:"_blank",rel:"noopener noreferrer"},children:[r(ee,{direction:"row",sx:{alignItems:"center",justifyContent:"start",width:"100%"},spacing:1,children:[i,t(eH,{variant:"h4",sx:{color:n},fontWeight:l.typography.fontWeightBold,children:e})]}),a&&t(eH,{variant:"subtitle1",sx:{marginTop:1.2,color:n},children:a})]})},nx=({label:e,value:i,alignField:a="inherit"})=>r(iJ,{sx:{flexDirection:"column",justifyContent:"center",alignItems:a},children:[t(eH,{variant:"body2",color:"GrayText",children:e}),t(eH,{variant:"body1",fontWeight:600,sx:{lineHeight:"16px",wordBreak:"break-word",display:"flex",flexWrap:"wrap",gap:1},children:i})]}),nf=({label:e,value:i,centeredLabel:a=!1})=>r(iJ,{sx:{flexDirection:"column",justifyContent:"center"},children:[t(V,{fontSize:"14px",fontWeight:"600",sx:{lineHeight:"16px"},textAlign:a?"center":"start",children:e}),t(V,{fontSize:"12px",textAlign:"center",children:i})]}),ng=({children:e,cardProps:i={},gridProps:a={},actions:o,templateColumns:n="repeat(auto-fit, minmax(150px, 1fr))"})=>r(iX,{sx:{mb:"10px"},...i,children:[t(at,{templateColumns:n,gap:"15px",padding:"16px",...a,children:e}),!!o&&t(iK,{children:o})]}),nC=({sx:e,company:r,...i})=>r?.logo?.url?t(a,{sx:{margin:"20px",objectFit:"contain",...e},src:r.logo.url,component:"img",...i}):t(a,{sx:{color:"#607389",textAlign:"center",fontWeight:"bold"},component:"h1",children:r.nameFriendly}),ny=eh({showDialog:e=>{},hideDialog:()=>{}}),nb=e=>{let[t,r]=eE(e);return[t,e=>{null!=e&&r(e)}]},nv=({children:i})=>{let{t:a}=eW(),o=eI(null),n=eI(null),[l,s]=nb(null),[d,c]=nb(""),[p,g]=nb(!1),[C,y]=nb({}),b=()=>{n.current&&n.current(),g(!1)},v=()=>{o.current&&o.current(),g(!1)},[w,M]=nb(r(e,{children:[t(ij,{variant:"outlined",onClick:b,"data-testid":"btn-dialog-cancel",children:a("Cancel")}),t(iG,{color:"primary",onClick:v,"data-testid":"btn-dialog-confirm",children:a("Confirm")})]}));return r(ny.Provider,{value:{showDialog:i=>{let{title:l,message:d,onContinue:p,onClose:m,action:h,...u}=i;p&&(o.current=p),m&&(n.current=m);let x=h||r(e,{children:[t(ij,{variant:"outlined",color:"secondary",onClick:b,"data-testid":"btn-dialog-cancel",children:a("Cancel")}),t(iG,{color:"primary",onClick:v,"data-testid":"btn-dialog-confirm",children:a("Confirm")})]});s(l||null),c(d||""),M(x),y(u),g(!0)},hideDialog:b},children:[r(m,{open:p,onClose:b,...C,children:[l&&t(f,{children:l}),t(u,{children:"string"==typeof d?t(x,{children:d}):d}),!!w&&t(h,{children:w})]}),i]})},nw=({children:e,selectOnLeft:i,onClickSelect:a,selected:o,disabled:n,testId:l})=>{let s=a?t(ee,{alignItems:i?"flex-start":"flex-end",children:t(d,{onClick:a,checked:o,checkedIcon:t(a6.CheckboxChecked,{}),indeterminateIcon:t(a6.CheckboxIndeterminate,{}),icon:t(a6.CheckboxUnchecked,{}),disabled:n,inputProps:{"data-testid":l}})}):null;return r(ng,{gridProps:a?i?{templateColumns:"50px repeat(auto-fit, minmax(150px, 1fr))"}:{templateColumns:"repeat(auto-fit, minmax(150px, 1fr)) 50px"}:{templateColumns:"repeat(auto-fit, minmax(150px, 1fr))"},children:[!!i&&s,e,!i&&s]})},nM=({sx:e,...r})=>t(a,{sx:{width:"900px",height:"100%",padding:"10px",backgroundColor:"#f8f8f8","@media (max-width: 1000px)":{width:"300px"}},...r}),nI=class extends ep{state={error:null,fetchKey:0};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,{componentStack:t}){process.env.JEST_WORKER_ID}_retry=()=>{this.setState(e=>({error:null,fetchKey:e.fetchKey+1}))};render(){let{children:e,fallback:t}=this.props,{error:r,fetchKey:i}=this.state;if(r){if(r.cause?.code===401){let e=new URLSearchParams(window.location.search).get("next"),t=e?`/login?next=${encodeURIComponent(e)}`:"/login";return window.location.replace(t)}return"function"==typeof t?t(r,this._retry):t}return"function"==typeof e?e({fetchKey:i}):e}},nE="chunk_reload_triggered",nS=({error:e,retry:i})=>{let a=eI(!1),o=e=>"string"==typeof e?e:e&&"object"==typeof e&&"message"in e?e?.message:void 0,n=e=>"string"==typeof e&&e.includes("Loading chunk"),l=Array.isArray(e)?o(e[0])??"Ocorreu um erro desconhecido":o(e)??"Ocorreu um erro desconhecido";return ey(()=>{(Array.isArray(e)?e.some(e=>n(o(e))):n(o(e)))&&!a.current&&(a.current=!0,localStorage.getItem(nE)?setTimeout(()=>{localStorage.removeItem(nE)},6e4):(localStorage.setItem(nE,"true"),window.location.href="/"))},[e]),t(tn,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"center",margin:"10px"},children:t(tn,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",maxWidth:"500px"},children:r(iX,{sx:{margin:"20px",padding:"20px",alignItems:"center",flexDirection:"column"},children:[t("h3",{children:"Ops! Ocorreu um erro"}),t(tn,{component:"p",sx:{marginBottom:"20px"},children:l}),i?t(ed,{variant:"outlined",onClick:i,children:"Tentar novamente"}):t(ed,{variant:"outlined",onClick:()=>{window.location.href="/login/logout",window.location.reload()},children:"Tentar novamente"})]})})})},nA=({children:e})=>t(nI,{fallback:(e,r)=>t(nS,{error:e,retry:r}),children:({fetchKey:t})=>e({fetchKey:t})}),nk=nS,nT=function({color:e,onClick:i,children:a,background:o="#F9F9F9"}){let n=e||(o&&.5>=tJ(o).luminance()?"#FFF":"#000"),l=tJ(o).brighten(.2).toString();return r(tn,{component:"button",onClick:i,sx:{transition:"all 500ms cubic-bezier(0.2, 1, 0.22, 1)",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"15px",fontWeight:300,color:n,fill:n,background:o,border:"none",cursor:"pointer","&:hover":{background:l}},children:[a,t(t1,{})]})},nD=function(e){let{children:r}=e,i=e.className?`material-icons ${e.className}`:"material-icons";return t(a,{sx:{color:e.color||"#FFF",padding:e.padding||"5px",fontSize:e.fontSize||16,textAlign:"center",fontWeight:800},...e,className:i,component:"i",children:r})},nR=({onDrop:e,onFileDialogCancel:i,isLoading:a,children:o,url:n,onRemoveFile:l})=>{let{getRootProps:s,getInputProps:d,open:c}=tQ({onDrop:e,multiple:!1,noClick:!0,onFileDialogCancel:i}),p=!!l&&!!n&&!a;return t(ee,{flexDirection:"column",children:r(tn,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",border:"2px dashed #dddfe2",borderRadius:"2px",boxSizing:"border-box",minHeight:"100px",outline:"none"},children:[r("div",{role:"button","aria-pressed":"false",...s(),onClick:c,children:[t("input",{...d()}),a&&t(ot,{}),o({isLoading:a,open:c})]}),p&&t(ee,{children:t(nT,{background:"#fff",onClick:l,size:"large",children:t(nD,{color:"#515c6a",children:"delete"})})})]})})},nL=(e,t)=>{let r=aN(e);return tx(aH(t),r)},n_=e=>e?e.indexOf("true")>-1||!(e.indexOf("false")>-1)&&e:e,nP=({children:e,forceRow:r})=>t(R,{spacing:2,direction:r?"row":{xs:"column",md:"row"},children:e}),nN=({sx:e,...r})=>t(a,{sx:{width:"100%",maxWidth:"200px",objectFit:"contain",maxHeight:"150px",...e},component:"img",...r}),nO=({header:e,sidebar:i,children:a})=>{let{width:o}=t_();return o<600?r(b,{container:!0,children:[e,i,a]}):r(b,{container:!0,children:[e,t(iJ,{sx:{flexDirection:"column",mt:"60px",flex:1},children:a})]})},nz=({width:e,height:i="40px",showText:a=!0})=>{let o=a?"#1F6D61":"#fff",n=a?"#4AB7A8":"#fff";return r("svg",{version:"1.1",id:"OpenPixLogo","data-testid":"OpenPixLogo",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:e,height:i,viewBox:"0 0 670.49 140.22",children:[r("g",{fill:a?"#96969A":"#fff",fillRule:"nonzero",id:"open",children:[t("polygon",{points:"469.7,34.9 469.6,35.2 469.8,35"}),t("path",{d:"M264.8,59.4c0,8.5-1.2,15.9-3.7,22.4c-2.5,6.5-5.8,11.9-10,16.2c-4.2,4.3-9.1,7.6-14.7,9.8 c-5.6,2.2-11.5,3.3-17.8,3.3c-6.3,0-12.2-1.1-17.8-3.3c-5.6-2.2-10.5-5.4-14.7-9.8c-4.2-4.3-7.6-9.7-10-16.2 c-2.5-6.5-3.7-13.9-3.7-22.4c0-8.5,1.2-15.9,3.7-22.3c2.5-6.4,5.8-11.8,10-16.1c4.2-4.3,9.1-7.6,14.7-9.8 c5.6-2.2,11.5-3.3,17.8-3.3c6.3,0,12.2,1.1,17.8,3.3c5.6,2.2,10.5,5.4,14.7,9.8c4.2,4.3,7.6,9.7,10,16.1 C263.5,43.5,264.8,51,264.8,59.4L264.8,59.4z M254.5,59.4c0-6.6-0.9-12.6-2.6-17.9c-1.7-5.3-4.1-9.8-7.3-13.5 c-3.1-3.7-6.9-6.5-11.3-8.5c-4.4-1.9-9.4-2.9-14.9-2.9c-5.5,0-10.5,1-14.9,2.9c-4.4,1.9-8.2,4.8-11.3,8.5 c-3.1,3.7-5.6,8.2-7.3,13.5c-1.7,5.3-2.6,11.2-2.6,17.9c0,6.7,0.9,12.6,2.6,17.9c1.7,5.3,4.1,9.8,7.3,13.5 c3.1,3.7,6.9,6.6,11.3,8.5c4.4,2,9.4,3,14.9,3c5.5,0,10.5-1,14.9-3c4.4-2,8.2-4.8,11.3-8.5c3.1-3.7,5.6-8.2,7.3-13.5 C253.6,72,254.5,66.1,254.5,59.4L254.5,59.4z"}),t("path",{d:"M289.7,135.2h-9.3V37.8c2.8-0.9,6.3-1.9,10.5-2.7c4.3-0.9,9.7-1.3,16.2-1.3c5.4,0,10.3,0.9,14.7,2.6 c4.4,1.8,8.2,4.3,11.4,7.6c3.2,3.3,5.6,7.4,7.4,12.1c1.8,4.7,2.6,10.1,2.6,16.1c0,5.6-0.7,10.8-2.2,15.5 c-1.5,4.7-3.6,8.7-6.5,12.1c-2.8,3.4-6.3,6-10.5,7.9c-4.1,1.9-8.9,2.8-14.2,2.8c-4.8,0-9-0.7-12.6-2.1c-3.6-1.4-6.2-2.7-7.8-3.9 V135.2z M289.7,95.6c0.9,0.7,1.9,1.4,3.2,2.1c1.3,0.8,2.8,1.5,4.5,2.1c1.7,0.7,3.6,1.2,5.6,1.6c2,0.4,4.1,0.6,6.3,0.6 c4.6,0,8.4-0.8,11.5-2.4c3.1-1.6,5.6-3.7,7.5-6.4c1.9-2.7,3.3-5.9,4.1-9.5c0.9-3.7,1.3-7.5,1.3-11.6c0-9.7-2.4-17.1-7.3-22.3 c-4.8-5.2-11.3-7.8-19.2-7.8c-4.6,0-8.2,0.2-11,0.6c-2.8,0.4-4.9,0.9-6.3,1.4V95.6z"}),t("path",{d:"M353.7,72c0-6.5,0.9-12.1,2.8-16.9c1.9-4.8,4.3-8.8,7.3-12c3-3.2,6.4-5.6,10.3-7.2c3.8-1.6,7.8-2.4,11.9-2.4 c9,0,16.2,2.9,21.6,8.8c5.4,5.9,8.1,15,8.1,27.2c0,0.8,0,1.5-0.1,2.3c0,0.8-0.1,1.5-0.2,2.1h-51.7c0.3,9,2.5,16,6.7,20.8 c4.2,4.8,10.8,7.3,19.9,7.3c5,0,9-0.5,12-1.4c2.9-0.9,5.1-1.8,6.4-2.4l1.7,8c-1.3,0.8-3.8,1.7-7.5,2.7c-3.7,1-8,1.6-12.9,1.6 c-6.5,0-12-1-16.5-2.9c-4.6-1.9-8.3-4.6-11.3-8c-2.9-3.4-5.1-7.5-6.4-12.2C354.3,82.7,353.7,77.6,353.7,72L353.7,72z M406,66.1 c-0.2-7.7-2-13.7-5.4-18c-3.4-4.3-8.3-6.4-14.5-6.4c-3.3,0-6.3,0.7-8.9,2c-2.6,1.3-4.9,3.1-6.8,5.3c-1.9,2.2-3.5,4.8-4.6,7.8 c-1.1,2.9-1.7,6-1.9,9.3H406z"}),t("path",{d:"M430.7,37.8c2.8-0.8,6.5-1.6,11.1-2.6c4.7-0.9,10.4-1.4,17.1-1.4c5.6,0,10.3,0.8,14,2.4 c3.8,1.6,6.7,3.9,9,6.9c2.2,3,3.8,6.6,4.8,10.8c0.9,4.2,1.4,8.8,1.4,13.8v41.2h-9.3V70.7c0-5.2-0.4-9.6-1.1-13.3 c-0.7-3.6-1.9-6.6-3.6-8.8c-1.7-2.3-3.8-3.9-6.6-4.9c-2.7-1-6.1-1.5-10.2-1.5c-4.4,0-8.1,0.2-11.3,0.7c-3.2,0.5-5.3,0.9-6.2,1.3 v64.7h-9.3V37.8z"})]}),r("g",{fill:n,fillRule:"nonzero",id:"pix",children:[t("path",{d:"M532.1,19.1c12.8,0,22.3,2.4,28.5,7.3c6.3,4.9,9.4,11.8,9.4,20.7c0,5.1-0.9,9.5-2.7,13.1 c-1.8,3.6-4.4,6.5-7.8,8.7c-3.4,2.2-7.5,3.8-12.4,4.8c-4.9,1-10.4,1.5-16.6,1.5h-12.2v34.9h-8.9V21.6c3.1-0.9,6.8-1.5,11-1.9 C524.6,19.3,528.5,19.1,532.1,19.1z M532.5,26.8c-3.3,0-6.1,0.1-8.4,0.3c-2.3,0.2-4.3,0.4-5.9,0.6v39.9h11.2 c4.8,0,9.1-0.3,13-0.8c3.9-0.6,7.2-1.6,9.9-3.1c2.7-1.5,4.8-3.6,6.3-6.3c1.5-2.7,2.2-6.1,2.2-10.3c0-4-0.8-7.3-2.4-9.9 c-1.6-2.6-3.7-4.7-6.4-6.2c-2.6-1.5-5.7-2.6-9.1-3.2C539.6,27.1,536.1,26.8,532.5,26.8z"}),t("path",{d:"M599,22.5c0,2-0.6,3.6-1.8,4.8c-1.2,1.2-2.7,1.8-4.4,1.8c-1.7,0-3.2-0.6-4.4-1.8c-1.2-1.2-1.8-2.8-1.8-4.8 c0-2,0.6-3.6,1.8-4.8c1.2-1.2,2.7-1.8,4.4-1.8c1.7,0,3.2,0.6,4.4,1.8C598.3,19,599,20.5,599,22.5z M597,110.2h-8.5V42.9h8.5 V110.2z"}),t("path",{d:"M643,81.7c-1.9,2.3-3.8,4.7-5.7,7.2c-1.9,2.5-3.7,5-5.5,7.4c-1.8,2.4-3.4,4.9-4.9,7.4 c-1.5,2.5-2.7,4.7-3.7,6.6h-8.8c3.6-6.6,7.5-12.8,11.6-18.4c4.1-5.6,8.2-11.1,12.5-16.5l-22.8-32.4h9.9l17.6,25.5l17.6-25.5h9.2 l-22.3,32c1.9,2.4,3.9,4.9,6.1,7.7c2.2,2.8,4.3,5.7,6.5,8.7c2.2,3,4.2,6.1,6.3,9.3c2,3.2,3.9,6.4,5.6,9.6h-9.1 c-1-1.9-2.3-4-3.8-6.3c-1.5-2.3-3.1-4.7-4.9-7.2c-1.8-2.5-3.7-5-5.6-7.6C646.8,86.5,644.9,84,643,81.7z"})]}),r("g",{children:[t("path",{fill:o,d:"M134.8,93.9c-0.8-1.2-1.9-2.2-3.3-3l-11.4-6.2l-7.9-4.3l-7.9,4.3l7.9,4.3l9.9,5.4c2.9,1.6,2.9,5.1,0,6.7 l-43.8,24c-3.5,1.9-8.2,1.9-11.7,0l-43.8-24.1c-2.9-1.6-2.9-5.1,0-6.7l9.8-5.4l7.9-4.3l-7.9-4.3l-7.9,4.3l-11.4,6.2 c-2.8,1.6-4.5,4.1-4.5,6.9c0,1.4,0.4,2.7,1.2,3.8c0.8,1.2,1.9,2.2,3.3,3l53.3,29.2c3.5,1.9,8.2,1.9,11.7,0l53.2-29.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,96.4,135.6,95.1,134.8,93.9z"}),t("path",{fill:a?"#308E83":"#fff",d:"M134.8,67.7c-0.8-1.2-1.9-2.2-3.3-3l-11.4-6.2l-7.9-4.3l-7.9,4.3l7.9,4.3l9.9,5.4c2.9,1.6,2.9,5.1,0,6.7 l-9.8,5.4l-7.9,4.3L78.3,99c-3.5,1.9-8.2,1.9-11.7,0L40.5,84.7l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l9.8-5.4l7.9-4.3 l-7.9-4.3l-7.9,4.3l-11.4,6.2c-2.8,1.6-4.5,4.1-4.5,6.9c0,1.4,0.4,2.7,1.2,3.9c0.8,1.2,1.9,2.2,3.3,3l11.4,6.2l7.9,4.3l34,18.6 c3.5,1.9,8.2,1.9,11.7,0L112.2,89l7.9-4.3l11.4-6.2c2.8-1.6,4.5-4.1,4.5-6.9C136,70.2,135.6,68.9,134.8,67.7z"}),t("path",{fill:n,d:"M134.8,41.6c-0.8-1.2-1.9-2.2-3.3-3L78.3,9.5c-3.5-1.9-8.2-1.9-11.7,0L13.3,38.6c-2.8,1.6-4.5,4.1-4.5,6.9 c0,1.4,0.4,2.7,1.2,3.8c0.8,1.2,1.9,2.2,3.3,3l11.4,6.2l7.9,4.3l34,18.6c3.5,1.9,8.2,1.9,11.7,0l33.9-18.6l7.9-4.3l11.4-6.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,44.1,135.6,42.8,134.8,41.6z M122.1,48.8l-9.8,5.4l-7.9,4.3l-26,14.3c-3.5,1.9-8.2,1.9-11.7,0 L40.5,58.5l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l43.8-24c3.5-1.9,8.2-1.9,11.7,0l43.8,24.1C125,43.8,125,47.2,122.1,48.8z"}),r("g",{fill:o,children:[t("path",{d:"M65.8,44.1c-3.3-2-6.6-3.9-9.9-5.9c-1.2-0.7-2.4-1.1-3.8-1c-0.8-0.1-1.5,0.1-2.2,0.5 c-3.7,2.2-7.5,4.4-11.3,6.7c-1.4,0.8-1.4,2,0,2.8c3.7,2.1,7.4,4.1,11.1,6.3c2.2,1.3,4.4,1.1,6.6,0c3.2-1.8,6.3-3.7,9.5-5.5 C67.6,46.9,67.6,45.2,65.8,44.1z M58.4,46.4l-5.6,3.1c-0.2,0.1-0.5,0.1-0.8,0l-5.6-3.2c-0.5-0.3-0.5-1.1,0-1.4l5.7-3.2 c0.2-0.1,0.6-0.1,0.8,0l5.5,3.2C58.9,45.4,58.9,46.1,58.4,46.4z"}),t("path",{d:"M86.3,56.4L74.1,49c-0.8-0.5-1.7-0.5-2.5,0L59,56.2c-0.9,0.5-0.9,1.8,0,2.3l11.3,6.6c1.5,0.8,3.2,0.8,4.7,0 l11.3-6.5C87.2,58.2,87.2,56.9,86.3,56.4z M78.9,58l-6,3.4c-0.2,0.1-0.4,0.1-0.6,0l-6-3.5c-0.4-0.2-0.4-0.8,0-1.1l5.8-3.3 c0.4-0.2,0.8-0.2,1.1,0L79,57C79.4,57.2,79.4,57.8,78.9,58z"}),t("path",{d:"M86.6,33.1l-12.3-7.9c-0.8-0.5-1.8-0.5-2.6,0L59,32.3c-1.2,0.7-1.4,2.6-0.2,3.3l11.9,7c1.2,0.7,2.8,0.7,4,0 l11.8-6.4C87.7,35.5,87.7,33.8,86.6,33.1z M78.6,34.9l-5,2.7c-0.5,0.3-1.2,0.3-1.7,0l-5.1-3c-0.5-0.3-0.4-1.1,0.1-1.4l5.4-3 c0.3-0.2,0.8-0.2,1.1,0l5.3,3.4C79.1,33.9,79.1,34.6,78.6,34.9z"}),t("path",{d:"M87.1,52.3l3.5,2.2c0.9,0.7,2.1,0.7,3.1,0.1l3.3-2c0.8-0.5,0.8-1.6,0-2.1l-4-2.5c-0.4-0.2-0.8-0.2-1.2,0 l-4.7,2.6C86.6,50.9,86.5,51.8,87.1,52.3z"}),t("path",{d:"M96.7,46.7l3.4,2.2c0.9,0.6,2.1,0.6,3,0.1l3.6-2.2c0.5-0.3,0.6-1.1,0-1.5l-3.7-2.3c-0.7-0.5-1.7-0.5-2.4,0 l-3.8,2.2C96.2,45.5,96.1,46.3,96.7,46.7z"}),t("path",{d:"M87.6,41l4.2,2.9c0.7,0.5,1.5,0.5,2.2,0l4.3-2.8c0.4-0.3,0.4-0.8,0-1.1l-4.5-2.8c-0.6-0.4-1.3-0.4-1.9,0 l-4.3,2.6C87.2,40.2,87.2,40.7,87.6,41z"})]})]})]})},nH=({width:e,height:i="40px",color:a="#03D69D"})=>t("svg",{id:"WooviLogo","data-testid":"WooviLogo",width:e,height:i,viewBox:"0 0 124 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("g",{id:"Group",children:[t("path",{id:"Vector",d:"M101.243 35.5452C99.1586 35.5452 97.2858 34.3098 96.5084 32.3684L89.4766 15.5312C88.5932 13.4133 90.148 11.1189 92.4095 11.1189C93.7169 11.1189 94.883 11.8955 95.3777 13.1309L101.243 27.709L107.109 13.1309C107.604 11.9308 108.77 11.1189 110.077 11.1189C112.374 11.1189 113.894 13.4486 113.01 15.5312L105.978 32.4037C105.201 34.3098 103.328 35.5452 101.243 35.5452Z",fill:a}),t("path",{id:"Vector_2",d:"M122.833 1.16484C123.575 1.9414 123.964 2.82386 123.964 3.8828C123.964 4.94175 123.575 5.8595 122.833 6.56546C122.091 7.27143 121.137 7.62441 120.042 7.62441C118.911 7.62441 117.957 7.27143 117.215 6.56546C116.473 5.8595 116.12 4.94175 116.12 3.8828C116.12 2.82386 116.508 1.9414 117.25 1.16484C117.992 0.38828 118.946 0 120.042 0C121.137 0 122.091 0.38828 122.833 1.16484ZM116.791 32.3331V14.3664C116.791 12.6015 118.24 11.1542 120.007 11.1542C121.773 11.1542 123.222 12.6015 123.222 14.3664V32.2978C123.222 34.0628 121.773 35.51 120.007 35.51C118.24 35.5453 116.791 34.0981 116.791 32.3331Z",fill:a}),t("g",{id:"Group_2",children:t("path",{id:"Vector_3",d:"M23.8226 35.5453C21.8792 35.5453 20.2184 34.2746 19.7237 32.4391L16.5081 20.5083L13.2572 32.4391C12.7625 34.2746 11.1017 35.5453 9.1936 35.5453C7.32081 35.5453 5.66002 34.3099 5.12998 32.4744L0.112297 14.9665C-0.41774 13.0957 0.995693 11.2249 2.93916 11.2249C4.24659 11.2249 5.41267 12.1073 5.76603 13.378L9.40562 26.5443L12.8332 13.9781C13.2926 12.3544 14.7413 11.2249 16.4374 11.2249C18.1336 11.2249 19.6177 12.3544 20.0417 13.9781L23.4693 26.5443L27.1089 13.378C27.4622 12.1073 28.6283 11.2249 29.9357 11.2249H30.0417C31.9852 11.2249 33.3986 13.0957 32.8686 14.9665L27.8863 32.5097C27.3916 34.3099 25.7308 35.5453 23.8226 35.5453Z",fill:a})}),t("path",{id:"Vector_4",d:"M53.7168 25.6265C55.4482 27.3561 57.0383 28.9446 58.6285 30.533C55.0242 34.9453 50.5366 37.6632 44.5648 36.5337C39.0171 35.4747 35.3775 32.0508 33.9287 26.5443C32.4093 20.7201 35.0948 14.6841 40.2892 11.719C45.4835 8.754 51.9853 9.53056 56.261 13.731C61.0313 18.3904 65.6956 23.1557 70.4306 27.8503C72.8688 30.2506 76.4731 30.533 79.0879 28.5916C82.0208 26.4031 82.5508 22.1673 80.2893 19.3082C77.9925 16.449 73.7522 15.9901 70.996 18.3904C70.0419 19.2023 69.2645 20.2259 68.4518 21.1437C66.685 19.3788 65.0949 17.7903 63.5048 16.2019C67.0031 11.8955 71.42 8.96579 77.9925 10.2718C83.4695 11.3308 87.5332 15.8136 88.4519 21.426C89.3353 26.9326 86.4378 32.6156 81.3847 35.2629C76.2257 37.9456 69.9713 37.0278 65.7663 32.898C61.0666 28.2386 56.4023 23.5439 51.7026 18.8846C49.6885 16.8726 46.8616 16.2725 44.3881 17.4021C41.8793 18.5316 40.5012 20.5083 40.4658 23.2969C40.4305 26.0501 41.7026 28.1327 44.2114 29.2975C46.7556 30.4624 49.1585 30.1094 51.2786 28.2739C52.1973 27.4267 52.9394 26.4737 53.7168 25.6265Z",fill:a})]})}),nF={ACTIVE:"#FF9800",DELETED:"#ff7f50",ACTIVE_WAITING_PAYMENT_METHOD:"#FF9800",EXPIRED:"#ff7f50",OVERDUE:"#e65100",COMPLETED:"#4CAF50",SCHEDULED:"rgb(0 149 255)"},nW=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${nF[e]} !important`,color:"white !important",...r},...i}),nV=({label:e,text:i})=>r(iJ,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[t(V,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof i?t(V,{variant:"h6",sx:{overflowWrap:"anywhere"},children:i}):i]}),nB=({charge:i})=>{let{t:a}=eW();return!i.additionalInfo||i.additionalInfo.length<=0?null:i?.additionalInfo?.length>0?r(e,{children:[t(iJ,{sx:{justifyContent:"center",mb:"18px"},children:t(V,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:a("Additional information")})}),i.additionalInfo?.map(e=>t(nV,{label:e?.key,text:e?.value},e?.key))]}):null};var nj="6.0.2";let nG=({children:e,heading:i,secondaryHeading:a,primaryAction:o,primaryActionLabel:n,primaryActionProps:l,payAsGuestAction:s=null,payAsGuestActionLabel:d=null,payAsGuestActionProps:c=null,secondaryAction:p=null,secondaryActionLabel:m=null,secondaryActionProps:h=null,renderFooter:u=null,isTemp:x=!1,withCard:f=!0})=>{let C=G(),y=()=>r(R,{sx:{gap:2},flexDirection:"column",children:[t(nH,{}),r(R,{sx:{flexDirection:"column",justifyContent:"center"},children:[t(V,{variant:"h5",color:"secondary",align:"center",children:i}),a&&t(V,{color:"secondary",textAlign:"center",children:a})]})]}),b=()=>r(R,{sx:{flexDirection:"column"},children:[r(R,{sx:{flexDirection:"column",gap:1},children:[e,o?t(R,{children:t(ij,{fullWidth:!0,endIcon:t(e1,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:o,...l,children:t(V,{color:"#FFF",fontSize:18,fontWeight:600,children:n})})}):null,s?t(R,{sx:{ml:"-8px"},children:t(ij,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:t(e1,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:s,...c,children:t(V,{color:"#607389",fontSize:18,fontWeight:600,children:d})})}):null,p||m||h?t(R,{sx:{justifyContent:"center"},children:t(ij,{color:"secondary",variant:"none",onClick:p,...h,children:t(V,{color:C?.palette?.primary?.light,fontSize:18,children:m})})}):null]}),t(g,{light:!0}),r(R,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[u&&u(),r(R,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[t(aT,{}),r(V,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:C.palette.grey[400]},children:["(v",nj,")"]})]})]})]});return f?r(iX,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[y(),b()]}):r(R,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[y(),b()]})},nZ={REFUND:"#FF9800",PAYMENT:"#4CAF50",WITHDRAW:"#ff7f50",FEE:"#ff0000",BALANCE_BLOCK:"#ff0000",BALANCE_UNBLOCK:"#4CAF50",INTERNAL_TRANSFER:"#4CAF50",REVERSAL:"#4CAF50"},n$=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${nZ[e]} !important`,color:"white !important",...r},...i}),nU=(e,t)=>{if(e<1)return[];let r=Array(e).fill("");if(t){let i=t.trim().split("");for(let t=0;t<Math.min(e,i.length);t+=1)r[t]=i[t]}return r},nY={number:/^[0-9]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i},nq=ex(({name:e,length:i=6,type:a="alphanumeric",placeholder:o="",manageFocus:n=!0,error:l,disabled:s,autoFocus:d,onComplete:c,onChange:p},m)=>{let[h,u]=eE(-1),{t:x}=eW(),[f,g]=eE(""),[C,y]=eE(null),b=eI([]),v=e=>{let t=a instanceof RegExp?a:a in nY?nY[a]:null;return t?.test(e)},w=(e,t)=>{if(n){if("next"===e){let e=t+1;b.current[e<i?e:t].focus()}if("prev"===e){let e=t-1;b.current[e>-1?e:t].focus()}}},M=(e,t)=>{let r=[...nU(i,f)];r[t]=e;let a=r.join("");g(a),p&&p(a),t===i-1&&(a.length===i&&a.replaceAll(" ","").length===i?y(null):y(x("Code must be {{ size }} digits",{size:i})))},I=()=>{u(-1)},E=e=>{e.preventDefault();let t=e.clipboardData.getData("Text");v(t)&&(g(t),p&&p(t))};return ey(()=>{f.length===i&&c?.(f)},[f]),ey(()=>{e&&g("")},[e]),r(iJ,{sx:{flexDirection:"column"},children:[r(iJ,{sx:{gap:1},ref:m,children:[nU(i,f).map((r,i)=>t(F,{id:`${e}-${i+1}`,name:`${e}-${i}`,inputProps:{"data-testid":`code-input-${i+1}`},inputRef:e=>{b.current[i]=e},onChange:e=>{let t,r;v(r=(t=e.target.value).length>1?t.split("")[t.length-1]:t)?(M(r,i),w("next",i)):M("",i)},onKeyDown:e=>{"Backspace"===e.key&&(""!==e.target.value?M("",i):w("prev",i))},onFocus:e=>{e.target.select(),u(i)},onBlur:I,onPaste:E,error:l,disabled:s,placeholder:h===i?"":o,value:r,autoFocus:d&&0===i,size:"small",sx:{width:"40px"}},`${e}-${i}`)),t("input",{type:"hidden",name:e,value:f})]}),!!C&&t(V,{sx:{fontWeight:"400",fontSize:"0.64rem",paddingLeft:"10px"},color:"error",children:C})]})}),nX=e=>{let{name:r,...i}=e,[a]=ts(r);return t(nq,{...a,...i})},nK="staging",nQ=({sx:e,...r})=>t(a,{sx:{flex:1,margin:"10px",display:"flex",alignItems:"center",justifyContent:"center"},...r}),nJ=({sx:e,...r})=>t(a,{sx:{width:"100%",display:"flex",maxWidth:"500px",alignItems:"center",justifyContent:"center"},...r}),n1=({error:e,resetErrorBoundary:i})=>{let{t:a}=eW(),n=()=>{i&&i(),window.location.href="/login/logout",window.location.reload()};return process.env.NODE_ENV===nK?t(nQ,{children:t(nJ,{children:r(iX,{sx:{padding:"16px"},children:[t(V,{children:a("Error rendering")}),r(V,{children:[t("strong",{children:"Error:"})," ",e.toString()]}),i?t(o,{variant:"outlined",onClick:i,children:"Tentar novamente"}):t(o,{variant:"outlined",onClick:n,children:"Tentar novamente"})]})})}):t(nQ,{children:t(nJ,{children:r(iX,{sx:{padding:"16px"},children:[t(V,{children:a("Oops! an error has occurred")}),i?t(o,{variant:"outlined",onClick:i,children:"Tentar novamente"}):t(o,{variant:"outlined",onClick:n,children:"Tentar novamente"})]})})})},n2=({children:e})=>t(t2,{FallbackComponent:n1,onError:(e,t)=>{},onReset:e=>{window.location.href="/login/logout",window.location.reload()},children:e}),n0=({sx:e,...r})=>t(a,{sx:{display:"flex",fontSize:"14px",fontWeight:"normal",flexDirection:"row",...e},...r}),n3=({title:e,titleLabel:i,subTitle:o,routedTabs:n,routeTo:l,children:s,tagsArray:d,rightComponent:c,middleRightComponent:p})=>r(iq,{children:[r(R,{sx:{mx:1,justifyContent:"center","@media (min-width: 600px)":{mx:2}},children:[r(iJ,{sx:{alignItems:"center",justifyContent:"space-between",position:"sticky",mt:2,mb:2*!(n&&n.length>1),gap:2},children:[r(R,{flexGrow:1,children:[r(R,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e&&t(oD,{title:e,titleLabel:i}),d&&d.length>=1&&t(R,{direction:"row",spacing:1,children:d.map((e,r)=>t(oL,{label:e.label,value:e.value,onClick:e.onClick,sx:t=>({backgroundColor:e.theme&&t.palette[e.theme]?.light?t.palette[e.theme].light:t.palette.warning.main,color:"white"})},r))})]}),o&&t(n0,{children:o}),s&&t(a,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexGrow:1,flexWrap:"wrap",alignItems:"center",rowGap:"5px"},children:s})]}),p&&t(a,{sx:{marginRight:"10px",alignSelf:"center",justifyContent:"center",zIndex:1,"@media (max-width: 600px)":{display:"none"}},children:p}),c&&t(iJ,{sx:{alignItems:"center",justifyContent:"center"},children:c})]}),p&&t(a,{sx:{width:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",zIndex:1,"@media (min-width: 600px)":{display:"none"}},children:p})]}),n&&t(oE,{routes:n,routeTo:l})]}),n4=({clearAll:i,selectAll:a,selectedAll:o,edges:n,selectedCount:l})=>{let{t:s}=eW();return o?r(e,{children:[t(V,{sx:{display:"flex",fontSize:"0.875rem",lineHeight:"18px",fontWeight:"bold",alignItems:"center",borderRight:"1px solid #607389",marginRight:"5px",paddingRight:"15px"},children:s("{{count}} selected",{count:l})}),t(ij,{variant:"text",color:"primary",onClick:i,children:s("Clear Selection")})]}):t(ij,{variant:"text",color:"primary",onClick:()=>a(n),children:s("Select all")})},n5=e=>e.map(({link:e})=>e).reduce((e,t)=>t?[...e,t]:e,[]),n6=({link:e,label:r,isMobile:i,disabled:a=!1})=>{let o=en(),{sidebarClose:n}=oo(),l=!!ea(o.pathname,{path:e,exact:!0}),s=ew(()=>ex((r,i)=>t(er,{to:e,ref:i,...r})),[e]);return t(S,{dense:!0,component:s,onClick:()=>{!a&&i&&n()},disableGutters:!0,selected:l,disabled:a,sx:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer","&:hover":{backgroundColor:a?"transparent":void 0}},children:t(k,{primary:r,sx:a?{"& .MuiTypography-root":{color:"text.disabled"}}:void 0})})},n9=i=>{let{link:a,label:o,icon:n,items:l,isMobile:s,newChip:d,notificationCounter:c,disabled:m=!1,requiredRoles:h}=i,{t:u}=eW(),x=en(),{sidebarClose:f}=oo(),[g,C]=eE(!1),{width:y}=t_(),b=s?"8px":"4px",v=(({link:e,location:t,items:r})=>{let i;if((i="function"==typeof e?e():e)&&"string"==typeof i){let e=(e=>{let[t]=e.split("/").filter(Boolean);return t?`/${t}`:"/"})(t.pathname);return oM(t,{path:i,exact:"/home"===i||"/console"===i||i===e})}return n5(r||[]).map(e=>oM(t,{path:e,exact:!1})).reduce((e,t)=>e||t,!1)})({link:a,location:x,items:l}),w=()=>!!c&&!!(c>0);if(ew(()=>ex((e,r)=>t(er,{to:a===window.location.pathname?`${a}${window.location.search}`:a,ref:r,...e})),[a]),a){let e=h?.filter(e=>!e.includes("ADMIN"))||[];return t(W,{title:e.length>0?e.join(", "):"",children:t(er,{to:a,onClick:e=>{if(m){e.preventDefault(),e.stopPropagation();return}s&&f()},style:{textDecoration:"none",color:"text.primary"},children:r(S,{button:!0,disableRipple:!1,selected:v,disabled:m,sx:{paddingTop:b,paddingBottom:b,cursor:m?"not-allowed":"pointer","&:hover":{backgroundColor:e=>X(e.palette.secondary.main,.9)},"& .MuiTouchRipple-root":{color:e=>e.palette.secondary.main}},children:[n&&t(A,{sx:m?{color:"text.disabled"}:void 0,children:n}),r(iJ,{sx:{alignItems:"center",gap:1},children:[t(k,{primary:o,sx:{"& .MuiTypography-root":{color:m?"text.disabled":"text.primary"}}}),d&&t(oL,{label:u("New"),size:"small",color:"primary"}),w()&&c&&t(oL,{label:c.toString(),size:"small",color:"error"})]})]})})})}return r(e,{children:[r(S,{button:!0,disableRipple:!1,onClick:()=>{m||C(!g)},selected:v,disabled:m,sx:{paddingTop:b,paddingBottom:b,cursor:m?"not-allowed":"pointer","&:hover":{backgroundColor:e=>X(e.palette.secondary.main,.9)},"& .MuiTouchRipple-root":{color:e=>e.palette.secondary.main}},children:[n&&t(A,{sx:m?{color:"text.disabled"}:void 0,children:n}),r(iJ,{sx:{alignItems:"center",gap:1},children:[t(k,{primary:o,sx:{"& .MuiTypography-root":{color:m?"text.disabled":void 0}}}),d&&t(oL,{label:u("New"),size:"small",color:"primary"}),w()&&c&&t(oL,{label:c.toString(),size:"small",color:"error"})]})]}),l&&!!l.length&&t(p,{in:g,children:t(E,{component:"div",disablePadding:!0,children:l.map((e,r)=>t(n6,{link:e.link,label:e.label,isMobile:s,disabled:e.disabled},r))})})]})},n7=j(E)({paddingTop:0,paddingBottom:"20px",transition:"width 200ms ease-out",overflowY:"auto",overflowX:"hidden","& .Mui-selected":{fontWeight:600},"& .MuiListItemIcon-root":{minWidth:"30px"},"& .MuiCollapse-root .MuiListItem-root":{paddingLeft:"52px"},"& .MuiTypography-root":{fontWeight:"inherit"},"& .MuiList-root a":{paddingLeft:"52px"}}),n8=(e,i)=>e.map((e,a)=>{let{items:o,link:n,label:l,icon:s,separator:d,newChip:c,notificationCounter:p,disabled:m,requiredRoles:h}=e;return d?r(em,{children:[t(S,{children:t(k,{primary:l})}),o&&n8(o,i)]},l||a):t(n9,{label:l,icon:s,link:n,items:o,isMobile:i,newChip:c,notificationCounter:p,disabled:m,requiredRoles:h},l||a)}),le=({items:e})=>{let{width:r=1024}=t_();return t(n7,{children:n8(e,r<600)})},lt={sx:{width:"240px"}},lr=({items:e,header:i})=>{let{isSidebarOpen:o,sidebarClose:n}=oo();return r(C,{variant:t0(e=>e.breakpoints.down("lg"))?"temporary":"persistent",open:o,onClose:n,PaperProps:lt,children:[i&&t(a,{sx:{display:"flex",alignItems:"center",flexGrow:0,flexShrink:0,flexBasis:"auto",height:"60px",justifyContent:"center"},children:i}),t(g,{}),t(le,{items:e})]})},li=({key:e})=>{let{closeSnackbar:r}=t3();return t(o,{onClick:()=>r(e),"aria-label":"Close snackbar",sx:{cursor:"pointer",backgroundColor:"rgba(0, 0, 0, 0.08)",border:"none",color:"inherit",padding:"4px 4px",maxWidth:"24px",maxHeight:"24px",minWidth:"auto","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.26)"}},children:t(e3,{sx:{fontSize:e=>e.spacing(3)}})})},la=eh({showSnackbar:e=>{}}),lo=({handleClose:e})=>t(tm,{"aria-label":"Close",color:"primary",onClick:e,size:"large",children:t(tc,{})},"close"),ln=ec.forwardRef(({handleClose:e,message:r,action:i},a)=>t(t5,{sx:{backgroundColor:"#fff",color:"#000",marginBottom:"45px"},message:r,ref:a,action:i||t(lo,{handleClose:e})})),ll=({children:e})=>{let i=(e,t)=>{"clickaway"!==t&&o("")},[a,o]=eE(""),[n,l]=eE(t(lo,{handleClose:i})),[s,d]=eE(8e3),[c,p]=eE(null);return r(la.Provider,{value:{showSnackbar:({message:e,action:r=t(lo,{handleClose:i}),duration:a=4e3,onActionClick:n=null})=>{o(e),l(r),d(a),p(n)}},children:[t(t4,{open:!!a,autoHideDuration:s,onClose:i,children:t(ln,{handleClose:c||i,message:a,action:n})}),e]})},ls=()=>({showSnackbar:eC(la).showSnackbar}),ld=K(_)(()=>({marginLeft:19,padding:0})),lc=K("div")(({ownerState:e})=>({backgroundColor:"#d4f8ee",fontSize:"18px",zIndex:1,color:"#03D69D",width:40,height:40,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center",...e.active&&{backgroundColor:"#03d69d",color:"#fff"},...e.completed&&{backgroundColor:"#03d69d",color:"#fff"}})),lp=e=>{let{active:t,completed:i,className:a,icon:o}=e;return r(lc,{ownerState:{completed:i,active:t},className:a,children:[o,"\xba"]})},lm=({steps:e,orientation:r="vertical"})=>{let[i,a]=eE(0);return t(N,{activeStep:i,orientation:r,connector:t(ld,{}),children:e.map((e,r)=>t(L,{children:t(P,{StepIconComponent:lp,children:e.label})},r))})},lh={SUCCESS:"#4CAF50",PENDING:"#FF9800",FAILED:"#EF5350",NOT_APPLY:"#EF5350"},lu=({webhookStatus:e,sx:r,...i})=>t(oL,{sx:{color:"white !important",backgroundColor:`${lh[e]} !important`,...r},...i}),lx=({sx:e,...r})=>t(V,{component:"p",sx:{fontSize:"14px",textAlign:"center",whiteSpace:"pre-line",color:e=>e.palette.primary.dark,...e},...r}),lf=({sx:e,...r})=>t(I,{component:"a",sx:{fontWeight:600,cursor:"pointer",color:e=>e.palette.primary.main,...e},...r}),lg=()=>({title:"Termos de Uso e Politica de Privacidade",content:`
|
|
3
3
|
Este documento informa as responsabilidades, deveres e obriga\xe7\xf5es que todo usu\xe1rio assume ao acessar e/ou utilizar a plataforma OpenPix e seus servi\xe7os relacionados, como softwares, complementos, plug-ins, e acess\xf3rios. Informar\xe1 tamb\xe9m sobre a LGPD e compartilhamento de informa\xe7\xf5es pessoais. \xc9 importante que voc\xea leia as orienta\xe7\xf5es abaixo para usufruir da melhor maneira os servi\xe7os disponibilizados:
|
|
4
4
|
|
|
5
5
|
1. NOSSOS SERVI\xc7OS
|
|
@@ -256,4 +256,4 @@ A aceita\xe7\xe3o deste termo ser\xe1 feita quando voc\xea se cadastrar em nossa
|
|
|
256
256
|
|
|
257
257
|
.cls-52 {
|
|
258
258
|
isolation: isolate;
|
|
259
|
-
}`}),t("clipPath",{id:"clippath",children:t("rect",{className:"cls-2",x:"-176.26",y:"-1848",width:"1995.52",height:"1126"})}),r("linearGradient",{id:"linear-gradient",x1:"840.33",y1:"-947.8",x2:"1082.58",y2:"-154.2",gradientUnits:"userSpaceOnUse",children:[t("stop",{offset:"0",stopColor:"#fff"}),t("stop",{offset:".97",stopColor:"#000"})]}),t("mask",{id:"mask",x:"-196.74",y:"-2008.25",width:"2088.26",height:"3023.19",maskUnits:"userSpaceOnUse",children:t("rect",{className:"cls-3",x:"-196.74",y:"-2008.25",width:"2088.26",height:"2167.16"})}),r("linearGradient",{id:"linear-gradient-2",x1:"10923.5",y1:"-1899.63",x2:"12869.89",y2:"493.68",gradientTransform:"translate(12906.88) rotate(-180) scale(1 -1)",gradientUnits:"userSpaceOnUse",children:[t("stop",{offset:"0",stopColor:"#fff"}),t("stop",{offset:".23",stopColor:"#606060"}),t("stop",{offset:".52",stopColor:"#fff"}),t("stop",{offset:".77",stopColor:"#000"}),t("stop",{offset:".97",stopColor:"#fff"})]}),t("linearGradient",{id:"linear-gradient-3",x1:"11262.65",y1:"-2175.45",x2:"13209.04",y2:"217.86",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-4",x1:"11202.09",y1:"-2126.2",x2:"13148.48",y2:"267.11",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-5",x1:"11141.68",y1:"-2077.07",x2:"13088.07",y2:"316.24",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-6",x1:"11020.71",y1:"-1978.7",x2:"12967.1",y2:"414.61",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-7",x1:"11020.71",y1:"-1978.7",x2:"12967.1",y2:"414.61",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-8",x1:"10899.74",y1:"-1880.32",x2:"12846.13",y2:"512.99",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-9",x1:"10899.74",y1:"-1880.31",x2:"12846.13",y2:"512.99",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-10",x1:"11113.9",y1:"-2054.49",x2:"13060.3",y2:"338.82",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-11",x1:"11113.9",y1:"-2054.49",x2:"13060.3",y2:"338.82",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-12",x1:"10992.94",y1:"-1956.11",x2:"12939.33",y2:"437.2",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-13",x1:"10992.94",y1:"-1956.11",x2:"12939.33",y2:"437.2",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-14",x1:"10871.97",y1:"-1857.73",x2:"12818.36",y2:"535.58",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-15",x1:"10871.97",y1:"-1857.73",x2:"12818.36",y2:"535.58",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-16",x1:"10751",y1:"-1759.35",x2:"12697.39",y2:"633.96",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-17",x1:"10965.16",y1:"-1933.52",x2:"12911.55",y2:"459.79",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-18",x1:"10965.26",y1:"-1933.6",x2:"12911.65",y2:"459.71",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-19",x1:"10844.19",y1:"-1835.14",x2:"12790.58",y2:"558.17",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-20",x1:"10844.19",y1:"-1835.14",x2:"12790.58",y2:"558.17",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-21",x1:"10723.22",y1:"-1736.76",x2:"12669.61",y2:"656.55",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-22",x1:"10762.45",y1:"-1768.66",x2:"12708.84",y2:"624.65",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-23",x1:"10602.25",y1:"-1638.38",x2:"12548.65",y2:"754.93",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-24",x1:"10641.48",y1:"-1670.28",x2:"12587.87",y2:"723.03",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-25",x1:"10816.42",y1:"-1812.55",x2:"12762.81",y2:"580.76",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-26",x1:"10695.45",y1:"-1714.17",x2:"12641.84",y2:"679.14",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-27",x1:"10695.45",y1:"-1714.17",x2:"12641.84",y2:"679.14",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-28",x1:"10695.45",y1:"-1714.17",x2:"12641.84",y2:"679.14",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-29",x1:"10574.48",y1:"-1615.79",x2:"12520.87",y2:"777.52",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-30",x1:"10453.51",y1:"-1517.41",x2:"12399.9",y2:"875.9",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-31",x1:"10492.74",y1:"-1549.31",x2:"12439.13",y2:"844",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-32",x1:"10667.67",y1:"-1691.58",x2:"12614.06",y2:"701.73",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-33",x1:"10546.7",y1:"-1593.2",x2:"12493.09",y2:"800.11",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-34",x1:"10425.73",y1:"-1494.82",x2:"12372.12",y2:"898.49",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-35",x1:"10304.76",y1:"-1396.44",x2:"12251.16",y2:"996.87",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-36",x1:"10778.77",y1:"-1781.94",x2:"12725.17",y2:"611.37",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-37",x1:"10630.03",y1:"-1660.97",x2:"12576.42",y2:"732.34",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-38",x1:"10481.29",y1:"-1540",x2:"12427.68",y2:"853.31",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-39",x1:"10481.29",y1:"-1540",x2:"12427.68",y2:"853.31",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-40",x1:"10332.54",y1:"-1419.03",x2:"12278.93",y2:"974.28",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-41",x1:"10183.8",y1:"-1298.06",x2:"12130.19",y2:"1095.25",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-42",x1:"10183.8",y1:"-1298.06",x2:"12130.19",y2:"1095.25",xlinkHref:"#linear-gradient-2"})]}),t("g",{className:"cls-52",children:r("g",{id:"Layer_1","data-name":"Layer 1",children:[r("g",{className:"cls-1",children:[t("rect",{className:"cls-38",x:"-268.24",y:"-2057.56",width:"2179.48",height:"2179.48"}),t("g",{className:"cls-50",children:r("g",{className:"cls-51",children:[t("path",{className:"cls-43",d:"M-168.37-1954.76h1979.46s0,2967.96,0,2967.96H-168.37s0-2967.96,0-2967.96ZM1808.62-1952.3H-165.91V1010.73h1974.53V-1952.3Z"}),r("g",{children:[t("path",{className:"cls-44",d:"M-168.37-224.89H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75-222.43h-244.66V22.23H78.75v-244.66Z"}),t("path",{className:"cls-42",d:"M81.22-226.64V24.7s-251.33,0-251.33,0L81.22-226.64ZM78.75-220.68L-164.16,22.23H78.75v-242.92Z"}),t("path",{className:"cls-48",d:"M-168.37,22.23H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,24.7h-244.66v244.66H78.75V24.7Z"}),t("path",{className:"cls-49",d:"M-168.37,269.36H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,271.82h-244.66v244.66H78.75v-244.66Z"}),t("path",{className:"cls-47",d:"M-113.5,394.15c0-38.56,31.37-69.93,69.93-69.93,38.56,0,69.93,31.37,69.93,69.93,0,38.56-31.37,69.93-69.93,69.93s-69.93-31.37-69.93-69.93ZM-111.04,394.15c0,37.2,30.26,67.46,67.46,67.46,37.2,0,67.46-30.26,67.46-67.46,0-37.2-30.26-67.46-67.46-67.46-37.2,0-67.46,30.26-67.46,67.46Z"}),t("path",{className:"cls-45",d:"M-168.37,516.48H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,518.95h-244.66v244.66H78.75v-244.66Z"}),t("path",{className:"cls-46",d:"M-168.37,516.48h1.23c136.94,0,248.36,111.41,248.36,248.36v1.23s-249.59,0-249.59,0v-249.59ZM-165.91,518.95v244.66H78.75c-.67-134.6-110.05-243.99-244.66-244.66Z"}),t("path",{className:"cls-21",d:"M78.75-224.89h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88-222.43H81.22V22.23h244.66v-244.66Z"}),t("path",{className:"cls-18",d:"M78.75-224.89h1.23c136.94,0,248.36,111.41,248.36,248.36v1.23s-249.59,0-249.59,0v-249.59ZM81.22-222.43V22.23h244.66c-.67-134.6-110.05-243.99-244.66-244.66Z"}),t("path",{className:"cls-19",d:"M78.75,22.23h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,24.7H81.22v244.66h244.66V24.7Z"}),t("path",{className:"cls-20",d:"M78.75,22.23h1.23c136.94,0,248.36,111.41,248.36,248.36v1.23s-249.59,0-249.59,0V22.23ZM81.22,24.7v244.66h244.66c-.67-134.6-110.05-243.99-244.66-244.66Z"}),t("path",{className:"cls-29",d:"M78.75,269.36h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,271.82H81.22v244.66h244.66v-244.66Z"}),t("path",{className:"cls-25",d:"M78.75,270.59v-1.23s249.59,0,249.59,0v249.59s-1.23,0-1.23,0c-136.94,0-248.36-111.41-248.36-248.36ZM81.22,271.82c.67,134.6,110.05,243.99,244.66,244.66v-244.66H81.22Z"}),t("path",{className:"cls-23",d:"M78.75,516.48h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,518.95H81.22v244.66h244.66v-244.66Z"}),t("path",{className:"cls-22",d:"M325.88-224.89h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573-222.43h-244.66V22.23h244.66v-244.66Z"}),t("path",{className:"cls-28",d:"M324.13-224.89h251.33s0,251.33,0,251.33l-251.33-251.33ZM330.08-222.43L573,20.49v-242.92h-242.91Z"}),t("path",{className:"cls-24",d:"M325.88,22.23h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,24.7h-244.66v244.66h244.66V24.7Z"}),t("path",{className:"cls-31",d:"M387.14,147.03c0-35.03,28.5-63.53,63.53-63.53,35.03,0,63.53,28.5,63.53,63.53,0,35.03-28.5,63.53-63.53,63.53-35.03,0-63.53-28.5-63.53-63.53ZM389.61,147.03c0,33.67,27.39,61.06,61.06,61.06,33.67,0,61.06-27.39,61.06-61.06,0-33.67-27.39-61.06-61.06-61.06-33.67,0-61.06,27.39-61.06,61.06Z"}),t("path",{className:"cls-27",d:"M325.88,269.36h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,271.82h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-30",d:"M325.88,269.36h249.59s0,1.23,0,1.23c0,136.94-111.41,248.36-248.36,248.36h-1.23s0-249.59,0-249.59ZM328.34,271.82v244.66c134.6-.67,243.99-110.05,244.66-244.66h-244.66Z"}),t("path",{className:"cls-26",d:"M325.88,516.48h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,518.95h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-33",d:"M325.88,516.48h249.59v1.24c0,136.94-111.41,248.36-248.36,248.36h-1.23s0-249.59,0-249.59ZM328.34,518.95v244.66c134.6-.67,243.99-110.06,244.66-244.66h-244.66Z"}),t("path",{className:"cls-17",d:"M573-224.89h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12-222.43h-244.66V22.23h244.66v-244.66Z"}),t("path",{className:"cls-34",d:"M573,22.23h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,24.7h-244.66v244.66h244.66V24.7Z"}),r("g",{children:[t("path",{className:"cls-32",d:"M609.24,147.03c0-48.83,39.72-88.55,88.56-88.55,48.83,0,88.56,39.72,88.56,88.55,0,48.83-39.72,88.56-88.56,88.56-48.83,0-88.56-39.72-88.56-88.56ZM611.71,147.03c0,47.47,38.62,86.09,86.09,86.09,47.47,0,86.09-38.62,86.09-86.09,0-47.47-38.62-86.09-86.09-86.09s-86.09,38.62-86.09,86.09Z"}),t("path",{className:"cls-16",d:"M661.67,147.03c0-19.92,16.21-36.13,36.13-36.13,19.92,0,36.13,16.21,36.13,36.13,0,19.92-16.21,36.13-36.13,36.13s-36.13-16.21-36.13-36.13ZM664.14,147.03c0,18.56,15.1,33.66,33.66,33.66s33.66-15.1,33.66-33.66c0-18.56-15.1-33.66-33.66-33.66s-33.66,15.1-33.66,33.66Z"})]}),t("path",{className:"cls-7",d:"M573,269.36h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,271.82h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-9",d:"M573,516.48h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,518.95h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-10",d:"M573,516.48h249.59v1.24c0,136.94-111.41,248.36-248.36,248.36h-1.23s0-249.59,0-249.59ZM575.46,518.95v244.66c134.6-.67,243.99-110.06,244.66-244.66h-244.66Z"}),t("path",{className:"cls-8",d:"M820.12-224.89h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25-222.43h-244.66V22.23h244.66v-244.66Z"}),t("path",{className:"cls-6",d:"M820.12,22.23h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,24.7h-244.66v244.66h244.66V24.7Z"}),t("path",{className:"cls-13",d:"M820.12,269.36h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,271.82h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-15",d:"M820.12,516.48h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,518.95h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-11",d:"M-168.37,763.61H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,766.07h-244.66v244.66H78.75v-244.66Z"}),t("path",{className:"cls-14",d:"M78.75,763.61h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,766.07H81.22v244.66h244.66v-244.66Z"}),t("path",{className:"cls-5",d:"M325.88,763.61h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,766.07h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-12",d:"M371.2,888.4c0-43.82,35.65-79.47,79.47-79.47s79.47,35.65,79.47,79.47c0,43.82-35.65,79.47-79.47,79.47-43.82,0-79.47-35.65-79.47-79.47ZM373.67,888.4c0,42.46,34.55,77.01,77.01,77.01,42.46,0,77-34.55,77-77.01,0-42.46-34.54-77-77-77-42.46,0-77.01,34.54-77.01,77Z"}),t("path",{className:"cls-36",d:"M573,763.61h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,766.07h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-37",d:"M820.12,763.61h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,766.07h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-35",d:"M820.12,764.84v-1.23s249.59,0,249.59,0v249.59s-1.23,0-1.23,0c-136.94,0-248.36-111.41-248.36-248.36ZM822.59,766.07c.67,134.6,110.05,243.99,244.66,244.66v-244.66h-244.66Z"})]})]})})]}),r("g",{children:[t("path",{className:"cls-40",d:"M282.48,297c.09,1.75.24,3.49.24,5.24.01,95.99.01,191.97.01,287.96,0,16.31-9.03,25.43-25.41,25.56-9.41.08-18.83-.26-28.23.08-17.35.63-30-6.69-38.61-21.59-12.9-22.35-24.45-45.42-36.61-68.16-21.08-39.45-42.03-78.98-62.81-118.59-7.25-13.81-13.55-28.09-19.35-42.58-.52-1.3-1.17-2.55-1.5-3.25,0,9.89-.41,20.24.11,30.56.63,12.43.65,24.85.67,37.27.09,57.24.04,114.48.04,171.72,0,9.71-1.92,12.54-11.62,14.16-12.49,2.09-25.13,2.07-37.64.06-9.43-1.52-11.31-4.21-11.31-13.8,0-96.31,0-192.61,0-288.92,0-1.75.02-3.51.1-5.26.58-13.61,8.78-22.02,22.41-22.15,16.42-.15,32.85-.49,49.28.31,15.88,2.77,24.26,13.93,30.66,27.34,1.23,2.58,2.77,5.02,4.1,7.56,35.09,66.62,70.72,132.95,104.97,200.01.49.96.74,2.14,2.44,1.93,1.29-4.22-.17-8.45-.21-12.65-.34-34.41.32-68.82-.85-103.23-.63-18.31-.19-36.66-.24-54.99.7-.3,1.39-.79,2.12-.87,18.9-2.07,33.63-11.18,44.99-26.23,6.22-8.25,9.57-17.69,12.25-27.48Z"}),t("path",{className:"cls-40",d:"M728.6,568.8c-23.03,35.98-58.01,49.27-98.62,51.84-27.48,1.74-53.96-2.48-79.27-13.48-1.6-.7-3.14-1.56-4.74-2.26-12.22-5.35-19.97-13.78-20.02-27.93-.03-9.22-.69-18.45,1.4-27.57,2.24-9.8,7.16-12.17,15.78-6.99,8.48,5.1,17.01,10.04,26.1,13.97,20,8.65,40.81,12.54,62.51,9.61,14.54-1.97,27.88-7.17,35.09-21.01,9.46-18.17,6.96-36.48-12.69-50.6-11.74-8.44-25-13.94-38.08-19.78-16.3-7.28-32.65-14.53-47.08-25.23-28.11-20.85-39.38-48.89-37.08-83.63,2.66-40.17,29.54-71.6,71.7-81.92,34.69-8.49,68.58-5.85,101.42,8.46,2.76,1.2,5.4,2.72,8.02,4.23,4.84,2.8,7.73,6.96,8.53,12.56,1.75,12.21,1.8,24.42-.35,36.58-1.46,8.29-5.76,10.39-13.28,6.59-6.11-3.09-12.02-6.59-18.22-9.47-18.37-8.53-37.42-13.11-57.93-10.32-23.43,3.19-37.62,24.35-30.08,45.65,2.77,7.81,8.34,13.49,14.8,18.33,13.02,9.76,28.23,15.3,42.86,21.93,17.86,8.09,35.67,16.23,50.99,28.84,7.44,6.13,13.19,13.7,19.08,21.19,0,.33,0,.66,0,.99-.38.29-.93.49-1.1.87-5.17,11.49-8.89,23.43-9.22,36.09-.33,12.68-1.07,25.49,1.97,37.94,1.89,7.73,2.84,15.9,7.62,22.71-.03.61-.06,1.22-.1,1.83Z"}),t("path",{className:"cls-40",d:"M327.57,454.14c0-49.27,0-98.55,0-147.82,0-10.88,3.41-16.66,11.6-19.9,3.03-1.2,6.21-1.37,9.4-1.37,50.73,0,101.45.04,152.18-.07,5.11-.01,8.11,2.06,9.66,6.73,2.92,8.8,2.72,17.88,2.23,26.93-.27,4.88-.11,9.83-2.14,14.55-1.99,4.6-4.76,6.89-10.13,6.86-33.34-.19-66.68-.01-100.02-.2-4.22-.02-5.31,1.03-5.27,5.26.21,26.15.23,52.3-.01,78.45-.04,4.64,1.53,5.41,5.69,5.39,31.11-.16,62.21-.09,93.32-.08,6.29,0,8.38,1.16,10.11,7.19,2.44,8.49,2.64,17.28,1.85,26.04-.43,4.71-.38,9.49-2.32,14.05-1.91,4.51-4.71,6.66-9.79,6.63-31.27-.13-62.53,0-93.8-.16-3.92-.02-5.06.89-5.04,4.94.16,38.27.1,76.54.09,114.81,0,7.6-1.59,10.25-8.94,11.9-16.38,3.67-32.93,3.59-49.33.2-7.86-1.63-9.33-4.26-9.33-12.5,0-49.27,0-98.55,0-147.82Z"}),t("path",{className:"cls-41",d:"M728.6,568.8c.03-.61.06-1.22.1-1.83,1.56-.81,1.99-2.44,2.7-3.82,8.03-15.69,9.96-32.44,9.89-49.87-.07-15.89-3.76-30.39-11.85-43.92,0-.33,0-.66,0-.99,10.5-21.54,27.43-35.93,50.2-42.59,23.52-6.88,46.97-6.26,69.17,5.48,19.31,10.2,30.6,26.8,36.47,47.42,3.08,10.83,3.48,21.94,3.17,33.1-.18,6.62-2.32,8.7-9.16,8.72-15.79.05-31.59.08-47.38-.04-2.76-.02-4.68.76-6.68,2.68-8.64,8.29-22.1,7.76-29.89-.96-7.61-8.51-6.64-21.95,2.13-29.5,8.89-7.65,22.3-6.32,29.63,3.27,1.9,2.49,3.8,3.26,6.74,3.19,6.85-.18,13.72-.18,20.58,0,2.81.07,3.58-.96,3.39-3.58-1.98-28.38-19.16-49.08-50.14-48.66-31.24.43-46.88,20.39-52.53,44.93-4.79,20.78-3.9,41.55,3.24,61.52,9.13,25.54,27.02,37.5,54.14,38.05,12.84.26,24.92-2.64,36.41-8.33,2.96-1.47,5.05-3.31,6.56-6.37,3.68-7.45,11.22-11.04,19.48-9.86,7.36,1.05,13.85,7.31,15.19,14.65,1.51,8.29-1.87,15.89-8.96,19.97-1.23.71-2.61,1.65-3.92,1.65-10.47-.04-18.71,6.48-28.19,9.34-27.56,8.3-54.86,9.34-81.54-3.23-17.09-8.06-29.18-21.24-37.56-38-.42-.83-.94-1.61-1.41-2.42Z"}),t("path",{className:"cls-4",d:"M223.13,351.58c.05,18.33-.39,36.68.24,54.99,1.18,34.41.51,68.82.85,103.23.04,4.2,1.5,8.43.21,12.65-1.7.21-1.95-.97-2.44-1.93-34.25-67.06-69.88-133.39-104.97-200.01-1.34-2.54-2.87-4.97-4.1-7.56-6.41-13.41-14.78-24.57-30.66-27.34,22.97-.26,45.93-.53,68.9-.79.54,27.77,13.34,47.91,38.02,60.45,10.64,5.41,22.2,6.56,33.95,6.3Z"}),t("path",{className:"cls-41",d:"M223.13,351.58c-11.76.26-23.31-.89-33.95-6.3-24.68-12.54-37.48-32.68-38.02-60.45,23.39-.07,46.78-.17,70.18-.2,19.08-.02,38.16-.71,57.25-.13,4,.12,4.95,1.24,4.34,4.9-.42,2.49-.31,5.07-.44,7.61-2.68,9.78-6.03,19.23-12.25,27.48-11.36,15.05-26.09,24.16-44.99,26.23-.73.08-1.41.57-2.12.87Z"}),t("path",{className:"cls-39",d:"M729.44,469.37c8.09,13.52,11.78,28.03,11.85,43.92.07,17.43-1.86,34.18-9.89,49.87-.71,1.39-1.14,3.02-2.7,3.82-4.78-6.81-5.73-14.98-7.62-22.71-3.04-12.45-2.3-25.26-1.97-37.94.33-12.66,4.05-24.6,9.22-36.09.17-.38.73-.58,1.1-.87Z"})]})]})})]}),sD=({size:e,color:r,viewBox:i})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:i,color:r,children:t("path",{d:"M10.25 2.24a5.79 5.79 0 0 0-4 1.63 4.48 4.48 0 1 0 0 8.26 5.76 5.76 0 1 0 4-9.89zm0 10.24A4.49 4.49 0 0 1 5.76 8H4.48a5.74 5.74 0 0 0 .89 3.07 3.29 3.29 0 0 1-.88.13 3.2 3.2 0 0 1 0-6.4A3.2 3.2 0 0 1 7.69 8H9a4.42 4.42 0 0 0-1.63-3.43 4.48 4.48 0 1 1 2.88 7.91z"})});sD.defaultProps={viewBox:"0 0 16 16",color:"#2B3356",size:24};let sR=sD,sL=({width:e="8",viewBox:r="0 0 11 11"})=>t("svg",{width:e,height:e,viewBox:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M10 1L1 10M10 8.5L10 1L2.5 1",stroke:"#133A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),s_=({size:e,viewBox:i})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",style:{enableBackground:`new ${i}`},viewBox:i,height:e,children:[t("path",{d:"M269.9 197.9 220.3 229l-105.8 41.5h-14.1L188 55l14.5 11.1 66.6 99.3z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#ff3600"}}),t("path",{d:"m188 55-2.8-12.6L110 11.3 78.9 37.2 10.7 216.4l5.2 19.3 20 15.5 37 14.1 27.5 5.2z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#0063ff"}}),t("path",{d:"M114.7 3.6c-5.3-.2-10.5.8-15.4 2.7-4.9 1.9-9.4 4.8-13.1 8.5-3.7 3.7-6.7 8.1-8.7 13L6.4 203.9c-3.7 9.1-3.7 19.4-.1 28.5C10 241.6 17 249 26 253.1l44.2 20.4c8.6 4 18 6.1 27.5 6.3s18.9-1.6 27.7-5.2L256 220.8c2.9-1.2 5.6-2.7 8.1-4.6 1.9-1.4 3.8-3 5.4-4.8 3.8-4.1 6.7-8.9 8.4-14.1 1.7-5.3 2.3-10.8 1.7-16.3-.6-5.5-2.4-10.8-5.3-15.5L208.1 56.1c-7-11.6-17.4-20.8-29.7-26.5L129.9 7.2c-4.8-2.2-9.9-3.4-15.2-3.6zM106 23.4c2.6-1 5.4-1.5 8.1-1.4 2.8.1 5.5.7 8 1.9l48.4 22.4c2.9 1.3 5.6 2.9 8.2 4.7l-85 210.1c-5.5-.6-10.8-2.1-15.8-4.4l-44.2-20.4c-4.7-2.2-8.4-6.1-10.3-10.8-1.9-4.7-1.9-10 0-14.8l71.2-176c1-2.5 2.6-4.8 4.5-6.8 2-1.9 4.3-3.5 6.9-4.5zm8.5 235.6 78.1-193 66 108.9c1.1 1.7 1.8 3.6 2.3 5.6.2.8.3 1.6.4 2.5.3 2.9 0 5.7-.9 8.5-.9 2.7-2.4 5.2-4.4 7.4a20.5 20.5 0 0 1-5 3.9c-.7.4-1.4.7-2.1 1l-130.6 53.9c-1.2.5-2.5.9-3.8 1.3z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#010005"}})]});s_.defaultProps={viewBox:"0 0 283.5 283.5",size:24};let sP=s_,sN=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"Layer_1",x:0,y:0,width:e.size,height:e.size,viewBox:"0 0 393 393",...e,children:[t("style",{children:".st1{fill:#fff}"}),t("path",{d:"M331.4 393H61.6C27.6 393 0 365.5 0 331.4V61.6C0 27.6 27.6 0 61.6 0h269.9c34 0 61.6 27.6 61.6 61.6v269.9c-.1 34-27.6 61.5-61.7 61.5z",style:{fill:e.color}}),t("path",{d:"m131.8 204.8 43.4-43.4c5.7-5.7 5.7-15 0-20.7l-13-13c-5.7-5.7-15-5.7-20.7 0l-34.8 34.8-34.8-34.8c-5.7-5.7-15-5.7-20.7 0l-13 13c-5.7 5.7-5.7 15 0 20.7l43.4 43.4c.5.7 1 1.4 1.6 2l13 13c2.9 2.9 6.7 4.3 10.5 4.3s7.6-1.4 10.5-4.3l13-13c.6-.6 1.2-1.3 1.6-2M258.5 146.7l-13-13c-5.7-5.7-15-5.7-20.7 0L127 231.5c-5.7 5.7-5.7 15 0 20.7l13 13c5.7 5.7 15 5.7 20.7 0l97.8-97.8c5.7-5.7 5.7-14.9 0-20.7M354.9 231.6l-43.4-43.4c-.5-.7-1-1.4-1.6-2l-13-13c-2.9-2.9-6.7-4.3-10.5-4.3s-7.6 1.4-10.5 4.3l-13 13c-.6.6-1.2 1.3-1.6 2l-43.4 43.4c-5.7 5.7-5.7 15 0 20.7l13 13c5.7 5.7 15 5.7 20.7 0l34.8-34.8 34.8 34.8c5.7 5.7 15 5.7 20.7 0l13-13c5.7-5.7 5.7-15 0-20.7",className:"st1"})]});sN.defaultProps={color:"#72ba00",size:32};let sO=sN,sz=({size:e,color:i,viewBox:a})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:a,color:i,children:[t("path",{d:"M51.2762 0H46.1914V22.4778H51.2762V0Z",fill:"#1A1A1A"}),t("path",{d:"M60.8644 16.775V22.5842L46.2188 14.151V8.34351L60.8644 16.775Z",fill:"#1A1A1A"}),t("path",{d:"M46.1914 13.9701V19.9918L60.9556 11.5587V5.53857L46.1914 13.9701Z",fill:"#C505F2"}),t("path",{d:"M20.2774 4.8313L17.6222 14.417L14.9914 4.91932L15.0157 4.8313H14.9654H10.163H10.1143L10.1387 4.91932L7.50785 14.417L4.85268 4.8313H0L2.22996 12.9489L2.25268 12.8725L4.88838 22.4781H5.34768H5.36716H9.88063H9.90011H10.1257L12.5764 13.6364L15.0027 22.4781H15.462H15.4799H19.995H20.0145H20.24L25.1284 4.8313H20.2774Z",fill:"#1A1A1A"}),t("path",{d:"M31.1741 16.9577C32.0261 17.8611 33.0665 18.3129 34.36 18.3129C35.6535 18.3129 36.6938 17.8611 37.5442 16.9245C38.3963 15.9895 38.8377 14.8918 38.8377 13.6014C38.8377 12.311 38.3963 11.2133 37.5442 10.3098C36.6938 9.40641 35.6518 8.95469 34.36 8.95469C33.0665 8.95469 32.0261 9.40641 31.1741 10.3098C30.3545 11.2133 29.9439 12.311 29.9439 13.6014C29.9422 14.925 30.3529 16.0227 31.1741 16.9577ZM38.8377 4.84275H43.5054V22.4763H38.8377V20.6678C37.356 22.1857 35.5885 22.9263 33.5079 22.9263C31.0475 22.9263 28.9977 22.0229 27.3893 20.2476C25.781 18.4407 24.9922 16.2137 24.9922 13.535C24.9922 10.8878 25.8118 8.69396 27.4218 6.95187C29.0301 5.20977 31.0799 4.33789 33.5079 4.33789C35.5902 4.33789 37.356 5.11345 38.8377 6.66124V4.84275Z",fill:"#1A1A1A"}),t("path",{d:"M67.0985 11.763H75.2361C74.7622 9.73024 73.3112 8.47141 71.2614 8.47141C69.2441 8.47141 67.6357 9.69703 67.0985 11.763ZM79.8404 15.3767H67.131C67.7298 17.6037 69.3074 18.7015 71.8295 18.7015C73.7851 18.7015 75.5818 18.1219 77.2226 16.9909L79.1782 20.4435C77.0651 22.0893 74.543 22.8964 71.6103 22.8964C68.551 22.8964 66.2172 21.993 64.5764 20.2177C62.968 18.4424 62.1484 16.2486 62.1484 13.6346C62.1484 10.9558 62.9989 8.76204 64.6722 7.01828C66.3438 5.24297 68.5511 4.37109 71.263 4.37109C73.8176 4.37109 75.8999 5.1782 77.5391 6.75921C79.1783 8.34022 79.9995 10.5025 79.9995 13.246C79.9978 13.8604 79.9362 14.5712 79.8404 15.3767Z",fill:"#1A1A1A"})]});sz.defaultProps={viewBox:"0 0 80 23",color:"#C505F2",size:50};let sH=sz,sF={padding:"20px 8px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(96, 115, 137, 0.05)",border:"1px dashed #ccc",borderRadius:"8px"},sW=({sx:e,...r})=>t(tn,{sx:{...sF,...e},...r}),sV=({sx:e,...r})=>t(sW,{sx:{flexDirection:"column",gap:"10px",...e},...r}),sB=({sx:e,...r})=>t(tm,{sx:{width:30,height:30,...e},...r}),sj=["audio/mp3","audio/ogg","audio/wav","video/mp4","image/*","application/pdf","text/plain","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","text/csv","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],sG=({file:e,files:i=[],multiple:a=!0,onRemoveFile:o,onChange:n,isImagePreview:l=!1,allowRemoval:s=!0,isLoading:d,dataComplete:c,shouldUseOriginalName:p,allowedTypes:m=sj,...h})=>{let{t:u}=eW(),[x,f]=eE(()=>e?.url?e?.url.split("/smart/")[1]:e),g=e=>e.map((e,t)=>{let r,i=p?e.name:(r=rN.extension(e.type),`${rP(new Date)}-${t}.${r}`),a={lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,type:e.type};return new File([e],i,a)}),C=eg(({files:e})=>{let t=g(e);return a?n(t):n(t[0])},[a,n,g]),{getRootProps:y,getInputProps:b}=tQ({onDropAccepted:e=>C({files:e}),accept:m.reduce((e,t)=>({...e,[t]:[]}),{}),multiple:a,noClick:!1,noKeyboard:!1}),v=h.description??r(R,{sx:{alignItems:"center",gap:"15px",flexDirection:"row"},children:[t(r_,{color:"secondary",fontSize:"large"}),r(nl,{children:[u("Drag and drop or")," ",t(nl,{component:"span",sx:{cursor:"pointer",color:"primary.light"},children:u("choose a file")})," ",u("to upload your data")]})]});return r(sV,{...y(),...h,children:[t("input",{"data-testid":"input-drop",...b(),style:{display:"none"}}),v,c&&t(nl,{sx:{fontSize:"12px",padding:"15px"},children:u("File uploaded successfully. Click the go forward button")}),d&&t(nl,{sx:{fontSize:"12px",padding:"15px"},children:u("We are analyzing your file, this may take a while...")}),(({file:e,files:i,multiple:a,onRemoveFile:o,allowRemoval:n})=>{if(a&&i.length)return i.map((e,i)=>r(R,{sx:{alignItems:"center",flexDirection:"row"},children:[t(nl,{children:e.name}),o&&t(sB,{onClick:e=>o(i,e),size:"large",children:t(tc,{"data-testid":"close"})})]},i));if(e){if(e instanceof File&&l){let t=new FileReader;t.addEventListener("load",()=>{f(t.result)}),t.readAsDataURL(e)}return r(R,{sx:{alignItems:"center",flexDirection:"column",img:{width:"auto",height:"auto",maxWidth:"265px"},backgroundColor:"rgba(96, 115, 137, 0.19)",p:l?"10px":"0 10px"},children:[l?t("img",{src:x,alt:"preview"}):null,r(tn,{sx:{display:"flex",maxWidth:"265px",justifyContent:"space-between",alignItems:"center",fontSize:"14px",fontWeight:600,color:"primaryDarker.main"},children:[t(tn,{component:"p",sx:{margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),o&&n&&t(sB,{onClick:e=>o(void 0,e),size:"large",children:t(tc,{"data-testid":"close"})})]})]})}return null})({file:e,files:i,multiple:a,onRemoveFile:(e,t)=>{t.stopPropagation(),o(e)},allowRemoval:s})]})},sZ=ex(({sx:e,indeterminate:r,...i},a)=>{let o=eI(null),n=a||o;return ey(()=>{n.current.indeterminate=r},[n,r]),t(r$,{sx:{padding:"6px 6px 6px 0px",margin:0,...e},ref:n,color:"primary",...i})}),s$="error",sU="processing",sY=e=>t(rU,{sx:{color:"#3fbe33"},...e}),sq=e=>t(rq,{sx:{color:"#f22728"},...e}),sX=e=>t(rq,{sx:{color:"#f2ab27"},...e}),sK=e=>t(rY,{sx:{color:e=>e.palette.primary.light},...e}),sQ=e=>t(rX,{sx:{color:e=>e.palette.primary.light},...e}),sJ=({row:e})=>{let{t:r}=eW(),i=e?.original?.importStatus,{title:a,...o}=e?.getToggleRowExpandedProps(),n=r(i?.value?.status!==sU?"See details":"Processing data");return t(R,{alignItems:"center",justifyContent:"center",pr:"9px",children:t(R,{py:"6px",justifyContent:"center",pr:"9px",children:i?.value&&t(tO,{title:n,children:(()=>{switch(i?.value?.status){case"success":return t(sY,{...o});case s$:return t(sq,{...o});case sU:return t(sQ,{...o});case"warning":return t(sX,{...o});default:return t(sK,{...o})}})()})})})},s1=e=>{let{isValid:r=!0,isGrouped:i,sx:a,...o}=e;return t(rQ,{sx:{border:"1px solid rgba(224, 224, 224, 1)",...i&&{background:"#fafafa"},"&:hover":{background:"#f0f0f0"},padding:"6px 6px 6px 12px",...a},...o})},s2=({parentRef:e,hasData:i,rowVirtualizer:a,rows:o,prepareRow:n,visibleColumns:l,renderRowSubComponent:s,isProcessing:d})=>t(tn,{ref:e,sx:{height:i?"calc(100vh - 482px)":"0px",minHeight:i?"335px":"47px",width:"100%",overflowY:"auto",overflowX:"hidden"},children:t(tn,{sx:{height:`${a.totalSize}px`,width:"100%",position:"relative"},children:a.virtualItems.map(e=>{let i=o[e.index];return n(i),r(tn,{ref:e.measureRef,sx:{position:"absolute",top:0,left:0,width:"100%",height:`${o[e.index]}px`,transform:`translateY(${e.start}px)`,backgroundColor:"#fff",zIndex:+!!i.isExpanded},children:[t(rK,{component:"div",...i.getRowProps(),children:i.cells.map((e,r)=>t(s1,{minWidth:e?.column?.id==="selection"?"inherit":"211px",component:"div",...e.getCellProps(),isValid:e.value?.isValid,children:e.render("Cell",{isProcessing:d})},r))}),i.isExpanded?t(rK,{component:"div",...i.getRowProps(),children:t(s1,{colSpan:l.length,children:s({row:i})})}):null]},e.index)})})}),s0=({headerGroups:e})=>{let{t:i}=eW();return t(rJ,{component:"div",style:{display:"block"},children:e.map((e,a)=>t(rK,{component:"div",...e.getHeaderGroupProps(),children:e.headers.map((e,a)=>t(s1,{component:"div",..."selection"===e.id?e.getHeaderProps():e.getHeaderProps(e.getSortByToggleProps({title:i("Order by this column")})),children:r(R,{style:{minWidth:"selection"===e.id?"inherit":"211px"},children:[t(V,{fontSize:"14px",children:e.render("Header")}),"selection"!==e.id?t(r1,{active:e.isSorted,direction:e.isSortedDesc?"desc":"asc"}):null]})},a))},a))})},s3=({columns:e,data:i,updateMyData:a,skipPageReset:o,setSelectedData:n,renderRowSubComponent:l,isProcessing:s,firstImport:d,defaultSort:c})=>{let p=eI(),m=rZ({size:i.length,parentRef:p,estimateSize:eg(()=>47,[])}),{getTableProps:h,headerGroups:u,prepareRow:x,rows:f,visibleColumns:g,selectedFlatRows:C,toggleAllRowsSelected:y}=rG({columns:e,data:i,autoResetPage:!o,autoResetSelectedRows:!1,updateMyData:a},rj,rV,rB,e=>{e.allColumns.push(e=>[{id:"selection",Header:({getToggleAllRowsSelectedProps:e})=>t(R,{justifyContent:"center",children:t(sZ,{...e()})}),Cell:({row:e})=>{let r=Object.values(e.original).filter(e=>"boolean"==typeof e?.isValid&&!e?.isValid);return t(R,{alignItems:"center",children:t(sZ,{"data-testid":"selectionRow",index:e.index,...e.getToggleRowSelectedProps(),disabled:!!r?.length})})}},{id:"status",Header:"Status",accessor:e=>e.importStatus?.value?.status??e[c]?.value,Cell:({row:e})=>t(sJ,{row:e})},...e])});ey(()=>{n&&n(C)},[C]),ey(()=>{d||y(!0)},[s]);let b=!!i?.length;return t(rW,{sx:{background:"#fff",minHeight:b?"400px":"47px"},children:r(rF,{component:"div",...h(),stickyHeader:!0,children:[t(s0,{headerGroups:u}),t(s2,{parentRef:p,hasData:b,rowVirtualizer:m,rows:f,prepareRow:x,visibleColumns:g,renderRowSubComponent:l,isProcessing:s})]})})},s4=({isValid:e,sx:r,...i})=>t(w,{sx:{margin:"0 0 0 -5px",border:0,padding:"0px",background:"transparent",color:t=>e?t.primaryDarkerColor:"#b71111",fontFamily:"inherit",fontSize:"12px","&::before":{border:0},"&::focus":{border:0},...r},...i}),s5=({value:e,onChange:r,onBlur:i,isValid:a,isProcessing:o})=>t(s4,{"data-testid":e,value:e,onChange:r,onBlur:i,isValid:a,useFormik:!1,disabled:o}),s6=e=>{let{value:r,valueFormat:i="DD/MM/YYYY",onChange:a,onBlur:o,isProcessing:n,isValid:l,...s}=e,[d,c]=eE(r?tb(r,i):null);return t(r0,{value:d,onChange:e=>{c(e);let t={target:{value:e.format(i)}};a&&a(t)},renderInput:e=>{let{inputProps:r={},InputProps:i={}}=e;return t(s4,{onBlur:o,isValid:l,useFormik:!1,disabled:n,...r,...i,...e,...s})}})},s9=e=>{let{value:r,onChange:i,onBlur:a,isProcessing:o,adorn:n="R$",isValid:l,...s}=e,d=r3({value:r,onChange:e=>{i({target:{value:e}})},format:e=>{if(!e||null===e)return"";""===e&&(e="0");let t=(parseInt(e.replace(/[^\d]+/gi,""),10)/100).toFixed(2);return t?new Intl.NumberFormat("pt-br",{style:"currency",currency:"BRL"}).format(t).replace("R$\xa0",""):""}});return t(s4,{"data-testid":r,value:d.value,onChange:d.onChange,onBlur:a,isValid:l,useFormik:!1,disabled:o,startAdornment:t(M,{position:"start",sx:{color:e=>l?e.primaryDarkerColor:"#b71111"},children:n}),...s})};function s7(e){let{getInputRef:r,onChange:i,...a}=e;return t(r4,{...a,getInputRef:r,onValueChange:e=>{i({target:{value:e.value}})},mask:"_",format:"+55 (##) #####-####",type:"tel"})}let s8=e=>{let{value:r,onChange:i,onBlur:a,isValid:o,isProcessing:n,...l}=e;return t(s4,{"data-testid":r,value:r,onChange:(...e)=>{i(...e)},onBlur:a,isValid:o,useFormik:!1,disabled:n,inputComponent:s7,...l})},de="99.999.999/9999-99",dt=e=>{let{value:r,onChange:i,onBlur:a,isValid:o,isProcessing:n,...l}=e,s=de.length,d=r3({value:r,onChange:e=>{i({target:{value:e}})},format:e=>{let t;if(!e)return"";let r=(t=e?.slice(0,s))&&t.replace(/[^0-9]/g,""),i=r?.length>11?de:"999.999.999-999";var a=r,o=i;let n="",l=0;if(Array.from(a).forEach((e,t)=>{o[t+l]&&(!o[t+l].match(/[0-9]/)&&(n+=o[t+l],l++),n+=e)}),0!==a.length){let e=a.length+l;o[e]&&!o[e].match(/[0-9]/)&&(n+=o[e])}return n},mask:(s<=r?.length)??0});return t(s4,{"data-testid":r,value:d.value,onChange:d.onChange,onBlur:a,isValid:o,useFormik:!1,disabled:n,...l})},dr=(e,t={})=>{var r,i;if(null==e||"boolean"==typeof e)return null;if("string"!=typeof e)return e;let{decimalSeparator:a=",",thousandSeparator:o="."}=t;return parseFloat((r=e.toString(),i=o.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),r.replace(RegExp(i,"g"),"")).replace(a,"."))},di=(e,{prefix:t="R$",...r}={})=>{if(!e)return null;let i=dr(e.replace(t,""),r);return i?Math.round(100*i):i},da=e=>Number(e).toLocaleString("pt-BR",{minimumFractionDigits:2,style:"currency",currency:"BRL"}),dn=e=>"number"!=typeof e?null:da(dr(e/100)),dl=/\D/g,ds=/^(\d{14}|\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2})$/,dd="00000000000000",dc=/^(\d{11}|\d{3}\.\d{3}\.\d{3}-\d{2})$/,dp=/\D/g,dm="00000000000",dh=e=>{if(!e)return!1;if(!dc.test(e)){let t;return rA((t=e.replace(dp,""),dm.substring(0,dm.length-t.length)+t))}return rA(e)},du=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,dx=e=>"boolean"==typeof e?e.toString().toLowerCase():"string"==typeof e?e?.trim()?.toLowerCase():e,df="taxID",dg="active",dC="email",dy="gender",db="date",dv="phone",dw="phone",dM="currency",dI=["sim","true","ativo","\xe1tivo","si"],dE=["n\xe3o","false","inativo","nao","no"],dS=["sim","true","ativo","\xe1tivo","si"],dA=["CPF Colaborador","CPF Gestor","CPF/CNPJ do Cliente"],dk=["Ativo"],dT=["E-mail Colaborador","E-mail Gestor"],dD=["G\xeanero Colaborador"],dR=["Nascimento Colaborador","Admiss\xe3o Colaborador","Demiss\xe3o Colaborador","Data de Vencimento"],dL=["Celulares"],d_=["Celular do Cliente"],dP=["Tags"],dN=["Valor","Valor em Reais"],dO=e=>dA.includes(e)?df:dk.includes(e)?dg:dT.includes(e)?dC:dD.includes(e)?dy:dR.includes(e)?db:dL.includes(e)?dv:d_.includes(e)?dw:dP.includes(e)?"tag":dN.includes(e)?dM:"text",dz=[df,dC,dM,db],dH=(e,t,r)=>t.reduce((t,{name:i})=>{let a,o=r?.map(e=>e?.trim().replace(/\.+$/,"")).indexOf(i?.trim()),n=dO(i),l=e[o],s=l&&dz.includes(n)?(a={[df]:()=>"number"==typeof l?l.toString():l?l?.trim()?.replace(/\D+/g,""):null,[dC]:()=>dx(l),[db]:()=>(e=>{if(tb.isDate(e))return tb(e).format("DD/MM/YYYY");if("boolean"==typeof e)return e.toString().toLowerCase();let t=(e=>{if("boolean"==typeof e)return e.toString().toLowerCase();let t=e.split("/").at(2);return t&&4===t.length?"DD/MM/YYYY":"DD/MM/YY"})(e);return tb(e,t).format("DD/MM/YYYY")})(l),[dM]:()=>"number"==typeof l?dn(di(l.toString(),{decimalSeparator:".",thousandSeparator:","})):l?dn(di(l,{decimalSeparator:".",thousandSeparator:","})):null},n&&a[n]?a[n]()??l:l):l;return{...t,[i]:{value:s,isValid:!0,columnType:n}}},{}),dF=({type:e,value:t,requiredMessage:r,customColumnValidation:i,columnName:a=""})=>{if(!t)return({"N\xe3o obrigat\xf3rio":!0,Obrigatório:!1})[r];let o={[df]:()=>dh(t)||(e=>{if(!ds.test(e)){let t,r;return t=e.replace(dl,""),r=dd.substring(0,dd.length-t.length)+t,ds.test(r)}return ds.test(e)})(t),[dg]:()=>{let e;return e=dx(t),!!(dI.includes(e)||dE.includes(e))},[dy]:()=>{let e;return e=dx(t),dB.MALE.includes(e)||dB.FEMALE.includes(e)||dB.OTHER.includes(e)},[dC]:()=>du.test(t),[db]:()=>lK(t)},n=i?.[a];return!!(!n||n(t))&&(!t||!o[e]||(o[e]()??!0))},dW=({value:r,row:{index:i},column:{id:a,columnType:o,customColumnValidation:n,requiredMessage:l},updateMyData:s,isProcessing:d})=>{let[c,p]=eE({value:r?.value,isValid:r?.isValid}),m=e=>{if(p({...c,value:e?.target?.value}),o===db){let t={...r,...c,value:e?.target?.value,isValid:dF({type:o,value:e?.target?.value,columnName:a,customColumnValidation:n,requiredMessage:l})};s(i,a,t)}},h=()=>{let e={...r,...c,isValid:dF({type:o,value:c.value,columnName:a,customColumnValidation:n,requiredMessage:l})};s(i,a,e)};return ey(()=>{p({value:r?.value,isValid:r?.isValid})},[r]),t(e,{children:(()=>{let e,r={[dg]:s5,[dy]:s5,[db]:s6,[dM]:s9,[df]:dt,[dw]:s8}[o]||s5;return r?t(r,{...(e=c.value,{value:e,onChange:m,onBlur:h,isValid:c.isValid,isProcessing:d}),inputProps:{"data-testid":`${o}-${i}-${a}`.replaceAll(" ","").toLocaleLowerCase()}}):null})()})},dV={ADD:"add",REMOVE:"remove",UPDATE:"update"},dB={MALE:["masculino","male"],FEMALE:["feminino","female","femenino"],OTHER:["outro","other","otro"]},dj=e=>Object.entries(e).reduce((e,[,t])=>{if(t.field&&t.value){var r,i;let a,o=(r=t.value,i=t.columnType,a={[dg]:()=>dS.includes(dx(r)),[dy]:()=>{let e;return e=dx(r),dB.MALE.includes(e)?"male":dB.FEMALE.includes(e)?"female":dB.OTHER.includes(e)?"other":r},[df]:()=>({type:"BR:CPF",taxID:r}),[db]:()=>{let e;return(e=lK(r)?tb(r,lX).utc().toISOString():null)||null},[dv]:()=>r?r.toString().split(";").map(e=>"+55"===e.substring(0,3)?e.slice(1):"55"===e.substring(0,2)?e:`55${e}`):null,[dw]:()=>(e=>{if(!e)return null;let t=e.toString();return"+55"===t.substring(0,3)?t.slice(1):"55"===t.substring(0,2)?t:`55${t}`})(r),[dC]:()=>dx(r),tag:()=>r?r.toString().split(";").map(e=>e.trim().toLowerCase()):null},i&&a[i]?a[i]()??r:r);return{...e,[t.field]:o}}return e},{}),dG={Obrigatório:!0,"N\xe3o obrigat\xf3rio":!1},dZ=({data:e,setData:i,isProcessing:a,setSelectedData:o,firstImport:n,selectedData:l,dataImportTable:s,getInvalidFieldsMessage:d,getReferences:c,setIsNextEnabled:p,customColumnValidation:m={}})=>{let{t:h}=eW(),u=async(t,r,a)=>{let o={...e[t],[r]:a},n=async()=>{let t=await c(o,h,e),r=Object.values(t).filter(e=>"boolean"==typeof e?.isValid&&!e?.isValid);return r?.length?{...t,importStatus:{...t.importStatus,value:{status:s$,message:[...d(r,h),...t.importStatus?.value?.message.length?t.importStatus?.value?.message:[]]}}}:t},l=await n();i(e=>e.map((e,r)=>r===t?l:e))},x=eg(({row:e})=>{let i=e.original.importStatus;return r(R,{direction:"column",children:[r(V,{fontSize:"12px",fontWeight:"600",mr:"5px",children:[h("Status"),":"]}),i.value?.message?.map((e,r)=>t(V,{fontSize:"12px",mr:"5px",children:`- ${e}`},r))]})},[]),f=ew(()=>s.map(({name:e,requiredMessage:t})=>({Header:e,accessor:e,columnType:dO(e),customColumnValidation:m,requiredMessage:t,Cell:dW})),[]);return r(R,{flexDirection:"column",mt:"20px",children:[t(R,{justifyContent:"flex-end",height:"19px",mb:"20px",children:!!l.length&&r(V,{fontSize:"14px",fontWeight:"600",children:[l.length," ",h("Row selected",{count:l.length})]})}),t(s3,{columns:f,data:e,updateMyData:u,setSelectedData:e=>{if(0===e.length){p(!1),o(e);return}p(!0),o(e)},renderRowSubComponent:x,setData:i,isProcessing:a,firstImport:n,dataImportTable:s})]})},d$=({isLoading:e,setIsLoading:r,setSheet:i,setData:a,clearData:o,sheet:n,dataComplete:l,setShowReport:s,setFirstData:d,setFirstImport:c,dataImportTable:p})=>{let{t:m}=eW(),{enqueueSnackbar:h}=t3();return t(sG,{file:n,onChange:e=>{a([]),s(!1),r(!0),i(e),c(!1);let t=new FileReader,o=!!t.readAsBinaryString;t.onload=async e=>{let t=r5(e.target.result,{type:o?"binary":"array",cellDates:!0}),a=t.SheetNames[0],n=t.Sheets[a],[l,...s]=r6.sheet_to_json(n,{header:1,raw:!0});if(!(({header:e,defaultHeader:t})=>e.length!==t.length?!(t.filter(t=>!e.includes(t.name)).filter(e=>dG[e?.requiredMessage]??!1).length>0):t.every(t=>{let r=dG[t?.requiredMessage]??!1,i=e.includes(t?.name);return!i&&!r||i}))({header:l,defaultHeader:p}))return r(!1),i(null),h(m("Error: excel out of the template. Do not remove columns or edit titles."),{variant:"error"}),null;d((({excelData:e,dataImportTable:t,header:r,t:i})=>{let a=[];for(let[o,n]of e.entries()){if(0===n.length)continue;let e=dH(n,t,r),l={field:"rowId",value:r2()},s={field:"index",value:o},d={field:"importStatus",value:{status:sU,message:[i("We are processing your data, after that you will be able to edit and import")]}};a=[...a,{...e,rowId:l,importStatus:d,index:s}]}return a})({excelData:s,dataImportTable:p,header:l,t:m})),r(!1)},o?t.readAsBinaryString(e):t.readAsArrayBuffer(e)},onRemoveFile:e=>o(e),allowRemoval:!!n,multiple:!1,isLoading:e,dataComplete:l,shouldUseOriginalName:!0})},dU=({setData:e,latestData:i,setIsProcessing:a,isProcessing:o,data:n,updateRows:l})=>{let s=n[0]?.importStatus?.value?.status!==sU,[d,c]=eE(s?n?.length:0),{t:p}=eW(),m=G(),h=async()=>{a(!0);let t=0;do{let r=n.slice(t,t+50);await l(r,i),t>1&&t%50==0&&(e(i.current),c(t)),t+=50}while(t<=n.length);e(i.current),a(!1),c(i.current.length)};return ey(()=>{s||h()},[]),t(iX,{mt:"25px",children:r(R,{padding:"30px",alignItems:"center",flexDirection:"column",children:[t(V,{mb:"15px",fontSize:"14px",children:p(o?"Analyzing data...":"Data analysis completed. Click the go forward button")}),r(R,{children:[t(V,{fontSize:"20px",fontWeight:"600",color:m.palette.primary.light,children:d}),r(V,{fontSize:"20px",fontWeight:"600",children:["/",n.length]})]}),o&&t(V,{fontSize:"10px",mt:"15px",children:p("Please, do not close this window")})]})})},dY=e=>t(rU,{sx:{color:"#3fbe33"},...e}),dq=e=>t(rq,{sx:{color:"#f22728"},...e}),dX=({data:e})=>{let{t:i}=eW(),a=e.filter(e=>e.importStatus?.value?.status==="success"),o=e.filter(e=>e.importStatus?.value?.status==="error");return r(R,{children:[r(V,{mb:"5px",textAlign:"center",fontWeight:"600",fontSize:"14px",children:[i("Import report"),":"]}),r(iJ,{sx:{justifyContent:"center"},children:[r(iJ,{sx:{alignItems:"center"},children:[t(dY,{}),r(V,{fontSize:"12px",ml:"5px",children:[i("Correct imports"),": ",a.length]})]}),r(iJ,{sx:{alignItems:"center",ml:"15px"},children:[t(dq,{}),r(V,{fontSize:"12px",ml:"5px",children:[i("Imports with errors"),": ",o.length]})]})]})]})},dK=e=>e.filter(e=>e.fields.importStatus?.status!==s$),dQ=(e,t)=>{switch(t.type){case dV.ADD:return[...e,{fields:t.fields}];case dV.REMOVE:return e.filter(e=>e.fields?.rowId!==t.fields?.rowId);case dV.UPDATE:return[...e.filter(e=>e.fields?.rowId!==t.fields?.rowId),{fields:t.fields}];default:throw Error()}},dJ=({setShowReport:i,setData:a,data:o,selectedData:n,setSelectedData:l,showReport:s,setFirstImport:d,setActiveStep:c,prepareQueue:p=dK,processQueueItem:m,reducer:h=dQ})=>{let{t:u}=eW(),[x,f]=eM(h,[]),[g,C]=eE(!1),[y,b]=eE(!1),v=G(),w=async()=>{if(0===x.length)return;b(!0),i(!1);let e=o,t=(t,r,i)=>{e=e.map((a,o)=>o===t?{...e[t],[r]:i}:a)};for(let e of p(x)){let{hasError:r,revalidateQueue:i}=await m({item:e,dispatch:f,updateImportStatus:t});if(r&&C(r),!r&&i&&i(x))break}a(e),b(!1),i(!0),l([]),d(!0)};return ey(()=>{n.length>0&&((e,t)=>{for(let r of e.map(e=>({...e?.original,rowIndex:{field:"rowIndex",value:e?.id}}))){let e=dj(r);Object.keys(e).length<=1||t({type:dV.ADD,fields:e})}})(n,f)},[]),ey(()=>{x.length>0&&!y&&w()},[x]),t(iX,{mt:"25px",children:r(R,{sx:{padding:"30px",alignItems:"center",flexDirection:"column"},children:[y&&r(e,{children:[t(V,{fontSize:"14px",children:u("Importing...")}),t(V,{as:"span",fontSize:"20px",fontWeight:"600",color:v.palette.primary.light,children:x.length}),t(V,{fontSize:"10px",mt:"15px",children:u("Please, do not close this window")})]}),s&&t(dX,{data:o}),!y&&g&&t(ij,{mt:"15px",fontSize:"12px",onClick:()=>c(e=>e-1),children:u("See errors")})]})})},d1=ef(({row:e,style:r})=>t(rK,{component:"div",...e.getRowProps({style:r}),children:e.cells.map(e=>t(s1,{component:"div",...e.getCellProps(),isValid:e.value?.isValid,children:e.render("Cell")}))}),(e,t)=>{let{row:r,isSelected:i}=e,{row:a,isSelected:o}=t;return r8({...r.values,isSelected:i},{...a.values,isSelected:o})}),d2=({columns:e,data:i,skipPageReset:a,hasSelection:o=!0,setSelectedData:n})=>{let{t:l}=eW(),{getTableProps:s,headerGroups:d,prepareRow:c,rows:p,state:{selectedRowIds:m},selectedFlatRows:h}=rG({columns:e,data:i,autoResetPage:!a},rj,rB,e=>{o&&e.allColumns.push(e=>[{id:"selection",Header:({getToggleAllRowsSelectedProps:e})=>t("div",{children:t(sZ,{...e()})}),Cell:({row:e})=>t("div",{children:t(sZ,{index:e.index,...e.getToggleRowSelectedProps()})})},...e])});return t(rW,{children:r(rF,{sx:{boxSizing:"border-box"},component:"div",...s(),children:[t(rJ,{component:"div",children:d.map(e=>t(rK,{component:"div",...e.getHeaderGroupProps(),children:e.headers.map(e=>r(s1,{component:"div",..."selection"===e.id?e.getHeaderProps():e.getHeaderProps(e.getSortByToggleProps({title:l("Order by {{type}}",{type:e?.Header?.toString().toLowerCase()})})),children:[e.render("Header"),"selection"!==e.id?t(r1,{active:e.isSorted,direction:e.isSortedDesc?"desc":"asc",title:l("Order by {{type}}",{type:e?.Header?.toString().toLowerCase()})}):null]}))}))}),t(r7,{component:"div",children:p.map(e=>(c(e),t(d1,{...e.getRowProps(),row:e,isSelected:m[e.id]})))})]})})},d0="N\xe3o obrigat\xf3rio",d3="Obrigat\xf3rio",d4=()=>e=>`N\xe3o obrigat\xf3rio se presente: ${e.join(" ou ")}`,d5={CUSTOMER_TAXID:"CPF/CNPJ do Cliente",CUSTOMER_NAME:"Nome do Cliente",CUSTOMER_EMAIL:"Email do Cliente",CUSTOMER_PHONE:"Celular do Cliente",VALUE:"Valor em Reais",COMMENT:"Coment\xe1rio",EXPIRATION_DATE:"Data de Vencimento",ADITIONAL_INFO:"Informa\xe7\xf5es Adicionais"},d6={[d5.CUSTOMER_TAXID]:"CPF/CNPJ do Cliente.",[d5.CUSTOMER_NAME]:"Nome do Cliente",[d5.CUSTOMER_EMAIL]:"Email do Cliente.",[d5.CUSTOMER_PHONE]:"Celular do Cliente",[d5.VALUE]:"Valor em Reais",[d5.COMMENT]:"Coment\xe1rio.",[d5.EXPIRATION_DATE]:"Data de Vencimento. Ex: 16/11/1993",[d5.ADITIONAL_INFO]:"Informa\xe7\xf5es Adicionais. Ex: item1:calca;item2:camisa"},d9={[d5.CUSTOMER_TAXID]:d0,[d5.CUSTOMER_NAME]:d0,[d5.CUSTOMER_EMAIL]:d0,[d5.CUSTOMER_PHONE]:d0,[d5.VALUE]:d3,[d5.COMMENT]:d0,[d5.EXPIRATION_DATE]:d0,[d5.ADITIONAL_INFO]:d0},d7=e=>({NAME:e("Company Name"),TRADE_NAME:e("Trade Name"),TAX_ID:e("CNPJ"),EMAIL:e("Email"),PHONE:e("Phone"),WEBSITE:e("Website"),FIRST_NAME:e("First name"),LAST_NAME:e("Last name"),USER_MASTER_TAX_ID:e("User taxID")}),d8=e=>({NAME:e("Name"),TAX_ID:e("CPF/CNPJ"),EMAIL:e("Email"),PHONE:e("Phone")}),ce=e=>({CORRELATION_ID:e("Correlation ID"),VALUE:e("Value"),DESTINATION_PIX_KEY:e("Destination Pix Key"),DESTINATION_PIX_KEY_TYPE:e("Destination Pix Key Type"),COMMENT:e("Comment")}),ct=e=>({VALUE:e("Value"),PSP_ID:e("PSP ID"),PSP_NAME:e("PSP Name"),HOLDER_NAME:e("Holder Name"),CPF_CNPJ:e("CPF ou CNPJ"),BRANCH:e("Ag\xeancia"),ACCOUNT:e("Conta"),ACCOUNT_TYPE:e("Tipo de Conta"),COMMENT:e("Coment\xe1rio")}),cr={EMPLOYEE_ID:"ID/Matr\xedcula Colaborador",CPF:"CPF Colaborador",ACTIVE:"Ativo",NAME:"Nome Colaborador",EMAIL:"E-mail Colaborador",GENDER:"G\xeanero Colaborador",BIRTHDATE:"Nascimento Colaborador",ADMISSION:"Admiss\xe3o Colaborador",DEMISSION:"Demiss\xe3o Colaborador",JOB_TITLE:"Cargo Colaborador",MOBILE_PHONE:"Celulares",CRC_NAME:"\xc1rea",CRC_ID:"ID da \xc1rea",MANAGER_EMPLOYEE_ID:"ID/Matr\xedcula Gestor",MANAGER_CPF:"CPF Gestor",MANAGER_EMAIL:"E-mail Gestor",BUSINESS_DIVISION_ID:"ID da Unidade de Neg\xf3cio",BUSINESS_DIVISION_NAME:"Unidade de Neg\xf3cio",TAGS:"Tags"},ci={[cr.BIRTHDATE]:"d",[cr.ADMISSION]:"d",[cr.DEMISSION]:"d",[cr.MOBILE_PHONE]:"s"},ca={[cr.EMPLOYEE_ID]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[cr.ACTIVE]:"Se o usu\xe1rio est\xe1 ativo ou n\xe3o. (sim,true,ativo)",[cr.CPF]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[cr.NAME]:"Nome completo.",[cr.EMAIL]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[cr.GENDER]:"Masculino, Feminino ou Outro.",[cr.BIRTHDATE]:"Formato: DD/MM/YYYY.",[cr.ADMISSION]:"Formato: DD/MM/YYYY.",[cr.DEMISSION]:"Formato: DD/MM/YYYY.",[cr.JOB_TITLE]:"T\xedtulo do cargo.",[cr.MOBILE_PHONE]:"Celular: 5511912345678, use ; (ponto e v\xedrgula) para separar os celulares",[cr.CRC_NAME]:"Nome da \xe1rea.",[cr.CRC_ID]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[cr.MANAGER_EMPLOYEE_ID]:"C\xf3digo de identifica\xe7\xe3o do gestor.",[cr.MANAGER_CPF]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[cr.MANAGER_EMAIL]:"E-mail corporativo v\xe1lido.",[cr.BUSINESS_DIVISION_ID]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[cr.BUSINESS_DIVISION_NAME]:"Nome da Unidade de Neg\xf3cio",[cr.TAGS]:"Ex: Time de Vendas. Use ; (ponto e v\xedrgula) para separar as tags"},co={[cr.EMPLOYEE_ID]:d0,[cr.ACTIVE]:d0,[cr.CPF]:d4()([cr.EMAIL]),[cr.NAME]:d3,[cr.EMAIL]:d4()([cr.CPF]),[cr.GENDER]:d0,[cr.BIRTHDATE]:d0,[cr.ADMISSION]:d0,[cr.DEMISSION]:d0,[cr.JOB_TITLE]:d0,[cr.MOBILE_PHONE]:d0,[cr.CRC_NAME]:d0,[cr.CRC_ID]:d0,[cr.MANAGER_EMPLOYEE_ID]:d0,[cr.MANAGER_CPF]:d0,[cr.MANAGER_EMAIL]:d0,[cr.BUSINESS_DIVISION_ID]:d0,[cr.BUSINESS_DIVISION_NAME]:d0,[cr.TAGS]:d0},cn={USERS:"USERS",CHARGE:"CHARGE",PAYMENT:"PAYMENT",PAYMENT_BRANCH_ACCOUNT:"PAYMENT_BRANCH_ACCOUNT",CUSTOMER:"CUSTOMER",COMPANY:"COMPANY"},cl={USER:"USER_IMPORT",USERS:"USER_IMPORT",CHARGE:"CHARGE_IMPORT",PAYMENT:"PAYMENT_IMPORT",PAYMENT_BRANCH_ACCOUNT:"PAYMENT_BRANCH_ACCOUNT_IMPORT",CUSTOMER:"CUSTOMER_IMPORT",COMPANY:"COMPANY_IMPORT"},cs=({dataImportTable:i,type:o})=>{let n=G(),{t:l}=eW(),s=[{property:"name",header:{label:l("Field")}},{property:"description",header:{label:l("Description")}},{property:"requiredMessage",header:{label:l("Required")}}],{stream:d,fileName:c}=ew(()=>((e,t)=>{if(!Object.values(cn).includes(t))return null;let{fileName:r,stream:i}=((e,t)=>{var r;let i,a,o=r6.book_new(),{columns:n,dataTypes:l}=((e,t=e=>e)=>{switch(e){case cn.USERS:return{columns:cr,comments:ca,requiredFields:co,dataTypes:ci};case cn.CHARGE:return{columns:d5,comments:d6,requiredFields:d9};case cn.PAYMENT:let r,i;return{columns:ce(t),comments:{[(r=ce(t)).CORRELATION_ID]:t("Unique identifier for tracking the payment"),[r.VALUE]:t("Value"),[r.DESTINATION_PIX_KEY]:t("Destination Pix Key"),[r.COMMENT]:t("Comment")},requiredFields:{[(i=ce(t)).CORRELATION_ID]:d0,[i.VALUE]:d3,[i.DESTINATION_PIX_KEY]:d3,[i.DESTINATION_PIX_KEY_TYPE]:d0,[i.COMMENT]:d0}};case cn.PAYMENT_BRANCH_ACCOUNT:let a,o;return{columns:ct(t),comments:{[(a=ct(t)).VALUE]:t("Value"),[a.PSP_ID]:t("PSP ID"),[a.PSP_NAME]:t("PSP Name"),[a.HOLDER_NAME]:t("Holder Name"),[a.CPF_CNPJ]:t("CPF ou CNPJ"),[a.BRANCH]:t("Ag\xeancia"),[a.ACCOUNT]:t("Conta"),[a.ACCOUNT_TYPE]:t("Tipo de Conta"),[a.COMMENT]:t("Coment\xe1rio")},requiredFields:{[(o=ct(t)).VALUE]:d3,[o.PSP_ID]:d3,[o.PSP_NAME]:d3,[o.HOLDER_NAME]:d3,[o.CPF_CNPJ]:d3,[o.BRANCH]:d3,[o.ACCOUNT]:d3,[o.ACCOUNT_TYPE]:d3,[o.COMMENT]:d0}};case cn.CUSTOMER:let n;return{columns:d8(t),comments:d8(t),requiredFields:{[(n=d8(t)).NAME]:d3,[n.TAX_ID]:d3,[n.EMAIL]:d0,[n.PHONE]:d0}};case cn.COMPANY:let l;return{columns:d7(t),comments:d7(t),requiredFields:{[(l=d7(t)).NAME]:d3,[l.TRADE_NAME]:d0,[l.TAX_ID]:d3,[l.EMAIL]:d3,[l.PHONE]:d3,[l.WEBSITE]:d0,[l.FIRST_NAME]:d3,[l.LAST_NAME]:d3,[l.LAST_NAME]:d3,[l.USER_MASTER_TAX_ID]:d3}};default:return{columns:{},comments:{},requiredFields:{}}}})(t,e),s=r6.json_to_sheet([],{header:Object.values(n)});(r=s)["!cols"]=[],Object.entries(r).forEach(([e,t])=>{let i,{v:a}=t;a&&r["!cols"]&&r["!cols"].push({width:a.length+2}),l&&a in l&&(r={...r,...(i=a[0],[...Array(1e3).keys()].reduce((e,t)=>{let r=`${i}${2+t}`;return{...e,[r]:"string"==typeof l[a]?{t:l[a],v:" "}:l[a]}},{}))})});let d=cl[t.toLocaleUpperCase()];return o.Sheets[d]=s,o.SheetNames.push(d),{stream:r9(o,{type:"buffer",bookType:"xlsx"}),fileName:(i={[cn.USERS]:e("Users"),[cn.CHARGE]:e("Charge"),[cn.PAYMENT]:e("Payment"),[cn.PAYMENT_BRANCH_ACCOUNT]:e("Payment Branch Account"),[cn.CUSTOMER]:e("Customer"),[cn.COMPANY]:e("Company")},a=e("charge_batch_template_time_data"),t===cn.CHARGE?`${a}.xlsx`:`Template_Import_${i[t]}.xlsx`)}})(e,t);return{stream:i,fileName:r}})(l,o),[o]);return r(e,{children:[r(V,{my:"15px",fontSize:"12px",children:[l("Download here the")," ",t(a,{sx:{color:n.palette.primary.light},href:(()=>{if(!d)return"";let e=new File([d],c);return URL.createObjectURL(e)})(),download:c,component:"a",children:"excel template"})," ",l("to mount your data")]}),t(d2,{columns:s,rows:i,hideFooter:!0})]})},cd=i=>{let[a,o]=eE(null),[n,l]=eE([]),[s,d]=eE(!1),[c,p]=eE(!1),[m,h]=eE(!1),[u,x]=eE(0),[f,g]=eE(new Set),{t:C}=eW(),y=eI(),[b,v]=eE([]),[w,M]=eE(!1),[I,E]=eE(!0),{dataImportTable:S,getColumnType:A,getInvalidFieldsMessage:k,getReferences:T,updateRows:D,prepareQueue:L,processQueueItem:_,reducer:P,labels:N,customColumnValidation:O,type:z}=i,H=((e,t)=>{let{importLabel:r=e("Import")}=t??{};return[e("Select a file to upload"),e("Analyze data"),e("Data review"),r]})(C,N),F=e=>{e.stopPropagation(),o(null),l([]),h(!1),y.current=[]},W=async e=>{l(e),y.current=e},B=0===u||c,j=u===H?.length-1||s||!n?.length||c||!I;return r(e,{children:[t(rH,{activeStep:u,children:H.map((e,r)=>t(rO,{children:t(rz,{children:e})},r))}),(e=>{switch(e){case 0:return t(d$,{setIsLoading:d,setSheet:o,clearData:F,sheet:a,isLoading:s,dataComplete:!!n.length,setData:l,setShowReport:h,setFirstData:W,setFirstImport:M,dataImportTable:S});case 1:return t(dU,{data:n,setData:l,latestData:y,setIsProcessing:p,isProcessing:c,updateRows:D});case 2:return t(dZ,{setData:l,data:n,isProcessing:c,setShowReport:h,showReport:m,setSelectedData:v,firstImport:w,selectedData:b,dataImportTable:S,getColumnType:A,getInvalidFieldsMessage:k,getReferences:T,setIsNextEnabled:E,customColumnValidation:O});case 3:return t(dJ,{data:n,setData:l,setShowReport:h,selectedData:b,setSelectedData:v,showReport:m,setFirstImport:M,setActiveStep:x,prepareQueue:L,processQueueItem:_,reducer:P});default:return""}})(u),a&&n.length<1?t(R,{justifyContent:"flex-end",children:t(V,{color:"error",children:C("You are trying to import a empty sheet")})}):null,t(R,{justifyContent:"flex-end",alignItems:"center",my:"15px",children:r(aD,{children:[t(ij,{variant:"text",disabled:B,onClick:()=>{x(e=>e-1)},children:C("Previous")}),t(ij,{variant:"contained",color:"primary",onClick:()=>{let e=f;f.has(u)&&(e=new Set(e.values())).delete(u),x(e=>e+1),g(e)},disabled:j,children:C("Go forward")})]})}),0===u&&t(cs,{dataImportTable:S,type:z})]})},cc=({children:e,to:r,...i})=>t(rk,{component:lL,to:r,...i,children:e}),cp="MATCHED",cm=/(\d{3})(\d{0,3})(\d{0,3})(\d{0,2})/,ch=({qrCodeShow:e,children:r,...i})=>{let a=G();return t(R,{sx:{display:e?"flex":"none",alignItems:"center",justifyContent:"center",border:e?"1px solid":"none",borderColor:a.palette.primary.main,borderRadius:a.shape.borderRadius,boxShadow:e?`0px 0px 0px 3px ${B(a.palette.primary.main,.7)}`:"none","& > svg":{display:e?"block":"none",height:"auto",width:"100%",borderRadius:a.shape.borderRadius},"@media (min-width: 600px)":{display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:a.palette.primary.main,borderRadius:a.shape.borderRadius,boxShadow:`0px 0px 0px 3px ${B(a.palette.primary.main,.7)}`,"& > svg":{display:"block",height:"auto",width:"100%",borderRadius:a.shape.borderRadius}}},"data-testid":i["data-testid"],children:r})},cu=({amount:e=1})=>{let{t:i}=eW(),o=Q(),n=o.palette.success.main,l=dn(e)??dn(1);return r(R,{alignItems:"center",sx:{textAlign:"center"},children:[t(a,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:t(it,{size:30,color:n})}),t(V,{variant:"h6",fontWeight:o.typography.fontWeightBold,color:"text.primary",sx:{mb:2},children:i("Two-factor verification confirmed")}),t(R,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:t(V,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:i("We received the payment of {{amount}} and confirmed the payer tax ID matches your account. You can continue securely.",{amount:l})})})]})},cx=({amount:e=1})=>{let{t:i}=eW(),o=Q(),n=o.palette.error.main,l=dn(e);return r(R,{alignItems:"center",sx:{textAlign:"center"},children:[t(a,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:t(ie,{size:30,color:n})}),t(V,{variant:"h6",fontWeight:o.typography.fontWeightBold,color:"text.primary",sx:{marginBottom:2},children:i("Unable to confirm your identity")}),r(R,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:[t(V,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:i("We received the payment of {{amount}}, but the payer's taxpayer ID does not match the CPF on your account. For security, we cannot grant access.",{amount:l})}),t(V,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:i("Try making the payment from a bank account in your name or choose another verification method.")})]})]})},cf=({onGetResult:e,pixAuthentication:i})=>{var a;let o,{t:n}=eW(),[l,s]=eE(),d=async()=>{if(!e)return;let t=await e();s(t?.result)};if(a=!l||"UNVERIFIED"===l,o=eI(),ey(()=>{o.current=d},[d]),ey(()=>{let e;return a?e=setInterval((...e)=>o.current(...e),5e3):e&&clearInterval(e),()=>{e&&clearInterval(e)}},[a,5e3]),"MISMATCH"===l)return t(cx,{});if(l===cp)return t(cu,{});let c=i.taxID.replace(/\D/g,"").replace(cm,(e,t,r="",i="",a="")=>{let o=r&&`.${r}`,n=i&&`.${i}`,l=a&&`-${a}`;return`${t}${o}${n}${l}`});return r(R,{flexDirection:"column",spacing:2.5,alignItems:"center",sx:{py:2},children:[r(R,{spacing:1.5,alignItems:"center",children:[t(eH,{variant:"body1",textAlign:"center",sx:{lineHeight:1.6},children:n("We will validate your CPF using a Pix transaction. Pay the QR Code below, of R$ 0.01 using your bank's app from an account with your CPF {{taxID}}. After payment, the amount of R$ 0.01 will be automatically refunded.",{taxID:c})}),t(oL,{label:n("CPF"),value:c,sx:{mt:1}})]}),t(R,{sx:{maxWidth:"200px",width:"100%"},children:t(ch,{qrCodeShow:!0,"data-testid":"pix-qrcode",children:t(il,{value:i.brCode,size:160,level:"M",marginSize:4})})})]})},cg=({title:i,message:a,actionMessage:o,isOpen:n,isMutationPending:l=!1,onConfirm:s,handleOpenChange:d,onTryAnotherWay:c,email:p,isTOTPActive:m,isWhatsAppAuthenticatorActive:h,phoneNumber:u,name:x="multiFactorCode",action:f,onGetResult:g,onContinue:C})=>{let{t:y}=eW(),b=Q(),[v,w]=eE(!1),[M,I]=eE(!1),[E,S]=eE(null),[A,k]=eE(null),[T]=ts(x),D=l||T.value.length<6||T.value.replaceAll(" ","").length<6,L=async()=>{if(I(!0),c){let e=await c();e&&e.brCode&&(S(e),w(!0))}I(!1)},_=async()=>{if(g){let e=await g();return e&&e.result&&k(e.result),e}},P=()=>{d(),S(null),w(!1)};return t(oX,{open:n,onClose:P,title:i,actions:v?r(e,{children:[t(ij,{variant:"text",color:"secondary",onClick:P,children:y("Cancel")}),A===cp&&t(ij,{variant:"contained",color:"primary",onClick:C,children:y("Continue")})]}):r(e,{children:[c&&t(ij,{variant:"text",color:"secondary",disabled:M,onClick:L,sx:{marginRight:"auto"},children:y("Try another way")}),t(ij,{variant:"text",color:"secondary",onClick:P,children:y("Cancel")}),t(ij,{onClick:()=>s(T.value),disabled:D,children:y("Confirm")},"action-2")]}),children:v&&E?.brCode?t(cf,{onGetResult:_,pixAuthentication:E}):r(R,{flexDirection:"column",spacing:2,children:[(()=>{if(a)return a;if(m&&"USER_MASTER_AUTHENTICATOR_TOTP_DEACTIVATE_METHOD"!==f){let i=[{icon:t(ii,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Access your authentication app"),description:y("Open the authentication application previously configured on your cell phone.")},{icon:t(io,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Locate the authentication code"),description:y("Look for the 6-digit authentication code displayed in the app.")},{icon:t(ia,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Enter the code and confirm"),description:y("Enter the 6-digit code in the field below and confirm the operation.")}];return r(e,{children:[r(eH,{children:[y("Validate your code with the authenticator code generated in your app.")," ",o]}),i.map((e,i)=>r(R,{gap:2,flexDirection:"row",children:[e.icon,r(R,{justifyContent:"center",children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[i+1,"\xb0 - ",e.title]}),t(eH,{children:e.description})]})]},i))]})}if(h){let e=[{icon:t(ii,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Access your phone"),description:y("Open the WhatsApp or SMS application on your cell phone.")},{icon:t(io,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Locate the authentication code"),description:y("Look for the 6-digit authentication code displayed in the WhatsApp or SMS.")},{icon:t(ia,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Enter the code and confirm"),description:y("Enter the 6-digit code in the field below and confirm the operation.")}];return r(R,{sx:{flexDirection:"column",gap:1},children:[t(eH,{children:y("We send a validation code to {{phoneNumber}}.",{phoneNumber:u})}),t(eH,{children:y("The code will be valid for 10 minutes after we send it.")}),e.map((e,i)=>r(R,{gap:2,flexDirection:"row",children:[e.icon,r(R,{justifyContent:"center",children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[i+1,"\xb0 - ",e.title]}),t(eH,{children:e.description})]})]},i))]})}if(!m&&!h&&p){let e=[{icon:t(ir,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Access your email"),description:y("Open your email and look for the message with the authentication code.")},{icon:t(io,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Locate the authentication code"),description:y("Look for the 6-digit authentication code displayed in the email.")},{icon:t(ia,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Enter the code and confirm"),description:y("Enter the 6-digit code in the field below and confirm the operation.")}];return r(iJ,{sx:{flexDirection:"column",gap:1},children:[r(eH,{children:[y("We send a validation code to {{email}}.",{email:p})," ",o]}),t(eH,{children:y("The code will be valid for 10 minutes after we send it.")}),e.map((e,i)=>r(R,{gap:2,flexDirection:"row",children:[e.icon,r(R,{justifyContent:"center",children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[i+1,"\xb0 - ",e.title]}),t(eH,{children:e.description})]})]},i))]})}})(),r(R,{children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[y("Authentication code"),":"]}),t(nX,{name:x})]})]})})},cC={ACTIVE:"#FF9800",REJECTED:"#ff7f50",CANCELED:"#FF9800",EXPIRED:"#ff7f50",CREATED:"#e6cf00ff",CONCLUDED:"#4CAF50",PAID:"#4CAF50",SCHEDULED:"#FF9800",REQUESTED:"#e6cf00ff"},cy=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${cC[e]} !important`,color:"white !important",...r},...i}),cb=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${cC[e]} !important`,color:"white !important",...r},...i}),cv=()=>r("svg",{width:"259",height:"259",viewBox:"0 0 259 259",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("g",{clipPath:"url(#clip0_41_572)",children:[t("path",{d:"M240.166 54.3437C238.354 51.4256 236.323 48.5625 234.181 45.9196C216.391 24.0059 193.165 14.7559 166.645 8.5342C139.246 2.09224 107.125 0.110096 80.824 11.6726C74.6194 14.4256 68.7443 18.0595 64.0772 23.0149C46.4518 41.68 40.4119 72.9538 20.8098 97.6756C1.20775 122.397 -8.3462 153.176 9.22429 182.412C16.6917 194.801 26.1908 204.987 37.392 213.961C51.2287 224.973 63.1437 239.894 79.1768 248.484C95.9786 257.513 118.381 260.707 136.995 256.522C158.244 251.787 170.653 232.957 186.851 220.183C199.644 210.052 214.909 203.445 227.428 193.039C246.591 177.071 261.141 151.359 258.725 125.921C256.364 101.199 253.289 75.5416 240.166 54.3437Z",fill:"#D4F8EE"}),t("path",{opacity:"0.7",d:"M240.166 54.3437C238.354 51.4256 236.323 48.5625 234.181 45.9196C216.391 24.0059 193.165 14.7559 166.645 8.5342C139.246 2.09224 107.125 0.110096 80.824 11.6726C74.6194 14.4256 68.7443 18.0595 64.0772 23.0149C46.4518 41.68 40.4119 72.9538 20.8098 97.6756C1.20775 122.397 -8.3462 153.176 9.22429 182.412C16.6917 194.801 26.1908 204.987 37.392 213.961C51.2287 224.973 63.1437 239.894 79.1768 248.484C95.9786 257.513 118.381 260.707 136.995 256.522C158.244 251.787 170.653 232.957 186.851 220.183C199.644 210.052 214.909 203.445 227.428 193.039C246.591 177.071 261.141 151.359 258.725 125.921C256.364 101.199 253.289 75.5416 240.166 54.3437Z",fill:"#D4F8EE"}),t("path",{d:"M204 81.0021V57.0662H201.82V26.3657C201.82 15.9067 193.414 7.47708 183.036 7.42505C183.036 7.42505 183.036 7.42505 182.984 7.42505H81.7438C71.3136 7.42505 62.9072 15.8547 62.9072 26.3137C62.9072 26.3137 62.9072 26.3137 62.9072 26.3657V232.631C62.9072 243.09 71.3655 251.52 81.7438 251.52H182.984C193.414 251.52 201.82 243.038 201.82 232.631V101.4H204V87.2463H201.82V81.0021H204Z",fill:"#707070",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M85.9462 10.0789H178.728C190.248 10.0789 199.588 19.4451 199.588 30.9968V227.948C199.588 239.5 190.248 248.866 178.728 248.866H85.9462C74.4264 248.866 65.0859 239.5 65.0859 227.948V30.9968C65.0859 19.4451 74.4264 10.0789 85.9462 10.0789Z",fill:"#263238",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M177.068 11.796H139.707L139.655 11.9521C138.565 15.9587 136.022 18.5605 133.168 18.5605H131.56C128.758 18.5605 126.215 15.9587 125.073 11.9521V11.796H87.6598C77.2296 11.796 68.8232 20.2776 68.8232 30.6846V219.102C68.8232 229.561 77.2815 237.991 87.6598 237.991H177.017C187.395 237.991 195.853 229.561 195.853 219.102V30.6846C195.905 20.2776 187.447 11.796 177.068 11.796Z",fill:"white",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M177.069 11.796H139.707L139.655 11.9521C138.565 15.9587 136.022 18.5605 133.168 18.5605H131.56C128.758 18.5605 126.215 15.9587 125.073 11.9521V11.796H87.6598C77.2296 11.796 68.8232 20.2776 68.8232 30.6846V32.818H195.905V30.6846C195.905 20.2776 187.447 11.796 177.069 11.796Z",fill:"#03D69D"}),t("path",{d:"M181.323 120.601C181.323 116.178 187.342 110.922 186.252 106.811C185.111 102.544 177.275 101.088 175.096 97.341C172.968 93.5945 175.563 85.9975 172.501 82.9274C169.44 79.8574 161.915 82.5111 158.127 80.3257C154.339 78.1402 152.938 70.283 148.683 69.1382C144.584 68.0455 139.395 74.0815 134.932 74.0815C130.469 74.0815 125.28 68.0455 121.181 69.1382C116.926 70.283 115.473 78.1402 111.737 80.3257C108 82.4591 100.424 79.8574 97.3626 82.9274C94.301 85.9975 96.9475 93.5425 94.768 97.341C92.5886 101.14 84.753 102.544 83.6114 106.811C82.5217 110.922 88.5411 116.126 88.5411 120.601C88.5411 125.076 82.5217 130.279 83.6114 134.39C84.753 138.657 92.5886 140.114 94.768 143.86C96.8956 147.607 94.301 155.204 97.3626 158.274C100.424 161.344 107.948 158.69 111.737 160.875C115.525 163.061 116.926 170.918 121.181 172.063C125.28 173.156 130.469 167.12 134.932 167.12C139.395 167.12 144.584 173.156 148.683 172.063C152.938 170.918 154.391 163.061 158.127 160.875C161.864 158.69 169.44 161.344 172.501 158.274C175.563 155.204 172.916 147.659 175.096 143.86C177.275 140.062 185.111 138.657 186.252 134.39C187.394 130.279 181.323 125.023 181.323 120.601Z",fill:"#03D69D"}),t("path",{d:"M134.362 139.229L114.332 117.999C113.398 116.958 113.398 115.345 114.435 114.408C115.473 113.472 117.082 113.472 118.016 114.513L133.739 131.216L153.613 102.336C154.34 101.14 155.897 100.775 157.09 101.504C158.284 102.232 158.647 103.793 157.92 104.99C157.868 105.042 157.817 105.146 157.765 105.198L134.362 139.229Z",fill:"white"}),t("path",{d:"M74.375 199.797H113.449",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M144.792 204.949H158.024",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M133.843 204.949H142.042",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M101.048 204.949H130.678",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M74.375 204.949H97.3628",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M124.295 210.465H150.033",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M101.463 210.465H121.078",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M74.375 210.465H98.2969",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M184.021 215.928H187.187",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M160.307 215.928H181.738",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M118.379 215.928H154.807",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M83.7158 215.928H114.695",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M74.375 215.928H80.083",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M131.974 14.5018C132.949 14.5018 133.739 13.7097 133.739 12.7326C133.739 11.7555 132.949 10.9634 131.974 10.9634C131 10.9634 130.21 11.7555 130.21 12.7326C130.21 13.7097 131 14.5018 131.974 14.5018Z",fill:"#707070"}),t("path",{d:"M156.104 19.7573H154.443V23.9721H156.104V19.7573Z",fill:"white"}),t("path",{d:"M158.335 18.9247H156.675V23.9721H158.335V18.9247Z",fill:"white"}),t("path",{d:"M160.567 18.3003H158.906V23.92H160.567V18.3003Z",fill:"white"}),t("path",{d:"M162.798 17.2596H161.138V23.92H162.798V17.2596Z",fill:"white"}),t("path",{d:"M183.555 23.816H173.488V17.6759H183.555V23.816ZM174.059 23.2957H182.984V18.2483H174.059V23.2957Z",fill:"white"}),t("path",{d:"M180.182 18.8207H174.889V22.6712H180.182V18.8207Z",fill:"white"}),t("path",{d:"M184.437 20.0175H183.191V21.4744H184.437V20.0175Z",fill:"white"}),t("path",{d:"M169.804 22.5151C169.752 22.5151 169.648 22.5151 169.596 22.4631C167.521 21.2663 166.172 22.359 166.12 22.4111C165.964 22.5672 165.756 22.5672 165.601 22.4631C165.445 22.307 165.445 22.0989 165.549 21.9428L165.601 21.8907C165.653 21.8387 167.417 20.3297 169.96 21.8387C170.115 21.9428 170.219 22.1509 170.115 22.359C170.063 22.4111 169.96 22.5151 169.804 22.5151Z",fill:"white"}),t("path",{d:"M170.581 21.2143C170.529 21.2143 170.426 21.2143 170.374 21.1622C167.416 19.393 165.444 21.1102 165.392 21.1102C165.237 21.2663 165.029 21.2143 164.873 21.1102C164.718 20.9541 164.77 20.7459 164.925 20.5898C164.925 20.5898 167.364 18.5085 170.789 20.5378C170.945 20.6419 171.048 20.85 170.945 21.0582C170.841 21.1622 170.685 21.2143 170.581 21.2143Z",fill:"white"}),t("path",{d:"M171.257 19.8093C171.205 19.8093 171.101 19.8093 171.049 19.7573C167.313 17.5198 164.822 19.6012 164.718 19.7052C164.563 19.8613 164.303 19.8093 164.199 19.6532C164.044 19.4971 164.096 19.2369 164.251 19.1328C164.303 19.1328 167.261 16.5831 171.464 19.0808C171.62 19.1849 171.724 19.393 171.62 19.6012C171.516 19.7052 171.36 19.8093 171.257 19.8093Z",fill:"white"}),t("path",{d:"M168.661 23.1395C168.661 23.6599 168.246 24.0761 167.727 24.0761C167.208 24.0761 166.793 23.6599 166.793 23.1395C166.793 22.6192 167.208 22.2029 167.727 22.2029C168.246 22.2029 168.661 22.6192 168.661 23.1395Z",fill:"white"})]}),t("defs",{children:t("clipPath",{id:"clip0_41_572",children:t("rect",{width:"259",height:"259",fill:"white"})})})]}),cw=({children:e,color:r})=>{let i=Q();return t(iJ,{sx:{alignItems:"center",gap:1,backgroundColor:r||i.palette.primary.main,padding:"5px 32px 5px 10px",borderRadius:"5px 0 0 5px",clipPath:"polygon(100% 0,0% 0%,0% 100%,100% 100%,calc(100% - 20px) 50%)"},children:e})},cM=({chargeData:e})=>{let{t:i}=eW(),a=Q();if(!e?.discount)return null;let o=l8(e.discount/100);return r(cw,{children:[t(V,{children:"\uD83E\uDD11"}),r(V,{color:a.palette.tertiary.main,sx:{fontSize:"16px"},children:[i("You earned")," ",t("b",{children:o})," ",i("of discount")]})]})},cI=({chargeData:e})=>{let{t:i}=eW(),a=Q();if(!e?.cashback||e.cashback?.status!==lW)return null;let o=l8(e.cashback.value/100);return r(cw,{children:[t(V,{children:"\uD83E\uDD11"}),r(V,{color:a.palette.tertiary.main,sx:{fontSize:"16px"},children:[t("b",{children:o})," ",i("cashback on time!")]})]})},cE=({charge:i,companyName:a})=>{let{t:o}=eW(),n=o("To pay"),l=o("to {{companyName}}",{companyName:a}),s=da(i?.value/100),d=da(i?.valueWithDiscount/100);return t(V,{sx:{fontSize:"24px",fontWeight:"800",textAlign:"center"},children:i?.value||i?.valueWithDiscount?"number"==typeof i?.valueWithDiscount&&i?.value!==i?.valueWithDiscount?r(e,{children:[n,t(V,{component:"span",sx:{color:"#b2b2b2ff",textDecoration:"line-through",fontSize:"24px",fontWeight:"800"},children:s+" "}),d," ",l," ",o("via Pix")]}):`${n} ${o("{{finalValue}}",{finalValue:(()=>{let{finalValue:e}=i?.decodedBrCode||{};return e?da(e/100):i?.valueWithDiscount?da(i?.valueWithDiscount/100):da(i.value/100)})()})} ${l} ${o("via Pix")}`:o("Define the payment value")})},cS={ALL:"ADMIN"};cS.ALL,cS.ALL,cS.ALL;let cA=({projectType:e})=>{let{t:i}=eW(),a=Q(),o="WOOVI"===e?r(eF,{t:i,i18nKey:"100% encrypted payment via Woovi",children:["100% encrypted payment via"," ",t(I,{href:"https://woovi.com/?utm_source=payment_link&utm_medium=logo",target:"_blank",rel:"noopener noreferrer",children:t(nH,{color:a.palette.grey[400],height:"14px"})})]}):r(eF,{t:i,i18nKey:"100% encrypted payment via OpenPix",children:["100% encrypted payment via"," ",t(I,{href:"https://woovi.com/?utm_source=payment_link&utm_medium=logo",target:"_blank",rel:"noopener noreferrer",children:"OpenPix"})]});return r(iJ,{sx:{flexDirection:"column",pb:"10px"},children:[t(V,{sx:{fontSize:16,textAlign:"center",color:a.palette.grey[400]},children:o}),r(V,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:a.palette.grey[400]},children:["(v",nj,")"]})]})},ck=({value:e,onError:r,debounceDelay:i=1e3})=>{let{t:a}=eW(),{enqueueSnackbar:o}=t3();return t(lH,{value:e,debounceDelay:i,onError:()=>{o(a("Error copying Barcode"),{variant:"error"}),r&&r(!0)},"data-testid":"btn-copy-barcode-payment-link",children:a("Copy Barcode")})},cT=({value:e,onError:r,debounceDelay:i=1e3})=>{let{t:a}=eW(),{enqueueSnackbar:o}=t3();return t(lH,{value:e,debounceDelay:i,onError:async()=>{o(a("Error copying QR Code"),{variant:"error"}),r&&r(!0)},"data-testid":"btn-copy-qrcode-payment-link",children:a("Copy QR Code")})},cD=({projectType:e})=>t(cA,{projectType:e}),cR=({qrCodeShow:e,setQrCodeShow:r})=>{let{t:i}=eW();return t(iJ,{sx:{flex:1,"@media (min-width: 600px)":{display:"none"}},children:t(ij,{variant:"outlined",color:"tertiary",onClick:()=>r(!e),startIcon:t(is,{color:"tertiary"}),size:"large",sx:e=>({display:"flex !important",width:"100% !important",color:`${e.palette.tertiary.main} !important`,borderColor:`${e.palette.tertiary.main} !important`,backgroundColor:"transparent !important","&:hover":{boxShadow:"none !important",textDecoration:"none !important",backgroundColor:`${e.palette.action.hover} !important`,border:`1px solid ${e.palette.tertiary.main} !important`}}),fullWidth:!0,children:t(V,{component:"span",sx:{textTransform:"uppercase"},children:i(e?"Hide QR Code":"Show QR Code")})})})},cL=({title:e,value:i,variant:a="h6"})=>r(ee,{direction:"row",sx:{justifyContent:"space-between"},gap:10,children:["string"!=typeof e?e:t(eH,{variant:a,children:e}),t(eH,{variant:a,fontWeight:"bold",children:"number"==typeof i?dn(i):i})]}),c_=({children:e,value:r,labelPlacement:i="start",cardProps:a={},radioTestId:o=null,useFormik:n=!1})=>{let l=Q(),s=ip(),d=n?null:r===s?.value;return t(iX,{...a,borderRadius:void 0,sx:{...a.sx,p:1,transition:"none",backgroundColor:d?X(l.palette.primary.light,.95):void 0,borderColor:d?`${l.palette.primary.main}`:void 0,boxShadow:d?`inset 0px 0px 0px 1px ${l.palette.primary.main}`:void 0,"&:hover":{backgroundColor:X(l.palette.primary.light,.95),borderColor:`${l.palette.primary.main}`,boxShadow:`inset 0px 0px 0px 1px ${l.palette.primary.main}`}},children:t(id,{sx:{alignItems:"start",marginRight:0},value:r,label:t(iJ,{sx:{width:"100%",mt:1,flexDirection:"column"},children:e}),labelPlacement:i,control:t(ic,{checkedIcon:t(rU,{}),sx:{"& .MuiSvgIcon-root":{fontSize:28}},...o?{inputProps:{"data-testid":o}}:{}}),disableTypography:!0})})},cP=({title:e,description:i,value:a,...o})=>{let n=Q(),l=o.color||n.palette.primary.main;return r(iJ,{sx:{background:X(l,.8),width:"100%",borderRadius:"8px",justifyContent:"space-between",mask:"radial-gradient(6px at right center, #0000 98%, #000) 0 0"},children:[r(iJ,{sx:{flexDirection:"column",padding:"8px 16px",justifyContent:"center"},children:[t(V,{variant:"h6",sx:{fontWeight:"bold"},children:e}),t(V,{children:i})]}),t(iJ,{sx:{background:l,alignItems:"center",justifyContent:"center",padding:"28px 16px",borderRadius:"8px",mask:"radial-gradient(6px at 6px center, #0000 98%, #000) -6px 0"},children:t(V,{color:"white",variant:"h6",sx:{fontWeight:"bold",whiteSpace:"nowrap"},children:a})})]})},cN=eh(null),cO=()=>{let e=eC(cN);if(!e)throw Error("Only should be used on the SwipeableDialog scope");return e},cz=e=>{let{children:r,isOpen:i=!1,onOpenChange:a,closeOnBackdropClick:o=!0}=e,[n,l]=aa(i,a);return t(cN.Provider,{value:{open:n,setOpen:l,closeOnBackdropClick:o},children:r})};cz.displayName="SwipeableDialog";let cH=e=>{let{children:r}=e;return t(tP,{children:r})};function cF(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),!1===r||!i.defaultPrevented)return t?.(i)}}cH.displayName="SwipeableDialogActions";let cW=e=>{let{setOpen:t}=cO(),{children:r,onClick:i}=e;return ec.cloneElement(r,{onClick:cF(()=>{t(!1)},i)})};function cV(e,...t){let r={...e};return t&&t.forEach(e=>{e&&Object.keys(e).forEach(t=>{r[t]&&"object"==typeof r[t]&&"object"==typeof e[t]?r[t]={...r[t],...e[t]}:r[t]=e[t]})}),r}cW.displayName="SwipeableDialogClose";let cB=e=>{let r=Q(),{children:i,dividers:a=!0,sx:o}=e;return t(iJ,{sx:cV({maxHeight:r.sizing.maxModalHeight,overflowY:"auto"},o),children:t(tL,{dividers:a,children:i})})};cB.displayName="SwipeableDialogContent";let cj=({children:e,sx:r})=>{let i=Q(),{open:a,setOpen:o,closeOnBackdropClick:n}=cO();return t(tq,{open:a,onClose:()=>{n&&o(!1)},closeAfterTransition:!0,sx:{"@media (max-width: 600px)":{zIndex:i.zIndex.modal,marginBottom:12}},children:t(oq,{in:a,children:t(eL,{sx:cV({position:"absolute",left:0,bottom:0,right:0,boxShadow:i.shadows[2],borderRadius:1,height:"fit-content","@media (min-width: 600px)":{maxWidth:700,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},r),children:e})})})},cG=e=>{let{children:r,sx:i}=e;return t(tN,{id:"dialog-title",sx:i,children:r})};cG.displayName="SwipeableDialogTitle";let cZ=e=>{let{setOpen:t}=cO(),{children:r,...i}=e;return ec.cloneElement(r,{...i,onClick:cF(i.onClick,()=>{t(!0)})})};cZ.displayName="SwipeableDialogTrigger";let c$=K("div")(({theme:e,fullWidth:t,variant:r})=>({display:"flex",flexDirection:"row-reverse",alignItems:"center",position:"relative",height:"36px",borderRadius:e.shape.borderRadius,color:"outline"===r?e.palette.primary.main:e.palette.common.white,backgroundColor:"outline"===r?e.palette.common.white:"transparent",transition:e.transitions.create("background-color"),...t?{width:"100%"}:{},"&:has(.MuiInputBase-input:focus), &:has(.MuiInputBase-input:not(:placeholder-shown))":{backgroundColor:e.palette.common.white,color:e.palette.tertiary.main},"&:has(.MuiInputBase-input:focus) .MuiButtonBase-root, &:has(.MuiInputBase-input:not(:placeholder-shown)) .MuiButtonBase-root":{color:e.palette.primary.main},[e.breakpoints.up("sm")]:{width:"auto",flexDirection:"row",backgroundColor:"outline"===r?e.palette.common.white:U(e.palette.common.white,.25)}})),cU=K(tm)(({theme:e,variant:t})=>({color:"outline"===t?e.palette.primary.main:e.palette.common.white,padding:e.spacing(0,2),display:"flex",alignItems:"center",justifyContent:"center",[e.breakpoints.up("sm")]:{cursor:"default"}})),cY=K(im)(({theme:e,fullWidth:t})=>({color:"dark"===e.palette.mode?e.palette.tertiary.main:"inherit",[e.breakpoints.down("sm")]:{width:"100%",paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},"& .MuiInputBase-input":{transition:e.transitions.create("create"),[e.breakpoints.up("sm")]:{width:"12ch","&:not(:placeholder-shown), &:focus":{width:t?"100%":"20ch"}}}})),cq=({onDebounceApplied:e,onChange:i,value:a,fullWidth:o=!1,disableMobile:n=!1,variant:l="primary"})=>{let s=t0(e=>e.breakpoints.up("sm")),d=eI(),{t:c}=eW(),[p,m]=eE(!1),h=ra(t=>{e&&a&&e(a,t)},3e3),u=p||s||n;return r(c$,{fullWidth:o,variant:l,children:[t(cU,{variant:l,onClick:()=>{m(!0),d.current!==document.activeElement&&(s||n)&&d.current.focus()},disableRipple:!0,children:t(tH,{sx:{color:"inherit"}})}),u&&t(cY,{name:"search",inputRef:d,type:"search",placeholder:`${c("Search")}...`,autoFocus:p,fullWidth:o,variant:l,inputProps:{"aria-label":"search",maxLength:256,"data-testid":"GlobalSearchField"},value:a,onChange:e=>{i(e)},onBlur:()=>{a||m(!1)},onKeyUp:e=>{"Enter"===e.key?h.cancel():h(e)}})]})},cX=({children:e,size:r="small",...i})=>t(eL,{elevation:0,sx:{width:{xs:"100%",md:"150px"}},children:t(ih,{...i,size:r,sx:{width:"100%"},children:e})}),cK={[o$]:"#4CAF50",[oZ]:"#EF5350"},cQ=({type:e,children:r})=>t(nl,{variant:"body2",color:cK[e],children:r}),cJ=eh(null),c1=()=>eC(cJ),c2=({children:e})=>{let[r,i]=eE(()=>localStorage.getItem("themeMode")||"light"),a=eg(()=>{let e="light"===r?"dark":"light";localStorage.setItem("themeMode",e),i(e)},[r]),o=ew(()=>({toggleTheme:a,themeMode:r}),[r,a]),n="light"===r?lS:lA;return t(cJ.Provider,{value:o,children:t($,{theme:n,children:e})})},c0=K(im)(({theme:e})=>({"& .MuiInputBase-input":{width:"100%",padding:e.spacing(1),backgroundColor:e.palette.background.paper,borderRadius:10,border:`2px solid ${X(e.palette.secondary.main,.8)}`,color:e.palette.secondary.main,fontSize:18,fontWeight:600,paddingLeft:16,transition:e.transitions.create(["border-color","box-shadow"]),"&:focus":{borderRadius:4,borderColor:X(e.palette.primary.main,.5),boxShadow:`0 0 0 0.2rem ${U(e.palette.primary.main,.3)}`}}})),c3=({group:e,value:r,onValueChange:i})=>t(ig,{sx:{width:"100%"},children:t(iC,{value:r,onChange:e=>i(e.target.value),input:t(c0,{}),children:e.map((e,r)=>t("option",{value:e.value,children:e.text},`mobile-item-${r}`))})}),c4=K(iu)(({theme:e})=>({minWidth:145,borderWidth:e.shape.borderWidth,borderColor:X(e.palette.secondary.main,.8),borderRadius:e.shape.borderRadius,textTransform:"none",fontSize:"14px",fontWeight:"600",padding:"0px 8px",color:X(e.palette.secondary.main,.8),"&.Mui-selected":{color:e.palette.secondary.main,backgroundColor:"transparent"}})),c5=({group:e,exclusive:r=!0,canValueBeNull:i=!0,initialValue:a,onValueChange:o})=>{let[n,l]=eE(()=>r?a??null:a?[a]:[]);return t0("(max-width: 600px)")?t(c3,{group:e,value:n,onValueChange:e=>{l(e),o&&o(e)}}):t(ix,{exclusive:r,value:n,onChange:(e,t)=>{if(i||r&&null!==t||Array.isArray(t)&&t.length>0){l(t),o&&o(t);return}},children:e.map((e,r)=>t(c4,{value:e.value,children:e.text},`${e.text}-${r}`))})},c6=({value:e,row:t})=>({value:e,row:t}),c9=rx(),c7=e=>e.type&&!Object.keys(c9).includes(e.type),c8=void 0!==process.env.JEST_WORKER_ID,pe=({columns:e,data:r,onScrollToBottom:i,onCardClick:a,noItemsLabel:o,cardListDefaultHeight:n="calc(100vh - 156px)"})=>{let l=eI(),[s,d]=eE(r.length);ey(()=>{r.length!==s&&d(r.length)},[r.length]);let c=iy({count:s,estimateSize:()=>80,overscan:10,getScrollElement:()=>l.current}),{t:p}=eW(),[m,h]=eE(n);ey(()=>{let[e]=[...c.getVirtualItems()].reverse();e&&e.index>=r.length-1&&i()},[r.length,c.getVirtualItems()]),ev(()=>{h(c.getVirtualItems().length<10?c.getVirtualItems().reduce((e,t)=>e+t.size,0):n)},[r.length,c.getVirtualItems()]);let u=(e,t)=>{if(a)return a({row:e},t)};if(0===r.length)return o?t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(V,{variant:"h6",children:o})}):t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(V,{variant:"h6",children:p("No items")})});let x=sl(e),f=c8?Array.from({length:r.length},(e,t)=>({index:t,start:0})):c.getVirtualItems();return s&&t("div",{"data-testid":"use-virtualizer",ref:l,className:"List",style:{height:m,width:"100%",overflow:"auto"},children:t("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:f.map(e=>{let i=r[e.index];return t("div",{"data-index":e.index,ref:c.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e.start}px)`,marginBottom:"16px"},children:t(pt,{columns:x,row:i,onCardClick:a,handleCardClick:u})},e.index)})})})},pt=e=>{let{columns:r,row:i,onCardClick:a,handleCardClick:o}=e;return t(ng,{cardProps:{sx:{cursor:a?"pointer":"default"},onClick:e=>o&&o(i,e)},children:r.map((e,r)=>{var a,o,n,l;let s;return t(nx,{label:e.headerName,value:(a=i,s=(n="function"==typeof(o=e).valueGetter?o.valueGetter({row:a}):a[o.field],c7(l=o)?l.type in si&&"function"==typeof si[l.type].valueFormatter?si[l.type].valueFormatter({value:n,field:l.field}):n:"function"==typeof l.valueFormatter?l.valueFormatter({value:n,field:l.field}):n),(o.renderCell?o.renderCell(c6({value:s,row:a})):c7(o)?o.type in si&&si[o.type].renderCell?si[o.type].renderCell(c6({value:s,row:a})):s:s)??"-"),alignField:e.alignField},r)})})},pr=({minWidth:e=50})=>t(rT,{width:ew(()=>Math.max(e-10,120*Math.random()),[]),animation:"wave",variant:"text"}),pi=({size:e=10,...r})=>{let i=r.columns.map(e=>({...e,renderCell:()=>t(pr,{})}));return t("div",{"data-testid":"loading",children:Array.from({length:e},e=>({id:e})).map((e,r)=>t(pt,{columns:i,row:e},r))})},pa=()=>({cell:e=>{let t=e.getValue();return null===t?"-":"number"!=typeof t?t:l8(t/100)}}),po={DATETIME:"DATETIME",DATE:"DATE",TIME:"TIME"},pn=(e=po.DATE)=>({cell:t=>{let r=t.getValue();return r&&tb(r).isValid()?e===po.DATETIME?tb(r).format("DD-MM-YYYY HH:mm"):e===po.TIME?tb(r).format("HH:mm"):tb(r).format("DD-MM-YYYY"):"-"}}),pl=e=>({cell:r=>{let i=r.getValue();return i?t("a",{href:e(r?.row?.original),rel:"noreferrer noopener",target:"_blank",onClick:e=>e.stopPropagation(),children:i}):"-"}}),ps=[{id:"00",name:"Payload Format Indicator",format:"N",presence:"M"},{id:"01",name:"Point Of Initiation Method",format:"N",presence:"O"},{id:"02",name:"Merchant Account Information - Visa",format:"N",presence:"O"},{id:"03",name:"Merchant Account Information - Visa",format:"N",presence:"O"},{id:"04",name:"Merchant Account Information - Mastercard",format:"N",presence:"O"},{id:"05",name:"Merchant Account Information - Mastercard",format:"N",presence:"O"},{id:"26",name:"Merchant Account Information - Pix",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Pix Key",format:"ans",presence:"M"},{id:"02",name:"infos adicionais",format:"ans",presence:"M",size:{min:1,max:72}},{id:"25",name:"url",format:"ans",presence:"M",size:{min:1,max:72},variable:"url"},{id:"03",name:"fss",format:"ans",presence:"M",size:{min:8,max:8}}]},{id:"27",name:"Merchant Account Information - Outro",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Account ID",format:"ans",presence:"M"}]},{id:"29",name:"Merchant Account Information",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"05",name:"Merchan Account Information",format:"ans",presence:"M"}]},{id:"31",name:"Merchant Account Information",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"03",name:"Merchan Account Information",format:"ans",presence:"M"},{id:"05",name:"Merchan Account Information",format:"ans",presence:"M"}]},{id:"52",name:"Merchant Category Code",format:"N",presence:"M"},{id:"53",name:"Transaction Currency",format:"N",presence:"M"},{id:"54",name:"Transaction Amount",format:"ans",presence:"C"},{id:"55",name:"Tip or Convenience Indicator",format:"ans",presence:"C",template:[{id:"01",name:"Confirm Tip",format:"ans",presence:"M"}]},{id:"58",name:"Country Code",format:"ans",presence:"M"},{id:"59",name:"Merchant Name",format:"ans",presence:"M"},{id:"60",name:"Merchant City",format:"ans",presence:"M"},{id:"61",name:"Postal Code",format:"ans",presence:"O"},{id:"62",name:"Additional Data Field Template",format:"ans",presence:"O",template:[{id:"03",name:"Store Label",format:"ans",presence:"M"},{id:"05",name:"Reference Label",format:"ans",presence:"M"},{id:"06",name:"Customer Label",format:"ans",presence:"M"},{id:"07",name:"Terminal Label",format:"ans",presence:"M"},{id:"09",name:"Additional Consumer Data Request",format:"ans",presence:"M"},{id:"50",name:"Payment system specific template",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Version",format:"ans",presence:"M"}]}]},{id:"63",name:"CRC",format:"ans",presence:"M",valid:!0},{id:"64",name:"Merchant Alternate Language",format:"ans",presence:"O",template:[{id:"00",name:"Language Preference",format:"ans",presence:"M"},{id:"01",name:"Merchant Name - Alternate Language",format:"ans",presence:"M"},{id:"02",name:"Merchant City in Alternate Language",format:"ans",presence:"M"}]},{id:"80",name:"Unreserved Templates",format:"ans",presence:"O",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"URL",format:"ans",presence:"M"},{id:"25",name:"URL",format:"ans",presence:"M",size:{min:1,max:99},variable:"url"}]},{id:"81",name:"Unreserved Templates",format:"ans",presence:"O",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Other Info",format:"ans",presence:"M"}]},{id:"91",name:"Unreserved Templates",format:"ans",presence:"O",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Other Info",format:"ans",presence:"M"},{id:"07",name:"Merchant Loyalty Identifier",format:"ans",presence:"M"}]}],pd=(e,t)=>{let r=[],i=0;for(var a=e;i<e.length;){var a=e.substring(i);let n=a.substr(0,2),l=parseInt(a.substr(2,2),10),s=a.substr(4,l);var o={id:n,length:l,data:s,nestedTags:[]};let d=e=>e.id===o.id,c=t.find(d);c&&(o.name=c.name,o.format=c.format,o.presence=c.presence,o.template=c.template,c.template&&(o.nestedTags=pd(o.data,o.template))),r.push(o),i+=l+4}return r},pc=tk({table:{width:"100%"}}),pp=({tag:i})=>{let[a,o]=eE(!1),n=!!i.nestedTags.length;return r(e,{children:[r(rK,{children:[t(rQ,{children:n&&t(tm,{"aria-label":"expand row",size:"small",onClick:()=>o(!a),children:a?t(iv,{}):t(ib,{})})}),t(rQ,{component:"th",scope:"row",children:i.id}),t(rQ,{children:i.name}),t(rQ,{children:i.length}),t(rQ,{children:i.data})]}),n&&t(rK,{children:t(rQ,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:t(iw,{in:a,timeout:"auto",unmountOnExit:!0,style:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"30px"},children:t(pm,{tags:i.nestedTags})})})})]})},pm=({tags:e})=>r(rF,{className:pc().table,size:"small","aria-label":"QR Code Data Table",children:[t(rJ,{children:r(rK,{children:[t(rQ,{}),t(rQ,{children:"ID"}),t(rQ,{children:"EMV Name"}),t(rQ,{children:"Size"}),t(rQ,{children:"Data"})]})}),t(r7,{children:e.map((e,r)=>t(pp,{tag:e},r))})]}),ph=({emv:e})=>{let[r,i]=eE(null);return(ey(()=>{e?i(pd(e,ps)):i(null)},[e]),r)?t(rW,{component:eL,children:t(pm,{tags:r})}):null},pu=()=>{let{toggleTheme:e,themeMode:r}=c1();return t(tm,{onClick:e,sx:{color:"common.white"},children:"light"===r?t(iM,{}):t(iI,{})})},px=({children:e})=>t(iE,{sx:{p:0,m:0,[`& .${iR.root}:before`]:{flex:0,padding:0}},children:e}),pf={CHARGE:t(e4,{fontSize:"small"}),DISPUTE:t(e5,{fontSize:"small"}),EMAIL:t(eY,{fontSize:"small"}),SMS:t(e0,{fontSize:"small"}),WHATSAPP:t(e6,{fontSize:"small"}),DATA_EXPORT:t(eQ,{fontSize:"small"}),CHARGE_EDIT:t(eU,{fontSize:"small"}),ACCOUNT_REGISTER:t(eJ,{fontSize:"small"}),TRANSACTION:t(e$,{fontSize:"small"})},pg=({title:e,time:i,color:a="primary",icon:o,onClick:n,isFirstItem:l=!1,isLastItem:s=!1})=>r(iT,{sx:{":hover":{cursor:n?"pointer":""}},onClick:n,children:[r(iD,{children:[t(iS,{sx:{backgroundColor:l?"transparent":"default"}}),t(ik,{color:a||"primary",sx:{boxShadow:"none"},children:o}),t(iS,{sx:{backgroundColor:s?"transparent":"default"}})]}),t(iA,{sx:{display:"flex",alignItems:"center",pr:0,pl:"8px"},children:t(iX,{sx:{p:1,flex:1},children:r(iJ,{sx:{justifyContent:"space-between"},children:[r(iJ,{sx:{flexDirection:"column"},children:[t(V,{fontWeight:"bold",children:e}),t(V,{color:"GrayText",children:tb(i).format("DD-MM-YYYY HH:mm")})]}),n&&t(eV,{fontSize:"small",color:"action"})]})})})]}),pC={ACCOUNT_REGISTER_COMPLETED:"success",ACCOUNT_REGISTER_REJECTED:"error",ACCOUNT_REGISTER_REQUESTED:"primary",CHARGE_CREATE:"primary",CHARGE_COMPLETED:"primary",CHARGE_EXPIRED:"error",CHARGE_EMAIL_SENT:"info",CHARGE_DUPLICATED:"success",CHARGE_ATTACH_TRANSACTION:"warning",CHARGE_VIEWED:"info",EMAIL_SENT:"info",EMAIL_DELIVERED:"info",EMAIL_VIEWED:"success",EMAIL_OPENED:"success",SMS_SENT:"info",SMS_DELIVERED:"info",SMS_VIEWED:"success",DATA_EXPORT_COMPLETED:"success"},py=({color:e="primary",icon:i,isFirstItem:a=!1,isLastItem:o=!1,children:n})=>r(iT,{children:[r(iD,{children:[t(iS,{sx:{backgroundColor:a?"transparent":"default"}}),t(ik,{color:e||"primary",sx:{boxShadow:"none"},children:i}),t(iS,{sx:{backgroundColor:o?"transparent":"default"}})]}),t(iA,{sx:{display:"flex",alignItems:"center",pr:0,pl:"8px"},children:n})]}),pb=({label:e,name:r})=>t(tY,{size:"medium",variant:"outlined",avatar:t(iP,{name:r,size:20}),label:dh(e)?rE(e):e,sx:{fontSize:"14px",backgroundColor:"transparent"}}),pv=({children:r,loading:i=null})=>{let[a,o]=eE(!1);return ey(()=>{"u">typeof window&&o(!0)},[]),t(e,{children:a?r:i})},pw=({children:e})=>t0(Q().breakpoints.up("sm"))?e:null,pM=({children:e})=>t0(Q().breakpoints.down("sm"))?e:null,pI=ex(({children:e,...r},i)=>t(iJ,{tabIndex:-1,ref:i,sx:{height:"100%",width:"100%"},children:t(y,{mountOnEnter:!0,unmountOnExit:!0,...r,children:e})})),pE=({open:e,onClose:i,title:a,children:o,cancelDragOnContent:n=!1,x:l=0,y:s=0,width:d=500,height:c=500,minWidth:p=200,minHeight:m=200})=>{let h=Q();return e?t(iL,{default:{x:l,y:s,width:d,height:c},style:{zIndex:h.zIndex.appBar+1},minWidth:p,minHeight:m,bounds:"window",...!n?{}:{cancel:".no-drag"},children:t(pI,{in:e,children:r(tn,{sx:{width:"100%",height:"100%",display:"flex",backgroundColor:h.palette.background.paper,boxShadow:h.shadows[3],borderRadius:"4px",flexDirection:"column"},children:[r(iJ,{sx:{py:1,pl:2,pr:1,alignItems:"center",justifyContent:"space-between"},children:[t(eH,{variant:"subtitle1",fontWeight:600,color:"black",children:a}),t(tm,{onClick:i,children:t(rs,{})})]}),t(tG,{}),t(tn,{className:"no-drag",sx:{width:"100%",overflow:"hidden"},children:o})]})})}):null};export{nV as AccountInfoLabel,aI as ActionMargin,nB as AdditionalInfo,i_ as AvatarCircle,ni as Banner,no as BannerError,nn as BannerInfos,pv as BrowserOnly,l_ as ButtonMenu,lP as ButtonMenuItem,lU as CLICK_PIX_BUTTON_VARIANT,pt as CardColumn,lG as CardCopy,nf as CardFieldCentered,pi as CardListLoading,nh as CardSelectable,nu as CardWithIcon,lZ as CardWithImage,lV as CashbackTagStatus,po as CellDateTypeEnum,nW as ChargeTagStatus,lY as ClickPixButton,l$ as ClickPixLogo,cy as CobrTagStatus,cb as CobrTryTagStatus,ar as Code,ai as Collapse,am as CollapsibleFillWrapper,aC as CollapsibleTreeActions,aS as Content,lH as CopyButton,lj as CopyInput,dV as DEFAULT_QUEUE_ACTIONS,lC as DOCUMENT_TYPE,sp as DataGridDetailContainer,sh as DataGridLoading,pw as DesktopOnly,nd as DonateWithClickButton,nM as DrawerResponsiveWrapper,nA as ErrorViewBoundary,l2 as GRID_DATETIME_CUSTOM_COL_DEF,ss as GridDensityTypes,pu as HeaderButtonTheme,aA as IntroText,a7 as LayoutRoot,cQ as LedgerStatementText,nN as Logo,le as MenuList,pM as MobileOnly,os as Modal,nz as OpenPixLogoColor,cE as PayPixValueCompany,n$ as PixTransactionTypeTag,ch as QRCodeWrapper,ou as QuestionTooltip,c_ as RadioCard,lL as ReactRouterLinkBehavior,sL as RightTopDiagonalVector,a6 as SVG,ok as SafeTextTooltip,n3 as ScreenHeaderUI,oO as ScreenHeaderUIResponsive,oV as ScreenHeaderUITempGreen,oG as ScreenHeaderUITempWhite,lr as Sidebar,oi as SidebarContext,oa as SidebarProvider,cz as SwipeableDialog,cH as SwipeableDialogActions,cW as SwipeableDialogClose,cB as SwipeableDialogContent,cj as SwipeableDialogModal,cG as SwipeableDialogTitle,cZ as SwipeableDialogTrigger,oX as SwipeableModal,pf as TIMELINE_APPEVENT_DOMAIN_ICON,pC as TIMELINE_APPEVENT_TYPE_COLOR,oK as TRANSACTION_TAG_ENTRYTYPE_COLOR,o8 as TRANSACTION_TAG_STATUS_COLOR,ph as TablePixEMV,su as TableViewModelEnum,lu as TagWebhookStatus,lx as Terms,lf as TermsLink,lk as ThemeMuiDispute,lS as ThemeMuiTheme,pg as TimelineAppEventItem,py as TimelineItem,px as Timeline,oJ as TransactionTagEntryType,ne as TransactionTagStatus,aM as TransparencyCollapsibleWrapper,pE as WindowPopper,cc as WooviLink,nr as LoginWrapper,iP as Avatar,iz as AvatarGroup,iH as AvatarGroupArray,iF as AvatarGroupSelectedAll,np as CardBasicContext,aX as buildSchemeGenerator,ij as ActionButton,iG as DangerButton,lF as PayWithPixButton,iZ as ResponsiveSplitButton,i$ as SplitButton,i8 as CardAnalytics,ae as CardAnalyticsSmall,nx as CardField,ng as CardGrid,at as Grid,i9 as CardWithActions,iX as Card,iK as CardActions,iQ as CardContent,i1 as CardForm,nm as CardList,i2 as CardSkeleton,i0 as CardStep,i3 as CardWithLink,i4 as CardWithLinkSkeleton,l1 as cellTypeBasisToPercentage,l3 as cellTypeExpand,l4 as cellTypeLink,l5 as cellTypePhone,l6 as cellTypeTag,pb as UserChip,ns as DonateClickPixButton,ad as Collapsible,ac as CollapsibleActions,ap as CollapsibleDetails,ah as CollapsibleGroup,au as CollapsibleInfinityActions,ax as CollapsibleStep,ag as CollapsibleStepHeader,ay as CollapsibleTree,ab as ExpandMoreIcon,av as LeafCollapsible,nC as CompanyLogo,oD as ScreenHeaderTitle,aE as ActionMarginText,lJ as Countdown,sc as DataGrid,nL as decodeQueryParamsFromLocation,nv as DialogProvider,cM as EarnDiscount,nw as DrawerCard,nI as ErrorBoundaryWithRetry,nk as ErrorView,nR as FileDrop,aL as Filter,aj as FilterRelayFormik,aG as FormikFilter,aB as useFilterFormik,nP as FieldRow,aW as formatFilters,pa as getCellCurrency,pn as getCellDate,pl as getCellLink,n5 as getItemsPath,nc as getLoadingIconProp,a$ as getShadeOfColor,oQ as getTransactionEntryTypeColors,oI as hasTemp,aZ as SectionHeading,aK as Divider,aD as HorizontalStack,aQ as HoverPopper,aU as hexToRgb,aY as hexToRgbaString,sv as AssineOnlineIcon,sM as BotConversaIcon,sI as CheckIconLabel,aJ as CvvIcon,a1 as DownloadIcon,iB as Icon,sS as MetaIcon,sk as N8nIcon,sT as NfeIcon,sR as NuvemshopIcon,a2 as RejectIcon,a0 as SearchIcon,sP as SocPanelIcon,a3 as SuccessIcon,sO as WabizIcon,sH as WakeIcon,a9 as WarningIcon,oc as WooviLogoInMobile,sW as Dropzone,sG as DropzoneFile,lD as isUnSupportedBrowser,on as LayoutWrapper,nO as LayoutWrapperFluid,nH as WooviLogo,iJ as BoxFlex,nl as Typography,cg as MultiFactorConfirmModal,cu as MultiFactorPixPaymentMatch,cx as MultiFactorPixPaymentMismatch,cf as MultiFactorPixPaymentView,af as CheckIcon,cv as ConfirmedIcon,cI as EarnCashback,cA as PixPaymentWoovi,cL as PaymentLinkRow,ck as CopyBarcode,cT as CopyQRCode,na as ErrorIcon,cD as PaymentFooter,cR as QrCodeShowButton,nq as PinInput,nX as PinInputFormik,of as RefreshButtonRelay,og as RefreshIconButton,ob as SearchInputRelay,ov as TopPagination,cP as RewardTicket,cw as Ribbon,n2 as ContentBoundary,oE as RoutedTabs,oS as TabbedContent,oR as ScreenHeaderCard,cq as GlobalSearchField,cX as Select,n4 as SelectAll,nG as WooviAuthForm,oo as useSidebar,li as CloseSnack,ll as SnackbarProvider,ls as useSnackbar,iW as BackButton,iV as Badge,iU as Circle,iY as CircleButton,lB as ClockIcon,iq as Column,ak as EmptyMessage,aT as EncryptedText,aR as FloatingMenu,oe as LinearProgress,an as Link,ot as Loading,od as OverflowDiv,op as ProgressBar,ox as Row,oC as SearchField,oT as Step,c2 as ThemeProvider,c5 as ToggleButtonGroup,oU as statementColors,oY as TransactionTypeText,lm as Stepper,n_ as stringToBoolean,sy as SwipeableDrawer,pe as CardListVirtualized,sf as TableToggleViewModel,oL as Tag,nt as TagsContainer,ly as TermsModal,lb as TextMultiline,oA as toSafeTruncate,lR as UnsupportedBrowserWarning,sC as useDialog,cO as useSwipeableDialogContext,sg as useTableView,lg as useTerms,c1 as useThemeMode,dF as validateCell,cd as ImportStepper};
|
|
259
|
+
}`}),t("clipPath",{id:"clippath",children:t("rect",{className:"cls-2",x:"-176.26",y:"-1848",width:"1995.52",height:"1126"})}),r("linearGradient",{id:"linear-gradient",x1:"840.33",y1:"-947.8",x2:"1082.58",y2:"-154.2",gradientUnits:"userSpaceOnUse",children:[t("stop",{offset:"0",stopColor:"#fff"}),t("stop",{offset:".97",stopColor:"#000"})]}),t("mask",{id:"mask",x:"-196.74",y:"-2008.25",width:"2088.26",height:"3023.19",maskUnits:"userSpaceOnUse",children:t("rect",{className:"cls-3",x:"-196.74",y:"-2008.25",width:"2088.26",height:"2167.16"})}),r("linearGradient",{id:"linear-gradient-2",x1:"10923.5",y1:"-1899.63",x2:"12869.89",y2:"493.68",gradientTransform:"translate(12906.88) rotate(-180) scale(1 -1)",gradientUnits:"userSpaceOnUse",children:[t("stop",{offset:"0",stopColor:"#fff"}),t("stop",{offset:".23",stopColor:"#606060"}),t("stop",{offset:".52",stopColor:"#fff"}),t("stop",{offset:".77",stopColor:"#000"}),t("stop",{offset:".97",stopColor:"#fff"})]}),t("linearGradient",{id:"linear-gradient-3",x1:"11262.65",y1:"-2175.45",x2:"13209.04",y2:"217.86",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-4",x1:"11202.09",y1:"-2126.2",x2:"13148.48",y2:"267.11",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-5",x1:"11141.68",y1:"-2077.07",x2:"13088.07",y2:"316.24",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-6",x1:"11020.71",y1:"-1978.7",x2:"12967.1",y2:"414.61",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-7",x1:"11020.71",y1:"-1978.7",x2:"12967.1",y2:"414.61",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-8",x1:"10899.74",y1:"-1880.32",x2:"12846.13",y2:"512.99",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-9",x1:"10899.74",y1:"-1880.31",x2:"12846.13",y2:"512.99",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-10",x1:"11113.9",y1:"-2054.49",x2:"13060.3",y2:"338.82",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-11",x1:"11113.9",y1:"-2054.49",x2:"13060.3",y2:"338.82",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-12",x1:"10992.94",y1:"-1956.11",x2:"12939.33",y2:"437.2",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-13",x1:"10992.94",y1:"-1956.11",x2:"12939.33",y2:"437.2",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-14",x1:"10871.97",y1:"-1857.73",x2:"12818.36",y2:"535.58",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-15",x1:"10871.97",y1:"-1857.73",x2:"12818.36",y2:"535.58",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-16",x1:"10751",y1:"-1759.35",x2:"12697.39",y2:"633.96",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-17",x1:"10965.16",y1:"-1933.52",x2:"12911.55",y2:"459.79",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-18",x1:"10965.26",y1:"-1933.6",x2:"12911.65",y2:"459.71",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-19",x1:"10844.19",y1:"-1835.14",x2:"12790.58",y2:"558.17",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-20",x1:"10844.19",y1:"-1835.14",x2:"12790.58",y2:"558.17",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-21",x1:"10723.22",y1:"-1736.76",x2:"12669.61",y2:"656.55",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-22",x1:"10762.45",y1:"-1768.66",x2:"12708.84",y2:"624.65",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-23",x1:"10602.25",y1:"-1638.38",x2:"12548.65",y2:"754.93",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-24",x1:"10641.48",y1:"-1670.28",x2:"12587.87",y2:"723.03",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-25",x1:"10816.42",y1:"-1812.55",x2:"12762.81",y2:"580.76",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-26",x1:"10695.45",y1:"-1714.17",x2:"12641.84",y2:"679.14",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-27",x1:"10695.45",y1:"-1714.17",x2:"12641.84",y2:"679.14",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-28",x1:"10695.45",y1:"-1714.17",x2:"12641.84",y2:"679.14",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-29",x1:"10574.48",y1:"-1615.79",x2:"12520.87",y2:"777.52",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-30",x1:"10453.51",y1:"-1517.41",x2:"12399.9",y2:"875.9",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-31",x1:"10492.74",y1:"-1549.31",x2:"12439.13",y2:"844",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-32",x1:"10667.67",y1:"-1691.58",x2:"12614.06",y2:"701.73",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-33",x1:"10546.7",y1:"-1593.2",x2:"12493.09",y2:"800.11",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-34",x1:"10425.73",y1:"-1494.82",x2:"12372.12",y2:"898.49",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-35",x1:"10304.76",y1:"-1396.44",x2:"12251.16",y2:"996.87",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-36",x1:"10778.77",y1:"-1781.94",x2:"12725.17",y2:"611.37",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-37",x1:"10630.03",y1:"-1660.97",x2:"12576.42",y2:"732.34",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-38",x1:"10481.29",y1:"-1540",x2:"12427.68",y2:"853.31",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-39",x1:"10481.29",y1:"-1540",x2:"12427.68",y2:"853.31",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-40",x1:"10332.54",y1:"-1419.03",x2:"12278.93",y2:"974.28",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-41",x1:"10183.8",y1:"-1298.06",x2:"12130.19",y2:"1095.25",xlinkHref:"#linear-gradient-2"}),t("linearGradient",{id:"linear-gradient-42",x1:"10183.8",y1:"-1298.06",x2:"12130.19",y2:"1095.25",xlinkHref:"#linear-gradient-2"})]}),t("g",{className:"cls-52",children:r("g",{id:"Layer_1","data-name":"Layer 1",children:[r("g",{className:"cls-1",children:[t("rect",{className:"cls-38",x:"-268.24",y:"-2057.56",width:"2179.48",height:"2179.48"}),t("g",{className:"cls-50",children:r("g",{className:"cls-51",children:[t("path",{className:"cls-43",d:"M-168.37-1954.76h1979.46s0,2967.96,0,2967.96H-168.37s0-2967.96,0-2967.96ZM1808.62-1952.3H-165.91V1010.73h1974.53V-1952.3Z"}),r("g",{children:[t("path",{className:"cls-44",d:"M-168.37-224.89H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75-222.43h-244.66V22.23H78.75v-244.66Z"}),t("path",{className:"cls-42",d:"M81.22-226.64V24.7s-251.33,0-251.33,0L81.22-226.64ZM78.75-220.68L-164.16,22.23H78.75v-242.92Z"}),t("path",{className:"cls-48",d:"M-168.37,22.23H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,24.7h-244.66v244.66H78.75V24.7Z"}),t("path",{className:"cls-49",d:"M-168.37,269.36H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,271.82h-244.66v244.66H78.75v-244.66Z"}),t("path",{className:"cls-47",d:"M-113.5,394.15c0-38.56,31.37-69.93,69.93-69.93,38.56,0,69.93,31.37,69.93,69.93,0,38.56-31.37,69.93-69.93,69.93s-69.93-31.37-69.93-69.93ZM-111.04,394.15c0,37.2,30.26,67.46,67.46,67.46,37.2,0,67.46-30.26,67.46-67.46,0-37.2-30.26-67.46-67.46-67.46-37.2,0-67.46,30.26-67.46,67.46Z"}),t("path",{className:"cls-45",d:"M-168.37,516.48H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,518.95h-244.66v244.66H78.75v-244.66Z"}),t("path",{className:"cls-46",d:"M-168.37,516.48h1.23c136.94,0,248.36,111.41,248.36,248.36v1.23s-249.59,0-249.59,0v-249.59ZM-165.91,518.95v244.66H78.75c-.67-134.6-110.05-243.99-244.66-244.66Z"}),t("path",{className:"cls-21",d:"M78.75-224.89h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88-222.43H81.22V22.23h244.66v-244.66Z"}),t("path",{className:"cls-18",d:"M78.75-224.89h1.23c136.94,0,248.36,111.41,248.36,248.36v1.23s-249.59,0-249.59,0v-249.59ZM81.22-222.43V22.23h244.66c-.67-134.6-110.05-243.99-244.66-244.66Z"}),t("path",{className:"cls-19",d:"M78.75,22.23h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,24.7H81.22v244.66h244.66V24.7Z"}),t("path",{className:"cls-20",d:"M78.75,22.23h1.23c136.94,0,248.36,111.41,248.36,248.36v1.23s-249.59,0-249.59,0V22.23ZM81.22,24.7v244.66h244.66c-.67-134.6-110.05-243.99-244.66-244.66Z"}),t("path",{className:"cls-29",d:"M78.75,269.36h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,271.82H81.22v244.66h244.66v-244.66Z"}),t("path",{className:"cls-25",d:"M78.75,270.59v-1.23s249.59,0,249.59,0v249.59s-1.23,0-1.23,0c-136.94,0-248.36-111.41-248.36-248.36ZM81.22,271.82c.67,134.6,110.05,243.99,244.66,244.66v-244.66H81.22Z"}),t("path",{className:"cls-23",d:"M78.75,516.48h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,518.95H81.22v244.66h244.66v-244.66Z"}),t("path",{className:"cls-22",d:"M325.88-224.89h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573-222.43h-244.66V22.23h244.66v-244.66Z"}),t("path",{className:"cls-28",d:"M324.13-224.89h251.33s0,251.33,0,251.33l-251.33-251.33ZM330.08-222.43L573,20.49v-242.92h-242.91Z"}),t("path",{className:"cls-24",d:"M325.88,22.23h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,24.7h-244.66v244.66h244.66V24.7Z"}),t("path",{className:"cls-31",d:"M387.14,147.03c0-35.03,28.5-63.53,63.53-63.53,35.03,0,63.53,28.5,63.53,63.53,0,35.03-28.5,63.53-63.53,63.53-35.03,0-63.53-28.5-63.53-63.53ZM389.61,147.03c0,33.67,27.39,61.06,61.06,61.06,33.67,0,61.06-27.39,61.06-61.06,0-33.67-27.39-61.06-61.06-61.06-33.67,0-61.06,27.39-61.06,61.06Z"}),t("path",{className:"cls-27",d:"M325.88,269.36h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,271.82h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-30",d:"M325.88,269.36h249.59s0,1.23,0,1.23c0,136.94-111.41,248.36-248.36,248.36h-1.23s0-249.59,0-249.59ZM328.34,271.82v244.66c134.6-.67,243.99-110.05,244.66-244.66h-244.66Z"}),t("path",{className:"cls-26",d:"M325.88,516.48h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,518.95h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-33",d:"M325.88,516.48h249.59v1.24c0,136.94-111.41,248.36-248.36,248.36h-1.23s0-249.59,0-249.59ZM328.34,518.95v244.66c134.6-.67,243.99-110.06,244.66-244.66h-244.66Z"}),t("path",{className:"cls-17",d:"M573-224.89h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12-222.43h-244.66V22.23h244.66v-244.66Z"}),t("path",{className:"cls-34",d:"M573,22.23h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,24.7h-244.66v244.66h244.66V24.7Z"}),r("g",{children:[t("path",{className:"cls-32",d:"M609.24,147.03c0-48.83,39.72-88.55,88.56-88.55,48.83,0,88.56,39.72,88.56,88.55,0,48.83-39.72,88.56-88.56,88.56-48.83,0-88.56-39.72-88.56-88.56ZM611.71,147.03c0,47.47,38.62,86.09,86.09,86.09,47.47,0,86.09-38.62,86.09-86.09,0-47.47-38.62-86.09-86.09-86.09s-86.09,38.62-86.09,86.09Z"}),t("path",{className:"cls-16",d:"M661.67,147.03c0-19.92,16.21-36.13,36.13-36.13,19.92,0,36.13,16.21,36.13,36.13,0,19.92-16.21,36.13-36.13,36.13s-36.13-16.21-36.13-36.13ZM664.14,147.03c0,18.56,15.1,33.66,33.66,33.66s33.66-15.1,33.66-33.66c0-18.56-15.1-33.66-33.66-33.66s-33.66,15.1-33.66,33.66Z"})]}),t("path",{className:"cls-7",d:"M573,269.36h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,271.82h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-9",d:"M573,516.48h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,518.95h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-10",d:"M573,516.48h249.59v1.24c0,136.94-111.41,248.36-248.36,248.36h-1.23s0-249.59,0-249.59ZM575.46,518.95v244.66c134.6-.67,243.99-110.06,244.66-244.66h-244.66Z"}),t("path",{className:"cls-8",d:"M820.12-224.89h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25-222.43h-244.66V22.23h244.66v-244.66Z"}),t("path",{className:"cls-6",d:"M820.12,22.23h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,24.7h-244.66v244.66h244.66V24.7Z"}),t("path",{className:"cls-13",d:"M820.12,269.36h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,271.82h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-15",d:"M820.12,516.48h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,518.95h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-11",d:"M-168.37,763.61H81.22s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM78.75,766.07h-244.66v244.66H78.75v-244.66Z"}),t("path",{className:"cls-14",d:"M78.75,763.61h249.59s0,249.59,0,249.59H78.75s0-249.59,0-249.59ZM325.88,766.07H81.22v244.66h244.66v-244.66Z"}),t("path",{className:"cls-5",d:"M325.88,763.61h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM573,766.07h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-12",d:"M371.2,888.4c0-43.82,35.65-79.47,79.47-79.47s79.47,35.65,79.47,79.47c0,43.82-35.65,79.47-79.47,79.47-43.82,0-79.47-35.65-79.47-79.47ZM373.67,888.4c0,42.46,34.55,77.01,77.01,77.01,42.46,0,77-34.55,77-77.01,0-42.46-34.54-77-77-77-42.46,0-77.01,34.54-77.01,77Z"}),t("path",{className:"cls-36",d:"M573,763.61h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM820.12,766.07h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-37",d:"M820.12,763.61h249.59s0,249.59,0,249.59h-249.59s0-249.59,0-249.59ZM1067.25,766.07h-244.66v244.66h244.66v-244.66Z"}),t("path",{className:"cls-35",d:"M820.12,764.84v-1.23s249.59,0,249.59,0v249.59s-1.23,0-1.23,0c-136.94,0-248.36-111.41-248.36-248.36ZM822.59,766.07c.67,134.6,110.05,243.99,244.66,244.66v-244.66h-244.66Z"})]})]})})]}),r("g",{children:[t("path",{className:"cls-40",d:"M282.48,297c.09,1.75.24,3.49.24,5.24.01,95.99.01,191.97.01,287.96,0,16.31-9.03,25.43-25.41,25.56-9.41.08-18.83-.26-28.23.08-17.35.63-30-6.69-38.61-21.59-12.9-22.35-24.45-45.42-36.61-68.16-21.08-39.45-42.03-78.98-62.81-118.59-7.25-13.81-13.55-28.09-19.35-42.58-.52-1.3-1.17-2.55-1.5-3.25,0,9.89-.41,20.24.11,30.56.63,12.43.65,24.85.67,37.27.09,57.24.04,114.48.04,171.72,0,9.71-1.92,12.54-11.62,14.16-12.49,2.09-25.13,2.07-37.64.06-9.43-1.52-11.31-4.21-11.31-13.8,0-96.31,0-192.61,0-288.92,0-1.75.02-3.51.1-5.26.58-13.61,8.78-22.02,22.41-22.15,16.42-.15,32.85-.49,49.28.31,15.88,2.77,24.26,13.93,30.66,27.34,1.23,2.58,2.77,5.02,4.1,7.56,35.09,66.62,70.72,132.95,104.97,200.01.49.96.74,2.14,2.44,1.93,1.29-4.22-.17-8.45-.21-12.65-.34-34.41.32-68.82-.85-103.23-.63-18.31-.19-36.66-.24-54.99.7-.3,1.39-.79,2.12-.87,18.9-2.07,33.63-11.18,44.99-26.23,6.22-8.25,9.57-17.69,12.25-27.48Z"}),t("path",{className:"cls-40",d:"M728.6,568.8c-23.03,35.98-58.01,49.27-98.62,51.84-27.48,1.74-53.96-2.48-79.27-13.48-1.6-.7-3.14-1.56-4.74-2.26-12.22-5.35-19.97-13.78-20.02-27.93-.03-9.22-.69-18.45,1.4-27.57,2.24-9.8,7.16-12.17,15.78-6.99,8.48,5.1,17.01,10.04,26.1,13.97,20,8.65,40.81,12.54,62.51,9.61,14.54-1.97,27.88-7.17,35.09-21.01,9.46-18.17,6.96-36.48-12.69-50.6-11.74-8.44-25-13.94-38.08-19.78-16.3-7.28-32.65-14.53-47.08-25.23-28.11-20.85-39.38-48.89-37.08-83.63,2.66-40.17,29.54-71.6,71.7-81.92,34.69-8.49,68.58-5.85,101.42,8.46,2.76,1.2,5.4,2.72,8.02,4.23,4.84,2.8,7.73,6.96,8.53,12.56,1.75,12.21,1.8,24.42-.35,36.58-1.46,8.29-5.76,10.39-13.28,6.59-6.11-3.09-12.02-6.59-18.22-9.47-18.37-8.53-37.42-13.11-57.93-10.32-23.43,3.19-37.62,24.35-30.08,45.65,2.77,7.81,8.34,13.49,14.8,18.33,13.02,9.76,28.23,15.3,42.86,21.93,17.86,8.09,35.67,16.23,50.99,28.84,7.44,6.13,13.19,13.7,19.08,21.19,0,.33,0,.66,0,.99-.38.29-.93.49-1.1.87-5.17,11.49-8.89,23.43-9.22,36.09-.33,12.68-1.07,25.49,1.97,37.94,1.89,7.73,2.84,15.9,7.62,22.71-.03.61-.06,1.22-.1,1.83Z"}),t("path",{className:"cls-40",d:"M327.57,454.14c0-49.27,0-98.55,0-147.82,0-10.88,3.41-16.66,11.6-19.9,3.03-1.2,6.21-1.37,9.4-1.37,50.73,0,101.45.04,152.18-.07,5.11-.01,8.11,2.06,9.66,6.73,2.92,8.8,2.72,17.88,2.23,26.93-.27,4.88-.11,9.83-2.14,14.55-1.99,4.6-4.76,6.89-10.13,6.86-33.34-.19-66.68-.01-100.02-.2-4.22-.02-5.31,1.03-5.27,5.26.21,26.15.23,52.3-.01,78.45-.04,4.64,1.53,5.41,5.69,5.39,31.11-.16,62.21-.09,93.32-.08,6.29,0,8.38,1.16,10.11,7.19,2.44,8.49,2.64,17.28,1.85,26.04-.43,4.71-.38,9.49-2.32,14.05-1.91,4.51-4.71,6.66-9.79,6.63-31.27-.13-62.53,0-93.8-.16-3.92-.02-5.06.89-5.04,4.94.16,38.27.1,76.54.09,114.81,0,7.6-1.59,10.25-8.94,11.9-16.38,3.67-32.93,3.59-49.33.2-7.86-1.63-9.33-4.26-9.33-12.5,0-49.27,0-98.55,0-147.82Z"}),t("path",{className:"cls-41",d:"M728.6,568.8c.03-.61.06-1.22.1-1.83,1.56-.81,1.99-2.44,2.7-3.82,8.03-15.69,9.96-32.44,9.89-49.87-.07-15.89-3.76-30.39-11.85-43.92,0-.33,0-.66,0-.99,10.5-21.54,27.43-35.93,50.2-42.59,23.52-6.88,46.97-6.26,69.17,5.48,19.31,10.2,30.6,26.8,36.47,47.42,3.08,10.83,3.48,21.94,3.17,33.1-.18,6.62-2.32,8.7-9.16,8.72-15.79.05-31.59.08-47.38-.04-2.76-.02-4.68.76-6.68,2.68-8.64,8.29-22.1,7.76-29.89-.96-7.61-8.51-6.64-21.95,2.13-29.5,8.89-7.65,22.3-6.32,29.63,3.27,1.9,2.49,3.8,3.26,6.74,3.19,6.85-.18,13.72-.18,20.58,0,2.81.07,3.58-.96,3.39-3.58-1.98-28.38-19.16-49.08-50.14-48.66-31.24.43-46.88,20.39-52.53,44.93-4.79,20.78-3.9,41.55,3.24,61.52,9.13,25.54,27.02,37.5,54.14,38.05,12.84.26,24.92-2.64,36.41-8.33,2.96-1.47,5.05-3.31,6.56-6.37,3.68-7.45,11.22-11.04,19.48-9.86,7.36,1.05,13.85,7.31,15.19,14.65,1.51,8.29-1.87,15.89-8.96,19.97-1.23.71-2.61,1.65-3.92,1.65-10.47-.04-18.71,6.48-28.19,9.34-27.56,8.3-54.86,9.34-81.54-3.23-17.09-8.06-29.18-21.24-37.56-38-.42-.83-.94-1.61-1.41-2.42Z"}),t("path",{className:"cls-4",d:"M223.13,351.58c.05,18.33-.39,36.68.24,54.99,1.18,34.41.51,68.82.85,103.23.04,4.2,1.5,8.43.21,12.65-1.7.21-1.95-.97-2.44-1.93-34.25-67.06-69.88-133.39-104.97-200.01-1.34-2.54-2.87-4.97-4.1-7.56-6.41-13.41-14.78-24.57-30.66-27.34,22.97-.26,45.93-.53,68.9-.79.54,27.77,13.34,47.91,38.02,60.45,10.64,5.41,22.2,6.56,33.95,6.3Z"}),t("path",{className:"cls-41",d:"M223.13,351.58c-11.76.26-23.31-.89-33.95-6.3-24.68-12.54-37.48-32.68-38.02-60.45,23.39-.07,46.78-.17,70.18-.2,19.08-.02,38.16-.71,57.25-.13,4,.12,4.95,1.24,4.34,4.9-.42,2.49-.31,5.07-.44,7.61-2.68,9.78-6.03,19.23-12.25,27.48-11.36,15.05-26.09,24.16-44.99,26.23-.73.08-1.41.57-2.12.87Z"}),t("path",{className:"cls-39",d:"M729.44,469.37c8.09,13.52,11.78,28.03,11.85,43.92.07,17.43-1.86,34.18-9.89,49.87-.71,1.39-1.14,3.02-2.7,3.82-4.78-6.81-5.73-14.98-7.62-22.71-3.04-12.45-2.3-25.26-1.97-37.94.33-12.66,4.05-24.6,9.22-36.09.17-.38.73-.58,1.1-.87Z"})]})]})})]}),sD=({size:e,color:r,viewBox:i})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:i,color:r,children:t("path",{d:"M10.25 2.24a5.79 5.79 0 0 0-4 1.63 4.48 4.48 0 1 0 0 8.26 5.76 5.76 0 1 0 4-9.89zm0 10.24A4.49 4.49 0 0 1 5.76 8H4.48a5.74 5.74 0 0 0 .89 3.07 3.29 3.29 0 0 1-.88.13 3.2 3.2 0 0 1 0-6.4A3.2 3.2 0 0 1 7.69 8H9a4.42 4.42 0 0 0-1.63-3.43 4.48 4.48 0 1 1 2.88 7.91z"})});sD.defaultProps={viewBox:"0 0 16 16",color:"#2B3356",size:24};let sR=sD,sL=({width:e="8",viewBox:r="0 0 11 11"})=>t("svg",{width:e,height:e,viewBox:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M10 1L1 10M10 8.5L10 1L2.5 1",stroke:"#133A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),s_=({size:e,viewBox:i})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",style:{enableBackground:`new ${i}`},viewBox:i,height:e,children:[t("path",{d:"M269.9 197.9 220.3 229l-105.8 41.5h-14.1L188 55l14.5 11.1 66.6 99.3z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#ff3600"}}),t("path",{d:"m188 55-2.8-12.6L110 11.3 78.9 37.2 10.7 216.4l5.2 19.3 20 15.5 37 14.1 27.5 5.2z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#0063ff"}}),t("path",{d:"M114.7 3.6c-5.3-.2-10.5.8-15.4 2.7-4.9 1.9-9.4 4.8-13.1 8.5-3.7 3.7-6.7 8.1-8.7 13L6.4 203.9c-3.7 9.1-3.7 19.4-.1 28.5C10 241.6 17 249 26 253.1l44.2 20.4c8.6 4 18 6.1 27.5 6.3s18.9-1.6 27.7-5.2L256 220.8c2.9-1.2 5.6-2.7 8.1-4.6 1.9-1.4 3.8-3 5.4-4.8 3.8-4.1 6.7-8.9 8.4-14.1 1.7-5.3 2.3-10.8 1.7-16.3-.6-5.5-2.4-10.8-5.3-15.5L208.1 56.1c-7-11.6-17.4-20.8-29.7-26.5L129.9 7.2c-4.8-2.2-9.9-3.4-15.2-3.6zM106 23.4c2.6-1 5.4-1.5 8.1-1.4 2.8.1 5.5.7 8 1.9l48.4 22.4c2.9 1.3 5.6 2.9 8.2 4.7l-85 210.1c-5.5-.6-10.8-2.1-15.8-4.4l-44.2-20.4c-4.7-2.2-8.4-6.1-10.3-10.8-1.9-4.7-1.9-10 0-14.8l71.2-176c1-2.5 2.6-4.8 4.5-6.8 2-1.9 4.3-3.5 6.9-4.5zm8.5 235.6 78.1-193 66 108.9c1.1 1.7 1.8 3.6 2.3 5.6.2.8.3 1.6.4 2.5.3 2.9 0 5.7-.9 8.5-.9 2.7-2.4 5.2-4.4 7.4a20.5 20.5 0 0 1-5 3.9c-.7.4-1.4.7-2.1 1l-130.6 53.9c-1.2.5-2.5.9-3.8 1.3z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#010005"}})]});s_.defaultProps={viewBox:"0 0 283.5 283.5",size:24};let sP=s_,sN=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"Layer_1",x:0,y:0,width:e.size,height:e.size,viewBox:"0 0 393 393",...e,children:[t("style",{children:".st1{fill:#fff}"}),t("path",{d:"M331.4 393H61.6C27.6 393 0 365.5 0 331.4V61.6C0 27.6 27.6 0 61.6 0h269.9c34 0 61.6 27.6 61.6 61.6v269.9c-.1 34-27.6 61.5-61.7 61.5z",style:{fill:e.color}}),t("path",{d:"m131.8 204.8 43.4-43.4c5.7-5.7 5.7-15 0-20.7l-13-13c-5.7-5.7-15-5.7-20.7 0l-34.8 34.8-34.8-34.8c-5.7-5.7-15-5.7-20.7 0l-13 13c-5.7 5.7-5.7 15 0 20.7l43.4 43.4c.5.7 1 1.4 1.6 2l13 13c2.9 2.9 6.7 4.3 10.5 4.3s7.6-1.4 10.5-4.3l13-13c.6-.6 1.2-1.3 1.6-2M258.5 146.7l-13-13c-5.7-5.7-15-5.7-20.7 0L127 231.5c-5.7 5.7-5.7 15 0 20.7l13 13c5.7 5.7 15 5.7 20.7 0l97.8-97.8c5.7-5.7 5.7-14.9 0-20.7M354.9 231.6l-43.4-43.4c-.5-.7-1-1.4-1.6-2l-13-13c-2.9-2.9-6.7-4.3-10.5-4.3s-7.6 1.4-10.5 4.3l-13 13c-.6.6-1.2 1.3-1.6 2l-43.4 43.4c-5.7 5.7-5.7 15 0 20.7l13 13c5.7 5.7 15 5.7 20.7 0l34.8-34.8 34.8 34.8c5.7 5.7 15 5.7 20.7 0l13-13c5.7-5.7 5.7-15 0-20.7",className:"st1"})]});sN.defaultProps={color:"#72ba00",size:32};let sO=sN,sz=({size:e,color:i,viewBox:a})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:a,color:i,children:[t("path",{d:"M51.2762 0H46.1914V22.4778H51.2762V0Z",fill:"#1A1A1A"}),t("path",{d:"M60.8644 16.775V22.5842L46.2188 14.151V8.34351L60.8644 16.775Z",fill:"#1A1A1A"}),t("path",{d:"M46.1914 13.9701V19.9918L60.9556 11.5587V5.53857L46.1914 13.9701Z",fill:"#C505F2"}),t("path",{d:"M20.2774 4.8313L17.6222 14.417L14.9914 4.91932L15.0157 4.8313H14.9654H10.163H10.1143L10.1387 4.91932L7.50785 14.417L4.85268 4.8313H0L2.22996 12.9489L2.25268 12.8725L4.88838 22.4781H5.34768H5.36716H9.88063H9.90011H10.1257L12.5764 13.6364L15.0027 22.4781H15.462H15.4799H19.995H20.0145H20.24L25.1284 4.8313H20.2774Z",fill:"#1A1A1A"}),t("path",{d:"M31.1741 16.9577C32.0261 17.8611 33.0665 18.3129 34.36 18.3129C35.6535 18.3129 36.6938 17.8611 37.5442 16.9245C38.3963 15.9895 38.8377 14.8918 38.8377 13.6014C38.8377 12.311 38.3963 11.2133 37.5442 10.3098C36.6938 9.40641 35.6518 8.95469 34.36 8.95469C33.0665 8.95469 32.0261 9.40641 31.1741 10.3098C30.3545 11.2133 29.9439 12.311 29.9439 13.6014C29.9422 14.925 30.3529 16.0227 31.1741 16.9577ZM38.8377 4.84275H43.5054V22.4763H38.8377V20.6678C37.356 22.1857 35.5885 22.9263 33.5079 22.9263C31.0475 22.9263 28.9977 22.0229 27.3893 20.2476C25.781 18.4407 24.9922 16.2137 24.9922 13.535C24.9922 10.8878 25.8118 8.69396 27.4218 6.95187C29.0301 5.20977 31.0799 4.33789 33.5079 4.33789C35.5902 4.33789 37.356 5.11345 38.8377 6.66124V4.84275Z",fill:"#1A1A1A"}),t("path",{d:"M67.0985 11.763H75.2361C74.7622 9.73024 73.3112 8.47141 71.2614 8.47141C69.2441 8.47141 67.6357 9.69703 67.0985 11.763ZM79.8404 15.3767H67.131C67.7298 17.6037 69.3074 18.7015 71.8295 18.7015C73.7851 18.7015 75.5818 18.1219 77.2226 16.9909L79.1782 20.4435C77.0651 22.0893 74.543 22.8964 71.6103 22.8964C68.551 22.8964 66.2172 21.993 64.5764 20.2177C62.968 18.4424 62.1484 16.2486 62.1484 13.6346C62.1484 10.9558 62.9989 8.76204 64.6722 7.01828C66.3438 5.24297 68.5511 4.37109 71.263 4.37109C73.8176 4.37109 75.8999 5.1782 77.5391 6.75921C79.1783 8.34022 79.9995 10.5025 79.9995 13.246C79.9978 13.8604 79.9362 14.5712 79.8404 15.3767Z",fill:"#1A1A1A"})]});sz.defaultProps={viewBox:"0 0 80 23",color:"#C505F2",size:50};let sH=sz,sF={padding:"20px 8px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(96, 115, 137, 0.05)",border:"1px dashed #ccc",borderRadius:"8px"},sW=({sx:e,...r})=>t(tn,{sx:{...sF,...e},...r}),sV=({sx:e,...r})=>t(sW,{sx:{flexDirection:"column",gap:"10px",...e},...r}),sB=({sx:e,...r})=>t(tm,{sx:{width:30,height:30,...e},...r}),sj=["audio/mp3","audio/ogg","audio/wav","video/mp4","image/*","application/pdf","text/plain","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","text/csv","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],sG=({file:e,files:i=[],multiple:a=!0,onRemoveFile:o,onChange:n,isImagePreview:l=!1,allowRemoval:s=!0,isLoading:d,dataComplete:c,shouldUseOriginalName:p,allowedTypes:m=sj,...h})=>{let{t:u}=eW(),[x,f]=eE(()=>e?.url?e?.url.split("/smart/")[1]:e),g=e=>e.map((e,t)=>{let r,i=p?e.name:(r=rN.extension(e.type),`${rP(new Date)}-${t}.${r}`),a={lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,type:e.type};return new File([e],i,a)}),C=eg(({files:e})=>{let t=g(e);return a?n(t):n(t[0])},[a,n,g]),{getRootProps:y,getInputProps:b}=tQ({onDropAccepted:e=>C({files:e}),accept:m.reduce((e,t)=>({...e,[t]:[]}),{}),multiple:a,noClick:!1,noKeyboard:!1}),v=h.description??r(R,{sx:{alignItems:"center",gap:"15px",flexDirection:"row"},children:[t(r_,{color:"secondary",fontSize:"large"}),r(nl,{children:[u("Drag and drop or")," ",t(nl,{component:"span",sx:{cursor:"pointer",color:"primary.light"},children:u("choose a file")})," ",u("to upload your data")]})]});return r(sV,{...y(),...h,children:[t("input",{"data-testid":"input-drop",...b(),style:{display:"none"}}),v,c&&t(nl,{sx:{fontSize:"12px",padding:"15px"},children:u("File uploaded successfully. Click the go forward button")}),d&&t(nl,{sx:{fontSize:"12px",padding:"15px"},children:u("We are analyzing your file, this may take a while...")}),(({file:e,files:i,multiple:a,onRemoveFile:o,allowRemoval:n})=>{if(a&&i.length)return i.map((e,i)=>r(R,{sx:{alignItems:"center",flexDirection:"row"},children:[t(nl,{children:e.name}),o&&t(sB,{onClick:e=>o(i,e),size:"large",children:t(tc,{"data-testid":"close"})})]},i));if(e){if(e instanceof File&&l){let t=new FileReader;t.addEventListener("load",()=>{f(t.result)}),t.readAsDataURL(e)}return r(R,{sx:{alignItems:"center",flexDirection:"column",img:{width:"auto",height:"auto",maxWidth:"265px"},backgroundColor:"rgba(96, 115, 137, 0.19)",p:l?"10px":"0 10px"},children:[l?t("img",{src:x,alt:"preview"}):null,r(tn,{sx:{display:"flex",maxWidth:"265px",justifyContent:"space-between",alignItems:"center",fontSize:"14px",fontWeight:600,color:"primaryDarker.main"},children:[t(tn,{component:"p",sx:{margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),o&&n&&t(sB,{onClick:e=>o(void 0,e),size:"large",children:t(tc,{"data-testid":"close"})})]})]})}return null})({file:e,files:i,multiple:a,onRemoveFile:(e,t)=>{t.stopPropagation(),o(e)},allowRemoval:s})]})},sZ=ex(({sx:e,indeterminate:r,...i},a)=>{let o=eI(null),n=a||o;return ey(()=>{n.current.indeterminate=r},[n,r]),t(r$,{sx:{padding:"6px 6px 6px 0px",margin:0,...e},ref:n,color:"primary",...i})}),s$="error",sU="processing",sY=e=>t(rU,{sx:{color:"#3fbe33"},...e}),sq=e=>t(rq,{sx:{color:"#f22728"},...e}),sX=e=>t(rq,{sx:{color:"#f2ab27"},...e}),sK=e=>t(rY,{sx:{color:e=>e.palette.primary.light},...e}),sQ=e=>t(rX,{sx:{color:e=>e.palette.primary.light},...e}),sJ=({row:e})=>{let{t:r}=eW(),i=e?.original?.importStatus,{title:a,...o}=e?.getToggleRowExpandedProps(),n=r(i?.value?.status!==sU?"See details":"Processing data");return t(R,{alignItems:"center",justifyContent:"center",pr:"9px",children:t(R,{py:"6px",justifyContent:"center",pr:"9px",children:i?.value&&t(tO,{title:n,children:(()=>{switch(i?.value?.status){case"success":return t(sY,{...o});case s$:return t(sq,{...o});case sU:return t(sQ,{...o});case"warning":return t(sX,{...o});default:return t(sK,{...o})}})()})})})},s1=e=>{let{isValid:r=!0,isGrouped:i,sx:a,...o}=e;return t(rQ,{sx:{border:"1px solid rgba(224, 224, 224, 1)",...i&&{background:"#fafafa"},"&:hover":{background:"#f0f0f0"},padding:"6px 6px 6px 12px",...a},...o})},s2=({parentRef:e,hasData:i,rowVirtualizer:a,rows:o,prepareRow:n,visibleColumns:l,renderRowSubComponent:s,isProcessing:d})=>t(tn,{ref:e,sx:{height:i?"calc(100vh - 482px)":"0px",minHeight:i?"335px":"47px",width:"100%",overflowY:"auto",overflowX:"hidden"},children:t(tn,{sx:{height:`${a.totalSize}px`,width:"100%",position:"relative"},children:a.virtualItems.map(e=>{let i=o[e.index];return n(i),r(tn,{ref:e.measureRef,sx:{position:"absolute",top:0,left:0,width:"100%",height:`${o[e.index]}px`,transform:`translateY(${e.start}px)`,backgroundColor:"#fff",zIndex:+!!i.isExpanded},children:[t(rK,{component:"div",...i.getRowProps(),children:i.cells.map((e,r)=>t(s1,{minWidth:e?.column?.id==="selection"?"inherit":"211px",component:"div",...e.getCellProps(),isValid:e.value?.isValid,children:e.render("Cell",{isProcessing:d})},r))}),i.isExpanded?t(rK,{component:"div",...i.getRowProps(),children:t(s1,{colSpan:l.length,children:s({row:i})})}):null]},e.index)})})}),s0=({headerGroups:e})=>{let{t:i}=eW();return t(rJ,{component:"div",style:{display:"block"},children:e.map((e,a)=>t(rK,{component:"div",...e.getHeaderGroupProps(),children:e.headers.map((e,a)=>t(s1,{component:"div",..."selection"===e.id?e.getHeaderProps():e.getHeaderProps(e.getSortByToggleProps({title:i("Order by this column")})),children:r(R,{style:{minWidth:"selection"===e.id?"inherit":"211px"},children:[t(V,{fontSize:"14px",children:e.render("Header")}),"selection"!==e.id?t(r1,{active:e.isSorted,direction:e.isSortedDesc?"desc":"asc"}):null]})},a))},a))})},s3=({columns:e,data:i,updateMyData:a,skipPageReset:o,setSelectedData:n,renderRowSubComponent:l,isProcessing:s,firstImport:d,defaultSort:c})=>{let p=eI(),m=rZ({size:i.length,parentRef:p,estimateSize:eg(()=>47,[])}),{getTableProps:h,headerGroups:u,prepareRow:x,rows:f,visibleColumns:g,selectedFlatRows:C,toggleAllRowsSelected:y}=rG({columns:e,data:i,autoResetPage:!o,autoResetSelectedRows:!1,updateMyData:a},rj,rV,rB,e=>{e.allColumns.push(e=>[{id:"selection",Header:({getToggleAllRowsSelectedProps:e})=>t(R,{justifyContent:"center",children:t(sZ,{...e()})}),Cell:({row:e})=>{let r=Object.values(e.original).filter(e=>"boolean"==typeof e?.isValid&&!e?.isValid);return t(R,{alignItems:"center",children:t(sZ,{"data-testid":"selectionRow",index:e.index,...e.getToggleRowSelectedProps(),disabled:!!r?.length})})}},{id:"status",Header:"Status",accessor:e=>e.importStatus?.value?.status??e[c]?.value,Cell:({row:e})=>t(sJ,{row:e})},...e])});ey(()=>{n&&n(C)},[C]),ey(()=>{d||y(!0)},[s]);let b=!!i?.length;return t(rW,{sx:{background:"#fff",minHeight:b?"400px":"47px"},children:r(rF,{component:"div",...h(),stickyHeader:!0,children:[t(s0,{headerGroups:u}),t(s2,{parentRef:p,hasData:b,rowVirtualizer:m,rows:f,prepareRow:x,visibleColumns:g,renderRowSubComponent:l,isProcessing:s})]})})},s4=({isValid:e,sx:r,...i})=>t(w,{sx:{margin:"0 0 0 -5px",border:0,padding:"0px",background:"transparent",color:t=>e?t.primaryDarkerColor:"#b71111",fontFamily:"inherit",fontSize:"12px","&::before":{border:0},"&::focus":{border:0},...r},...i}),s5=({value:e,onChange:r,onBlur:i,isValid:a,isProcessing:o})=>t(s4,{"data-testid":e,value:e,onChange:r,onBlur:i,isValid:a,useFormik:!1,disabled:o}),s6=e=>{let{value:r,valueFormat:i="DD/MM/YYYY",onChange:a,onBlur:o,isProcessing:n,isValid:l,...s}=e,[d,c]=eE(r?tb(r,i):null);return t(r0,{value:d,onChange:e=>{c(e);let t={target:{value:e.format(i)}};a&&a(t)},renderInput:e=>{let{inputProps:r={},InputProps:i={}}=e;return t(s4,{onBlur:o,isValid:l,useFormik:!1,disabled:n,...r,...i,...e,...s})}})},s9=e=>{let{value:r,onChange:i,onBlur:a,isProcessing:o,adorn:n="R$",isValid:l,...s}=e,d=r3({value:r,onChange:e=>{i({target:{value:e}})},format:e=>{if(!e||null===e)return"";""===e&&(e="0");let t=(parseInt(e.replace(/[^\d]+/gi,""),10)/100).toFixed(2);return t?new Intl.NumberFormat("pt-br",{style:"currency",currency:"BRL"}).format(t).replace("R$\xa0",""):""}});return t(s4,{"data-testid":r,value:d.value,onChange:d.onChange,onBlur:a,isValid:l,useFormik:!1,disabled:o,startAdornment:t(M,{position:"start",sx:{color:e=>l?e.primaryDarkerColor:"#b71111"},children:n}),...s})};function s7(e){let{getInputRef:r,onChange:i,...a}=e;return t(r4,{...a,getInputRef:r,onValueChange:e=>{i({target:{value:e.value}})},mask:"_",format:"+55 (##) #####-####",type:"tel"})}let s8=e=>{let{value:r,onChange:i,onBlur:a,isValid:o,isProcessing:n,...l}=e;return t(s4,{"data-testid":r,value:r,onChange:(...e)=>{i(...e)},onBlur:a,isValid:o,useFormik:!1,disabled:n,inputComponent:s7,...l})},de="99.999.999/9999-99",dt=e=>{let{value:r,onChange:i,onBlur:a,isValid:o,isProcessing:n,...l}=e,s=de.length,d=r3({value:r,onChange:e=>{i({target:{value:e}})},format:e=>{let t;if(!e)return"";let r=(t=e?.slice(0,s))&&t.replace(/[^0-9]/g,""),i=r?.length>11?de:"999.999.999-999";var a=r,o=i;let n="",l=0;if(Array.from(a).forEach((e,t)=>{o[t+l]&&(!o[t+l].match(/[0-9]/)&&(n+=o[t+l],l++),n+=e)}),0!==a.length){let e=a.length+l;o[e]&&!o[e].match(/[0-9]/)&&(n+=o[e])}return n},mask:(s<=r?.length)??0});return t(s4,{"data-testid":r,value:d.value,onChange:d.onChange,onBlur:a,isValid:o,useFormik:!1,disabled:n,...l})},dr=(e,t={})=>{var r,i;if(null==e||"boolean"==typeof e)return null;if("string"!=typeof e)return e;let{decimalSeparator:a=",",thousandSeparator:o="."}=t;return parseFloat((r=e.toString(),i=o.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),r.replace(RegExp(i,"g"),"")).replace(a,"."))},di=(e,{prefix:t="R$",...r}={})=>{if(!e)return null;let i=dr(e.replace(t,""),r);return i?Math.round(100*i):i},da=e=>Number(e).toLocaleString("pt-BR",{minimumFractionDigits:2,style:"currency",currency:"BRL"}),dn=e=>"number"!=typeof e?null:da(dr(e/100)),dl=/\D/g,ds=/^(\d{14}|\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2})$/,dd="00000000000000",dc=/^(\d{11}|\d{3}\.\d{3}\.\d{3}-\d{2})$/,dp=/\D/g,dm="00000000000",dh=e=>{if(!e)return!1;if(!dc.test(e)){let t;return rA((t=e.replace(dp,""),dm.substring(0,dm.length-t.length)+t))}return rA(e)},du=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,dx=e=>"boolean"==typeof e?e.toString().toLowerCase():"string"==typeof e?e?.trim()?.toLowerCase():e,df="taxID",dg="active",dC="email",dy="gender",db="date",dv="phone",dw="phone",dM="currency",dI=["sim","true","ativo","\xe1tivo","si"],dE=["n\xe3o","false","inativo","nao","no"],dS=["sim","true","ativo","\xe1tivo","si"],dA=["CPF Colaborador","CPF Gestor","CPF/CNPJ do Cliente"],dk=["Ativo"],dT=["E-mail Colaborador","E-mail Gestor"],dD=["G\xeanero Colaborador"],dR=["Nascimento Colaborador","Admiss\xe3o Colaborador","Demiss\xe3o Colaborador","Data de Vencimento"],dL=["Celulares"],d_=["Celular do Cliente"],dP=["Tags"],dN=["Valor","Valor em Reais"],dO=e=>dA.includes(e)?df:dk.includes(e)?dg:dT.includes(e)?dC:dD.includes(e)?dy:dR.includes(e)?db:dL.includes(e)?dv:d_.includes(e)?dw:dP.includes(e)?"tag":dN.includes(e)?dM:"text",dz=[df,dC,dM,db],dH=(e,t,r)=>t.reduce((t,{name:i})=>{let a,o=r?.map(e=>e?.trim().replace(/\.+$/,"")).indexOf(i?.trim()),n=dO(i),l=e[o],s=l&&dz.includes(n)?(a={[df]:()=>"number"==typeof l?l.toString():l?l?.trim()?.replace(/\D+/g,""):null,[dC]:()=>dx(l),[db]:()=>(e=>{if(tb.isDate(e))return tb(e).format("DD/MM/YYYY");if("boolean"==typeof e)return e.toString().toLowerCase();let t=(e=>{if("boolean"==typeof e)return e.toString().toLowerCase();let t=e.split("/").at(2);return t&&4===t.length?"DD/MM/YYYY":"DD/MM/YY"})(e);return tb(e,t).format("DD/MM/YYYY")})(l),[dM]:()=>"number"==typeof l?dn(di(l.toString(),{decimalSeparator:".",thousandSeparator:","})):l?dn(di(l,{decimalSeparator:".",thousandSeparator:","})):null},n&&a[n]?a[n]()??l:l):l;return{...t,[i]:{value:s,isValid:!0,columnType:n}}},{}),dF=({type:e,value:t,requiredMessage:r,customColumnValidation:i,columnName:a=""})=>{if(!t)return({"N\xe3o obrigat\xf3rio":!0,Obrigatório:!1})[r];let o={[df]:()=>dh(t)||(e=>{if(!ds.test(e)){let t,r;return t=e.replace(dl,""),r=dd.substring(0,dd.length-t.length)+t,ds.test(r)}return ds.test(e)})(t),[dg]:()=>{let e;return e=dx(t),!!(dI.includes(e)||dE.includes(e))},[dy]:()=>{let e;return e=dx(t),dB.MALE.includes(e)||dB.FEMALE.includes(e)||dB.OTHER.includes(e)},[dC]:()=>du.test(t),[db]:()=>lK(t)},n=i?.[a];return!!(!n||n(t))&&(!t||!o[e]||(o[e]()??!0))},dW=({value:r,row:{index:i},column:{id:a,columnType:o,customColumnValidation:n,requiredMessage:l},updateMyData:s,isProcessing:d})=>{let[c,p]=eE({value:r?.value,isValid:r?.isValid}),m=e=>{if(p({...c,value:e?.target?.value}),o===db){let t={...r,...c,value:e?.target?.value,isValid:dF({type:o,value:e?.target?.value,columnName:a,customColumnValidation:n,requiredMessage:l})};s(i,a,t)}},h=()=>{let e={...r,...c,isValid:dF({type:o,value:c.value,columnName:a,customColumnValidation:n,requiredMessage:l})};s(i,a,e)};return ey(()=>{p({value:r?.value,isValid:r?.isValid})},[r]),t(e,{children:(()=>{let e,r={[dg]:s5,[dy]:s5,[db]:s6,[dM]:s9,[df]:dt,[dw]:s8}[o]||s5;return r?t(r,{...(e=c.value,{value:e,onChange:m,onBlur:h,isValid:c.isValid,isProcessing:d}),inputProps:{"data-testid":`${o}-${i}-${a}`.replaceAll(" ","").toLocaleLowerCase()}}):null})()})},dV={ADD:"add",REMOVE:"remove",UPDATE:"update"},dB={MALE:["masculino","male"],FEMALE:["feminino","female","femenino"],OTHER:["outro","other","otro"]},dj=e=>Object.entries(e).reduce((e,[,t])=>{if(t.field&&t.value){var r,i;let a,o=(r=t.value,i=t.columnType,a={[dg]:()=>dS.includes(dx(r)),[dy]:()=>{let e;return e=dx(r),dB.MALE.includes(e)?"male":dB.FEMALE.includes(e)?"female":dB.OTHER.includes(e)?"other":r},[df]:()=>({type:"BR:CPF",taxID:r}),[db]:()=>{let e;return(e=lK(r)?tb(r,lX).utc().toISOString():null)||null},[dv]:()=>r?r.toString().split(";").map(e=>"+55"===e.substring(0,3)?e.slice(1):"55"===e.substring(0,2)?e:`55${e}`):null,[dw]:()=>(e=>{if(!e)return null;let t=e.toString();return"+55"===t.substring(0,3)?t.slice(1):"55"===t.substring(0,2)?t:`55${t}`})(r),[dC]:()=>dx(r),tag:()=>r?r.toString().split(";").map(e=>e.trim().toLowerCase()):null},i&&a[i]?a[i]()??r:r);return{...e,[t.field]:o}}return e},{}),dG={Obrigatório:!0,"N\xe3o obrigat\xf3rio":!1},dZ=({data:e,setData:i,isProcessing:a,setSelectedData:o,firstImport:n,selectedData:l,dataImportTable:s,getInvalidFieldsMessage:d,getReferences:c,setIsNextEnabled:p,customColumnValidation:m={}})=>{let{t:h}=eW(),u=async(t,r,a)=>{let o={...e[t],[r]:a},n=async()=>{let t=await c(o,h,e),r=Object.values(t).filter(e=>"boolean"==typeof e?.isValid&&!e?.isValid);return r?.length?{...t,importStatus:{...t.importStatus,value:{status:s$,message:[...d(r,h),...t.importStatus?.value?.message.length?t.importStatus?.value?.message:[]]}}}:t},l=await n();i(e=>e.map((e,r)=>r===t?l:e))},x=eg(({row:e})=>{let i=e.original.importStatus;return r(R,{direction:"column",children:[r(V,{fontSize:"12px",fontWeight:"600",mr:"5px",children:[h("Status"),":"]}),i.value?.message?.map((e,r)=>t(V,{fontSize:"12px",mr:"5px",children:`- ${e}`},r))]})},[]),f=ew(()=>s.map(({name:e,requiredMessage:t})=>({Header:e,accessor:e,columnType:dO(e),customColumnValidation:m,requiredMessage:t,Cell:dW})),[]);return r(R,{flexDirection:"column",mt:"20px",children:[t(R,{justifyContent:"flex-end",height:"19px",mb:"20px",children:!!l.length&&r(V,{fontSize:"14px",fontWeight:"600",children:[l.length," ",h("Row selected",{count:l.length})]})}),t(s3,{columns:f,data:e,updateMyData:u,setSelectedData:e=>{if(0===e.length){p(!1),o(e);return}p(!0),o(e)},renderRowSubComponent:x,setData:i,isProcessing:a,firstImport:n,dataImportTable:s})]})},d$=({isLoading:e,setIsLoading:r,setSheet:i,setData:a,clearData:o,sheet:n,dataComplete:l,setShowReport:s,setFirstData:d,setFirstImport:c,dataImportTable:p})=>{let{t:m}=eW(),{enqueueSnackbar:h}=t3();return t(sG,{file:n,onChange:e=>{a([]),s(!1),r(!0),i(e),c(!1);let t=new FileReader,o=!!t.readAsBinaryString;t.onload=async e=>{let t=r5(e.target.result,{type:o?"binary":"array",cellDates:!0}),a=t.SheetNames[0],n=t.Sheets[a],[l,...s]=r6.sheet_to_json(n,{header:1,raw:!0});if(!(({header:e,defaultHeader:t})=>e.length!==t.length?!(t.filter(t=>!e.includes(t.name)).filter(e=>dG[e?.requiredMessage]??!1).length>0):t.every(t=>{let r=dG[t?.requiredMessage]??!1,i=e.includes(t?.name);return!i&&!r||i}))({header:l,defaultHeader:p}))return r(!1),i(null),h(m("Error: excel out of the template. Do not remove columns or edit titles."),{variant:"error"}),null;d((({excelData:e,dataImportTable:t,header:r,t:i})=>{let a=[];for(let[o,n]of e.entries()){if(0===n.length)continue;let e=dH(n,t,r),l={field:"rowId",value:r2()},s={field:"index",value:o},d={field:"importStatus",value:{status:sU,message:[i("We are processing your data, after that you will be able to edit and import")]}};a=[...a,{...e,rowId:l,importStatus:d,index:s}]}return a})({excelData:s,dataImportTable:p,header:l,t:m})),r(!1)},o?t.readAsBinaryString(e):t.readAsArrayBuffer(e)},onRemoveFile:e=>o(e),allowRemoval:!!n,multiple:!1,isLoading:e,dataComplete:l,shouldUseOriginalName:!0})},dU=({setData:e,latestData:i,setIsProcessing:a,isProcessing:o,data:n,updateRows:l})=>{let s=n[0]?.importStatus?.value?.status!==sU,[d,c]=eE(s?n?.length:0),{t:p}=eW(),m=G(),h=async()=>{a(!0);let t=0;do{let r=n.slice(t,t+50);await l(r,i),t>1&&t%50==0&&(e(i.current),c(t)),t+=50}while(t<=n.length);e(i.current),a(!1),c(i.current.length)};return ey(()=>{s||h()},[]),t(iX,{sx:{mt:"25px"},children:r(R,{padding:"30px",alignItems:"center",flexDirection:"column",children:[t(V,{mb:"15px",fontSize:"14px",children:p(o?"Analyzing data...":"Data analysis completed. Click the go forward button")}),r(R,{children:[t(V,{fontSize:"20px",fontWeight:"600",color:m.palette.primary.light,children:d}),r(V,{fontSize:"20px",fontWeight:"600",children:["/",n.length]})]}),o&&t(V,{fontSize:"10px",mt:"15px",children:p("Please, do not close this window")})]})})},dY=e=>t(rU,{sx:{color:"#3fbe33"},...e}),dq=e=>t(rq,{sx:{color:"#f22728"},...e}),dX=({data:e})=>{let{t:i}=eW(),a=e.filter(e=>e.importStatus?.value?.status==="success"),o=e.filter(e=>e.importStatus?.value?.status==="error");return r(R,{children:[r(V,{mb:"5px",textAlign:"center",fontWeight:"600",fontSize:"14px",children:[i("Import report"),":"]}),r(iJ,{sx:{justifyContent:"center"},children:[r(iJ,{sx:{alignItems:"center"},children:[t(dY,{}),r(V,{fontSize:"12px",ml:"5px",children:[i("Correct imports"),": ",a.length]})]}),r(iJ,{sx:{alignItems:"center",ml:"15px"},children:[t(dq,{}),r(V,{fontSize:"12px",ml:"5px",children:[i("Imports with errors"),": ",o.length]})]})]})]})},dK=e=>e.filter(e=>e.fields.importStatus?.status!==s$),dQ=(e,t)=>{switch(t.type){case dV.ADD:return[...e,{fields:t.fields}];case dV.REMOVE:return e.filter(e=>e.fields?.rowId!==t.fields?.rowId);case dV.UPDATE:return[...e.filter(e=>e.fields?.rowId!==t.fields?.rowId),{fields:t.fields}];default:throw Error()}},dJ=({setShowReport:i,setData:a,data:o,selectedData:n,setSelectedData:l,showReport:s,setFirstImport:d,setActiveStep:c,prepareQueue:p=dK,processQueueItem:m,reducer:h=dQ})=>{let{t:u}=eW(),[x,f]=eM(h,[]),[g,C]=eE(!1),[y,b]=eE(!1),v=G(),w=async()=>{if(0===x.length)return;b(!0),i(!1);let e=o,t=(t,r,i)=>{e=e.map((a,o)=>o===t?{...e[t],[r]:i}:a)};for(let e of p(x)){let{hasError:r,revalidateQueue:i}=await m({item:e,dispatch:f,updateImportStatus:t});if(r&&C(r),!r&&i&&i(x))break}a(e),b(!1),i(!0),l([]),d(!0)};return ey(()=>{n.length>0&&((e,t)=>{for(let r of e.map(e=>({...e?.original,rowIndex:{field:"rowIndex",value:e?.id}}))){let e=dj(r);Object.keys(e).length<=1||t({type:dV.ADD,fields:e})}})(n,f)},[]),ey(()=>{x.length>0&&!y&&w()},[x]),t(iX,{sx:{mt:"25px"},children:r(R,{sx:{padding:"30px",alignItems:"center",flexDirection:"column"},children:[y&&r(e,{children:[t(V,{fontSize:"14px",children:u("Importing...")}),t(V,{as:"span",fontSize:"20px",fontWeight:"600",color:v.palette.primary.light,children:x.length}),t(V,{fontSize:"10px",mt:"15px",children:u("Please, do not close this window")})]}),s&&t(dX,{data:o}),!y&&g&&t(ij,{mt:"15px",fontSize:"12px",onClick:()=>c(e=>e-1),children:u("See errors")})]})})},d1=ef(({row:e,style:r})=>t(rK,{component:"div",...e.getRowProps({style:r}),children:e.cells.map(e=>t(s1,{component:"div",...e.getCellProps(),isValid:e.value?.isValid,children:e.render("Cell")}))}),(e,t)=>{let{row:r,isSelected:i}=e,{row:a,isSelected:o}=t;return r8({...r.values,isSelected:i},{...a.values,isSelected:o})}),d2=({columns:e,data:i,skipPageReset:a,hasSelection:o=!0,setSelectedData:n})=>{let{t:l}=eW(),{getTableProps:s,headerGroups:d,prepareRow:c,rows:p,state:{selectedRowIds:m},selectedFlatRows:h}=rG({columns:e,data:i,autoResetPage:!a},rj,rB,e=>{o&&e.allColumns.push(e=>[{id:"selection",Header:({getToggleAllRowsSelectedProps:e})=>t("div",{children:t(sZ,{...e()})}),Cell:({row:e})=>t("div",{children:t(sZ,{index:e.index,...e.getToggleRowSelectedProps()})})},...e])});return t(rW,{children:r(rF,{sx:{boxSizing:"border-box"},component:"div",...s(),children:[t(rJ,{component:"div",children:d.map(e=>t(rK,{component:"div",...e.getHeaderGroupProps(),children:e.headers.map(e=>r(s1,{component:"div",..."selection"===e.id?e.getHeaderProps():e.getHeaderProps(e.getSortByToggleProps({title:l("Order by {{type}}",{type:e?.Header?.toString().toLowerCase()})})),children:[e.render("Header"),"selection"!==e.id?t(r1,{active:e.isSorted,direction:e.isSortedDesc?"desc":"asc",title:l("Order by {{type}}",{type:e?.Header?.toString().toLowerCase()})}):null]}))}))}),t(r7,{component:"div",children:p.map(e=>(c(e),t(d1,{...e.getRowProps(),row:e,isSelected:m[e.id]})))})]})})},d0="N\xe3o obrigat\xf3rio",d3="Obrigat\xf3rio",d4=()=>e=>`N\xe3o obrigat\xf3rio se presente: ${e.join(" ou ")}`,d5={CUSTOMER_TAXID:"CPF/CNPJ do Cliente",CUSTOMER_NAME:"Nome do Cliente",CUSTOMER_EMAIL:"Email do Cliente",CUSTOMER_PHONE:"Celular do Cliente",VALUE:"Valor em Reais",COMMENT:"Coment\xe1rio",EXPIRATION_DATE:"Data de Vencimento",ADITIONAL_INFO:"Informa\xe7\xf5es Adicionais"},d6={[d5.CUSTOMER_TAXID]:"CPF/CNPJ do Cliente.",[d5.CUSTOMER_NAME]:"Nome do Cliente",[d5.CUSTOMER_EMAIL]:"Email do Cliente.",[d5.CUSTOMER_PHONE]:"Celular do Cliente",[d5.VALUE]:"Valor em Reais",[d5.COMMENT]:"Coment\xe1rio.",[d5.EXPIRATION_DATE]:"Data de Vencimento. Ex: 16/11/1993",[d5.ADITIONAL_INFO]:"Informa\xe7\xf5es Adicionais. Ex: item1:calca;item2:camisa"},d9={[d5.CUSTOMER_TAXID]:d0,[d5.CUSTOMER_NAME]:d0,[d5.CUSTOMER_EMAIL]:d0,[d5.CUSTOMER_PHONE]:d0,[d5.VALUE]:d3,[d5.COMMENT]:d0,[d5.EXPIRATION_DATE]:d0,[d5.ADITIONAL_INFO]:d0},d7=e=>({NAME:e("Company Name"),TRADE_NAME:e("Trade Name"),TAX_ID:e("CNPJ"),EMAIL:e("Email"),PHONE:e("Phone"),WEBSITE:e("Website"),FIRST_NAME:e("First name"),LAST_NAME:e("Last name"),USER_MASTER_TAX_ID:e("User taxID")}),d8=e=>({NAME:e("Name"),TAX_ID:e("CPF/CNPJ"),EMAIL:e("Email"),PHONE:e("Phone")}),ce=e=>({CORRELATION_ID:e("Correlation ID"),VALUE:e("Value"),DESTINATION_PIX_KEY:e("Destination Pix Key"),DESTINATION_PIX_KEY_TYPE:e("Destination Pix Key Type"),COMMENT:e("Comment")}),ct=e=>({VALUE:e("Value"),PSP_ID:e("PSP ID"),PSP_NAME:e("PSP Name"),HOLDER_NAME:e("Holder Name"),CPF_CNPJ:e("CPF ou CNPJ"),BRANCH:e("Ag\xeancia"),ACCOUNT:e("Conta"),ACCOUNT_TYPE:e("Tipo de Conta"),COMMENT:e("Coment\xe1rio")}),cr={EMPLOYEE_ID:"ID/Matr\xedcula Colaborador",CPF:"CPF Colaborador",ACTIVE:"Ativo",NAME:"Nome Colaborador",EMAIL:"E-mail Colaborador",GENDER:"G\xeanero Colaborador",BIRTHDATE:"Nascimento Colaborador",ADMISSION:"Admiss\xe3o Colaborador",DEMISSION:"Demiss\xe3o Colaborador",JOB_TITLE:"Cargo Colaborador",MOBILE_PHONE:"Celulares",CRC_NAME:"\xc1rea",CRC_ID:"ID da \xc1rea",MANAGER_EMPLOYEE_ID:"ID/Matr\xedcula Gestor",MANAGER_CPF:"CPF Gestor",MANAGER_EMAIL:"E-mail Gestor",BUSINESS_DIVISION_ID:"ID da Unidade de Neg\xf3cio",BUSINESS_DIVISION_NAME:"Unidade de Neg\xf3cio",TAGS:"Tags"},ci={[cr.BIRTHDATE]:"d",[cr.ADMISSION]:"d",[cr.DEMISSION]:"d",[cr.MOBILE_PHONE]:"s"},ca={[cr.EMPLOYEE_ID]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[cr.ACTIVE]:"Se o usu\xe1rio est\xe1 ativo ou n\xe3o. (sim,true,ativo)",[cr.CPF]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[cr.NAME]:"Nome completo.",[cr.EMAIL]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[cr.GENDER]:"Masculino, Feminino ou Outro.",[cr.BIRTHDATE]:"Formato: DD/MM/YYYY.",[cr.ADMISSION]:"Formato: DD/MM/YYYY.",[cr.DEMISSION]:"Formato: DD/MM/YYYY.",[cr.JOB_TITLE]:"T\xedtulo do cargo.",[cr.MOBILE_PHONE]:"Celular: 5511912345678, use ; (ponto e v\xedrgula) para separar os celulares",[cr.CRC_NAME]:"Nome da \xe1rea.",[cr.CRC_ID]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[cr.MANAGER_EMPLOYEE_ID]:"C\xf3digo de identifica\xe7\xe3o do gestor.",[cr.MANAGER_CPF]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[cr.MANAGER_EMAIL]:"E-mail corporativo v\xe1lido.",[cr.BUSINESS_DIVISION_ID]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[cr.BUSINESS_DIVISION_NAME]:"Nome da Unidade de Neg\xf3cio",[cr.TAGS]:"Ex: Time de Vendas. Use ; (ponto e v\xedrgula) para separar as tags"},co={[cr.EMPLOYEE_ID]:d0,[cr.ACTIVE]:d0,[cr.CPF]:d4()([cr.EMAIL]),[cr.NAME]:d3,[cr.EMAIL]:d4()([cr.CPF]),[cr.GENDER]:d0,[cr.BIRTHDATE]:d0,[cr.ADMISSION]:d0,[cr.DEMISSION]:d0,[cr.JOB_TITLE]:d0,[cr.MOBILE_PHONE]:d0,[cr.CRC_NAME]:d0,[cr.CRC_ID]:d0,[cr.MANAGER_EMPLOYEE_ID]:d0,[cr.MANAGER_CPF]:d0,[cr.MANAGER_EMAIL]:d0,[cr.BUSINESS_DIVISION_ID]:d0,[cr.BUSINESS_DIVISION_NAME]:d0,[cr.TAGS]:d0},cn={USERS:"USERS",CHARGE:"CHARGE",PAYMENT:"PAYMENT",PAYMENT_BRANCH_ACCOUNT:"PAYMENT_BRANCH_ACCOUNT",CUSTOMER:"CUSTOMER",COMPANY:"COMPANY"},cl={USER:"USER_IMPORT",USERS:"USER_IMPORT",CHARGE:"CHARGE_IMPORT",PAYMENT:"PAYMENT_IMPORT",PAYMENT_BRANCH_ACCOUNT:"PAYMENT_BRANCH_ACCOUNT_IMPORT",CUSTOMER:"CUSTOMER_IMPORT",COMPANY:"COMPANY_IMPORT"},cs=({dataImportTable:i,type:o})=>{let n=G(),{t:l}=eW(),s=[{property:"name",header:{label:l("Field")}},{property:"description",header:{label:l("Description")}},{property:"requiredMessage",header:{label:l("Required")}}],{stream:d,fileName:c}=ew(()=>((e,t)=>{if(!Object.values(cn).includes(t))return null;let{fileName:r,stream:i}=((e,t)=>{var r;let i,a,o=r6.book_new(),{columns:n,dataTypes:l}=((e,t=e=>e)=>{switch(e){case cn.USERS:return{columns:cr,comments:ca,requiredFields:co,dataTypes:ci};case cn.CHARGE:return{columns:d5,comments:d6,requiredFields:d9};case cn.PAYMENT:let r,i;return{columns:ce(t),comments:{[(r=ce(t)).CORRELATION_ID]:t("Unique identifier for tracking the payment"),[r.VALUE]:t("Value"),[r.DESTINATION_PIX_KEY]:t("Destination Pix Key"),[r.COMMENT]:t("Comment")},requiredFields:{[(i=ce(t)).CORRELATION_ID]:d0,[i.VALUE]:d3,[i.DESTINATION_PIX_KEY]:d3,[i.DESTINATION_PIX_KEY_TYPE]:d0,[i.COMMENT]:d0}};case cn.PAYMENT_BRANCH_ACCOUNT:let a,o;return{columns:ct(t),comments:{[(a=ct(t)).VALUE]:t("Value"),[a.PSP_ID]:t("PSP ID"),[a.PSP_NAME]:t("PSP Name"),[a.HOLDER_NAME]:t("Holder Name"),[a.CPF_CNPJ]:t("CPF ou CNPJ"),[a.BRANCH]:t("Ag\xeancia"),[a.ACCOUNT]:t("Conta"),[a.ACCOUNT_TYPE]:t("Tipo de Conta"),[a.COMMENT]:t("Coment\xe1rio")},requiredFields:{[(o=ct(t)).VALUE]:d3,[o.PSP_ID]:d3,[o.PSP_NAME]:d3,[o.HOLDER_NAME]:d3,[o.CPF_CNPJ]:d3,[o.BRANCH]:d3,[o.ACCOUNT]:d3,[o.ACCOUNT_TYPE]:d3,[o.COMMENT]:d0}};case cn.CUSTOMER:let n;return{columns:d8(t),comments:d8(t),requiredFields:{[(n=d8(t)).NAME]:d3,[n.TAX_ID]:d3,[n.EMAIL]:d0,[n.PHONE]:d0}};case cn.COMPANY:let l;return{columns:d7(t),comments:d7(t),requiredFields:{[(l=d7(t)).NAME]:d3,[l.TRADE_NAME]:d0,[l.TAX_ID]:d3,[l.EMAIL]:d3,[l.PHONE]:d3,[l.WEBSITE]:d0,[l.FIRST_NAME]:d3,[l.LAST_NAME]:d3,[l.LAST_NAME]:d3,[l.USER_MASTER_TAX_ID]:d3}};default:return{columns:{},comments:{},requiredFields:{}}}})(t,e),s=r6.json_to_sheet([],{header:Object.values(n)});(r=s)["!cols"]=[],Object.entries(r).forEach(([e,t])=>{let i,{v:a}=t;a&&r["!cols"]&&r["!cols"].push({width:a.length+2}),l&&a in l&&(r={...r,...(i=a[0],[...Array(1e3).keys()].reduce((e,t)=>{let r=`${i}${2+t}`;return{...e,[r]:"string"==typeof l[a]?{t:l[a],v:" "}:l[a]}},{}))})});let d=cl[t.toLocaleUpperCase()];return o.Sheets[d]=s,o.SheetNames.push(d),{stream:r9(o,{type:"buffer",bookType:"xlsx"}),fileName:(i={[cn.USERS]:e("Users"),[cn.CHARGE]:e("Charge"),[cn.PAYMENT]:e("Payment"),[cn.PAYMENT_BRANCH_ACCOUNT]:e("Payment Branch Account"),[cn.CUSTOMER]:e("Customer"),[cn.COMPANY]:e("Company")},a=e("charge_batch_template_time_data"),t===cn.CHARGE?`${a}.xlsx`:`Template_Import_${i[t]}.xlsx`)}})(e,t);return{stream:i,fileName:r}})(l,o),[o]);return r(e,{children:[r(V,{my:"15px",fontSize:"12px",children:[l("Download here the")," ",t(a,{sx:{color:n.palette.primary.light},href:(()=>{if(!d)return"";let e=new File([d],c);return URL.createObjectURL(e)})(),download:c,component:"a",children:"excel template"})," ",l("to mount your data")]}),t(d2,{columns:s,rows:i,hideFooter:!0})]})},cd=i=>{let[a,o]=eE(null),[n,l]=eE([]),[s,d]=eE(!1),[c,p]=eE(!1),[m,h]=eE(!1),[u,x]=eE(0),[f,g]=eE(new Set),{t:C}=eW(),y=eI(),[b,v]=eE([]),[w,M]=eE(!1),[I,E]=eE(!0),{dataImportTable:S,getColumnType:A,getInvalidFieldsMessage:k,getReferences:T,updateRows:D,prepareQueue:L,processQueueItem:_,reducer:P,labels:N,customColumnValidation:O,type:z}=i,H=((e,t)=>{let{importLabel:r=e("Import")}=t??{};return[e("Select a file to upload"),e("Analyze data"),e("Data review"),r]})(C,N),F=e=>{e.stopPropagation(),o(null),l([]),h(!1),y.current=[]},W=async e=>{l(e),y.current=e},B=0===u||c,j=u===H?.length-1||s||!n?.length||c||!I;return r(e,{children:[t(rH,{activeStep:u,children:H.map((e,r)=>t(rO,{children:t(rz,{children:e})},r))}),(e=>{switch(e){case 0:return t(d$,{setIsLoading:d,setSheet:o,clearData:F,sheet:a,isLoading:s,dataComplete:!!n.length,setData:l,setShowReport:h,setFirstData:W,setFirstImport:M,dataImportTable:S});case 1:return t(dU,{data:n,setData:l,latestData:y,setIsProcessing:p,isProcessing:c,updateRows:D});case 2:return t(dZ,{setData:l,data:n,isProcessing:c,setShowReport:h,showReport:m,setSelectedData:v,firstImport:w,selectedData:b,dataImportTable:S,getColumnType:A,getInvalidFieldsMessage:k,getReferences:T,setIsNextEnabled:E,customColumnValidation:O});case 3:return t(dJ,{data:n,setData:l,setShowReport:h,selectedData:b,setSelectedData:v,showReport:m,setFirstImport:M,setActiveStep:x,prepareQueue:L,processQueueItem:_,reducer:P});default:return""}})(u),a&&n.length<1?t(R,{justifyContent:"flex-end",children:t(V,{color:"error",children:C("You are trying to import a empty sheet")})}):null,t(R,{justifyContent:"flex-end",alignItems:"center",my:"15px",children:r(aD,{children:[t(ij,{variant:"text",disabled:B,onClick:()=>{x(e=>e-1)},children:C("Previous")}),t(ij,{variant:"contained",color:"primary",onClick:()=>{let e=f;f.has(u)&&(e=new Set(e.values())).delete(u),x(e=>e+1),g(e)},disabled:j,children:C("Go forward")})]})}),0===u&&t(cs,{dataImportTable:S,type:z})]})},cc=({children:e,to:r,...i})=>t(rk,{component:lL,to:r,...i,children:e}),cp="MATCHED",cm=/(\d{3})(\d{0,3})(\d{0,3})(\d{0,2})/,ch=({qrCodeShow:e,children:r,...i})=>{let a=G();return t(R,{sx:{display:e?"flex":"none",alignItems:"center",justifyContent:"center",border:e?"1px solid":"none",borderColor:a.palette.primary.main,borderRadius:a.shape.borderRadius,boxShadow:e?`0px 0px 0px 3px ${B(a.palette.primary.main,.7)}`:"none","& > svg":{display:e?"block":"none",height:"auto",width:"100%",borderRadius:a.shape.borderRadius},"@media (min-width: 600px)":{display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:a.palette.primary.main,borderRadius:a.shape.borderRadius,boxShadow:`0px 0px 0px 3px ${B(a.palette.primary.main,.7)}`,"& > svg":{display:"block",height:"auto",width:"100%",borderRadius:a.shape.borderRadius}}},"data-testid":i["data-testid"],children:r})},cu=({amount:e=1})=>{let{t:i}=eW(),o=Q(),n=o.palette.success.main,l=dn(e)??dn(1);return r(R,{alignItems:"center",sx:{textAlign:"center"},children:[t(a,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:t(it,{size:30,color:n})}),t(V,{variant:"h6",fontWeight:o.typography.fontWeightBold,color:"text.primary",sx:{mb:2},children:i("Two-factor verification confirmed")}),t(R,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:t(V,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:i("We received the payment of {{amount}} and confirmed the payer tax ID matches your account. You can continue securely.",{amount:l})})})]})},cx=({amount:e=1})=>{let{t:i}=eW(),o=Q(),n=o.palette.error.main,l=dn(e);return r(R,{alignItems:"center",sx:{textAlign:"center"},children:[t(a,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:t(ie,{size:30,color:n})}),t(V,{variant:"h6",fontWeight:o.typography.fontWeightBold,color:"text.primary",sx:{marginBottom:2},children:i("Unable to confirm your identity")}),r(R,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:[t(V,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:i("We received the payment of {{amount}}, but the payer's taxpayer ID does not match the CPF on your account. For security, we cannot grant access.",{amount:l})}),t(V,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:i("Try making the payment from a bank account in your name or choose another verification method.")})]})]})},cf=({onGetResult:e,pixAuthentication:i})=>{var a;let o,{t:n}=eW(),[l,s]=eE(),d=async()=>{if(!e)return;let t=await e();s(t?.result)};if(a=!l||"UNVERIFIED"===l,o=eI(),ey(()=>{o.current=d},[d]),ey(()=>{let e;return a?e=setInterval((...e)=>o.current(...e),5e3):e&&clearInterval(e),()=>{e&&clearInterval(e)}},[a,5e3]),"MISMATCH"===l)return t(cx,{});if(l===cp)return t(cu,{});let c=i.taxID.replace(/\D/g,"").replace(cm,(e,t,r="",i="",a="")=>{let o=r&&`.${r}`,n=i&&`.${i}`,l=a&&`-${a}`;return`${t}${o}${n}${l}`});return r(R,{flexDirection:"column",spacing:2.5,alignItems:"center",sx:{py:2},children:[r(R,{spacing:1.5,alignItems:"center",children:[t(eH,{variant:"body1",textAlign:"center",sx:{lineHeight:1.6},children:n("We will validate your CPF using a Pix transaction. Pay the QR Code below, of R$ 0.01 using your bank's app from an account with your CPF {{taxID}}. After payment, the amount of R$ 0.01 will be automatically refunded.",{taxID:c})}),t(oL,{label:n("CPF"),value:c,sx:{mt:1}})]}),t(R,{sx:{maxWidth:"200px",width:"100%"},children:t(ch,{qrCodeShow:!0,"data-testid":"pix-qrcode",children:t(il,{value:i.brCode,size:160,level:"M",marginSize:4})})})]})},cg=({title:i,message:a,actionMessage:o,isOpen:n,isMutationPending:l=!1,onConfirm:s,handleOpenChange:d,onTryAnotherWay:c,email:p,isTOTPActive:m,isWhatsAppAuthenticatorActive:h,phoneNumber:u,name:x="multiFactorCode",action:f,onGetResult:g,onContinue:C})=>{let{t:y}=eW(),b=Q(),[v,w]=eE(!1),[M,I]=eE(!1),[E,S]=eE(null),[A,k]=eE(null),[T]=ts(x),D=l||T.value.length<6||T.value.replaceAll(" ","").length<6,L=async()=>{if(I(!0),c){let e=await c();e&&e.brCode&&(S(e),w(!0))}I(!1)},_=async()=>{if(g){let e=await g();return e&&e.result&&k(e.result),e}},P=()=>{d(),S(null),w(!1)};return t(oX,{open:n,onClose:P,title:i,actions:v?r(e,{children:[t(ij,{variant:"text",color:"secondary",onClick:P,children:y("Cancel")}),A===cp&&t(ij,{variant:"contained",color:"primary",onClick:C,children:y("Continue")})]}):r(e,{children:[c&&t(ij,{variant:"text",color:"secondary",disabled:M,onClick:L,sx:{marginRight:"auto"},children:y("Try another way")}),t(ij,{variant:"text",color:"secondary",onClick:P,children:y("Cancel")}),t(ij,{onClick:()=>s(T.value),disabled:D,children:y("Confirm")},"action-2")]}),children:v&&E?.brCode?t(cf,{onGetResult:_,pixAuthentication:E}):r(R,{flexDirection:"column",spacing:2,children:[(()=>{if(a)return a;if(m&&"USER_MASTER_AUTHENTICATOR_TOTP_DEACTIVATE_METHOD"!==f){let i=[{icon:t(ii,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Access your authentication app"),description:y("Open the authentication application previously configured on your cell phone.")},{icon:t(io,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Locate the authentication code"),description:y("Look for the 6-digit authentication code displayed in the app.")},{icon:t(ia,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Enter the code and confirm"),description:y("Enter the 6-digit code in the field below and confirm the operation.")}];return r(e,{children:[r(eH,{children:[y("Validate your code with the authenticator code generated in your app.")," ",o]}),i.map((e,i)=>r(R,{gap:2,flexDirection:"row",children:[e.icon,r(R,{justifyContent:"center",children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[i+1,"\xb0 - ",e.title]}),t(eH,{children:e.description})]})]},i))]})}if(h){let e=[{icon:t(ii,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Access your phone"),description:y("Open the WhatsApp or SMS application on your cell phone.")},{icon:t(io,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Locate the authentication code"),description:y("Look for the 6-digit authentication code displayed in the WhatsApp or SMS.")},{icon:t(ia,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Enter the code and confirm"),description:y("Enter the 6-digit code in the field below and confirm the operation.")}];return r(R,{sx:{flexDirection:"column",gap:1},children:[t(eH,{children:y("We send a validation code to {{phoneNumber}}.",{phoneNumber:u})}),t(eH,{children:y("The code will be valid for 10 minutes after we send it.")}),e.map((e,i)=>r(R,{gap:2,flexDirection:"row",children:[e.icon,r(R,{justifyContent:"center",children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[i+1,"\xb0 - ",e.title]}),t(eH,{children:e.description})]})]},i))]})}if(!m&&!h&&p){let e=[{icon:t(ir,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Access your email"),description:y("Open your email and look for the message with the authentication code.")},{icon:t(io,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Locate the authentication code"),description:y("Look for the 6-digit authentication code displayed in the email.")},{icon:t(ia,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:y("Enter the code and confirm"),description:y("Enter the 6-digit code in the field below and confirm the operation.")}];return r(iJ,{sx:{flexDirection:"column",gap:1},children:[r(eH,{children:[y("We send a validation code to {{email}}.",{email:p})," ",o]}),t(eH,{children:y("The code will be valid for 10 minutes after we send it.")}),e.map((e,i)=>r(R,{gap:2,flexDirection:"row",children:[e.icon,r(R,{justifyContent:"center",children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[i+1,"\xb0 - ",e.title]}),t(eH,{children:e.description})]})]},i))]})}})(),r(R,{children:[r(eH,{fontWeight:b.typography.fontWeightBold,children:[y("Authentication code"),":"]}),t(nX,{name:x})]})]})})},cC={ACTIVE:"#FF9800",REJECTED:"#ff7f50",CANCELED:"#FF9800",EXPIRED:"#ff7f50",CREATED:"#e6cf00ff",CONCLUDED:"#4CAF50",PAID:"#4CAF50",SCHEDULED:"#FF9800",REQUESTED:"#e6cf00ff"},cy=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${cC[e]} !important`,color:"white !important",...r},...i}),cb=({status:e,sx:r,...i})=>t(oL,{sx:{backgroundColor:`${cC[e]} !important`,color:"white !important",...r},...i}),cv=()=>r("svg",{width:"259",height:"259",viewBox:"0 0 259 259",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("g",{clipPath:"url(#clip0_41_572)",children:[t("path",{d:"M240.166 54.3437C238.354 51.4256 236.323 48.5625 234.181 45.9196C216.391 24.0059 193.165 14.7559 166.645 8.5342C139.246 2.09224 107.125 0.110096 80.824 11.6726C74.6194 14.4256 68.7443 18.0595 64.0772 23.0149C46.4518 41.68 40.4119 72.9538 20.8098 97.6756C1.20775 122.397 -8.3462 153.176 9.22429 182.412C16.6917 194.801 26.1908 204.987 37.392 213.961C51.2287 224.973 63.1437 239.894 79.1768 248.484C95.9786 257.513 118.381 260.707 136.995 256.522C158.244 251.787 170.653 232.957 186.851 220.183C199.644 210.052 214.909 203.445 227.428 193.039C246.591 177.071 261.141 151.359 258.725 125.921C256.364 101.199 253.289 75.5416 240.166 54.3437Z",fill:"#D4F8EE"}),t("path",{opacity:"0.7",d:"M240.166 54.3437C238.354 51.4256 236.323 48.5625 234.181 45.9196C216.391 24.0059 193.165 14.7559 166.645 8.5342C139.246 2.09224 107.125 0.110096 80.824 11.6726C74.6194 14.4256 68.7443 18.0595 64.0772 23.0149C46.4518 41.68 40.4119 72.9538 20.8098 97.6756C1.20775 122.397 -8.3462 153.176 9.22429 182.412C16.6917 194.801 26.1908 204.987 37.392 213.961C51.2287 224.973 63.1437 239.894 79.1768 248.484C95.9786 257.513 118.381 260.707 136.995 256.522C158.244 251.787 170.653 232.957 186.851 220.183C199.644 210.052 214.909 203.445 227.428 193.039C246.591 177.071 261.141 151.359 258.725 125.921C256.364 101.199 253.289 75.5416 240.166 54.3437Z",fill:"#D4F8EE"}),t("path",{d:"M204 81.0021V57.0662H201.82V26.3657C201.82 15.9067 193.414 7.47708 183.036 7.42505C183.036 7.42505 183.036 7.42505 182.984 7.42505H81.7438C71.3136 7.42505 62.9072 15.8547 62.9072 26.3137C62.9072 26.3137 62.9072 26.3137 62.9072 26.3657V232.631C62.9072 243.09 71.3655 251.52 81.7438 251.52H182.984C193.414 251.52 201.82 243.038 201.82 232.631V101.4H204V87.2463H201.82V81.0021H204Z",fill:"#707070",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M85.9462 10.0789H178.728C190.248 10.0789 199.588 19.4451 199.588 30.9968V227.948C199.588 239.5 190.248 248.866 178.728 248.866H85.9462C74.4264 248.866 65.0859 239.5 65.0859 227.948V30.9968C65.0859 19.4451 74.4264 10.0789 85.9462 10.0789Z",fill:"#263238",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M177.068 11.796H139.707L139.655 11.9521C138.565 15.9587 136.022 18.5605 133.168 18.5605H131.56C128.758 18.5605 126.215 15.9587 125.073 11.9521V11.796H87.6598C77.2296 11.796 68.8232 20.2776 68.8232 30.6846V219.102C68.8232 229.561 77.2815 237.991 87.6598 237.991H177.017C187.395 237.991 195.853 229.561 195.853 219.102V30.6846C195.905 20.2776 187.447 11.796 177.068 11.796Z",fill:"white",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M177.069 11.796H139.707L139.655 11.9521C138.565 15.9587 136.022 18.5605 133.168 18.5605H131.56C128.758 18.5605 126.215 15.9587 125.073 11.9521V11.796H87.6598C77.2296 11.796 68.8232 20.2776 68.8232 30.6846V32.818H195.905V30.6846C195.905 20.2776 187.447 11.796 177.069 11.796Z",fill:"#03D69D"}),t("path",{d:"M181.323 120.601C181.323 116.178 187.342 110.922 186.252 106.811C185.111 102.544 177.275 101.088 175.096 97.341C172.968 93.5945 175.563 85.9975 172.501 82.9274C169.44 79.8574 161.915 82.5111 158.127 80.3257C154.339 78.1402 152.938 70.283 148.683 69.1382C144.584 68.0455 139.395 74.0815 134.932 74.0815C130.469 74.0815 125.28 68.0455 121.181 69.1382C116.926 70.283 115.473 78.1402 111.737 80.3257C108 82.4591 100.424 79.8574 97.3626 82.9274C94.301 85.9975 96.9475 93.5425 94.768 97.341C92.5886 101.14 84.753 102.544 83.6114 106.811C82.5217 110.922 88.5411 116.126 88.5411 120.601C88.5411 125.076 82.5217 130.279 83.6114 134.39C84.753 138.657 92.5886 140.114 94.768 143.86C96.8956 147.607 94.301 155.204 97.3626 158.274C100.424 161.344 107.948 158.69 111.737 160.875C115.525 163.061 116.926 170.918 121.181 172.063C125.28 173.156 130.469 167.12 134.932 167.12C139.395 167.12 144.584 173.156 148.683 172.063C152.938 170.918 154.391 163.061 158.127 160.875C161.864 158.69 169.44 161.344 172.501 158.274C175.563 155.204 172.916 147.659 175.096 143.86C177.275 140.062 185.111 138.657 186.252 134.39C187.394 130.279 181.323 125.023 181.323 120.601Z",fill:"#03D69D"}),t("path",{d:"M134.362 139.229L114.332 117.999C113.398 116.958 113.398 115.345 114.435 114.408C115.473 113.472 117.082 113.472 118.016 114.513L133.739 131.216L153.613 102.336C154.34 101.14 155.897 100.775 157.09 101.504C158.284 102.232 158.647 103.793 157.92 104.99C157.868 105.042 157.817 105.146 157.765 105.198L134.362 139.229Z",fill:"white"}),t("path",{d:"M74.375 199.797H113.449",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M144.792 204.949H158.024",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M133.843 204.949H142.042",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M101.048 204.949H130.678",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M74.375 204.949H97.3628",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M124.295 210.465H150.033",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M101.463 210.465H121.078",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M74.375 210.465H98.2969",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M184.021 215.928H187.187",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M160.307 215.928H181.738",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M118.379 215.928H154.807",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M83.7158 215.928H114.695",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M74.375 215.928H80.083",stroke:"#263238",strokeWidth:"1.3179",strokeLinejoin:"round"}),t("path",{d:"M131.974 14.5018C132.949 14.5018 133.739 13.7097 133.739 12.7326C133.739 11.7555 132.949 10.9634 131.974 10.9634C131 10.9634 130.21 11.7555 130.21 12.7326C130.21 13.7097 131 14.5018 131.974 14.5018Z",fill:"#707070"}),t("path",{d:"M156.104 19.7573H154.443V23.9721H156.104V19.7573Z",fill:"white"}),t("path",{d:"M158.335 18.9247H156.675V23.9721H158.335V18.9247Z",fill:"white"}),t("path",{d:"M160.567 18.3003H158.906V23.92H160.567V18.3003Z",fill:"white"}),t("path",{d:"M162.798 17.2596H161.138V23.92H162.798V17.2596Z",fill:"white"}),t("path",{d:"M183.555 23.816H173.488V17.6759H183.555V23.816ZM174.059 23.2957H182.984V18.2483H174.059V23.2957Z",fill:"white"}),t("path",{d:"M180.182 18.8207H174.889V22.6712H180.182V18.8207Z",fill:"white"}),t("path",{d:"M184.437 20.0175H183.191V21.4744H184.437V20.0175Z",fill:"white"}),t("path",{d:"M169.804 22.5151C169.752 22.5151 169.648 22.5151 169.596 22.4631C167.521 21.2663 166.172 22.359 166.12 22.4111C165.964 22.5672 165.756 22.5672 165.601 22.4631C165.445 22.307 165.445 22.0989 165.549 21.9428L165.601 21.8907C165.653 21.8387 167.417 20.3297 169.96 21.8387C170.115 21.9428 170.219 22.1509 170.115 22.359C170.063 22.4111 169.96 22.5151 169.804 22.5151Z",fill:"white"}),t("path",{d:"M170.581 21.2143C170.529 21.2143 170.426 21.2143 170.374 21.1622C167.416 19.393 165.444 21.1102 165.392 21.1102C165.237 21.2663 165.029 21.2143 164.873 21.1102C164.718 20.9541 164.77 20.7459 164.925 20.5898C164.925 20.5898 167.364 18.5085 170.789 20.5378C170.945 20.6419 171.048 20.85 170.945 21.0582C170.841 21.1622 170.685 21.2143 170.581 21.2143Z",fill:"white"}),t("path",{d:"M171.257 19.8093C171.205 19.8093 171.101 19.8093 171.049 19.7573C167.313 17.5198 164.822 19.6012 164.718 19.7052C164.563 19.8613 164.303 19.8093 164.199 19.6532C164.044 19.4971 164.096 19.2369 164.251 19.1328C164.303 19.1328 167.261 16.5831 171.464 19.0808C171.62 19.1849 171.724 19.393 171.62 19.6012C171.516 19.7052 171.36 19.8093 171.257 19.8093Z",fill:"white"}),t("path",{d:"M168.661 23.1395C168.661 23.6599 168.246 24.0761 167.727 24.0761C167.208 24.0761 166.793 23.6599 166.793 23.1395C166.793 22.6192 167.208 22.2029 167.727 22.2029C168.246 22.2029 168.661 22.6192 168.661 23.1395Z",fill:"white"})]}),t("defs",{children:t("clipPath",{id:"clip0_41_572",children:t("rect",{width:"259",height:"259",fill:"white"})})})]}),cw=({children:e,color:r})=>{let i=Q();return t(iJ,{sx:{alignItems:"center",gap:1,backgroundColor:r||i.palette.primary.main,padding:"5px 32px 5px 10px",borderRadius:"5px 0 0 5px",clipPath:"polygon(100% 0,0% 0%,0% 100%,100% 100%,calc(100% - 20px) 50%)"},children:e})},cM=({chargeData:e})=>{let{t:i}=eW(),a=Q();if(!e?.discount)return null;let o=l8(e.discount/100);return r(cw,{children:[t(V,{children:"\uD83E\uDD11"}),r(V,{color:a.palette.tertiary.main,sx:{fontSize:"16px"},children:[i("You earned")," ",t("b",{children:o})," ",i("of discount")]})]})},cI=({chargeData:e})=>{let{t:i}=eW(),a=Q();if(!e?.cashback||e.cashback?.status!==lW)return null;let o=l8(e.cashback.value/100);return r(cw,{children:[t(V,{children:"\uD83E\uDD11"}),r(V,{color:a.palette.tertiary.main,sx:{fontSize:"16px"},children:[t("b",{children:o})," ",i("cashback on time!")]})]})},cE=({charge:i,companyName:a})=>{let{t:o}=eW(),n=o("To pay"),l=o("to {{companyName}}",{companyName:a}),s=da(i?.value/100),d=da(i?.valueWithDiscount/100);return t(V,{sx:{fontSize:"24px",fontWeight:"800",textAlign:"center"},children:i?.value||i?.valueWithDiscount?"number"==typeof i?.valueWithDiscount&&i?.value!==i?.valueWithDiscount?r(e,{children:[n,t(V,{component:"span",sx:{color:"#b2b2b2ff",textDecoration:"line-through",fontSize:"24px",fontWeight:"800"},children:s+" "}),d," ",l," ",o("via Pix")]}):`${n} ${o("{{finalValue}}",{finalValue:(()=>{let{finalValue:e}=i?.decodedBrCode||{};return e?da(e/100):i?.valueWithDiscount?da(i?.valueWithDiscount/100):da(i.value/100)})()})} ${l} ${o("via Pix")}`:o("Define the payment value")})},cS={ALL:"ADMIN"};cS.ALL,cS.ALL,cS.ALL;let cA=({projectType:e})=>{let{t:i}=eW(),a=Q(),o="WOOVI"===e?r(eF,{t:i,i18nKey:"100% encrypted payment via Woovi",children:["100% encrypted payment via"," ",t(I,{href:"https://woovi.com/?utm_source=payment_link&utm_medium=logo",target:"_blank",rel:"noopener noreferrer",children:t(nH,{color:a.palette.grey[400],height:"14px"})})]}):r(eF,{t:i,i18nKey:"100% encrypted payment via OpenPix",children:["100% encrypted payment via"," ",t(I,{href:"https://woovi.com/?utm_source=payment_link&utm_medium=logo",target:"_blank",rel:"noopener noreferrer",children:"OpenPix"})]});return r(iJ,{sx:{flexDirection:"column",pb:"10px"},children:[t(V,{sx:{fontSize:16,textAlign:"center",color:a.palette.grey[400]},children:o}),r(V,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:a.palette.grey[400]},children:["(v",nj,")"]})]})},ck=({value:e,onError:r,debounceDelay:i=1e3})=>{let{t:a}=eW(),{enqueueSnackbar:o}=t3();return t(lH,{value:e,debounceDelay:i,onError:()=>{o(a("Error copying Barcode"),{variant:"error"}),r&&r(!0)},"data-testid":"btn-copy-barcode-payment-link",children:a("Copy Barcode")})},cT=({value:e,onError:r,debounceDelay:i=1e3})=>{let{t:a}=eW(),{enqueueSnackbar:o}=t3();return t(lH,{value:e,debounceDelay:i,onError:async()=>{o(a("Error copying QR Code"),{variant:"error"}),r&&r(!0)},"data-testid":"btn-copy-qrcode-payment-link",children:a("Copy QR Code")})},cD=({projectType:e})=>t(cA,{projectType:e}),cR=({qrCodeShow:e,setQrCodeShow:r})=>{let{t:i}=eW();return t(iJ,{sx:{flex:1,"@media (min-width: 600px)":{display:"none"}},children:t(ij,{variant:"outlined",color:"tertiary",onClick:()=>r(!e),startIcon:t(is,{color:"tertiary"}),size:"large",sx:e=>({display:"flex !important",width:"100% !important",color:`${e.palette.tertiary.main} !important`,borderColor:`${e.palette.tertiary.main} !important`,backgroundColor:"transparent !important","&:hover":{boxShadow:"none !important",textDecoration:"none !important",backgroundColor:`${e.palette.action.hover} !important`,border:`1px solid ${e.palette.tertiary.main} !important`}}),fullWidth:!0,children:t(V,{component:"span",sx:{textTransform:"uppercase"},children:i(e?"Hide QR Code":"Show QR Code")})})})},cL=({title:e,value:i,variant:a="h6"})=>r(ee,{direction:"row",sx:{justifyContent:"space-between"},gap:10,children:["string"!=typeof e?e:t(eH,{variant:a,children:e}),t(eH,{variant:a,fontWeight:"bold",children:"number"==typeof i?dn(i):i})]}),c_=({children:e,value:r,labelPlacement:i="start",cardProps:a={},radioTestId:o=null,useFormik:n=!1})=>{let l=Q(),s=ip(),d=n?null:r===s?.value;return t(iX,{...a,sx:{borderRadius:void 0,...a.sx,p:1,transition:"none",backgroundColor:d?X(l.palette.primary.light,.95):void 0,borderColor:d?`${l.palette.primary.main}`:void 0,boxShadow:d?`inset 0px 0px 0px 1px ${l.palette.primary.main}`:void 0,"&:hover":{backgroundColor:X(l.palette.primary.light,.95),borderColor:`${l.palette.primary.main}`,boxShadow:`inset 0px 0px 0px 1px ${l.palette.primary.main}`}},children:t(id,{sx:{alignItems:"start",marginRight:0},value:r,label:t(iJ,{sx:{width:"100%",mt:1,flexDirection:"column"},children:e}),labelPlacement:i,control:t(ic,{checkedIcon:t(rU,{}),sx:{"& .MuiSvgIcon-root":{fontSize:28}},...o?{inputProps:{"data-testid":o}}:{}}),disableTypography:!0})})},cP=({title:e,description:i,value:a,...o})=>{let n=Q(),l=o.color||n.palette.primary.main;return r(iJ,{sx:{background:X(l,.8),width:"100%",borderRadius:"8px",justifyContent:"space-between",mask:"radial-gradient(6px at right center, #0000 98%, #000) 0 0"},children:[r(iJ,{sx:{flexDirection:"column",padding:"8px 16px",justifyContent:"center"},children:[t(V,{variant:"h6",sx:{fontWeight:"bold"},children:e}),t(V,{children:i})]}),t(iJ,{sx:{background:l,alignItems:"center",justifyContent:"center",padding:"28px 16px",borderRadius:"8px",mask:"radial-gradient(6px at 6px center, #0000 98%, #000) -6px 0"},children:t(V,{color:"white",variant:"h6",sx:{fontWeight:"bold",whiteSpace:"nowrap"},children:a})})]})},cN=eh(null),cO=()=>{let e=eC(cN);if(!e)throw Error("Only should be used on the SwipeableDialog scope");return e},cz=e=>{let{children:r,isOpen:i=!1,onOpenChange:a,closeOnBackdropClick:o=!0}=e,[n,l]=aa(i,a);return t(cN.Provider,{value:{open:n,setOpen:l,closeOnBackdropClick:o},children:r})};cz.displayName="SwipeableDialog";let cH=e=>{let{children:r}=e;return t(tP,{children:r})};function cF(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),!1===r||!i.defaultPrevented)return t?.(i)}}cH.displayName="SwipeableDialogActions";let cW=e=>{let{setOpen:t}=cO(),{children:r,onClick:i}=e;return ec.cloneElement(r,{onClick:cF(()=>{t(!1)},i)})};function cV(e,...t){let r={...e};return t&&t.forEach(e=>{e&&Object.keys(e).forEach(t=>{r[t]&&"object"==typeof r[t]&&"object"==typeof e[t]?r[t]={...r[t],...e[t]}:r[t]=e[t]})}),r}cW.displayName="SwipeableDialogClose";let cB=e=>{let r=Q(),{children:i,dividers:a=!0,sx:o}=e;return t(iJ,{sx:cV({maxHeight:r.sizing.maxModalHeight,overflowY:"auto"},o),children:t(tL,{dividers:a,children:i})})};cB.displayName="SwipeableDialogContent";let cj=({children:e,sx:r})=>{let i=Q(),{open:a,setOpen:o,closeOnBackdropClick:n}=cO();return t(tq,{open:a,onClose:()=>{n&&o(!1)},closeAfterTransition:!0,sx:{"@media (max-width: 600px)":{zIndex:i.zIndex.modal,marginBottom:12}},children:t(oq,{in:a,children:t(eL,{sx:cV({position:"absolute",left:0,bottom:0,right:0,boxShadow:i.shadows[2],borderRadius:1,height:"fit-content","@media (min-width: 600px)":{maxWidth:700,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},r),children:e})})})},cG=e=>{let{children:r,sx:i}=e;return t(tN,{id:"dialog-title",sx:i,children:r})};cG.displayName="SwipeableDialogTitle";let cZ=e=>{let{setOpen:t}=cO(),{children:r,...i}=e;return ec.cloneElement(r,{...i,onClick:cF(i.onClick,()=>{t(!0)})})};cZ.displayName="SwipeableDialogTrigger";let c$=K("div")(({theme:e,fullWidth:t,variant:r})=>({display:"flex",flexDirection:"row-reverse",alignItems:"center",position:"relative",height:"36px",borderRadius:e.shape.borderRadius,color:"outline"===r?e.palette.primary.main:e.palette.common.white,backgroundColor:"outline"===r?e.palette.common.white:"transparent",transition:e.transitions.create("background-color"),...t?{width:"100%"}:{},"&:has(.MuiInputBase-input:focus), &:has(.MuiInputBase-input:not(:placeholder-shown))":{backgroundColor:e.palette.common.white,color:e.palette.tertiary.main},"&:has(.MuiInputBase-input:focus) .MuiButtonBase-root, &:has(.MuiInputBase-input:not(:placeholder-shown)) .MuiButtonBase-root":{color:e.palette.primary.main},[e.breakpoints.up("sm")]:{width:"auto",flexDirection:"row",backgroundColor:"outline"===r?e.palette.common.white:U(e.palette.common.white,.25)}})),cU=K(tm)(({theme:e,variant:t})=>({color:"outline"===t?e.palette.primary.main:e.palette.common.white,padding:e.spacing(0,2),display:"flex",alignItems:"center",justifyContent:"center",[e.breakpoints.up("sm")]:{cursor:"default"}})),cY=K(im)(({theme:e,fullWidth:t})=>({color:"dark"===e.palette.mode?e.palette.tertiary.main:"inherit",[e.breakpoints.down("sm")]:{width:"100%",paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},"& .MuiInputBase-input":{transition:e.transitions.create("create"),[e.breakpoints.up("sm")]:{width:"12ch","&:not(:placeholder-shown), &:focus":{width:t?"100%":"20ch"}}}})),cq=({onDebounceApplied:e,onChange:i,value:a,fullWidth:o=!1,disableMobile:n=!1,variant:l="primary"})=>{let s=t0(e=>e.breakpoints.up("sm")),d=eI(),{t:c}=eW(),[p,m]=eE(!1),h=ra(t=>{e&&a&&e(a,t)},3e3),u=p||s||n;return r(c$,{fullWidth:o,variant:l,children:[t(cU,{variant:l,onClick:()=>{m(!0),d.current!==document.activeElement&&(s||n)&&d.current.focus()},disableRipple:!0,children:t(tH,{sx:{color:"inherit"}})}),u&&t(cY,{name:"search",inputRef:d,type:"search",placeholder:`${c("Search")}...`,autoFocus:p,fullWidth:o,variant:l,inputProps:{"aria-label":"search",maxLength:256,"data-testid":"GlobalSearchField"},value:a,onChange:e=>{i(e)},onBlur:()=>{a||m(!1)},onKeyUp:e=>{"Enter"===e.key?h.cancel():h(e)}})]})},cX=({children:e,size:r="small",...i})=>t(eL,{elevation:0,sx:{width:{xs:"100%",md:"150px"}},children:t(ih,{...i,size:r,sx:{width:"100%"},children:e})}),cK={[o$]:"#4CAF50",[oZ]:"#EF5350"},cQ=({type:e,children:r})=>t(nl,{variant:"body2",color:cK[e],children:r}),cJ=eh(null),c1=()=>eC(cJ),c2=({children:e})=>{let[r,i]=eE(()=>localStorage.getItem("themeMode")||"light"),a=eg(()=>{let e="light"===r?"dark":"light";localStorage.setItem("themeMode",e),i(e)},[r]),o=ew(()=>({toggleTheme:a,themeMode:r}),[r,a]),n="light"===r?lS:lA;return t(cJ.Provider,{value:o,children:t($,{theme:n,children:e})})},c0=K(im)(({theme:e})=>({"& .MuiInputBase-input":{width:"100%",padding:e.spacing(1),backgroundColor:e.palette.background.paper,borderRadius:10,border:`2px solid ${X(e.palette.secondary.main,.8)}`,color:e.palette.secondary.main,fontSize:18,fontWeight:600,paddingLeft:16,transition:e.transitions.create(["border-color","box-shadow"]),"&:focus":{borderRadius:4,borderColor:X(e.palette.primary.main,.5),boxShadow:`0 0 0 0.2rem ${U(e.palette.primary.main,.3)}`}}})),c3=({group:e,value:r,onValueChange:i})=>t(ig,{sx:{width:"100%"},children:t(iC,{value:r,onChange:e=>i(e.target.value),input:t(c0,{}),children:e.map((e,r)=>t("option",{value:e.value,children:e.text},`mobile-item-${r}`))})}),c4=K(iu)(({theme:e})=>({minWidth:145,borderWidth:e.shape.borderWidth,borderColor:X(e.palette.secondary.main,.8),borderRadius:e.shape.borderRadius,textTransform:"none",fontSize:"14px",fontWeight:"600",padding:"0px 8px",color:X(e.palette.secondary.main,.8),"&.Mui-selected":{color:e.palette.secondary.main,backgroundColor:"transparent"}})),c5=({group:e,exclusive:r=!0,canValueBeNull:i=!0,initialValue:a,onValueChange:o})=>{let[n,l]=eE(()=>r?a??null:a?[a]:[]);return t0("(max-width: 600px)")?t(c3,{group:e,value:n,onValueChange:e=>{l(e),o&&o(e)}}):t(ix,{exclusive:r,value:n,onChange:(e,t)=>{if(i||r&&null!==t||Array.isArray(t)&&t.length>0){l(t),o&&o(t);return}},children:e.map((e,r)=>t(c4,{value:e.value,children:e.text},`${e.text}-${r}`))})},c6=({value:e,row:t})=>({value:e,row:t}),c9=rx(),c7=e=>e.type&&!Object.keys(c9).includes(e.type),c8=void 0!==process.env.JEST_WORKER_ID,pe=({columns:e,data:r,onScrollToBottom:i,onCardClick:a,noItemsLabel:o,cardListDefaultHeight:n="calc(100vh - 156px)"})=>{let l=eI(),[s,d]=eE(r.length);ey(()=>{r.length!==s&&d(r.length)},[r.length]);let c=iy({count:s,estimateSize:()=>80,overscan:10,getScrollElement:()=>l.current}),{t:p}=eW(),[m,h]=eE(n);ey(()=>{let[e]=[...c.getVirtualItems()].reverse();e&&e.index>=r.length-1&&i()},[r.length,c.getVirtualItems()]),ev(()=>{h(c.getVirtualItems().length<10?c.getVirtualItems().reduce((e,t)=>e+t.size,0):n)},[r.length,c.getVirtualItems()]);let u=(e,t)=>{if(a)return a({row:e},t)};if(0===r.length)return o?t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(V,{variant:"h6",children:o})}):t(iJ,{sx:{flex:1,alignItems:"center",justifyContent:"center"},children:t(V,{variant:"h6",children:p("No items")})});let x=sl(e),f=c8?Array.from({length:r.length},(e,t)=>({index:t,start:0})):c.getVirtualItems();return s&&t("div",{"data-testid":"use-virtualizer",ref:l,className:"List",style:{height:m,width:"100%",overflow:"auto"},children:t("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:f.map(e=>{let i=r[e.index];return t("div",{"data-index":e.index,ref:c.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e.start}px)`,marginBottom:"16px"},children:t(pt,{columns:x,row:i,onCardClick:a,handleCardClick:u})},e.index)})})})},pt=e=>{let{columns:r,row:i,onCardClick:a,handleCardClick:o}=e;return t(ng,{cardProps:{sx:{cursor:a?"pointer":"default"},onClick:e=>o&&o(i,e)},children:r.map((e,r)=>{var a,o,n,l;let s;return t(nx,{label:e.headerName,value:(a=i,s=(n="function"==typeof(o=e).valueGetter?o.valueGetter({row:a}):a[o.field],c7(l=o)?l.type in si&&"function"==typeof si[l.type].valueFormatter?si[l.type].valueFormatter({value:n,field:l.field}):n:"function"==typeof l.valueFormatter?l.valueFormatter({value:n,field:l.field}):n),(o.renderCell?o.renderCell(c6({value:s,row:a})):c7(o)?o.type in si&&si[o.type].renderCell?si[o.type].renderCell(c6({value:s,row:a})):s:s)??"-"),alignField:e.alignField},r)})})},pr=({minWidth:e=50})=>t(rT,{width:ew(()=>Math.max(e-10,120*Math.random()),[]),animation:"wave",variant:"text"}),pi=({size:e=10,...r})=>{let i=r.columns.map(e=>({...e,renderCell:()=>t(pr,{})}));return t("div",{"data-testid":"loading",children:Array.from({length:e},e=>({id:e})).map((e,r)=>t(pt,{columns:i,row:e},r))})},pa=()=>({cell:e=>{let t=e.getValue();return null===t?"-":"number"!=typeof t?t:l8(t/100)}}),po={DATETIME:"DATETIME",DATE:"DATE",TIME:"TIME"},pn=(e=po.DATE)=>({cell:t=>{let r=t.getValue();return r&&tb(r).isValid()?e===po.DATETIME?tb(r).format("DD-MM-YYYY HH:mm"):e===po.TIME?tb(r).format("HH:mm"):tb(r).format("DD-MM-YYYY"):"-"}}),pl=e=>({cell:r=>{let i=r.getValue();return i?t("a",{href:e(r?.row?.original),rel:"noreferrer noopener",target:"_blank",onClick:e=>e.stopPropagation(),children:i}):"-"}}),ps=[{id:"00",name:"Payload Format Indicator",format:"N",presence:"M"},{id:"01",name:"Point Of Initiation Method",format:"N",presence:"O"},{id:"02",name:"Merchant Account Information - Visa",format:"N",presence:"O"},{id:"03",name:"Merchant Account Information - Visa",format:"N",presence:"O"},{id:"04",name:"Merchant Account Information - Mastercard",format:"N",presence:"O"},{id:"05",name:"Merchant Account Information - Mastercard",format:"N",presence:"O"},{id:"26",name:"Merchant Account Information - Pix",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Pix Key",format:"ans",presence:"M"},{id:"02",name:"infos adicionais",format:"ans",presence:"M",size:{min:1,max:72}},{id:"25",name:"url",format:"ans",presence:"M",size:{min:1,max:72},variable:"url"},{id:"03",name:"fss",format:"ans",presence:"M",size:{min:8,max:8}}]},{id:"27",name:"Merchant Account Information - Outro",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Account ID",format:"ans",presence:"M"}]},{id:"29",name:"Merchant Account Information",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"05",name:"Merchan Account Information",format:"ans",presence:"M"}]},{id:"31",name:"Merchant Account Information",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"03",name:"Merchan Account Information",format:"ans",presence:"M"},{id:"05",name:"Merchan Account Information",format:"ans",presence:"M"}]},{id:"52",name:"Merchant Category Code",format:"N",presence:"M"},{id:"53",name:"Transaction Currency",format:"N",presence:"M"},{id:"54",name:"Transaction Amount",format:"ans",presence:"C"},{id:"55",name:"Tip or Convenience Indicator",format:"ans",presence:"C",template:[{id:"01",name:"Confirm Tip",format:"ans",presence:"M"}]},{id:"58",name:"Country Code",format:"ans",presence:"M"},{id:"59",name:"Merchant Name",format:"ans",presence:"M"},{id:"60",name:"Merchant City",format:"ans",presence:"M"},{id:"61",name:"Postal Code",format:"ans",presence:"O"},{id:"62",name:"Additional Data Field Template",format:"ans",presence:"O",template:[{id:"03",name:"Store Label",format:"ans",presence:"M"},{id:"05",name:"Reference Label",format:"ans",presence:"M"},{id:"06",name:"Customer Label",format:"ans",presence:"M"},{id:"07",name:"Terminal Label",format:"ans",presence:"M"},{id:"09",name:"Additional Consumer Data Request",format:"ans",presence:"M"},{id:"50",name:"Payment system specific template",format:"ans",presence:"M",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Version",format:"ans",presence:"M"}]}]},{id:"63",name:"CRC",format:"ans",presence:"M",valid:!0},{id:"64",name:"Merchant Alternate Language",format:"ans",presence:"O",template:[{id:"00",name:"Language Preference",format:"ans",presence:"M"},{id:"01",name:"Merchant Name - Alternate Language",format:"ans",presence:"M"},{id:"02",name:"Merchant City in Alternate Language",format:"ans",presence:"M"}]},{id:"80",name:"Unreserved Templates",format:"ans",presence:"O",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"URL",format:"ans",presence:"M"},{id:"25",name:"URL",format:"ans",presence:"M",size:{min:1,max:99},variable:"url"}]},{id:"81",name:"Unreserved Templates",format:"ans",presence:"O",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Other Info",format:"ans",presence:"M"}]},{id:"91",name:"Unreserved Templates",format:"ans",presence:"O",template:[{id:"00",name:"GUI",format:"ans",presence:"M"},{id:"01",name:"Other Info",format:"ans",presence:"M"},{id:"07",name:"Merchant Loyalty Identifier",format:"ans",presence:"M"}]}],pd=(e,t)=>{let r=[],i=0;for(var a=e;i<e.length;){var a=e.substring(i);let n=a.substr(0,2),l=parseInt(a.substr(2,2),10),s=a.substr(4,l);var o={id:n,length:l,data:s,nestedTags:[]};let d=e=>e.id===o.id,c=t.find(d);c&&(o.name=c.name,o.format=c.format,o.presence=c.presence,o.template=c.template,c.template&&(o.nestedTags=pd(o.data,o.template))),r.push(o),i+=l+4}return r},pc=tk({table:{width:"100%"}}),pp=({tag:i})=>{let[a,o]=eE(!1),n=!!i.nestedTags.length;return r(e,{children:[r(rK,{children:[t(rQ,{children:n&&t(tm,{"aria-label":"expand row",size:"small",onClick:()=>o(!a),children:a?t(iv,{}):t(ib,{})})}),t(rQ,{component:"th",scope:"row",children:i.id}),t(rQ,{children:i.name}),t(rQ,{children:i.length}),t(rQ,{children:i.data})]}),n&&t(rK,{children:t(rQ,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:t(iw,{in:a,timeout:"auto",unmountOnExit:!0,style:{paddingTop:"10px",paddingBottom:"10px",paddingLeft:"30px"},children:t(pm,{tags:i.nestedTags})})})})]})},pm=({tags:e})=>r(rF,{className:pc().table,size:"small","aria-label":"QR Code Data Table",children:[t(rJ,{children:r(rK,{children:[t(rQ,{}),t(rQ,{children:"ID"}),t(rQ,{children:"EMV Name"}),t(rQ,{children:"Size"}),t(rQ,{children:"Data"})]})}),t(r7,{children:e.map((e,r)=>t(pp,{tag:e},r))})]}),ph=({emv:e})=>{let[r,i]=eE(null);return(ey(()=>{e?i(pd(e,ps)):i(null)},[e]),r)?t(rW,{component:eL,children:t(pm,{tags:r})}):null},pu=()=>{let{toggleTheme:e,themeMode:r}=c1();return t(tm,{onClick:e,sx:{color:"common.white"},children:"light"===r?t(iM,{}):t(iI,{})})},px=({children:e})=>t(iE,{sx:{p:0,m:0,[`& .${iR.root}:before`]:{flex:0,padding:0}},children:e}),pf={CHARGE:t(e4,{fontSize:"small"}),DISPUTE:t(e5,{fontSize:"small"}),EMAIL:t(eY,{fontSize:"small"}),SMS:t(e0,{fontSize:"small"}),WHATSAPP:t(e6,{fontSize:"small"}),DATA_EXPORT:t(eQ,{fontSize:"small"}),CHARGE_EDIT:t(eU,{fontSize:"small"}),ACCOUNT_REGISTER:t(eJ,{fontSize:"small"}),TRANSACTION:t(e$,{fontSize:"small"})},pg=({title:e,time:i,color:a="primary",icon:o,onClick:n,isFirstItem:l=!1,isLastItem:s=!1})=>r(iT,{sx:{":hover":{cursor:n?"pointer":""}},onClick:n,children:[r(iD,{children:[t(iS,{sx:{backgroundColor:l?"transparent":"default"}}),t(ik,{color:a||"primary",sx:{boxShadow:"none"},children:o}),t(iS,{sx:{backgroundColor:s?"transparent":"default"}})]}),t(iA,{sx:{display:"flex",alignItems:"center",pr:0,pl:"8px"},children:t(iX,{sx:{p:1,flex:1},children:r(iJ,{sx:{justifyContent:"space-between"},children:[r(iJ,{sx:{flexDirection:"column"},children:[t(V,{fontWeight:"bold",children:e}),t(V,{color:"GrayText",children:tb(i).format("DD-MM-YYYY HH:mm")})]}),n&&t(eV,{fontSize:"small",color:"action"})]})})})]}),pC={ACCOUNT_REGISTER_COMPLETED:"success",ACCOUNT_REGISTER_REJECTED:"error",ACCOUNT_REGISTER_REQUESTED:"primary",CHARGE_CREATE:"primary",CHARGE_COMPLETED:"primary",CHARGE_EXPIRED:"error",CHARGE_EMAIL_SENT:"info",CHARGE_DUPLICATED:"success",CHARGE_ATTACH_TRANSACTION:"warning",CHARGE_VIEWED:"info",EMAIL_SENT:"info",EMAIL_DELIVERED:"info",EMAIL_VIEWED:"success",EMAIL_OPENED:"success",SMS_SENT:"info",SMS_DELIVERED:"info",SMS_VIEWED:"success",DATA_EXPORT_COMPLETED:"success"},py=({color:e="primary",icon:i,isFirstItem:a=!1,isLastItem:o=!1,children:n})=>r(iT,{children:[r(iD,{children:[t(iS,{sx:{backgroundColor:a?"transparent":"default"}}),t(ik,{color:e||"primary",sx:{boxShadow:"none"},children:i}),t(iS,{sx:{backgroundColor:o?"transparent":"default"}})]}),t(iA,{sx:{display:"flex",alignItems:"center",pr:0,pl:"8px"},children:n})]}),pb=({label:e,name:r})=>t(tY,{size:"medium",variant:"outlined",avatar:t(iP,{name:r,size:20}),label:dh(e)?rE(e):e,sx:{fontSize:"14px",backgroundColor:"transparent"}}),pv=({children:r,loading:i=null})=>{let[a,o]=eE(!1);return ey(()=>{"u">typeof window&&o(!0)},[]),t(e,{children:a?r:i})},pw=({children:e})=>t0(Q().breakpoints.up("sm"))?e:null,pM=({children:e})=>t0(Q().breakpoints.down("sm"))?e:null,pI=ex(({children:e,...r},i)=>t(iJ,{tabIndex:-1,ref:i,sx:{height:"100%",width:"100%"},children:t(y,{mountOnEnter:!0,unmountOnExit:!0,...r,children:e})})),pE=({open:e,onClose:i,title:a,children:o,cancelDragOnContent:n=!1,x:l=0,y:s=0,width:d=500,height:c=500,minWidth:p=200,minHeight:m=200})=>{let h=Q();return e?t(iL,{default:{x:l,y:s,width:d,height:c},style:{zIndex:h.zIndex.appBar+1},minWidth:p,minHeight:m,bounds:"window",...!n?{}:{cancel:".no-drag"},children:t(pI,{in:e,children:r(tn,{sx:{width:"100%",height:"100%",display:"flex",backgroundColor:h.palette.background.paper,boxShadow:h.shadows[3],borderRadius:"4px",flexDirection:"column"},children:[r(iJ,{sx:{py:1,pl:2,pr:1,alignItems:"center",justifyContent:"space-between"},children:[t(eH,{variant:"subtitle1",fontWeight:600,color:"black",children:a}),t(tm,{onClick:i,children:t(rs,{})})]}),t(tG,{}),t(tn,{className:"no-drag",sx:{width:"100%",overflow:"hidden"},children:o})]})})}):null};export{nV as AccountInfoLabel,aI as ActionMargin,nB as AdditionalInfo,i_ as AvatarCircle,ni as Banner,no as BannerError,nn as BannerInfos,pv as BrowserOnly,l_ as ButtonMenu,lP as ButtonMenuItem,lU as CLICK_PIX_BUTTON_VARIANT,pt as CardColumn,lG as CardCopy,nf as CardFieldCentered,pi as CardListLoading,nh as CardSelectable,nu as CardWithIcon,lZ as CardWithImage,lV as CashbackTagStatus,po as CellDateTypeEnum,nW as ChargeTagStatus,lY as ClickPixButton,l$ as ClickPixLogo,cy as CobrTagStatus,cb as CobrTryTagStatus,ar as Code,ai as Collapse,am as CollapsibleFillWrapper,aC as CollapsibleTreeActions,aS as Content,lH as CopyButton,lj as CopyInput,dV as DEFAULT_QUEUE_ACTIONS,lC as DOCUMENT_TYPE,sp as DataGridDetailContainer,sh as DataGridLoading,pw as DesktopOnly,nd as DonateWithClickButton,nM as DrawerResponsiveWrapper,nA as ErrorViewBoundary,l2 as GRID_DATETIME_CUSTOM_COL_DEF,ss as GridDensityTypes,pu as HeaderButtonTheme,aA as IntroText,a7 as LayoutRoot,cQ as LedgerStatementText,nN as Logo,le as MenuList,pM as MobileOnly,os as Modal,nz as OpenPixLogoColor,cE as PayPixValueCompany,n$ as PixTransactionTypeTag,ch as QRCodeWrapper,ou as QuestionTooltip,c_ as RadioCard,lL as ReactRouterLinkBehavior,sL as RightTopDiagonalVector,a6 as SVG,ok as SafeTextTooltip,n3 as ScreenHeaderUI,oO as ScreenHeaderUIResponsive,oV as ScreenHeaderUITempGreen,oG as ScreenHeaderUITempWhite,lr as Sidebar,oi as SidebarContext,oa as SidebarProvider,cz as SwipeableDialog,cH as SwipeableDialogActions,cW as SwipeableDialogClose,cB as SwipeableDialogContent,cj as SwipeableDialogModal,cG as SwipeableDialogTitle,cZ as SwipeableDialogTrigger,oX as SwipeableModal,pf as TIMELINE_APPEVENT_DOMAIN_ICON,pC as TIMELINE_APPEVENT_TYPE_COLOR,oK as TRANSACTION_TAG_ENTRYTYPE_COLOR,o8 as TRANSACTION_TAG_STATUS_COLOR,ph as TablePixEMV,su as TableViewModelEnum,lu as TagWebhookStatus,lx as Terms,lf as TermsLink,lk as ThemeMuiDispute,lS as ThemeMuiTheme,pg as TimelineAppEventItem,py as TimelineItem,px as Timeline,oJ as TransactionTagEntryType,ne as TransactionTagStatus,aM as TransparencyCollapsibleWrapper,pE as WindowPopper,cc as WooviLink,nr as LoginWrapper,iP as Avatar,iz as AvatarGroup,iH as AvatarGroupArray,iF as AvatarGroupSelectedAll,np as CardBasicContext,aX as buildSchemeGenerator,ij as ActionButton,iG as DangerButton,lF as PayWithPixButton,iZ as ResponsiveSplitButton,i$ as SplitButton,i8 as CardAnalytics,ae as CardAnalyticsSmall,nx as CardField,ng as CardGrid,at as Grid,i9 as CardWithActions,iX as Card,iK as CardActions,iQ as CardContent,i1 as CardForm,nm as CardList,i2 as CardSkeleton,i0 as CardStep,i3 as CardWithLink,i4 as CardWithLinkSkeleton,l1 as cellTypeBasisToPercentage,l3 as cellTypeExpand,l4 as cellTypeLink,l5 as cellTypePhone,l6 as cellTypeTag,pb as UserChip,ns as DonateClickPixButton,ad as Collapsible,ac as CollapsibleActions,ap as CollapsibleDetails,ah as CollapsibleGroup,au as CollapsibleInfinityActions,ax as CollapsibleStep,ag as CollapsibleStepHeader,ay as CollapsibleTree,ab as ExpandMoreIcon,av as LeafCollapsible,nC as CompanyLogo,oD as ScreenHeaderTitle,aE as ActionMarginText,lJ as Countdown,sc as DataGrid,nL as decodeQueryParamsFromLocation,nv as DialogProvider,cM as EarnDiscount,nw as DrawerCard,nI as ErrorBoundaryWithRetry,nk as ErrorView,nR as FileDrop,aL as Filter,aj as FilterRelayFormik,aG as FormikFilter,aB as useFilterFormik,nP as FieldRow,aW as formatFilters,pa as getCellCurrency,pn as getCellDate,pl as getCellLink,n5 as getItemsPath,nc as getLoadingIconProp,a$ as getShadeOfColor,oQ as getTransactionEntryTypeColors,oI as hasTemp,aZ as SectionHeading,aK as Divider,aD as HorizontalStack,aQ as HoverPopper,aU as hexToRgb,aY as hexToRgbaString,sv as AssineOnlineIcon,sM as BotConversaIcon,sI as CheckIconLabel,aJ as CvvIcon,a1 as DownloadIcon,iB as Icon,sS as MetaIcon,sk as N8nIcon,sT as NfeIcon,sR as NuvemshopIcon,a2 as RejectIcon,a0 as SearchIcon,sP as SocPanelIcon,a3 as SuccessIcon,sO as WabizIcon,sH as WakeIcon,a9 as WarningIcon,oc as WooviLogoInMobile,sW as Dropzone,sG as DropzoneFile,lD as isUnSupportedBrowser,on as LayoutWrapper,nO as LayoutWrapperFluid,nH as WooviLogo,iJ as BoxFlex,nl as Typography,cg as MultiFactorConfirmModal,cu as MultiFactorPixPaymentMatch,cx as MultiFactorPixPaymentMismatch,cf as MultiFactorPixPaymentView,af as CheckIcon,cv as ConfirmedIcon,cI as EarnCashback,cA as PixPaymentWoovi,cL as PaymentLinkRow,ck as CopyBarcode,cT as CopyQRCode,na as ErrorIcon,cD as PaymentFooter,cR as QrCodeShowButton,nq as PinInput,nX as PinInputFormik,of as RefreshButtonRelay,og as RefreshIconButton,ob as SearchInputRelay,ov as TopPagination,cP as RewardTicket,cw as Ribbon,n2 as ContentBoundary,oE as RoutedTabs,oS as TabbedContent,oR as ScreenHeaderCard,cq as GlobalSearchField,cX as Select,n4 as SelectAll,nG as WooviAuthForm,oo as useSidebar,li as CloseSnack,ll as SnackbarProvider,ls as useSnackbar,iW as BackButton,iV as Badge,iU as Circle,iY as CircleButton,lB as ClockIcon,iq as Column,ak as EmptyMessage,aT as EncryptedText,aR as FloatingMenu,oe as LinearProgress,an as Link,ot as Loading,od as OverflowDiv,op as ProgressBar,ox as Row,oC as SearchField,oT as Step,c2 as ThemeProvider,c5 as ToggleButtonGroup,oU as statementColors,oY as TransactionTypeText,lm as Stepper,n_ as stringToBoolean,sy as SwipeableDrawer,pe as CardListVirtualized,sf as TableToggleViewModel,oL as Tag,nt as TagsContainer,ly as TermsModal,lb as TextMultiline,oA as toSafeTruncate,lR as UnsupportedBrowserWarning,sC as useDialog,cO as useSwipeableDialogContext,sg as useTableView,lg as useTerms,c1 as useThemeMode,dF as validateCell,cd as ImportStepper};
|