import{j as e,cL as u,I as x}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578110.js";import{q as h,aY as g,bc as f,bd as j}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578123.js";import{u as v}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578119.js";import{d as M}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578158.js";import{a as n}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457814.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578118.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457816.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457818.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd945781.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457815.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457817.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457819.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457812.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457813.js";function S(){const{close:c}=h(),{setCreateAcionamento:m,activeAutoAtt:i}=g(),{language:a}=v(),[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=>{x({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(f,{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(j,{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(u,{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{S as default};
