import{j as s,ak as h,ae as m,ad as R,ab as j,p as g}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b10.js";import{a as v}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b4.js";import{$ as y,D as k,p as N}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b23.js";import{u as w}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b19.js";import{d as C}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b74.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b18.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b8.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b5.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b7.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b6.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b9.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b2.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b3.js";function z({onSelect:i,btnCancel:d=!1,ignoredIds:u=[],ignoredTypes:x=[]}){const{quickReplies:n}=y(),{variaveisWA:o}=k(),{close:r}=N(),{language:p}=w(),[c,f]=v.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(h,{filtragem:e=>{let t=[];n.forEach(a=>{var l;(l=a.titulo)!=null&&l.toUpperCase().includes(e.toUpperCase())&&!u.includes(a.id)&&!x.includes(a.type)&&t.push(a)}),f(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:[d&&s.jsx(m,{content:p.cancelSelection,icon:s.jsx(C,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{i(null),r()},stroke:"1"}),c.map((e,t)=>s.jsx(m,{content:e.titulo,icon:s.jsx(R,{type:e.type}),setFunction:()=>{i(e),r()},stroke:"1"},t)),c.length===0&&s.jsx(j,{icon:s.jsx(g,{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{z as default};
