{"version":3,"sources":["utils/Request.js","utils/Usuario.js","utils/Processo.js","components/VariaveisEstilo.js","components/Loading.js","components/pages/Login/index.js","pages/Login/LoginPage.js","components/BoxProcessoStatusProduto.js","components/BoxProcessoStatus.js","components/pages/MeusProcessos/index.js","pages/MeusProcessos/MeusProcessosPage.js","components/pages/Alias/index.js","pages/Alias/AliasPage.js","components/pages/NotFound/index.js","pages/NotFound/NotFoundPage.js","utils/Config.js","components/shared/LayoutLogin/index.js","components/shared/LayoutMain/index.js","App.js","index.js"],"names":["headers","RequestGetOpcoes","method","RequestPostOpcoes","params","body","JSON","stringify","ObjetoParaQueryString","objeto","Object","keys","map","key","join","Alias","sessionStorage","getItem","Config","GetConfig","config","length","parse","SetAlias","value","setItem","SetEmail","SetConfig","SetProcessos","Processos","GetProcessos","processos","VariaveisEstilo","document","documentElement","style","setProperty","corDominante","Loading","_ref","text","React","createElement","id","className","Login","search","useLocation","aliasName","URLSearchParams","get","infosValidas","setInfosValidas","useState","email","setEmail","mensagem","setMensagem","loading","setLoading","show","setShow","configOk","setConfigOk","code","setCode","step","setStep","useEffect","fetch","alias","then","response","json","data","erro","window","location","reload","catch","error","console","Fragment","onSubmit","async","e","preventDefault","clienteId","cliente","idProtected","lojaVirtualId","lojaVirtual","ok","log","htmlFor","type","name","onChange","target","required","undefined","href","Modal","centered","Body","Footer","Button","size","onClick","handleClose","LoginPage","BoxProcessoStatusProduto","sku","processo","SkusParaTroca","possuiTroca","produtosTroca","index","skuId","src","ImagemUrl","alt","SkuNome","title","TransportadoraProtocolo","TipoDescricao","BoxProcessoStatus","painelClass","setpPanelClass","inicio","setInicio","postado","setPostado","recebidoConferido","setRebidoConferido","estorno","setEstorno","produtosSolicitados","setProdutosSolicitados","concluido","setConcluido","troca","setTroca","textoEstorno","setTextoEstorno","PedidoDto","Pendencias","Skus","produtos","TipoProcesso","corStatus","Status","GetTextoEstorno","valorEstorno","ValorEstornoCalculado","Intl","NumberFormat","currency","format","ValeCompra","ValeCompraGerado","RedemptionCode","PendenciaRating","PendenciaProdutosEnviados","PendenciaValeCompras","PendenciaEstorno","borderLeftColor","handleProcessoClick","color","descStatus","Numero","moment","Data","data-tip","data-for","ReactTooltip","place","effect","MeusProcessos","nome","setNome","setProcessos","paginador","setPaginador","Pagina","Qtd","slice","ClienteNome","ClienteEmail","aria-hidden","event","MeusProcessosPage","useParams","setErro","getElementById","classList","add","Container","AliasPage","NotFound","NotFoundPage","UrlLogo","UrlLogoS3","GetLogoUrl","path","includes","LayoutLogin","Component","constructor","props","super","logoNome","logo","arquivoLogo","this","state","Logo","render","children","LayoutMain","RazaoSocial","razaoSocial","LogOut","role","rel","App","Router","Switch","Route","exact","component","baseUrl","getElementsByTagName","getAttribute","rootElement","ReactDOM","BrowserRouter","basename"],"mappings":"+RAAA,MAAMA,EAAU,CACZA,QAAS,CACL,eAAgB,mBAChB,OAAU,qBAILC,EAAmB,CAC5BC,OAAQ,SACLF,GAGMG,EAAqBC,IACvB,CACHF,OAAQ,UACLF,EACHK,KAAMC,KAAKC,UAAUH,KAIhBI,EAAyBC,GAC3BC,OAAOC,KAAKF,GACdG,IAAIC,GAAOA,EAAM,IAAMJ,EAAOI,IAC9BC,KAAK,KCnBDC,EAAQC,eAAeC,QAJP,UAiBhBC,GAZQF,eAAeC,QAJP,UAMXE,MACd,MAAMC,EAASJ,eAAeC,QANJ,WAQ1B,OAAc,MAAVG,GAAkBA,EAAOC,OAAS,EAC3Bf,KAAKgB,MAAMF,GAGf,MAGWD,IAETI,EAAYC,GACdR,eAAeS,QApBG,SAoBoBD,GAGpCE,EAAYF,GACdR,eAAeS,QAvBG,SAuBoBD,GAGpCG,EAAaH,IACtBA,EAAQlB,KAAKC,UAAUiB,GAEhBR,eAAeS,QA5BI,UA4BoBD,IClBrCI,EAAgBJ,IACzBA,EAAQlB,KAAKC,UAAUiB,GAEhBR,eAAeS,QAfA,aAe2BD,IAGxCK,EAhBQC,MACjB,MAAMC,EAAYf,eAAeC,QAHX,cAKtB,OAA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C,EAAczM,SAASiK,eAAe,QAE5CyC,IAASlB,OACPhL,IAAAC,cAACkM,IAAa,CAACC,SAAUN,GACvB9L,IAAAC,cAACuL,EAAG,OAENS,K","file":"static/js/main.5aeecc7f.chunk.js","sourcesContent":["const headers = {\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Accept': 'application/json'\r\n }\r\n}\r\n\r\nexport const RequestGetOpcoes = {\r\n method: 'GET',\r\n ...headers,\r\n}\r\n\r\nexport const RequestPostOpcoes = (params) => {\r\n return {\r\n method: 'POST',\r\n ...headers,\r\n body: JSON.stringify(params)\r\n }\r\n}\r\n\r\nexport const ObjetoParaQueryString = (objeto) => {\r\n return Object.keys(objeto)\r\n .map(key => key + '=' + objeto[key])\r\n .join('&')\r\n}","export const session_alias = '_alias'\r\nexport const session_email = '_email';\r\nexport const session_config = '_config';\r\n\r\nexport const Alias = sessionStorage.getItem(session_alias)\r\nexport const Email = sessionStorage.getItem(session_email)\r\n\r\nconst GetConfig = () => {\r\n const config = sessionStorage.getItem(session_config)\r\n\r\n if (config != null && config.length > 0) {\r\n return JSON.parse(config)\r\n }\r\n\r\n return null\r\n}\r\n\r\nexport const Config = GetConfig()\r\n\r\nexport const SetAlias = (value) => {\r\n return sessionStorage.setItem(session_alias, value)\r\n}\r\n\r\nexport const SetEmail = (value) => {\r\n return sessionStorage.setItem(session_email, value)\r\n}\r\n\r\nexport const SetConfig = (value) => {\r\n value = JSON.stringify(value)\r\n\r\n return sessionStorage.setItem(session_config, value)\r\n}","const session_processos = '_processos';\r\n\r\nconst GetProcessos = () => {\r\n const processos = sessionStorage.getItem(session_processos)\r\n\r\n if (processos != null && processos.length > 0) {\r\n return JSON.parse(processos)\r\n }\r\n\r\n return null\r\n}\r\n\r\nexport const SetProcessos = (value) => {\r\n value = JSON.stringify(value)\r\n\r\n return sessionStorage.setItem(session_processos, value)\r\n}\r\n\r\nexport const Processos = GetProcessos()","const VariaveisEstilo = (config) => {\r\n if (config == null) {\r\n return\r\n }\r\n\r\n document.documentElement.style.setProperty('--primaria', config.corDominante)\r\n}\r\n\r\nexport default VariaveisEstilo","import React from 'react';\r\n\r\nconst Loading = ({ text }) => {\r\n\r\n return (\r\n
\r\n
\r\n

{text}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default Loading","import React, { useState, useEffect } from 'react'\r\nimport { Button, Modal } from 'react-bootstrap';\r\nimport { useLocation } from 'react-router-dom';\r\n\r\nimport { RequestPostOpcoes } from '../../../utils/Request'\r\nimport { Alias, Config, SetAlias, SetEmail, SetConfig } from '../../../utils/Usuario'\r\nimport { SetProcessos } from '../../../utils/Processo'\r\nimport { RequestGetOpcoes, ObjetoParaQueryString } from '../../../utils/Request'\r\n\r\nimport VariaveisEstilo from '../../VariaveisEstilo'\r\nimport Loading from '../../Loading'\r\n\r\nconst Login = () => {\r\n const search = useLocation().search\r\n const aliasName = new URLSearchParams(search).get('alias');\r\n\r\n const [infosValidas, setInfosValidas] = useState(true)\r\n const [email, setEmail] = useState('')\r\n const [mensagem, setMensagem] = useState('')\r\n const [loading, setLoading] = useState(false)\r\n const [show, setShow] = useState(false)\r\n const [configOk, setConfigOk] = useState(true)\r\n\r\n const [code, setCode] = useState(\"\");\r\n const [step, setStep] = useState(1); // 1: Solicitar e-mail | 2: Digitar código e se valido carregar processos\r\n\r\n const handleClose = () => setShow(false)\r\n\r\n const handleSendCode = async (e) => {\r\n e.preventDefault();\r\n setLoading(true)\r\n\r\n const params = {\r\n clienteId: Config.cliente.idProtected,\r\n lojaVirtualId: (Config.lojaVirtual != null && Config.lojaVirtual.id > 0) ? Config.lojaVirtual.id : null,\r\n email: email\r\n }\r\n\r\n fetch('/api/login/SendCode', RequestPostOpcoes(params))\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.erro) {\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem(data.erro)\r\n }\r\n\r\n if (data.ok && data.ok === true) {\r\n setStep(2)\r\n setLoading(false)\r\n }\r\n\r\n return\r\n })\r\n .catch(error => {\r\n console.log(error)\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem(error)\r\n });\r\n };\r\n\r\n // Valida o código informado pelo usuário\r\n const handleValidateCode = (e) => {\r\n e.preventDefault();\r\n\r\n setLoading(true)\r\n if (email === '' || email === undefined) {\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem(\"Informe um e-mail para prosseguir.\")\r\n }\r\n\r\n if (Config == null || Config.cliente == null || Config.cliente.idProtected == null) {\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem(\"Não foi possível encontrar o cliente.\")\r\n }\r\n\r\n const params = {\r\n clienteId: Config.cliente.idProtected,\r\n lojaVirtualId: (Config.lojaVirtual != null && Config.lojaVirtual.id > 0) ? Config.lojaVirtual.id : null,\r\n email,\r\n code\r\n }\r\n\r\n fetch('/api/login/ValidateCodeAndLoadProcess'\r\n , RequestPostOpcoes(params))\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.erro) {\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem(data.erro)\r\n }\r\n\r\n if (data.length === 0) {\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem('Não há nenhuma solicitação vinculada ao e-mail informado.')\r\n }\r\n\r\n SetProcessos(data)\r\n SetEmail(email)\r\n\r\n window.location.href = '/meus-processos';\r\n return\r\n })\r\n .catch(error => {\r\n console.log(error)\r\n setShow(true)\r\n setLoading(false)\r\n return setMensagem(error)\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (Alias === null && Config === null) {\r\n setConfigOk(false)\r\n }\r\n\r\n if (Alias !== aliasName && aliasName) {\r\n setConfigOk(false)\r\n }\r\n\r\n if (!configOk) {\r\n setLoading(true)\r\n\r\n if (!aliasName) {\r\n setInfosValidas(false)\r\n return setLoading(false)\r\n }\r\n\r\n const params = {\r\n alias: aliasName\r\n }\r\n\r\n fetch('/api/login/ObterConfiguracao?' + ObjetoParaQueryString(params)\r\n , RequestGetOpcoes)\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data.erro) {\r\n setMensagem(data.erro)\r\n setShow(true);\r\n setLoading(false)\r\n return setInfosValidas(false)\r\n }\r\n\r\n if (data != null) {\r\n SetAlias(aliasName)\r\n SetConfig(data)\r\n return window.location.reload()\r\n }\r\n\r\n return setLoading(false)\r\n })\r\n .catch(error => {\r\n console.error('Ocorreu um erro: ', error);\r\n setMensagem(error)\r\n setShow(true);\r\n return setLoading(false)\r\n });\r\n }\r\n\r\n VariaveisEstilo(Config)\r\n }, [infosValidas, mensagem, email, show, configOk, aliasName, step])\r\n\r\n return (\r\n <>
\r\n

Bem vindo(a) à área do cliente

\r\n

Nesta área você poderá consultar o andamento de suas solicitações de troca ou devolução de produtos.

\r\n {step === 1\r\n ? (

Informe abaixo seu e-mail utilizado no pedido da loja virtual:

)\r\n : (

Insira o código de verificação enviado para o seu e-mail:

)}\r\n
\r\n {infosValidas ?\r\n (\r\n
\r\n { step === 1 && (\r\n
\r\n
\r\n \r\n setEmail(e.target.value)}\r\n required\r\n />\r\n
\r\n \r\n
\r\n )}\r\n\r\n {step === 2 && (\r\n
\r\n
\r\n \r\n setCode(e.target.value)}\r\n required\r\n />\r\n
\r\n \r\n
\r\n )}\r\n
\r\n ) : (\r\n <>
\r\n Oops, a loja não foi encontrada.\r\n
\r\n

Entre em contato com a loja para verificar se o link fornecido está correto.

\r\n \r\n )}\r\n
\r\n
<>\r\n \r\n {/**/}\r\n {/* Oops*/}\r\n {/**/}\r\n {mensagem}\r\n \r\n \r\n \r\n \r\n {loading ? : ''}\r\n \r\n );\r\n}\r\n\r\nexport default Login","import React from 'react';\r\n\r\nimport Login from '../../components/pages/Login'\r\n\r\nconst LoginPage = () => {\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default LoginPage","import React from 'react'\r\n\r\nconst BoxProcessoStatusProduto = ({ sku, processo }) => {\r\n console.log(sku)\r\n const { SkusParaTroca } = sku\r\n const possuiTroca = SkusParaTroca != null && SkusParaTroca.length > 0\r\n\r\n const produtosTroca = possuiTroca\r\n ? SkusParaTroca.map((sku, index) => {\r\n return (\r\n
\r\n
\r\n {sku.SkuNome}\r\n
\r\n
\r\n
\r\n {sku.SkuNome}\r\n
\r\n \r\n \r\n {\r\n processo.TransportadoraProtocolo\r\n ? `Autoriz. Postagem: ${processo.TransportadoraProtocolo}`\r\n : ''\r\n }\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n })\r\n : null;\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n {sku.SkuNome}\r\n
\r\n
\r\n
\r\n {sku.SkuNome}\r\n
\r\n \r\n {sku.TipoDescricao}\r\n \r\n
\r\n
\r\n
\r\n {\r\n possuiTroca\r\n ?
\r\n \r\n
\r\n :''\r\n }\r\n {produtosTroca}\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default BoxProcessoStatusProduto","import React, { useState, useEffect } from 'react'\r\nimport ReactTooltip from \"react-tooltip\";\r\nimport * as moment from 'moment'\r\n\r\nimport BoxProcessoStatusProduto from './BoxProcessoStatusProduto'\r\n\r\nconst CorPendente = '#eb6709'\r\nconst CorConcluido = '#22366e'\r\nconst CorCancelado = '#ff4c52'\r\n\r\nconst BoxProcessoStatus = ({ processo }) => {\r\n\r\n const [painelClass, setpPanelClass] = useState('hide')\r\n\r\n const [inicio, setInicio] = useState(true)\r\n const [postado, setPostado] = useState(false)\r\n const [recebidoConferido, setRebidoConferido] = useState(false)\r\n const [estorno, setEstorno] = useState(false)\r\n const [produtosSolicitados, setProdutosSolicitados] = useState(false)\r\n const [concluido, setConcluido] = useState(false)\r\n const [troca, setTroca] = useState(false)\r\n const [textoEstorno, setTextoEstorno] = useState('')\r\n\r\n const { PedidoDto, Pendencias } = processo\r\n const { Skus } = PedidoDto\r\n\r\n const produtos = Skus.map((sku, index) => {\r\n if (sku.TipoProcesso === 1 && !troca) {\r\n setTroca(true)\r\n }\r\n\r\n return (\r\n \r\n );\r\n });\r\n\r\n const corStatus = () => {\r\n if (processo.Status === 2) {\r\n return CorConcluido\r\n }\r\n\r\n if (processo.Status === 3) {\r\n return CorCancelado\r\n }\r\n\r\n return CorPendente\r\n }\r\n\r\n const handleProcessoClick = () => {\r\n if (painelClass === 'show') {\r\n return setpPanelClass('hide')\r\n }\r\n\r\n return setpPanelClass('show')\r\n }\r\n\r\n useEffect(() => {\r\n setInicio(true)\r\n\r\n const SetStep = () => {\r\n\r\n if (!Pendencias.PendenciaRating) {\r\n setPostado(true)\r\n setRebidoConferido(true)\r\n }\r\n\r\n if (processo.Status === 2) {\r\n setPostado(true)\r\n setRebidoConferido(true)\r\n setEstorno(true)\r\n setProdutosSolicitados(true)\r\n setConcluido(true)\r\n return\r\n }\r\n\r\n if (!Pendencias.PendenciaProdutosEnviados) {\r\n if (Pendencias.PendenciaValeCompras || Pendencias.PendenciaEstorno) {\r\n setPostado(true)\r\n //setRebidoConferido(true)\r\n return\r\n }\r\n\r\n setPostado(true)\r\n //setRebidoConferido(true)\r\n setEstorno(true)\r\n setProdutosSolicitados(true)\r\n return\r\n }\r\n\r\n if (!Pendencias.PendenciaValeCompras && !Pendencias.PendenciaEstorno) {\r\n setPostado(true)\r\n setRebidoConferido(true)\r\n setEstorno(true)\r\n return\r\n }\r\n\r\n //if (!Pendencias.PendenciaRating) {\r\n // setPostado(true)\r\n // setRebidoConferido(true)\r\n // return\r\n //}\r\n\r\n if (!Pendencias.PendenciaProdutosEnviados) { //PendenciaPostagem\r\n //if (!Pendencias.PendenciaLogistica) { \r\n setPostado(true)\r\n return\r\n //}\r\n }\r\n }\r\n const GetTextoEstorno = () => {\r\n let valorEstorno = '';\r\n\r\n if (processo.ValorEstornoCalculado != null && processo.ValorEstornoCalculado > 0) {\r\n const valor = new Intl.NumberFormat(\"pt-BR\", {\r\n style: \"currency\",\r\n currency: \"BRL\"\r\n }).format(processo.ValorEstornoCalculado);\r\n\r\n valorEstorno = valor\r\n }\r\n\r\n if (processo.ValeCompra != null) {\r\n if (processo.ValeCompra.ValeCompraGerado\r\n && processo.ValeCompra.RedemptionCode != null\r\n && processo.ValeCompra.RedemptionCode.length > 0\r\n ) {\r\n return `Vale Compras gerado (${processo.ValeCompra.RedemptionCode}) ${valorEstorno}`\r\n }\r\n\r\n return `Vale Compras ${valorEstorno}`\r\n }\r\n\r\n return `Estorno ${valorEstorno}`\r\n }\r\n\r\n setTextoEstorno(GetTextoEstorno())\r\n SetStep()\r\n }, [inicio, postado, recebidoConferido, estorno, produtosSolicitados, concluido, troca, textoEstorno, processo, Skus, Pendencias])\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n { processo.descStatus }\r\n
\r\n
\r\n { processo.Numero }\r\n
\r\n
\r\n { moment(processo.Data).format(\"DD/MM/YYYY hh:mm\") }\r\n
\r\n
\r\n
\r\n
Pedido
\r\n
Data Pedido
\r\n\r\n
{PedidoDto.Numero}
\r\n
{moment(PedidoDto.Data).format(\"DD/MM/YYYY hh:mm\")}
\r\n
\r\n {produtos}\r\n
\r\n
\r\n
\r\n
\r\n
    \r\n
  • \r\n \r\n Iniciado\r\n \r\n \r\n Iniciado\r\n
  • \r\n
  • \r\n \r\n Postado\r\n \r\n \r\n Postado\r\n
  • \r\n
  • \r\n \r\n Produto recebido e conferido\r\n \r\n \r\n Produto recebido e conferido\r\n
  • \r\n
  • \r\n \r\n {textoEstorno}\r\n \r\n \r\n {textoEstorno}\r\n
  • \r\n {\r\n troca\r\n ?
  • \r\n \r\n Produtos solicitados enviados\r\n \r\n \r\n Produtos solicitados enviados\r\n
  • \r\n : ''\r\n }\r\n
  • \r\n \r\n Concluído\r\n \r\n \r\n Concluído\r\n
  • \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default BoxProcessoStatus","import React, { useState, useEffect } from 'react'\r\n\r\nimport BoxProcessoStatus from '../../BoxProcessoStatus'\r\n\r\nimport { Processos } from '../../../utils/Processo'\r\nimport Loading from '../../Loading'\r\n\r\nconst MeusProcessos = () => {\r\n const [nome, setNome] = useState('')\r\n const [email, setEmail] = useState('')\r\n const [loading, setLoading] = useState(true)\r\n const [processos, setProcessos] = useState('')\r\n\r\n const paginadorState = {\r\n Pagina: 1,\r\n Qtd: 10\r\n }\r\n\r\n const [paginador, setPaginador] = useState(paginadorState)\r\n\r\n const carregarMais = (event) => {\r\n setLoading(true)\r\n setPaginador({\r\n ...paginador,\r\n Pagina: paginador.Pagina + 1\r\n })\r\n setLoading(false)\r\n }\r\n\r\n useEffect(() => {\r\n setProcessos(() => {\r\n const processos = Processos.slice(0, paginador.Pagina * paginador.Qtd)\r\n\r\n return processos.map((processo, index) => {\r\n return (\r\n \r\n );\r\n });\r\n })\r\n\r\n if (Processos != null && Processos.length > 0) {\r\n const [processo] = Processos\r\n \r\n setNome(processo.PedidoDto.ClienteNome)\r\n setEmail(processo.PedidoDto.ClienteEmail)\r\n setLoading(false)\r\n }\r\n }, [paginador])\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n

Meus Dados


\r\n
\r\n {nome}
\r\n {email}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {processos}\r\n {\r\n (paginador.Pagina * paginador.Qtd) >= Processos.length\r\n ? ''\r\n :
\r\n \r\n
\r\n }\r\n \r\n
\r\n {loading ? : ''}\r\n \r\n );\r\n}\r\n\r\nexport default MeusProcessos","import React from 'react';\r\n\r\nimport MeusProcessos from '../../components/pages/MeusProcessos'\r\n\r\nconst MeusProcessosPage = () => {\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default MeusProcessosPage","import React, { useEffect, useState } from 'react';\r\nimport { useParams } from 'react-router-dom';\r\nimport { Container } from 'reactstrap'\r\n\r\nimport { SetAlias, SetConfig } from '../../../utils/Usuario'\r\nimport { RequestGetOpcoes, ObjetoParaQueryString } from '../../../utils/Request'\r\n\r\nimport Loading from '../../Loading'\r\n\r\nconst Alias = () => {\r\n const { aliasName } = useParams()\r\n const [erro, setErro] = useState(false)\r\n\r\n useEffect(() => {\r\n const params = {\r\n alias: aliasName\r\n }\r\n\r\n fetch('/api/login/ObterConfiguracao?' + ObjetoParaQueryString(params)\r\n , RequestGetOpcoes)\r\n .then(response => response.json())\r\n .then(data => {\r\n if (data != null) {\r\n SetAlias(aliasName)\r\n SetConfig(data)\r\n window.location.href = '/';\r\n return\r\n }\r\n\r\n document.getElementById('loading').classList.add('hide');\r\n setErro(true)\r\n })\r\n .catch(error => {\r\n document.getElementById('loading').classList.add('hide');\r\n setErro(true)\r\n console.error('Ocorreu um erro: ', error);\r\n });\r\n }, [aliasName, erro])\r\n\r\n return (\r\n
\r\n {\r\n erro\r\n ? (\r\n
\r\n \r\n
\r\n

Bem vindo(a) à área do cliente

\r\n

Iremos localizar o alias informado.

\r\n
\r\n
\r\n O alias informado não foi encontrado.\r\n
\r\n

Verifique com a loja se o link fornecido está correto.

\r\n
\r\n
\r\n
\r\n
\r\n )\r\n : ''\r\n }\r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nexport default Alias","import React from 'react';\r\n\r\nimport Alias from '../../components/pages/Alias'\r\n\r\nconst AliasPage = () => {\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default AliasPage","import React from 'react'\r\nimport { Container } from 'reactstrap'\r\n\r\nconst NotFound = () => {\r\n return (\r\n
\r\n
\r\n
\r\n Genius Returns\r\n
\r\n \r\n
\r\n

404 Página não encontrada!

\r\n

Desculpe, a página solicitada não foi encontrada!

\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n //
\r\n //
\r\n //
\r\n //
\r\n //

\r\n // Oops!

\r\n //

\r\n // 404 Página não encontrada

\r\n //
\r\n // Desculpe, a página solicitada não foi encontrada!\r\n //
\r\n // \r\n //
\r\n //
\r\n //
\r\n //
\r\n\r\n );\r\n}\r\n\r\nexport default NotFound","import React from 'react';\r\n\r\nimport NotFound from '../../components/pages/NotFound'\r\n\r\n\r\nconst NotFoundPage = () => {\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default NotFoundPage","export const UrlLogo = 'https://app.geniusreturns.com.br/var';\r\nexport const UrlLogoS3 = 'https://genius-app-resources.s3.us-east-2.amazonaws.com/';\r\nexport const LogoGenius = 'client-logos/2/2.png';\r\n\r\nexport const GetLogoUrl = (path) => {\r\n if (path.includes('client-logos')) {\r\n return UrlLogoS3 + path\r\n }\r\n\r\n return UrlLogo + path\r\n}","import React, { Component } from 'react'\r\nimport { Container } from 'reactstrap'\r\n\r\nimport { Config } from '../../../utils/Usuario'\r\nimport { UrlLogo, UrlLogoS3, GetLogoUrl } from '../../../utils/Config'\r\n\r\nexport class LayoutLogin extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n //Default o logo genius\r\n let logoNome = UrlLogoS3 + UrlLogo\r\n\r\n if (Config != null && Config.cliente != null) {\r\n let logo = Config.cliente.arquivoLogo;\r\n\r\n if (Config.lojaVirtual != null && Config.lojaVirtual.arquivoLogo != null)\r\n {\r\n logo = Config.lojaVirtual.arquivoLogo;\r\n }\r\n\r\n logoNome = GetLogoUrl(logo)\r\n }\r\n\r\n this.state = {\r\n config: Config,\r\n Logo: logoNome\r\n };\r\n }\r\n\r\n \r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n {this.props.children}\r\n \r\n
\r\n
\r\n );\r\n }\r\n}","import React, { Component } from 'react'\r\n\r\nimport { Config, Alias, SetEmail } from '../../../utils/Usuario'\r\nimport { UrlLogo, UrlLogoS3, GetLogoUrl } from '../../../utils/Config'\r\nimport { Processos, SetProcessos } from '../../../utils/Processo'\r\n\r\nexport class LayoutMain extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n let logoNome = UrlLogoS3 + UrlLogo\r\n\r\n if (Config != null && Config.cliente != null) {\r\n logoNome = GetLogoUrl(Config.cliente.arquivoLogo)\r\n }\r\n\r\n if (Processos === null || Processos.length === 0) {\r\n return window.location.href = '/?alias=' + Alias\r\n }\r\n\r\n this.state = {\r\n Logo: logoNome,\r\n RazaoSocial: Config.cliente.razaoSocial\r\n };\r\n }\r\n\r\n render() {\r\n const LogOut = () => {\r\n SetProcessos(null)\r\n SetEmail(null)\r\n }\r\n\r\n return (\r\n <>
\r\n
\r\n {/*BARRA DO TOPO APENAS PARA MOBILE e TABLET*/}\r\n
\r\n
\r\n
\r\n {this.state.RazaoSocial}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n {/*BARRA DO TOPO PARA DESKTOP*/}\r\n
\r\n
\r\n
\r\n {this.state.RazaoSocial}\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {this.props.children}\r\n
\r\n
\r\n \r\n \r\n )\r\n }\r\n}","import React from 'react';\r\nimport 'bootstrap/dist/css/bootstrap.css';\r\n\r\nimport { BrowserRouter as Router, Route, Switch } from 'react-router-dom'\r\n\r\nimport LoginPage from './pages/Login/LoginPage'\r\nimport MeusProcessosPage from './pages/MeusProcessos/MeusProcessosPage'\r\nimport AliasPage from './pages/Alias/AliasPage'\r\nimport NotFoundPage from './pages/NotFound/NotFoundPage'\r\n\r\nimport { LayoutLogin } from './components/shared/LayoutLogin'\r\nimport { LayoutMain } from './components/shared/LayoutMain'\r\n\r\nimport './custom.css'\r\n\r\nconst App = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default App","import 'bootstrap/dist/css/bootstrap.css';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { BrowserRouter } from 'react-router-dom';\r\nimport App from './App';\r\n//import registerServiceWorker from './registerServiceWorker';\r\n\r\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\r\nconst rootElement = document.getElementById('root');\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n rootElement);\r\n\r\n/*registerServiceWorker();*/\r\n\r\n"],"sourceRoot":""}