import{j as s}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a53.js";import{a as x}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a52.js";import{r as h,a as j,ac as v}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a525.js";import{u as g}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.js";import{aA as b,ap as m,aq as p,al as A}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a58.js";import{c as N}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5122.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a59.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a510.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a57.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a520.js";function D({onSelect:o,btnCancel:u=!1,abasRM:d=[]}){const{close:r}=h(),{userTabs:n}=j(),{variaveisWA:i}=v(),{language:l}=g(),[c,f]=x.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(b,{filtragem:a=>{let e=[];n.filter(t=>d.includes(t.id)===!1).forEach(t=>{t.tag?.toUpperCase().includes(a.toUpperCase())&&e.push(t)}),f(e)},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:[u&&s.jsx(m,{content:l.cancelSelection,icon:s.jsx(N,{className:"w-5 h-5 text-red-500"}),setFunction:()=>{o(null),r()},stroke:"1"}),c.map((a,e)=>s.jsx(m,{content:a.tag,icon:s.jsx(p,{className:"w-5 h-5 text-[var(--primaria)]"}),setFunction:()=>{o(a),r()},stroke:"1"},e)),c.length===0&&s.jsx(A,{icon:s.jsx(p,{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{D as default};
