import{r as f,j as s}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f.js";import{an as h,aj as R,n as j}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f23.js";import{u as g}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f20.js";import{ax as v,ar as l,ap as y,ao as N,t as k}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f11.js";import{c as w}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f106.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f8.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f7.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f19.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f4.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f3.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f2.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f10.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f6.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f9.js";function b({onSelect:i,btnCancel:m=!1,ignoredIds:d=[],ignoredTypes:u=[]}){const{quickReplies:n}=h(),{variaveisWA:o}=R(),{close:r}=j(),{language:p}=g(),[c,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(v,{filtragem:e=>{let t=[];n.forEach(a=>{a.titulo?.toUpperCase().includes(e.toUpperCase())&&!d.includes(a.id)&&!u.includes(a.type)&&t.push(a)}),x(t)},placeholder:p.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:p.cancelSelection,icon:s.jsx(w,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{i(null),r()},stroke:"1"}),c.map((e,t)=>s.jsx(l,{content:e.titulo,icon:s.jsx(y,{type:e.type}),setFunction:()=>{i(e),r()},stroke:"1"},t)),c.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};
