import{r as f,j as s}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71.js";import{ax as h,A as R,q as j}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7124.js";import{u as g}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7120.js";import{au as v,ao as p,am as y,al as N,y as k}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7111.js";import{c as w}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71105.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a717.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a719.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a716.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a718.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7119.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a714.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a713.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a712.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7110.js";function b({onSelect:i,btnCancel:m=!1,ignoredIds:u=[],ignoredTypes:d=[]}){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())&&!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{b as default};
