import{r as f,j as s}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb.js";import{af as h,ac as R,n as j}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb23.js";import{u as v}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb20.js";import{aD as g,ax as l,av as y,au as N,s as k}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb11.js";import{c as w}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb107.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb8.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb7.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb19.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb4.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb3.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb2.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb10.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb6.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb9.js";function b({onSelect:i,btnCancel:m=!1,ignoredIds:u=[],ignoredTypes:d=[]}){const{quickReplies:n}=h(),{variaveisWA:o}=R(),{close:r}=j(),{language:c}=v(),[p,x]=f.useState([]);return s.jsx("div",{children:s.jsx("ul",{className:"overflow-hidden flex "+o.modalOptions.content2,children:s.jsxs("div",{className:o.modalOptions.content3,children:[s.jsx(g,{filtragem:e=>{let t=[];n.forEach(a=>{a.titulo?.toUpperCase().includes(e.toUpperCase())&&!u.includes(a.id)&&!d.includes(a.type)&&t.push(a)}),x(t)},placeholder:c.searchQuickReply,dependenciasADD:[n],btnClear:!0}),s.jsxs("div",{className:"max-w-[300px] overflow-x-hidden overflow-y-auto "+o.listagem.content1,style:{maxHeight:"60vh"},children:[m&&s.jsx(l,{content:c.cancelSelection,icon:s.jsx(w,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{i(null),r()},stroke:"1"}),p.map((e,t)=>s.jsx(l,{content:e.titulo,icon:s.jsx(y,{type:e.type}),setFunction:()=>{i(e),r()},stroke:"1"},t)),p.length===0&&s.jsx(N,{icon:s.jsx(k,{size:26,className:"text-[var(--primaria)]"}),title:"Nenhuma Resposta Rápida foi Encontrada",description:"Nenhuma Resposta Rápida foi criada. Crie uma agora para começar a desenvolver os scripts!"})]})]})})})}export{b as default};
