import{j as s}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67155.js";import{r as x}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715.js";import{n as h,u as j,ad as g}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671523.js";import{u as v}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67154.js";import{al as b,af as m,ag as p,ac as N}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67157.js";import{c as w}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715106.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67153.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67159.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671510.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67152.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67158.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671520.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67156.js";function D({onSelect:o,btnCancel:u=!1,abasRM:d=[]}){const{close:r}=h(),{userTabs:n}=j(),{variaveisWA:i}=g(),{language:l}=v(),[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:e=>{let a=[];n.filter(t=>d.includes(t.id)===!1).forEach(t=>{t.tag?.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:[u&&s.jsx(m,{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(m,{content:e.tag,icon:s.jsx(p,{className:"w-5 h-5 text-[var(--primaria)]"}),setFunction:()=>{o(e),r()},stroke:"1"},a)),c.length===0&&s.jsx(N,{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};
