import{j as s,ar as h,al as p,am as u,ai as j}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{a as v}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{p as b,b as g,A}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{u as N}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{c as w}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf74.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf2.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf3.js";function z({onSelect:o,btnCancel:d=!1,abasRM:x=[]}){const{close:r}=b(),{userTabs:n}=g(),{variaveisWA:i}=A(),{language:l}=N(),[c,f]=v.useState([]);return s.jsx("div",{style:{position:"initial"},children:s.jsx("ul",{className:"overflow-hidden flex "+i.modalOptions.content2,children:s.jsxs("div",{className:i.modalOptions.content3,children:[s.jsx(h,{filtragem:e=>{let a=[];n.filter(t=>x.includes(t.id)===!1).forEach(t=>{var m;(m=t.tag)!=null&&m.toUpperCase().includes(e.toUpperCase())&&a.push(t)}),f(a)},placeholder:l.pesquisarAbas,dependenciasADD:[n],btnClear:!0}),s.jsxs("div",{className:"max-w-[300px] overflow-x-hidden overflow-y-auto "+i.listagem.content1,style:{maxHeight:"calc(100vh - 63px)"},children:[d&&s.jsx(p,{content:l.cancelSelection,icon:s.jsx(w,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{o(null),r()},stroke:"1"}),c.map((e,a)=>s.jsx(p,{content:e.tag,icon:s.jsx(u,{className:"w-5 h-5 text-[var(--primaria)]"}),setFunction:()=>{o(e),r()},stroke:"1"},a)),c.length===0&&s.jsx(j,{icon:s.jsx(u,{className:"w-5 h-5 text-[var(--primaria)]"}),title:"Nenhuma Aba foi Encontrada",description:"Nenhuma aba foi criada. Crie uma para começar a utilizár essa funcionalidade"})]})]})})})}export{z as default};
