import{j as s}from"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f775.js";import{r as f}from"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f77.js";import{af as h,ac as R,n as j}from"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f7723.js";import{u as g}from"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f774.js";import{al as v,af as p,ad as y,ac as N,j as k}from"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f777.js";import{c as w}from"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f77107.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f773.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f772.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f779.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f7710.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f7720.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f778.js";import"./v_7_4_3_25_2ff64573-14a6-4762-a634-9cd350f14f776.js";function U({onSelect:i,btnCancel:m=!1,ignoredIds:d=[],ignoredTypes:u=[]}){const{quickReplies:n}=h(),{variaveisWA:o}=R(),{close:r}=j(),{language:c}=g(),[l,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: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(p,{content:c.cancelSelection,icon:s.jsx(w,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{i(null),r()},stroke:"1"}),l.map((e,t)=>s.jsx(p,{content:e.titulo,icon:s.jsx(y,{type:e.type}),setFunction:()=>{i(e),r()},stroke:"1"},t)),l.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};
