import{j as s}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a53.js";import{a as f}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a52.js";import{ag as h,ac as R,r as g}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a525.js";import{u as j}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.js";import{aA as v,ap as p,an as y,al as N,u as k}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a58.js";import{c as w}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5122.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a59.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a510.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a57.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a520.js";function U({onSelect:i,btnCancel:m=!1,ignoredIds:u=[],ignoredTypes:d=[]}){const{quickReplies:n}=h(),{variaveisWA:o}=R(),{close:r}=g(),{language:c}=j(),[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())&&!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(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};
