import{j as s}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89263.js";import{a as x}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89262.js";import{r as h,a as j,ac as v}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892625.js";import{u as g}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89264.js";import{aA as b,ap as m,aq as p,al as A}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89268.js";import{c as N}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c8926122.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89265.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89266.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89269.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892610.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89267.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c8926.js";import"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892620.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};
