import{r as f,j as s}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777.js";import{ao as h,al as R,n as j}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277723.js";import{u as g}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277720.js";import{ax as v,ar as l,ap as y,ao as N,z as k}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277711.js";import{c as w}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777105.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27778.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27777.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277719.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27774.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27773.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27772.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277710.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27776.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27779.js";function U({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{U as default};
