import{j as e,I as u}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{p as x,aW as h,b7 as g,b8 as f}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{u as j}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{l as v}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf41.js";import{d as M}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf60.js";import{a as n}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf2.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf3.js";function D(){const{close:c}=x(),{setCreateAcionamento:m,activeAutoAtt:i}=h(),{language:a}=j(),[o,d]=n.useState(!1),[r,p]=n.useState(!1);n.useEffect(()=>{d(!!i.acionamento.find(s=>s.type=="day_Message")),p(!!i.acionamento.find(s=>s.type=="customer_Message"))},[i]);const t=s=>{m(s),c()},l=s=>{u({type:"Error",message:a[s]+a.messageNotRepeat,position:"top-right"})};return e.jsx("div",{className:"max-h-[99vh] overflow-y-auto",children:e.jsxs("ul",{tabIndex:0,className:"menu w-[310px] rounded-box !py-0 overflow-hidden",children:[e.jsx("li",{children:e.jsxs("div",{className:"flex gap-2 items-center pulse",onClick:()=>t("message_Received"),children:[e.jsx("span",{children:e.jsx(g,{className:"h-5 w-5 text-[var(--panel-header-icon)]",strokeWidth:2.4})}),a.porMensagemRecebida]})}),e.jsx("li",{children:e.jsxs("div",{className:"flex gap-2 items-center pulse",onClick:()=>t("keyword"),children:[e.jsx("span",{children:e.jsx(f,{className:"h-5 w-5 text-[var(--panel-header-icon)]"})}),a.porPalavraChaveNaMensagem]})}),e.jsx("li",{className:o?"disabled":"",children:e.jsxs("div",{className:"flex gap-2 items-center pulse",onClick:()=>{o?l("day_Message"):t("day_Message")},children:[e.jsx("span",{children:e.jsx(v,{className:"h-5 w-5 "+(o?"":"text-[var(--panel-header-icon)]")})}),a.primeiraMensagemClienteDia]})}),e.jsx("li",{className:r?"disabled":"",children:e.jsxs("div",{className:"flex gap-2 items-center pulse",onClick:()=>{r?l("customer_Message"):t("customer_Message")},children:[e.jsx("span",{children:e.jsx(M,{className:"h-5 w-5 "+(r?"":"text-[var(--panel-header-icon)]")})}),a.primeiraMensagemCliente]})})]})})}export{D as default};
