{"version":3,"sources":["shared/components/ToastContainer/Toast/styles.ts","shared/components/ToastContainer/Toast/index.tsx","shared/components/ToastContainer/styles.ts","shared/components/ToastContainer/index.tsx","hooks/toast.tsx","shared/ui-component/extended/Transitions.tsx","shared/services/handles/show-enterprise-quota-state.ts","hooks/quota.tsx","shared/ui-component/extended/AnimateButton.tsx","layout/MainLayout/Sidebar/MenuList/NavManual/index.tsx","shared/ui-component/cards/MainCard.tsx","hooks/local-storage.ts","shared/services/handles/generate-pin-token.ts","shared/components/RequestPinDialog/index.tsx","hooks/request-pin-modal.tsx","assets/images/logo.svg","shared/ui-component/Logo.tsx","assets/scss/_themes-vars.module.scss","shared/services/store/actions.ts","shared/services/store/customizationReducer.ts","shared/services/store/reducer.ts","shared/services/store/index.ts","layout/NavigationScroll.tsx","shared/ui-component/Loader.tsx","shared/ui-component/Loadable.tsx","layout/MinimalLayout/index.tsx","layout/NavMotion.tsx","routes/guard/GuestGuard.tsx","modules/authorization/routes/session.routes.tsx","modules/authorization/routes/index.routes.tsx","routes/AuthRoutes.tsx","modules/do-it-yourself/routes/campaing-individual.routes.tsx","modules/do-it-yourself/routes/customer-self.routes.tsx","modules/do-it-yourself/routes/index.routes.tsx","routes/DoItYourselfRoutes.tsx","menu-items/index.tsx","menu-items/main.tsx","menu-items/manager.tsx","menu-items/submenu.tsx","shared/ui-component/extended/Breadcrumbs.tsx","layout/MainLayout/LogoSection/index.tsx","assets/images/users/user-round.svg","layout/MainLayout/Header/ProfileSection/index.tsx","layout/MainLayout/Header/SearchSection/styles.ts","layout/MainLayout/Header/SearchSection/index.tsx","layout/MainLayout/Header/index.tsx","layout/MainLayout/QuotaBar/index.tsx","layout/MainLayout/Sidebar/MenuList/NavItem/index.tsx","layout/MainLayout/Sidebar/MenuList/NavCollapse/index.tsx","layout/MainLayout/Sidebar/MenuList/NavGroup/index.tsx","layout/MainLayout/Sidebar/MenuList/index.tsx","layout/MainLayout/Sidebar/index.tsx","layout/MainLayout/index.tsx","routes/guard/AuthGuard.tsx","modules/billing/routes/billing.routes.tsx","modules/billing/routes/index.routes.tsx","modules/campaings/routes/campaing.routes.tsx","modules/campaings/routes/index.routes.tsx","modules/companies/routes/company.routes.tsx","modules/companies/routes/index.routes.tsx","modules/customers/routes/customer.routes.tsx","modules/customers/routes/index.routes.tsx","modules/enterprises/routes/enterprise.routes.tsx","modules/enterprises/routes/index.routes.tsx","modules/products/routes/product.routes.tsx","modules/products/routes/index.routes.tsx","modules/segments/routes/segment.routes.tsx","modules/segments/routes/index.routes.tsx","modules/strategies/routes/strategies.routes.tsx","modules/strategies/routes/index.routes.tsx","modules/users/routes/manager.routes.tsx","modules/users/routes/user.routes.tsx","modules/users/routes/index.routes.tsx","modules/withdrawal/routes/withdrawal.routes.tsx","modules/withdrawal/routes/index.routes.tsx","routes/MainRoutes.tsx","routes/index.tsx","shared/styles/themes/palette.tsx","shared/styles/themes/shadows.tsx","shared/styles/themes/typography.tsx","shared/styles/themes/index.tsx","shared/styles/themes/compStyleOverride.tsx","hooks/index.tsx","App.tsx","shared/components/ChatWootWidget/index.tsx","index.tsx","config/app.ts","hooks/auth.tsx","shared/services/store/constant.ts","shared/services/api.ts"],"names":["toastTypeVariations","info","css","success","error","Container","styled","animated","div","props","type","hasDescription","icons","size","Toast","message","style","removeToast","useToast","useEffect","timer","setTimeout","id","clearTimeout","description","title","onClick","ToastContainer","messages","messagesWithTransitions","useTransition","from","right","opacity","enter","leave","map","item","key","ToastContext","createContext","ToastProvider","children","useState","setMessages","addToast","useCallback","toast","uuid","state","filter","Provider","value","context","useContext","Error","Transitions","React","forwardRef","ref","position","direction","others","positionSX","transformOrigin","sx","timeout","appear","exit","defaultProps","showEnterpriseQuotaState","a","api","get","response","data","QuotaContext","QuotaProvider","setData","user","useAuth","responseData","percentage","percentage_usage","maxUsage","max_usage","currentUsage","current_usage","useQuota","AnimateButton","offset1","offset2","offset","scale","useCycle","x","cycleX","y","cycleY","animate","rotate","transition","repeat","Infinity","repeatType","duration","repeatDelay","undefined","onHoverEnd","onHoverStart","hover","tap","whileHover","whileTap","NavManual","theme","useTheme","Card","marginBottom","spacing","gridSpacing","border","borderColor","palette","mode","background","default","primary","dark","Box","p","pl","Grid","container","justifyContent","alignItems","Typography","variant","fontWeight","headerSX","mr","MainCard","content","contentClass","contentSX","darkTitle","secondary","titleManual","CardHeader","action","Divider","CardContent","className","useLocalStorage","initialValue","storedValue","localStorage","getItem","JSON","parse","setState","setItem","stringify","console","log","removeItem","generatePinToken","access_pin","access_type","request_payload","post","RequestPinModal","accessType","requestPayload","onSendCode","handleCloseDialog","rest","code","setCode","handleSendCode","token","Dialog","maxWidth","DialogTitle","DialogContent","display","fontSize","Stack","marginTop","gap","TextField","fullWidth","placeholder","onChange","event","target","Button","disableElevation","color","RequestPinModalContext","RequestPinModalProvider","open","setOpen","request","setRequest","setAccessType","requestPinToken","axiosConfig","params","allow_retry_on_fail","headers","window","location","reload","subscribe","registerInterceptor","body","url","useRequestPin","Logo","src","logo","alt","width","module","exports","SET_MENU","MENU_OPEN","MENU_TYPE","QUOTA_OPEN","initialState","isOpen","fontFamily","appConfig","borderRadius","outlinedFilled","navType","presetColor","opened","customizationReducer","actionTypes","mainContentMoreHeight","reducer","combineReducers","customization","customization1","store","createStore","NavigationScroll","pathname","useLocation","scrollTo","top","left","behavior","LoaderWrapper","zIndex","Loader","LinearProgress","Loadable","Component","fallback","MinimalLayout","NavMotion","motion","initial","variants","in","out","ease","GuestGuard","navigate","useNavigate","defaultPlatformPath","replace","Session","lazy","ForgotPassword","ResetPassword","Journey","ValidatePhone","sessionRouter","path","element","authorizationRouter","AuthRoutes","CampaignIndividual","campaignIndividualRoutes","CustomerJourney","customerSelfRoutes","doItYourSelfRouter","DoItYourselfRoutes","menuItems","items","pattern","icon","IconSmartHome","IconShoppingCartDiscount","IconDiscount","roles","IconUsers","IconPackage","IconListSearch","disabled","IconDeviceAnalytics","IconCalendar","IconPresentationAnalytics","IconApps","IconFileInvoice","IconManualGearbox","IconUser","IconHelp","linkSX","textDecoration","alignContent","Breadcrumbs","card","divider","maxItems","navigation","rightAlign","separator","titleBottom","iconStyle","marginRight","height","main","setMain","menu","getCollapse","mainContent","itemContent","CollapseIcon","ItemIcon","collapse","document","basename","SeparatorIcon","separatorIcon","stroke","breadcrumbContent","itemTitle","AccountTreeTwoToneIcon","component","Link","to","breadcrumbs","ml","mb","LogoSection","ButtonBase","disableRipple","defaultPath","ProfileSection","useSelector","setValue","anchorRef","useRef","signOut","handleClose","current","contains","prevOpen","focus","Chip","light","backgroundColor","lineHeight","Avatar","User1","typography","mediumAvatar","margin","cursor","label","Popper","placement","anchorEl","role","disablePortal","popperOptions","modifiers","name","options","TransitionProps","Paper","ClickAwayListener","onClickAway","elevation","boxShadow","shadow","shadows","permission","OutlinedInput","pr","my","e","startAdornment","InputAdornment","grey","inputProps","mt","List","minWidth","paper","breakpoints","down","ListItemButton","ListItemIcon","ListItemText","PopperStyle","shouldForwardProp","padding","OutlineInputStyle","marginLeft","paddingLeft","paddingRight","HeaderAvatarStyle","commonAvatar","MobileSearch","popupState","endAdornment","orange","bindToggle","SearchSection","xs","md","popupId","bindPopper","Header","handleLeftDrawerToggle","enterpriseName","flexGrow","overflow","textTransform","toLowerCase","billingRoles","QuotaBar","rolePermission","some","includes","bgcolor","paddingX","paddingY","borderBottom","paddingTop","flexDirection","NavItem","level","dispatch","useDispatch","matchesSM","useMediaQuery","Icon","itemIcon","findIndex","itemTarget","listItemProps","external","href","toString","split","py","selected","caption","subMenuCaption","gutterBottom","chip","avatar","NavCollapse","setSelected","menus","push","find","align","menuIcon","strokeWidth","Collapse","unmountOnExit","disablePadding","NavGroup","subheader","menuCaption","MenuList","navItems","menuItem","Sidebar","drawerOpen","drawerToggle","quotaBarOpen","matchUpMd","up","sidebarHeight","setSidebarHeight","querySelector","elementHeight","clientHeight","prev","drawer","mx","px","flexShrink","drawerWidth","Drawer","anchor","onClose","text","borderRight","ModalProps","keepMounted","Main","prop","borderBottomLeftRadius","borderBottomRightRadius","transitions","create","easing","sharp","leavingScreen","easeOut","enteringScreen","MainLayout","matchDownMd","storagedUser","leftDrawerOpened","showQuotaBar","setShowQuotaBar","CssBaseline","AppBar","enableColorOnDark","Toolbar","enterprise","IconChevronRight","AuthGuard","Billing","billingRoutes","billingRouter","Campaign","SaveCampaign","CampaignIndividualCreate","campaignRoutes","campaingRouter","Company","companyRouter","companiesRouter","Customer","customerRoutes","customerRouter","Enterprise","enterpriseRoutes","enterpriseRouter","Product","ProductEnterpriseProvider","ProductEnterpriseProviderReport","productRoutes","productRouter","SegmentList","SegmentSave","SegmentQuery","segmentRouter","segmentsRouter","Giftback","Reward","RewardVault","RewardSave","strategiesRouter","strategyRouter","Permission","User","managerRouter","AccountProfile","userRouter","usersRouter","Withdrawal","SearchIndividual","withdrawalsRouter","withdrawalRouter","DashboardPage","MainRoutes","Routes","MaintenanceError","useRoutes","themePalette","common","black","colors","darkPaper","darkPrimaryLight","primaryLight","darkPrimaryMain","primaryMain","darkPrimaryDark","primaryDark","darkPrimary200","primary200","darkPrimary800","primary800","darkSecondaryLight","secondaryLight","darkSecondaryMain","secondaryMain","darkSecondaryDark","secondaryDark","darkSecondary200","secondary200","darkSecondary800","secondary800","errorLight","errorMain","errorDark","orangeLight","orangeMain","orangeDark","warning","warningLight","warningMain","warningDark","successLight","success200","successMain","successDark","grey50","grey100","darkTextSecondary","heading","darkTextPrimary","textDark","darkLevel1","darkLevel2","darkBackground","hint","backgroundDefault","createCustomShadow","transparent","alpha","z1","z8","z12","z16","z20","z24","customShadows","grey600","themeTypography","mainContentHeight","h6","h5","h4","h3","h2","h1","subtitle1","subtitle2","body1","body2","letterSpacing","button","customInput","grey500","minHeight","smallAvatar","largeAvatar","themeOption","menuSelected","menuSelectedBack","darkTextTitle","grey700","grey900","grey200","themeOptions","mixins","toolbar","themes","createTheme","components","bgColor","MuiButton","styleOverrides","root","MuiPaper","backgroundImage","rounded","MuiCardHeader","MuiCardContent","MuiCardActions","MuiAlert","outlined","MuiListItemButton","paddingBottom","MuiListItemIcon","MuiListItemText","MuiInputBase","input","MuiOutlinedInput","grey400","inputAdornedStart","notchedOutline","MuiSlider","grey300","mark","valueLabel","MuiAutocomplete","popper","MuiDivider","MuiSelect","select","MuiCheckbox","MuiAvatar","MuiChip","MuiTimelineContent","MuiTreeItem","MuiTimelineDot","MuiInternalDateTimePickerTabs","tabs","MuiTabs","flexContainer","MuiDialog","MuiTableCell","MuiTooltip","tooltip","MuiDialogTitle","componentStyleOverrides","AppProvider","App","amplitudeKey","process","amplitude","defaultTracking","StyledEngineProvider","injectFirst","ThemeProvider","ChatWootWidget","chatwootSettings","hideMessageBubble","locale","d","t","BASE_URL","g","createElement","s","getElementsByTagName","defer","async","parentNode","insertBefore","onload","chatwootSDK","run","websiteToken","baseUrl","ReactDOM","render","getElementById","AuthContext","signOutForce","forceRedirect","AuthProvider","isValidAccessToken","jwtDecode","exp","Date","now","validateToken","defaults","Authorization","signIn","email","password","username","axios","baseURL","interceptor","interceptors","use","status","originalRequest","config","Promise","reject","eject"],"mappings":"4PASMA,EAAsB,CAC1BC,KAAMC,YAAF,6EAIJC,QAASD,YAAF,6EAIPE,MAAOF,YAAF,8EAMMG,EAAYC,YAAOC,IAASC,IAAhBF,CAAH,0lBAYlB,SAAAG,GAAK,OAAIT,EAAoBS,EAAMC,MAAQ,WA2B3C,SAAAD,GAAK,OACJA,EAAME,gBACPT,YADA,+G,OCpDEU,EAAQ,CACZX,KAAM,cAAC,IAAD,CAAQY,KAAM,KACpBT,MAAO,cAAC,IAAD,CAAeS,KAAM,KAC5BV,QAAS,cAAC,IAAD,CAAeU,KAAM,MAgCjBC,EA7B8B,SAAC,GAAwB,IAAtBC,EAAqB,EAArBA,QAASC,EAAY,EAAZA,MAC/CC,EAAgBC,IAAhBD,YAYR,OAVAE,qBAAU,WACR,IAAMC,EAAQC,YAAW,WACvBJ,EAAYF,EAAQO,MACnB,KAEH,OAAO,WACLC,aAAaH,MAEd,CAACL,EAAQO,GAAIL,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Q,IAERiM,EAAStC,IAAUuH,YAAa,CAAE9E,SAAS,MAC1C,IAEH,OACE,cAACge,EAAY/rB,SAAb,CACEC,MAAO,CACL0sB,SACAxZ,UACAvR,KAAMJ,EAAKI,KACXqG,MAAOzG,EAAKyG,OALhB,SAOG1I,KAKP,SAASsC,IACP,IAAM3B,EAAUC,qBAAW4rB,GAE3B,IAAK7rB,EACH,MAAM,IAAIE,MAAM,+CAGlB,OAAOF,I,gCCpJT,oEAAO,IAAMmE,EAAc,EACd8X,EAAc,K,yFCUrB9a,EAAM0rB,IAAM/P,OAAO,CACvBgQ,QAAO,UAAE9C,6BAAF,EAAmC,2BAC1CngB,QAAS,CAAE,8BAA+B,OAK5C1I,EAAI+I,oBAAsB,YAA0B,IAAvBT,EAAsB,EAAtBA,gBACrBsjB,EAAc5rB,EAAI6rB,aAAa3rB,SAAS4rB,KAC5C,SAAA5rB,GAAQ,OAAIA,IADM,+BAAAH,EAAA,MAElB,WAAOnE,GAAP,mBAAAmE,EAAA,6DACiC,OAA3B,UAAAnE,EAAMsE,gBAAN,eAAgB6rB,SAClBpB,aAAa,GAGgB,OAA3B,UAAA/uB,EAAMsE,gBAAN,eAAgB6rB,UACZC,EAAkBpwB,EAAMqwB,OACF3jB,EAAgB0jB,IAG1CrB,aAAa,IAVnB,kBAcSuB,QAAQC,OAAOvwB,IAdxB,2CAFkB,uDAoBpB,OAAO,WACL8vB,IAAMG,aAAa3rB,SAASksB,MAAMR,KAIvB5rB,Q","file":"static/js/main.965ee225.chunk.js","sourcesContent":["import { animated } from 'react-spring';\n\nimport styled, { css } from 'styled-components';\n\ninterface ToastProps {\n type?: 'success' | 'error' | 'info';\n hasDescription?: boolean;\n}\n\nconst toastTypeVariations = {\n info: css`\n background: #ebf8ff;\n color: #3172b7;\n `,\n success: css`\n background: #e6fffa;\n color: #2e656a;\n `,\n error: css`\n background: #fddede;\n color: #d00000;\n `,\n};\n\nexport const Container = styled(animated.div)`\n width: 360px;\n position: relative;\n padding: 16px 30px 16px 16px;\n border-radius: 10px;\n box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);\n display: flex;\n\n & + div {\n margin-top: 8px;\n }\n\n ${props => toastTypeVariations[props.type || 'info']}\n\n > svg {\n margin: 4px 12px 0 0;\n }\n\n div {\n flex: 1;\n\n p {\n margin-top: 4px;\n font-size: 14px;\n opacity: 0.8;\n line-height: 20px;\n }\n }\n\n button {\n position: absolute;\n right: 16px;\n top: 15px;\n opacity: 0.6;\n border: 0;\n background: transparent;\n color: inherit;\n }\n\n ${props =>\n !props.hasDescription &&\n css`\n align-items: center;\n\n svg {\n margin-top: 0;\n }\n `}\n`;\n","import React, { useEffect } from 'react';\nimport { FiAlertCircle, FiXCircle, FiCheckCircle, FiInfo } from 'react-icons/fi';\n\nimport { ToastMessage, useToast } from '../../../../hooks/toast';\n\nimport { Container } from './styles';\n\ninterface ToastContainerProps {\n message: ToastMessage;\n style: object;\n}\n\nconst icons = {\n info: ,\n error: ,\n success: ,\n};\n\nconst Toast: React.FC = ({ message, style }) => {\n const { removeToast } = useToast();\n\n useEffect(() => {\n const timer = setTimeout(() => {\n removeToast(message.id);\n }, 3000);\n\n return () => {\n clearTimeout(timer);\n };\n }, [message.id, removeToast]);\n\n return (\n \n {icons[message.type || 'info']}\n\n
\n {message.title}\n {message.description &&

{message.description}

}\n
\n\n \n
\n );\n};\n\nexport default Toast;\n","import styled from 'styled-components';\n\nexport const Container = styled.div`\n position: fixed;\n right: 0;\n top: 0;\n padding: 30px;\n overflow: hidden;\n z-index: 9999;\n`;\n","import React from 'react';\nimport { useTransition } from 'react-spring';\n\nimport { ToastMessage } from '../../../hooks/toast';\n\nimport Toast from './Toast';\n\nimport { Container } from './styles';\n\ninterface ToastContainerProps {\n messages: ToastMessage[];\n}\n\nconst ToastContainer: React.FC = ({ messages }) => {\n const messagesWithTransitions = useTransition(messages, message => message.id, {\n from: { right: '-120%', opacity: 0 },\n enter: { right: '0%', opacity: 1 },\n leave: { right: '-120%', opacity: 0 },\n });\n return (\n \n {messagesWithTransitions.map(({ item, key, props }) => (\n \n ))}\n \n );\n};\n\nexport default ToastContainer;\n","import React, { createContext, useCallback, useState, useContext } from 'react';\n\nimport { uuid } from 'uuidv4';\n\nimport ToastContainer from 'shared/components/ToastContainer';\n\nexport interface ToastMessage {\n id: string;\n type?: 'success' | 'error' | 'info';\n title: string;\n description?: string;\n}\n\ninterface ToastContextData {\n addToast(message: Omit): void;\n removeToast(id: string): void;\n}\n\nconst ToastContext = createContext({} as ToastContextData);\n\nconst ToastProvider: React.FC = ({ children }) => {\n const [messages, setMessages] = useState([]);\n\n const addToast = useCallback(\n ({ type, title, description }: Omit) => {\n const id = uuid();\n\n const toast = {\n id,\n type,\n title,\n description,\n };\n\n setMessages(state => [...state, toast]);\n },\n\n [],\n );\n const removeToast = useCallback((id: string) => {\n setMessages(state => state.filter(message => message.id !== id));\n }, []);\n\n return (\n \n {children}\n \n \n );\n};\n\nfunction useToast(): ToastContextData {\n const context = useContext(ToastContext);\n\n if (!context) {\n throw new Error('useToast must be used within an ToastProvider');\n }\n\n return context;\n}\n\nexport { ToastProvider, useToast };\n","import React, { Ref, ExoticComponent, ReactElement } from 'react';\n\nimport { Collapse, Fade, Box, Grow, Slide, Zoom } from '@mui/material';\n\n// ==============================|| TRANSITIONS ||============================== //\n\nexport interface TSProps {\n children?: ReactElement;\n position?: string;\n sx?: React.CSSProperties;\n in?: boolean;\n type?: string;\n direction?: 'up' | 'right' | 'left' | 'down';\n [others: string]: any;\n}\n\nconst Transitions = React.forwardRef(\n ({ children, position, type, direction, ...others }: TSProps, ref: Ref) => {\n let positionSX = {\n transformOrigin: '0 0 0',\n };\n\n switch (position) {\n case 'top-right':\n positionSX = {\n transformOrigin: 'top right',\n };\n break;\n case 'top':\n positionSX = {\n transformOrigin: 'top',\n };\n break;\n case 'bottom-left':\n positionSX = {\n transformOrigin: 'bottom left',\n };\n break;\n case 'bottom-right':\n positionSX = {\n transformOrigin: 'bottom right',\n };\n break;\n case 'bottom':\n positionSX = {\n transformOrigin: 'bottom',\n };\n break;\n case 'top-left':\n default:\n positionSX = {\n transformOrigin: '0 0 0',\n };\n break;\n }\n\n return (\n \n {type === 'grow' && (\n \n {children}\n \n )}\n {type === 'collapse' && (\n \n {children}\n \n )}\n {type === 'fade' && (\n \n {children}\n \n )}\n {type === 'slide' && (\n \n {children}\n \n )}\n {type === 'zoom' && (\n \n {children}\n \n )}\n \n );\n },\n);\n\nTransitions.defaultProps = {\n type: 'grow',\n position: 'top-left',\n direction: 'up',\n};\n\nexport default Transitions;\n","import api from '../api';\n\nexport interface ShowEnterpriseQuotaStateResponse {\n percentage_usage: number;\n current_usage: number;\n max_usage: number;\n quotas: {\n current_usage: number;\n max_usage: number;\n percentage_usage: number;\n }[];\n}\n\nexport async function showEnterpriseQuotaState(): Promise {\n const response = await api.get('/v1/enterprises/quota/state');\n\n return response.data;\n}\n","import { createContext, useContext, useEffect, useState } from 'react';\n\nimport {\n showEnterpriseQuotaState,\n ShowEnterpriseQuotaStateResponse,\n} from 'shared/services/handles/show-enterprise-quota-state';\n\nimport { useAuth } from './auth';\n\ninterface QuotaContextData {\n percentage: number;\n maxUsage: number;\n currentUsage: number;\n}\n\nconst QuotaContext = createContext({} as QuotaContextData);\n\ninterface QuotaProviderProps {\n children: React.ReactNode;\n}\n\nexport function QuotaProvider({ children }: QuotaProviderProps) {\n const [data, setData] = useState({} as ShowEnterpriseQuotaStateResponse);\n const { user } = useAuth();\n\n useEffect(() => {\n if (!user) {\n return;\n }\n (async () => {\n const responseData = await showEnterpriseQuotaState();\n\n setData(responseData);\n })();\n }, []);\n\n return (\n \n {' '}\n {children}\n \n );\n}\n\nexport function useQuota() {\n return useContext(QuotaContext);\n}\n","import React, { Ref } from 'react';\n\n// third-party\nimport { motion, useCycle } from 'framer-motion';\n\nexport type ScaleProps = {\n hover: number | string | undefined;\n tap: number | string | undefined;\n};\n\nexport interface AnimateButtonProps {\n children?: React.ReactNode;\n type?: 'slide' | 'scale' | 'rotate';\n direction?: 'up' | 'down' | 'left' | 'right';\n offset?: number;\n scale?: ScaleProps;\n}\n\n// ==============================|| ANIMATION BUTTON ||============================== //\n\nconst AnimateButton = React.forwardRef(\n ({ children, type, direction, offset, scale }: AnimateButtonProps, ref: Ref) => {\n let offset1;\n let offset2;\n switch (direction) {\n case 'up':\n case 'left':\n offset1 = offset;\n offset2 = 0;\n break;\n case 'right':\n case 'down':\n default:\n offset1 = 0;\n offset2 = offset;\n break;\n }\n\n const [x, cycleX] = useCycle(offset1, offset2);\n const [y, cycleY] = useCycle(offset1, offset2);\n\n switch (type) {\n case 'rotate':\n return (\n \n {children}\n \n );\n case 'slide':\n if (direction === 'up' || direction === 'down') {\n return (\n cycleY()}\n onHoverStart={() => cycleY()}>\n {children}\n \n );\n }\n return (\n cycleX()}\n onHoverStart={() => cycleX()}>\n {children}\n \n );\n\n case 'scale':\n default:\n if (typeof scale === 'number') {\n scale = {\n hover: scale,\n tap: scale,\n };\n }\n return (\n \n {children}\n \n );\n }\n },\n);\n\nAnimateButton.defaultProps = {\n type: 'scale',\n offset: 10,\n direction: 'right',\n scale: {\n hover: 1,\n tap: 0.9,\n },\n};\n\nexport default AnimateButton;\n","import { Box, Card, Grid, Typography } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\n\nimport { gridSpacing } from 'shared/services/store/constant';\n\nexport interface NavManualProps {\n title: string;\n}\n\nexport const NavManual: React.FC = ({ title }) => {\n const theme = useTheme();\n\n return (\n \n \n \n {title && (\n \n \n {title}\n \n \n )}\n \n \n \n );\n};\n","import React, { Ref } from 'react';\n\nimport {\n Card,\n CardContent,\n CardHeader,\n Divider,\n Typography,\n CardProps,\n CardHeaderProps,\n CardContentProps,\n} from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { KeyedObject } from 'interfaces/global.interface';\nimport { NavManual } from 'layout/MainLayout/Sidebar/MenuList/NavManual';\n\nconst headerSX = {\n '& .MuiCardHeader-action': { mr: 0 },\n};\n\nexport interface MainCardProps extends KeyedObject {\n border?: boolean;\n boxShadow?: boolean;\n children: React.ReactNode | string;\n style?: React.CSSProperties;\n content?: boolean;\n className?: string;\n contentClass?: string;\n contentSX?: CardContentProps['sx'];\n darkTitle?: boolean;\n sx?: CardProps['sx'];\n secondary?: CardHeaderProps['action'];\n shadow?: string;\n titleManual?: string;\n elevation?: number;\n title?: React.ReactNode | string;\n}\n\nconst MainCard = React.forwardRef(\n (\n {\n border = true,\n children,\n content = true,\n contentClass = '',\n contentSX = {},\n darkTitle,\n secondary,\n sx = {},\n title,\n titleManual,\n ...others\n }: MainCardProps,\n ref: Ref,\n ) => {\n const theme = useTheme();\n\n return (\n <>\n {titleManual && }\n \n {!darkTitle && title && }\n {darkTitle && title && (\n {title}} action={secondary} />\n )}\n\n {title && }\n\n {content && (\n \n {children}\n \n )}\n {!content && children}\n \n \n );\n },\n);\n\nexport default MainCard;\n","import { useCallback, useState } from 'react';\n\nexport function useLocalStorage(key: string, initialValue?: T): [T, (value: T) => void, () => void] {\n const [state, setState] = useState(() => {\n try {\n const storedValue = localStorage.getItem(key);\n return storedValue ? JSON.parse(storedValue) : initialValue;\n } catch (error) {\n return initialValue;\n }\n });\n\n const setValue = useCallback(\n (value: T) => {\n try {\n setState(value);\n localStorage.setItem(key, JSON.stringify(value));\n } catch (error) {\n console.log(error);\n }\n },\n [key],\n );\n\n const removeValue = useCallback(() => {\n localStorage.removeItem(key);\n }, [key]);\n\n return [state, setValue, removeValue];\n}\n","import api from '../api';\n\ninterface GeneratePinTokenParams {\n access_pin: string;\n access_type: string;\n request_payload: {\n body: any;\n url: string;\n };\n}\n\ninterface GeneratePinTokenResponse {\n token: string;\n}\n\nexport async function generatePinToken({\n access_pin,\n access_type,\n request_payload,\n}: GeneratePinTokenParams): Promise {\n const response = await api.post('/v1/users/access-pin/request', { access_pin, access_type, request_payload });\n\n return response.data;\n}\n","import { useState } from 'react';\n\nimport {\n Box,\n Button,\n Dialog,\n DialogContent,\n DialogProps,\n DialogTitle,\n Stack,\n TextField,\n Typography,\n} from '@mui/material';\n\nimport { generatePinToken } from 'shared/services/handles/generate-pin-token';\nimport AnimateButton from 'shared/ui-component/extended/AnimateButton';\n\nimport { useToast } from 'hooks/toast';\n\ninterface RequestPinModalProps extends DialogProps {\n accessType: string;\n requestPayload: {\n body: any;\n url: string;\n };\n onSendCode: (token: string) => void;\n handleCloseDialog: () => void;\n}\n\nexport function RequestPinModal({\n accessType,\n requestPayload,\n onSendCode,\n handleCloseDialog,\n ...rest\n}: RequestPinModalProps) {\n const [code, setCode] = useState('');\n const { addToast } = useToast();\n\n const handleSendCode = async () => {\n try {\n const { token } = await generatePinToken({\n access_pin: code,\n access_type: accessType,\n request_payload: requestPayload,\n });\n\n onSendCode(token);\n } catch (error) {\n addToast({\n title: 'Algo errado aconteceu',\n description: 'Ocorreu um erro na solicitação',\n type: 'error',\n });\n }\n };\n\n return (\n \n PIN de segurança\n\n \n \n Você não possui permissão a essa funcionalidade, por favor, solicite o código PIN de um usuário com permissão\n para prosseguir\n \n\n \n \n setCode(event.target.value)}\n />\n \n\n \n \n Enviar\n \n \n \n \n Cancelar\n \n \n \n \n \n );\n}\n","import { createContext, useContext, useEffect, useState } from 'react';\n\nimport { AxiosRequestConfig } from 'axios';\n\nimport { RequestPinModal } from 'shared/components/RequestPinDialog';\nimport api from 'shared/services/api';\n\ninterface RequestPinModalContextData {\n setOpen: (value: boolean) => void;\n setAccessType: (value: string) => void;\n}\n\nconst RequestPinModalContext = createContext({} as RequestPinModalContextData);\n\ninterface RequestPinModalProviderProps {\n children: React.ReactNode;\n}\n\nexport function RequestPinModalProvider({ children }: RequestPinModalProviderProps) {\n const [open, setOpen] = useState(false);\n const [request, setRequest] = useState({});\n const [accessType, setAccessType] = useState('');\n\n const requestPinToken = (axiosConfig: AxiosRequestConfig) => {\n // FIXME: Add on header later\n if (!axiosConfig.params?.allow_retry_on_fail) {\n return false;\n }\n\n setOpen(true);\n setRequest(axiosConfig);\n return true;\n };\n\n const handleCloseDialog = () => {\n setOpen(false);\n };\n\n const onSendCode = async (token: string) => {\n request.headers['Authorization'] = `Bearer ${token}`;\n await api(request);\n window.location.reload();\n handleCloseDialog();\n };\n\n useEffect(() => {\n const subscribe = api.registerInterceptor({\n requestPinToken,\n });\n\n return () => {\n subscribe();\n setRequest({});\n };\n }, []);\n\n return (\n \n {children}\n {open && (\n \n )}\n \n );\n}\n\nexport function useRequestPin() {\n return useContext(RequestPinModalContext);\n}\n","export default __webpack_public_path__ + \"static/media/logo.78342a4c.svg\";","import logo from 'assets/images/logo.svg';\n\nconst Logo: React.FC = () => {\n return \"Storycrm\";\n};\n\nexport default Logo;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"paper\":\"#fff\",\"primaryLight\":\"#e3f2fd\",\"primary200\":\"#90caf9\",\"primaryMain\":\"#2196f3\",\"primaryDark\":\"#1e88e5\",\"primary800\":\"#1565c0\",\"secondaryLight\":\"#ede7f6\",\"secondary200\":\"#b39ddb\",\"secondaryMain\":\"#673ab7\",\"secondaryDark\":\"#5e35b1\",\"secondary800\":\"#4527a0\",\"successLight\":\"#b9f6ca\",\"success200\":\"#69f0ae\",\"successMain\":\"#00e676\",\"successDark\":\"#00c853\",\"errorLight\":\"#ef9a9a\",\"errorMain\":\"#f44336\",\"errorDark\":\"#c62828\",\"orangeLight\":\"#fbe9e7\",\"orangeMain\":\"#ffab91\",\"orangeDark\":\"#d84315\",\"warningLight\":\"#fff8e1\",\"warningMain\":\"#ffe57f\",\"warningDark\":\"#ffc107\",\"grey50\":\"#fafafa\",\"grey100\":\"#f5f5f5\",\"grey200\":\"#eee\",\"grey300\":\"#e0e0e0\",\"grey500\":\"#9e9e9e\",\"grey600\":\"#f5f5f5\",\"grey700\":\"#616161\",\"grey900\":\"#141416\",\"darkPaper\":\"#1b1b1e\",\"darkBackground\":\"#27272a\",\"darkLevel1\":\"#1a1a1a\",\"darkLevel2\":\"#141416\",\"darkTextTitle\":\"#f5f5f5\",\"darkTextPrimary\":\"#f5f5f5\",\"darkTextSecondary\":\"#f5f5f5\",\"darkPrimaryLight\":\"#e3f2fd\",\"darkPrimaryMain\":\"#f3c806\",\"darkPrimaryDark\":\"#faca32\",\"darkPrimary200\":\"#90caf9\",\"darkPrimary800\":\"#1565c0\",\"darkSecondaryLight\":\"#d1c4e9\",\"darkSecondaryMain\":\"#f3c806\",\"darkSecondaryDark\":\"#faca32\",\"darkSecondary200\":\"#b39ddb\",\"darkSecondary800\":\"#6200ea\"};","export const SET_MENU = '@customization/SET_MENU';\nexport const MENU_TOGGLE = '@customization/MENU_TOGGLE';\nexport const MENU_OPEN = '@customization/MENU_OPEN';\nexport const MENU_TYPE = '@customization/MENU_TYPE';\nexport const QUOTA_OPEN = '@customization/QUOTA_SHOW';\n","import { appConfig } from 'config/app';\nimport { CustomizationStateProps, DefaultRootStateProps } from 'interfaces/global.interface';\n\nimport * as actionTypes from './actions';\n\nexport const initialState: DefaultRootStateProps['customization'] = {\n isOpen: [], // for active default menu\n fontFamily: appConfig.fontFamily,\n borderRadius: appConfig.borderRadius,\n outlinedFilled: appConfig.outlinedFilled,\n navType: appConfig.theme,\n presetColor: appConfig.presetColor,\n opened: true,\n};\n\nconst customizationReducer = (state = initialState, action: CustomizationStateProps): any => {\n let id;\n switch (action.type) {\n case actionTypes.MENU_OPEN:\n id = action.id;\n return {\n ...state,\n isOpen: [id],\n };\n\n case actionTypes.MENU_TYPE:\n return {\n ...state,\n navType: action.navType,\n };\n case actionTypes.SET_MENU:\n return {\n ...state,\n opened: action.opened,\n };\n\n case actionTypes.QUOTA_OPEN:\n return {\n ...state,\n mainContentMoreHeight: action.mainContentMoreHeight,\n };\n default:\n return state;\n }\n};\n\nexport default customizationReducer;\n","import { combineReducers } from 'redux';\n\nimport customizationReducer from './customizationReducer';\n\nexport const reducer = combineReducers({\n customization: customizationReducer,\n // TODO: Prevent error combine\n customization1: customizationReducer,\n});\n","import { createStore } from 'redux';\n\nimport { reducer } from './reducer';\n\nconst store = createStore(reducer);\n\nexport { store };\n","import { useEffect } from 'react';\nimport { useLocation } from 'react-router-dom';\n\nexport const NavigationScroll: React.FC = ({ children }) => {\n const location = useLocation();\n const { pathname } = location;\n\n useEffect(() => {\n window.scrollTo({\n top: 0,\n left: 0,\n behavior: 'smooth',\n });\n }, [pathname]);\n\n return children || null;\n};\n","import LinearProgress, { LinearProgressProps } from '@mui/material/LinearProgress';\nimport { styled } from '@mui/material/styles';\n\nconst LoaderWrapper = styled('div')({\n position: 'fixed',\n top: 0,\n left: 0,\n zIndex: 1301,\n width: '100%',\n});\n\nexport type LoaderProps = LinearProgressProps;\n\nconst Loader: React.FC = () => (\n \n \n \n);\n\nexport default Loader;\n","import { Suspense, LazyExoticComponent, ComponentType } from 'react';\n\nimport Loader, { LoaderProps } from './Loader';\n\ntype LazyPage = LazyExoticComponent<() => JSX.Element> | ComponentType;\n\nexport const Loadable = (Component: LazyPage) => (props: LoaderProps) =>\n (\n }>\n \n \n );\n","import { Outlet } from 'react-router-dom';\n\nexport const MinimalLayout: React.FC = () => (\n <>\n \n \n);\n","import React from 'react';\n\nimport { motion } from 'framer-motion';\n\nexport const NavMotion: React.FC = ({ children }) => {\n const motionVariants = {\n initial: {\n opacity: 0,\n scale: 0.99,\n },\n in: {\n opacity: 1,\n scale: 1,\n },\n out: {\n opacity: 0,\n scale: 1.01,\n },\n };\n\n const motionTransition = {\n type: 'tween',\n ease: 'anticipate',\n duration: 0.4,\n };\n\n return (\n \n {children}\n \n );\n};\n","import { useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\n\nimport { appConfig } from 'config/app';\n\nimport { useAuth } from 'hooks/auth';\n\nexport const GuestGuard: React.FC = ({ children }) => {\n const navigate = useNavigate();\n\n const { user } = useAuth();\n\n useEffect(() => {\n if (user) {\n navigate(appConfig.defaultPlatformPath, { replace: true });\n }\n }, [navigate]);\n\n return children;\n};\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Session = Loadable(lazy(() => import('modules/authorization/pages/Session')));\nconst ForgotPassword = Loadable(lazy(() => import('modules/authorization/pages/ForgotPassword')));\nconst ResetPassword = Loadable(lazy(() => import('modules/authorization/pages/ResetPassword')));\nconst Journey = Loadable(lazy(() => import('modules/authorization/pages/Journey')));\nconst ValidatePhone = Loadable(lazy(() => import('modules/authorization/pages/ValidatePhone')));\n\nconst sessionRouter = [\n {\n path: '/',\n element: ,\n },\n {\n path: '/login',\n element: ,\n },\n {\n path: '/reset-password/:id',\n element: ,\n },\n {\n path: '/forgot-password',\n element: ,\n },\n {\n path: '/journey',\n element: ,\n },\n {\n path: '/journey/validate-phone',\n element: ,\n },\n];\n\nexport default sessionRouter;\n","import sessionRouter from './session.routes';\n\nexport const authorizationRouter = [...sessionRouter];\n","import { MinimalLayout } from 'layout/MinimalLayout';\nimport { NavMotion } from 'layout/NavMotion';\nimport { GuestGuard } from 'routes/guard/GuestGuard';\n\nimport { authorizationRouter } from 'modules/authorization/routes/index.routes';\n\nexport const AuthRoutes = {\n element: (\n \n \n \n \n \n ),\n children: [...authorizationRouter],\n};\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst CampaignIndividual = Loadable(lazy(() => import('modules/do-it-yourself/pages/CampaignIndividual')));\n\nexport const campaignIndividualRoutes = [\n {\n path: '/do-it-yourself/campaign-individual/:company_id/:enterprise_strategy_id',\n element: ,\n },\n];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst CustomerJourney = Loadable(lazy(() => import('modules/do-it-yourself/pages/CustomerJourney')));\n\nexport const customerSelfRoutes = [\n {\n path: '/journey/customer',\n element: ,\n },\n];\n","import { campaignIndividualRoutes } from './campaing-individual.routes';\nimport { customerSelfRoutes } from './customer-self.routes';\n\nexport const doItYourSelfRouter = [...campaignIndividualRoutes, ...customerSelfRoutes];\n","import { MinimalLayout } from 'layout/MinimalLayout';\nimport { NavMotion } from 'layout/NavMotion';\n\nimport { doItYourSelfRouter } from 'modules/do-it-yourself/routes/index.routes';\n\nexport const DoItYourselfRoutes = {\n element: (\n \n \n \n ),\n children: [...doItYourSelfRouter],\n};\n","import { NavItemType } from 'interfaces/global.interface';\n\nimport main from './main';\nimport manager from './manager';\nimport submenu from './submenu';\n\nconst menuItems: { items: NavItemType[] } = {\n items: [main, manager, submenu],\n};\n\nexport default menuItems;\n","import {\n IconSmartHome,\n IconUsers,\n IconDeviceAnalytics,\n IconCalendar,\n IconApps,\n IconPresentationAnalytics,\n IconListSearch,\n IconShoppingCartDiscount,\n IconDiscount,\n IconPackage,\n} from '@tabler/icons';\n\nconst main = {\n id: 'main-route',\n type: 'group',\n pattern: 'module.dashboard.index',\n children: [\n {\n id: 'dashboard',\n title: 'Dashboard',\n type: 'item',\n pattern: 'dashboard.module.show',\n url: '/dashboard',\n icon: IconSmartHome,\n },\n {\n id: 'withdrawal',\n title: 'Ofertas',\n type: 'collapse',\n pattern: 'stategy.module.show',\n icon: IconShoppingCartDiscount,\n // TODO: Fazer as permissões do frontend para só exibir o necessário\n children: [\n {\n id: 'withdrawal-search',\n title: 'Consultar disponíveis',\n type: 'item',\n pattern: 'stategy.cashback.show',\n url: '/withdrawals',\n },\n {\n id: 'withdrawal-search-individual',\n title: 'Consulta individual',\n type: 'item',\n pattern: 'stategy.cashback.show',\n url: '/withdrawals/individual/search',\n },\n {\n id: 'withdrawal-create',\n title: 'Cadastrar nova',\n pattern: 'stategy.member-get-member.show',\n type: 'item',\n url: '/campaings/individual/create',\n },\n ],\n },\n {\n id: 'stategy',\n title: 'Estratégias',\n type: 'collapse',\n pattern: 'stategy.module.show',\n url: '/strategies',\n icon: IconDiscount,\n children: [\n {\n id: 'cashback',\n title: 'Giftback',\n type: 'item',\n pattern: 'stategy.cashback.show',\n url: '/strategies/giftback',\n },\n {\n id: 'reward',\n title: 'Recompensas',\n type: 'item',\n pattern: 'stategy.reward.show',\n url: '/strategies/reward',\n roles: ['module-reward-read', 'module-reward-global'],\n },\n ],\n },\n {\n id: 'customer',\n title: 'Clientes',\n type: 'item',\n pattern: 'contact.module.show',\n url: '/customers',\n icon: IconUsers,\n },\n {\n id: 'product',\n title: 'Produtos',\n type: 'collapse',\n pattern: 'product.module.show',\n icon: IconPackage,\n children: [\n {\n id: 'product-my',\n title: 'Meus produtos',\n type: 'item',\n pattern: 'stategy.cashback.show',\n url: '/products',\n },\n {\n id: 'product-reward',\n title: 'Externos',\n type: 'collapse',\n roles: ['module-order-extends-product-external-global'],\n pattern: 'stategy.reward.show',\n children: [\n {\n id: 'product-reward-my',\n title: 'Aprovações de acompanhamento',\n type: 'item',\n pattern: 'stategy.cashback.show',\n url: '/products/enterprise-provider',\n },\n {\n id: 'product-reward-reports',\n title: 'Relatórios',\n type: 'item',\n pattern: 'stategy.reward.show',\n url: '/products/enterprise-provider/report',\n },\n ],\n },\n ],\n },\n {\n id: 'segment',\n title: 'Segmentação',\n type: 'item',\n pattern: 'segment.module.show',\n url: '/segments',\n icon: IconListSearch,\n },\n {\n id: 'inteligy',\n title: 'Inteligência',\n disabled: true,\n type: 'item',\n url: '/',\n icon: IconDeviceAnalytics,\n },\n {\n id: 'campaing',\n title: 'Campanhas',\n type: 'item',\n pattern: 'campaing.module.show',\n url: '/campaings',\n icon: IconCalendar,\n },\n {\n id: 'marketing',\n title: 'Marketing',\n disabled: true,\n type: 'item',\n url: '/marketing',\n icon: IconPresentationAnalytics,\n },\n {\n id: 'integration',\n title: 'Integrações',\n disabled: true,\n type: 'item',\n url: '/integration',\n icon: IconApps,\n },\n ],\n};\n\nexport default main;\n","import { IconUsers, IconManualGearbox, IconPresentationAnalytics, IconFileInvoice } from '@tabler/icons';\n\nconst manager = {\n id: 'manager-route',\n type: 'group',\n children: [\n {\n id: 'enterprise',\n title: 'Empresa',\n type: 'item',\n url: '/enterprises',\n icon: IconUsers,\n },\n {\n id: 'companies',\n title: 'Unidades',\n type: 'item',\n url: '/companies',\n icon: IconPresentationAnalytics,\n },\n {\n id: 'billing',\n title: 'Financeiro',\n type: 'item',\n url: '/billing',\n icon: IconFileInvoice,\n roles: ['module-billing-read', 'module-billing-global'],\n },\n {\n id: 'manager-role',\n title: 'Gerenciador',\n type: 'collapse',\n icon: IconManualGearbox,\n children: [\n {\n id: 'manager-users',\n title: 'Usuários',\n type: 'item',\n url: '/manager/users',\n },\n {\n id: 'manager-permissions',\n title: 'Permissões',\n type: 'item',\n url: '/manager/permissions',\n },\n ],\n },\n ],\n};\n\nexport default manager;\n","import { IconHelp, IconUser } from '@tabler/icons';\n\nconst other = {\n id: 'settings-group',\n type: 'group',\n children: [\n {\n id: 'user-account',\n title: 'Meu perfil',\n type: 'item',\n url: '/users/account',\n icon: IconUser,\n },\n {\n id: 'suport',\n title: 'Suporte',\n type: 'item',\n url: '/suport',\n icon: IconHelp,\n disabled: true,\n },\n ],\n};\n\nexport default other;\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { useEffect, useState } from 'react';\nimport { Link } from 'react-router-dom';\n\nimport AccountTreeTwoToneIcon from '@mui/icons-material/AccountTreeTwoTone';\nimport HomeIcon from '@mui/icons-material/Home';\nimport HomeTwoToneIcon from '@mui/icons-material/HomeTwoTone';\nimport { Box, Card, Divider, Grid, Typography } from '@mui/material';\nimport MuiBreadcrumbs from '@mui/material/Breadcrumbs';\nimport { useTheme } from '@mui/material/styles';\nimport { IconTallymark1 } from '@tabler/icons';\nimport { appConfig } from 'config/app';\nimport { NavItemType, NavItemTypeObject, OverrideIcon } from 'interfaces/global.interface';\n\nimport { gridSpacing } from 'shared/services/store/constant';\n\nconst linkSX = {\n display: 'flex',\n color: 'grey.900',\n textDecoration: 'none',\n alignContent: 'center',\n alignItems: 'center',\n};\n\nexport interface BreadCrumbSxProps extends React.CSSProperties {\n mb?: string;\n bgcolor?: string;\n}\n\nexport interface BreadCrumbsProps {\n card?: boolean;\n divider?: boolean;\n icon?: boolean;\n icons?: boolean;\n maxItems?: number;\n navigation?: NavItemTypeObject;\n rightAlign?: boolean;\n separator?: OverrideIcon;\n title?: boolean;\n titleBottom?: boolean;\n sx?: BreadCrumbSxProps;\n}\n\n// ==============================|| BREADCRUMBS ||============================== //\n\nconst Breadcrumbs: React.FC = ({\n card,\n divider,\n icon,\n icons,\n maxItems,\n navigation,\n rightAlign,\n separator,\n title,\n titleBottom,\n}) => {\n const theme = useTheme();\n\n const iconStyle = {\n marginRight: theme.spacing(0.75),\n marginTop: `-${theme.spacing(0.25)}`,\n width: '1rem',\n height: '1rem',\n color: theme.palette.secondary.main,\n };\n\n const [main, setMain] = useState();\n const [item, setItem] = useState();\n\n useEffect(() => {\n navigation?.items?.map((menu: NavItemType | NavItemTypeObject) => {\n if (menu.type && menu.type === 'group') {\n getCollapse(menu as { children: NavItemType[]; type?: string });\n }\n return false;\n });\n });\n\n // set active item state\n\n const getCollapse = (menu: NavItemTypeObject) => {\n if (menu.children) {\n menu.children.filter((collapse: NavItemType) => {\n if (collapse.type && collapse.type === 'collapse') {\n getCollapse(collapse as { children: NavItemType[]; type?: string });\n } else if (collapse.type && collapse.type === 'item') {\n if (document.location.pathname === appConfig.basename + collapse.url) {\n setMain(menu);\n setItem(collapse);\n }\n }\n return false;\n });\n }\n };\n\n // item separator\n const SeparatorIcon = separator!;\n const separatorIcon = separator ? (\n \n ) : (\n \n );\n\n let mainContent;\n let itemContent;\n let breadcrumbContent: React.ReactElement = ;\n let itemTitle: NavItemType['title'] = '';\n let CollapseIcon;\n let ItemIcon;\n\n // collapse item\n if (main && main.type === 'collapse') {\n CollapseIcon = main.icon ? main.icon : AccountTreeTwoToneIcon;\n mainContent = (\n \n {icons && }\n {main.title}\n \n );\n }\n\n // items\n if (item && item.type === 'item') {\n itemTitle = item.title;\n\n ItemIcon = item.icon ? item.icon : AccountTreeTwoToneIcon;\n itemContent = (\n \n {icons && }\n {itemTitle}\n \n );\n\n // main\n if (item.breadcrumbs !== false) {\n breadcrumbContent = (\n \n \n \n {title && !titleBottom && (\n \n \n {item.title}\n \n \n )}\n \n \n \n {icons && }\n {icon && }\n {!icon && 'Dashboard'}\n \n {mainContent}\n {itemContent}\n \n \n {title && titleBottom && (\n \n \n {item.title}\n \n \n )}\n \n \n {card === false && divider !== false && (\n \n )}\n \n );\n }\n }\n\n return breadcrumbContent;\n};\n\nexport default Breadcrumbs;\n","import { Link } from 'react-router-dom';\n\nimport { ButtonBase } from '@mui/material';\nimport { appConfig } from 'config/app';\n\nimport Logo from 'shared/ui-component/Logo';\n\nconst LogoSection: React.FC = () => (\n \n \n \n);\n\nexport default LogoSection;\n","export default __webpack_public_path__ + \"static/media/user-round.34f7763c.svg\";","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport {\n Avatar,\n Box,\n Chip,\n ClickAwayListener,\n Divider,\n InputAdornment,\n List,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n OutlinedInput,\n Paper,\n Popper,\n Stack,\n Typography,\n} from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IconLogout, IconSearch, IconSettings } from '@tabler/icons';\nimport User1 from 'assets/images/users/user-round.svg';\nimport { DefaultRootStateProps } from 'interfaces/global.interface';\n\nimport MainCard from 'shared/ui-component/cards/MainCard';\nimport Transitions from 'shared/ui-component/extended/Transitions';\n\nimport { useAuth } from 'hooks/auth';\n\nconst ProfileSection: React.FC = () => {\n const theme = useTheme();\n const { user } = useAuth();\n const customization = useSelector((state: DefaultRootStateProps) => state.customization);\n\n const [value, setValue] = React.useState('');\n const [open, setOpen] = React.useState(false);\n\n const anchorRef = React.useRef(null);\n\n const { signOut } = useAuth();\n\n const handleToggle = () => {\n setOpen(prevOpen => !prevOpen);\n };\n\n const handleClose = (event: React.MouseEvent | MouseEvent | TouchEvent) => {\n if (anchorRef.current && anchorRef.current.contains(event.target)) {\n return;\n }\n\n setOpen(false);\n };\n const prevOpen = React.useRef(open);\n React.useEffect(() => {\n if (prevOpen.current === true && open === false) {\n anchorRef.current.focus();\n }\n\n prevOpen.current = open;\n }, [open]);\n\n return (\n <>\n \n }\n label={}\n variant=\"outlined\"\n ref={anchorRef}\n aria-controls={open ? 'menu-list-grow' : undefined}\n aria-haspopup=\"true\"\n onClick={handleToggle}\n color=\"primary\"\n />\n \n {({ TransitionProps }) => (\n \n \n \n \n \n \n \n Olá,\n \n {user.name}\n \n \n \n {user.permission.name}\n \n \n setValue(e.target.value)}\n placeholder=\"Buscar ajuda (em breve)\"\n startAdornment={\n \n \n \n }\n aria-describedby=\"search-helper-text\"\n inputProps={{\n 'aria-label': 'weight',\n }}\n />\n \n \n \n \n \n \n \n \n Sair} />\n \n \n \n \n \n \n \n )}\n \n \n );\n};\n\nexport default ProfileSection;\n","import { Avatar, OutlinedInput, Popper, styled } from '@mui/material';\nimport { shouldForwardProp } from '@mui/system';\n\nexport const PopperStyle = styled(Popper, { shouldForwardProp })(({ theme }) => ({\n zIndex: 1100,\n width: '99%',\n top: '-55px !important',\n padding: '0 12px',\n [theme.breakpoints.down('sm')]: {\n padding: '0 10px',\n },\n}));\n\nexport const OutlineInputStyle = styled(OutlinedInput, { shouldForwardProp })(({ theme }) => ({\n width: 434,\n marginLeft: 16,\n paddingLeft: 16,\n paddingRight: 16,\n '& input': {\n background: 'transparent !important',\n paddingLeft: '4px !important',\n },\n [theme.breakpoints.down('lg')]: {\n width: 250,\n },\n [theme.breakpoints.down('md')]: {\n width: '100%',\n marginLeft: 4,\n background: theme.palette.mode === 'dark' ? theme.palette.dark[800] : '#fff',\n },\n}));\n\nexport const HeaderAvatarStyle = styled(Avatar, { shouldForwardProp })(({ theme }) => ({\n ...theme.typography.commonAvatar,\n ...theme.typography.mediumAvatar,\n background: theme.palette.mode === 'dark' ? theme.palette.dark.main : theme.palette.secondary.light,\n color: theme.palette.mode === 'dark' ? theme.palette.secondary.main : theme.palette.secondary.dark,\n '&:hover': {\n background: theme.palette.mode === 'dark' ? theme.palette.secondary.main : theme.palette.secondary.dark,\n color: theme.palette.mode === 'dark' ? theme.palette.secondary.light : theme.palette.secondary.light,\n },\n}));\n","import { useState } from 'react';\n\nimport { Avatar, Box, ButtonBase, Card, Grid, InputAdornment } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IconAdjustmentsHorizontal, IconSearch, IconX } from '@tabler/icons';\nimport PopupState, { bindPopper, bindToggle } from 'material-ui-popup-state';\n\nimport Transitions from 'shared/ui-component/extended/Transitions';\n\nimport { HeaderAvatarStyle, OutlineInputStyle, PopperStyle } from './styles';\ninterface MobileSearchProps {\n value: string;\n setValue: (value: string) => void;\n popupState: any;\n}\n\nconst MobileSearch: React.FC = ({ value, setValue, popupState }) => {\n const theme = useTheme();\n\n return (\n setValue(e.target.value)}\n placeholder=\"Buscar\"\n startAdornment={\n \n \n \n }\n endAdornment={\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n }\n aria-describedby=\"search-helper-text\"\n inputProps={{ 'aria-label': 'weight' }}\n />\n );\n};\n\nconst SearchSection: React.FC = () => {\n const theme = useTheme();\n const [value, setValue] = useState('');\n\n return (\n <>\n \n \n {popupState => (\n <>\n \n \n \n \n \n \n \n \n {({ TransitionProps }) => (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n )}\n \n \n \n setValue(e.target.value)}\n placeholder=\"Buscar conteúdo (em breve)\"\n startAdornment={\n \n \n \n }\n aria-describedby=\"search-helper-text\"\n inputProps={{ 'aria-label': 'weight' }}\n />\n \n \n );\n};\n\nexport default SearchSection;\n","import { Avatar, Box, ButtonBase, Typography } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IconMenu2 } from '@tabler/icons';\n\nimport LogoSection from '../LogoSection';\nimport ProfileSection from './ProfileSection';\nimport SearchSection from './SearchSection';\n\nexport interface HeaderProps {\n handleLeftDrawerToggle: () => void;\n enterpriseName?: string;\n}\n\nconst Header: React.FC = ({ handleLeftDrawerToggle, enterpriseName }) => {\n const theme = useTheme();\n\n return (\n <>\n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n {enterpriseName?.toLowerCase()}\n \n \n\n \n \n );\n};\n\nexport default Header;\n","import { useNavigate } from 'react-router-dom';\n\nimport { Box, Button, Typography, useTheme } from '@mui/material';\n\nimport { useAuth } from 'hooks/auth';\n\ninterface QuotaBarProps {\n percentage: number;\n onClose: () => void;\n}\n\nconst billingRoles = ['module-billing-read', 'module-billing-global'];\n\nexport function QuotaBar({ percentage }: QuotaBarProps) {\n const navigate = useNavigate();\n const { user } = useAuth();\n\n const rolePermission = user.permission.roles?.some(role => billingRoles.includes(role));\n\n const theme = useTheme();\n\n const handleRequestChange = () => {\n navigate('/billing?showRequestQuotaModal=true');\n };\n\n return (\n \n \n \n Alerta em conta StoryCRM\n \n \n \n {!rolePermission ? (\n \n Contate o seu administrador\n \n ) : (\n <>\n \n Essa conta atingiu {percentage}% de uso\n \n \n \n )}\n \n \n );\n}\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { ForwardRefExoticComponent, RefAttributes, forwardRef, useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Link } from 'react-router-dom';\n\nimport FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';\nimport { Avatar, Chip, ListItemButton, ListItemIcon, ListItemText, Typography, useMediaQuery } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { DefaultRootStateProps, LinkTarget, NavItemType } from 'interfaces/global.interface';\n\nimport { MENU_OPEN, SET_MENU } from 'shared/services/store/actions';\n\nexport interface NavItemProps {\n item: NavItemType;\n level: number;\n}\nconst NavItem: React.FC = ({ item, level }) => {\n const theme = useTheme();\n const dispatch = useDispatch();\n const customization = useSelector((state: DefaultRootStateProps) => state.customization);\n const matchesSM = useMediaQuery(theme.breakpoints.down('lg'));\n\n const Icon = item?.icon!;\n const itemIcon = item?.icon ? (\n \n ) : (\n id === item?.id) > -1 ? 8 : 6,\n height: customization.isOpen.findIndex(id => id === item?.id) > -1 ? 8 : 6,\n }}\n fontSize={level > 0 ? 'inherit' : 'medium'}\n />\n );\n\n let itemTarget: LinkTarget = '_self';\n if (item.target) {\n itemTarget = '_blank';\n }\n\n let listItemProps: {\n component: ForwardRefExoticComponent> | string;\n href?: string;\n target?: LinkTarget;\n } = {\n component: forwardRef((props, ref) => ),\n };\n if (item?.external) {\n listItemProps = { component: 'a', href: item.url, target: itemTarget };\n }\n\n const itemHandler = (id: string) => {\n dispatch({ type: MENU_OPEN, id });\n matchesSM && dispatch({ type: SET_MENU, opened: false });\n };\n\n // active menu item on page load\n useEffect(() => {\n const currentIndex = document.location.pathname\n .toString()\n .split('/')\n .findIndex(id => id === item.id);\n if (currentIndex > -1) {\n dispatch({ type: MENU_OPEN, id: item.id });\n }\n // eslint-disable-next-line\n }, []);\n\n return (\n 1 ? 'transparent !important' : 'inherit',\n py: level > 1 ? 1 : 1.25,\n pl: `${level * 24}px`,\n }}\n selected={customization.isOpen.findIndex(id => id === item.id) > -1}\n onClick={() => itemHandler(item.id!)}>\n {itemIcon}\n id === item.id) > -1 ? 'h5' : 'body1'}\n color=\"inherit\">\n {item.title}\n \n }\n secondary={\n item.caption && (\n \n {item.caption}\n \n )\n }\n />\n {item.chip && (\n {item.chip.avatar}}\n />\n )}\n \n );\n};\n\nexport default NavItem;\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';\nimport { Collapse, List, ListItemButton, ListItemIcon, ListItemText, Typography } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { IconChevronDown, IconChevronUp } from '@tabler/icons';\nimport { DefaultRootStateProps } from 'interfaces/global.interface';\n\nimport { NavGroupProps } from '../NavGroup';\nimport NavItem from '../NavItem';\n\nexport interface NavCollapseProps {\n menu: NavGroupProps['item'];\n level: number;\n roles: string[];\n}\n\nconst NavCollapse: React.FC = ({ menu, level, roles }) => {\n const theme = useTheme();\n const customization = useSelector((state: DefaultRootStateProps) => state.customization);\n\n const [open, setOpen] = React.useState(false);\n const [selected, setSelected] = React.useState(null);\n\n const handleClick = () => {\n setOpen(!open);\n setSelected(!selected ? menu.id : null);\n };\n\n // menu collapse & item\n const menus = menu.children\n ?.filter(item => {\n if (item.roles) {\n item.roles.push('developer-debug');\n return item.roles.find(role => roles.includes(role));\n }\n return item;\n })\n ?.map(item => {\n switch (item.type) {\n case 'collapse':\n return ;\n case 'item':\n return ;\n default:\n return (\n \n Menu Items Error\n \n );\n }\n });\n\n const Icon = menu.icon!;\n const menuIcon = menu.icon ? (\n \n ) : (\n 0 ? 'inherit' : 'medium'}\n />\n );\n\n return (\n <>\n 1 ? 'transparent !important' : 'inherit',\n py: level > 1 ? 1 : 1.25,\n pl: `${level * 24}px`,\n }}\n selected={selected === menu.id}\n onClick={handleClick}>\n {menuIcon}\n \n {menu.title}\n \n }\n secondary={\n menu.caption && (\n \n {menu.caption}\n \n )\n }\n />\n {open ? (\n \n ) : (\n \n )}\n \n \n \n {menus}\n \n \n \n );\n};\n\nexport default NavCollapse;\n","import React from 'react';\n\nimport { Divider, List, Typography } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\nimport { GenericCardProps } from 'interfaces/global.interface';\n\nimport { useAuth } from 'hooks/auth';\n\nimport NavCollapse from '../NavCollapse';\nimport NavItem from '../NavItem';\n\nexport interface NavGroupProps {\n item: {\n roles?: string[];\n id?: string;\n type?: string;\n icon?: GenericCardProps['iconPrimary'];\n children?: NavGroupProps['item'][];\n title?: React.ReactNode | string;\n caption?: React.ReactNode | string;\n color?: 'primary' | 'secondary' | 'default' | undefined;\n };\n}\n\nconst NavGroup: React.FC = ({ item }) => {\n const theme = useTheme();\n const { user } = useAuth();\n\n const items = item.children\n ?.filter(item => {\n if (item.roles) {\n item.roles.push('developer-debug');\n return item.roles.find(role => user.permission.roles.includes(role));\n }\n\n return item;\n })\n .map(menu => {\n switch (menu.type) {\n case 'collapse':\n return ;\n case 'item':\n return ;\n default:\n return (\n \n Menu Items Error\n \n );\n }\n });\n\n return (\n <>\n \n {item.title}\n {item.caption && (\n \n {item.caption}\n \n )}\n \n )\n }>\n {items}\n \n \n \n );\n};\n\nexport default NavGroup;\n","import { Typography } from '@mui/material';\nimport menuItem from 'menu-items';\n\nimport NavGroup from './NavGroup';\n\nconst MenuList: React.FC = () => {\n const navItems = menuItem.items.map(item => {\n switch (item.type) {\n case 'group':\n return ;\n default:\n return (\n \n Menu Items Error\n \n );\n }\n });\n\n return <>{navItems};\n};\n\nexport default MenuList;\n","import { useEffect, useState } from 'react';\nimport { BrowserView, MobileView } from 'react-device-detect';\nimport PerfectScrollbar from 'react-perfect-scrollbar';\nimport { useDispatch } from 'react-redux';\n\nimport { Box, Drawer, useMediaQuery } from '@mui/material';\nimport { useTheme } from '@mui/material/styles';\n\nimport { QUOTA_OPEN } from 'shared/services/store/actions';\nimport { drawerWidth } from 'shared/services/store/constant';\n\nimport LogoSection from '../LogoSection';\nimport MenuList from './MenuList';\n\nexport interface SidebarProps {\n drawerOpen?: boolean;\n drawerToggle?: () => void;\n window?: Window;\n quotaBarOpen?: boolean;\n}\n\nconst Sidebar: React.FC = ({ drawerOpen, drawerToggle, window, quotaBarOpen }) => {\n const theme = useTheme();\n const matchUpMd = useMediaQuery(theme.breakpoints.up('md'));\n const [sidebarHeight, setSidebarHeight] = useState(88);\n const dispatch = useDispatch();\n\n useEffect(() => {\n const element = document.querySelector('.quota-bar');\n\n if (!element) {\n dispatch({ type: QUOTA_OPEN, mainContentMoreHeight: 0 });\n setSidebarHeight(88);\n return;\n }\n\n const elementHeight = element.clientHeight;\n\n dispatch({ type: QUOTA_OPEN, mainContentMoreHeight: elementHeight });\n\n setSidebarHeight(prev => prev + elementHeight);\n }, [quotaBarOpen]);\n\n const drawer = (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n\n const container = window !== undefined ? () => window.document.body : undefined;\n\n return (\n \n \n {drawer}\n \n \n );\n};\n\nexport default Sidebar;\n","import React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Outlet } from 'react-router-dom';\n\nimport { AppBar, Box, CssBaseline, Toolbar, useMediaQuery } from '@mui/material';\nimport { styled, useTheme, Theme } from '@mui/material/styles';\nimport { IconChevronRight } from '@tabler/icons';\nimport { DefaultRootStateProps } from 'interfaces/global.interface';\nimport navigation from 'menu-items';\n\nimport { User } from 'modules/users/entities/User';\n\nimport { SET_MENU } from 'shared/services/store/actions';\nimport { drawerWidth } from 'shared/services/store/constant';\nimport Breadcrumbs from 'shared/ui-component/extended/Breadcrumbs';\n\nimport { useLocalStorage } from 'hooks/local-storage';\nimport { useQuota } from 'hooks/quota';\n\nimport Header from './Header';\nimport { QuotaBar } from './QuotaBar';\nimport Sidebar from './Sidebar';\n\n// assets\n\ninterface MainStyleProps {\n theme: Theme;\n open: boolean;\n}\n\n// styles\nconst Main = styled('main', { shouldForwardProp: prop => prop !== 'open' })(({ theme, open }: MainStyleProps) => ({\n ...theme.typography.mainContent,\n ...(!open && {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n transition: theme.transitions.create('margin', {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen,\n }),\n [theme.breakpoints.up('md')]: {\n marginLeft: -(drawerWidth - 20),\n width: `calc(100% - ${drawerWidth}px)`,\n },\n [theme.breakpoints.down('md')]: {\n marginLeft: '20px',\n width: `calc(100% - ${drawerWidth}px)`,\n padding: '16px',\n },\n [theme.breakpoints.down('sm')]: {\n marginLeft: '10px',\n width: `calc(100% - ${drawerWidth}px)`,\n padding: '16px',\n marginRight: '10px',\n },\n }),\n ...(open && {\n transition: theme.transitions.create('margin', {\n easing: theme.transitions.easing.easeOut,\n duration: theme.transitions.duration.enteringScreen,\n }),\n marginLeft: 0,\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n width: `calc(100% - ${drawerWidth}px)`,\n [theme.breakpoints.down('md')]: {\n marginLeft: '20px',\n },\n [theme.breakpoints.down('sm')]: {\n marginLeft: '10px',\n },\n }),\n}));\n\n// ==============================|| MAIN LAYOUT ||============================== //\n\nconst MainLayout: React.FC = () => {\n const theme = useTheme();\n const matchDownMd = useMediaQuery(theme.breakpoints.down('lg'));\n const [storagedUser] = useLocalStorage('@storytrackin:user');\n\n // Handle left drawer\n const leftDrawerOpened = useSelector((state: DefaultRootStateProps) => state.customization.opened);\n const dispatch = useDispatch();\n const { percentage } = useQuota();\n\n const [showQuotaBar, setShowQuotaBar] = useState(true);\n\n const handleLeftDrawerToggle = () => {\n dispatch({ type: SET_MENU, opened: !leftDrawerOpened });\n };\n\n useEffect(() => {\n dispatch({ type: SET_MENU, opened: !matchDownMd });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [matchDownMd]);\n\n const handleCloseQuotaBar = () => {\n setShowQuotaBar(false);\n };\n\n const quotaBarOpen = percentage >= 70 && showQuotaBar;\n\n return (\n \n \n \n {quotaBarOpen && }\n\n \n
\n \n \n \n
\n \n \n
\n \n );\n};\n\nexport default MainLayout;\n","import { useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\n\nimport { appConfig } from 'config/app';\n\nimport { useAuth } from 'hooks/auth';\n\nexport const AuthGuard: React.FC = ({ children }) => {\n const navigate = useNavigate();\n\n const { user } = useAuth();\n\n useEffect(() => {\n if (!user) {\n navigate(appConfig.defaultPath, { replace: true });\n }\n }, [navigate]);\n\n return children;\n};\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Billing = Loadable(lazy(() => import('modules/billing/pages/Billing')));\n\nexport const billingRoutes = [\n {\n path: '/billing',\n element: ,\n },\n];\n","import { billingRoutes } from './billing.routes';\n\nexport const billingRouter = [...billingRoutes];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Campaign = Loadable(lazy(() => import('modules/campaings/pages/Campaign')));\nconst SaveCampaign = Loadable(lazy(() => import('modules/campaings/pages/Campaign/CampaingCreate')));\nconst CampaignIndividualCreate = Loadable(lazy(() => import('modules/campaings/pages/CampaignIndividualCreate')));\n\nexport const campaignRoutes = [\n {\n path: '/campaings',\n element: ,\n },\n {\n path: '/campaings/create',\n element: ,\n },\n {\n path: '/campaings/individual/create',\n element: ,\n },\n];\n","import { campaignRoutes } from './campaing.routes';\n\nexport const campaingRouter = [...campaignRoutes];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Company = Loadable(lazy(() => import('modules/companies/pages/Company')));\n\nconst companyRouter = [\n {\n path: '/companies',\n element: ,\n },\n];\n\nexport default companyRouter;\n","import companyRouter from './company.routes';\n\nexport const companiesRouter = [...companyRouter];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Customer = Loadable(lazy(() => import('modules/customers/pages/Customer')));\n\nexport const customerRoutes = [\n {\n path: '/customers',\n element: ,\n },\n];\n","import { customerRoutes } from './customer.routes';\n\nexport const customerRouter = [...customerRoutes];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Enterprise = Loadable(lazy(() => import('modules/enterprises/pages/Enterprise')));\n\nexport const enterpriseRoutes = [\n {\n path: '/enterprises',\n element: ,\n },\n];\n","import { enterpriseRoutes } from './enterprise.routes';\n\nexport const enterpriseRouter = [...enterpriseRoutes];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Product = Loadable(lazy(() => import('modules/products/pages/Product')));\nconst ProductEnterpriseProvider = Loadable(lazy(() => import('modules/products/pages/ProductEnterpriseProvider')));\nconst ProductEnterpriseProviderReport = Loadable(\n lazy(() => import('modules/products/pages/ProductEnterpriseProviderReport')),\n);\n\nexport const productRoutes = [\n {\n path: '/products',\n element: ,\n },\n {\n path: '/products/enterprise-provider',\n element: ,\n },\n {\n path: '/products/enterprise-provider/report',\n element: ,\n },\n];\n","import { productRoutes } from './product.routes';\n\nexport const productRouter = [...productRoutes];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst SegmentList = Loadable(lazy(() => import('modules/segments/pages/Segment')));\nconst SegmentSave = Loadable(lazy(() => import('modules/segments/pages/SegmentSave')));\nconst SegmentQuery = Loadable(lazy(() => import('modules/segments/pages/SegmentQuery')));\n\nexport const segmentRouter = [\n {\n path: '/segments',\n element: ,\n },\n {\n path: '/segments/query-builder',\n element: ,\n },\n {\n path: '/segments/query-builder/save',\n element: ,\n },\n];\n","import { segmentRouter } from './segment.routes';\n\nexport const segmentsRouter = [...segmentRouter];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Giftback = Loadable(lazy(() => import('modules/strategies/pages/Promotion')));\nconst Reward = Loadable(lazy(() => import('modules/strategies/pages/Reward')));\nconst RewardVault = Loadable(lazy(() => import('modules/strategies/pages/RewardVault')));\nconst RewardSave = Loadable(lazy(() => import('modules/strategies/pages/RewardSave')));\n\nconst strategiesRouter = [\n {\n path: '/strategies/giftback',\n element: ,\n },\n {\n path: '/strategies/reward',\n element: ,\n },\n {\n path: '/strategies/reward/save',\n element: ,\n },\n {\n path: '/strategies/reward/save/:id',\n element: ,\n },\n {\n path: '/strategies/reward/vault',\n element: ,\n },\n];\n\nexport default strategiesRouter;\n","import strategiesRouter from './strategies.routes';\n\nexport const strategyRouter = [...strategiesRouter];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Permission = Loadable(lazy(() => import('modules/users/pages/Permission')));\n\nconst User = Loadable(lazy(() => import('modules/users/pages/User')));\n\nconst managerRouter = [\n {\n path: '/manager/permissions',\n element: ,\n },\n {\n path: '/manager/users',\n element: ,\n },\n];\n\nexport default managerRouter;\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst AccountProfile = Loadable(lazy(() => import('modules/users/pages/AccountProfile')));\n\nconst userRouter = [\n {\n path: '/users/account',\n element: ,\n },\n];\n\nexport default userRouter;\n","import managerRouter from './manager.routes';\nimport userRouter from './user.routes';\n\nexport const usersRouter = [...managerRouter, ...userRouter];\n","import { lazy } from 'react';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst Withdrawal = Loadable(lazy(() => import('modules/withdrawal/pages/Withdrawal')));\n\nconst SearchIndividual = Loadable(lazy(() => import('modules/withdrawal/pages/WithdrawalSearchIndividual')));\n\nexport const withdrawalsRouter = [\n {\n path: '/withdrawals',\n element: ,\n },\n {\n path: '/withdrawals/individual/search',\n element: ,\n },\n];\n","import { withdrawalsRouter } from './withdrawal.routes';\n\nexport const withdrawalRouter = [...withdrawalsRouter];\n","import { lazy } from 'react';\n\nimport MainLayout from 'layout/MainLayout';\nimport { AuthGuard } from 'routes/guard/AuthGuard';\n\nimport { billingRouter } from 'modules/billing/routes/index.routes';\nimport { campaingRouter } from 'modules/campaings/routes/index.routes';\nimport { companiesRouter } from 'modules/companies/routes/index.routes';\nimport { customerRouter } from 'modules/customers/routes/index.routes';\nimport { enterpriseRouter } from 'modules/enterprises/routes/index.routes';\nimport { productRouter } from 'modules/products/routes/index.routes';\nimport { segmentsRouter } from 'modules/segments/routes/index.routes';\nimport { strategyRouter } from 'modules/strategies/routes/index.routes';\nimport { usersRouter } from 'modules/users/routes/index.routes';\nimport { withdrawalRouter } from 'modules/withdrawal/routes/index.routes';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nconst DashboardPage = Loadable(lazy(() => import('modules/dashboard/pages/Dashboard')));\n\nexport const MainRoutes = {\n element: (\n \n \n \n ),\n children: [\n ...usersRouter,\n ...companiesRouter,\n ...productRouter,\n ...strategyRouter,\n ...segmentsRouter,\n ...customerRouter,\n ...enterpriseRouter,\n ...withdrawalRouter,\n ...campaingRouter,\n ...billingRouter,\n {\n path: '/dashboard',\n element: ,\n },\n ],\n};\n\nexport default MainRoutes;\n","import { lazy } from 'react';\nimport { useRoutes } from 'react-router-dom';\n\nimport { Loadable } from 'shared/ui-component/Loadable';\n\nimport { AuthRoutes } from './AuthRoutes';\nimport { DoItYourselfRoutes } from './DoItYourselfRoutes';\nimport { MainRoutes } from './MainRoutes';\n\nexport function Routes(): any {\n const MaintenanceError = Loadable(lazy(() => import('modules/maintenance/Error')));\n\n return useRoutes([\n MainRoutes,\n AuthRoutes,\n DoItYourselfRoutes,\n {\n path: '*',\n element: ,\n },\n ]);\n}\n","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { CustomTypography } from '../interfaces/themes.interface';\n\nexport default function themePalette(theme: CustomTypography) {\n return {\n mode: theme?.customization?.navType!,\n common: {\n black: theme.colors?.darkPaper,\n },\n primary: {\n light: theme?.customization?.navType === 'dark' ? theme.colors?.darkPrimaryLight : theme.colors?.primaryLight,\n main: theme?.customization?.navType === 'dark' ? theme.colors?.darkPrimaryMain : theme.colors?.primaryMain,\n dark: theme?.customization?.navType === 'dark' ? theme.colors?.darkPrimaryDark : theme.colors?.primaryDark,\n 200: theme?.customization?.navType === 'dark' ? theme.colors?.darkPrimary200 : theme.colors?.primary200,\n 800: theme?.customization?.navType === 'dark' ? theme.colors?.darkPrimary800 : theme.colors?.primary800,\n },\n secondary: {\n light: theme?.customization?.navType === 'dark' ? theme.colors?.darkSecondaryLight : theme.colors?.secondaryLight,\n main: theme?.customization?.navType === 'dark' ? theme.colors?.darkSecondaryMain : theme.colors?.secondaryMain,\n dark: theme?.customization?.navType === 'dark' ? theme.colors?.darkSecondaryDark : theme.colors?.secondaryDark,\n 200: theme?.customization?.navType === 'dark' ? theme.colors?.darkSecondary200 : theme.colors?.secondary200,\n 800: theme?.customization?.navType === 'dark' ? theme.colors?.darkSecondary800 : theme.colors?.secondary800,\n },\n error: {\n light: theme.colors?.errorLight,\n main: theme.colors?.errorMain!,\n dark: theme.colors?.errorDark,\n },\n orange: {\n light: theme.colors?.orangeLight!,\n main: theme.colors?.orangeMain!,\n dark: theme.colors?.orangeDark,\n },\n warning: {\n light: theme.colors?.warningLight,\n main: theme.colors?.warningMain!,\n dark: theme.colors?.warningDark!,\n },\n success: {\n light: theme.colors?.successLight,\n 200: theme.colors?.success200,\n main: theme.colors?.successMain,\n dark: theme.colors?.successDark,\n },\n grey: {\n 50: theme.colors?.grey50!,\n 100: theme.colors?.grey100!,\n 500: theme.darkTextSecondary!,\n 600: theme.heading!,\n 700: theme.darkTextPrimary!,\n 900: theme.textDark!,\n },\n dark: {\n light: theme.colors?.darkTextPrimary,\n main: theme.colors?.darkLevel1,\n dark: theme.colors?.darkLevel2,\n 800: theme.colors?.darkBackground,\n 900: theme.colors?.darkPaper,\n },\n text: {\n primary: theme.darkTextPrimary!,\n secondary: theme.darkTextSecondary!,\n dark: theme.textDark!,\n hint: theme.colors?.grey100!,\n },\n background: {\n paper: theme.paper!,\n default: theme.backgroundDefault!,\n },\n };\n}\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { PaletteMode } from '@mui/material';\nimport { alpha } from '@mui/material/styles';\n\nimport { CustomTypography } from '../interfaces/themes.interface';\n\nconst createCustomShadow = (theme: CustomTypography, color: string) => {\n const transparent = alpha(color, 0.24);\n return {\n z1: `0 1px 2px 0 ${transparent}`,\n z8: `0 8px 16px 0 ${transparent}`,\n z12: `0 12px 24px 0 ${transparent} 0 10px 20px 0 ${transparent}`,\n z16: `0 0 3px 0 ${transparent} 0 14px 28px -5px ${transparent}`,\n z20: `0 0 3px 0 ${transparent} 0 18px 36px -5px ${transparent}`,\n z24: `0 0 6px 0 ${transparent} 0 21px 44px 0 ${transparent}`,\n\n primary: `0px 12px 14px 0px ${alpha(theme.colors?.primaryMain!, 0.3)}`,\n secondary: `0px 12px 14px 0px ${alpha(theme.colors?.secondaryMain!, 0.3)}`,\n orange: `0px 12px 14px 0px ${alpha(theme.colors?.orangeMain!, 0.3)}`,\n success: `0px 12px 14px 0px ${alpha(theme.colors?.successMain!, 0.3)}`,\n warning: `0px 12px 14px 0px ${alpha(theme.colors?.warningMain!, 0.3)}`,\n error: `0px 12px 14px 0px ${alpha(theme.colors?.errorMain!, 0.3)}`,\n };\n};\n\nexport default function customShadows(navType: PaletteMode, theme: CustomTypography): any {\n return navType === 'dark'\n ? createCustomShadow(theme, theme.colors?.darkLevel1!)\n : createCustomShadow(theme, theme.colors?.grey600!);\n}\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { TypographyOptions } from '@mui/material/styles/createTypography';\n\nimport { CustomTypography } from '../interfaces/themes.interface';\n\nexport default function themeTypography(theme: CustomTypography): TypographyOptions {\n let mainContentHeight = 88;\n\n if (theme.customization?.mainContentMoreHeight) {\n mainContentHeight += theme.customization.mainContentMoreHeight;\n }\n\n return {\n fontFamily: \"'Mulish', serif\",\n h6: {\n fontWeight: 500,\n color: theme.heading!,\n fontSize: '0.75rem',\n },\n h5: {\n fontSize: '0.875rem',\n color: theme.heading!,\n fontWeight: 500,\n },\n h4: {\n fontSize: '1rem',\n color: theme.heading!,\n fontWeight: 600,\n },\n h3: {\n fontSize: '1.10rem',\n color: theme.heading!,\n fontWeight: 500,\n fontFamily: \"'elizeth', serif\",\n },\n h2: {\n fontSize: '1.5rem',\n color: theme.heading!,\n fontWeight: 500,\n fontFamily: \"'elizeth', serif\",\n },\n h1: {\n fontSize: '2rem',\n color: theme.heading!,\n fontWeight: 500,\n fontFamily: \"'elizeth', serif\",\n },\n subtitle1: {\n fontSize: '0.875rem',\n fontWeight: 500,\n color: theme?.customization?.navType === 'dark' ? theme.heading! : theme.textDark!,\n },\n subtitle2: {\n fontSize: '0.75rem',\n fontWeight: 400,\n color: theme.darkTextSecondary!,\n },\n caption: {\n fontSize: '0.75rem',\n color: theme.darkTextSecondary!,\n fontWeight: 400,\n },\n body1: {\n fontSize: '0.875rem',\n fontWeight: 400,\n lineHeight: '1.334em',\n },\n body2: {\n letterSpacing: '0em',\n fontWeight: 400,\n lineHeight: '1.5em',\n color: theme.darkTextPrimary!,\n },\n button: {\n textTransform: 'inherit',\n },\n customInput: {\n marginTop: 1,\n marginBottom: 1,\n '& > label': {\n top: 23,\n left: 0,\n color: theme.grey500!,\n '&[data-shrink=\"false\"]': {\n top: 5,\n },\n },\n '& > div > input': {\n padding: '30.5px 14px 11.5px !important',\n },\n '& legend': {\n display: 'none',\n },\n '& fieldset': {\n top: 0,\n },\n },\n mainContent: {\n backgroundColor: theme.background!,\n width: '100%',\n minHeight: `calc(100vh - ${mainContentHeight}px)`,\n flexGrow: 1,\n padding: '20px',\n marginTop: `${mainContentHeight}px`,\n marginRight: '20px',\n borderRadius: `${theme?.customization?.borderRadius}px`,\n },\n menuCaption: {\n fontSize: '0.875rem',\n fontWeight: 500,\n color: theme.heading!,\n padding: '6px',\n textTransform: 'capitalize',\n marginTop: '10px',\n },\n subMenuCaption: {\n fontSize: '0.6875rem',\n fontWeight: 500,\n color: theme.darkTextSecondary!,\n textTransform: 'capitalize',\n },\n commonAvatar: {\n cursor: 'pointer',\n borderRadius: '8px',\n },\n smallAvatar: {\n width: '22px',\n height: '22px',\n fontSize: '1rem',\n },\n mediumAvatar: {\n width: '34px',\n height: '34px',\n fontSize: '1.2rem',\n },\n largeAvatar: {\n width: '44px',\n height: '44px',\n fontSize: '1.5rem',\n },\n };\n}\n","import { createTheme, ThemeOptions, Theme } from '@mui/material/styles';\nimport colors from 'assets/scss/_themes-vars.module.scss';\nimport { ColorProps, CustomizationStateProps } from 'interfaces/global.interface';\n\nimport componentStyleOverrides from './compStyleOverride';\nimport themePalette from './palette';\nimport customShadows from './shadows';\nimport themeTypography from './typography';\n\nexport const theme = (customization: CustomizationStateProps) => {\n let color: ColorProps;\n switch (customization.presetColor) {\n case 'default':\n default:\n color = colors;\n }\n\n const themeOption = {\n colors: color,\n heading: '',\n paper: '',\n backgroundDefault: '',\n background: '',\n darkTextPrimary: '',\n darkTextSecondary: '',\n textDark: '',\n menuSelected: '',\n menuSelectedBack: '',\n divider: '',\n customization,\n };\n\n switch (customization.navType) {\n case 'dark':\n themeOption.paper = color.darkLevel2;\n themeOption.backgroundDefault = color.darkPaper;\n themeOption.background = color.darkBackground;\n themeOption.darkTextPrimary = color.darkTextPrimary;\n themeOption.darkTextSecondary = color.darkTextSecondary;\n themeOption.textDark = color.darkTextPrimary;\n themeOption.menuSelected = color.darkSecondaryMain;\n themeOption.menuSelectedBack = color.darkSecondaryMain + 15;\n themeOption.divider = color.darkTextPrimary;\n themeOption.heading = color.darkTextTitle;\n break;\n case 'light':\n default:\n themeOption.paper = color.paper;\n themeOption.backgroundDefault = color.paper;\n themeOption.background = color.primaryLight;\n themeOption.darkTextPrimary = color.grey700;\n themeOption.darkTextSecondary = color.grey500;\n themeOption.textDark = color.grey900;\n themeOption.menuSelected = color.secondaryDark;\n themeOption.menuSelectedBack = color.secondaryLight;\n themeOption.divider = color.grey200;\n themeOption.heading = color.grey900;\n break;\n }\n\n const themeOptions: ThemeOptions = {\n direction: 'ltr',\n palette: themePalette(themeOption),\n mixins: {\n toolbar: {\n minHeight: '48px',\n padding: '16px',\n '@media (min-width: 600px)': {\n minHeight: '48px',\n },\n },\n },\n typography: themeTypography(themeOption),\n customShadows: customShadows(customization.navType, themeOption),\n };\n\n const themes: Theme = createTheme(themeOptions);\n themes.components = componentStyleOverrides(themeOption);\n\n return themes;\n};\n\nexport default theme;\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport { CustomTypography } from '../interfaces/themes.interface';\n\nexport default function componentStyleOverrides(theme: CustomTypography): any {\n const bgColor = theme?.customization?.navType === 'dark' ? theme.colors?.darkBackground : theme.colors?.grey50;\n return {\n MuiButton: {\n styleOverrides: {\n root: {\n fontWeight: 500,\n borderRadius: '4px',\n },\n },\n },\n MuiPaper: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n backgroundImage: 'none',\n },\n rounded: {\n borderRadius: `${theme?.customization?.borderRadius}px`,\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n root: {\n color: theme.colors?.textDark,\n padding: '24px',\n },\n title: {\n fontSize: '1.125rem',\n },\n },\n },\n MuiCardContent: {\n styleOverrides: {\n root: {\n padding: '24px',\n },\n },\n },\n MuiCardActions: {\n styleOverrides: {\n root: {\n padding: '24px',\n },\n },\n },\n MuiAlert: {\n styleOverrides: {\n root: {\n alignItems: 'center',\n },\n outlined: {\n border: '1px dashed',\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n color: theme.darkTextPrimary,\n paddingTop: '10px',\n paddingBottom: '10px',\n '&.Mui-selected': {\n color: theme.menuSelected,\n backgroundColor: theme.menuSelectedBack,\n '&:hover': {\n backgroundColor: theme.menuSelectedBack,\n },\n '& .MuiListItemIcon-root': {\n color: theme.menuSelected,\n },\n },\n '&:hover': {\n backgroundColor: theme.menuSelectedBack,\n color: theme.menuSelected,\n '& .MuiListItemIcon-root': {\n color: theme.menuSelected,\n },\n },\n },\n },\n },\n MuiListItemIcon: {\n styleOverrides: {\n root: {\n color: theme.darkTextPrimary,\n minWidth: '36px',\n },\n },\n },\n MuiListItemText: {\n styleOverrides: {\n primary: {\n color: theme.textDark,\n },\n },\n },\n MuiInputBase: {\n styleOverrides: {\n input: {\n color: theme.textDark,\n '&::placeholder': {\n color: theme.darkTextSecondary,\n fontSize: '0.875rem',\n },\n },\n },\n },\n MuiOutlinedInput: {\n styleOverrides: {\n root: {\n background: theme?.customization?.outlinedFilled ? bgColor : 'transparent',\n borderRadius: `${theme?.customization?.borderRadius}px`,\n '& .MuiOutlinedInput-notchedOutline': {\n borderColor:\n theme?.customization?.navType === 'dark' ? theme.colors?.darkTextPrimary! + 28 : theme.colors?.grey400,\n },\n '&:hover $notchedOutline': {\n borderColor: theme.colors?.primaryLight,\n },\n '&.MuiInputBase-multiline': {\n padding: 1,\n },\n },\n input: {\n fontWeight: 500,\n background: theme?.customization?.outlinedFilled ? bgColor : 'transparent',\n padding: '15.5px 14px',\n borderRadius: `${theme?.customization?.borderRadius}px`,\n '&.MuiInputBase-inputSizeSmall': {\n padding: '10px 14px',\n '&.MuiInputBase-inputAdornedStart': {\n paddingLeft: 0,\n },\n },\n },\n inputAdornedStart: {\n paddingLeft: 4,\n },\n notchedOutline: {\n borderRadius: `${theme?.customization?.borderRadius}px`,\n },\n },\n },\n MuiSlider: {\n styleOverrides: {\n root: {\n '&.Mui-disabled': {\n color:\n theme?.customization?.navType === 'dark' ? theme.colors?.darkTextPrimary! + 50 : theme.colors?.grey300,\n },\n },\n mark: {\n backgroundColor: theme.paper,\n width: '4px',\n },\n valueLabel: {\n color: theme?.customization?.navType === 'dark' ? theme?.colors?.primaryMain : theme?.colors?.primaryLight,\n },\n },\n },\n MuiAutocomplete: {\n styleOverrides: {\n root: {\n '& .MuiAutocomplete-tag': {\n background:\n theme?.customization?.navType === 'dark'\n ? theme.colors?.darkTextPrimary! + 20\n : theme.colors?.secondaryLight,\n borderRadius: 4,\n color: theme.textDark,\n '.MuiChip-deleteIcon': {\n color:\n theme?.customization?.navType === 'dark'\n ? theme.colors?.darkTextPrimary! + 80\n : theme.colors?.secondary200,\n },\n },\n },\n popper: {\n borderRadius: `${theme?.customization?.borderRadius}px`,\n boxShadow:\n '0px 8px 10px -5px rgb(0 0 0 / 20%), 0px 16px 24px 2px rgb(0 0 0 / 14%), 0px 6px 30px 5px rgb(0 0 0 / 12%)',\n },\n },\n },\n MuiDivider: {\n styleOverrides: {\n root: {\n borderColor: theme.divider,\n opacity: theme?.customization?.navType === 'dark' ? 0.2 : 1,\n },\n },\n },\n MuiSelect: {\n styleOverrides: {\n select: {\n '&:focus': {\n backgroundColor: 'transparent',\n },\n },\n },\n },\n MuiCheckbox: {\n styleOverrides: {\n root: {\n /** checked not prop\n *\"&.Mui-checked\": {\n * fontSize: \"28px\"\n *}\n */\n },\n },\n },\n MuiAvatar: {\n styleOverrides: {\n root: {\n color: theme?.customization?.navType === 'dark' ? theme.colors?.darkLevel1 : theme.colors?.primaryDark,\n background: theme?.customization?.navType === 'dark' ? theme.darkTextPrimary : theme.colors?.primary200,\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n '&.MuiChip-deletable .MuiChip-deleteIcon': {\n color: 'inherit',\n },\n },\n },\n },\n MuiTimelineContent: {\n styleOverrides: {\n root: {\n color: theme.textDark,\n fontSize: '16px',\n },\n },\n },\n MuiTreeItem: {\n styleOverrides: {\n label: {\n marginTop: 14,\n marginBottom: 14,\n },\n },\n },\n MuiTimelineDot: {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n },\n },\n },\n MuiInternalDateTimePickerTabs: {\n styleOverrides: {\n tabs: {\n backgroundColor:\n theme?.customization?.navType === 'dark' ? theme.colors?.darkPaper : theme.colors?.primaryLight,\n '& .MuiTabs-flexContainer': {\n borderColor:\n theme?.customization?.navType === 'dark'\n ? theme?.colors?.darkTextPrimary! + 20\n : theme.colors?.primary200,\n },\n '& .MuiTab-root': {\n color: theme?.customization?.navType === 'dark' ? theme.colors?.darkTextSecondary : theme.colors?.grey900,\n },\n '& .MuiTabs-indicator': {\n backgroundColor: theme.colors?.primaryDark,\n },\n '& .Mui-selected': {\n color: theme.colors?.primaryDark,\n },\n },\n },\n },\n MuiTabs: {\n styleOverrides: {\n flexContainer: {\n borderBottom: '1px solid',\n borderColor:\n theme?.customization?.navType === 'dark' ? theme.colors?.darkTextPrimary! + 20 : theme.colors?.grey200,\n },\n },\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n padding: '12px 0 12px 0',\n },\n },\n },\n MuiTableCell: {\n styleOverrides: {\n root: {\n borderColor:\n theme?.customization?.navType === 'dark' ? theme.colors?.darkTextPrimary! + 15 : theme.colors?.grey200,\n '&.MuiTableCell-head': {\n fontSize: '0.875rem',\n color: theme.heading,\n fontWeight: 500,\n },\n },\n },\n },\n MuiTooltip: {\n styleOverrides: {\n tooltip: {\n color: theme?.customization?.navType === 'dark' ? theme.colors?.darkLevel1 : theme.paper,\n background: theme?.customization?.navType === 'dark' ? theme.colors?.grey50 : theme.colors?.grey700,\n },\n },\n },\n MuiDialogTitle: {\n styleOverrides: {\n root: {\n fontSize: '1.25rem',\n },\n },\n },\n };\n}\n","import React from 'react';\n\nimport { AuthProvider } from './auth';\nimport { QuotaProvider } from './quota';\nimport { RequestPinModalProvider } from './request-pin-modal';\nimport { ToastProvider } from './toast';\n\nconst AppProvider: React.FC = ({ children }) => (\n \n \n \n {children}\n \n \n \n);\n\nexport default AppProvider;\n","import { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\n\nimport * as amplitude from '@amplitude/analytics-browser';\nimport { CssBaseline, StyledEngineProvider } from '@mui/material';\nimport { ThemeProvider } from '@mui/material/styles';\nimport { DefaultRootStateProps } from 'interfaces/global.interface';\nimport { NavigationScroll } from 'layout/NavigationScroll';\nimport { Routes } from 'routes';\n\nimport { theme } from 'shared/styles/themes';\n\nimport AppProvider from 'hooks';\n\nconst App: React.FC = () => {\n const customization = useSelector((state: DefaultRootStateProps) => state.customization);\n\n useEffect(() => {\n const amplitudeKey = process.env.REACT_APP_AMPLITUDE_API_KEY;\n if (amplitudeKey) {\n amplitude.init(amplitudeKey, {\n defaultTracking: true,\n });\n }\n }, []);\n\n return (\n \n \n \n \n \n <>\n \n \n \n \n \n \n );\n};\n\nexport default App;\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useEffect } from 'react';\n\nexport function ChatWootWidget() {\n useEffect(() => {\n window.chatwootSettings = {\n hideMessageBubble: false,\n position: 'right',\n locale: 'pt',\n type: 'standard',\n };\n\n (function (d, t) {\n const BASE_URL = 'https://chat.storycrm.co';\n const g = d.createElement(t),\n s = d.getElementsByTagName(t)[0];\n g.src = BASE_URL + '/packs/js/sdk.js';\n g.defer = true;\n g.async = true;\n s.parentNode.insertBefore(g, s);\n g.onload = function () {\n window.chatwootSDK.run({\n websiteToken: 'oKJ6vbyXg2mCdfff1DTR8MFg',\n baseUrl: BASE_URL,\n });\n };\n })(document, 'script');\n }, []);\n\n return null;\n}\n","/* eslint-disable import-helpers/order-imports */\nimport 'assets/scss/style.scss';\n\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { BrowserRouter } from 'react-router-dom';\nimport { store } from 'shared/services/store';\n\nimport App from 'App';\nimport { appConfig } from 'config/app';\nimport { ChatWootWidget } from 'shared/components/ChatWootWidget';\n\nReactDOM.render(\n \n \n \n \n \n ,\n document.getElementById('root'),\n);\n","import { PaletteMode } from '@mui/material';\n\ninterface ConfigProps {\n basename: string;\n defaultPath: string;\n defaultPlatformPath: string;\n fontFamily: string;\n borderRadius: number;\n outlinedFilled: boolean;\n theme: PaletteMode;\n presetColor: string;\n}\n\nconst appConfig: ConfigProps = {\n basename: '',\n defaultPath: '/',\n defaultPlatformPath: '/dashboard',\n fontFamily: `'Mulish', sans-serif`,\n borderRadius: 12,\n outlinedFilled: true,\n theme: 'dark',\n presetColor: 'default',\n};\n\nexport { appConfig };\n","import React, { createContext, useCallback, useState, useContext } from 'react';\nimport { useNavigate } from 'react-router-dom';\n\nimport * as amplitude from '@amplitude/analytics-browser';\nimport { appConfig } from 'config/app';\nimport { KeyedObject } from 'interfaces/global.interface';\nimport jwtDecode from 'jwt-decode';\n\nimport api from '../shared/services/api';\n\ninterface AuthState {\n token: string;\n user: User;\n}\n\ninterface SignInCredentials {\n email: string;\n password: string;\n}\n\ninterface User {\n phone?: boolean;\n id: string;\n name: string;\n email: string;\n username: string;\n permission: {\n name: string;\n description: string;\n roles: string[];\n };\n enterprise: {\n name: string;\n org_provider_enabled: boolean;\n };\n}\n\ninterface AuthContextData {\n signIn(credentials: SignInCredentials): Promise;\n signOut(): void;\n user: User;\n token: string;\n}\n\nconst AuthContext = createContext({} as AuthContextData);\n\n// let authChannel: BroadcastChannel;\n\nexport function signOutForce(forceRedirect = false): void {\n localStorage.removeItem('@storytrackin:token');\n localStorage.removeItem('@storytrackin:user');\n\n if (forceRedirect === true) {\n window.location.href = '/login';\n }\n // authChannel.postMessage('signOut');\n}\n\nfunction validateToken(token: string): boolean {\n if (!token) {\n return false;\n }\n const decoded: KeyedObject = jwtDecode(token);\n\n return decoded.exp > Date.now() / 1000;\n}\n\nconst AuthProvider: React.FC = ({ children }) => {\n const navigate = useNavigate();\n const [data, setData] = useState(() => {\n const token = localStorage.getItem('@storytrackin:token');\n const user = localStorage.getItem('@storytrackin:user');\n\n const isValidAccessToken = token && user && validateToken(token);\n\n if (isValidAccessToken) {\n api.defaults.headers.common.Authorization = `Bearer ${token}`;\n\n return { token, user: JSON.parse(user) };\n }\n\n return {} as AuthState;\n });\n\n const signIn = useCallback(async ({ email, password }) => {\n const response = await api.post('/v1/sessions', {\n username: email,\n password,\n });\n\n const { user, token } = response.data;\n\n amplitude.setUserId(user.id);\n amplitude.track('Sign In');\n\n localStorage.setItem('@storytrackin:token', token);\n localStorage.setItem('@storytrackin:user', JSON.stringify(user));\n\n api.defaults.headers.common.Authorization = `Bearer ${token}`;\n\n setData({ token, user });\n\n navigate(appConfig.defaultPlatformPath, { replace: true });\n }, []);\n\n // useEffect(() => {\n // authChannel = new BroadcastChannel('auth');\n\n // // Valid signout in other pages\n // // authChannel.onmessage = (message) => {\n // // switch (message.data) {\n // // case 'signOut':\n // // signOutForce();\n // // break;\n // // default:\n // // break;\n // // }\n // // };\n // }, []);\n\n const signOut = useCallback(() => {\n signOutForce();\n\n setData({} as AuthState);\n\n navigate(appConfig.defaultPath, { replace: true });\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nfunction useAuth(): AuthContextData {\n const context = useContext(AuthContext);\n\n if (!context) {\n throw new Error('useAuth must be used within an AuthProvider');\n }\n\n return context;\n}\n\nexport { AuthProvider, useAuth };\n","export const gridSpacing = 3;\nexport const drawerWidth = 260;\nexport const appDrawerWidth = 320;\n","import axios, { AxiosError, AxiosInstance, AxiosRequestConfig } from 'axios';\n\nimport { signOutForce } from 'hooks/auth';\n\ninterface RegisterInterceptorProps {\n requestPinToken: (config: AxiosRequestConfig) => boolean;\n}\ninterface ApiInstance extends AxiosInstance {\n registerInterceptor: ({ requestPinToken }: RegisterInterceptorProps) => () => void;\n}\n\nconst api = axios.create({\n baseURL: process.env.REACT_APP_URL_API ?? 'https://api.storycrm.app',\n headers: { 'Access-Control-Allow-Origin': '*' },\n}) as ApiInstance;\n\n// TODO: Colocar o interceptor AppError para o alert\n\napi.registerInterceptor = ({ requestPinToken }) => {\n const interceptor = api.interceptors.response.use(\n response => response,\n async (error: AxiosError) => {\n if (error.response?.status === 401) {\n signOutForce(true);\n }\n\n if (error.response?.status === 403) {\n const originalRequest = error.config;\n const allowedToRequestPin = requestPinToken(originalRequest);\n\n if (!allowedToRequestPin) {\n signOutForce(true);\n }\n }\n\n return Promise.reject(error);\n },\n );\n\n return () => {\n axios.interceptors.response.eject(interceptor);\n };\n};\n\nexport default api;\n"],"sourceRoot":""}