import{j as s}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc35.js";import{r as f}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3.js";import{af as h,ac as R,n as j}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc323.js";import{u as g}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc34.js";import{al as v,af as p,ad as y,ac as N,j as k}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc37.js";import{c as w}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3107.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc33.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc32.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc39.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc310.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc320.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc38.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc36.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};
