PageSourceSearch

https://coneasy.lovable.app/assets/MensagensOficiais-w7-jTsFK.js

js coneasy.lovable.app collected 2026-10-03 03:28:01 UTC 2,227 bytes, 1 lines download raw bytes

1import{ab as m,r as d,cf as p,j as e,i as u,b as s,p as x,I as f}from"./index-Dlc_Xpwz.js";import{P as h}from"./page-header-B_IuE2p-.js";import{E as g}from"./EmptyState-J7BwgSgD.js";import{M as j}from"./message-square-off-yXGcswEI.js";import{P as N}from"./plus-BlO_r7Lv.js";import{F as v}from"./filter-DpDNL9DI.js";import{M as b}from"./message-square-DvxRzE7_.js";function P(){const t=m(),[o,r]=d.useState(""),{canAccess:i,loading:n,moduleActive:a,flagEnabled:c}=p();return n?e.jsx("div",{className:"flex items-center justify-center h-[60vh] text-muted-foreground",children:e.jsx(u,{className:"h-5 w-5 animate-spin"})}):i?e.jsxs("div",{className:"container py-6 space-y-6",children:[e.jsx(h,{title:"Mensagens Oficiais",description:"Gerencie seus modelos de mensagens e respostas rápidas para o WhatsApp.",actions:e.jsxs(s,{className:"gap-2",children:[e.jsx(N,{className:"h-4 w-4"})," Novo Modelo"]})}),e.jsxs("div",{className:"flex items-center gap-4 bg-muted/30 p-4 rounded-lg border",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(f,{placeholder:"Buscar modelos...",className:"pl-9",value:o,onChange:l=>r(l.target.value)})]}),e.jsxs(s,{variant:"outline",className:"gap-2",children:[e.jsx(v,{className:"h-4 w-4"})," Filtros"]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.jsx(g,{icon:b,title:"Nenhum modelo encontrado",description:"Você ainda não possui modelos de mensagens configurados para este tenant."})})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center h-[60vh] text-center p-8",children:[e.jsx(j,{className:"h-10 w-10 text-muted-foreground mb-3"}),e.jsx("h2",{className:"text-lg font-semibold",children:a?c?"Acesso não liberado":"Recurso indisponível":"Módulo WhatsApp não contratado"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1 max-w-md",children:a?"Você não tem permissão para acessar este recurso.":"Contrate o módulo WhatsApp ou solicite liberação ao administrador da plataforma."}),e.jsx(s,{variant:"outline",className:"mt-6",onClick:()=>t("/"),children:"Voltar ao início"})]})}export{P as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.