import{r as f,j as s}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6.js";import{ao as h,al as R,n as j}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f623.js";import{u as g}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f620.js";import{ax as v,ar as l,ap as y,ao as N,z as k}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f611.js";import{c as w}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6105.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f68.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f67.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f619.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f64.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f63.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f62.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f610.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f66.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f69.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};
