{"version":3,"sources":["@core/components/mdzStringNormalizer/index.js","utility/context/ThemeColors.js","@core/components/spinner/Fallback-spinner.js","@core/components/ripple-button/index.js","moderniza/modal/notification/index.js","configs/acl/ability.js","configs/acl/initialAbility.js","serviceWorker.js","index.js","configs/themeConfig.js","services/endpoints.js","services/upload.js","moderniza/modal/notification/store/index.js","moderniza/loading/store/index.js","views/organizations/store/add.js","utility/context/Can.js","assets/images/logo/logo.png","@core/layouts/components/navbar/store/index.js","redux/layout.js","views/organizations/store/list.js","redux/user.js","moderniza/mdzSidebar/store/index.js","views/register-client/store/index.js","views/register-partner/store/index.js","views/register/store/register.js","views/dashboard/store/index.js","services/api.js","views/register-organization/store/register.js","redux/navbar.js","moderniza/toast/store/index.js","services/api_finance.js","services/api_comercial.js","services/api_ecommerce.js","views/activations/store/marketplaces.js","redux/filterFields.js","redux/rootReducer.js","redux/store.js","moderniza/toast/index.js"],"names":["mdzNormalize","name","toLowerCase","replace","l","toUpperCase","general","string","normalize","cep","phone","number","ThemeColors","createContext","ThemeContext","_ref","children","colors","setColors","useState","useEffect","window","getHex","color","getComputedStyle","document","body","getPropertyValue","trim","obj","primary","light","concat","main","secondary","success","danger","warning","info","dark","_jsx","Provider","value","SpinnerComponent","_jsxs","className","src","logo","alt","Button","Ripple","onClick","rest","mounted","setMounted","isRippling","setIsRippling","coords","setCoords","x","y","setTimeout","classnames","e","rect","target","getBoundingClientRect","clientX","left","clientY","top","style","ModalNotification","dispatch","useDispatch","store","useSelector","state","modalNotification","Modal","modalClassName","isOpen","show","toggle","hiddenModal","ModalHeader","title","ModalBody","message","list","map","item","index","ModalFooter","userData","JSON","parse","localStorage","getItem","Ability","_userData$permissoes","permissoes","permission","action","tipo","subject","rotulo","Boolean","location","hostname","match","LazyApp","lazy","container","getElementById","createRoot","render","BrowserRouter","Suspense","fallback","Spinner","AbilityContext","ability","Toaster","position","themeConfig","layout","toastPosition","toastOptions","navigator","serviceWorker","ready","then","registration","unregister","app","appName","appLogoImage","require","default","isRTL","skin","routerTransition","type","contentWidth","menu","isHidden","isCollapsed","navbar","backgroundColor","footer","customizer","scrollTop","URL_API_CHECKOUT","URL_API_LOGISTICS","URL_API_CONFIG","URL_API_HUB","URL_API_PLATFORM","URL_LOGIN","URL_API_FINANCE","URL_API_COMERCIAL","URL_NOT_AUTHORIZED","URL_ERP","URL_API_PORTAL","async","uploadImageAws","mime","path","image","api","axios","create","bucket","post","modalNotificationSlice","createSlice","initialState","reducers","showModal","payload","actions","loadingSlice","isLoading","showLoading","hideLoading","searchCities","createAsyncThunk","get","uf","data","searchPostalCode","_res$data$ibge","res","ibgeUf","ibge","length","substring","logradouro","bairro","submitOrganizations","_ref2","cnpj","showError","corporate_name","address","postal_code","id_organization","error","console","listParentOrganizationsByType","response","fetchChildren","fetchData","_ref3","parseInt","state_ibge","undefined","cities","organizations_children","listParentOrganizations","plans","plansInOrg","fields","id_parent_organization","fantasy_name","situation","SituacaoOrganizacao","Ativo","TipoOrganizacao","Cliente","state_registration","address_number","address_complement","district","city_ibge","email","cellphone","plan_selected","city_name","state_name","business_structure","EstruturaNegocio","Matriz","is_demo","billing_day","valid_billing_day","disable_billing_day","token","user_responsible","segment","addOrganizagionsSlice","setFieldsValues","field","reset","extraReducers","builder","addCase","fulfilled","_action$payload$ibge","localidade","_action$payload","resetFields","createContextualCan","Consumer","titleSlice","setTitle","layoutSlice","initialSkin","initialDirection","lastLayout","menuCollapsed","initialMenuCollapsed","footerType","navbarType","menuHidden","navbarColor","handleRTL","setItem","stringify","handleSkin","handleLayout","handleFooterType","handleNavbarType","handleMenuHidden","handleLastLayout","handleNavbarColor","handleContentWidth","handleMenuCollapsed","filterRegex","filter","fetchOrgOptions","getOrganizationsByParent","fetchOrganizationSelected","listOrganizagionsSlice","ParentInClientCenter","organization_selected","organization_options","records","onFocus","cancellation","cancellationSelectedOrganization","cancellationSelectedApp","cancellationOrgs","cancellationApps","reason","setOnFocus","setOrganizationSelected","setCancellationValues","setParentInClientCenter","fetchLogin","user","fetchPermissions","fetchMainOrganization","_res$data","organizations","userSlice","initialUser","main_organization","initialMainOrganization","organization","permissions","initialPermissions","initialMenuItems","setOrganization","setUser","setPermissions","setMenuItems","menuItems","logout","removeItem","cookie","serialize","maxAge","domain","login","isVisible","component","open","mdzSidebarSlice","showMdzSidebar","hideMdzSidebar","setMdzSidebar","handleOpenMdzSidebar","verifyCnpj","callback","normalizedCnpj","status","handleRegisterClient","verifyNoExistCnpj","getPublicData","_response$data$codigo","nomeCorporativo","razao_social","nomeFantasia","nome_fantasia","telefone","ddd_telefone_1","celular","ddd_telefone_2","cidade","municipio","endereco","numero","complemento","estado_ibge","codigo_municipio_ibge","toString","cidade_ibge","matrizOuFilial","cnpjMatrizPai","cnpjMatrizIsValid","listApps","cnpjIsValid","termosAceito","nomeUsuario","emailUsuario","senhaUsuario","confirmarSenhaUsuario","matrizOuFilialIsDisabled","DadosDaFilialIsDisabled","CadastroDeUsuarioIsDisabled","SelecaoDeAplicativosIsDisabled","quantityClientsPartnerBase","quantityClientsMigrated","id_organization_created","stepByStepUserRegister","handleRegisterPartner","isDemo","cnpjParentOrganization","ie","registerPartner","test","signup","callBackRedirect","stringifyData","validateData","catch","confirmRegistration","_ref4","code","verification_code","statusCode","resendCode","step","password","confirm_password","validation_data","id_head_office_organization","checking","signupSlice","setValidationValues","setStep","resetChecking","_action$payload$respo","initialDate","finalDate","idOrganization","business","segments","handleFilter","Date","directCustomers","dashboardSlice","onHandleFilter","resetFilter","baseURL","withCredentials","headers","interceptors","use","href","complement","Promise","reject","register","user_temp","validation","isModerShopActive","activate_modershop","registerOrganizationSlice","activateModershop","getBookmarks","suggestions","bookmarks","updateBookmarked","id","query","handleSearchQuery","objectToUpdate","find","isBookmarked","bookmarkIndex","findIndex","push","splice","showLoadingModal","apiFinance","apiComercial","ECOMMERCE_URL","Authorization","fetchMarketplace","_response$data","marketplace","fetchPayments","Number","is_moderbank","findModerbank","showSuccess","where","id_bank_account","findModerbankById","findPrivacy","fetchTuoBank","saveTuoBank","createSafeTwoPay","id_safe_two_pay","fetchSafeTwoPay","fetchFrenet","saveFrenet","fetchMelhorEnvio","saveMelhorEnvio","saveLogo","_data$template_value","template_value","resUpload","id_marketplace","template_key","setLogoBase64","checkDNS","slug","sufix","url","controller","AbortController","timeoutId","abort","fetch","signal","method","clearTimeout","content","json","description","CheckDNS","submitActivation","ChangeTheme","_data$fields","submitBanner","url_desktop","url_mobile","dataBanner","uploadDesktop","uploadMobile","upload","findBanners","updateBanner","id_marketplace_banner","findBannersById","toast","deleteBanners","getSocialMedia","updateShowProductWithoutStock","chargeSaleChannel","id_canal_venda","result","loading","dns_avalaible","modal_state","banners","banner_fields","logo_base64","tuo_bank","id_tuo_bank","frenet","id_frenet","melhor_envio","id_melhor_envio","exibir_produto_sem_estoque","url_xml_integration_shopping","url_domain","Situacao","ids_sales_channels","logo_type_mobile","TipoLogos","Retangular","logo_mobile","logo_square_text_mobile","logo_type_desktop","logo_desktop","logo_square_text_desktop","logo_style_header","StyleTypeLogos","Default","logo_style_footer","color_primary","color_secondary","color_bg_footer","color_text_footer","color_bg_header","color_text_header","color_bg_main","color_text_main","color_normal_price","color_promotion_price","color_bg_primary_button","color_text_primary_button","color_bg_secondary_button","color_text_secondary_button","color_secondary_price","product_page_blocks","home_page_blocks","moderbank_fields","is_pix","is_demand","safe_two_pay","max_installments","active_installments","is_connected","id_installment","payment_options","social_medias","google","url_arquivo","tag_manager_id","analytics_id","facebook","url_loja","meta_pixel_id","instagram","youtube","whatsapp","terms","policy","activationsSlice","Array","isArray","setTerms","setBanners","setSelectedBanner","setPolicy","setModalState","setBannerValues","setLoading","setModerbankValues","setFieldsTuoBankValues","setFieldsSafeTwoPay","setFieldsFrenetValues","setFieldsMelhorEnvioValues","setPrimaryColorFields","setSecondColorFields","setApp","setGoogleUrlLoja","setGoogleTagManagerId","setGoogleAnalyticsId","setFacebookUrlLoja","setFacebookMetaPixelId","setFacebookUrlArquivo","setInstagramUrlLoja","setInstagramUrlArquivo","setYoutubeUrlArquivo","setWhatsappUrlArquivo","resetBannerSelect","_action$payload2","marketplaces_templates","_action$payload$activ","_action$payload$activ2","_action$payload$activ3","_action$payload$activ4","activate","facebook_file","facebook_url","facebook_meta_pixel_id","instagram_file","instagram_url","google_file","google_tag_manager_id","google_analytics_id","whatsapp_number","youtube_url","_action$payload$","id_conta","terms_of_use","privacy_policy","available","filterFieldsSlice","rootReducer","filterFields","loadingModal","addOrganizations","listOrganizations","marketplaces","registerOrganization","RegisterClient","RegisterPartner","mdzSidebar","dashboard","configureStore","reducer","middleware","getDefaultMiddleware","serializableCheck","Custom","setShow","err","CustomConfirmation","text","onClickNo","onClickYes","isTerms","textButtonNo","textButtonYes","isActive","setIsActive","Fragment","outline","custom","showConfirmation","msg"],"mappings":"iIAAA,kCAAO,MAAMA,EAAe,CAC1BC,KAAOA,GACEA,EAAKC,cAAcC,QAAQ,SAAUC,GAAMA,EAAEC,gBAEtDC,QAAUC,GACDA,EACJC,UAAU,OACVL,QAAQ,mBAAoB,IAC5BD,cAELO,IAAMA,GACGA,EAAIN,QAAQ,SAAU,IAE/BO,MAAQC,GACCA,EAAOR,QAAQ,MAAO,I,wOCVjC,MAAMS,EAAcC,0BAEdC,EAAeC,IAAmB,IAAlB,SAAEC,GAAUD,EAEhC,MAAOE,EAAQC,GAAaC,mBAAS,CAAC,GA4CtC,OAzCAC,qBAAU,KACR,GAAe,cAAXC,OAAwB,CAE1B,MAAMC,EAAUC,GAAUF,OAAOG,iBAAiBC,SAASC,MAAMC,iBAAiBJ,GAAOK,OAGnFC,EAAM,CACVC,QAAS,CACPC,MAAOT,EAAO,gBAAgBU,OAAO,MACrCC,KAAMX,EAAO,iBAEfY,UAAW,CACTH,MAAOT,EAAO,kBAAkBU,OAAO,MACvCC,KAAMX,EAAO,mBAEfa,QAAS,CACPJ,MAAOT,EAAO,gBAAgBU,OAAO,MACrCC,KAAMX,EAAO,iBAEfc,OAAQ,CACNL,MAAOT,EAAO,eAAeU,OAAO,MACp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1B,MAAM,YACN2oB,SAAO,EACP/mB,QAASA,KACkB,oBAAdumB,GAA0BA,IACrCM,GAAY,EAAM,EAClBhpB,SACD6oB,GAA8BjnB,eAACqnB,WAAQ,CAAAjpB,SAAA,CAAC,KAAc,IAAZ4oB,EAAmB,WAAa,gBAGzE,EAkBCld,EAAaK,IACxBuT,IAAM6J,OAAO3nB,cAAC6mB,EAAM,CAACtc,MAAOA,IAAiB,EAKlCqd,EAAmBA,CAACX,EAAMC,EAAWC,EAAYC,EAASE,EAAeD,KACpFvJ,IAAM6J,OACJ3nB,cAACgnB,EAAkB,CACjBC,KAAMA,EACNC,UAAWA,EACXC,WAAYA,EACZC,QAASA,EACTC,aAAcA,EACdC,cAAeA,IAElB,EAGU3M,EAAekN,IAC1B/J,IAAMne,QAAQkoB,EAAI,C","file":"static/js/main.0358b486.chunk.js","sourcesContent":["export const mdzNormalize = {\n name: (name) => {\n return name.toLowerCase().replace(/\\b\\w/g, (l) => l.toUpperCase())\n },\n general: (string) => {\n return string\n .normalize('NFD')\n .replace(/[\\u0300-\\u036f]/g, '')\n .toLowerCase()\n },\n cep: (cep) => {\n return cep.replace(/[^\\d]/g, '')\n },\n phone: (number) => {\n return number.replace(/\\D/g, '')\n }\n}\n","// ** React Imports\nimport { useEffect, useState, createContext } from \"react\"\n\n// ** Create Context\nconst ThemeColors = createContext()\n\nconst ThemeContext = ({ children }) => {\n // ** State\n const [colors, setColors] = useState({})\n\n //** ComponentDidMount\n useEffect(() => {\n if (window !== \"undefined\") {\n //** Get variable value\n const getHex = (color) => window.getComputedStyle(document.body).getPropertyValue(color).trim()\n\n //** Colors obj\n const obj = {\n primary: {\n light: getHex(\"--bs-primary\").concat(\"1a\"),\n main: getHex(\"--bs-primary\")\n },\n secondary: {\n light: getHex(\"--bs-secondary\").concat(\"1a\"),\n main: getHex(\"--bs-secondary\")\n },\n success: {\n light: getHex(\"--bs-success\").concat(\"1a\"),\n main: getHex(\"--bs-success\")\n },\n danger: {\n light: getHex(\"--bs-danger\").concat(\"1a\"),\n main: getHex(\"--bs-danger\")\n },\n warning: {\n light: getHex(\"--bs-warning\").concat(\"1a\"),\n main: getHex(\"--bs-warning\")\n },\n info: {\n light: getHex(\"--bs-info\").concat(\"1a\"),\n main: getHex(\"--bs-info\")\n },\n dark: {\n light: getHex(\"--bs-dark\").concat(\"1a\"),\n main: getHex(\"--bs-dark\")\n }\n }\n\n setColors({ ...obj })\n }\n }, [])\n\n return (\n {children}\n )\n}\n\nexport { ThemeColors, ThemeContext }\n","// ** Logo\nimport logo from \"@src/assets/images/logo/logo.png\"\n\nconst SpinnerComponent = () => {\n return (\n
\n \"logo\"\n
\n
\n
\n
\n
\n
\n )\n}\n\nexport default SpinnerComponent\n","// ** React Imports\nimport { useState, useEffect } from \"react\"\n\n// ** Third Party Components\nimport classnames from \"classnames\"\n\n// ** Reactstrap Imports\nimport { Button } from \"reactstrap\"\n\n// ** Styles\nimport \"./ripple-button.scss\"\n\nconst RippleButton = ({ className, children, onClick, ...rest }) => {\n // ** States\n const [mounted, setMounted] = useState(false)\n const [isRippling, setIsRippling] = useState(false)\n const [coords, setCoords] = useState({ x: -1, y: -1 })\n\n // ** Toggle mounted on mount & unmount\n useEffect(() => {\n setMounted(true)\n return () => setMounted(false)\n }, [])\n\n // ** Check for coords and set ripple\n useEffect(() => {\n if (mounted) {\n if (coords.x !== -1 && coords.y !== -1) {\n setIsRippling(true)\n setTimeout(() => setIsRippling(false), 500)\n } else {\n setIsRippling(false)\n }\n }\n }, [coords])\n\n // ** Reset Coords on ripple end\n useEffect(() => {\n if (mounted) {\n if (!isRippling) setCoords({ x: -1, y: -1 })\n }\n }, [isRippling])\n\n return (\n {\n const rect = e.target.getBoundingClientRect()\n setCoords({ x: e.clientX - rect.left, y: e.clientY - rect.top })\n if (onClick) {\n onClick(e)\n }\n }}\n {...rest}\n >\n {children}\n {isRippling ? (\n \n ) : null}\n \n )\n}\n\n// ** PropTypes\nRippleButton.propTypes = {\n ...Button.propTypes\n}\n\nButton.Ripple = RippleButton\n","import { useSelector, useDispatch } from 'react-redux'\n\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'\n\nimport { hiddenModal } from './store'\n\nconst ModalNotification = () => {\n const dispatch = useDispatch()\n\n const store = useSelector((state) => state.modalNotification)\n\n return (\n dispatch(hiddenModal())}>\n dispatch(hiddenModal())}>{store.title}\n \n {store.message ?
{store.message}
: null}\n {store.list\n ? store.list.map((item, index) => {\n return
  • {item}
  • \n })\n : null}\n
    \n \n \n \n \n )\n}\n\nexport default ModalNotification\n","import { Ability, AbilityBuilder } from '@casl/ability'\nimport { initialAbility } from './initialAbility'\nimport { AbilityContext } from '@src/utility/context/Can'\nimport { useContext } from 'react'\n\nexport const verifyRole = (action, subject) => {\n const ability = useContext(AbilityContext)\n return ability.can(action, subject)\n}\n\nconst userData = JSON.parse(localStorage.getItem('user'))\n\nexport default new Ability(\n userData?.permissoes?.map((permission) => {\n return {\n action: permission.tipo === '1' ? 'read' : 'manage',\n subject: permission.rotulo\n }\n }) || initialAbility\n)\n\nexport const defineRulesFor = (auth) => {\n const permissions = auth.permissoes\n const { can, rules } = new AbilityBuilder()\n if (permissions) {\n permissions.forEach((p) => {\n if (p.permissao.tipo === '1') can('read', p.permissao.rotulo)\n else can('manage', p.permissao.rotulo)\n })\n }\n\n return rules\n}\n\nexport const updateAbility = (ability, permissions) => {\n ability.update(permissions)\n}\n","// ** Initial user ability\nexport const initialAbility = [\n {\n action: 'manage',\n subject: 'all'\n }\n]\n\nexport const _ = undefined\n","/*eslint-disable */\n// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n)\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href)\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets see https://github.com/facebook/create-react-app/issues/2374\n return\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config)\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n )\n })\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config)\n }\n })\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing\n if (installingWorker === null) {\n return\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n )\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration)\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.')\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration)\n }\n }\n }\n }\n }\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error)\n })\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type')\n if (response.status === 404 || (contentType !== null && contentType.indexOf('javascript') === -1)) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload()\n })\n })\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config)\n }\n })\n .catch(() => {\n console.log('No internet connection found. App is running in offline mode.')\n })\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister()\n })\n }\n}\n","import { Suspense, lazy } from 'react'\nimport { createRoot } from 'react-dom/client'\nimport { BrowserRouter } from 'react-router-dom'\nimport { store } from './redux/store'\nimport { Provider } from 'react-redux'\nimport { AbilityContext } from './utility/context/Can'\nimport { ThemeContext } from './utility/context/ThemeColors'\nimport themeConfig from './configs/themeConfig'\nimport { Toaster } from 'react-hot-toast'\nimport Spinner from './@core/components/spinner/Fallback-spinner'\nimport './@core/components/ripple-button'\nimport ModalNotification from '@src/moderniza/modal/notification'\nimport 'prismjs'\nimport 'prismjs/themes/prism-tomorrow.css'\nimport 'prismjs/components/prism-jsx.min'\nimport 'react-perfect-scrollbar/dist/css/styles.css'\nimport '@styles/react/libs/react-hot-toasts/react-hot-toasts.scss'\nimport '@styles/react/libs/tables/react-dataTable-component.scss'\nimport './@core/assets/fonts/feather/iconfont.css'\nimport './@core/scss/core.scss'\nimport './assets/scss/style.scss'\nimport ability from './configs/acl/ability'\nimport * as serviceWorker from './serviceWorker'\nconst LazyApp = lazy(() => import('./App'))\nconst container = document.getElementById('root')\nconst root = createRoot(container)\n\nroot.render(\n \n \n }>\n \n \n \n \n \n \n \n \n \n \n)\n\nserviceWorker.unregister()\n","// You can customize the template with the help of this file\n\n//Template config options\nconst themeConfig = {\n app: {\n appName: 'Moderniza',\n appLogoImage: require('@src/assets/images/logo/logo.png').default\n },\n layout: {\n isRTL: false,\n skin: 'light', // light, dark, bordered, semi-dark\n routerTransition: 'none',\n type: 'vertical', // vertical, horizontal\n contentWidth: 'full', // full, boxed\n menu: {\n isHidden: false,\n isCollapsed: false\n },\n navbar: {\n // ? For horizontal menu, navbar type will work for navMenu type\n type: 'sticky', // static , sticky , floating, hidden\n backgroundColor: 'primary' // BS color options [primary, success, etc]\n },\n footer: {\n type: 'hidden' // static, sticky, hidden\n },\n customizer: false,\n scrollTop: false, // Enable scroll to top button\n toastPosition: 'top-right' // top-left, top-center, top-right, bottom-left, bottom-center, bottom-right\n }\n}\n\nexport default themeConfig\n","let URL_API_CHECKOUT,\n URL_API_LOGISTICS,\n URL_API_CONFIG,\n URL_API_HUB,\n URL_API_PLATFORM,\n URL_LOGIN,\n URL_API_FINANCE,\n URL_API_COMERCIAL,\n URL_NOT_AUTHORIZED,\n URL_ERP,\n URL_API_PORTAL\n\nif (process.env.NODE_ENV === 'production') {\n URL_LOGIN = `https://plataforma.modershop.com.br/login`\n URL_API_HUB = 'https://apihub.modershop.com.br'\n URL_API_CHECKOUT = 'https://api-checkout-traefik.modershop.com.br'\n URL_API_PLATFORM = 'https://api-plataform-traefik.modershop.com.br'\n URL_API_CONFIG = 'https://api-config-traefik.modershop.com.br'\n URL_API_COMERCIAL = 'https://api-comercial-traefik.modershop.com.br'\n URL_API_LOGISTICS = 'https://api-logistics-traefik.modershop.com.br'\n URL_API_FINANCE = 'https://api-finance-traefik.modershop.com.br'\n URL_NOT_AUTHORIZED = 'https://plataforma.modershop.com.br/not-authorized'\n URL_ERP = 'https://gestao.modershop.com.br'\n URL_API_PORTAL = 'https://lojamix.net/api'\n} else {\n URL_LOGIN = `http://localhost:3002/login`\n URL_NOT_AUTHORIZED = 'http://localhost:3002/not-authorized'\n URL_API_HUB = `http://${window.location.host.split(':').shift()}:4081`\n URL_API_CHECKOUT = `http://${window.location.host.split(':').shift()}:4100`\n URL_API_PLATFORM = `http://${window.location.host.split(':').shift()}:4110`\n URL_API_CONFIG = `http://${window.location.host.split(':').shift()}:5002`\n URL_API_COMERCIAL = `http://${window.location.host.split(':').shift()}:5004`\n URL_API_LOGISTICS = `http://${window.location.host.split(':').shift()}:5005`\n URL_API_FINANCE = `http://${window.location.host.split(':').shift()}:5006`\n URL_ERP = `http://${window.location.host.split(':').shift()}:3000`\n URL_API_PORTAL = 'http://localhost/PortalModernizaApi'\n}\n\nexport {\n URL_API_CHECKOUT,\n URL_API_LOGISTICS,\n URL_API_HUB,\n URL_API_PLATFORM,\n URL_LOGIN,\n URL_API_CONFIG,\n URL_API_FINANCE,\n URL_API_COMERCIAL,\n URL_NOT_AUTHORIZED,\n URL_ERP,\n URL_API_PORTAL\n}\n","import axios from 'axios'\n\nexport async function uploadImageAws(name, mime, path, image) {\n const api = axios.create()\n const obj = { name, bucket: 'mdz-platform', path, image, mime }\n const response = await api.post('https://n9rzehwkai.execute-api.sa-east-1.amazonaws.com/dev/image_upload', obj)\n\n return response\n}\n","// ** Redux Imports\nimport { createSlice } from '@reduxjs/toolkit'\n\nexport const modalNotificationSlice = createSlice({\n name: 'modalNotification',\n initialState: {\n show: false,\n color: '', //warning, error, info, success\n title: '',\n message: '',\n list: []\n },\n reducers: {\n showModal: (state, action) => {\n state.show = action.payload.show\n state.message = action.payload.message\n state.color = action.payload.color\n state.title = action.payload.title\n state.list = action.payload.list\n },\n hiddenModal: (state) => {\n state.show = false\n state.message = ''\n state.title = ''\n state.list = []\n }\n }\n})\n\nexport const { showModal, hiddenModal } = modalNotificationSlice.actions\n\nexport default modalNotificationSlice.reducer\n","import { createSlice } from '@reduxjs/toolkit'\n\nconst initialState = {\n isLoading: false\n}\n\nconst loadingSlice = createSlice({\n name: 'loading',\n initialState,\n reducers: {\n showLoading: (state) => {\n state.isLoading = true\n },\n hideLoading: (state) => {\n state.isLoading = false\n }\n }\n})\n\nexport const { showLoading, hideLoading } = loadingSlice.actions\n\nexport default loadingSlice.reducer","import { createSlice, createAsyncThunk } from '@reduxjs/toolkit'\nimport api from '@api'\nimport axios from 'axios'\nimport { showModal } from '@src/moderniza/modal/notification/store'\nimport { showError } from '../../../moderniza/toast'\nimport { EstruturaNegocio, SituacaoOrganizacao, TipoOrganizacao } from 'mdz-enum'\nimport { hideLoading, showLoading } from '../../../moderniza/loading/store'\n\nexport const searchCities = createAsyncThunk('addOrganizations/searchCities', async (uf) => {\n const res = await axios.get(`https://servicodados.ibge.gov.br/api/v1/localidades/estados/${uf}/municipios`)\n return res.data\n})\n\nexport const searchPostalCode = createAsyncThunk('addOrganizations/searchPostalCode', async (cep, { dispatch }) => {\n if (cep) {\n const res = await axios.get(`https://viacep.com.br/ws/${cep}/json/`)\n const ibgeUf = res.data.ibge.length > 1 ? res.data.ibge?.substring(0, 2) : ''\n\n await dispatch(searchCities(ibgeUf))\n\n return res.data\n }\n\n return {\n ibge: '',\n logradouro: '',\n bairro: ''\n }\n})\n\nexport const submitOrganizations = createAsyncThunk(\n 'addOrganizations/submitOrganizations',\n async (data, { dispatch }) => {\n try {\n if (!data.cnpj) {\n showError('CNPJ não informado.')\n return\n }\n\n if (!data.corporate_name) {\n showError('Razão Social não informada.')\n return\n }\n\n if (!data.address) {\n showError('Endereço não informado.')\n return\n }\n\n if (!data.postal_code) {\n showError('CEP não informado.')\n return\n }\n\n if (!data.phone) {\n showError('Telefone não informado.')\n return\n }\n\n let res = undefined\n\n if (!data.id_organization) {\n return showError('Id organization não informado.')\n }\n\n res = await api.post(`organizations/update`, data)\n\n dispatch(showModal({ show: true, color: 'success', title: 'Sucesso', message: 'Registro salvo com sucesso' }))\n return res.data\n } catch (error) {\n console.error(error)\n }\n }\n)\n\nexport const listParentOrganizationsByType = createAsyncThunk(\n 'addOrganizations/listParentOrganizationsByType',\n async (type) => {\n const response = await api.post('organizations/list-parent-organizations-by-type', { type })\n\n if (response.data) {\n return response.data\n }\n }\n)\n\nexport const fetchChildren = createAsyncThunk('addOrganizations/fetchChildren', async (id_organization) => {\n const response = await api.post('organizations/find-children', { id_organization })\n if (response.data) {\n return response.data\n }\n\n return []\n})\n\nexport const fetchData = createAsyncThunk('addOrganizations/fetchData', async (id_organization, { dispatch }) => {\n dispatch(showLoading())\n const response = await api.post('organizations/find', { id_organization: parseInt(id_organization) })\n dispatch(hideLoading())\n\n if (response.data) {\n dispatch(searchCities(response.data.state_ibge))\n return response.data\n }\n\n return undefined\n})\n\nconst initialState = {\n id_organization: undefined,\n cities: [],\n organizations_children: [],\n listParentOrganizations: [],\n plans: [],\n plansInOrg: [],\n fields: {\n id_parent_organization: undefined,\n corporate_name: '',\n fantasy_name: '',\n situation: SituacaoOrganizacao.Ativo,\n type: TipoOrganizacao.Cliente,\n cnpj: '',\n state_registration: '',\n address: '',\n address_number: '',\n address_complement: '',\n district: '',\n postal_code: '',\n state_ibge: '11',\n city_ibge: '',\n email: '',\n phone: '',\n cellphone: '',\n plan_selected: '',\n city_name: '',\n state_name: '',\n business_structure: EstruturaNegocio.Matriz,\n is_demo: false,\n billing_day: null,\n valid_billing_day: true,\n disable_billing_day: false,\n token: '',\n user_responsible: '',\n segment: []\n }\n}\n\nexport const addOrganizagionsSlice = createSlice({\n name: 'addOrganizations',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n state.fields[action.payload.field] = action.payload.value\n },\n reset: () => initialState\n },\n extraReducers: (builder) => {\n builder\n .addCase(searchPostalCode.fulfilled, (state, action) => {\n state.fields.city_ibge = parseInt(action.payload.ibge)\n state.fields.state_ibge = action.payload.ibge.length > 1 ? action.payload.ibge?.substring(0, 2) : ''\n state.fields.address = action.payload.logradouro\n state.fields.district = action.payload.bairro\n state.fields.city_name = action.payload.localidade\n state.fields.state_name = action.payload.uf\n })\n .addCase(searchCities.fulfilled, (state, action) => {\n state.cities = action.payload\n })\n .addCase(fetchChildren.fulfilled, (state, action) => {\n state.organizations_children = action.payload\n })\n .addCase(fetchData.fulfilled, (state, action) => {\n state.id_organization = action.payload.id_organization\n state.fields = action.payload\n if (action.payload.billing_day !== null) {\n state.fields.disable_billing_day = true\n }\n state.fields.city_ibge = parseInt(action.payload.city_ibge)\n })\n .addCase(submitOrganizations.fulfilled, (state, action) => {\n if (action.payload?.id_organization) {\n state.fields.id_organization = action.payload.id_organization\n }\n })\n .addCase(listParentOrganizationsByType.fulfilled, (state, action) => {\n state.listParentOrganizations = action.payload\n })\n }\n})\n\nexport const { setFieldsValues, reset, resetFields } = addOrganizagionsSlice.actions\n\nexport default addOrganizagionsSlice.reducer\n","// ** Imports createContext function\nimport { createContext } from 'react'\n\n// ** Imports createContextualCan function\nimport { createContextualCan } from '@casl/react'\n\n// ** Create Context\nexport const AbilityContext = createContext()\n\n// ** Init Can Context\nexport const Can = createContextualCan(AbilityContext.Consumer)\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA8CAYAAADIQIzXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2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NzYPSbst89mdYGHoHJDjFrwDJwq8q6vyrjmmSoalLQH8BNT8ZtcTStoN0e6r4BPini+vK2AQMOQa/ACo+/uAnKuEke6v4GloPXDjEXwd5CBngtmG/nGDHzT4n5JW/nl9vgl8f5TVvWD0/1PzbRnU9LwRTb97DESVT+/hI8LJwcChq0NKJGwHUuR7iOo3E0jqJxNI7G0TgaR5VR8ZXDNHvJVSmbMJRRL2aZys9yvQfvio3rBp1gYowK5NJkvdGnZJI46vrBhpjX1afBTjFuGzjgUJFkE66BxRkx7mxM00SS+NwBPorbPYrKFoElGTBttoket3RVZz7GuC6n9gwY16GM+5cB1ua1fOXDtHeFNnuoe0Qbl4SH4JpqHFcsdd+TsI4bUMb1NfoCeNBO0C/AbxOlqEfLIJ/J5soxuyxIxAK4nuq3tNmDWW4Iyd7HZ5OAh5MD83+j11W5MWjP2xr3X913ObrjlcGtJv3S7uS3iHFvlMHPMmCc9t9vDItxXYpAuW/jQQaMk831E4q4/TLHyaNFW62BcbIjV8H2DGVFdtmF8KaY2ZGT4NRfAQYApZCBlWErMFcAAAAASUVORK5CYII=\"","// ** Redux Imports\nimport { createSlice } from '@reduxjs/toolkit'\n\nexport const titleSlice = createSlice({\n name: 'title',\n initialState: {\n title: ''\n },\n reducers: {\n setTitle: (state, action) => {\n if (action.payload === '') document.title = 'Plataforma'\n else document.title = `Plataforma | ${action.payload}`\n\n state.title = action.payload\n }\n }\n})\n\nexport const { setTitle } = titleSlice.actions\n\nexport default titleSlice.reducer\n","// ** Redux Imports\nimport { createSlice } from '@reduxjs/toolkit'\n\n// ** ThemeConfig Import\nimport themeConfig from '@configs/themeConfig'\n\nconst initialMenuCollapsed = () => {\n const item = window.localStorage.getItem('menuCollapsed')\n //** Parse stored json or if none return initialValue\n return item ? JSON.parse(item) : themeConfig.layout.menu.isCollapsed\n}\n\nconst initialDirection = () => {\n const item = window.localStorage.getItem('direction')\n //** Parse stored json or if none return initialValue\n return item ? JSON.parse(item) : themeConfig.layout.isRTL\n}\n\nconst initialSkin = () => {\n const item = window.localStorage.getItem('skin')\n //** Parse stored json or if none return initialValue\n return item ? JSON.parse(item) : themeConfig.layout.skin\n}\n\nexport const layoutSlice = createSlice({\n name: 'layout',\n initialState: {\n skin: initialSkin(),\n isRTL: initialDirection(),\n layout: themeConfig.layout.type,\n lastLayout: themeConfig.layout.type,\n menuCollapsed: initialMenuCollapsed(),\n footerType: themeConfig.layout.footer.type,\n navbarType: themeConfig.layout.navbar.type,\n menuHidden: themeConfig.layout.menu.isHidden,\n contentWidth: themeConfig.layout.contentWidth,\n navbarColor: themeConfig.layout.navbar.backgroundColor\n },\n reducers: {\n handleRTL: (state, action) => {\n state.isRTL = action.payload\n window.localStorage.setItem('direction', JSON.stringify(action.payload))\n },\n handleSkin: (state, action) => {\n state.skin = action.payload\n window.localStorage.setItem('skin', JSON.stringify(action.payload))\n },\n handleLayout: (state, action) => {\n state.layout = action.payload\n },\n handleFooterType: (state, action) => {\n state.footerType = action.payload\n },\n handleNavbarType: (state, action) => {\n state.navbarType = action.payload\n },\n handleMenuHidden: (state, action) => {\n state.menuHidden = action.payload\n },\n handleLastLayout: (state, action) => {\n state.lastLayout = action.payload\n },\n handleNavbarColor: (state, action) => {\n state.navbarColor = action.payload\n },\n handleContentWidth: (state, action) => {\n state.contentWidth = action.payload\n },\n handleMenuCollapsed: (state, action) => {\n state.menuCollapsed = action.payload\n window.localStorage.setItem('menuCollapsed', JSON.stringify(action.payload))\n }\n }\n})\n\nexport const {\n handleRTL,\n handleSkin,\n handleLayout,\n handleLastLayout,\n handleMenuHidden,\n handleNavbarType,\n handleFooterType,\n handleNavbarColor,\n handleContentWidth,\n handleMenuCollapsed\n} = layoutSlice.actions\n\nexport default layoutSlice.reducer\n","// ** Redux Imports\nimport { createSlice, createAsyncThunk } from '@reduxjs/toolkit'\n\nimport api from '@api'\n\nexport const fetchData = createAsyncThunk('listOrganization/fetchData', async (filter) => {\n const filterRegex = {\n ...filter,\n cnpj: filter.cnpj.replace(/[^\\d]/g, '')\n }\n const response = await api.post('organizations/find-children', filterRegex)\n if (response.data) {\n return response.data\n }\n\n return []\n})\nexport const fetchOrgOptions = createAsyncThunk('listOrganization/fetchOrgOptions', async (data) => {\n const response = await api.post('organizations/find-children', data)\n if (response.data) {\n return response.data\n }\n})\nexport const getOrganizationsByParent = createAsyncThunk('listOrganization/getOrganizationsByParent', async (data) => {\n const response = await api.post('organizations/get-organizations-by-parent', data)\n if (response.data) {\n return response.data\n }\n})\n\nexport const fetchOrganizationSelected = createAsyncThunk('listOrganization/fetchOrganization', async (data) => {\n const response = await api.post('organizations/find', data)\n if (response.data) {\n return response.data\n }\n})\n\nexport const listOrganizagionsSlice = createSlice({\n name: 'listOrganization',\n initialState: {\n ParentInClientCenter: null,\n filter: {\n id_organization: undefined,\n situation: '',\n name: '',\n cnpj: '',\n type: ''\n },\n organization_selected: undefined,\n organization_options: [],\n records: [],\n onFocus: null,\n cancellation: {\n cancellationSelectedOrganization: undefined,\n cancellationSelectedApp: undefined,\n cancellationOrgs: [],\n cancellationApps: [],\n reason: ''\n }\n },\n reducers: {\n setFieldsValues: (state, action) => {\n state.filter[action.payload.field] = action.payload.value\n },\n\n setOnFocus: (state, action) => {\n state.onFocus = action.payload\n },\n setOrganizationSelected: (state, action) => {\n state.organization_selected = action.payload\n },\n setCancellationValues: (state, action) => {\n state.cancellation[action.payload.field] = action.payload.value\n },\n setParentInClientCenter: (state, action) => {\n state.ParentInClientCenter = action.payload\n }\n },\n extraReducers: (builder) => {\n builder.addCase(fetchData.fulfilled, (state, action) => {\n state.records = action.payload\n state.filter = {\n situation: '',\n name: '',\n cnpj: '',\n type: ''\n }\n\n state.filter.name = ''\n })\n builder.addCase(fetchOrgOptions.fulfilled, (state, action) => {\n state.organization_options = action.payload\n })\n builder.addCase(fetchOrganizationSelected.fulfilled, (state, action) => {\n state.organization_selected = action.payload\n })\n builder.addCase(getOrganizationsByParent.fulfilled, (state, action) => {\n state.cancellation.cancellationOrgs = action.payload\n })\n }\n})\n\nexport const { setFieldsValues, setOrganizationSelected, setOnFocus, setCancellationValues, setParentInClientCenter } =\n listOrganizagionsSlice.actions\n\nexport default listOrganizagionsSlice.reducer\n","// ** Redux Imports\nimport { createSlice, createAsyncThunk } from '@reduxjs/toolkit'\n\nimport cookie from 'cookie'\n\nimport api from '@api'\n\nexport const fetchLogin = createAsyncThunk('user/fetchLogin', async (user) => {\n const res = await api.post('auth/signin', user)\n return res.data\n})\n\nexport const fetchPermissions = createAsyncThunk('user/fetchPermissions', async (email) => {\n const res = await api.post('roles_permissions/get-permissions', email)\n return res.data\n})\n\nexport const fetchMainOrganization = createAsyncThunk('user/fetchMainOrganization', async (email) => {\n const res = await api.post('users-organizations/get-main-organization-by-user', { email })\n\n return res.data?.organizations\n})\n\nconst initialUser = () => {\n const user = window.localStorage.getItem('user')\n //** Parse stored json or if none return initialValue\n return user ? JSON.parse(user) : undefined\n}\n\nconst initialMainOrganization = () => {\n const organization = window.localStorage.getItem('main_organization')\n //** Parse stored json or if none return initialValue\n return organization ? JSON.parse(organization) : {}\n}\nconst initialPermissions = () => {\n const permissions = window.localStorage.getItem('permissions')\n //** Parse stored json or if none return initialValue\n return permissions ? JSON.parse(permissions) : {}\n}\nconst initialMenuItems = () => {\n const permissions = window.localStorage.getItem('permissions')\n //** Parse stored json or if none return initialValue\n return permissions ? JSON.parse(permissions) : {}\n}\n\nexport const userSlice = createSlice({\n name: 'user',\n initialState: {\n user: initialUser(),\n main_organization: initialMainOrganization(),\n permissions: initialPermissions(),\n permissions: initialMenuItems()\n },\n reducers: {\n setOrganization: (state, action) => {\n state.main_organization = action.payload\n },\n setUser: (state, action) => {\n state.user = action.payload\n },\n setPermissions: (state, action) => {\n state.permissions = action.payload\n },\n setMenuItems: (state, action) => {\n state.menuItems = action.payload\n },\n logout: (state) => {\n state.user = undefined\n state.organization = undefined\n state.permissions = undefined\n\n localStorage.removeItem('user')\n localStorage.removeItem('main_organization')\n localStorage.removeItem('permissions')\n\n document.cookie = cookie.serialize('shared_user', '', {\n path: '/',\n maxAge: 60 * 60 * 24 * 31,\n domain: process.env.NODE_ENV === 'development' ? undefined : '.modershop.com.br'\n })\n\n document.cookie = cookie.serialize('profile', '', {\n path: '/',\n maxAge: 60 * 60 * 24 * 31,\n domain: process.env.NODE_ENV === 'development' ? undefined : '.modershop.com.br'\n })\n },\n login: (state, action) => {\n state.user = action.payload\n if (action.payload) {\n localStorage.setItem('user', JSON.stringify(action.payload))\n }\n\n state.main_organization = action.payload.main_organization\n if (action.payload.main_organization) {\n localStorage.setItem('main_organization', JSON.stringify(action.payload.main_organization))\n }\n\n state.permissions = action.payload.permissions\n if (action.payload.permissions) {\n localStorage.setItem('permissions', JSON.stringify(action.payload.permissions))\n }\n }\n },\n extraReducers: (builder) => {\n builder\n .addCase(fetchLogin.fulfilled, (state, action) => {\n localStorage.setItem('user', JSON.stringify(action.payload))\n localStorage.setItem('permissions', JSON.stringify(action.payload))\n state.user = action.payload\n })\n .addCase(fetchPermissions.fulfilled, (action) => {\n localStorage.setItem('permissions', JSON.stringify(action.payload))\n })\n .addCase(fetchMainOrganization.fulfilled, (state, action) => {\n if (action.payload) {\n localStorage.setItem('main_organization', JSON.stringify(action.payload))\n state.main_organization = action.payload\n }\n })\n }\n})\n\nexport const { setUser, setOrganization, setPermissions, login, logout, setMenuItems } = userSlice.actions\n\nexport default userSlice.reducer\n","import { createSlice } from '@reduxjs/toolkit'\n\nconst initialState = {\n isVisible: false,\n title: '',\n component: undefined,\n open: false\n}\n\nconst mdzSidebarSlice = createSlice({\n name: 'mdzSidebar',\n initialState,\n reducers: {\n showMdzSidebar: (state) => {\n state.isVisible = true\n },\n hideMdzSidebar: (state) => {\n state.isVisible = false\n },\n setMdzSidebar: (state, action) => {\n state.isVisible = action.payload.isVisible\n state.title = action.payload.title\n state.component = action.payload.component\n state.open = action.payload.open\n },\n handleOpenMdzSidebar: (state) => {\n state.open = !state.open\n }\n }\n})\n\nexport const { showMdzSidebar, hideMdzSidebar, setMdzSidebar, handleOpenMdzSidebar } = mdzSidebarSlice.actions\n\nexport default mdzSidebarSlice.reducer","import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'\nimport { EstruturaNegocio } from 'mdz-enum'\nimport { mdzNormalize } from '../../../@core/components/mdzStringNormalizer'\nimport axios from 'axios'\nimport api from '@api'\nimport { showError } from '../../../moderniza/toast'\n\nexport const verifyCnpj = createAsyncThunk('organizations/verifyCnpj', async ({ cnpj, callback }) => {\n const normalizedCnpj = cnpj.replace(/\\D/g, '')\n const response = await api.post('organizations/verify-cnpj', { cnpj: normalizedCnpj })\n\n if (response.status === 200) {\n if (response.data) {\n return null\n } else {\n callback()\n }\n }\n\n return response\n})\n\nexport const handleRegisterClient = createAsyncThunk('organizations/registerClient', async ({ fields, callback }) => {\n const response = await api.post(`organizations/register-client`, fields)\n\n if (response.status === 200) {\n callback()\n return response.data\n }\n})\n\nexport const verifyNoExistCnpj = createAsyncThunk('organizations/findByCnpj', async ({ cnpj, callback }) => {\n const response = await api.post('organizations/find-by-cnpj', { cnpj })\n if (response.data === '') {\n showError('O cnpj informado não foi encontrado no sistema..')\n } else {\n callback()\n }\n\n return response\n})\n\nexport const getPublicData = createAsyncThunk('signup/getPublicData', async (cnpj) => {\n const normalizedCnpj = cnpj.replace(/\\D/g, '')\n\n const response = await axios.get(`https://brasilapi.com.br/api/cnpj/v1/${normalizedCnpj}`)\n\n if (response.status === 200) {\n if (response.data) {\n const result = {\n cnpj: response.data.cnpj,\n nomeCorporativo: mdzNormalize.name(response.data.razao_social),\n nomeFantasia: mdzNormalize.name(\n response.data.nome_fantasia ? response.data.nome_fantasia : response.data.razao_social\n ),\n email: response.data.email ? response.data.email : '',\n telefone: response.data.ddd_telefone_1,\n celular: response.data.ddd_telefone_2,\n cidade: mdzNormalize.name(response.data.municipio),\n uf: response.data.uf,\n endereco: mdzNormalize.name(response.data.logradouro),\n numero: response.data.numero,\n bairro: mdzNormalize.name(response.data.bairro),\n cep: response.data.cep,\n complemento: mdzNormalize.name(response.data.complemento),\n estado_ibge: response.data.codigo_municipio_ibge?.toString().substring(0, 2),\n cidade_ibge: response.data.codigo_municipio_ibge\n }\n\n return result\n }\n }\n\n return null\n})\n\nconst initialState = {\n matrizOuFilial: EstruturaNegocio.Matriz,\n cnpjMatrizPai: '',\n cnpjMatrizIsValid: false,\n listApps: null,\n nomeCorporativo: '',\n nomeFantasia: '',\n email: '',\n telefone: '',\n celular: '',\n cidade: '',\n uf: '',\n endereco: '',\n numero: '',\n bairro: '',\n cep: '',\n complemento: '',\n estado_ibge: '',\n cidade_ibge: '',\n cnpj: '',\n cnpjIsValid: false,\n termosAceito: false,\n nomeUsuario: '',\n emailUsuario: '',\n senhaUsuario: '',\n confirmarSenhaUsuario: '',\n matrizOuFilialIsDisabled: true,\n DadosDaFilialIsDisabled: false,\n CadastroDeUsuarioIsDisabled: false,\n SelecaoDeAplicativosIsDisabled: false,\n quantityClientsPartnerBase: 0,\n quantityClientsMigrated: 0,\n segment: [],\n id_organization_created: null\n}\n\nexport const stepByStepUserRegister = createSlice({\n name: 'StepByStepUserRegister',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n state[action.payload.field] = action.payload.value\n },\n reset: () => initialState\n },\n extraReducers: (builder) => {\n builder.addCase(getPublicData.fulfilled, (state, action) => {\n state.nomeCorporativo = action.payload.nomeCorporativo\n state.nomeFantasia = action.payload.nomeFantasia\n state.email = action.payload.email\n state.telefone = action.payload.telefone\n state.celular = action.payload.celular\n state.cidade = action.payload.cidade\n state.uf = action.payload.uf\n state.endereco = action.payload.endereco\n state.numero = action.payload.numero\n state.bairro = action.payload.bairro\n state.cep = action.payload.cep\n state.complemento = action.payload.complemento\n state.estado_ibge = action.payload.estado_ibge\n state.cidade_ibge = action.payload.cidade_ibge\n })\n builder.addCase(handleRegisterClient.fulfilled, (state, action) => {\n state.id_organization_created = action.payload.id_organization\n })\n builder.addCase(verifyNoExistCnpj.fulfilled, (state) => {\n state.cnpjMatrizIsValid = true\n })\n builder.addCase(verifyCnpj.fulfilled, (state) => {\n state.cnpjIsValid = true\n })\n }\n})\n\nexport const { setFieldsValues, reset } = stepByStepUserRegister.actions\n\nexport default stepByStepUserRegister.reducer\n","import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'\nimport { mdzNormalize } from '../../../@core/components/mdzStringNormalizer'\nimport axios from 'axios'\nimport api from '@api'\n\nexport const verifyCnpj = createAsyncThunk('organizations/verifyCnpj', async ({ cnpj, callback }) => {\n const normalizedCnpj = cnpj.replace(/\\D/g, '')\n const response = await api.post('organizations/verify-cnpj', { cnpj: normalizedCnpj })\n\n if (response.status === 200) {\n if (response.data) {\n return null\n } else {\n callback()\n }\n }\n\n return response\n})\n\nexport const verifyNoExistCnpj = createAsyncThunk('organizations/verifyNoExistCnpj', async ({ cnpj }) => {\n const normalizedCnpj = cnpj.replace(/\\D/g, '')\n const response = await api.post('organizations/verify-no-exist-cnpj', { cnpj: normalizedCnpj })\n\n return response\n})\n\nexport const getPublicData = createAsyncThunk('signup/getPublicData', async (cnpj) => {\n const normalizedCnpj = cnpj.replace(/\\D/g, '')\n\n try {\n const response = await axios.get(`https://brasilapi.com.br/api/cnpj/v1/${normalizedCnpj}`)\n if (response.data) {\n const result = {\n cnpj: response.data.cnpj,\n nomeCorporativo: mdzNormalize.name(response.data.razao_social),\n nomeFantasia: mdzNormalize.name(\n response.data.nome_fantasia ? response.data.nome_fantasia : response.data.razao_social\n ),\n email: response.data.email ? response.data.email : '',\n telefone: response.data.ddd_telefone_1,\n celular: response.data.ddd_telefone_2,\n cidade: mdzNormalize.name(response.data.municipio),\n uf: response.data.uf,\n endereco: mdzNormalize.name(response.data.logradouro),\n numero: response.data.numero,\n bairro: mdzNormalize.name(response.data.bairro),\n cep: response.data.cep,\n complemento: mdzNormalize.name(response.data.complemento),\n estado_ibge: response.data.codigo_municipio_ibge?.toString().substring(0, 2),\n cidade_ibge: response.data.codigo_municipio_ibge\n }\n\n return result\n }\n } catch (error) {\n throw error\n }\n})\n\nexport const handleRegisterPartner = createAsyncThunk('organizations/registerPartner', async ({ fields, callback }) => {\n const response = await api.post(`organizations/register-partner`, fields)\n\n if (response.status === 200) {\n callback()\n return response.data\n }\n})\n\nconst initialState = {\n isDemo: false,\n quantityClientsPartnerBase: 0,\n quantityClientsMigrated: 0,\n segment: [],\n cnpjParentOrganization: '',\n cnpj: '',\n nomeCorporativo: '',\n nomeFantasia: '',\n ie: '',\n email: '',\n\n cnpjIsValid: false,\n cnpjMatrizIsValid: false,\n\n cep: '',\n cidade: '',\n uf: '',\n endereco: '',\n numero: '',\n bairro: '',\n complemento: '',\n telefone: '',\n celular: '',\n estado_ibge: '',\n cidade_ibge: '',\n termosAceito: false,\n\n nomeUsuario: '',\n emailUsuario: '',\n senhaUsuario: '',\n confirmarSenhaUsuario: '',\n\n DadosDaFilialIsDisabled: true,\n CadastroDeUsuarioIsDisabled: false,\n SelecaoDeAplicativosIsDisabled: false,\n id_organization_created: null\n}\n\nexport const registerPartner = createSlice({\n name: 'registerPartner',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n state[action.payload.field] = action.payload.value\n },\n reset: () => initialState\n },\n extraReducers: (builder) => {\n builder.addCase(getPublicData.fulfilled, (state, action) => {\n state.nomeCorporativo = action.payload.nomeCorporativo\n state.nomeFantasia = action.payload.nomeFantasia\n state.email = action.payload.email\n state.telefone = action.payload.telefone\n state.celular = action.payload.celular\n state.cidade = action.payload.cidade\n state.uf = action.payload.uf\n state.endereco = action.payload.endereco\n state.numero = action.payload.numero\n state.bairro = action.payload.bairro\n state.cep = action.payload.cep\n state.complemento = action.payload.complemento\n state.estado_ibge = action.payload.estado_ibge\n state.cidade_ibge = action.payload.cidade_ibge\n })\n builder.addCase(verifyNoExistCnpj.fulfilled, (state) => {\n state.cnpjMatrizIsValid = true\n })\n builder.addCase(handleRegisterPartner.fulfilled, (state, action) => {\n state.id_organization_created = action.payload.id_organization\n })\n builder.addCase(verifyCnpj.fulfilled, (state) => {\n state.cnpjIsValid = true\n })\n }\n})\n\nexport const { reset, setFieldsValues } = registerPartner.actions\n\nexport default registerPartner.reducer\n","import { createSlice, createAsyncThunk } from '@reduxjs/toolkit'\nimport { showError } from '../../../moderniza/toast'\nimport api from '@api'\nimport axios from 'axios'\n\nimport { searchCities } from '../../organizations/store/add'\nimport { mdzNormalize } from '../../../@core/components/mdzStringNormalizer'\n\nexport const searchPostalCode = createAsyncThunk('addOrganizations/searchPostalCode', async (cep, { dispatch }) => {\n const cepRegex = /^[0-9]{5}-?[0-9]{3}$/\n\n if (cepRegex.test(cep) === true) {\n const res = await axios.get(`https://viacep.com.br/ws/${cep}/json/`)\n\n const ibgeUf = res.data.ibge.length > 1 ? res.data.ibge?.substring(0, 2) : ''\n\n await dispatch(searchCities(ibgeUf))\n\n return res.data\n }\n\n return {\n ibge: '',\n logradouro: '',\n bairro: ''\n }\n})\n\nexport const signup = createAsyncThunk('signup/register', async ({ data, callBackRedirect }, { dispatch }) => {\n const stringifyData = JSON.stringify({ name: data.name, email: data.email })\n\n const user = localStorage.getItem('user')\n if (!user) {\n const response = await api.post('auth/register', {\n ...data\n })\n return response.data\n }\n\n localStorage.setItem('user_temp', stringifyData)\n const response = await api.post('auth/register', {\n ...data\n })\n\n if (response.data) {\n dispatch(reset())\n if (callBackRedirect) {\n callBackRedirect()\n }\n\n return response.data\n }\n\n return response.data\n})\n\nexport const validateData = createAsyncThunk('signup/validateData', async (cnpj) => {\n const normalizedCnpj = cnpj.replace(/\\D/g, '')\n\n return await axios\n .get(`https://brasilapi.com.br/api/cnpj/v1/${normalizedCnpj}`)\n .then((response) => {\n if (response.data) {\n return {\n cnpj: response.data.cnpj,\n corporate_name: mdzNormalize.name(response.data.razao_social),\n fantasy_name: mdzNormalize.name(\n response.data.nome_fantasia ? response.data.nome_fantasia : response.data.razao_social\n ),\n address: mdzNormalize.name(response.data.logradouro),\n address_number: response.data.numero,\n address_complement: mdzNormalize.name(response.data.complemento),\n district: mdzNormalize.name(response.data.bairro),\n postal_code: response.data.cep,\n state_ibge: response.data.codigo_municipio_ibge?.toString().substring(0, 2),\n city_ibge: response.data.codigo_municipio_ibge,\n email: response.data.email ? response.data.email : '',\n phone: response.data.ddd_telefone_1,\n cellphone: response.data.ddd_telefone_2,\n state_name: response.data.uf,\n city_name: mdzNormalize.name(response.data.municipio)\n }\n }\n })\n .catch(() => {\n showError('CNPJ Inválido')\n return 'CNPJ Invalido'\n })\n})\n\nexport const confirmRegistration = createAsyncThunk('signup/confirmRegistration', async ({ fields, callback }) => {\n api\n .post('auth/validate-code', {\n email: fields.email,\n code: fields.verification_code\n })\n .then((response) => {\n if (response.data.statusCode === 200) {\n callback()\n } else {\n showError(response.data.message)\n }\n })\n})\n\nexport const resendCode = createAsyncThunk('signup/resendCode', async (fields) => {\n const response = await api.post('auth/resend-code', {\n email: fields.email\n })\n\n return response.data\n})\n\nconst initialState = {\n step: 1,\n name: '',\n email: '',\n password: '',\n confirm_password: '',\n verification_code: '',\n validation_data: {\n cnpj: '',\n corporate_name: '',\n fantasy_name: '',\n address: '',\n address_number: '',\n address_complement: '',\n district: '',\n postal_code: '',\n state_ibge: '',\n city_ibge: '',\n email: '',\n phone: '',\n cellphone: '',\n state_name: '',\n city_name: '',\n id_head_office_organization: null\n },\n checking: false\n}\n\nexport const signupSlice = createSlice({\n name: 'signup',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n state[action.payload.field] = action.payload.value\n },\n setValidationValues: (state, action) => {\n state.validation_data[action.payload.field] = action.payload.value\n },\n setStep: (state, action) => {\n state.step = action.payload\n },\n resetChecking: (state) => {\n state.checking = false\n },\n reset: () => initialState\n },\n extraReducers: (builder) => {\n builder.addCase(signup.fulfilled, (state, action) => {\n if (action.payload.statusCode === 201) {\n state.step = 2\n }\n\n //nesse caso o e-mail já existe\n if (action.payload.response?.code === 'UsernameExistsException') {\n state.step = 2\n }\n })\n builder.addCase(validateData.fulfilled, (state, action) => {\n if (action.payload === 'CNPJ Invalido') {\n state.checking = false\n } else {\n state.validation_data = action.payload\n state.validation_data.id_head_office_organization = null\n state.checking = true\n }\n })\n builder.addCase(searchPostalCode.fulfilled, (state, action) => {\n state.validation_data.district = action.payload.bairro\n state.validation_data.address_complement = action.payload.complemento\n state.validation_data.city_name = action.payload.localidade\n state.validation_data.city_ibge = action.payload.ibge\n state.validation_data.address = action.payload.logradouro\n })\n }\n})\n\nexport const { setFieldsValues, resetChecking, setValidationValues, setStep, reset } = signupSlice.actions\n\nexport default signupSlice.reducer\n","import { createSlice } from '@reduxjs/toolkit'\n\nconst initialState = {\n initialDate: undefined,\n finalDate: undefined,\n idOrganization: undefined,\n business: [],\n segments: [],\n handleFilter: new Date(),\n directCustomers: false\n}\n\nexport const dashboardSlice = createSlice({\n name: 'dashboard',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n if (action.payload.field === 'business') {\n state.business = action.payload.value.map((e) => e.value)\n } else if (action.payload.field === 'segments') {\n state.segments = action.payload.value.map((e) => e.value)\n } else if (action.payload.field === 'directCustomers') {\n state.directCustomers = action.payload.value\n if (action.payload.value === true) {\n state.idOrganization = 5\n } else {\n state.idOrganization = undefined\n }\n } else {\n state[action.payload.field] = action.payload.value\n }\n },\n onHandleFilter: (state) => {\n state.handleFilter = new Date()\n },\n resetFilter: (state) => {\n state.initialDate = undefined\n state.finalDate = undefined\n state.idOrganization = undefined\n state.business = []\n state.segments = []\n state.handleFilter = new Date()\n state.directCustomers = false\n }\n }\n})\n\nexport const { setFieldsValues, resetFilter, onHandleFilter } = dashboardSlice.actions\n\nexport default dashboardSlice.reducer\n","import axios from 'axios'\nimport { showError } from '../moderniza/toast'\nimport { URL_API_PLATFORM, URL_NOT_AUTHORIZED } from './endpoints'\n\nconst api = axios.create({\n baseURL: URL_API_PLATFORM,\n withCredentials: true,\n headers: { 'Content-Type': 'application/json' }\n})\n\napi.interceptors.response.use(\n (response) => {\n return response\n },\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n window.location.href = URL_NOT_AUTHORIZED\n }\n\n if (error.response.status === 400 || error.response.status === 500) {\n showError(error.response.data.complement)\n }\n\n if (error.response.data) {\n return Promise.reject(error.response.data)\n }\n }\n return Promise.reject(error.message)\n }\n)\n\nexport default api\n","import { createSlice, createAsyncThunk } from '@reduxjs/toolkit'\nimport api from '@api'\nexport const register = createAsyncThunk('registerOrganization/register', async (data) => {\n const user_temp = JSON.parse(localStorage.getItem('user_temp'))\n const user = JSON.parse(localStorage.getItem('user'))\n\n const response = await api.post('register-organization/register', {\n data: data.validation,\n isModerShopActive: data.isModerShopActive,\n user: user_temp ? { ...user, email: user_temp.email } : { email: null }\n })\n\n if (response.status === 200) {\n data.callback(response.data.id_organization)\n localStorage.removeItem('user_temp')\n }\n\n return response.data\n})\n\nconst initialState = {\n id_organization_created: '',\n cnpj: '',\n activate_modershop: false\n}\n\nexport const registerOrganizationSlice = createSlice({\n name: 'registerOrganization',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n state[action.payload.field] = action.payload.value\n },\n activateModershop: (state, action) => {\n state.activate_modershop = action.payload.value\n },\n reset: () => initialState\n },\n extraReducers: (builder) => {\n builder.addCase(register.fulfilled, (state, action) => {\n state.id_organization_created = action.payload.id_organization\n })\n }\n})\n\nexport const { setFieldsValues, activateModershop } = registerOrganizationSlice.actions\n\nexport default registerOrganizationSlice.reducer\n","// ** Redux Imports\nimport { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\"\n\n// ** Axios Imports\nimport axios from \"axios\"\n\nexport const getBookmarks = createAsyncThunk(\n \"layout/getBookmarks\",\n async () => {\n const response = await axios.get(\"/api/bookmarks/data\")\n return {\n data: response.data.suggestions,\n bookmarks: response.data.bookmarks\n }\n }\n)\n\nexport const updateBookmarked = createAsyncThunk(\n \"layout/updateBookmarked\",\n async (id) => {\n await axios.post(\"/api/bookmarks/update\", { id })\n return id\n }\n)\n\nexport const layoutSlice = createSlice({\n name: \"layout\",\n initialState: {\n query: \"\",\n bookmarks: [],\n suggestions: []\n },\n reducers: {\n handleSearchQuery: (state, action) => {\n state.query = action.payload\n }\n },\n extraReducers: (builder) => {\n builder\n .addCase(getBookmarks.fulfilled, (state, action) => {\n state.suggestions = action.payload.data\n state.bookmarks = action.payload.bookmarks\n })\n .addCase(updateBookmarked.fulfilled, (state, action) => {\n let objectToUpdate\n\n // ** find & update object\n state.suggestions.find((item) => {\n if (item.id === action.payload) {\n item.isBookmarked = !item.isBookmarked\n objectToUpdate = item\n }\n })\n\n // ** Get index to add or remove bookmark from array\n const bookmarkIndex = state.bookmarks.findIndex(\n (x) => x.id === action.payload\n )\n\n if (bookmarkIndex === -1) {\n state.bookmarks.push(objectToUpdate)\n } else {\n state.bookmarks.splice(bookmarkIndex, 1)\n }\n })\n }\n})\n\nexport const { handleSearchQuery } = layoutSlice.actions\n\nexport default layoutSlice.reducer\n","// ** Redux Imports\nimport { createSlice } from '@reduxjs/toolkit'\n\nexport const loadingSlice = createSlice({\n name: 'showLoadingModal',\n initialState: {\n show: undefined\n },\n reducers: {\n showLoadingModal: (state, action) => {\n state.show = action.payload.show\n }\n }\n})\n\nexport const { showLoadingModal } = loadingSlice.actions\n\nexport default loadingSlice.reducer\n","import axios from 'axios'\n\nimport { showError } from '../moderniza/toast'\nimport { URL_API_FINANCE, URL_LOGIN } from './endpoints'\n\nconst apiFinance = axios.create({\n baseURL: URL_API_FINANCE,\n withCredentials: true,\n headers: { 'Content-Type': 'application/json' }\n})\n\napiFinance.interceptors.response.use(\n (response) => {\n return response\n },\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n window.location.href = URL_LOGIN\n }\n\n if (error.response.status === 400 || error.response.status === 500) {\n showError(error.response.data.error)\n }\n\n if (error.response.data) {\n return Promise.reject(error.response.data)\n }\n }\n return Promise.reject(error.message)\n }\n)\n\nexport default apiFinance\n","import axios from 'axios'\n\nimport { showError } from '../moderniza/toast'\nimport { URL_API_COMERCIAL, URL_LOGIN } from './endpoints'\n\nconst apiComercial = axios.create({\n baseURL: URL_API_COMERCIAL,\n withCredentials: true,\n headers: { 'Content-Type': 'application/json' }\n})\n\napiComercial.interceptors.response.use(\n (response) => {\n return response\n },\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n window.location.href = URL_LOGIN\n }\n\n if (error.response.status === 400 || error.response.status === 500) {\n showError(error.response.data.error)\n }\n\n if (error.response.data) {\n return Promise.reject(error.response.data)\n }\n }\n return Promise.reject(error.message)\n }\n)\n\nexport default apiComercial\n","const ECOMMERCE_URL = process.env.NODE_ENV === 'development' ? 'http://localhost:3009' : 'https://modershop.com.br'\nconst Authorization = 'Bearer asdoi2*&T%&64!#r'\n\n/**\n * Checa o DNS de um marketplace\n * @param {string} slug Slug do marketplace\n * @param {string} sufix Sufixo do domínio\n * @returns {Promise}\n */\nasync function CheckDNS(slug, sufix) {\n const url = `${ECOMMERCE_URL}/api-hooks/dns?slug=${slug}&sufix=${sufix}`\n const controller = new AbortController()\n\n //* 30 segundos de timeout\n const timeoutId = setTimeout(() => controller.abort(), 30000)\n\n const request = fetch(url, {\n signal: controller.signal,\n method: 'GET',\n headers: {\n Authorization\n }\n })\n .then(async (response) => {\n clearTimeout(timeoutId)\n const json = await response.json()\n return {\n content: json,\n status: response.status\n }\n })\n .then((data) => {\n return {\n content: data,\n success: data.status === 200,\n description: data.status === 200 ? 'Recuperado com sucesso' : 'Falha ao recuperar'\n }\n })\n .catch((e) => {\n return {\n error: e.message,\n success: false,\n description: 'Erro na api ecommerce',\n content: []\n }\n })\n\n return request\n}\n\n/**\n * Muda o tema de um marketplace\n * @param {string} slug Slug do marketplace\n * @returns {Promise}\n */\nasync function ChangeTheme(slug) {\n const url = `${ECOMMERCE_URL}/api-hooks/theme?slug=${slug}`\n const controller = new AbortController()\n\n //* 1 minuto de timeout\n const timeoutId = setTimeout(() => controller.abort(), 60000)\n\n const request = fetch(url, {\n signal: controller.signal,\n method: 'GET',\n headers: {\n Authorization\n }\n })\n .then(async (response) => {\n clearTimeout(timeoutId)\n const json = await response.json()\n return {\n content: json,\n status: response.status\n }\n })\n .then((data) => {\n return {\n content: data,\n success: data.status === 200,\n description: data.status === 200 ? 'Recuperado com sucesso' : 'Falha ao recuperar'\n }\n })\n .catch((e) => {\n return {\n error: e.message,\n success: false,\n description: 'Erro na api ecommerce',\n content: []\n }\n })\n\n return request\n}\n\nexport { CheckDNS, ChangeTheme }\n","// ** Redux Imports\nimport { createSlice, createAsyncThunk } from '@reduxjs/toolkit'\n\nimport { Situacao, TipoLogos, StyleTypeLogos } from 'mdz-enum'\n\nimport { uploadImageAws } from '@services/upload'\nimport { showSuccess } from '@moderniza/toast'\nimport apiFinance from '../../../services/api_finance'\nimport apiComercial from '../../../services/api_comercial'\nimport api from '@api'\nimport toast from 'react-hot-toast'\nimport { ChangeTheme, CheckDNS } from '../../../services/api_ecommerce'\n\nexport const fetchMarketplace = createAsyncThunk('marketplaces/fetchMarketplace', async (data) => {\n const response = await api.post('marketplaces/find-by-organization', data)\n\n if (response.data) {\n return response?.data?.marketplace || null\n }\n\n return undefined\n})\n\nexport const fetchPayments = createAsyncThunk('marketplaces/fetchPayments', async (id_organization) => {\n const response = await apiFinance.post('bank_account/find_by_organization', {\n id_organization: Number(id_organization),\n filter: {\n is_moderbank: true\n }\n })\n\n if (response.data) {\n return response.data.records\n }\n\n return undefined\n})\n\nexport const createModerbank = createAsyncThunk('marketplaces/createmoderbank', async (data) => {\n const response = await api.post('moderbank/create', data)\n if (response.data) {\n showSuccess('Método de pagamento inserido com sucesso!')\n\n return response.data\n }\n\n return response\n})\n\nexport const updateModerbank = createAsyncThunk('marketplaces/updateModerbank', async (data) => {\n const response = await api.post('moderbank/update', {\n ...data,\n where: { id_bank_account: data.id_bank_account }\n })\n if (response.data) {\n showSuccess('Método de pagamento alterado com sucesso!')\n\n return response.data\n }\n\n return response\n})\n\nexport const findModerbank = createAsyncThunk('marketplaces/findModerbank', async (data) => {\n const response = await api.post('moderbank/find', data)\n if (response.data) {\n return response.data\n }\n})\n\nexport const findModerbankById = createAsyncThunk('marketplaces/findModerbankById', async (data) => {\n const response = await api.post('moderbank/find-by-id', data)\n if (response.data) {\n return response.data\n }\n})\n\nexport const findPrivacy = createAsyncThunk('marketplaces/findPrivacy', async (data) => {\n const response = await api.post('marketplaces/find-privacy', data)\n if (response.data) {\n return response.data\n }\n})\n\nexport const submitTerms = createAsyncThunk('marketplaces/submitTerms', async (data) => {\n const response = await api.post('marketplaces/update-privacy', data)\n\n if (response.data) {\n showSuccess('Salvo')\n return response.data\n }\n})\n\nexport const submitPolicy = createAsyncThunk('marketplaces/submitPolicy', async (data) => {\n const response = await api.post('marketplaces/update-privacy', data)\n\n if (response.data) {\n showSuccess('Salvo')\n return response.data\n }\n})\n\nexport const fetchTuoBank = createAsyncThunk('marketplaces/fatchTuoBank', async (id_organization) => {\n const response = await api.post('tuo-bank/find-by-organization', { id_organization })\n\n if (response.data) {\n return response.data\n }\n\n return undefined\n})\n\nexport const saveTuoBank = createAsyncThunk('marketplaces/saveTuoBank', async (fields) => {\n const response = await api.post('tuo-bank/save', fields)\n\n if (response.data) {\n return response.data\n }\n\n return undefined\n})\n\nexport const createSafeTwoPay = createAsyncThunk('marketplaces/safeTwoPay', async (fields) => {\n let response\n\n if (fields.id_safe_two_pay) {\n response = await api.post('safe_two-pay/update', fields)\n } else {\n response = await api.post('safe_two-pay/create', fields)\n }\n\n if (response.data) {\n return response.data\n } else {\n return undefined\n }\n})\n\nexport const resetSafeTwoPay = createAsyncThunk('marketplaces/safeTwoPay', async (fields) => {\n const response = await api.post('safe_two-pay/reset', fields)\n if (response.data) {\n return response.data\n } else {\n return undefined\n }\n})\n\nexport const fetchSafeTwoPay = createAsyncThunk('marketplaces/fetchSafeTwoPay', async (id_organization) => {\n const response = await api.post('safe_two-pay/find-by-organization', { id_organization })\n\n if (response.data) {\n return response.data\n }\n\n return undefined\n})\n\nexport const fetchFrenet = createAsyncThunk('marketplaces/fetchFrenet', async (id_organization) => {\n const response = await api.post('frenet/find-by-organization', { id_organization })\n\n if (response.data) {\n return response.data\n }\n\n return undefined\n})\n\nexport const saveFrenet = createAsyncThunk('marketplaces/saveFrenet', async (fields) => {\n const response = await api.post('frenet/save', fields)\n\n if (response.data) {\n return response.data\n }\n\n return undefined\n})\n\nexport const fetchMelhorEnvio = createAsyncThunk('marketplaces/MelhorEnvio', async (id_organization) => {\n const response = await api.post('melhor_envio/find-by-organization', { id_organization })\n if (response.data) {\n return response.data\n }\n return undefined\n})\nexport const saveMelhorEnvio = createAsyncThunk('marketplaces/saveMelhorEnvio', async (fields) => {\n const response = await api.post('melhor_envio/save', fields)\n if (response.data) {\n return response.data\n }\n return undefined\n})\n\nexport const saveLogo = createAsyncThunk('marketplaces/saveLogo', async (data, { dispatch }) => {\n if (data.template_value?.length > 0) {\n const resUpload = await uploadImageAws(\n data.id_marketplace,\n 'image/png',\n `${data.id_marketplace}/marketplace/logo`,\n data.template_value\n )\n\n if (resUpload.data.success === true) {\n await api.post('marketplaces/update-marketplaceTemplate', {\n id_marketplace: data.id_marketplace,\n template_value: resUpload.data.message,\n template_key: data.template_key\n })\n\n return {\n template_value: resUpload.data.message,\n template_key: data.template_key\n }\n }\n }\n\n if (data.template_value === undefined) {\n await api.post('marketplaces/update-marketplaceTemplate', {\n id_marketplace: data.id_marketplace,\n template_value: null,\n template_key: data.template_key\n })\n\n return {\n template_value: resUpload.data.message,\n template_key: data.template_key\n }\n }\n\n dispatch(setLogoBase64(undefined))\n})\n\nexport const checkDNS = createAsyncThunk('marketplaces/checkDNS', async (data) => {\n return await CheckDNS(data.slug, data.sufix)\n})\n\nexport const checkTheme = createAsyncThunk('marketplaces/checkTheme', async (slug) => {\n if (slug === null) return\n return await ChangeTheme(slug)\n})\n\n//Adiciona informação no banco e depois busca\nexport const submitActivation = createAsyncThunk('marketplaces/submitActivation', async (data) => {\n if (!data.fields?.id_marketplace) {\n const response = await api.post('activations/activate', {\n id_organization: data.id_organization,\n app: data.app,\n marketplace: data.fields\n })\n\n if (response.data.success === true) {\n showSuccess('Marketplace salvo...')\n }\n\n return response.data\n } else {\n const response = await api.post('marketplaces/update', data.fields)\n\n if (response.data) {\n showSuccess('Marketplace salvo...')\n }\n\n return response\n }\n})\n\nexport const submitBanner = createAsyncThunk('marketplaces/submitBanner', async (data) => {\n if (!data.url_desktop) {\n const resUpload = await uploadImageAws(\n data.id_marketplace,\n 'image/png',\n `${data.id_marketplace}/marketplace/banners`,\n data.url_mobile\n )\n if (resUpload.data.success === true) {\n const dataBanner = {\n id_marketplace: data.id_marketplace,\n url_mobile: resUpload.data.message,\n description: data.description\n }\n const response = await api.post('marketplaces-banners/create', dataBanner)\n if (response.status === 200) {\n const find = await api.post('marketplaces-banners/find', { id_marketplace: data.id_marketplace })\n showSuccess('Banner mobile adicionado...')\n return find.data\n }\n }\n }\n\n if (!data.url_mobile) {\n const resUpload = await uploadImageAws(\n data.id_organization,\n 'image/png',\n `${data.id_organization}/marketplace/banners`,\n data.url_desktop\n )\n if (resUpload.data.success === true) {\n const dataBanner = {\n id_marketplace: data.id_marketplace,\n url_desktop: resUpload.data.message,\n description: data.description\n }\n const response = await api.post('marketplaces-banners/create', dataBanner)\n if (response.status === 200) {\n const find = await api.post('marketplaces-banners/find', { id_marketplace: data.id_marketplace })\n showSuccess('Banner desktop adicionado...')\n return find.data\n }\n }\n }\n\n if (!data.url_mobile) {\n const resUpload = await uploadImageAws(\n data.id_marketplace,\n 'image/png',\n `${data.id_marketplace}/marketplace/banners`,\n data.url_desktop\n )\n if (resUpload.data.success === true) {\n const dataBanner = {\n id_marketplace: data.id_marketplace,\n url_desktop: resUpload.data.message,\n description: data.description\n }\n const response = await api.post('marketplaces-banners/create', dataBanner)\n if (response.status === 200) {\n const find = await api.post('marketplaces-banners/find', { id_marketplace: data.id_marketplace })\n showSuccess('Banner desktop adicionado...')\n return find.data\n }\n }\n }\n\n const uploadDesktop = await uploadImageAws(\n data.id_marketplace,\n 'image/png',\n `${data.id_marketplace}/marketplace/banners`,\n data.url_desktop\n )\n const uploadMobile = await uploadImageAws(\n data.id_marketplace,\n 'image/png',\n `${data.id_marketplace}/marketplace/banners`,\n data.url_mobile\n )\n\n if (uploadDesktop.data.success === true) {\n if (uploadMobile.data.success === true) {\n const dataBanner = {\n id_marketplace: data.id_marketplace,\n url_desktop: uploadDesktop.data.message,\n url_mobile: uploadMobile.data.message,\n description: data.description\n }\n const response = await api.post('marketplaces-banners/create', dataBanner)\n if (response.status === 200) {\n const find = await api.post('marketplaces-banners/find', { id_marketplace: data.id_marketplace })\n showSuccess('Banner mobile adicionado...')\n return find.data\n }\n return upload\n }\n }\n})\n\nexport const findBanners = createAsyncThunk('marketplaces/findBanners', async (data) => {\n const response = await api.post('marketplaces-banners/find', data)\n return response.data\n})\n\nexport const updateBanner = createAsyncThunk('marketplaces/updateBanner', async (data) => {\n if (data.url_mobile === null) {\n delete data.url_mobile\n }\n if (data.url_desktop === null) {\n delete data.url_desktop\n }\n if (data.url_desktop) {\n const resUpload = await uploadImageAws(\n data.where.id_marketplace_banner,\n 'image/png',\n `${data.where.id_marketplace_banner}/marketplace/banners/`,\n data.url_desktop\n )\n\n if (resUpload.data.success === true) {\n data = {\n ...data,\n url_desktop: resUpload.data.message\n }\n }\n }\n\n if (data.url_mobile) {\n const resUpload = await uploadImageAws(\n data.where.id_marketplace_banner,\n 'image/png',\n `${data.where.id_marketplace_banner}/marketplace/banners/`,\n data.url_mobile\n )\n\n if (resUpload.data.success === true) {\n data = {\n ...data,\n url_mobile: resUpload.data.message\n }\n }\n }\n\n const response = await api.post('marketplaces-banners/update', data)\n\n if (response.status === 200) {\n const find = await api.post('marketplaces-banners/find', { id_marketplace: data.where.id_marketplace })\n showSuccess('Atualizado')\n return find.data\n }\n})\n\nexport const changeBannersSequence = createAsyncThunk('marketplaces/changeBannersSequence', async (data) => {\n const response = await api.post('marketplaces-banners/update-banner-sequence', data)\n\n if (response.status === 200) {\n toast.success('Ordem atualizada com sucesso')\n }\n\n return response.data\n})\n\nexport const findBannersById = createAsyncThunk('marketplaces/findBannersById', async (data) => {\n const response = await api.post('marketplaces-banners/find-by-id', data)\n return response.data\n})\n\nexport const deleteBanners = createAsyncThunk('marketplaces/deleteBanners', async (data) => {\n const response = await api.post('marketplaces-banners/delete', { id_marketplace_banner: data.id_marketplace_banner })\n\n if (response.status === 200) {\n const find = await api.post('marketplaces-banners/find', { id_marketplace: data.id_marketplace })\n showSuccess('Banner removido...')\n return find.data\n }\n\n return response\n})\n\nexport const updateSocialMedia = createAsyncThunk('marketplaces/updateBanners', async (data) => {\n const response = await api.post('marketplaces/update', data)\n return response\n})\n\nexport const getSocialMedia = createAsyncThunk('marketplaces/getSocialMedia', async (data) => {\n const response = await api.post('marketplaces/get-social-media', data)\n return response.data\n})\n\nexport const updateMarketplaceTemplate = createAsyncThunk('marketplaces/updateMarketplaceTemplate', async (data) => {\n const response = await api.post('marketplaces/update-marketplaceTemplate', data)\n return response.data\n})\n\nexport const getMarketplaceTemplates = createAsyncThunk('marketplaces/getMarketplaceTemplates', async (data) => {\n const response = await api.post('marketplaces/get-marketplaceTemplates', data)\n return response.data\n})\n\nexport const updateShowProductWithoutStock = createAsyncThunk(\n 'sale_channel/updateShowProductWithoutStock',\n async (data) => {\n const response = await apiComercial.post('sale_channel/update-multiple', data)\n return { ...response.data, data }\n }\n)\n\nexport const chargeSaleChannel = createAsyncThunk('sale_channel/chargeSaleChannel', async (id) => {\n return await apiComercial.post('sale_channel/charge', { id_canal_venda: id[0] }).then((result) => {\n if (result.status === 200) {\n return result.data\n }\n })\n})\n\nconst initialState = {\n loading: false,\n dns_avalaible: '',\n modal_state: false,\n banners: [],\n banner_fields: {\n id_marketplace_banner: '',\n description: '',\n url_desktop: undefined,\n url_mobile: undefined\n },\n logo_base64: '',\n tuo_bank: {\n id_tuo_bank: undefined,\n token: ''\n },\n frenet: {\n id_frenet: undefined,\n token: ''\n },\n melhor_envio: {\n id_melhor_envio: undefined,\n token: ''\n },\n fields: {\n exibir_produto_sem_estoque: false,\n id_marketplace: undefined,\n id_organization: undefined,\n url_xml_integration_shopping: '',\n url: '',\n url_domain: null,\n description: '',\n\n situation: Situacao.Ativo,\n\n ids_sales_channels: undefined,\n organizations: undefined,\n\n logo_type_mobile: TipoLogos.Retangular,\n logo_mobile: undefined,\n logo_square_text_mobile: undefined,\n\n logo_type_desktop: TipoLogos.Retangular,\n logo_desktop: undefined,\n logo_square_text_desktop: undefined,\n\n logo_style_header: StyleTypeLogos.Default,\n logo_style_footer: StyleTypeLogos.Default,\n\n color_primary: undefined,\n color_secondary: undefined,\n color_bg_footer: undefined,\n color_text_footer: undefined,\n color_bg_header: undefined,\n color_text_header: undefined,\n color_bg_main: undefined,\n color_text_main: undefined,\n color_normal_price: undefined,\n color_promotion_price: undefined,\n color_bg_primary_button: undefined,\n color_text_primary_button: undefined,\n color_bg_secondary_button: undefined,\n color_text_secondary_button: undefined,\n color_secondary_price: undefined,\n\n // lucas neitzke 26/07/2024\n product_page_blocks: undefined,\n home_page_blocks: undefined\n },\n moderbank_fields: {\n records: [],\n is_pix: false,\n is_demand: false,\n id_bank_account: ''\n },\n safe_two_pay: {\n id_safe_two_pay: undefined,\n token: '',\n max_installments: 0,\n active_installments: 0,\n is_connected: false,\n id_installment: undefined\n },\n payment_options: [],\n social_medias: {\n list: [],\n google: {\n url_arquivo: '',\n tag_manager_id: '',\n analytics_id: ''\n },\n facebook: {\n url_loja: '',\n url_arquivo: '',\n meta_pixel_id: ''\n },\n instagram: {\n url_loja: '',\n url_arquivo: ''\n },\n youtube: {\n url_loja: ''\n },\n whatsapp: ''\n },\n terms: '',\n policy: ''\n}\n\nexport const activationsSlice = createSlice({\n name: 'activations',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n if (Array.isArray(action.payload)) {\n action.payload.map((item) => {\n state.fields[item.field] = item.value\n })\n } else {\n state.fields[action.payload.field] = action.payload.value\n }\n },\n setTerms: (state, action) => {\n state.terms = action.payload\n },\n setBanners: (state, action) => {\n state.banners = action.payload\n },\n setSelectedBanner: (state, action) => {\n state.banner_fields.id_marketplace_banner = action.payload\n },\n setPolicy: (state, action) => {\n state.policy = action.payload\n },\n setModalState: (state, action) => {\n state.modal_state = action.payload\n },\n setBannerValues: (state, action) => {\n state.banner_fields[action.payload.field] = action.payload.value\n },\n setLoading: (state, action) => {\n state.loading = action.payload\n },\n setModerbankValues: (state, action) => {\n state.moderbank_fields[action.payload.field] = action.payload.value\n },\n setFieldsTuoBankValues: (state, action) => {\n state.tuo_bank[action.payload.field] = action.payload.value\n },\n setFieldsSafeTwoPay: (state, action) => {\n state.safe_two_pay[action.payload.field] = action.payload.value\n },\n setFieldsFrenetValues: (state, action) => {\n state.frenet[action.payload.field] = action.payload.value\n },\n setFieldsMelhorEnvioValues: (state, action) => {\n state.melhor_envio[action.payload.field] = action.payload.value\n },\n setPrimaryColorFields: (state, action) => {\n state.fields.color_primary = action.payload\n },\n setSecondColorFields: (state, action) => {\n state.fields.color_secondary = action.payload\n },\n setLogoBase64: (state, action) => {\n state.logo_base64 = action.payload\n },\n\n setApp: (state, action) => {\n state.app = action.payload\n },\n setGoogleUrlLoja: (state, action) => {\n state.social_medias.google.url_arquivo = action.payload\n },\n setGoogleTagManagerId: (state, action) => {\n state.social_medias.google.tag_manager_id = action.payload\n },\n setGoogleAnalyticsId: (state, action) => {\n state.social_medias.google.analytics_id = action.payload\n },\n setFacebookUrlLoja: (state, action) => {\n state.social_medias.facebook.url_loja = action.payload\n },\n setFacebookMetaPixelId: (state, action) => {\n state.social_medias.facebook.meta_pixel_id = action.payload\n },\n setFacebookUrlArquivo: (state, action) => {\n state.social_medias.facebook.url_arquivo = action.payload\n },\n setInstagramUrlLoja: (state, action) => {\n state.social_medias.instagram.url_loja = action.payload\n },\n setInstagramUrlArquivo: (state, action) => {\n state.social_medias.instagram.url_arquivo = action.payload\n },\n setYoutubeUrlArquivo: (state, action) => {\n state.social_medias.youtube.url_loja = action.payload\n },\n setWhatsappUrlArquivo: (state, action) => {\n state.social_medias.whatsapp = action.payload\n },\n\n resetBannerSelect: (state) => {\n state.banner_fields = {}\n },\n reset: () => initialState\n },\n extraReducers: (builder) => {\n builder\n .addCase(fetchMarketplace.fulfilled, (state, action) => {\n if (action.payload) {\n state.fields.id_marketplace = action.payload.id_marketplace\n state.fields.id_organization = action.payload.id_organization\n state.fields.url = action.payload.url\n state.fields.url_domain = action.payload.url_domain\n state.fields.description = action.payload.description\n state.fields.situation = action.payload.situation\n state.fields.organizations = action.payload.organizations\n state.fields.ids_sales_channels = action.payload.ids_sales_channels\n state.fields.url_xml_integration_shopping = action.payload.url_xml_integration_shopping\n }\n if (action.payload?.marketplaces_templates) {\n action.payload?.marketplaces_templates.map(({ template_key, template_value }) => {\n if (template_value) {\n state.fields[template_key] = template_value\n }\n })\n }\n })\n\n .addCase(saveMelhorEnvio.fulfilled, (state, action) => {\n if (action.payload) {\n state.melhor_envio = action.payload\n }\n })\n .addCase(fetchMelhorEnvio.fulfilled, (state, action) => {\n if (action.payload) {\n state.melhor_envio = action.payload\n }\n })\n\n .addCase(submitActivation.fulfilled, (state, action) => {\n if (action.payload.activate?.marketplace?.id_marketplace) {\n state.fields.id_marketplace = action.payload.activate?.marketplace?.id_marketplace\n }\n })\n\n .addCase(saveLogo.fulfilled, (state, action) => {\n state.fields[action.payload.template_key] = action.payload.template_value\n })\n\n .addCase(findModerbank.fulfilled, (state, action) => {\n state.moderbank_fields.records = action.payload\n })\n\n .addCase(getSocialMedia.fulfilled, (state, action) => {\n state.social_medias.list = action.payload[0]\n\n state.social_medias.facebook.url_arquivo = action.payload[0].facebook_file\n state.social_medias.facebook.url_loja = action.payload[0].facebook_url\n state.social_medias.facebook.meta_pixel_id = action.payload[0].facebook_meta_pixel_id\n\n state.social_medias.instagram.url_arquivo = action.payload[0].instagram_file\n state.social_medias.instagram.url_loja = action.payload[0].instagram_url\n\n state.social_medias.google.url_arquivo = action.payload[0].google_file\n state.social_medias.google.tag_manager_id = action.payload[0].google_tag_manager_id\n state.social_medias.google.analytics_id = action.payload[0].google_analytics_id\n\n state.social_medias.whatsapp = action.payload[0].whatsapp_number\n\n state.social_medias.youtube.url_loja = action.payload[0].youtube_url\n })\n\n .addCase(findBanners.fulfilled, (state, action) => {\n state.banners = action.payload\n })\n .addCase(deleteBanners.fulfilled, (state, action) => {\n state.banners = action.payload\n })\n .addCase(fetchPayments.fulfilled, (state, action) => {\n state.payment_options = action.payload\n state.moderbank_fields.id_bank_account = action.payload[0]?.id_conta\n })\n .addCase(findModerbankById.fulfilled, (state, action) => {\n state.moderbank_fields.is_pix = action.payload.is_pix\n state.moderbank_fields.is_demand = action.payload.is_demand\n })\n .addCase(submitBanner.fulfilled, (state, action) => {\n state.banner_fields.url_desktop = undefined\n state.banner_fields.url_mobile = undefined\n state.banner_fields.description = undefined\n state.banners = action.payload\n })\n .addCase(updateBanner.fulfilled, (state, action) => {\n state.banner_fields.url_desktop = undefined\n state.banner_fields.url_mobile = undefined\n state.banner_fields.description = undefined\n state.modal_state = false\n state.banners = action.payload\n })\n .addCase(findBannersById.fulfilled, (state, action) => {\n state.banner_fields.url_desktop = action.payload.url_desktop\n state.banner_fields.url_mobile = action.payload.url_mobile\n state.banner_fields.description = action.payload.description\n })\n .addCase(fetchTuoBank.fulfilled, (state, action) => {\n if (action.payload) {\n state.tuo_bank = action.payload\n }\n })\n .addCase(saveTuoBank.fulfilled, (state, action) => {\n if (action.payload) {\n state.tuo_bank = action.payload\n }\n })\n .addCase(createSafeTwoPay.fulfilled, (state, action) => {\n if (action.payload) {\n state.safe_two_pay = action.payload\n }\n })\n .addCase(fetchSafeTwoPay.fulfilled, (state, action) => {\n if (action.payload) {\n state.safe_two_pay = action.payload\n }\n })\n .addCase(fetchFrenet.fulfilled, (state, action) => {\n if (action.payload) {\n state.frenet = action.payload\n }\n })\n .addCase(saveFrenet.fulfilled, (state, action) => {\n if (action.payload) {\n state.frenet = action.payload\n }\n })\n .addCase(findPrivacy.fulfilled, (state, action) => {\n state.terms = action.payload.terms_of_use\n state.policy = action.payload.privacy_policy\n })\n .addCase(checkDNS.fulfilled, (state, action) => {\n state.loading = false\n if (action.payload) {\n state.dns_avalaible = action.payload.available ? 'Disponível' : 'Indisponível'\n }\n })\n .addCase(updateShowProductWithoutStock.fulfilled, (state, action) => {\n state.fields.exibir_produto_sem_estoque = action.payload.data.fields.exibir_produto_sem_estoque\n })\n .addCase(chargeSaleChannel.fulfilled, (state, action) => {\n state.fields.exibir_produto_sem_estoque = action.payload.exibir_produto_sem_estoque\n })\n }\n})\n\nexport const {\n setFieldsValues,\n setModerbankValues,\n reset,\n setLogoBase64,\n setFieldsTuoBankValues,\n setFieldsFrenetValues,\n setFieldsMelhorEnvioValues,\n setApp,\n setBannerValues,\n setBanners,\n setLoading,\n setTerms,\n setPolicy,\n setSelectedBanner,\n resetBannerSelect,\n setModalState,\n setPrimaryColorFields,\n setSecondColorFields,\n setGoogleUrlLoja,\n setGoogleTagManagerId,\n setGoogleAnalyticsId,\n setFacebookUrlLoja,\n setFacebookMetaPixelId,\n setFacebookUrlArquivo,\n setInstagramUrlLoja,\n setInstagramUrlArquivo,\n setYoutubeUrlArquivo,\n setWhatsappUrlArquivo,\n setFieldsSafeTwoPay\n} = activationsSlice.actions\n\nexport default activationsSlice.reducer\n","// ** Redux Imports\nimport { createSlice } from '@reduxjs/toolkit'\n\nconst initialState = { fields: {} }\n\nexport const filterFieldsSlice = createSlice({\n name: 'filterComponent',\n initialState,\n reducers: {\n setFieldsValues: (state, action) => {\n state.fields[action.payload.field] = action.payload.value\n },\n reset: () => initialState\n }\n})\n\nexport const { setFieldsValues, reset } = filterFieldsSlice.actions\n\nexport default filterFieldsSlice.reducer\n","import layout from './layout'\nimport navbar from './navbar'\nimport user from './user'\nimport modalNotification from '../moderniza/modal/notification/store'\nimport loadingModal from '../moderniza/toast/store'\nimport addOrganizations from '@src/views/organizations/store/add'\nimport listOrganizations from '@src/views/organizations/store/list'\nimport marketplaces from '@src/views/activations/store/marketplaces'\nimport filterFields from './filterFields'\nimport register from '../views/register/store/register'\nimport registerOrganization from '../views/register-organization/store/register'\nimport RegisterClient from '../views/register-client/store'\nimport RegisterPartner from '../views/register-partner/store'\nimport titleSlice from '../@core/layouts/components/navbar/store'\nimport loading from '../moderniza/loading/store'\nimport mdzSidebar from '../moderniza/mdzSidebar/store'\nimport dashboard from '../views/dashboard/store'\n\nconst rootReducer = {\n filterFields,\n navbar,\n layout,\n user,\n modalNotification,\n loadingModal,\n addOrganizations,\n listOrganizations,\n marketplaces,\n register,\n registerOrganization,\n RegisterClient,\n titleSlice,\n RegisterPartner,\n loading,\n mdzSidebar,\n dashboard\n}\n\nexport default rootReducer\n","// ** Redux Imports\nimport rootReducer from \"./rootReducer\"\nimport { configureStore } from \"@reduxjs/toolkit\"\n\nconst store = configureStore({\n reducer: rootReducer,\n middleware: (getDefaultMiddleware) => {\n return getDefaultMiddleware({\n serializableCheck: false\n })\n }\n})\n\nexport { store }\n","import { Fragment, useState } from 'react'\nimport toast from 'react-hot-toast'\nimport { Modal, ModalHeader, ModalBody, ModalFooter, Button, Spinner } from 'reactstrap'\n\nconst Custom = ({ error }) => {\n const [show, setShow] = useState(true)\n\n return (\n \n Ops...\n \n {error ? (\n Array.isArray(error) ? (\n error.map((err, index) => {\n return
  • {err}
  • \n })\n ) : (\n
    {error}
    \n )\n ) : null}\n
    \n \n \n \n
    \n )\n}\nexport const CustomConfirmation = ({ text, onClickNo, onClickYes, isTerms, textButtonNo, textButtonYes }) => {\n const [isActive, setIsActive] = useState(true)\n\n return (\n \n Atenção\n {text ?
    {text}
    : null}
    \n \n {\n onClickYes()\n setIsActive(false)\n }}>\n {textButtonYes ? textButtonYes : {isTerms === true ? 'Concordo' : 'Sim'}}\n \n {\n if (typeof onClickNo === 'function') onClickNo()\n setIsActive(false)\n }}>\n {textButtonNo ? textButtonNo : {isTerms === true ? 'Discordo' : 'Sim'}}\n \n \n
    \n )\n}\n\nexport const Message = ({ message }) => {\n const [isActive, setIsActive] = useState(true)\n\n return (\n \n setIsActive(!isActive)}>\n Sucesso!\n \n \n {message}\n \n \n )\n}\nexport const showError = (error) => {\n toast.custom()\n}\nexport const showMessage = (message) => {\n toast.custom()\n}\nexport const showConfirmation = (text, onClickNo, onClickYes, isTerms, textButtonYes, textButtonNo) => {\n toast.custom(\n \n )\n}\n\nexport const showSuccess = (msg) => {\n toast.success(msg)\n}\n"],"sourceRoot":""}