@orbe-agro/client-core 5.6.354 → 5.6.356
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ecme/assets/styles/app.css +214 -0
- package/dist/@ecme/assets/styles/tailwind/index.css +215 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +3 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.js +4 -0
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.js.map +1 -1
- package/dist/@ecme/components/template/Footer.js +1 -1
- package/dist/@ecme/locales/lang/ptBR/nav.js +18 -0
- package/dist/@ecme/locales/lang/ptBR/nav.js.map +1 -1
- package/dist/@ecme/store/localeStore.js +1 -2
- package/dist/@ecme/store/localeStore.js.map +1 -1
- package/dist/@ecme/views/auth/lang/index.js +1 -1
- package/dist/@ecme/views/auth/lang/index.js.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/StackedSide.d.ts.map +1 -1
- package/dist/@types/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/en/index.d.ts +121 -0
- package/dist/@types/@ecme/locales/lang/en/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts +121 -0
- package/dist/@types/@ecme/locales/lang/ptBR/index.d.ts.map +1 -1
- package/dist/@types/@ecme/locales/lang/ptBR/nav.d.ts.map +1 -1
- package/dist/@types/base/@types/models/dm/user.d.ts +1 -0
- package/dist/@types/base/@types/models/dm/user.d.ts.map +1 -1
- package/dist/@types/base/@types/models/faq/Faq.d.ts +221 -0
- package/dist/@types/base/@types/models/faq/Faq.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjuda.d.ts +10 -0
- package/dist/@types/base/components/centralAjuda/CentralAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaDrawer.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaDrawer.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaPreview.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaPreview.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaToggle.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/CentralAjudaToggle.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.d.ts +20 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.dados.d.ts +34 -0
- package/dist/@types/base/components/centralAjuda/__mocks__/centralAjudaExemplo.dados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/AnexoMoldura.d.ts +17 -0
- package/dist/@types/base/components/centralAjuda/components/AnexoMoldura.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/BlocoInerte.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/components/BlocoInerte.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/BuscaForm.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/components/BuscaForm.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/CartaoClicavel.d.ts +14 -0
- package/dist/@types/base/components/centralAjuda/components/CartaoClicavel.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/ConteudoHtml.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/components/ConteudoHtml.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/CtaAjudaCard.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/components/CtaAjudaCard.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/ErroCarregamento.d.ts +7 -0
- package/dist/@types/base/components/centralAjuda/components/ErroCarregamento.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/LinhaConteudo.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/components/LinhaConteudo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/PainelCabecalho.d.ts +16 -0
- package/dist/@types/base/components/centralAjuda/components/PainelCabecalho.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonConteudo.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonConteudo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonLinhas.d.ts +17 -0
- package/dist/@types/base/components/centralAjuda/components/SkeletonLinhas.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/TipoFaqTag.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/components/TipoFaqTag.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/components/VoltarLink.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/components/VoltarLink.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/constants.d.ts +43 -0
- package/dist/@types/base/components/centralAjuda/constants.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/index.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/index.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/RotaDaAjuda.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/rota/RotaDaAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/ajudaPendente.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/rota/ajudaPendente.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/rotaAjuda.d.ts +47 -0
- package/dist/@types/base/components/centralAjuda/rota/rotaAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.d.ts +12 -0
- package/dist/@types/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useNavegarAjuda.d.ts +29 -0
- package/dist/@types/base/components/centralAjuda/rota/useNavegarAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.d.ts +7 -0
- package/dist/@types/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/rota/useRotaAjuda.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/rota/useRotaAjuda.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/store/centralAjudaStore.d.ts +40 -0
- package/dist/@types/base/components/centralAjuda/store/centralAjudaStore.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/utils.d.ts +21 -0
- package/dist/@types/base/components/centralAjuda/utils.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.d.ts +22 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoView.d.ts +11 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/ConteudoView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.d.ts +14 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.d.ts +10 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.d.ts +11 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.d.ts +13 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.d.ts +10 -0
- package/dist/@types/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/DuvidaView.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/DuvidaView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/duvidaSchema.d.ts +17 -0
- package/dist/@types/base/components/centralAjuda/views/Duvida/duvidaSchema.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/HomeView.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/views/Home/HomeView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ArtigosLista.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ArtigosLista.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/CategoriasGrid.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/CategoriasGrid.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/FaqAccordion.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/FaqAccordion.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/HeroBusca.d.ts +4 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/HeroBusca.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ManuaisLista.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/Home/components/ManuaisLista.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/OrbeAiView.d.ts +3 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/OrbeAiView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.d.ts +9 -0
- package/dist/@types/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/ResultadosView.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/ResultadosView.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.d.ts +25 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ListaResultados.d.ts +8 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ListaResultados.d.ts.map +1 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.d.ts +7 -0
- package/dist/@types/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +152 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/faq/config/categoria.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/categoria.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/central.d.ts +31 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/central.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/faq.d.ts +40 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/faq.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/modulo.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/modulo.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/tag.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/faq/config/tag.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/faq/index.d.ts +154 -0
- package/dist/@types/base/configs/endpoints.config/faq/index.d.ts.map +1 -0
- package/dist/@types/base/configs/faq.config.d.ts +16 -0
- package/dist/@types/base/configs/faq.config.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/submenu.faq.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/faq/submenu.faq.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/index.d.ts +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/index.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/faq/cadastros.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/cadastros.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/categoria.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/categoria.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/faq.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/faq.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/modulo.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/modulo.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/tag.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/config/tag.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/faq.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/faq/faq.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/index.d.ts +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/index.d.ts.map +1 -1
- package/dist/@types/base/hooks/faq/useAnexoFaq.d.ts +29 -0
- package/dist/@types/base/hooks/faq/useAnexoFaq.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useArtigoCentralAjuda.d.ts +12 -0
- package/dist/@types/base/hooks/faq/useArtigoCentralAjuda.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useCategoriasFaqDisponiveis.d.ts +9 -0
- package/dist/@types/base/hooks/faq/useCategoriasFaqDisponiveis.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useFaq.d.ts +9 -0
- package/dist/@types/base/hooks/faq/useFaq.d.ts.map +1 -0
- package/dist/@types/base/hooks/faq/useFaqsPublicados.d.ts +12 -0
- package/dist/@types/base/hooks/faq/useFaqsPublicados.d.ts.map +1 -0
- package/dist/@types/base/hooks/index.d.ts +4 -0
- package/dist/@types/base/hooks/index.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/en/index.d.ts +121 -0
- package/dist/@types/base/locales/lang/en/index.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/en/modules/faq/centralAjuda.d.ts +125 -0
- package/dist/@types/base/locales/lang/en/modules/faq/centralAjuda.d.ts.map +1 -0
- package/dist/@types/base/locales/lang/ptBR/index.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/ptBR/modules/faq/centralAjuda.d.ts +4 -0
- package/dist/@types/base/locales/lang/ptBR/modules/faq/centralAjuda.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/CentralAjudaService.d.ts +34 -0
- package/dist/@types/base/services/modules/faq/CentralAjudaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/FaqService.d.ts +56 -0
- package/dist/@types/base/services/modules/faq/FaqService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/categoria/CategoriaFaqService.d.ts +10 -0
- package/dist/@types/base/services/modules/faq/categoria/CategoriaFaqService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/faqAnexo.d.ts +9 -0
- package/dist/@types/base/services/modules/faq/faqAnexo.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/faqTexto.d.ts +5 -0
- package/dist/@types/base/services/modules/faq/faqTexto.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/index.d.ts +8 -0
- package/dist/@types/base/services/modules/faq/index.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/modulo/ModuloFaqService.d.ts +9 -0
- package/dist/@types/base/services/modules/faq/modulo/ModuloFaqService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/faq/tag/TagFaqService.d.ts +11 -0
- package/dist/@types/base/services/modules/faq/tag/TagFaqService.d.ts.map +1 -0
- package/dist/base/@types/models/faq/Faq.js +2 -0
- package/dist/base/@types/models/faq/Faq.js.map +1 -0
- package/dist/base/assets/styles/init.css +218 -0
- package/dist/base/components/centralAjuda/CentralAjuda.js +49 -0
- package/dist/base/components/centralAjuda/CentralAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/CentralAjudaDrawer.js +123 -0
- package/dist/base/components/centralAjuda/CentralAjudaDrawer.js.map +1 -0
- package/dist/base/components/centralAjuda/CentralAjudaPreview.js +53 -0
- package/dist/base/components/centralAjuda/CentralAjudaPreview.js.map +1 -0
- package/dist/base/components/centralAjuda/CentralAjudaToggle.js +43 -0
- package/dist/base/components/centralAjuda/CentralAjudaToggle.js.map +1 -0
- package/dist/base/components/centralAjuda/components/AnexoMoldura.js +49 -0
- package/dist/base/components/centralAjuda/components/AnexoMoldura.js.map +1 -0
- package/dist/base/components/centralAjuda/components/BlocoInerte.js +9 -0
- package/dist/base/components/centralAjuda/components/BlocoInerte.js.map +1 -0
- package/dist/base/components/centralAjuda/components/BuscaForm.js +69 -0
- package/dist/base/components/centralAjuda/components/BuscaForm.js.map +1 -0
- package/dist/base/components/centralAjuda/components/CartaoClicavel.js +51 -0
- package/dist/base/components/centralAjuda/components/CartaoClicavel.js.map +1 -0
- package/dist/base/components/centralAjuda/components/ConteudoHtml.js +134 -0
- package/dist/base/components/centralAjuda/components/ConteudoHtml.js.map +1 -0
- package/dist/base/components/centralAjuda/components/CtaAjudaCard.js +64 -0
- package/dist/base/components/centralAjuda/components/CtaAjudaCard.js.map +1 -0
- package/dist/base/components/centralAjuda/components/ErroCarregamento.js +21 -0
- package/dist/base/components/centralAjuda/components/ErroCarregamento.js.map +1 -0
- package/dist/base/components/centralAjuda/components/LinhaConteudo.js +34 -0
- package/dist/base/components/centralAjuda/components/LinhaConteudo.js.map +1 -0
- package/dist/base/components/centralAjuda/components/PainelCabecalho.js +115 -0
- package/dist/base/components/centralAjuda/components/PainelCabecalho.js.map +1 -0
- package/dist/base/components/centralAjuda/components/SkeletonConteudo.js +19 -0
- package/dist/base/components/centralAjuda/components/SkeletonConteudo.js.map +1 -0
- package/dist/base/components/centralAjuda/components/SkeletonLinhas.js +88 -0
- package/dist/base/components/centralAjuda/components/SkeletonLinhas.js.map +1 -0
- package/dist/base/components/centralAjuda/components/TipoFaqTag.js +19 -0
- package/dist/base/components/centralAjuda/components/TipoFaqTag.js.map +1 -0
- package/dist/base/components/centralAjuda/components/VoltarLink.js +30 -0
- package/dist/base/components/centralAjuda/components/VoltarLink.js.map +1 -0
- package/dist/base/components/centralAjuda/constants.js +59 -0
- package/dist/base/components/centralAjuda/constants.js.map +1 -0
- package/dist/base/components/centralAjuda/index.js +24 -0
- package/dist/base/components/centralAjuda/index.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/RotaDaAjuda.js +11 -0
- package/dist/base/components/centralAjuda/rota/RotaDaAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/ajudaPendente.js +58 -0
- package/dist/base/components/centralAjuda/rota/ajudaPendente.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/rotaAjuda.js +105 -0
- package/dist/base/components/centralAjuda/rota/rotaAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.js +30 -0
- package/dist/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useNavegarAjuda.js +48 -0
- package/dist/base/components/centralAjuda/rota/useNavegarAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.js +28 -0
- package/dist/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.js.map +1 -0
- package/dist/base/components/centralAjuda/rota/useRotaAjuda.js +11 -0
- package/dist/base/components/centralAjuda/rota/useRotaAjuda.js.map +1 -0
- package/dist/base/components/centralAjuda/store/centralAjudaStore.js +40 -0
- package/dist/base/components/centralAjuda/store/centralAjudaStore.js.map +1 -0
- package/dist/base/components/centralAjuda/utils.js +47 -0
- package/dist/base/components/centralAjuda/utils.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.js +38 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoView.js +44 -0
- package/dist/base/components/centralAjuda/views/Conteudo/ConteudoView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.js +83 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.js +34 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.js +15 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.js +66 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.js +46 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.js +52 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.js +49 -0
- package/dist/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Duvida/DuvidaView.js +181 -0
- package/dist/base/components/centralAjuda/views/Duvida/DuvidaView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Duvida/duvidaSchema.js +11 -0
- package/dist/base/components/centralAjuda/views/Duvida/duvidaSchema.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/HomeView.js +79 -0
- package/dist/base/components/centralAjuda/views/Home/HomeView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/ArtigosLista.js +41 -0
- package/dist/base/components/centralAjuda/views/Home/components/ArtigosLista.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/CategoriasGrid.js +57 -0
- package/dist/base/components/centralAjuda/views/Home/components/CategoriasGrid.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/FaqAccordion.js +84 -0
- package/dist/base/components/centralAjuda/views/Home/components/FaqAccordion.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/HeroBusca.js +42 -0
- package/dist/base/components/centralAjuda/views/Home/components/HeroBusca.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Home/components/ManuaisLista.js +41 -0
- package/dist/base/components/centralAjuda/views/Home/components/ManuaisLista.js.map +1 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/OrbeAiView.js +154 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/OrbeAiView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.js +49 -0
- package/dist/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/ResultadosView.js +137 -0
- package/dist/base/components/centralAjuda/views/Resultados/ResultadosView.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.js +81 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ListaResultados.js +24 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ListaResultados.js.map +1 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.js +36 -0
- package/dist/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.js.map +1 -0
- package/dist/base/configs/endpoints.config/endpoints.navigation.js +2 -0
- package/dist/base/configs/endpoints.config/endpoints.navigation.js.map +1 -1
- package/dist/base/configs/endpoints.config/faq/config/categoria.js +40 -0
- package/dist/base/configs/endpoints.config/faq/config/categoria.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/central.js +31 -0
- package/dist/base/configs/endpoints.config/faq/config/central.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/faq.js +44 -0
- package/dist/base/configs/endpoints.config/faq/config/faq.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/modulo.js +32 -0
- package/dist/base/configs/endpoints.config/faq/config/modulo.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/config/tag.js +40 -0
- package/dist/base/configs/endpoints.config/faq/config/tag.js.map +1 -0
- package/dist/base/configs/endpoints.config/faq/index.js +16 -0
- package/dist/base/configs/endpoints.config/faq/index.js.map +1 -0
- package/dist/base/configs/faq.config.js +9 -0
- package/dist/base/configs/faq.config.js.map +1 -0
- package/dist/base/configs/index.js +48 -44
- package/dist/base/configs/index.js.map +1 -1
- package/dist/base/configs/navigation.config/index.js +46 -42
- package/dist/base/configs/navigation.config/index.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.navigation.js +2 -0
- package/dist/base/configs/navigation.config/modules.navigation.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.js +17 -0
- package/dist/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/faq/submenu.faq.js +17 -0
- package/dist/base/configs/navigation.config/modules.submenu/faq/submenu.faq.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/index.js +4 -2
- package/dist/base/configs/navigation.config/modules.submenu/index.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/faq/cadastros.submenu.js +14 -0
- package/dist/base/configs/navigation.config/submenu/faq/cadastros.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/categoria.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/categoria.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/faq.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/faq.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/modulo.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/modulo.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/tag.submenu.js +16 -0
- package/dist/base/configs/navigation.config/submenu/faq/config/tag.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/faq/faq.submenu.js +8 -0
- package/dist/base/configs/navigation.config/submenu/faq/faq.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/index.js +4 -2
- package/dist/base/configs/navigation.config/submenu/index.js.map +1 -1
- package/dist/base/hooks/faq/useAnexoFaq.js +42 -0
- package/dist/base/hooks/faq/useAnexoFaq.js.map +1 -0
- package/dist/base/hooks/faq/useArtigoCentralAjuda.js +20 -0
- package/dist/base/hooks/faq/useArtigoCentralAjuda.js.map +1 -0
- package/dist/base/hooks/faq/useCategoriasFaqDisponiveis.js +16 -0
- package/dist/base/hooks/faq/useCategoriasFaqDisponiveis.js.map +1 -0
- package/dist/base/hooks/faq/useFaq.js +16 -0
- package/dist/base/hooks/faq/useFaq.js.map +1 -0
- package/dist/base/hooks/faq/useFaqsPublicados.js +35 -0
- package/dist/base/hooks/faq/useFaqsPublicados.js.map +1 -0
- package/dist/base/hooks/index.js +8 -0
- package/dist/base/hooks/index.js.map +1 -1
- package/dist/base/index.js +216 -204
- package/dist/base/index.js.map +1 -1
- package/dist/base/locales/index.js +1 -1
- package/dist/base/locales/index.js.map +1 -1
- package/dist/base/locales/lang/en/index.js +2 -1
- package/dist/base/locales/lang/en/index.js.map +1 -1
- package/dist/base/locales/lang/en/modules/faq/centralAjuda.js +127 -0
- package/dist/base/locales/lang/en/modules/faq/centralAjuda.js.map +1 -0
- package/dist/base/locales/lang/ptBR/index.js +2 -1
- package/dist/base/locales/lang/ptBR/index.js.map +1 -1
- package/dist/base/locales/lang/ptBR/modules/faq/centralAjuda.js +127 -0
- package/dist/base/locales/lang/ptBR/modules/faq/centralAjuda.js.map +1 -0
- package/dist/base/services/modules/faq/CentralAjudaService.js +51 -0
- package/dist/base/services/modules/faq/CentralAjudaService.js.map +1 -0
- package/dist/base/services/modules/faq/FaqService.js +171 -0
- package/dist/base/services/modules/faq/FaqService.js.map +1 -0
- package/dist/base/services/modules/faq/categoria/CategoriaFaqService.js +58 -0
- package/dist/base/services/modules/faq/categoria/CategoriaFaqService.js.map +1 -0
- package/dist/base/services/modules/faq/faqAnexo.js +21 -0
- package/dist/base/services/modules/faq/faqAnexo.js.map +1 -0
- package/dist/base/services/modules/faq/faqTexto.js +7 -0
- package/dist/base/services/modules/faq/faqTexto.js.map +1 -0
- package/dist/base/services/modules/faq/index.js +52 -0
- package/dist/base/services/modules/faq/index.js.map +1 -0
- package/dist/base/services/modules/faq/modulo/ModuloFaqService.js +51 -0
- package/dist/base/services/modules/faq/modulo/ModuloFaqService.js.map +1 -0
- package/dist/base/services/modules/faq/tag/TagFaqService.js +65 -0
- package/dist/base/services/modules/faq/tag/TagFaqService.js.map +1 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.tsx +5 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/StackedSide.tsx +6 -0
- package/lib/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.tsx +6 -0
- package/lib/@ecme/locales/lang/ptBR/nav.ts +18 -0
- package/lib/@ecme/store/localeStore.ts +1 -1
- package/lib/@ecme/views/auth/lang/index.ts +1 -1
- package/lib/base/@types/models/dm/user.ts +1 -0
- package/lib/base/@types/models/faq/Faq.ts +249 -0
- package/lib/base/components/centralAjuda/CentralAjuda.stories.tsx +161 -0
- package/lib/base/components/centralAjuda/CentralAjuda.tsx +61 -0
- package/lib/base/components/centralAjuda/CentralAjudaDrawer.tsx +153 -0
- package/lib/base/components/centralAjuda/CentralAjudaPreview.tsx +67 -0
- package/lib/base/components/centralAjuda/CentralAjudaToggle.tsx +47 -0
- package/lib/base/components/centralAjuda/__mocks__/centralAjudaExemplo.dados.ts +391 -0
- package/lib/base/components/centralAjuda/__mocks__/centralAjudaExemplo.ts +285 -0
- package/lib/base/components/centralAjuda/components/AnexoMoldura.tsx +64 -0
- package/lib/base/components/centralAjuda/components/BlocoInerte.tsx +23 -0
- package/lib/base/components/centralAjuda/components/BuscaForm.tsx +74 -0
- package/lib/base/components/centralAjuda/components/CartaoClicavel.tsx +64 -0
- package/lib/base/components/centralAjuda/components/ConteudoHtml.tsx +209 -0
- package/lib/base/components/centralAjuda/components/CtaAjudaCard.tsx +67 -0
- package/lib/base/components/centralAjuda/components/ErroCarregamento.tsx +31 -0
- package/lib/base/components/centralAjuda/components/LinhaConteudo.tsx +51 -0
- package/lib/base/components/centralAjuda/components/PainelCabecalho.tsx +147 -0
- package/lib/base/components/centralAjuda/components/SkeletonConteudo.tsx +22 -0
- package/lib/base/components/centralAjuda/components/SkeletonLinhas.tsx +110 -0
- package/lib/base/components/centralAjuda/components/TipoFaqTag.tsx +28 -0
- package/lib/base/components/centralAjuda/components/VoltarLink.tsx +28 -0
- package/lib/base/components/centralAjuda/constants.ts +79 -0
- package/lib/base/components/centralAjuda/index.ts +19 -0
- package/lib/base/components/centralAjuda/rota/RotaDaAjuda.tsx +15 -0
- package/lib/base/components/centralAjuda/rota/ajudaPendente.ts +103 -0
- package/lib/base/components/centralAjuda/rota/rotaAjuda.ts +170 -0
- package/lib/base/components/centralAjuda/rota/useManterAjudaEntrePaginas.ts +42 -0
- package/lib/base/components/centralAjuda/rota/useNavegarAjuda.ts +79 -0
- package/lib/base/components/centralAjuda/rota/useReabrirAjudaAposLogin.ts +38 -0
- package/lib/base/components/centralAjuda/rota/useRotaAjuda.ts +11 -0
- package/lib/base/components/centralAjuda/store/centralAjudaStore.ts +66 -0
- package/lib/base/components/centralAjuda/utils.ts +75 -0
- package/lib/base/components/centralAjuda/views/Conteudo/ConteudoDetalhe.tsx +58 -0
- package/lib/base/components/centralAjuda/views/Conteudo/ConteudoView.tsx +63 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexoItem.tsx +100 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoAnexos.tsx +48 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoArtigo.tsx +27 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoFeedback.tsx +94 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoLateral.tsx +49 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoRelacionados.tsx +65 -0
- package/lib/base/components/centralAjuda/views/Conteudo/components/ConteudoTrilha.tsx +53 -0
- package/lib/base/components/centralAjuda/views/Duvida/DuvidaView.tsx +196 -0
- package/lib/base/components/centralAjuda/views/Duvida/duvidaSchema.ts +19 -0
- package/lib/base/components/centralAjuda/views/Home/HomeView.tsx +96 -0
- package/lib/base/components/centralAjuda/views/Home/components/ArtigosLista.tsx +60 -0
- package/lib/base/components/centralAjuda/views/Home/components/CategoriasGrid.tsx +64 -0
- package/lib/base/components/centralAjuda/views/Home/components/FaqAccordion.tsx +100 -0
- package/lib/base/components/centralAjuda/views/Home/components/HeroBusca.tsx +44 -0
- package/lib/base/components/centralAjuda/views/Home/components/ManuaisLista.tsx +60 -0
- package/lib/base/components/centralAjuda/views/OrbeAi/OrbeAiView.tsx +175 -0
- package/lib/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.tsx +69 -0
- package/lib/base/components/centralAjuda/views/Resultados/ResultadosView.tsx +177 -0
- package/lib/base/components/centralAjuda/views/Resultados/components/FiltrosResultados.tsx +110 -0
- package/lib/base/components/centralAjuda/views/Resultados/components/ListaResultados.tsx +34 -0
- package/lib/base/components/centralAjuda/views/Resultados/components/ResultadosVazio.tsx +53 -0
- package/lib/base/configs/endpoints.config/endpoints.navigation.ts +2 -0
- package/lib/base/configs/endpoints.config/faq/config/categoria.ts +40 -0
- package/lib/base/configs/endpoints.config/faq/config/central.ts +37 -0
- package/lib/base/configs/endpoints.config/faq/config/faq.ts +43 -0
- package/lib/base/configs/endpoints.config/faq/config/modulo.ts +32 -0
- package/lib/base/configs/endpoints.config/faq/config/tag.ts +40 -0
- package/lib/base/configs/endpoints.config/faq/index.ts +15 -0
- package/lib/base/configs/faq.config.ts +16 -0
- package/lib/base/configs/navigation.config/modules.navigation.ts +2 -0
- package/lib/base/configs/navigation.config/modules.submenu/faq/cadastros/submenu.cadastro.ts +17 -0
- package/lib/base/configs/navigation.config/modules.submenu/faq/submenu.faq.ts +18 -0
- package/lib/base/configs/navigation.config/modules.submenu/index.ts +1 -0
- package/lib/base/configs/navigation.config/submenu/faq/cadastros.submenu.ts +14 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/categoria.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/faq.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/modulo.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/config/tag.submenu.ts +16 -0
- package/lib/base/configs/navigation.config/submenu/faq/faq.submenu.ts +8 -0
- package/lib/base/configs/navigation.config/submenu/index.ts +1 -0
- package/lib/base/hooks/faq/useAnexoFaq.tsx +79 -0
- package/lib/base/hooks/faq/useArtigoCentralAjuda.tsx +25 -0
- package/lib/base/hooks/faq/useCategoriasFaqDisponiveis.tsx +16 -0
- package/lib/base/hooks/faq/useFaq.tsx +16 -0
- package/lib/base/hooks/faq/useFaqsPublicados.tsx +45 -0
- package/lib/base/hooks/index.ts +5 -1
- package/lib/base/locales/index.ts +1 -1
- package/lib/base/locales/lang/en/index.ts +2 -1
- package/lib/base/locales/lang/en/modules/faq/centralAjuda.ts +129 -0
- package/lib/base/locales/lang/ptBR/index.ts +2 -1
- package/lib/base/locales/lang/ptBR/modules/faq/centralAjuda.ts +131 -0
- package/lib/base/services/modules/faq/CentralAjudaService.ts +92 -0
- package/lib/base/services/modules/faq/FaqService.ts +235 -0
- package/lib/base/services/modules/faq/categoria/CategoriaFaqService.ts +62 -0
- package/lib/base/services/modules/faq/faqAnexo.ts +23 -0
- package/lib/base/services/modules/faq/faqTexto.ts +12 -0
- package/lib/base/services/modules/faq/index.ts +7 -0
- package/lib/base/services/modules/faq/modulo/ModuloFaqService.ts +56 -0
- package/lib/base/services/modules/faq/tag/TagFaqService.ts +70 -0
- package/package.json +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.js +0 -25
- package/dist/@ecme/components/layouts/PostLoginLayout/components/CollapsibleSide.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.js +0 -22
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.js +0 -22
- package/dist/@ecme/components/layouts/PostLoginLayout/components/FrameLessSide.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.js +0 -25
- package/dist/@ecme/components/layouts/PostLoginLayout/components/StackedSide.stories.js.map +0 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.js +0 -25
- package/dist/@ecme/components/layouts/PostLoginLayout/components/TopBarClassic.stories.js.map +0 -1
- package/dist/@ecme/components/template/Header.stories.js +0 -42
- package/dist/@ecme/components/template/Header.stories.js.map +0 -1
- package/dist/@ecme/components/template/Search.stories.js +0 -76
- package/dist/@ecme/components/template/Search.stories.js.map +0 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.js +0 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.stories.js.map +0 -1
- package/dist/@ecme/components/ui/Button/Button.stories.js +0 -17
- package/dist/@ecme/components/ui/Button/Button.stories.js.map +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Avatar } from "../../../../../../@ecme/components/ui/Avatar/index.js";
|
|
4
|
+
import "../../../../../../@ecme/components/ui/Button/index.js";
|
|
5
|
+
import { TbMinus, TbPlus } from "react-icons/tb";
|
|
6
|
+
import { useTranslation } from "react-i18next";
|
|
7
|
+
import useFaq from "../../../../../hooks/faq/useFaq.js";
|
|
8
|
+
import ConteudoHtml from "../../../components/ConteudoHtml.js";
|
|
9
|
+
import ErroCarregamento from "../../../components/ErroCarregamento.js";
|
|
10
|
+
import SkeletonLinhas from "../../../components/SkeletonLinhas.js";
|
|
11
|
+
import { LIMITE_FAQS_HOME } from "../../../constants.js";
|
|
12
|
+
import useNavegarAjuda from "../../../rota/useNavegarAjuda.js";
|
|
13
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../../../utils.js";
|
|
14
|
+
import Button from "../../../../../../@ecme/components/ui/Button/Button.js";
|
|
15
|
+
const RespostaFaq = ({ pergunta }) => {
|
|
16
|
+
const { id } = pergunta;
|
|
17
|
+
const { t } = useTranslation();
|
|
18
|
+
const { abrirConteudo } = useNavegarAjuda();
|
|
19
|
+
const { faq, isLoading, error, mutate } = useFaq(id);
|
|
20
|
+
return /* @__PURE__ */ jsxs(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
id: `central-ajuda-faq-${id}`,
|
|
24
|
+
className: "flex flex-col gap-2 pb-6",
|
|
25
|
+
children: [
|
|
26
|
+
isLoading && /* @__PURE__ */ jsx(SkeletonLinhas, { variante: "texto", quantidade: 3 }),
|
|
27
|
+
error && /* @__PURE__ */ jsx(ErroCarregamento, { onTentarNovamente: () => mutate() }),
|
|
28
|
+
faq && /* @__PURE__ */ jsx(ConteudoHtml, { html: faq.conteudo }),
|
|
29
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
30
|
+
Button,
|
|
31
|
+
{
|
|
32
|
+
variant: "plain",
|
|
33
|
+
size: "sm",
|
|
34
|
+
className: "px-0 text-primary",
|
|
35
|
+
onClick: () => abrirConteudo(pergunta),
|
|
36
|
+
children: t(
|
|
37
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.home.abrirRespostaCompleta`
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
) })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
const FaqAccordion = ({ faqs, carregando }) => {
|
|
46
|
+
const [abertaId, setAbertaId] = useState(null);
|
|
47
|
+
if (carregando) {
|
|
48
|
+
return /* @__PURE__ */ jsx(SkeletonLinhas, { variante: "pergunta", quantidade: LIMITE_FAQS_HOME });
|
|
49
|
+
}
|
|
50
|
+
return /* @__PURE__ */ jsx("ul", { className: "divide-y divide-gray-200 dark:divide-gray-700", children: faqs.map((faq) => {
|
|
51
|
+
const aberta = abertaId === faq.id;
|
|
52
|
+
return /* @__PURE__ */ jsxs("li", { children: [
|
|
53
|
+
/* @__PURE__ */ jsxs(
|
|
54
|
+
Button,
|
|
55
|
+
{
|
|
56
|
+
block: true,
|
|
57
|
+
variant: "plain",
|
|
58
|
+
clickFeedback: false,
|
|
59
|
+
"aria-expanded": aberta,
|
|
60
|
+
"aria-controls": `central-ajuda-faq-${faq.id}`,
|
|
61
|
+
className: "group flex items-center justify-between gap-4 !whitespace-normal !rounded-none !h-auto !px-0 !py-6 text-left",
|
|
62
|
+
onClick: () => setAbertaId(aberta ? null : faq.id),
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx("span", { className: "h6 font-bold transition-colors group-hover:text-primary", children: faq.titulo }),
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
Avatar,
|
|
67
|
+
{
|
|
68
|
+
size: 32,
|
|
69
|
+
shape: "circle",
|
|
70
|
+
className: "shrink-0 bg-gray-100 dark:bg-gray-700",
|
|
71
|
+
icon: aberta ? /* @__PURE__ */ jsx(TbMinus, { className: "heading-text" }) : /* @__PURE__ */ jsx(TbPlus, { className: "heading-text" })
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
aberta && /* @__PURE__ */ jsx(RespostaFaq, { pergunta: faq })
|
|
78
|
+
] }, faq.id);
|
|
79
|
+
}) });
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
FaqAccordion as default
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=FaqAccordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FaqAccordion.js","sources":["../../../../../../../lib/base/components/centralAjuda/views/Home/components/FaqAccordion.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Avatar from '@/components/ui/Avatar'\nimport Button from '@/components/ui/Button'\nimport { TbMinus, TbPlus } from 'react-icons/tb'\nimport { useTranslation } from 'react-i18next'\nimport type { TFaqResumo } from '@base/@types/models/faq/Faq'\nimport useFaq from '@base/hooks/faq/useFaq'\nimport ConteudoHtml from '../../../components/ConteudoHtml'\nimport ErroCarregamento from '../../../components/ErroCarregamento'\nimport SkeletonLinhas from '../../../components/SkeletonLinhas'\nimport { LIMITE_FAQS_HOME } from '../../../constants'\nimport useNavegarAjuda from '../../../rota/useNavegarAjuda'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../../../utils'\n\n/** Carrega a resposta só quando o item é expandido (GET /faq/{id}). */\nconst RespostaFaq = ({ pergunta }: { pergunta: TFaqResumo }) => {\n const { id } = pergunta\n const { t } = useTranslation()\n const { abrirConteudo } = useNavegarAjuda()\n const { faq, isLoading, error, mutate } = useFaq(id)\n\n return (\n <div\n id={`central-ajuda-faq-${id}`}\n className=\"flex flex-col gap-2 pb-6\"\n >\n {isLoading && <SkeletonLinhas variante=\"texto\" quantidade={3} />}\n {error && <ErroCarregamento onTentarNovamente={() => mutate()} />}\n {faq && <ConteudoHtml html={faq.conteudo} />}\n <div>\n <Button\n variant=\"plain\"\n size=\"sm\"\n className=\"px-0 text-primary\"\n onClick={() => abrirConteudo(pergunta)}\n >\n {t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.home.abrirRespostaCompleta`,\n )}\n </Button>\n </div>\n </div>\n )\n}\n\ntype FaqAccordionProps = {\n faqs: TFaqResumo[]\n carregando: boolean\n}\n\n/** Perguntas frequentes em linhas (estilo \"Popular Articles\" do Support Hub), expansíveis. */\nconst FaqAccordion = ({ faqs, carregando }: FaqAccordionProps) => {\n const [abertaId, setAbertaId] = useState<number | null>(null)\n\n if (carregando) {\n return (\n <SkeletonLinhas variante=\"pergunta\" quantidade={LIMITE_FAQS_HOME} />\n )\n }\n\n return (\n <ul className=\"divide-y divide-gray-200 dark:divide-gray-700\">\n {faqs.map((faq) => {\n const aberta = abertaId === faq.id\n return (\n <li key={faq.id}>\n <Button\n block\n variant=\"plain\"\n clickFeedback={false}\n aria-expanded={aberta}\n aria-controls={`central-ajuda-faq-${faq.id}`}\n className=\"group flex items-center justify-between gap-4 !whitespace-normal !rounded-none !h-auto !px-0 !py-6 text-left\"\n onClick={() => setAbertaId(aberta ? null : faq.id)}\n >\n <span className=\"h6 font-bold transition-colors group-hover:text-primary\">\n {faq.titulo}\n </span>\n <Avatar\n size={32}\n shape=\"circle\"\n className=\"shrink-0 bg-gray-100 dark:bg-gray-700\"\n icon={\n aberta ? (\n <TbMinus className=\"heading-text\" />\n ) : (\n <TbPlus className=\"heading-text\" />\n )\n }\n />\n </Button>\n {aberta && <RespostaFaq pergunta={faq} />}\n </li>\n )\n })}\n </ul>\n )\n}\n\nexport default FaqAccordion\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,MAAM,cAAc,CAAC,EAAE,eAAyC;AAC5D,QAAM,EAAE,OAAO;AACf,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,EAAE,cAAA,IAAkB,gB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ACT;AAAA,YACA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,MAAM;AAAA,gBACN,OAAM;AAAA,gBACN,WAAU;AAAA,gBACV,MACI,SACI,oBAAC,SAAA,EAAQ,WAAU,gBAAe,IAElC,oBAAC,QAAA,EAAO,WAAU,eAAA,CAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UAG7C;AAAA,QAAA;AAAA,MAAA;AAAA,MAEH,UAAU,oBAAC,aAAA,EAAY,UAAU,IAAA,CAAK;AAAA,IAAA,EAAA,GA1BlC,IAAI,EA2Bb;AAAA,EAER,CAAC,EAAA,CACL;AAER;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../../../@ecme/components/ui/Button/index.js";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import BuscaForm from "../../../components/BuscaForm.js";
|
|
5
|
+
import { BUSCAS_COMUNS } from "../../../constants.js";
|
|
6
|
+
import useNavegarAjuda from "../../../rota/useNavegarAjuda.js";
|
|
7
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../../../utils.js";
|
|
8
|
+
import Button from "../../../../../../@ecme/components/ui/Button/Button.js";
|
|
9
|
+
const HeroBusca = () => {
|
|
10
|
+
const { t } = useTranslation();
|
|
11
|
+
const { buscar } = useNavegarAjuda();
|
|
12
|
+
return /* @__PURE__ */ jsxs("section", { className: "flex min-h-[300px] flex-col items-center justify-center rounded-b-2xl bg-gradient-to-tr from-cyan-100 via-violet-100 to-fuchsia-100 px-6 py-10 text-center dark:from-cyan-500 dark:via-violet-500 dark:to-fuchsia-500", children: [
|
|
13
|
+
/* @__PURE__ */ jsx("h1", { className: "h2 mb-6", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.home.titulo`) }),
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
BuscaForm,
|
|
16
|
+
{
|
|
17
|
+
id: "central-ajuda-busca-home",
|
|
18
|
+
busca: "",
|
|
19
|
+
variante: "destaque",
|
|
20
|
+
className: "max-w-[800px]",
|
|
21
|
+
onBuscar: buscar
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-5 flex flex-wrap items-center justify-center gap-2", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("span", { className: "text-gray-900 dark:text-gray-100", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.comuns`) }),
|
|
26
|
+
BUSCAS_COMUNS.map((item) => /* @__PURE__ */ jsx(
|
|
27
|
+
Button,
|
|
28
|
+
{
|
|
29
|
+
size: "sm",
|
|
30
|
+
shape: "circle",
|
|
31
|
+
onClick: () => buscar(item.busca),
|
|
32
|
+
children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.${item.chave}`)
|
|
33
|
+
},
|
|
34
|
+
item.chave
|
|
35
|
+
))
|
|
36
|
+
] })
|
|
37
|
+
] });
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
HeroBusca as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=HeroBusca.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroBusca.js","sources":["../../../../../../../lib/base/components/centralAjuda/views/Home/components/HeroBusca.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { useTranslation } from 'react-i18next'\nimport BuscaForm from '../../../components/BuscaForm'\nimport { BUSCAS_COMUNS } from '../../../constants'\nimport useNavegarAjuda from '../../../rota/useNavegarAjuda'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../../../utils'\n\n/** Topo da Central no estilo do Support Hub: faixa em degradê com a busca. */\nconst HeroBusca = () => {\n const { t } = useTranslation()\n const { buscar } = useNavegarAjuda()\n\n return (\n <section className=\"flex min-h-[300px] flex-col items-center justify-center rounded-b-2xl bg-gradient-to-tr from-cyan-100 via-violet-100 to-fuchsia-100 px-6 py-10 text-center dark:from-cyan-500 dark:via-violet-500 dark:to-fuchsia-500\">\n <h1 className=\"h2 mb-6\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.home.titulo`)}\n </h1>\n <BuscaForm\n id=\"central-ajuda-busca-home\"\n busca=\"\"\n variante=\"destaque\"\n className=\"max-w-[800px]\"\n onBuscar={buscar}\n />\n <div className=\"mt-5 flex flex-wrap items-center justify-center gap-2\">\n <span className=\"text-gray-900 dark:text-gray-100\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.comuns`)}\n </span>\n {BUSCAS_COMUNS.map((item) => (\n <Button\n key={item.chave}\n size=\"sm\"\n shape=\"circle\"\n onClick={() => buscar(item.busca)}\n >\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.busca.${item.chave}`)}\n </Button>\n ))}\n </div>\n </section>\n )\n}\n\nexport default HeroBusca\n"],"names":[],"mappings":";;;;;;;;AAQA,MAAM,YAAY,MAAM;AACpB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,EAAE,OAAA,IAAW,gBAAA;AAEnB,SACI,qBAAC,WAAA,EAAQ,WAAU,yNACf,UAAA;AAAA,IAAA,oBAAC,QAAG,WAAU,WACT,YAAE,GAAG,0BAA0B,cAAc,EAAA,CAClD;AAAA,IACA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,IAAG;AAAA,QACH,OAAM;AAAA,QACN,UAAS;AAAA,QACT,WAAU;AAAA,QACV,UAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEd,qBAAC,OAAA,EAAI,WAAU,yDACX,UAAA;AAAA,MAAA,oBAAC,UAAK,WAAU,oCACX,YAAE,GAAG,0BAA0B,eAAe,EAAA,CACnD;AAAA,MACC,cAAc,IAAI,CAAC,SAChB;AAAA,QAAC;AAAA,QAAA;AAAA,UAEG,MAAK;AAAA,UACL,OAAM;AAAA,UACN,SAAS,MAAM,OAAO,KAAK,KAAK;AAAA,UAE/B,YAAE,GAAG,0BAA0B,UAAU,KAAK,KAAK,EAAE;AAAA,QAAA;AAAA,QALjD,KAAK;AAAA,MAAA,CAOjB;AAAA,IAAA,EAAA,CACL;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../../../@ecme/components/ui/Button/index.js";
|
|
3
|
+
import { LuBookOpenText } from "react-icons/lu";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import LinhaConteudo from "../../../components/LinhaConteudo.js";
|
|
6
|
+
import SkeletonLinhas from "../../../components/SkeletonLinhas.js";
|
|
7
|
+
import { LIMITE_MANUAIS_HOME } from "../../../constants.js";
|
|
8
|
+
import useNavegarAjuda from "../../../rota/useNavegarAjuda.js";
|
|
9
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA, metaDoConteudo } from "../../../utils.js";
|
|
10
|
+
import Button from "../../../../../../@ecme/components/ui/Button/Button.js";
|
|
11
|
+
const ManuaisLista = ({ manuais, carregando }) => {
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
const { abrirConteudo, verTipo } = useNavegarAjuda();
|
|
14
|
+
if (!carregando && manuais.length === 0) return null;
|
|
15
|
+
return /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-2 pt-12", children: [
|
|
16
|
+
/* @__PURE__ */ jsx("h2", { className: "h3", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.home.manuais`) }),
|
|
17
|
+
carregando ? /* @__PURE__ */ jsx(SkeletonLinhas, { quantidade: LIMITE_MANUAIS_HOME }) : /* @__PURE__ */ jsx("ul", { className: "divide-y divide-gray-200 dark:divide-gray-700", children: manuais.map((manual) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
18
|
+
LinhaConteudo,
|
|
19
|
+
{
|
|
20
|
+
icone: LuBookOpenText,
|
|
21
|
+
titulo: manual.titulo,
|
|
22
|
+
meta: metaDoConteudo(manual),
|
|
23
|
+
onClick: () => abrirConteudo(manual)
|
|
24
|
+
}
|
|
25
|
+
) }, manual.id)) }),
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-end justify-end gap-4", children: /* @__PURE__ */ jsx(
|
|
27
|
+
Button,
|
|
28
|
+
{
|
|
29
|
+
variant: "plain",
|
|
30
|
+
size: "sm",
|
|
31
|
+
className: "px-0 text-primary",
|
|
32
|
+
onClick: () => verTipo("MANUAL"),
|
|
33
|
+
children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.home.verTodosManuais`)
|
|
34
|
+
}
|
|
35
|
+
) })
|
|
36
|
+
] });
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
ManuaisLista as default
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=ManuaisLista.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManuaisLista.js","sources":["../../../../../../../lib/base/components/centralAjuda/views/Home/components/ManuaisLista.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { LuBookOpenText } from 'react-icons/lu'\nimport { useTranslation } from 'react-i18next'\nimport type { TFaqResumo } from '@base/@types/models/faq/Faq'\nimport LinhaConteudo from '../../../components/LinhaConteudo'\nimport SkeletonLinhas from '../../../components/SkeletonLinhas'\nimport { LIMITE_MANUAIS_HOME } from '../../../constants'\nimport useNavegarAjuda from '../../../rota/useNavegarAjuda'\nimport { metaDoConteudo, PREFIXO_I18N_CENTRAL_AJUDA } from '../../../utils'\n\n\ntype ManuaisListaProps = {\n manuais: TFaqResumo[]\n carregando: boolean\n}\n\n/** Manuais em linhas, no estilo \"Popular Articles\" do Support Hub. */\nconst ManuaisLista = ({ manuais, carregando }: ManuaisListaProps) => {\n const { t } = useTranslation()\n const { abrirConteudo, verTipo } = useNavegarAjuda()\n\n if (!carregando && manuais.length === 0) return null\n\n return (\n <section className=\"flex flex-col gap-2 pt-12\">\n <h2 className=\"h3\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.home.manuais`)}\n </h2>\n {carregando ? (\n <SkeletonLinhas quantidade={LIMITE_MANUAIS_HOME} />\n ) : (\n <ul className=\"divide-y divide-gray-200 dark:divide-gray-700\">\n {manuais.map((manual) => (\n <li key={manual.id}>\n <LinhaConteudo\n icone={LuBookOpenText}\n titulo={manual.titulo}\n meta={metaDoConteudo(manual)}\n onClick={() => abrirConteudo(manual)}\n />\n </li>\n ))}\n </ul>\n )}\n\n <div className=\"flex flex-wrap items-end justify-end gap-4\">\n <Button\n variant=\"plain\"\n size=\"sm\"\n className=\"px-0 text-primary\"\n onClick={() => verTipo('MANUAL')}\n >\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.home.verTodosManuais`)}\n </Button>\n </div>\n </section>\n )\n}\n\nexport default ManuaisLista\n"],"names":[],"mappings":";;;;;;;;;;AAiBA,MAAM,eAAe,CAAC,EAAE,SAAS,iBAAoC;AACjE,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,EAAE,eAAe,QAAA,IAAY,gBAAA;AAEnC,MAAI,CAAC,cAAc,QAAQ,WAAW,EAAG,QAAO;AAEhD,SACI,qBAAC,WAAA,EAAQ,WAAU,6BACf,UAAA;AAAA,IAAA,oBAAC,QAAG,WAAU,MACT,YAAE,GAAG,0BAA0B,eAAe,EAAA,CACnD;AAAA,IACC,aACG,oBAAC,gBAAA,EAAe,YAAY,qBAAqB,IAEjD,oBAAC,MAAA,EAAG,WAAU,iDACT,UAAA,QAAQ,IAAI,CAAC,+BACT,MAAA,EACG,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,OAAO;AAAA,QACP,QAAQ,OAAO;AAAA,QACf,MAAM,eAAe,MAAM;AAAA,QAC3B,SAAS,MAAM,cAAc,MAAM;AAAA,MAAA;AAAA,IAAA,EACvC,GANK,OAAO,EAOhB,CACH,GACL;AAAA,IAGJ,oBAAC,OAAA,EAAI,WAAU,8CACX,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS,MAAM,QAAQ,QAAQ;AAAA,QAE9B,UAAA,EAAE,GAAG,0BAA0B,uBAAuB;AAAA,MAAA;AAAA,IAAA,EAC3D,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
|
+
import "../../../../../@ecme/components/ui/Button/index.js";
|
|
4
|
+
import "../../../../../@ecme/components/ui/Card/index.js";
|
|
5
|
+
import "../../../../../@ecme/components/view/ChatBox/index.js";
|
|
6
|
+
import StartConverstation from "../../../../../@ecme/assets/svg/StartConverstation.js";
|
|
7
|
+
import { TbMessageChatbot } from "react-icons/tb";
|
|
8
|
+
import { useTranslation } from "react-i18next";
|
|
9
|
+
import { centralAjudaService } from "../../../../services/modules/faq/CentralAjudaService.js";
|
|
10
|
+
import VoltarLink from "../../components/VoltarLink.js";
|
|
11
|
+
import { SUGESTOES_ORBE_AI } from "../../constants.js";
|
|
12
|
+
import { useCentralAjudaStore } from "../../store/centralAjudaStore.js";
|
|
13
|
+
import useNavegarAjuda from "../../rota/useNavegarAjuda.js";
|
|
14
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../../utils.js";
|
|
15
|
+
import RespostaOrbeAi from "./components/RespostaOrbeAi.js";
|
|
16
|
+
import Card from "../../../../../@ecme/components/ui/Card/Card.js";
|
|
17
|
+
import ChatBox from "../../../../../@ecme/components/view/ChatBox/ChatBox.js";
|
|
18
|
+
import Button from "../../../../../@ecme/components/ui/Button/Button.js";
|
|
19
|
+
const ORBE_AI = { id: "orbe-ai", name: "OrbeAI" };
|
|
20
|
+
const OrbeAiView = () => {
|
|
21
|
+
const { t } = useTranslation();
|
|
22
|
+
const { abrirDuvida } = useNavegarAjuda();
|
|
23
|
+
const perguntaIa = useCentralAjudaStore((state) => state.perguntaIa);
|
|
24
|
+
const consumirPerguntaIa = useCentralAjudaStore(
|
|
25
|
+
(state) => state.consumirPerguntaIa
|
|
26
|
+
);
|
|
27
|
+
const [mensagens, setMensagens] = useState([]);
|
|
28
|
+
const [pensando, setPensando] = useState(false);
|
|
29
|
+
const [ultimaPergunta, setUltimaPergunta] = useState("");
|
|
30
|
+
const ativo = useRef(true);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
ativo.current = true;
|
|
33
|
+
return () => {
|
|
34
|
+
ativo.current = false;
|
|
35
|
+
};
|
|
36
|
+
}, []);
|
|
37
|
+
const perguntar = useCallback(
|
|
38
|
+
async (texto) => {
|
|
39
|
+
const pergunta = texto.trim();
|
|
40
|
+
if (!pergunta || pensando) return;
|
|
41
|
+
setUltimaPergunta(pergunta);
|
|
42
|
+
setMensagens((anteriores) => [
|
|
43
|
+
...anteriores,
|
|
44
|
+
{
|
|
45
|
+
id: `usuario-${Date.now()}`,
|
|
46
|
+
sender: {
|
|
47
|
+
id: "usuario",
|
|
48
|
+
name: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.voce`)
|
|
49
|
+
},
|
|
50
|
+
content: pergunta,
|
|
51
|
+
type: "regular",
|
|
52
|
+
isMyMessage: true,
|
|
53
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
54
|
+
}
|
|
55
|
+
]);
|
|
56
|
+
setPensando(true);
|
|
57
|
+
try {
|
|
58
|
+
const resposta = await centralAjudaService.perguntarOrbeAi(pergunta);
|
|
59
|
+
if (!ativo.current) return;
|
|
60
|
+
setMensagens((anteriores) => [
|
|
61
|
+
...anteriores,
|
|
62
|
+
{
|
|
63
|
+
id: `orbe-ai-${Date.now()}`,
|
|
64
|
+
sender: ORBE_AI,
|
|
65
|
+
content: /* @__PURE__ */ jsx(RespostaOrbeAi, { resposta, pergunta }),
|
|
66
|
+
type: "regular",
|
|
67
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
68
|
+
}
|
|
69
|
+
]);
|
|
70
|
+
} finally {
|
|
71
|
+
if (ativo.current) setPensando(false);
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
[pensando, t]
|
|
75
|
+
);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (perguntaIa) {
|
|
78
|
+
consumirPerguntaIa();
|
|
79
|
+
perguntar(perguntaIa);
|
|
80
|
+
}
|
|
81
|
+
}, [perguntaIa, consumirPerguntaIa, perguntar]);
|
|
82
|
+
const recomecar = () => {
|
|
83
|
+
setMensagens([]);
|
|
84
|
+
setUltimaPergunta("");
|
|
85
|
+
};
|
|
86
|
+
const vazio = mensagens.length === 0;
|
|
87
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
88
|
+
/* @__PURE__ */ jsx(VoltarLink, {}),
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
90
|
+
/* @__PURE__ */ jsx(TbMessageChatbot, { "aria-hidden": true, className: "text-3xl text-primary" }),
|
|
91
|
+
/* @__PURE__ */ jsx("h1", { className: "h3", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.titulo`) })
|
|
92
|
+
] }),
|
|
93
|
+
/* @__PURE__ */ jsx(Card, { bodyClass: "p-4", children: /* @__PURE__ */ jsx(
|
|
94
|
+
ChatBox,
|
|
95
|
+
{
|
|
96
|
+
messageList: mensagens,
|
|
97
|
+
showMessageList: !vazio,
|
|
98
|
+
showAvatar: false,
|
|
99
|
+
typing: pensando ? ORBE_AI : false,
|
|
100
|
+
placeholder: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.placeholder`),
|
|
101
|
+
containerClass: "h-[60vh] min-h-[420px] gap-4",
|
|
102
|
+
onInputChange: ({ value }) => perguntar(value),
|
|
103
|
+
children: vazio && /* @__PURE__ */ jsxs("div", { className: "flex grow flex-col items-start justify-center gap-3 px-2", children: [
|
|
104
|
+
/* @__PURE__ */ jsx(StartConverstation, { height: 120, width: 120 }),
|
|
105
|
+
/* @__PURE__ */ jsx("h2", { className: "h5", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.vazioTitulo`) }),
|
|
106
|
+
/* @__PURE__ */ jsx("p", { className: "max-w-[56ch] text-gray-500 dark:text-gray-400", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.vazioTexto`) }),
|
|
107
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col items-start gap-0.5", children: SUGESTOES_ORBE_AI.map((chave) => {
|
|
108
|
+
const sugestao = t(
|
|
109
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.${chave}`
|
|
110
|
+
);
|
|
111
|
+
return /* @__PURE__ */ jsx(
|
|
112
|
+
Button,
|
|
113
|
+
{
|
|
114
|
+
variant: "plain",
|
|
115
|
+
size: "sm",
|
|
116
|
+
className: "px-0 text-primary",
|
|
117
|
+
onClick: () => perguntar(sugestao),
|
|
118
|
+
children: sugestao
|
|
119
|
+
},
|
|
120
|
+
chave
|
|
121
|
+
);
|
|
122
|
+
}) })
|
|
123
|
+
] })
|
|
124
|
+
}
|
|
125
|
+
) }),
|
|
126
|
+
!vazio && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4", children: [
|
|
127
|
+
/* @__PURE__ */ jsx(
|
|
128
|
+
Button,
|
|
129
|
+
{
|
|
130
|
+
variant: "plain",
|
|
131
|
+
size: "sm",
|
|
132
|
+
className: "px-0 text-primary",
|
|
133
|
+
disabled: pensando,
|
|
134
|
+
onClick: recomecar,
|
|
135
|
+
children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.outraPergunta`)
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ jsx(
|
|
139
|
+
Button,
|
|
140
|
+
{
|
|
141
|
+
variant: "plain",
|
|
142
|
+
size: "sm",
|
|
143
|
+
className: "px-0 text-primary",
|
|
144
|
+
onClick: () => abrirDuvida(ultimaPergunta),
|
|
145
|
+
children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.naoResolveu`)
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] })
|
|
149
|
+
] });
|
|
150
|
+
};
|
|
151
|
+
export {
|
|
152
|
+
OrbeAiView as default
|
|
153
|
+
};
|
|
154
|
+
//# sourceMappingURL=OrbeAiView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrbeAiView.js","sources":["../../../../../../lib/base/components/centralAjuda/views/OrbeAi/OrbeAiView.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from 'react'\nimport Button from '@/components/ui/Button'\nimport Card from '@/components/ui/Card'\nimport ChatBox from '@/components/view/ChatBox'\nimport type { MessageList } from '@/components/view/ChatBox'\nimport StartConverstation from '@/assets/svg/StartConverstation'\nimport { TbMessageChatbot } from 'react-icons/tb'\nimport { useTranslation } from 'react-i18next'\nimport { centralAjudaService } from '@base/services/modules/faq/CentralAjudaService'\nimport VoltarLink from '../../components/VoltarLink'\nimport { SUGESTOES_ORBE_AI } from '../../constants'\nimport { useCentralAjudaStore } from '../../store/centralAjudaStore'\nimport useNavegarAjuda from '../../rota/useNavegarAjuda'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../../utils'\nimport RespostaOrbeAi from './components/RespostaOrbeAi'\n\nconst ORBE_AI = { id: 'orbe-ai', name: 'OrbeAI' }\n\nconst OrbeAiView = () => {\n const { t } = useTranslation()\n const { abrirDuvida } = useNavegarAjuda()\n const perguntaIa = useCentralAjudaStore((state) => state.perguntaIa)\n const consumirPerguntaIa = useCentralAjudaStore(\n (state) => state.consumirPerguntaIa,\n )\n\n const [mensagens, setMensagens] = useState<MessageList>([])\n const [pensando, setPensando] = useState(false)\n const [ultimaPergunta, setUltimaPergunta] = useState('')\n const ativo = useRef(true)\n\n useEffect(() => {\n ativo.current = true\n return () => {\n ativo.current = false\n }\n }, [])\n\n const perguntar = useCallback(\n async (texto: string) => {\n const pergunta = texto.trim()\n if (!pergunta || pensando) return\n\n setUltimaPergunta(pergunta)\n setMensagens((anteriores) => [\n ...anteriores,\n {\n id: `usuario-${Date.now()}`,\n sender: {\n id: 'usuario',\n name: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.voce`),\n },\n content: pergunta,\n type: 'regular',\n isMyMessage: true,\n timestamp: new Date(),\n },\n ])\n setPensando(true)\n\n try {\n const resposta = await centralAjudaService.perguntarOrbeAi(pergunta)\n if (!ativo.current) return\n setMensagens((anteriores) => [\n ...anteriores,\n {\n id: `orbe-ai-${Date.now()}`,\n sender: ORBE_AI,\n content: (\n <RespostaOrbeAi resposta={resposta} pergunta={pergunta} />\n ),\n type: 'regular',\n timestamp: new Date(),\n },\n ])\n } finally {\n if (ativo.current) setPensando(false)\n }\n },\n [pensando, t],\n )\n\n // Pergunta vinda da busca ou de um atalho (\"Perguntar ao OrbeAI\").\n useEffect(() => {\n if (perguntaIa) {\n consumirPerguntaIa()\n perguntar(perguntaIa)\n }\n }, [perguntaIa, consumirPerguntaIa, perguntar])\n\n const recomecar = () => {\n setMensagens([])\n setUltimaPergunta('')\n }\n\n const vazio = mensagens.length === 0\n\n return (\n <div className=\"flex flex-col gap-5\">\n <VoltarLink />\n <div className=\"flex items-center gap-3\">\n <TbMessageChatbot aria-hidden className=\"text-3xl text-primary\" />\n <h1 className=\"h3\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.titulo`)}\n </h1>\n </div>\n\n <Card bodyClass=\"p-4\">\n <ChatBox\n messageList={mensagens}\n showMessageList={!vazio}\n showAvatar={false}\n typing={pensando ? ORBE_AI : false}\n placeholder={t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.placeholder`)}\n containerClass=\"h-[60vh] min-h-[420px] gap-4\"\n onInputChange={({ value }) => perguntar(value)}\n >\n {vazio && (\n <div className=\"flex grow flex-col items-start justify-center gap-3 px-2\">\n <StartConverstation height={120} width={120} />\n <h2 className=\"h5\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.vazioTitulo`)}\n </h2>\n <p className=\"max-w-[56ch] text-gray-500 dark:text-gray-400\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.vazioTexto`)}\n </p>\n <div className=\"flex flex-col items-start gap-0.5\">\n {SUGESTOES_ORBE_AI.map((chave) => {\n const sugestao = t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.${chave}`,\n )\n return (\n <Button\n key={chave}\n variant=\"plain\"\n size=\"sm\"\n className=\"px-0 text-primary\"\n onClick={() => perguntar(sugestao)}\n >\n {sugestao}\n </Button>\n )\n })}\n </div>\n </div>\n )}\n </ChatBox>\n </Card>\n\n {!vazio && (\n <div className=\"flex flex-wrap gap-4\">\n <Button\n variant=\"plain\"\n size=\"sm\"\n className=\"px-0 text-primary\"\n disabled={pensando}\n onClick={recomecar}\n >\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.outraPergunta`)}\n </Button>\n <Button\n variant=\"plain\"\n size=\"sm\"\n className=\"px-0 text-primary\"\n onClick={() => abrirDuvida(ultimaPergunta)}\n >\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.naoResolveu`)}\n </Button>\n </div>\n )}\n </div>\n )\n}\n\nexport default OrbeAiView\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAgBA,MAAM,UAAU,EAAE,IAAI,WAAW,MAAM,SAAA;AAEvC,MAAM,aAAa,MAAM;AACrB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,EAAE,YAAA,IAAgB,gBAAA;AACxB,QAAM,aAAa,qBAAqB,CAAC,UAAU,MAAM,UAAU;AACnE,QAAM,qBAAqB;AAAA,IACvB,CAAC,UAAU,MAAM;AAAA,EAAA;AAGrB,QAAM,CAAC,WAAW,YAAY,IAAI,SAAsB,CAAA,CAAE;AAC1D,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SA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,CAAC,EAAA,CACL;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA,GAGZ;AAAA,IAEC,CAAC,SACE,qBAAC,OAAA,EAAI,WAAU,wBACX,UAAA;AAAA,MAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,WAAU;AAAA,UACV,UAAU;AAAA,UACV,SAAS;AAAA,UAER,UAAA,EAAE,GAAG,0BAA0B,uBAAuB;AAAA,QAAA;AAAA,MAAA;AAAA,MAE3D;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS,MAAM,YAAY,cAAc;AAAA,UAExC,UAAA,EAAE,GAAG,0BAA0B,qBAAqB;AAAA,QAAA;AAAA,MAAA;AAAA,IACzD,EAAA,CACJ;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../../../@ecme/components/ui/Button/index.js";
|
|
3
|
+
import "../../../../../../@ecme/components/ui/Tag/index.js";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import useNavegarAjuda from "../../../rota/useNavegarAjuda.js";
|
|
6
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA } from "../../../utils.js";
|
|
7
|
+
import Tag from "../../../../../../@ecme/components/ui/Tag/Tag.js";
|
|
8
|
+
import Button from "../../../../../../@ecme/components/ui/Button/Button.js";
|
|
9
|
+
const RespostaOrbeAi = ({ resposta, pergunta }) => {
|
|
10
|
+
const { t } = useTranslation();
|
|
11
|
+
const { abrirConteudo, abrirDuvida } = useNavegarAjuda();
|
|
12
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
13
|
+
!resposta.resposta && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tag, { className: "border-0 bg-warning-subtle text-warning", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.demonstracao`) }) }),
|
|
14
|
+
/* @__PURE__ */ jsx("p", { children: resposta.resposta || t(
|
|
15
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.respostaDemonstracao`
|
|
16
|
+
) }),
|
|
17
|
+
resposta.fontes.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-0.5", children: [
|
|
18
|
+
/* @__PURE__ */ jsx("span", { className: "h6 font-bold", children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.fontes`) }),
|
|
19
|
+
resposta.fontes.map((fonte) => /* @__PURE__ */ jsx(
|
|
20
|
+
Button,
|
|
21
|
+
{
|
|
22
|
+
variant: "plain",
|
|
23
|
+
size: "sm",
|
|
24
|
+
className: "!h-auto !whitespace-normal px-0 !py-1 text-left text-primary",
|
|
25
|
+
onClick: () => abrirConteudo(fonte),
|
|
26
|
+
children: fonte.titulo
|
|
27
|
+
},
|
|
28
|
+
fonte.id
|
|
29
|
+
))
|
|
30
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-3", children: [
|
|
31
|
+
/* @__PURE__ */ jsx("p", { children: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.semFontes`) }),
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
Button,
|
|
34
|
+
{
|
|
35
|
+
variant: "solid",
|
|
36
|
+
size: "sm",
|
|
37
|
+
onClick: () => abrirDuvida(pergunta),
|
|
38
|
+
children: t(
|
|
39
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.naoEncontrou.registrarDuvida`
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
RespostaOrbeAi as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=RespostaOrbeAi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RespostaOrbeAi.js","sources":["../../../../../../../lib/base/components/centralAjuda/views/OrbeAi/components/RespostaOrbeAi.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport Tag from '@/components/ui/Tag'\nimport { useTranslation } from 'react-i18next'\nimport type { TCentralAjudaRespostaIa } from '@base/@types/models/faq/Faq'\nimport useNavegarAjuda from '../../../rota/useNavegarAjuda'\nimport { PREFIXO_I18N_CENTRAL_AJUDA } from '../../../utils'\n\ntype RespostaOrbeAiProps = {\n resposta: TCentralAjudaRespostaIa\n pergunta: string\n}\n\n/** Conteúdo da mensagem do OrbeAI dentro do ChatBox. */\nconst RespostaOrbeAi = ({ resposta, pergunta }: RespostaOrbeAiProps) => {\n const { t } = useTranslation()\n const { abrirConteudo, abrirDuvida } = useNavegarAjuda()\n\n return (\n <div className=\"flex flex-col gap-3\">\n {!resposta.resposta && (\n <div>\n <Tag className=\"border-0 bg-warning-subtle text-warning\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.demonstracao`)}\n </Tag>\n </div>\n )}\n <p>\n {resposta.resposta ||\n t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.respostaDemonstracao`,\n )}\n </p>\n\n {resposta.fontes.length > 0 ? (\n <div className=\"flex flex-col items-start gap-0.5\">\n <span className=\"h6 font-bold\">\n {t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.fontes`)}\n </span>\n {resposta.fontes.map((fonte) => (\n <Button\n key={fonte.id}\n variant=\"plain\"\n size=\"sm\"\n className=\"!h-auto !whitespace-normal px-0 !py-1 text-left text-primary\"\n onClick={() => abrirConteudo(fonte)}\n >\n {fonte.titulo}\n </Button>\n ))}\n </div>\n ) : (\n <div className=\"flex flex-col items-start gap-3\">\n <p>{t(`${PREFIXO_I18N_CENTRAL_AJUDA}.orbeAi.semFontes`)}</p>\n <Button\n variant=\"solid\"\n size=\"sm\"\n onClick={() =>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AAA,UAAA;AAAA,QACjC;AAAA,MAAA;AAAA,IACJ,EAAA,CACJ;AAAA,EAAA,GAER;AAER;"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "../../../../../@ecme/components/ui/Button/index.js";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import useCategoriasFaqDisponiveis from "../../../../hooks/faq/useCategoriasFaqDisponiveis.js";
|
|
5
|
+
import useFaqsPublicados from "../../../../hooks/faq/useFaqsPublicados.js";
|
|
6
|
+
import BuscaForm from "../../components/BuscaForm.js";
|
|
7
|
+
import ErroCarregamento from "../../components/ErroCarregamento.js";
|
|
8
|
+
import SkeletonLinhas from "../../components/SkeletonLinhas.js";
|
|
9
|
+
import VoltarLink from "../../components/VoltarLink.js";
|
|
10
|
+
import { TIPOS_FAQ } from "../../constants.js";
|
|
11
|
+
import useNavegarAjuda from "../../rota/useNavegarAjuda.js";
|
|
12
|
+
import { useCentralAjudaStore } from "../../store/centralAjudaStore.js";
|
|
13
|
+
import { PREFIXO_I18N_CENTRAL_AJUDA, textoContagem } from "../../utils.js";
|
|
14
|
+
import FiltrosResultados from "./components/FiltrosResultados.js";
|
|
15
|
+
import ListaResultados from "./components/ListaResultados.js";
|
|
16
|
+
import ResultadosVazio from "./components/ResultadosVazio.js";
|
|
17
|
+
import Button from "../../../../../@ecme/components/ui/Button/Button.js";
|
|
18
|
+
const TODAS = "TODAS";
|
|
19
|
+
const ResultadosView = ({ filtros }) => {
|
|
20
|
+
const { t } = useTranslation();
|
|
21
|
+
const modo = useCentralAjudaStore((state) => state.modo);
|
|
22
|
+
const { filtrar, limparFiltros } = useNavegarAjuda();
|
|
23
|
+
const { busca, tipo: filtroTipo, categoriaId: filtroCategoriaId } = filtros;
|
|
24
|
+
const { categorias } = useCategoriasFaqDisponiveis();
|
|
25
|
+
const conteudos = useFaqsPublicados({
|
|
26
|
+
titulo: busca,
|
|
27
|
+
categoriaId: filtroCategoriaId ?? void 0
|
|
28
|
+
});
|
|
29
|
+
const tipoOk = (faq) => filtroTipo === "TODOS" || faq.tipo === filtroTipo;
|
|
30
|
+
const universo = conteudos.faqs;
|
|
31
|
+
const resultados = universo.filter(tipoOk);
|
|
32
|
+
const carregando = conteudos.isLoading;
|
|
33
|
+
const erro = conteudos.error;
|
|
34
|
+
const opcoesTipo = [
|
|
35
|
+
{
|
|
36
|
+
valor: "TODOS",
|
|
37
|
+
label: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.todos`),
|
|
38
|
+
quantidade: universo.length
|
|
39
|
+
},
|
|
40
|
+
...TIPOS_FAQ.map((tipo) => ({
|
|
41
|
+
valor: tipo,
|
|
42
|
+
label: t(
|
|
43
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.tiposPlural.${tipo}`
|
|
44
|
+
),
|
|
45
|
+
quantidade: universo.filter((faq) => faq.tipo === tipo).length
|
|
46
|
+
}))
|
|
47
|
+
];
|
|
48
|
+
const opcoesCategoria = [
|
|
49
|
+
{
|
|
50
|
+
valor: TODAS,
|
|
51
|
+
label: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.todas`)
|
|
52
|
+
},
|
|
53
|
+
...categorias.map((categoria) => ({
|
|
54
|
+
valor: String(categoria.id),
|
|
55
|
+
label: categoria.nome
|
|
56
|
+
}))
|
|
57
|
+
];
|
|
58
|
+
const quantidade = resultados.length;
|
|
59
|
+
const rotuloResultado = textoContagem(t, "resultado", quantidade);
|
|
60
|
+
const titulo = busca ? t(`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.para`, {
|
|
61
|
+
resultado: rotuloResultado,
|
|
62
|
+
busca
|
|
63
|
+
}) : rotuloResultado;
|
|
64
|
+
const temFiltros = !!busca || filtroTipo !== "TODOS" || filtroCategoriaId !== null;
|
|
65
|
+
const telaCheia = modo === "full";
|
|
66
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(VoltarLink, {}),
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
BuscaForm,
|
|
70
|
+
{
|
|
71
|
+
id: "central-ajuda-busca-resultados",
|
|
72
|
+
busca,
|
|
73
|
+
className: "max-w-[800px]",
|
|
74
|
+
onBuscar: (texto) => filtrar({ busca: texto.trim() })
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start gap-10", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
FiltrosResultados,
|
|
80
|
+
{
|
|
81
|
+
rotulo: t(
|
|
82
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.filtros`
|
|
83
|
+
),
|
|
84
|
+
vertical: telaCheia,
|
|
85
|
+
tipo: {
|
|
86
|
+
titulo: t(
|
|
87
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.tipo`
|
|
88
|
+
),
|
|
89
|
+
valor: filtroTipo,
|
|
90
|
+
opcoes: opcoesTipo,
|
|
91
|
+
onChange: (valor) => filtrar({ tipo: valor })
|
|
92
|
+
},
|
|
93
|
+
categoria: categorias.length ? {
|
|
94
|
+
titulo: t(
|
|
95
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.categoria`
|
|
96
|
+
),
|
|
97
|
+
valor: filtroCategoriaId === null ? TODAS : String(filtroCategoriaId),
|
|
98
|
+
opcoes: opcoesCategoria,
|
|
99
|
+
onChange: (valor) => filtrar({
|
|
100
|
+
categoriaId: valor === TODAS ? null : Number(valor)
|
|
101
|
+
})
|
|
102
|
+
} : null
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsxs("section", { className: "flex min-w-0 grow-[999] basis-[560px] flex-col gap-2", children: [
|
|
106
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-h-11 flex-wrap items-center justify-between gap-4", children: [
|
|
107
|
+
/* @__PURE__ */ jsx("h1", { "aria-live": "polite", className: "h4", children: carregando ? "" : titulo }),
|
|
108
|
+
temFiltros && /* @__PURE__ */ jsx(
|
|
109
|
+
Button,
|
|
110
|
+
{
|
|
111
|
+
variant: "plain",
|
|
112
|
+
size: "sm",
|
|
113
|
+
className: "px-0 text-primary",
|
|
114
|
+
onClick: limparFiltros,
|
|
115
|
+
children: t(
|
|
116
|
+
`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.limpar`
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] }),
|
|
121
|
+
erro && /* @__PURE__ */ jsx(
|
|
122
|
+
ErroCarregamento,
|
|
123
|
+
{
|
|
124
|
+
onTentarNovamente: () => conteudos.mutate()
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
carregando && /* @__PURE__ */ jsx(SkeletonLinhas, { quantidade: 4 }),
|
|
128
|
+
!carregando && !erro && quantidade > 0 && /* @__PURE__ */ jsx(ListaResultados, { resultados }),
|
|
129
|
+
!carregando && !erro && quantidade === 0 && /* @__PURE__ */ jsx(ResultadosVazio, { busca })
|
|
130
|
+
] })
|
|
131
|
+
] })
|
|
132
|
+
] });
|
|
133
|
+
};
|
|
134
|
+
export {
|
|
135
|
+
ResultadosView as default
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=ResultadosView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultadosView.js","sources":["../../../../../../lib/base/components/centralAjuda/views/Resultados/ResultadosView.tsx"],"sourcesContent":["import Button from '@/components/ui/Button'\nimport { useTranslation } from 'react-i18next'\nimport type { TFaqResumo } from '@base/@types/models/faq/Faq'\nimport useCategoriasFaqDisponiveis from '@base/hooks/faq/useCategoriasFaqDisponiveis'\nimport useFaqsPublicados from '@base/hooks/faq/useFaqsPublicados'\nimport BuscaForm from '../../components/BuscaForm'\nimport ErroCarregamento from '../../components/ErroCarregamento'\nimport SkeletonLinhas from '../../components/SkeletonLinhas'\nimport VoltarLink from '../../components/VoltarLink'\nimport { TIPOS_FAQ } from '../../constants'\nimport type { TFiltroTipoAjuda, TRotaBuscaAjuda } from '../../rota/rotaAjuda'\nimport useNavegarAjuda from '../../rota/useNavegarAjuda'\nimport { useCentralAjudaStore } from '../../store/centralAjudaStore'\nimport { PREFIXO_I18N_CENTRAL_AJUDA, textoContagem } from '../../utils'\nimport FiltrosResultados, {\n type TOpcaoFiltro,\n} from './components/FiltrosResultados'\nimport ListaResultados from './components/ListaResultados'\nimport ResultadosVazio from './components/ResultadosVazio'\n\nconst TODAS = 'TODAS'\n\ntype ResultadosViewProps = {\n /** Busca e filtros da rota `?ajuda=busca/...`. */\n filtros: TRotaBuscaAjuda\n}\n\nconst ResultadosView = ({ filtros }: ResultadosViewProps) => {\n const { t } = useTranslation()\n const modo = useCentralAjudaStore((state) => state.modo)\n const { filtrar, limparFiltros } = useNavegarAjuda()\n const { busca, tipo: filtroTipo, categoriaId: filtroCategoriaId } = filtros\n\n const { categorias } = useCategoriasFaqDisponiveis()\n\n // Título e categoria vão para o find-monitor (a listagem não traz categorias);\n // o tipo é filtrado aqui para mostrar a contagem de cada opção.\n const conteudos = useFaqsPublicados({\n titulo: busca,\n categoriaId: filtroCategoriaId ?? undefined,\n })\n\n const tipoOk = (faq: TFaqResumo) =>\n filtroTipo === 'TODOS' || faq.tipo === filtroTipo\n\n const universo = conteudos.faqs\n const resultados = universo.filter(tipoOk)\n const carregando = conteudos.isLoading\n const erro = conteudos.error\n\n const opcoesTipo: TOpcaoFiltro[] = [\n {\n valor: 'TODOS',\n label: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.todos`),\n quantidade: universo.length,\n },\n ...TIPOS_FAQ.map((tipo) => ({\n valor: tipo,\n label: t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.tiposPlural.${tipo}`,\n ),\n quantidade: universo.filter((faq) => faq.tipo === tipo).length,\n })),\n ]\n\n const opcoesCategoria: TOpcaoFiltro[] = [\n {\n valor: TODAS,\n label: t(`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.todas`),\n },\n ...categorias.map((categoria) => ({\n valor: String(categoria.id),\n label: categoria.nome,\n })),\n ]\n\n const quantidade = resultados.length\n const rotuloResultado = textoContagem(t, 'resultado', quantidade)\n const titulo = busca\n ? t(`${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.para`, {\n resultado: rotuloResultado,\n busca,\n })\n : rotuloResultado\n const temFiltros =\n !!busca || filtroTipo !== 'TODOS' || filtroCategoriaId !== null\n const telaCheia = modo === 'full'\n\n return (\n <div className=\"flex flex-col gap-8\">\n <VoltarLink />\n <BuscaForm\n id=\"central-ajuda-busca-resultados\"\n busca={busca}\n className=\"max-w-[800px]\"\n onBuscar={(texto) => filtrar({ busca: texto.trim() })}\n />\n\n <div className=\"flex flex-wrap items-start gap-10\">\n <FiltrosResultados\n rotulo={t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.filtros`,\n )}\n vertical={telaCheia}\n tipo={{\n titulo: t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.tipo`,\n ),\n valor: filtroTipo,\n opcoes: opcoesTipo,\n onChange: (valor) =>\n filtrar({ tipo: valor as TFiltroTipoAjuda }),\n }}\n categoria={\n categorias.length\n ? {\n titulo: t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.categoria`,\n ),\n valor:\n filtroCategoriaId === null\n ? TODAS\n : String(filtroCategoriaId),\n opcoes: opcoesCategoria,\n onChange: (valor) =>\n filtrar({\n categoriaId:\n valor === TODAS\n ? null\n : Number(valor),\n }),\n }\n : null\n }\n />\n\n <section className=\"flex min-w-0 grow-[999] basis-[560px] flex-col gap-2\">\n <div className=\"flex min-h-11 flex-wrap items-center justify-between gap-4\">\n <h1 aria-live=\"polite\" className=\"h4\">\n {carregando ? '' : titulo}\n </h1>\n {temFiltros && (\n <Button\n variant=\"plain\"\n size=\"sm\"\n className=\"px-0 text-primary\"\n onClick={limparFiltros}\n >\n {t(\n `${PREFIXO_I18N_CENTRAL_AJUDA}.resultados.limpar`,\n )}\n </Button>\n )}\n </div>\n\n {erro && (\n <ErroCarregamento\n onTentarNovamente={() => conteudos.mutate()}\n />\n )}\n\n {carregando && <SkeletonLinhas quantidade={4} />}\n\n {!carregando && !erro && quantidade > 0 && (\n <ListaResultados resultados={resultados} />\n )}\n\n {!carregando && !erro && quantidade === 0 && (\n <ResultadosVazio busca={busca} />\n )}\n </section>\n </div>\n </div>\n )\n}\n\nexport default ResultadosView\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAoBA,MAAM,QAAQ;AAOd,MAAM,iBAAiB,CAAC,EAAE,cAAmC;AACzD,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,OAAO,qBAAqB,CAAC,UAAU,MAAM,IAAI;AACvD,QAAM,EAAE,SAAS,cAAA,IAAkB,gBAAA;AACnC,QAAM,EAAE,OAAO,MAAM,YAAY,aAAa,sBAAsB;AAEpE,QAAM,EAAE,WAAA,IAAe,4BAAA;AAIvB,QAAM,YAAY,kBAAkB;AAAA,IAChC,QAAQ;AAAA,IACR,aAAa,qBAAqB;AAAA,EAAA,CACrC;AAED,QAAM,SAAS,CAAC,QACZ,eAAe,WAAW,IAAI,SAAS;AAE3C,QAAM,WAAW,UAAU;AAC3B,QAAM,aAAa,SAAS,OAAO,MAAM;AACzC,QAAM,aAAa,UAAU;AAC7B,QAAM,OAAO,UAAU;AAEvB,QAAM,aAA6B;AAAA,IAC/B;AAAA,MACI,OAAO;AAAA,MACP,OAAO,EAAE,GAAG,0BAA0B,mBAAmB;AAAA,MACzD,YAAY,SAAS;AAAA,IAAA;AAAA,IAEzB,GAAG,UAAU,IAAI,CAAC,UAAU;AAAA,MACxB,OAAO;AAAA,MACP,OAAO;AAAA,QACH,GAAG,0BAA0B,2BAA2B,IAAI;AAAA,MAAA;AAAA,MAEhE,YAAY,SAAS,OAAO,CAAC,QAAQ,IAAI,SAAS,IAAI,EAAE;AA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