import{j as s,as as h,am as m,al as R,aj as j,y as g}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e410.js";import{a as v}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e44.js";import{at as y,A as N,q as k}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e423.js";import{u as w}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e419.js";import{c as C}from"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e4105.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e418.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e46.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e48.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e4.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e45.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e47.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e49.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e42.js";import"./v_7_4_2_14_b047d88c-9af4-4a49-a965-946ffe7780e43.js";function z({onSelect:i,btnCancel:d=!1,ignoredIds:u=[],ignoredTypes:x=[]}){const{quickReplies:n}=y(),{variaveisWA:o}=N(),{close:r}=k(),{language:c}=w(),[l,f]=v.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(h,{filtragem:e=>{let t=[];n.forEach(a=>{var p;(p=a.titulo)!=null&&p.toUpperCase().includes(e.toUpperCase())&&!u.includes(a.id)&&!x.includes(a.type)&&t.push(a)}),f(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:[d&&s.jsx(m,{content:c.cancelSelection,icon:s.jsx(C,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{i(null),r()},stroke:"1"}),l.map((e,t)=>s.jsx(m,{content:e.titulo,icon:s.jsx(R,{type:e.type}),setFunction:()=>{i(e),r()},stroke:"1"},t)),l.length===0&&s.jsx(j,{icon:s.jsx(g,{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{z as default};
