import{j as e}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{u}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02833.js";import{au as x}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import{u as h}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{p as g,q as f}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02844.js";import{cC as j,I as v}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import{n as M}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02867.js";import{a as n}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0284.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02838.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0289.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02810.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0283.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02820.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.js";function q(){const{close:c}=u(),{setCreateAcionamento:m,activeAutoAtt:o}=x(),{language:a}=h(),[i,p]=n.useState(!1),[r,d]=n.useState(!1);n.useEffect(()=>{p(!!o.acionamento.find(s=>s.type=="day_Message")),d(!!o.acionamento.find(s=>s.type=="customer_Message"))},[o]);const t=s=>{m(s),c()},l=s=>{v({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:i?"disabled":"",children:e.jsxs("div",{className:"flex gap-2 items-center pulse",onClick:()=>{i?l("day_Message"):t("day_Message")},children:[e.jsx("span",{children:e.jsx(j,{className:"h-5 w-5 "+(i?"":"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{q as default};
